blob: 85cb5a2729218138a03cb62e2c993f23ef53a4f2 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencera773bd52006-08-04 18:18:08 +00003# Generated by GNU Autoconf 2.60 for llvm 1.9cvs.
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-'
Reid Spencer1bc68642006-07-27 23:00:30 +0000718PACKAGE_VERSION='1.9cvs'
719PACKAGE_STRING='llvm 1.9cvs'
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
833DEBUG_RUNTIME
834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
838TARGETS_TO_BUILD
839EXTRA_OPTIONS
840CXX
841CXXFLAGS
842ac_ct_CXX
843LEX
844LEXLIB
845LEX_OUTPUT_ROOT
846FLEX
847YACC
848YFLAGS
849BISON
850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
875ETAGS
876GROFF
877GZIP
878POD2HTML
879POD2MAN
880RUNTEST
881TCLSH
882ZIP
883INSTALL_LTDL_TRUE
884INSTALL_LTDL_FALSE
885CONVENIENCE_LTDL_TRUE
886CONVENIENCE_LTDL_FALSE
887LIBADD_DL
888ECHO
889AR
890STRIP
891CXXCPP
892F77
893FFLAGS
894ac_ct_F77
895LIBTOOL
896ETAGSFLAGS
897LLVMGCC
898LLVMGXX
899ALLOCA
900MMAP_FILE
901LLVMCC1
902LLVMCC1PLUS
903LLVMGCCDIR
904LLVMGCC_VERSION
905LLVMGCC_MAJVERS
906SHLIBEXT
907LLVM_PREFIX
908LLVM_BINDIR
909LLVM_LIBDIR
910LLVM_DATADIR
911LLVM_DOCSDIR
912LLVM_ETCDIR
913LLVM_INCLUDEDIR
914LLVM_INFODIR
915LLVM_MANDIR
916LLVM_CONFIGTIME
917LIBOBJS
918LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000919ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000920 ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926CPPFLAGS
927CPP
928CXX
929CXXFLAGS
930CCC
931YACC
932YFLAGS
933CXXCPP
934F77
935FFLAGS'
936ac_subdirs_all='projects/sample
937projects/Stacker
938projects/privbracket
939projects/llvm-test
940projects/llvm-reopt
941projects/llvm-gcc
942projects/llvm-java
943projects/llvm-tv
944projects/llvm-poolalloc
945projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000946
947# Initialize some variables set by options.
948ac_init_help=
949ac_init_version=false
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000972# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000981includedir='${prefix}/include'
982oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000992
993ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000994ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000995for ac_option
996do
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000999 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001000 ac_prev=
1001 continue
1002 fi
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
John Criswell7a73b802003-06-30 21:59:07 +00001008
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1010
Reid Spencera773bd52006-08-04 18:18:08 +00001011 case $ac_dashdash$ac_option in
1012 --)
1013 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001014
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1019
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1024
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1031
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1034
Reid Spencera773bd52006-08-04 18:18:08 +00001035 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001036 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001038 datadir=$ac_optarg ;;
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1046
John Criswell7a73b802003-06-30 21:59:07 +00001047 -disable-* | --disable-*)
1048 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001054 eval enable_$ac_feature=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001065
1066 -enable-* | --enable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001073 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001074
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1083
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1086 with_gas=yes ;;
1087
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1094
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1099
Reid Spencera773bd52006-08-04 18:18:08 +00001100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101 ac_prev=htmldir ;;
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103 | --ht=*)
1104 htmldir=$ac_optarg ;;
1105
John Criswell7a73b802003-06-30 21:59:07 +00001106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1112
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1114 ac_prev=infodir ;;
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1117
1118 -libdir | --libdir | --libdi | --libd)
1119 ac_prev=libdir ;;
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1122
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1129
Reid Spencera773bd52006-08-04 18:18:08 +00001130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1134
John Criswell7a73b802003-06-30 21:59:07 +00001135 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001136 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001137 ac_prev=localstatedir ;;
1138 -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 localstatedir=$ac_optarg ;;
1141
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143 ac_prev=mandir ;;
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1146
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1149 with_fp=no ;;
1150
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1153 no_create=yes ;;
1154
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 no_recursion=yes ;;
1158
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1167
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169 ac_prev=prefix ;;
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1172
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1179
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1186
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1203
Reid Spencera773bd52006-08-04 18:18:08 +00001204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205 ac_prev=pdfdir ;;
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1208
1209 -psdir | --psdir | --psdi | --psd | --ps)
1210 ac_prev=psdir ;;
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 psdir=$ac_optarg ;;
1213
John Criswell7a73b802003-06-30 21:59:07 +00001214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 silent=yes ;;
1217
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
1222 sbindir=$ac_optarg ;;
1223
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
1233 sharedstatedir=$ac_optarg ;;
1234
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
1238 site=$ac_optarg ;;
1239
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1244
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1251
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1256
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1259
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1262
1263 -with-* | --with-*)
1264 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001270 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001271
1272 -without-* | --without-*)
1273 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001279 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1298
1299 -*) { echo "$as_me: error: unrecognized option: $ac_option
1300Try \`$0 --help' for more information." >&2
1301 { (exit 1); exit 1; }; }
1302 ;;
1303
1304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001310 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001311 export $ac_envvar ;;
1312
1313 *)
1314 # FIXME: should be removed in autoconf 3.0.
1315 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 { echo "$as_me: error: missing argument to $ac_option" >&2
1327 { (exit 1); exit 1; }; }
1328fi
1329
Reid Spencera773bd52006-08-04 18:18:08 +00001330# Be sure to have absolute directory names.
1331for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001335do
Reid Spencera773bd52006-08-04 18:18:08 +00001336 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001337 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001340 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001341 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001343done
1344
1345# There might be people who depend on the old broken behavior: `$host'
1346# used to hold the argument of --host etc.
1347# FIXME: To remove some day.
1348build=$build_alias
1349host=$host_alias
1350target=$target_alias
1351
1352# FIXME: To remove some day.
1353if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used." >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
1367
1368
Reid Spencera773bd52006-08-04 18:18:08 +00001369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 { echo "$as_me: error: Working directory cannot be determined" >&2
1373 { (exit 1); exit 1; }; }
1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 { echo "$as_me: error: pwd does not report name of working directory" >&2
1376 { (exit 1); exit 1; }; }
1377
1378
John Criswell7a73b802003-06-30 21:59:07 +00001379# Find the source files, if location was not specified.
1380if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001384$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001385 X"$0" : 'X\(//\)[^/]' \| \
1386 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001388echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001406 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001407 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001408 srcdir=..
1409 fi
1410else
1411 ac_srcdir_defaulted=no
1412fi
Reid Spencera773bd52006-08-04 18:18:08 +00001413if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001416 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001417fi
Reid Spencera773bd52006-08-04 18:18:08 +00001418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
1420 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001421 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001422 pwd)`
1423# When building in place, set srcdir=.
1424if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426fi
1427# Remove unnecessary trailing slashes from srcdir.
1428# Double slashes in file names in object file debugging info
1429# mess up M-x gdb in Emacs.
1430case $srcdir in
1431*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432esac
1433for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438done
John Criswell7a73b802003-06-30 21:59:07 +00001439
1440#
1441# Report the --help message.
1442#
1443if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
Reid Spencer1bc68642006-07-27 23:00:30 +00001447\`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001448
1449Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454Defaults for the options are specified in brackets.
1455
1456Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
John Criswell7a73b802003-06-30 21:59:07 +00001467Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473By default, \`make install' will install all the files in
1474\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476for instance \`--prefix=\$HOME'.
1477
1478For better control, use the options below.
1479
1480Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001500_ACEOF
1501
1502 cat <<\_ACEOF
1503
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512 case $ac_init_help in
Reid Spencer1bc68642006-07-27 23:00:30 +00001513 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001514 esac
1515 cat <<\_ACEOF
1516
1517Optional Features:
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001520 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001521 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001522 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001523 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001524 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001525 --enable-threads Use threads if available (default is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001526 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001527 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001528 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001529 --enable-shared[=PKGS] build shared libraries
1530 [default=enable_shared_default]
1531 --enable-static[=PKGS] build static libraries
1532 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001533 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001534 optimize for fast installation
1535 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001536 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001537
1538Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001541 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1542 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001543 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001544 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1547 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001548 --with-tags[=TAGS] include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001549
1550Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001551 CC C compiler command
1552 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001555 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001557 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001560 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1561 the first program found out of: `bison -y', `byacc', `yacc'.
1562 YFLAGS The list of arguments that will be passed by default to $YACC.
1563 This script will default YFLAGS to the empty string to avoid a
1564 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001565 CXXCPP C++ preprocessor
1566 F77 Fortran 77 compiler command
1567 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001568
1569Use these variables to override the choices made by `configure' or to help
1570it to find libraries and programs with nonstandard names/locations.
1571
1572Report bugs to <llvmbugs@cs.uiuc.edu>.
1573_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001574ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001575fi
1576
1577if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001580 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001581 ac_builddir=.
1582
Reid Spencera773bd52006-08-04 18:18:08 +00001583case "$ac_dir" in
1584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585*)
John Criswell7a73b802003-06-30 21:59:07 +00001586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 esac ;;
1593esac
1594ac_abs_top_builddir=$ac_pwd
1595ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596# for backward compatibility:
1597ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001598
1599case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001600 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001601 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001602 ac_top_srcdir=$ac_top_builddir_sub
1603 ac_abs_top_srcdir=$ac_pwd ;;
1604 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001605 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001606 ac_top_srcdir=$srcdir
1607 ac_abs_top_srcdir=$srcdir ;;
1608 *) # Relative name.
1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001612esac
Reid Spencera773bd52006-08-04 18:18:08 +00001613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001614
Reid Spencera773bd52006-08-04 18:18:08 +00001615 cd "$ac_dir" || { ac_status=$?; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001623 else
1624 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001625 fi || ac_status=$?
1626 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001627 done
1628fi
1629
Reid Spencera773bd52006-08-04 18:18:08 +00001630test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001631if $ac_init_version; then
1632 cat <<\_ACEOF
Reid Spencer1bc68642006-07-27 23:00:30 +00001633llvm configure 1.9cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001634generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001635
Reid Spencera773bd52006-08-04 18:18:08 +00001636Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001638This configure script is free software; the Free Software Foundation
1639gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001640
John Criswellc0c186d2005-11-08 21:11:33 +00001641Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001642_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001643 exit
John Criswell7a73b802003-06-30 21:59:07 +00001644fi
Reid Spencera773bd52006-08-04 18:18:08 +00001645cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001646This file contains any messages produced by compilers while
1647running configure, to aid debugging if configure makes a mistake.
1648
Reid Spencer1bc68642006-07-27 23:00:30 +00001649It was created by llvm $as_me 1.9cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001650generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001651
1652 $ $0 $@
1653
1654_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001655exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001656{
1657cat <<_ASUNAME
1658## --------- ##
1659## Platform. ##
1660## --------- ##
1661
1662hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667
1668/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670
1671/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1672/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1673/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001674/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001675/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1676/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1677/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678
1679_ASUNAME
1680
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 echo "PATH: $as_dir"
1687done
Reid Spencera773bd52006-08-04 18:18:08 +00001688IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001689
1690} >&5
1691
1692cat >&5 <<_ACEOF
1693
1694
1695## ----------- ##
1696## Core tests. ##
1697## ----------- ##
1698
1699_ACEOF
1700
1701
1702# Keep a trace of the command line.
1703# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001704# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001705# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001706# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001707ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001708ac_configure_args0=
1709ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001710ac_must_keep_next=false
1711for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001712do
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 for ac_arg
1714 do
1715 case $ac_arg in
1716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718 | -silent | --silent | --silen | --sile | --sil)
1719 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001720 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 esac
1723 case $ac_pass in
1724 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 2)
1726 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001728 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001729 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001730 case $ac_arg in
1731 *=* | --config-cache | -C | -disable-* | --disable-* \
1732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734 | -with-* | --with-* | -without-* | --without-* | --x)
1735 case "$ac_configure_args0 " in
1736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737 esac
1738 ;;
1739 -* ) ac_must_keep_next=true ;;
1740 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001741 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001742 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ;;
1744 esac
1745 done
John Criswell7a73b802003-06-30 21:59:07 +00001746done
John Criswell0c38eaf2003-09-10 15:17:25 +00001747$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748$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 +00001749
1750# When interrupted or exit'd, cleanup temporary files, and complete
1751# config.log. We remove comments because anyway the quotes in there
1752# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001753# WARNING: Use '\'' to represent an apostrophe within the trap.
1754# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001755trap 'exit_status=$?
1756 # Save into config.log some information that might help in debugging.
1757 {
1758 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001759
John Criswell7a73b802003-06-30 21:59:07 +00001760 cat <<\_ASBOX
1761## ---------------- ##
1762## Cache variables. ##
1763## ---------------- ##
1764_ASBOX
1765 echo
1766 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001767(
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in #(
1771 *${as_nl}*)
1772 case $ac_var in #(
1773 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775 esac
1776 case $ac_var in #(
1777 _ | IFS | as_nl) ;; #(
1778 *) $as_unset $ac_var ;;
1779 esac ;;
1780 esac
1781 done
John Criswell7a73b802003-06-30 21:59:07 +00001782 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001783 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001785 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001786 "s/'\''/'\''\\\\'\'''\''/g;
1787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001789 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001791 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001792 esac |
1793 sort
1794)
John Criswell7a73b802003-06-30 21:59:07 +00001795 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001796
1797 cat <<\_ASBOX
1798## ----------------- ##
1799## Output variables. ##
1800## ----------------- ##
1801_ASBOX
1802 echo
1803 for ac_var in $ac_subst_vars
1804 do
Reid Spencera773bd52006-08-04 18:18:08 +00001805 eval ac_val=\$$ac_var
1806 case $ac_val in
1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 esac
1809 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001810 done | sort
1811 echo
1812
1813 if test -n "$ac_subst_files"; then
1814 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001815## ------------------- ##
1816## File substitutions. ##
1817## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001818_ASBOX
1819 echo
1820 for ac_var in $ac_subst_files
1821 do
Reid Spencera773bd52006-08-04 18:18:08 +00001822 eval ac_val=\$$ac_var
1823 case $ac_val in
1824 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 esac
1826 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001827 done | sort
1828 echo
1829 fi
1830
John Criswell7a73b802003-06-30 21:59:07 +00001831 if test -s confdefs.h; then
1832 cat <<\_ASBOX
1833## ----------- ##
1834## confdefs.h. ##
1835## ----------- ##
1836_ASBOX
1837 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001838 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001839 echo
1840 fi
1841 test "$ac_signal" != 0 &&
1842 echo "$as_me: caught signal $ac_signal"
1843 echo "$as_me: exit $exit_status"
1844 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001847 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001848' 0
John Criswell7a73b802003-06-30 21:59:07 +00001849for ac_signal in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1851done
1852ac_signal=0
1853
1854# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001855rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001856
1857# Predefined preprocessor variables.
1858
1859cat >>confdefs.h <<_ACEOF
1860#define PACKAGE_NAME "$PACKAGE_NAME"
1861_ACEOF
1862
1863
1864cat >>confdefs.h <<_ACEOF
1865#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866_ACEOF
1867
1868
1869cat >>confdefs.h <<_ACEOF
1870#define PACKAGE_VERSION "$PACKAGE_VERSION"
1871_ACEOF
1872
1873
1874cat >>confdefs.h <<_ACEOF
1875#define PACKAGE_STRING "$PACKAGE_STRING"
1876_ACEOF
1877
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881_ACEOF
1882
1883
1884# Let the site file select an alternate cache file if it wants to.
1885# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001886if test -n "$CONFIG_SITE"; then
1887 set x "$CONFIG_SITE"
1888elif test "x$prefix" != xNONE; then
1889 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890else
1891 set x "$ac_default_prefix/share/config.site" \
1892 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001893fi
Reid Spencera773bd52006-08-04 18:18:08 +00001894shift
1895for ac_site_file
1896do
John Criswell7a73b802003-06-30 21:59:07 +00001897 if test -r "$ac_site_file"; then
1898 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899echo "$as_me: loading site script $ac_site_file" >&6;}
1900 sed 's/^/| /' "$ac_site_file" >&5
1901 . "$ac_site_file"
1902 fi
1903done
1904
1905if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special
1907 # files actually), so we avoid doing that.
1908 if test -f "$cache_file"; then
1909 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910echo "$as_me: loading cache $cache_file" >&6;}
1911 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001914 esac
1915 fi
1916else
1917 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918echo "$as_me: creating cache $cache_file" >&6;}
1919 >$cache_file
1920fi
1921
1922# Check that the precious variables saved in the cache have kept the same
1923# value.
1924ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001925for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001930 case $ac_old_set,$ac_new_set in
1931 set,)
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1935 ,set)
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1939 ,);;
1940 *)
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001943echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001944 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001945echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001947echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001948 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001949 fi;;
1950 esac
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1953 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001955 *) ac_arg=$ac_var=$ac_new_val ;;
1956 esac
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 esac
1961 fi
1962done
1963if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1969fi
1970
Reid Spencera773bd52006-08-04 18:18:08 +00001971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
John Criswell7a73b802003-06-30 21:59:07 +00001995ac_ext=c
1996ac_cpp='$CPP $CPPFLAGS'
1997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000
2001
2002
Misha Brukman19098e52005-05-12 22:15:34 +00002003LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002004
2005
2006
2007
2008
2009
2010
John Criswell7a73b802003-06-30 21:59:07 +00002011ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002012for ac_dir in autoconf "$srcdir"/autoconf; do
2013 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/install-sh -c"
2016 break
Reid Spencera773bd52006-08-04 18:18:08 +00002017 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/install.sh -c"
2020 break
Reid Spencera773bd52006-08-04 18:18:08 +00002021 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002022 ac_aux_dir=$ac_dir
2023 ac_install_sh="$ac_aux_dir/shtool install -c"
2024 break
2025 fi
2026done
2027if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002028 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2029echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002030 { (exit 1); exit 1; }; }
2031fi
Reid Spencera773bd52006-08-04 18:18:08 +00002032
2033# These three variables are undocumented and unsupported,
2034# and are intended to be withdrawn in a future Autoconf release.
2035# They can cause serious problems if a builder's source tree is in a directory
2036# whose full name contains unusual characters.
2037ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040
John Criswell7a73b802003-06-30 21:59:07 +00002041
John Criswell392aaa32003-07-22 19:18:09 +00002042
Reid Spencer2706f8c2004-09-19 23:53:36 +00002043if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002044 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2045 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002046echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2047 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048 fi
John Criswell93e1c722003-09-15 17:04:06 +00002049fi
2050
John Criswell33a911a2003-11-25 20:36:46 +00002051for i in `ls ${srcdir}/projects`
2052do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002053 if test -d ${srcdir}/projects/${i} ; then
2054 case ${i} in
2055 "CVS") ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002056 "sample") subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002057 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002058 "Stacker") subdirs="$subdirs projects/Stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002059 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002060 "privbracket") subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002061 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002062 "llvm-test") subdirs="$subdirs projects/llvm-test"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002063 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002064 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002065;;
Reid Spencera773bd52006-08-04 18:18:08 +00002066 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002068 "llvm-java") subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002070 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002071 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002072 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002073 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002074 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002075 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002076 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002077 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2078echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002079 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002080 esac
John Criswell33a911a2003-11-25 20:36:46 +00002081 fi
2082done
John Criswell559a6c12003-09-30 16:31:48 +00002083
John Criswell7a73b802003-06-30 21:59:07 +00002084
2085# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002086$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002089 { (exit 1); exit 1; }; }
2090
Reid Spencera773bd52006-08-04 18:18:08 +00002091{ echo "$as_me:$LINENO: checking build system type" >&5
2092echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002093if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
Reid Spencera773bd52006-08-04 18:18:08 +00002096 ac_build_alias=$build_alias
2097test "x$ac_build_alias" = x &&
2098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002103ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002106 { (exit 1); exit 1; }; }
2107
2108fi
Reid Spencera773bd52006-08-04 18:18:08 +00002109{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110echo "${ECHO_T}$ac_cv_build" >&6; }
2111case $ac_cv_build in
2112*-*-*) ;;
2113*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2116esac
John Criswell7a73b802003-06-30 21:59:07 +00002117build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002118ac_save_IFS=$IFS; IFS='-'
2119set x $ac_cv_build
2120shift
2121build_cpu=$1
2122build_vendor=$2
2123shift; shift
2124# Remember, the first character of IFS is used to create $*,
2125# except with old shells:
2126build_os=$*
2127IFS=$ac_save_IFS
2128case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002129
2130
Reid Spencera773bd52006-08-04 18:18:08 +00002131{ echo "$as_me:$LINENO: checking host system type" >&5
2132echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002133if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
Reid Spencera773bd52006-08-04 18:18:08 +00002136 if test "x$host_alias" = x; then
2137 ac_cv_host=$ac_cv_build
2138else
2139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002142 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002143fi
John Criswell7a73b802003-06-30 21:59:07 +00002144
2145fi
Reid Spencera773bd52006-08-04 18:18:08 +00002146{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147echo "${ECHO_T}$ac_cv_host" >&6; }
2148case $ac_cv_host in
2149*-*-*) ;;
2150*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2153esac
John Criswell7a73b802003-06-30 21:59:07 +00002154host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002155ac_save_IFS=$IFS; IFS='-'
2156set x $ac_cv_host
2157shift
2158host_cpu=$1
2159host_vendor=$2
2160shift; shift
2161# Remember, the first character of IFS is used to create $*,
2162# except with old shells:
2163host_os=$*
2164IFS=$ac_save_IFS
2165case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002166
2167
Reid Spencera773bd52006-08-04 18:18:08 +00002168{ echo "$as_me:$LINENO: checking target system type" >&5
2169echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002170if test "${ac_cv_target+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
Reid Spencera773bd52006-08-04 18:18:08 +00002173 if test "x$target_alias" = x; then
2174 ac_cv_target=$ac_cv_host
2175else
2176 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2178echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002179 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002180fi
John Criswell7a73b802003-06-30 21:59:07 +00002181
2182fi
Reid Spencera773bd52006-08-04 18:18:08 +00002183{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2184echo "${ECHO_T}$ac_cv_target" >&6; }
2185case $ac_cv_target in
2186*-*-*) ;;
2187*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2188echo "$as_me: error: invalid value of canonical target" >&2;}
2189 { (exit 1); exit 1; }; };;
2190esac
John Criswell7a73b802003-06-30 21:59:07 +00002191target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002192ac_save_IFS=$IFS; IFS='-'
2193set x $ac_cv_target
2194shift
2195target_cpu=$1
2196target_vendor=$2
2197shift; shift
2198# Remember, the first character of IFS is used to create $*,
2199# except with old shells:
2200target_os=$*
2201IFS=$ac_save_IFS
2202case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002203
2204
2205# The aliases save the names the user supplied, while $host etc.
2206# will get canonicalized.
2207test -n "$target_alias" &&
2208 test "$program_prefix$program_suffix$program_transform_name" = \
2209 NONENONEs,x,x, &&
2210 program_prefix=${target_alias}-
2211
Reid Spencera773bd52006-08-04 18:18:08 +00002212{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2213echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002214if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002217 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 llvm_cv_os_type="AIX"
2222 llvm_cv_platform_type="Unix" ;;
2223 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002226 llvm_cv_os_type="Cygwin"
2227 llvm_cv_platform_type="Unix" ;;
2228 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002229 llvm_cv_link_all_option="-Wl,-all_load"
2230 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002231 llvm_cv_os_type="Darwin"
2232 llvm_cv_platform_type="Unix" ;;
2233 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002236 llvm_cv_os_type="FreeBSD"
2237 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002238 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002241 llvm_cv_os_type="OpenBSD"
2242 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002243 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002246 llvm_cv_os_type="HP-UX"
2247 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="Interix"
2252 llvm_cv_platform_type="Unix" ;;
2253 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 llvm_cv_os_type="Linux"
2257 llvm_cv_platform_type="Unix" ;;
2258 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,-z,allextract"
2260 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 llvm_cv_os_type="SunOS"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="Win32"
2267 llvm_cv_platform_type="Win32" ;;
2268 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="MingW"
2272 llvm_cv_platform_type="Win32" ;;
2273 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option=""
2275 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="Unknown"
2277 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002278esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002279fi
Reid Spencera773bd52006-08-04 18:18:08 +00002280{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2281echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002282
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283if test "$llvm_cv_os_type" = "Unknown" ; then
2284 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2285echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002286 { (exit 1); exit 1; }; }
2287fi
2288
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002290
2291
Reid Spencera773bd52006-08-04 18:18:08 +00002292LINKALL=$llvm_cv_link_all_option
2293
2294NOLINKALL=$llvm_cv_no_link_all_option
2295
2296
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297case $llvm_cv_platform_type in
2298 Unix)
2299
2300cat >>confdefs.h <<\_ACEOF
2301#define LLVM_ON_UNIX 1
2302_ACEOF
2303
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002304 LLVM_ON_UNIX=1
2305
2306 LLVM_ON_WIN32=0
2307
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308 ;;
2309 Win32)
2310
2311cat >>confdefs.h <<\_ACEOF
2312#define LLVM_ON_WIN32 1
2313_ACEOF
2314
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002315 LLVM_ON_UNIX=0
2316
2317 LLVM_ON_WIN32=1
2318
Reid Spencer7b3e8512004-12-24 06:29:05 +00002319 ;;
2320esac
2321
Reid Spencera773bd52006-08-04 18:18:08 +00002322{ echo "$as_me:$LINENO: checking target architecture" >&5
2323echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002324if test "${llvm_cv_target_arch+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002328 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002329 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002330 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2331 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002332 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002333 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002334 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002335esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002336fi
Reid Spencera773bd52006-08-04 18:18:08 +00002337{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2338echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002339
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002340if test "$llvm_cv_target_arch" = "Unknown" ; then
2341 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2342echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2343fi
John Criswell76595452003-07-01 22:07:39 +00002344
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002346
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002347
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348ac_ext=c
2349ac_cpp='$CPP $CPPFLAGS'
2350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002353if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2355set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358if test "${ac_cv_prog_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2363else
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002370 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 +00002371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375done
2376done
Reid Spencera773bd52006-08-04 18:18:08 +00002377IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378
2379fi
2380fi
2381CC=$ac_cv_prog_CC
2382if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002383 { echo "$as_me:$LINENO: result: $CC" >&5
2384echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002385else
Reid Spencera773bd52006-08-04 18:18:08 +00002386 { echo "$as_me:$LINENO: result: no" >&5
2387echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388fi
2389
Reid Spencera773bd52006-08-04 18:18:08 +00002390
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391fi
2392if test -z "$ac_cv_prog_CC"; then
2393 ac_ct_CC=$CC
2394 # Extract the first word of "gcc", so it can be a program name with args.
2395set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400else
2401 if test -n "$ac_ct_CC"; then
2402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403else
2404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002410 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 +00002411 ac_cv_prog_ac_ct_CC="gcc"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415done
2416done
Reid Spencera773bd52006-08-04 18:18:08 +00002417IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418
2419fi
2420fi
2421ac_ct_CC=$ac_cv_prog_ac_ct_CC
2422if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002423 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2424echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425else
Reid Spencera773bd52006-08-04 18:18:08 +00002426 { echo "$as_me:$LINENO: result: no" >&5
2427echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428fi
2429
Reid Spencera773bd52006-08-04 18:18:08 +00002430 if test "x$ac_ct_CC" = x; then
2431 CC=""
2432 else
2433 case $cross_compiling:$ac_tool_warned in
2434yes:)
2435{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436whose name does not start with the host triplet. If you think this
2437configuration is useful to you, please write to autoconf@gnu.org." >&5
2438echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439whose name does not start with the host triplet. If you think this
2440configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2441ac_tool_warned=yes ;;
2442esac
2443 CC=$ac_ct_CC
2444 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445else
2446 CC="$ac_cv_prog_CC"
2447fi
2448
2449if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002450 if test -n "$ac_tool_prefix"; then
2451 # 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 +00002452set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455if test "${ac_cv_prog_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458 if test -n "$CC"; then
2459 ac_cv_prog_CC="$CC" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002467 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 +00002468 ac_cv_prog_CC="${ac_tool_prefix}cc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472done
2473done
Reid Spencera773bd52006-08-04 18:18:08 +00002474IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475
2476fi
2477fi
2478CC=$ac_cv_prog_CC
2479if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002480 { echo "$as_me:$LINENO: result: $CC" >&5
2481echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
Reid Spencera773bd52006-08-04 18:18:08 +00002483 { echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485fi
2486
Reid Spencera773bd52006-08-04 18:18:08 +00002487
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489fi
2490if test -z "$CC"; then
2491 # Extract the first word of "cc", so it can be a program name with args.
2492set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500else
2501 ac_prog_rejected=no
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002508 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 +00002509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2510 ac_prog_rejected=yes
2511 continue
2512 fi
2513 ac_cv_prog_CC="cc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517done
2518done
Reid Spencera773bd52006-08-04 18:18:08 +00002519IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520
2521if test $ac_prog_rejected = yes; then
2522 # We found a bogon in the path, so make sure we never use it.
2523 set dummy $ac_cv_prog_CC
2524 shift
2525 if test $# != 0; then
2526 # We chose a different compiler from the bogus one.
2527 # However, it has the same basename, so the bogon will be chosen
2528 # first if we set CC to just the basename; use the full file name.
2529 shift
2530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2531 fi
2532fi
2533fi
2534fi
2535CC=$ac_cv_prog_CC
2536if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002537 { echo "$as_me:$LINENO: result: $CC" >&5
2538echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539else
Reid Spencera773bd52006-08-04 18:18:08 +00002540 { echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542fi
2543
Reid Spencera773bd52006-08-04 18:18:08 +00002544
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545fi
2546if test -z "$CC"; then
2547 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002548 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002549 do
2550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002559else
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002566 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 +00002567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571done
2572done
Reid Spencera773bd52006-08-04 18:18:08 +00002573IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002574
2575fi
2576fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577CC=$ac_cv_prog_CC
2578if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002579 { echo "$as_me:$LINENO: result: $CC" >&5
2580echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002581else
Reid Spencera773bd52006-08-04 18:18:08 +00002582 { echo "$as_me:$LINENO: result: no" >&5
2583echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002584fi
2585
Reid Spencera773bd52006-08-04 18:18:08 +00002586
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002588 done
2589fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590if test -z "$CC"; then
2591 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002592 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002593do
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601 if test -n "$ac_ct_CC"; then
2602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002610 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 +00002611 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615done
2616done
Reid Spencera773bd52006-08-04 18:18:08 +00002617IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002618
2619fi
2620fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621ac_ct_CC=$ac_cv_prog_ac_ct_CC
2622if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002623 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2624echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002625else
Reid Spencera773bd52006-08-04 18:18:08 +00002626 { echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002628fi
2629
Reid Spencera773bd52006-08-04 18:18:08 +00002630
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002632done
John Criswell7a73b802003-06-30 21:59:07 +00002633
Reid Spencera773bd52006-08-04 18:18:08 +00002634 if test "x$ac_ct_CC" = x; then
2635 CC=""
2636 else
2637 case $cross_compiling:$ac_tool_warned in
2638yes:)
2639{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640whose name does not start with the host triplet. If you think this
2641configuration is useful to you, please write to autoconf@gnu.org." >&5
2642echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643whose name does not start with the host triplet. If you think this
2644configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645ac_tool_warned=yes ;;
2646esac
2647 CC=$ac_ct_CC
2648 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649fi
2650
John Criswell7a73b802003-06-30 21:59:07 +00002651fi
2652
2653
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2655See \`config.log' for more details." >&5
2656echo "$as_me: error: no acceptable C compiler found in \$PATH
2657See \`config.log' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2659
John Criswell7a73b802003-06-30 21:59:07 +00002660# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002661echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002662ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002663{ (ac_try="$ac_compiler --version >&5"
2664case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667esac
2668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002673{ (ac_try="$ac_compiler -v >&5"
2674case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677esac
2678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002683{ (ac_try="$ac_compiler -V >&5"
2684case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
2688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693
2694cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002695/* confdefs.h. */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002700
John Criswell7a73b802003-06-30 21:59:07 +00002701int
2702main ()
2703{
2704
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002710ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002711# Try to create an executable without -o first, disregard a.out.
2712# It will help us diagnose broken compilers, and finding out an intuition
2713# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002714{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2715echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002716ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002717#
2718# List of possible output files, starting from the most likely.
2719# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2720# only as a last resort. b.out is created by i960 compilers.
2721ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2722#
2723# The IRIX 6 linker writes into existing files which may not be
2724# executable, retaining their permissions. Remove them first so a
2725# subsequent execution test works.
2726ac_rmfiles=
2727for ac_file in $ac_files
2728do
2729 case $ac_file in
2730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2731 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732 esac
2733done
2734rm -f $ac_rmfiles
2735
2736if { (ac_try="$ac_link_default"
2737case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740esac
2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002746 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2747# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2748# in a Makefile. We should not override ac_cv_exeext if it was cached,
2749# so that the user can short-circuit this test for compilers unknown to
2750# Autoconf.
2751for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002752do
2753 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002754 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002756 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002757 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002758 # We found the default executable, but exeext='' is most
2759 # certainly right.
2760 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002761 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002762 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2763 then :; else
2764 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765 fi
2766 # We set ac_cv_exeext here because the later test for it is not
2767 # safe: cross compilers may not add the suffix if given an `-o'
2768 # argument, so we may need to know it at that point already.
2769 # Even if this section looks crufty: it has the advantage of
2770 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002771 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002772 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002773 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002774 esac
2775done
Reid Spencera773bd52006-08-04 18:18:08 +00002776test "$ac_cv_exeext" = no && ac_cv_exeext=
2777
John Criswell7a73b802003-06-30 21:59:07 +00002778else
2779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002780sed 's/^/| /' conftest.$ac_ext >&5
2781
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002782{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002783See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002784echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002785See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002786 { (exit 77); exit 77; }; }
2787fi
2788
2789ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002790{ echo "$as_me:$LINENO: result: $ac_file" >&5
2791echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002792
Reid Spencera773bd52006-08-04 18:18:08 +00002793# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002794# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002795{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2796echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002797# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2798# If not cross compiling, check that we can run a simple program.
2799if test "$cross_compiling" != yes; then
2800 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002801 { (case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 cross_compiling=no
2811 else
2812 if test "$cross_compiling" = maybe; then
2813 cross_compiling=yes
2814 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002815 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002816If you meant to cross compile, use \`--host'.
2817See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002818echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002819If you meant to cross compile, use \`--host'.
2820See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002821 { (exit 1); exit 1; }; }
2822 fi
2823 fi
2824fi
Reid Spencera773bd52006-08-04 18:18:08 +00002825{ echo "$as_me:$LINENO: result: yes" >&5
2826echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002827
John Criswell0c38eaf2003-09-10 15:17:25 +00002828rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002829ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002830# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002831# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002832{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2833echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2834{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2835echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002836
Reid Spencera773bd52006-08-04 18:18:08 +00002837{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2838echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2839if { (ac_try="$ac_link"
2840case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; then
2849 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2850# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2851# work properly (i.e., refer to `conftest.exe'), while it won't with
2852# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002853for ac_file in conftest.exe conftest conftest.*; do
2854 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002855 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002857 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002858 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002859 * ) break;;
2860 esac
2861done
2862else
John Criswell0c38eaf2003-09-10 15:17:25 +00002863 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2864See \`config.log' for more details." >&5
2865echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2866See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002867 { (exit 1); exit 1; }; }
2868fi
2869
2870rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002871{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2872echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002873
2874rm -f conftest.$ac_ext
2875EXEEXT=$ac_cv_exeext
2876ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002877{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2878echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002879if test "${ac_cv_objext+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002883/* confdefs.h. */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002888
John Criswell7a73b802003-06-30 21:59:07 +00002889int
2890main ()
2891{
2892
2893 ;
2894 return 0;
2895}
2896_ACEOF
2897rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002898if { (ac_try="$ac_compile"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002908 for ac_file in conftest.o conftest.obj conftest.*; do
2909 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002910 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2913 break;;
2914 esac
2915done
2916else
2917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2921See \`config.log' for more details." >&5
2922echo "$as_me: error: cannot compute suffix of object files: cannot compile
2923See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002924 { (exit 1); exit 1; }; }
2925fi
2926
2927rm -f conftest.$ac_cv_objext conftest.$ac_ext
2928fi
Reid Spencera773bd52006-08-04 18:18:08 +00002929{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2930echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002931OBJEXT=$ac_cv_objext
2932ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002933{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2934echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002935if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002944
John Criswell7a73b802003-06-30 21:59:07 +00002945int
2946main ()
2947{
2948#ifndef __GNUC__
2949 choke me
2950#endif
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002957if { (ac_try="$ac_compile"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002964 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; } &&
2980 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002981 { (case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2990 ac_compiler_gnu=yes
2991else
2992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002993sed 's/^/| /' conftest.$ac_ext >&5
2994
Reid Spencera773bd52006-08-04 18:18:08 +00002995 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002996fi
Reid Spencera773bd52006-08-04 18:18:08 +00002997
2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002999ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003000
3001fi
Reid Spencera773bd52006-08-04 18:18:08 +00003002{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3003echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003004GCC=`test $ac_compiler_gnu = yes && echo yes`
3005ac_test_CFLAGS=${CFLAGS+set}
3006ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003007{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3008echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003009if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
Reid Spencera773bd52006-08-04 18:18:08 +00003012 ac_save_c_werror_flag=$ac_c_werror_flag
3013 ac_c_werror_flag=yes
3014 ac_cv_prog_cc_g=no
3015 CFLAGS="-g"
3016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003022
John Criswell7a73b802003-06-30 21:59:07 +00003023int
3024main ()
3025{
3026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003032if { (ac_try="$ac_compile"
3033case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003056 { (case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003065 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003066else
3067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003068sed 's/^/| /' conftest.$ac_ext >&5
3069
Reid Spencera773bd52006-08-04 18:18:08 +00003070 CFLAGS=""
3071 cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
3087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 :
3121else
3122 echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 ac_c_werror_flag=$ac_save_c_werror_flag
3126 CFLAGS="-g"
3127 cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
3133
3134int
3135main ()
3136{
3137
3138 ;
3139 return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext
3143if { (ac_try="$ac_compile"
3144case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try='test -s conftest.$ac_objext'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_try") 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3176 ac_cv_prog_cc_g=yes
3177else
3178 echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181
John Criswell7a73b802003-06-30 21:59:07 +00003182fi
Reid Spencera773bd52006-08-04 18:18:08 +00003183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003185fi
Reid Spencera773bd52006-08-04 18:18:08 +00003186
3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188fi
3189
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3192fi
3193{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3194echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003195if test "$ac_test_CFLAGS" = set; then
3196 CFLAGS=$ac_save_CFLAGS
3197elif test $ac_cv_prog_cc_g = yes; then
3198 if test "$GCC" = yes; then
3199 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003200 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003201 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003202 fi
3203else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204 if test "$GCC" = yes; then
3205 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003206 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003208 fi
3209fi
Reid Spencera773bd52006-08-04 18:18:08 +00003210{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3211echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3212if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
Reid Spencera773bd52006-08-04 18:18:08 +00003215 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216ac_save_CC=$CC
3217cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h. */
3223#include <stdarg.h>
3224#include <stdio.h>
3225#include <sys/types.h>
3226#include <sys/stat.h>
3227/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3228struct buf { int x; };
3229FILE * (*rcsopen) (struct buf *, struct stat *, int);
3230static char *e (p, i)
3231 char **p;
3232 int i;
3233{
3234 return p[i];
3235}
3236static char *f (char * (*g) (char **, int), char **p, ...)
3237{
3238 char *s;
3239 va_list v;
3240 va_start (v,p);
3241 s = g (p, va_arg (v,int));
3242 va_end (v);
3243 return s;
3244}
3245
3246/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3247 function prototypes and stuff, but not '\xHH' hex character constants.
3248 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003249 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3251 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003252 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3254
Reid Spencera773bd52006-08-04 18:18:08 +00003255/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3256 inside strings and character constants. */
3257#define FOO(x) 'x'
3258int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3259
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260int test (int i, double x);
3261struct s1 {int (*f) (int a);};
3262struct s2 {int (*f) (double a);};
3263int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3264int argc;
3265char **argv;
3266int
3267main ()
3268{
3269return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 ;
3271 return 0;
3272}
3273_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003274for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276do
3277 CC="$ac_save_CC $ac_arg"
3278 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003279if { (ac_try="$ac_compile"
3280case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283esac
3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3293 { (case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296esac
3297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; } &&
3302 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003303 { (case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
3307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003312 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313else
3314 echo "$as_me: failed program was:" >&5
3315sed 's/^/| /' conftest.$ac_ext >&5
3316
Reid Spencera773bd52006-08-04 18:18:08 +00003317
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318fi
Reid Spencera773bd52006-08-04 18:18:08 +00003319
3320rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322done
Reid Spencera773bd52006-08-04 18:18:08 +00003323rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324CC=$ac_save_CC
3325
3326fi
Reid Spencera773bd52006-08-04 18:18:08 +00003327# AC_CACHE_VAL
3328case "x$ac_cv_prog_cc_c89" in
3329 x)
3330 { echo "$as_me:$LINENO: result: none needed" >&5
3331echo "${ECHO_T}none needed" >&6; } ;;
3332 xno)
3333 { echo "$as_me:$LINENO: result: unsupported" >&5
3334echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003336 CC="$CC $ac_cv_prog_cc_c89"
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339esac
3340
John Criswell0c38eaf2003-09-10 15:17:25 +00003341
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342ac_ext=c
3343ac_cpp='$CPP $CPPFLAGS'
3344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
3348
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003354{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3355echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356# On Suns, sometimes $CPP names a directory.
3357if test -n "$CPP" && test -d "$CPP"; then
3358 CPP=
3359fi
3360if test -z "$CPP"; then
3361 if test "${ac_cv_prog_CPP+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364 # Double quotes because CPP needs to be expanded
3365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3366 do
3367 ac_preproc_ok=false
3368for ac_c_preproc_warn_flag in '' yes
3369do
3370 # Use a header file that comes with gcc, so configuring glibc
3371 # with a fresh cross-compiler works.
3372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373 # <limits.h> exists even on freestanding compilers.
3374 # On the NeXT, cc -E runs the code through the compiler's parser,
3375 # not just through cpp. "Syntax error" is here to catch this case.
3376 cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h. */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h. */
3382#ifdef __STDC__
3383# include <limits.h>
3384#else
3385# include <assert.h>
3386#endif
3387 Syntax error
3388_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003389if { (ac_try="$ac_cpp conftest.$ac_ext"
3390case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405 else
3406 ac_cpp_err=
3407 fi
3408else
3409 ac_cpp_err=yes
3410fi
3411if test -z "$ac_cpp_err"; then
3412 :
3413else
3414 echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417 # Broken: fails on valid input.
3418continue
3419fi
Reid Spencera773bd52006-08-04 18:18:08 +00003420
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421rm -f conftest.err conftest.$ac_ext
3422
Reid Spencera773bd52006-08-04 18:18:08 +00003423 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424 # can be detected and how.
3425 cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h. */
3431#include <ac_nonexistent.h>
3432_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003433if { (ac_try="$ac_cpp conftest.$ac_ext"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3457continue
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 # Passes both tests.
3463ac_preproc_ok=:
3464break
3465fi
Reid Spencera773bd52006-08-04 18:18:08 +00003466
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467rm -f conftest.err conftest.$ac_ext
3468
3469done
3470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471rm -f conftest.err conftest.$ac_ext
3472if $ac_preproc_ok; then
3473 break
3474fi
3475
3476 done
3477 ac_cv_prog_CPP=$CPP
3478
3479fi
3480 CPP=$ac_cv_prog_CPP
3481else
3482 ac_cv_prog_CPP=$CPP
3483fi
Reid Spencera773bd52006-08-04 18:18:08 +00003484{ echo "$as_me:$LINENO: result: $CPP" >&5
3485echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003486ac_preproc_ok=false
3487for ac_c_preproc_warn_flag in '' yes
3488do
3489 # Use a header file that comes with gcc, so configuring glibc
3490 # with a fresh cross-compiler works.
3491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492 # <limits.h> exists even on freestanding compilers.
3493 # On the NeXT, cc -E runs the code through the compiler's parser,
3494 # not just through cpp. "Syntax error" is here to catch this case.
3495 cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h. */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h. */
3501#ifdef __STDC__
3502# include <limits.h>
3503#else
3504# include <assert.h>
3505#endif
3506 Syntax error
3507_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003508if { (ac_try="$ac_cpp conftest.$ac_ext"
3509case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512esac
3513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null; then
3521 if test -s conftest.err; then
3522 ac_cpp_err=$ac_c_preproc_warn_flag
3523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524 else
3525 ac_cpp_err=
3526 fi
3527else
3528 ac_cpp_err=yes
3529fi
3530if test -z "$ac_cpp_err"; then
3531 :
3532else
3533 echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 # Broken: fails on valid input.
3537continue
3538fi
Reid Spencera773bd52006-08-04 18:18:08 +00003539
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003540rm -f conftest.err conftest.$ac_ext
3541
Reid Spencera773bd52006-08-04 18:18:08 +00003542 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003543 # can be detected and how.
3544 cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h. */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h. */
3550#include <ac_nonexistent.h>
3551_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003552if { (ac_try="$ac_cpp conftest.$ac_ext"
3553case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556esac
3557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 else
3569 ac_cpp_err=
3570 fi
3571else
3572 ac_cpp_err=yes
3573fi
3574if test -z "$ac_cpp_err"; then
3575 # Broken: success on invalid input.
3576continue
3577else
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 # Passes both tests.
3582ac_preproc_ok=:
3583break
3584fi
Reid Spencera773bd52006-08-04 18:18:08 +00003585
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586rm -f conftest.err conftest.$ac_ext
3587
3588done
3589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590rm -f conftest.err conftest.$ac_ext
3591if $ac_preproc_ok; then
3592 :
3593else
3594 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3595See \`config.log' for more details." >&5
3596echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3597See \`config.log' for more details." >&2;}
3598 { (exit 1); exit 1; }; }
3599fi
3600
John Criswell7a73b802003-06-30 21:59:07 +00003601ac_ext=c
3602ac_cpp='$CPP $CPPFLAGS'
3603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606
John Criswell7a73b802003-06-30 21:59:07 +00003607
Reid Spencera773bd52006-08-04 18:18:08 +00003608{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3609echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003610if test "${ac_cv_path_GREP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612else
Reid Spencera773bd52006-08-04 18:18:08 +00003613 # Extract the first word of "grep ggrep" to use in msg output
3614if test -z "$GREP"; then
3615set dummy grep ggrep; ac_prog_name=$2
3616if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
Reid Spencera773bd52006-08-04 18:18:08 +00003619 ac_path_GREP_found=false
3620# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003623do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003626 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003627 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3629 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3630 # Check for GNU ac_path_GREP and select it if it is found.
3631 # Check for GNU $ac_path_GREP
3632case `"$ac_path_GREP" --version 2>&1` in
3633*GNU*)
3634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3635*)
3636 ac_count=0
3637 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3638 while :
3639 do
3640 cat "conftest.in" "conftest.in" >"conftest.tmp"
3641 mv "conftest.tmp" "conftest.in"
3642 cp "conftest.in" "conftest.nl"
3643 echo 'GREP' >> "conftest.nl"
3644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3646 ac_count=`expr $ac_count + 1`
3647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3648 # Best one so far, save it but keep looking for a better one
3649 ac_cv_path_GREP="$ac_path_GREP"
3650 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003651 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003652 # 10*(2^10) chars as input seems more than enough
3653 test $ac_count -gt 10 && break
3654 done
3655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3656esac
3657
3658
3659 $ac_path_GREP_found && break 3
3660 done
3661done
3662
3663done
3664IFS=$as_save_IFS
3665
3666
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003667fi
Reid Spencera773bd52006-08-04 18:18:08 +00003668
3669GREP="$ac_cv_path_GREP"
3670if test -z "$GREP"; then
3671 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3672echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3673 { (exit 1); exit 1; }; }
3674fi
3675
3676else
3677 ac_cv_path_GREP=$GREP
3678fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003679
John Criswell7a73b802003-06-30 21:59:07 +00003680
Reid Spencera773bd52006-08-04 18:18:08 +00003681fi
3682{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3683echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3684 GREP="$ac_cv_path_GREP"
3685
3686
3687{ echo "$as_me:$LINENO: checking for egrep" >&5
3688echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3689if test "${ac_cv_path_EGREP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691else
3692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3693 then ac_cv_path_EGREP="$GREP -E"
3694 else
3695 # Extract the first word of "egrep" to use in msg output
3696if test -z "$EGREP"; then
3697set dummy egrep; ac_prog_name=$2
3698if test "${ac_cv_path_EGREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701 ac_path_EGREP_found=false
3702# Loop through the user's path and test for each of PROGNAME-LIST
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_prog in egrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3712 # Check for GNU ac_path_EGREP and select it if it is found.
3713 # Check for GNU $ac_path_EGREP
3714case `"$ac_path_EGREP" --version 2>&1` in
3715*GNU*)
3716 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3717*)
3718 ac_count=0
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720 while :
3721 do
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'EGREP' >> "conftest.nl"
3726 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728 ac_count=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_EGREP="$ac_path_EGREP"
3732 ac_path_EGREP_max=$ac_count
3733 fi
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3736 done
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738esac
3739
3740
3741 $ac_path_EGREP_found && break 3
3742 done
3743done
3744
3745done
3746IFS=$as_save_IFS
3747
3748
3749fi
3750
3751EGREP="$ac_cv_path_EGREP"
3752if test -z "$EGREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3756fi
3757
3758else
3759 ac_cv_path_EGREP=$EGREP
3760fi
3761
3762
3763 fi
3764fi
3765{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3766echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3767 EGREP="$ac_cv_path_EGREP"
3768
3769
3770{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3771echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003772if test "${ac_cv_header_stdc+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003776/* confdefs.h. */
3777_ACEOF
3778cat confdefs.h >>conftest.$ac_ext
3779cat >>conftest.$ac_ext <<_ACEOF
3780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003781#include <stdlib.h>
3782#include <stdarg.h>
3783#include <string.h>
3784#include <float.h>
3785
John Criswell0c38eaf2003-09-10 15:17:25 +00003786int
3787main ()
3788{
3789
3790 ;
3791 return 0;
3792}
John Criswell7a73b802003-06-30 21:59:07 +00003793_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003794rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003795if { (ac_try="$ac_compile"
3796case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799esac
3800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003807 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3809 { (case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003819 { (case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822esac
3823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003828 ac_cv_header_stdc=yes
3829else
3830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003831sed 's/^/| /' conftest.$ac_ext >&5
3832
Reid Spencera773bd52006-08-04 18:18:08 +00003833 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003834fi
Reid Spencera773bd52006-08-04 18:18:08 +00003835
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003837
3838if test $ac_cv_header_stdc = yes; then
3839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3840 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003846#include <string.h>
3847
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003850 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003851 :
3852else
3853 ac_cv_header_stdc=no
3854fi
3855rm -f conftest*
3856
3857fi
3858
3859if test $ac_cv_header_stdc = yes; then
3860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3861 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003862/* confdefs.h. */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
3866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003867#include <stdlib.h>
3868
3869_ACEOF
3870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003871 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003872 :
3873else
3874 ac_cv_header_stdc=no
3875fi
3876rm -f conftest*
3877
3878fi
3879
3880if test $ac_cv_header_stdc = yes; then
3881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3882 if test "$cross_compiling" = yes; then
3883 :
3884else
3885 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003886/* confdefs.h. */
3887_ACEOF
3888cat confdefs.h >>conftest.$ac_ext
3889cat >>conftest.$ac_ext <<_ACEOF
3890/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003891#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003892#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003893#if ((' ' & 0x0FF) == 0x020)
3894# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3895# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3896#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003897# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003898 (('a' <= (c) && (c) <= 'i') \
3899 || ('j' <= (c) && (c) <= 'r') \
3900 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003901# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3902#endif
3903
3904#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3905int
3906main ()
3907{
3908 int i;
3909 for (i = 0; i < 256; i++)
3910 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003911 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003912 return 2;
3913 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003914}
3915_ACEOF
3916rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003917if { (ac_try="$ac_link"
3918case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921esac
3922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3923 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003927 { (case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930esac
3931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 :
3937else
3938 echo "$as_me: program exited with status $ac_status" >&5
3939echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003940sed 's/^/| /' conftest.$ac_ext >&5
3941
John Criswell7a73b802003-06-30 21:59:07 +00003942( exit $ac_status )
3943ac_cv_header_stdc=no
3944fi
Reid Spencera773bd52006-08-04 18:18:08 +00003945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3946fi
3947
3948
John Criswell7a73b802003-06-30 21:59:07 +00003949fi
3950fi
Reid Spencera773bd52006-08-04 18:18:08 +00003951{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3952echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003953if test $ac_cv_header_stdc = yes; then
3954
3955cat >>confdefs.h <<\_ACEOF
3956#define STDC_HEADERS 1
3957_ACEOF
3958
3959fi
3960
Reid Spencera773bd52006-08-04 18:18:08 +00003961# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3972 inttypes.h stdint.h unistd.h
3973do
3974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3975{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980 cat >conftest.$ac_ext <<_ACEOF
3981/* confdefs.h. */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h. */
3986$ac_includes_default
3987
3988#include <$ac_header>
3989_ACEOF
3990rm -f conftest.$ac_objext
3991if { (ac_try="$ac_compile"
3992case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995esac
3996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_compile") 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4005 { (case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008esac
4009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_try") 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest.$ac_objext'
4015 { (case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018esac
4019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_try") 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 eval "$as_ac_Header=yes"
4025else
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 eval "$as_ac_Header=no"
4030fi
4031
4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033fi
4034ac_res=`eval echo '${'$as_ac_Header'}'`
4035 { echo "$as_me:$LINENO: result: $ac_res" >&5
4036echo "${ECHO_T}$ac_res" >&6; }
4037if test `eval echo '${'$as_ac_Header'}'` = yes; then
4038 cat >>confdefs.h <<_ACEOF
4039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4040_ACEOF
4041
4042fi
4043
4044done
4045
4046
4047{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4048echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4049if test "${ac_cv_c_bigendian+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 # See if sys/param.h defines the BYTE_ORDER macro.
4053cat >conftest.$ac_ext <<_ACEOF
4054/* confdefs.h. */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h. */
4059#include <sys/types.h>
4060#include <sys/param.h>
4061
4062int
4063main ()
4064{
4065#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4066 bogus endian macros
4067#endif
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
4073rm -f conftest.$ac_objext
4074if { (ac_try="$ac_compile"
4075case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_try") 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 # It does; now see whether it defined to BIG_ENDIAN or not.
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <sys/types.h>
4115#include <sys/param.h>
4116
4117int
4118main ()
4119{
4120#if BYTE_ORDER != BIG_ENDIAN
4121 not big endian
4122#endif
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.$ac_objext
4129if { (ac_try="$ac_compile"
4130case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_c_bigendian=yes
4163else
4164 echo "$as_me: failed program was:" >&5
4165sed 's/^/| /' conftest.$ac_ext >&5
4166
4167 ac_cv_c_bigendian=no
4168fi
4169
4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171else
4172 echo "$as_me: failed program was:" >&5
4173sed 's/^/| /' conftest.$ac_ext >&5
4174
4175 # It does not; compile a test program.
4176if test "$cross_compiling" = yes; then
4177 # try to guess the endianness by grepping values into an object file
4178 ac_cv_c_bigendian=unknown
4179 cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h. */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h. */
4185short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4186short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4187void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4188short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4189short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4190void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4191int
4192main ()
4193{
4194 _ascii (); _ebcdic ();
4195 ;
4196 return 0;
4197}
4198_ACEOF
4199rm -f conftest.$ac_objext
4200if { (ac_try="$ac_compile"
4201case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_compile") 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4214 { (case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_try") 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; } &&
4223 { ac_try='test -s conftest.$ac_objext'
4224 { (case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227esac
4228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_try") 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4234 ac_cv_c_bigendian=yes
4235fi
4236if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4237 if test "$ac_cv_c_bigendian" = unknown; then
4238 ac_cv_c_bigendian=no
4239 else
4240 # finding both strings is unlikely to happen, but who knows?
4241 ac_cv_c_bigendian=unknown
4242 fi
4243fi
4244else
4245 echo "$as_me: failed program was:" >&5
4246sed 's/^/| /' conftest.$ac_ext >&5
4247
4248
4249fi
4250
4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252else
4253 cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
4259$ac_includes_default
4260int
4261main ()
4262{
4263
4264 /* Are we little or big endian? From Harbison&Steele. */
4265 union
4266 {
4267 long int l;
4268 char c[sizeof (long int)];
4269 } u;
4270 u.l = 1;
4271 return u.c[sizeof (long int) - 1] == 1;
4272
4273 ;
4274 return 0;
4275}
4276_ACEOF
4277rm -f conftest$ac_exeext
4278if { (ac_try="$ac_link"
4279case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_link") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291esac
4292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_c_bigendian=no
4298else
4299 echo "$as_me: program exited with status $ac_status" >&5
4300echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303( exit $ac_status )
4304ac_cv_c_bigendian=yes
4305fi
4306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4307fi
4308
4309
4310fi
4311
4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313fi
4314{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4315echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4316case $ac_cv_c_bigendian in
4317 yes)
4318 ENDIAN=big
4319 ;;
4320 no)
4321 ENDIAN=little
4322 ;;
4323 *)
4324 { { echo "$as_me:$LINENO: error: unknown endianness
4325presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4326echo "$as_me: error: unknown endianness
4327presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4328 { (exit 1); exit 1; }; } ;;
4329esac
4330
4331
4332if test "$cross_compiling" = yes; then
4333 LLVM_CROSS_COMPILING=1
4334
4335
4336{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4337echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4338if test "${ac_cv_build_exeext+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4342 ac_cv_build_exeext=.exe
4343else
4344 ac_build_prefix=${build_alias}-
4345
4346 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4347set dummy ${ac_build_prefix}gcc; ac_word=$2
4348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 if test -n "$BUILD_CC"; then
4354 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367done
4368done
4369IFS=$as_save_IFS
4370
4371fi
4372fi
4373BUILD_CC=$ac_cv_prog_BUILD_CC
4374if test -n "$BUILD_CC"; then
4375 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4376echo "${ECHO_T}$BUILD_CC" >&6; }
4377else
4378 { echo "$as_me:$LINENO: result: no" >&5
4379echo "${ECHO_T}no" >&6; }
4380fi
4381
4382
4383 if test -z "$BUILD_CC"; then
4384 # Extract the first word of "gcc", so it can be a program name with args.
4385set dummy gcc; ac_word=$2
4386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CC="gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405done
4406done
4407IFS=$as_save_IFS
4408
4409fi
4410fi
4411BUILD_CC=$ac_cv_prog_BUILD_CC
4412if test -n "$BUILD_CC"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414echo "${ECHO_T}$BUILD_CC" >&6; }
4415else
4416 { echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6; }
4418fi
4419
4420
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "cc", so it can be a program name with args.
4423set dummy cc; ac_word=$2
4424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428else
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431else
4432 ac_prog_rejected=no
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4441 ac_prog_rejected=yes
4442 continue
4443 fi
4444 ac_cv_prog_BUILD_CC="cc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449done
4450IFS=$as_save_IFS
4451
4452if test $ac_prog_rejected = yes; then
4453 # We found a bogon in the path, so make sure we never use it.
4454 set dummy $ac_cv_prog_BUILD_CC
4455 shift
4456 if test $# != 0; then
4457 # We chose a different compiler from the bogus one.
4458 # However, it has the same basename, so the bogon will be chosen
4459 # first if we set BUILD_CC to just the basename; use the full file name.
4460 shift
4461 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4462 fi
4463fi
4464fi
4465fi
4466BUILD_CC=$ac_cv_prog_BUILD_CC
4467if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469echo "${ECHO_T}$BUILD_CC" >&6; }
4470else
4471 { echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6; }
4473fi
4474
4475
4476 fi
4477 fi
4478 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4479echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4480 { (exit 1); exit 1; }; }
4481 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4482 rm -f conftest*
4483 echo 'int main () { return 0; }' > conftest.$ac_ext
4484 ac_cv_build_exeext=
4485 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4486 (eval $ac_build_link) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; then
4490 for file in conftest.*; do
4491 case $file in
4492 *.c | *.o | *.obj) ;;
4493 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4494 esac
4495 done
4496 else
4497 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4498echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4499 { (exit 1); exit 1; }; }
4500 fi
4501 rm -f conftest*
4502 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4503fi
4504fi
4505
4506BUILD_EXEEXT=""
4507test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4508{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4509echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4510ac_build_exeext=$BUILD_EXEEXT
4511
4512else
4513 LLVM_CROSS_COMPILING=0
4514
4515fi
4516
4517if test -d "CVS" -o -d "${srcdir}/CVS"; then
4518 cvsbuild="yes"
4519 optimize="no"
4520 CVSBUILD=CVSBUILD=1
4521
4522else
4523 cvsbuild="no"
4524 optimize="yes"
4525fi
4526
4527
4528# Check whether --enable-optimized was given.
4529if test "${enable_optimized+set}" = set; then
4530 enableval=$enable_optimized;
4531else
4532 enableval=$optimize
4533fi
4534
4535if test ${enableval} = "no" ; then
4536 ENABLE_OPTIMIZED=
4537
4538else
4539 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4540
4541fi
4542
4543# Check whether --enable-assertions was given.
4544if test "${enable_assertions+set}" = set; then
4545 enableval=$enable_assertions;
4546else
4547 enableval="yes"
4548fi
4549
4550if test ${enableval} = "yes" ; then
4551 DISABLE_ASSERTIONS=
4552
4553else
4554 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4555
4556fi
4557
4558# Check whether --enable-debug-runtime was given.
4559if test "${enable_debug_runtime+set}" = set; then
4560 enableval=$enable_debug_runtime;
4561else
4562 enableval=no
4563fi
4564
4565if test ${enableval} = "no" ; then
4566 DEBUG_RUNTIME=
4567
4568else
4569 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4570
4571fi
4572
4573# Check whether --enable-jit was given.
4574if test "${enable_jit+set}" = set; then
4575 enableval=$enable_jit;
4576else
4577 enableval=default
4578fi
4579
4580if test ${enableval} = "no"
4581then
4582 JIT=
4583
4584else
4585 case "$llvm_cv_target_arch" in
4586 x86) TARGET_HAS_JIT=1
4587 ;;
4588 Sparc) TARGET_HAS_JIT=1
4589 ;;
4590 PowerPC) TARGET_HAS_JIT=1
4591 ;;
4592 x86_64) TARGET_HAS_JIT=0
4593 ;;
4594 Alpha) TARGET_HAS_JIT=1
4595 ;;
4596 IA64) TARGET_HAS_JIT=0
4597 ;;
4598 *) TARGET_HAS_JIT=0
4599 ;;
4600 esac
4601fi
4602
4603# Check whether --enable-doxygen was given.
4604if test "${enable_doxygen+set}" = set; then
4605 enableval=$enable_doxygen;
4606else
4607 enableval=default
4608fi
4609
4610case "$enableval" in
4611 yes) ENABLE_DOXYGEN=1
4612 ;;
4613 no) ENABLE_DOXYGEN=0
4614 ;;
4615 default) ENABLE_DOXYGEN=0
4616 ;;
4617 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4618echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4619 { (exit 1); exit 1; }; } ;;
4620esac
4621
4622# Check whether --enable-threads was given.
4623if test "${enable_threads+set}" = set; then
4624 enableval=$enable_threads;
4625else
4626 enableval=yes
4627fi
4628
4629case "$enableval" in
4630 yes) ENABLE_THREADS=1
4631 ;;
4632 no) ENABLE_THREADS=0
4633 ;;
4634 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4635echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4636 { (exit 1); exit 1; }; } ;;
4637esac
4638
4639cat >>confdefs.h <<_ACEOF
4640#define ENABLE_THREADS $ENABLE_THREADS
4641_ACEOF
4642
4643
4644TARGETS_TO_BUILD=""
4645# Check whether --enable-targets was given.
4646if test "${enable_targets+set}" = set; then
4647 enableval=$enable_targets;
4648else
4649 enableval=all
4650fi
4651
4652case "$enableval" in
4653 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4654 host-only)
4655 case "$llvm_cv_target_arch" in
4656 x86) TARGETS_TO_BUILD="X86" ;;
4657 x86_64) TARGETS_TO_BUILD="X86" ;;
4658 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4659 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4660 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4661 IA64) TARGETS_TO_BUILD="IA64" ;;
4662 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4663echo "$as_me: error: Can not set target to build" >&2;}
4664 { (exit 1); exit 1; }; } ;;
4665 esac
4666 ;;
4667 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4668 case "$a_target" in
4669 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4670 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4671 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4672 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4673 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4674 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4675 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4676echo "$as_me: error: Unrecognized target $a_target" >&2;}
4677 { (exit 1); exit 1; }; } ;;
4678 esac
4679 done
4680 ;;
4681esac
4682TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4683TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4684
4685
4686
4687# Check whether --with-llvmgccdir was given.
4688if test "${with_llvmgccdir+set}" = set; then
4689 withval=$with_llvmgccdir;
4690else
4691 withval=default
4692fi
4693
4694case "$withval" in
4695 default) WITH_LLVMGCCDIR=default ;;
4696 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4697 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4698echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4699 { (exit 1); exit 1; }; } ;;
4700esac
4701
4702
4703# Check whether --with-extra-options was given.
4704if test "${with_extra_options+set}" = set; then
4705 withval=$with_extra_options;
4706else
4707 withval=default
4708fi
4709
4710case "$withval" in
4711 default) EXTRA_OPTIONS= ;;
4712 *) EXTRA_OPTIONS=$withval ;;
4713esac
4714EXTRA_OPTIONS=$EXTRA_OPTIONS
4715
4716
4717
4718ac_ext=c
4719ac_cpp='$CPP $CPPFLAGS'
4720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4724echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4725# On Suns, sometimes $CPP names a directory.
4726if test -n "$CPP" && test -d "$CPP"; then
4727 CPP=
4728fi
4729if test -z "$CPP"; then
4730 if test "${ac_cv_prog_CPP+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 # Double quotes because CPP needs to be expanded
4734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4735 do
4736 ac_preproc_ok=false
4737for ac_c_preproc_warn_flag in '' yes
4738do
4739 # Use a header file that comes with gcc, so configuring glibc
4740 # with a fresh cross-compiler works.
4741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742 # <limits.h> exists even on freestanding compilers.
4743 # On the NeXT, cc -E runs the code through the compiler's parser,
4744 # not just through cpp. "Syntax error" is here to catch this case.
4745 cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h. */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h. */
4751#ifdef __STDC__
4752# include <limits.h>
4753#else
4754# include <assert.h>
4755#endif
4756 Syntax error
4757_ACEOF
4758if { (ac_try="$ac_cpp conftest.$ac_ext"
4759case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762esac
4763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } >/dev/null; then
4771 if test -s conftest.err; then
4772 ac_cpp_err=$ac_c_preproc_warn_flag
4773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4774 else
4775 ac_cpp_err=
4776 fi
4777else
4778 ac_cpp_err=yes
4779fi
4780if test -z "$ac_cpp_err"; then
4781 :
4782else
4783 echo "$as_me: failed program was:" >&5
4784sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 # Broken: fails on valid input.
4787continue
4788fi
4789
4790rm -f conftest.err conftest.$ac_ext
4791
4792 # OK, works on sane cases. Now check whether nonexistent headers
4793 # can be detected and how.
4794 cat >conftest.$ac_ext <<_ACEOF
4795/* confdefs.h. */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h. */
4800#include <ac_nonexistent.h>
4801_ACEOF
4802if { (ac_try="$ac_cpp conftest.$ac_ext"
4803case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806esac
4807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev/null; then
4815 if test -s conftest.err; then
4816 ac_cpp_err=$ac_c_preproc_warn_flag
4817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4818 else
4819 ac_cpp_err=
4820 fi
4821else
4822 ac_cpp_err=yes
4823fi
4824if test -z "$ac_cpp_err"; then
4825 # Broken: success on invalid input.
4826continue
4827else
4828 echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831 # Passes both tests.
4832ac_preproc_ok=:
4833break
4834fi
4835
4836rm -f conftest.err conftest.$ac_ext
4837
4838done
4839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4840rm -f conftest.err conftest.$ac_ext
4841if $ac_preproc_ok; then
4842 break
4843fi
4844
4845 done
4846 ac_cv_prog_CPP=$CPP
4847
4848fi
4849 CPP=$ac_cv_prog_CPP
4850else
4851 ac_cv_prog_CPP=$CPP
4852fi
4853{ echo "$as_me:$LINENO: result: $CPP" >&5
4854echo "${ECHO_T}$CPP" >&6; }
4855ac_preproc_ok=false
4856for ac_c_preproc_warn_flag in '' yes
4857do
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
4870#ifdef __STDC__
4871# include <limits.h>
4872#else
4873# include <assert.h>
4874#endif
4875 Syntax error
4876_ACEOF
4877if { (ac_try="$ac_cpp conftest.$ac_ext"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
4892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4893 else
4894 ac_cpp_err=
4895 fi
4896else
4897 ac_cpp_err=yes
4898fi
4899if test -z "$ac_cpp_err"; then
4900 :
4901else
4902 echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 # Broken: fails on valid input.
4906continue
4907fi
4908
4909rm -f conftest.err conftest.$ac_ext
4910
4911 # OK, works on sane cases. Now check whether nonexistent headers
4912 # can be detected and how.
4913 cat >conftest.$ac_ext <<_ACEOF
4914/* confdefs.h. */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h. */
4919#include <ac_nonexistent.h>
4920_ACEOF
4921if { (ac_try="$ac_cpp conftest.$ac_ext"
4922case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925esac
4926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } >/dev/null; then
4934 if test -s conftest.err; then
4935 ac_cpp_err=$ac_c_preproc_warn_flag
4936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4937 else
4938 ac_cpp_err=
4939 fi
4940else
4941 ac_cpp_err=yes
4942fi
4943if test -z "$ac_cpp_err"; then
4944 # Broken: success on invalid input.
4945continue
4946else
4947 echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 # Passes both tests.
4951ac_preproc_ok=:
4952break
4953fi
4954
4955rm -f conftest.err conftest.$ac_ext
4956
4957done
4958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959rm -f conftest.err conftest.$ac_ext
4960if $ac_preproc_ok; then
4961 :
4962else
4963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4964See \`config.log' for more details." >&5
4965echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4966See \`config.log' for more details." >&2;}
4967 { (exit 1); exit 1; }; }
4968fi
4969
4970ac_ext=c
4971ac_cpp='$CPP $CPPFLAGS'
4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975
4976ac_ext=c
4977ac_cpp='$CPP $CPPFLAGS'
4978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981if test -n "$ac_tool_prefix"; then
4982 for ac_prog in gcc
4983 do
4984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988if test "${ac_cv_prog_CC+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990else
4991 if test -n "$CC"; then
4992 ac_cv_prog_CC="$CC" # Let the user override the test.
4993else
4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5004 fi
5005done
5006done
5007IFS=$as_save_IFS
5008
5009fi
5010fi
5011CC=$ac_cv_prog_CC
5012if test -n "$CC"; then
5013 { echo "$as_me:$LINENO: result: $CC" >&5
5014echo "${ECHO_T}$CC" >&6; }
5015else
5016 { echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6; }
5018fi
5019
5020
5021 test -n "$CC" && break
5022 done
5023fi
5024if test -z "$CC"; then
5025 ac_ct_CC=$CC
5026 for ac_prog in gcc
5027do
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029set dummy $ac_prog; ac_word=$2
5030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035 if test -n "$ac_ct_CC"; then
5036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_CC="$ac_prog"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049done
5050done
5051IFS=$as_save_IFS
5052
5053fi
5054fi
5055ac_ct_CC=$ac_cv_prog_ac_ct_CC
5056if test -n "$ac_ct_CC"; then
5057 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5058echo "${ECHO_T}$ac_ct_CC" >&6; }
5059else
5060 { echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6; }
5062fi
5063
5064
5065 test -n "$ac_ct_CC" && break
5066done
5067
5068 if test "x$ac_ct_CC" = x; then
5069 CC=""
5070 else
5071 case $cross_compiling:$ac_tool_warned in
5072yes:)
5073{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5074whose name does not start with the host triplet. If you think this
5075configuration is useful to you, please write to autoconf@gnu.org." >&5
5076echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5077whose name does not start with the host triplet. If you think this
5078configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5079ac_tool_warned=yes ;;
5080esac
5081 CC=$ac_ct_CC
5082 fi
5083fi
5084
5085
5086test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5087See \`config.log' for more details." >&5
5088echo "$as_me: error: no acceptable C compiler found in \$PATH
5089See \`config.log' for more details." >&2;}
5090 { (exit 1); exit 1; }; }
5091
5092# Provide some information about the compiler.
5093echo "$as_me:$LINENO: checking for C compiler version" >&5
5094ac_compiler=`set X $ac_compile; echo $2`
5095{ (ac_try="$ac_compiler --version >&5"
5096case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099esac
5100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_compiler --version >&5") 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }
5105{ (ac_try="$ac_compiler -v >&5"
5106case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109esac
5110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_compiler -v >&5") 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }
5115{ (ac_try="$ac_compiler -V >&5"
5116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compiler -V >&5") 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }
5125
5126{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5127echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5128if test "${ac_cv_c_compiler_gnu+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h. */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137
5138int
5139main ()
5140{
5141#ifndef __GNUC__
5142 choke me
5143#endif
5144
5145 ;
5146 return 0;
5147}
5148_ACEOF
5149rm -f conftest.$ac_objext
5150if { (ac_try="$ac_compile"
5151case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_compile") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5164 { (case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167esac
5168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169 (eval "$ac_try") 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest.$ac_objext'
5174 { (case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177esac
5178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_try") 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5183 ac_compiler_gnu=yes
5184else
5185 echo "$as_me: failed program was:" >&5
5186sed 's/^/| /' conftest.$ac_ext >&5
5187
5188 ac_compiler_gnu=no
5189fi
5190
5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192ac_cv_c_compiler_gnu=$ac_compiler_gnu
5193
5194fi
5195{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5196echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5197GCC=`test $ac_compiler_gnu = yes && echo yes`
5198ac_test_CFLAGS=${CFLAGS+set}
5199ac_save_CFLAGS=$CFLAGS
5200{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5201echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5202if test "${ac_cv_prog_cc_g+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205 ac_save_c_werror_flag=$ac_c_werror_flag
5206 ac_c_werror_flag=yes
5207 ac_cv_prog_cc_g=no
5208 CFLAGS="-g"
5209 cat >conftest.$ac_ext <<_ACEOF
5210/* confdefs.h. */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
5214/* end confdefs.h. */
5215
5216int
5217main ()
5218{
5219
5220 ;
5221 return 0;
5222}
5223_ACEOF
5224rm -f conftest.$ac_objext
5225if { (ac_try="$ac_compile"
5226case "(($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_compile") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5239 { (case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242esac
5243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_try") 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252esac
5253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_try") 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_prog_cc_g=yes
5259else
5260 echo "$as_me: failed program was:" >&5
5261sed 's/^/| /' conftest.$ac_ext >&5
5262
5263 CFLAGS=""
5264 cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h. */
5270
5271int
5272main ()
5273{
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
5279rm -f conftest.$ac_objext
5280if { (ac_try="$ac_compile"
5281case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294 { (case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_try") 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; } &&
5303 { ac_try='test -s conftest.$ac_objext'
5304 { (case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307esac
5308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_try") 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 :
5314else
5315 echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 ac_c_werror_flag=$ac_save_c_werror_flag
5319 CFLAGS="-g"
5320 cat >conftest.$ac_ext <<_ACEOF
5321/* confdefs.h. */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h. */
5326
5327int
5328main ()
5329{
5330
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335rm -f conftest.$ac_objext
5336if { (ac_try="$ac_compile"
5337case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340esac
5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_compile") 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5350 { (case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5353esac
5354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_try") 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try='test -s conftest.$ac_objext'
5360 { (case "(($ac_try" in
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5363esac
5364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_try") 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_cv_prog_cc_g=yes
5370else
5371 echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374
5375fi
5376
5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378fi
5379
5380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381fi
5382
5383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 ac_c_werror_flag=$ac_save_c_werror_flag
5385fi
5386{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5387echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5388if test "$ac_test_CFLAGS" = set; then
5389 CFLAGS=$ac_save_CFLAGS
5390elif test $ac_cv_prog_cc_g = yes; then
5391 if test "$GCC" = yes; then
5392 CFLAGS="-g -O2"
5393 else
5394 CFLAGS="-g"
5395 fi
5396else
5397 if test "$GCC" = yes; then
5398 CFLAGS="-O2"
5399 else
5400 CFLAGS=
5401 fi
5402fi
5403{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5404echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5405if test "${ac_cv_prog_cc_c89+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408 ac_cv_prog_cc_c89=no
5409ac_save_CC=$CC
5410cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h. */
5416#include <stdarg.h>
5417#include <stdio.h>
5418#include <sys/types.h>
5419#include <sys/stat.h>
5420/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5421struct buf { int x; };
5422FILE * (*rcsopen) (struct buf *, struct stat *, int);
5423static char *e (p, i)
5424 char **p;
5425 int i;
5426{
5427 return p[i];
5428}
5429static char *f (char * (*g) (char **, int), char **p, ...)
5430{
5431 char *s;
5432 va_list v;
5433 va_start (v,p);
5434 s = g (p, va_arg (v,int));
5435 va_end (v);
5436 return s;
5437}
5438
5439/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5440 function prototypes and stuff, but not '\xHH' hex character constants.
5441 These don't provoke an error unfortunately, instead are silently treated
5442 as 'x'. The following induces an error, until -std is added to get
5443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5444 array size at least. It's necessary to write '\x00'==0 to get something
5445 that's true only with -std. */
5446int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5447
5448/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5449 inside strings and character constants. */
5450#define FOO(x) 'x'
5451int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5452
5453int test (int i, double x);
5454struct s1 {int (*f) (int a);};
5455struct s2 {int (*f) (double a);};
5456int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5457int argc;
5458char **argv;
5459int
5460main ()
5461{
5462return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5463 ;
5464 return 0;
5465}
5466_ACEOF
5467for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5469do
5470 CC="$ac_save_CC $ac_arg"
5471 rm -f conftest.$ac_objext
5472if { (ac_try="$ac_compile"
5473case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486 { (case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499esac
5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_try") 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_prog_cc_c89=$ac_arg
5506else
5507 echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
5509
5510
5511fi
5512
5513rm -f core conftest.err conftest.$ac_objext
5514 test "x$ac_cv_prog_cc_c89" != "xno" && break
5515done
5516rm -f conftest.$ac_ext
5517CC=$ac_save_CC
5518
5519fi
5520# AC_CACHE_VAL
5521case "x$ac_cv_prog_cc_c89" in
5522 x)
5523 { echo "$as_me:$LINENO: result: none needed" >&5
5524echo "${ECHO_T}none needed" >&6; } ;;
5525 xno)
5526 { echo "$as_me:$LINENO: result: unsupported" >&5
5527echo "${ECHO_T}unsupported" >&6; } ;;
5528 *)
5529 CC="$CC $ac_cv_prog_cc_c89"
5530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5531echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5532esac
5533
5534
5535ac_ext=c
5536ac_cpp='$CPP $CPPFLAGS'
5537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540
5541ac_ext=cpp
5542ac_cpp='$CXXCPP $CPPFLAGS'
5543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5546if test -z "$CXX"; then
5547 if test -n "$CCC"; then
5548 CXX=$CCC
5549 else
5550 if test -n "$ac_tool_prefix"; then
5551 for ac_prog in g++
5552 do
5553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5557if test "${ac_cv_prog_CXX+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560 if test -n "$CXX"; then
5561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5562else
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574done
5575done
5576IFS=$as_save_IFS
5577
5578fi
5579fi
5580CXX=$ac_cv_prog_CXX
5581if test -n "$CXX"; then
5582 { echo "$as_me:$LINENO: result: $CXX" >&5
5583echo "${ECHO_T}$CXX" >&6; }
5584else
5585 { echo "$as_me:$LINENO: result: no" >&5
5586echo "${ECHO_T}no" >&6; }
5587fi
5588
5589
5590 test -n "$CXX" && break
5591 done
5592fi
5593if test -z "$CXX"; then
5594 ac_ct_CXX=$CXX
5595 for ac_prog in g++
5596do
5597 # Extract the first word of "$ac_prog", so it can be a program name with args.
5598set dummy $ac_prog; ac_word=$2
5599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5601if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604 if test -n "$ac_ct_CXX"; then
5605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_ac_ct_CXX="$ac_prog"
5615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618done
5619done
5620IFS=$as_save_IFS
5621
5622fi
5623fi
5624ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5625if test -n "$ac_ct_CXX"; then
5626 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5627echo "${ECHO_T}$ac_ct_CXX" >&6; }
5628else
5629 { echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6; }
5631fi
5632
5633
5634 test -n "$ac_ct_CXX" && break
5635done
5636
5637 if test "x$ac_ct_CXX" = x; then
5638 CXX="g++"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641yes:)
5642{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5643whose name does not start with the host triplet. If you think this
5644configuration is useful to you, please write to autoconf@gnu.org." >&5
5645echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5646whose name does not start with the host triplet. If you think this
5647configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5648ac_tool_warned=yes ;;
5649esac
5650 CXX=$ac_ct_CXX
5651 fi
5652fi
5653
5654 fi
5655fi
5656# Provide some information about the compiler.
5657echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5658ac_compiler=`set X $ac_compile; echo $2`
5659{ (ac_try="$ac_compiler --version >&5"
5660case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663esac
5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_compiler --version >&5") 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }
5669{ (ac_try="$ac_compiler -v >&5"
5670case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_compiler -v >&5") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }
5679{ (ac_try="$ac_compiler -V >&5"
5680case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compiler -V >&5") 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }
5689
5690{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5691echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5692if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695 cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
5701
5702int
5703main ()
5704{
5705#ifndef __GNUC__
5706 choke me
5707#endif
5708
5709 ;
5710 return 0;
5711}
5712_ACEOF
5713rm -f conftest.$ac_objext
5714if { (ac_try="$ac_compile"
5715case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5728 { (case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731esac
5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_try") 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741esac
5742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_try") 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_compiler_gnu=yes
5748else
5749 echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752 ac_compiler_gnu=no
5753fi
5754
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5757
5758fi
5759{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5760echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5761GXX=`test $ac_compiler_gnu = yes && echo yes`
5762ac_test_CXXFLAGS=${CXXFLAGS+set}
5763ac_save_CXXFLAGS=$CXXFLAGS
5764{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5765echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5766if test "${ac_cv_prog_cxx_g+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5770 ac_cxx_werror_flag=yes
5771 ac_cv_prog_cxx_g=no
5772 CXXFLAGS="-g"
5773 cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h. */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */
5779
5780int
5781main ()
5782{
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
5788rm -f conftest.$ac_objext
5789if { (ac_try="$ac_compile"
5790case "(($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_compile") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5803 { (case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806esac
5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_try") 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest.$ac_objext'
5813 { (case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816esac
5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_try") 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_prog_cxx_g=yes
5823else
5824 echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 CXXFLAGS=""
5828 cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h. */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h. */
5834
5835int
5836main ()
5837{
5838
5839 ;
5840 return 0;
5841}
5842_ACEOF
5843rm -f conftest.$ac_objext
5844if { (ac_try="$ac_compile"
5845case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848esac
5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5858 { (case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861esac
5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_try") 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 :
5878else
5879 echo "$as_me: failed program was:" >&5
5880sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5883 CXXFLAGS="-g"
5884 cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h. */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h. */
5890
5891int
5892main ()
5893{
5894
5895 ;
5896 return 0;
5897}
5898_ACEOF
5899rm -f conftest.$ac_objext
5900if { (ac_try="$ac_compile"
5901case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904esac
5905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compile") 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917esac
5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927esac
5928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_prog_cxx_g=yes
5934else
5935 echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938
5939fi
5940
5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942fi
5943
5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945fi
5946
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5949fi
5950{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5951echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5952if test "$ac_test_CXXFLAGS" = set; then
5953 CXXFLAGS=$ac_save_CXXFLAGS
5954elif test $ac_cv_prog_cxx_g = yes; then
5955 if test "$GXX" = yes; then
5956 CXXFLAGS="-g -O2"
5957 else
5958 CXXFLAGS="-g"
5959 fi
5960else
5961 if test "$GXX" = yes; then
5962 CXXFLAGS="-O2"
5963 else
5964 CXXFLAGS=
5965 fi
5966fi
5967ac_ext=c
5968ac_cpp='$CPP $CPPFLAGS'
5969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971ac_compiler_gnu=$ac_cv_c_compiler_gnu
5972
5973{ echo "$as_me:$LINENO: checking " >&5
5974echo $ECHO_N "checking ... $ECHO_C" >&6; }
5975if test "${ac_cv_has_flex+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978 for ac_prog in flex lex
5979do
5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
5981set dummy $ac_prog; ac_word=$2
5982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984if test "${ac_cv_prog_LEX+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987 if test -n "$LEX"; then
5988 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_LEX="$ac_prog"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001done
6002done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007LEX=$ac_cv_prog_LEX
6008if test -n "$LEX"; then
6009 { echo "$as_me:$LINENO: result: $LEX" >&5
6010echo "${ECHO_T}$LEX" >&6; }
6011else
6012 { echo "$as_me:$LINENO: result: no" >&5
6013echo "${ECHO_T}no" >&6; }
6014fi
6015
6016
6017 test -n "$LEX" && break
6018done
6019test -n "$LEX" || LEX=":"
6020
6021if test -z "$LEXLIB"
6022then
6023 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6024echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6025if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027else
6028 ac_check_lib_save_LIBS=$LIBS
6029LIBS="-lfl $LIBS"
6030cat >conftest.$ac_ext <<_ACEOF
6031/* confdefs.h. */
6032_ACEOF
6033cat confdefs.h >>conftest.$ac_ext
6034cat >>conftest.$ac_ext <<_ACEOF
6035/* end confdefs.h. */
6036
6037/* Override any GCC internal prototype to avoid an error.
6038 Use char because int might match the return type of a GCC
6039 builtin and then its argument prototype would still apply. */
6040#ifdef __cplusplus
6041extern "C"
6042#endif
6043char yywrap ();
6044int
6045main ()
6046{
6047return yywrap ();
6048 ;
6049 return 0;
6050}
6051_ACEOF
6052rm -f conftest.$ac_objext conftest$ac_exeext
6053if { (ac_try="$ac_link"
6054case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057esac
6058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059 (eval "$ac_link") 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6067 { (case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_try") 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080esac
6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_try") 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_cv_lib_fl_yywrap=yes
6087else
6088 echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091 ac_cv_lib_fl_yywrap=no
6092fi
6093
6094rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6096LIBS=$ac_check_lib_save_LIBS
6097fi
6098{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6099echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6100if test $ac_cv_lib_fl_yywrap = yes; then
6101 LEXLIB="-lfl"
6102else
6103 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6104echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6105if test "${ac_cv_lib_l_yywrap+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108 ac_check_lib_save_LIBS=$LIBS
6109LIBS="-ll $LIBS"
6110cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
6116
6117/* Override any GCC internal prototype to avoid an error.
6118 Use char because int might match the return type of a GCC
6119 builtin and then its argument prototype would still apply. */
6120#ifdef __cplusplus
6121extern "C"
6122#endif
6123char yywrap ();
6124int
6125main ()
6126{
6127return yywrap ();
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132rm -f conftest.$ac_objext conftest$ac_exeext
6133if { (ac_try="$ac_link"
6134case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137esac
6138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_link") 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6147 { (case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150esac
6151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_try") 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160esac
6161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_try") 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_lib_l_yywrap=yes
6167else
6168 echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171 ac_cv_lib_l_yywrap=no
6172fi
6173
6174rm -f core conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6176LIBS=$ac_check_lib_save_LIBS
6177fi
6178{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6179echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6180if test $ac_cv_lib_l_yywrap = yes; then
6181 LEXLIB="-ll"
6182fi
6183
6184fi
6185
6186fi
6187
6188if test "x$LEX" != "x:"; then
6189 { echo "$as_me:$LINENO: checking lex output file root" >&5
6190echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6191if test "${ac_cv_prog_lex_root+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194 # The minimal lex program is just a single line: %%. But some broken lexes
6195# (Solaris, I think it was) want two %% lines, so accommodate them.
6196cat >conftest.l <<_ACEOF
6197%%
6198%%
6199_ACEOF
6200{ (ac_try="$LEX conftest.l"
6201case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204esac
6205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$LEX conftest.l") 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }
6210if test -f lex.yy.c; then
6211 ac_cv_prog_lex_root=lex.yy
6212elif test -f lexyy.c; then
6213 ac_cv_prog_lex_root=lexyy
6214else
6215 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6216echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6217 { (exit 1); exit 1; }; }
6218fi
6219fi
6220{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6221echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6222rm -f conftest.l
6223LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6224
6225{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6226echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6227if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230 # POSIX says lex can declare yytext either as a pointer or an array; the
6231# default is implementation-dependent. Figure out which it is, since
6232# not all implementations provide the %pointer and %array declarations.
6233ac_cv_prog_lex_yytext_pointer=no
6234echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6235ac_save_LIBS=$LIBS
6236LIBS="$LIBS $LEXLIB"
6237cat >conftest.$ac_ext <<_ACEOF
6238`cat $LEX_OUTPUT_ROOT.c`
6239_ACEOF
6240rm -f conftest.$ac_objext conftest$ac_exeext
6241if { (ac_try="$ac_link"
6242case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245esac
6246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_link") 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6255 { (case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258esac
6259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_try") 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_prog_lex_yytext_pointer=yes
6275else
6276 echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279
6280fi
6281
6282rm -f core conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6284LIBS=$ac_save_LIBS
6285rm -f "${LEX_OUTPUT_ROOT}.c"
6286
6287fi
6288{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6289echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6290if test $ac_cv_prog_lex_yytext_pointer = yes; then
6291
6292cat >>confdefs.h <<\_ACEOF
6293#define YYTEXT_POINTER 1
6294_ACEOF
6295
6296fi
6297
6298fi
6299
6300fi
6301{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6302echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6303if test "$LEX" != "flex"; then
6304 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6305echo "$as_me: error: flex not found but required" >&2;}
6306 { (exit 1); exit 1; }; }
6307else
6308 FLEX=flex
6309
6310fi
6311
6312{ echo "$as_me:$LINENO: checking " >&5
6313echo $ECHO_N "checking ... $ECHO_C" >&6; }
6314if test "${llvm_cv_has_bison+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317 for ac_prog in 'bison -y' byacc
6318do
6319 # Extract the first word of "$ac_prog", so it can be a program name with args.
6320set dummy $ac_prog; ac_word=$2
6321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323if test "${ac_cv_prog_YACC+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325else
6326 if test -n "$YACC"; then
6327 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_YACC="$ac_prog"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340done
6341done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346YACC=$ac_cv_prog_YACC
6347if test -n "$YACC"; then
6348 { echo "$as_me:$LINENO: result: $YACC" >&5
6349echo "${ECHO_T}$YACC" >&6; }
6350else
6351 { echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6; }
6353fi
6354
6355
6356 test -n "$YACC" && break
6357done
6358test -n "$YACC" || YACC="yacc"
6359
6360fi
6361{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6362echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6363if test "$YACC" != "bison -y"; then
6364 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
6365echo "$as_me: error: bison not found but required" >&2;}
6366 { (exit 1); exit 1; }; }
6367else
6368 BISON=bison
6369
6370fi
6371
6372{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6373echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6374if test "${lt_cv_path_NM+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377 if test -n "$NM"; then
6378 # Let the user override the test.
6379 lt_cv_path_NM="$NM"
6380else
6381 lt_nm_to_check="${ac_tool_prefix}nm"
6382 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6383 lt_nm_to_check="$lt_nm_to_check nm"
6384 fi
6385 for lt_tmp_nm in $lt_nm_to_check; do
6386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6387 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6388 IFS="$lt_save_ifs"
6389 test -z "$ac_dir" && ac_dir=.
6390 tmp_nm="$ac_dir/$lt_tmp_nm"
6391 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6392 # Check to see if the nm accepts a BSD-compat flag.
6393 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6394 # nm: unknown option "B" ignored
6395 # Tru64's nm complains that /dev/null is an invalid object file
6396 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6397 */dev/null* | *'Invalid file or object type'*)
6398 lt_cv_path_NM="$tmp_nm -B"
6399 break
6400 ;;
6401 *)
6402 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6403 */dev/null*)
6404 lt_cv_path_NM="$tmp_nm -p"
6405 break
6406 ;;
6407 *)
6408 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6409 continue # so that we can try to find one that supports BSD flags
6410 ;;
6411 esac
6412 ;;
6413 esac
6414 fi
6415 done
6416 IFS="$lt_save_ifs"
6417 done
6418 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6419fi
6420fi
6421{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6422echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6423NM="$lt_cv_path_NM"
6424
6425
6426
6427{ echo "$as_me:$LINENO: checking for GNU make" >&5
6428echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6429if test "${llvm_cv_gnu_make_command+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431else
6432 llvm_cv_gnu_make_command=''
6433 for a in "$MAKE" make gmake gnumake ; do
6434 if test -z "$a" ; then continue ; fi ;
6435 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6436 then
6437 llvm_cv_gnu_make_command=$a ;
6438 break;
6439 fi
6440 done
6441fi
6442{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6443echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6444 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6445 ifGNUmake='' ;
6446 else
6447 ifGNUmake='#' ;
6448 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6449echo "${ECHO_T}\"Not found\"" >&6; };
6450 fi
6451
6452
6453{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6454echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6455LN_S=$as_ln_s
6456if test "$LN_S" = "ln -s"; then
6457 { echo "$as_me:$LINENO: result: yes" >&5
6458echo "${ECHO_T}yes" >&6; }
6459else
6460 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6461echo "${ECHO_T}no, using $LN_S" >&6; }
6462fi
6463
6464# Extract the first word of "cmp", so it can be a program name with args.
6465set dummy cmp; ac_word=$2
6466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6468if test "${ac_cv_path_CMP+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470else
6471 case $CMP in
6472 [\\/]* | ?:[\\/]*)
6473 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6474 ;;
6475 *)
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6483 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487done
6488done
6489IFS=$as_save_IFS
6490
6491 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6492 ;;
6493esac
6494fi
6495CMP=$ac_cv_path_CMP
6496if test -n "$CMP"; then
6497 { echo "$as_me:$LINENO: result: $CMP" >&5
6498echo "${ECHO_T}$CMP" >&6; }
6499else
6500 { echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6; }
6502fi
6503
6504
6505# Extract the first word of "cp", so it can be a program name with args.
6506set dummy cp; ac_word=$2
6507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509if test "${ac_cv_path_CP+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
6512 case $CP in
6513 [\\/]* | ?:[\\/]*)
6514 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6515 ;;
6516 *)
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528done
6529done
6530IFS=$as_save_IFS
6531
6532 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6533 ;;
6534esac
6535fi
6536CP=$ac_cv_path_CP
6537if test -n "$CP"; then
6538 { echo "$as_me:$LINENO: result: $CP" >&5
6539echo "${ECHO_T}$CP" >&6; }
6540else
6541 { echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6; }
6543fi
6544
6545
6546# Extract the first word of "date", so it can be a program name with args.
6547set dummy date; ac_word=$2
6548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6550if test "${ac_cv_path_DATE+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553 case $DATE in
6554 [\\/]* | ?:[\\/]*)
6555 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6556 ;;
6557 *)
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569done
6570done
6571IFS=$as_save_IFS
6572
6573 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6574 ;;
6575esac
6576fi
6577DATE=$ac_cv_path_DATE
6578if test -n "$DATE"; then
6579 { echo "$as_me:$LINENO: result: $DATE" >&5
6580echo "${ECHO_T}$DATE" >&6; }
6581else
6582 { echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6; }
6584fi
6585
6586
6587# Extract the first word of "find", so it can be a program name with args.
6588set dummy find; ac_word=$2
6589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591if test "${ac_cv_path_FIND+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594 case $FIND in
6595 [\\/]* | ?:[\\/]*)
6596 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6597 ;;
6598 *)
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610done
6611done
6612IFS=$as_save_IFS
6613
6614 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6615 ;;
6616esac
6617fi
6618FIND=$ac_cv_path_FIND
6619if test -n "$FIND"; then
6620 { echo "$as_me:$LINENO: result: $FIND" >&5
6621echo "${ECHO_T}$FIND" >&6; }
6622else
6623 { echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6; }
6625fi
6626
6627
6628# Extract the first word of "grep", so it can be a program name with args.
6629set dummy grep; ac_word=$2
6630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632if test "${ac_cv_path_GREP+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634else
6635 case $GREP in
6636 [\\/]* | ?:[\\/]*)
6637 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6638 ;;
6639 *)
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652done
6653IFS=$as_save_IFS
6654
6655 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6656 ;;
6657esac
6658fi
6659GREP=$ac_cv_path_GREP
6660if test -n "$GREP"; then
6661 { echo "$as_me:$LINENO: result: $GREP" >&5
6662echo "${ECHO_T}$GREP" >&6; }
6663else
6664 { echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6; }
6666fi
6667
6668
6669# Extract the first word of "mkdir", so it can be a program name with args.
6670set dummy mkdir; ac_word=$2
6671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673if test "${ac_cv_path_MKDIR+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676 case $MKDIR in
6677 [\\/]* | ?:[\\/]*)
6678 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6679 ;;
6680 *)
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692done
6693done
6694IFS=$as_save_IFS
6695
6696 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6697 ;;
6698esac
6699fi
6700MKDIR=$ac_cv_path_MKDIR
6701if test -n "$MKDIR"; then
6702 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6703echo "${ECHO_T}$MKDIR" >&6; }
6704else
6705 { echo "$as_me:$LINENO: result: no" >&5
6706echo "${ECHO_T}no" >&6; }
6707fi
6708
6709
6710# Extract the first word of "mv", so it can be a program name with args.
6711set dummy mv; ac_word=$2
6712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714if test "${ac_cv_path_MV+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717 case $MV in
6718 [\\/]* | ?:[\\/]*)
6719 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6720 ;;
6721 *)
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733done
6734done
6735IFS=$as_save_IFS
6736
6737 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6738 ;;
6739esac
6740fi
6741MV=$ac_cv_path_MV
6742if test -n "$MV"; then
6743 { echo "$as_me:$LINENO: result: $MV" >&5
6744echo "${ECHO_T}$MV" >&6; }
6745else
6746 { echo "$as_me:$LINENO: result: no" >&5
6747echo "${ECHO_T}no" >&6; }
6748fi
6749
6750
6751if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756if test "${ac_cv_prog_RANLIB+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 if test -n "$RANLIB"; then
6760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773done
6774done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779RANLIB=$ac_cv_prog_RANLIB
6780if test -n "$RANLIB"; then
6781 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6782echo "${ECHO_T}$RANLIB" >&6; }
6783else
6784 { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
6786fi
6787
6788
6789fi
6790if test -z "$ac_cv_prog_RANLIB"; then
6791 ac_ct_RANLIB=$RANLIB
6792 # Extract the first word of "ranlib", so it can be a program name with args.
6793set dummy ranlib; ac_word=$2
6794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799 if test -n "$ac_ct_RANLIB"; then
6800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_ac_ct_RANLIB="ranlib"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813done
6814done
6815IFS=$as_save_IFS
6816
6817fi
6818fi
6819ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6820if test -n "$ac_ct_RANLIB"; then
6821 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6822echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6823else
6824 { echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6; }
6826fi
6827
6828 if test "x$ac_ct_RANLIB" = x; then
6829 RANLIB=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832yes:)
6833{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834whose name does not start with the host triplet. If you think this
6835configuration is useful to you, please write to autoconf@gnu.org." >&5
6836echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837whose name does not start with the host triplet. If you think this
6838configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841 RANLIB=$ac_ct_RANLIB
6842 fi
6843else
6844 RANLIB="$ac_cv_prog_RANLIB"
6845fi
6846
6847# Extract the first word of "rm", so it can be a program name with args.
6848set dummy rm; ac_word=$2
6849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_path_RM+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 case $RM in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872IFS=$as_save_IFS
6873
6874 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6875 ;;
6876esac
6877fi
6878RM=$ac_cv_path_RM
6879if test -n "$RM"; then
6880 { echo "$as_me:$LINENO: result: $RM" >&5
6881echo "${ECHO_T}$RM" >&6; }
6882else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
6885fi
6886
6887
6888# Extract the first word of "sed", so it can be a program name with args.
6889set dummy sed; ac_word=$2
6890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_path_SED+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894else
6895 case $SED in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6898 ;;
6899 *)
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911done
6912done
6913IFS=$as_save_IFS
6914
6915 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6916 ;;
6917esac
6918fi
6919SED=$ac_cv_path_SED
6920if test -n "$SED"; then
6921 { echo "$as_me:$LINENO: result: $SED" >&5
6922echo "${ECHO_T}$SED" >&6; }
6923else
6924 { echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6; }
6926fi
6927
6928
6929# Extract the first word of "tar", so it can be a program name with args.
6930set dummy tar; ac_word=$2
6931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933if test "${ac_cv_path_TAR+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935else
6936 case $TAR in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6939 ;;
6940 *)
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953done
6954IFS=$as_save_IFS
6955
6956 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6957 ;;
6958esac
6959fi
6960TAR=$ac_cv_path_TAR
6961if test -n "$TAR"; then
6962 { echo "$as_me:$LINENO: result: $TAR" >&5
6963echo "${ECHO_T}$TAR" >&6; }
6964else
6965 { echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6; }
6967fi
6968
6969
6970# Extract the first word of "pwd", so it can be a program name with args.
6971set dummy pwd; ac_word=$2
6972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974if test "${ac_cv_path_BINPWD+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977 case $BINPWD in
6978 [\\/]* | ?:[\\/]*)
6979 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6980 ;;
6981 *)
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993done
6994done
6995IFS=$as_save_IFS
6996
6997 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6998 ;;
6999esac
7000fi
7001BINPWD=$ac_cv_path_BINPWD
7002if test -n "$BINPWD"; then
7003 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7004echo "${ECHO_T}$BINPWD" >&6; }
7005else
7006 { echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6; }
7008fi
7009
7010
7011
7012# Extract the first word of "Graphviz", so it can be a program name with args.
7013set dummy Graphviz; ac_word=$2
7014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019 case $GRAPHVIZ in
7020 [\\/]* | ?:[\\/]*)
7021 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7022 ;;
7023 *)
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035done
7036done
7037IFS=$as_save_IFS
7038
7039 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7040 ;;
7041esac
7042fi
7043GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7044if test -n "$GRAPHVIZ"; then
7045 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7046echo "${ECHO_T}$GRAPHVIZ" >&6; }
7047else
7048 { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
7050fi
7051
7052
7053if test "$GRAPHVIZ" != "echo Graphviz" ; then
7054
7055cat >>confdefs.h <<\_ACEOF
7056#define HAVE_GRAPHVIZ 1
7057_ACEOF
7058
7059 if test "$llvm_cv_os_type" == "MingW" ; then
7060 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7061 fi
7062
7063cat >>confdefs.h <<_ACEOF
7064#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7065_ACEOF
7066
7067fi
7068# Extract the first word of "dot", so it can be a program name with args.
7069set dummy dot; ac_word=$2
7070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072if test "${ac_cv_path_DOT+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074else
7075 case $DOT in
7076 [\\/]* | ?:[\\/]*)
7077 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7078 ;;
7079 *)
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091done
7092done
7093IFS=$as_save_IFS
7094
7095 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7096 ;;
7097esac
7098fi
7099DOT=$ac_cv_path_DOT
7100if test -n "$DOT"; then
7101 { echo "$as_me:$LINENO: result: $DOT" >&5
7102echo "${ECHO_T}$DOT" >&6; }
7103else
7104 { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
7106fi
7107
7108
7109if test "$DOT" != "echo dot" ; then
7110
7111cat >>confdefs.h <<\_ACEOF
7112#define HAVE_DOT 1
7113_ACEOF
7114
7115 if test "$llvm_cv_os_type" == "MingW" ; then
7116 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7117 fi
7118
7119cat >>confdefs.h <<_ACEOF
7120#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7121_ACEOF
7122
7123fi
7124for ac_prog in gv gsview32
7125do
7126 # Extract the first word of "$ac_prog", so it can be a program name with args.
7127set dummy $ac_prog; ac_word=$2
7128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130if test "${ac_cv_path_GV+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133 case $GV in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7136 ;;
7137 *)
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149done
7150done
7151IFS=$as_save_IFS
7152
7153 ;;
7154esac
7155fi
7156GV=$ac_cv_path_GV
7157if test -n "$GV"; then
7158 { echo "$as_me:$LINENO: result: $GV" >&5
7159echo "${ECHO_T}$GV" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166 test -n "$GV" && break
7167done
7168test -n "$GV" || GV="echo gv"
7169
7170if test "$GV" != "echo gv" ; then
7171
7172cat >>confdefs.h <<\_ACEOF
7173#define HAVE_GV 1
7174_ACEOF
7175
7176 if test "$llvm_cv_os_type" == "MingW" ; then
7177 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7178 fi
7179
7180cat >>confdefs.h <<_ACEOF
7181#define LLVM_PATH_GV "$GV${EXEEXT}"
7182_ACEOF
7183
7184fi
7185# Extract the first word of "dotty", so it can be a program name with args.
7186set dummy dotty; ac_word=$2
7187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189if test "${ac_cv_path_DOTTY+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 case $DOTTY in
7193 [\\/]* | ?:[\\/]*)
7194 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7195 ;;
7196 *)
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7207 fi
7208done
7209done
7210IFS=$as_save_IFS
7211
7212 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7213 ;;
7214esac
7215fi
7216DOTTY=$ac_cv_path_DOTTY
7217if test -n "$DOTTY"; then
7218 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7219echo "${ECHO_T}$DOTTY" >&6; }
7220else
7221 { echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6; }
7223fi
7224
7225
7226if test "$DOTTY" != "echo dotty" ; then
7227
7228cat >>confdefs.h <<\_ACEOF
7229#define HAVE_DOTTY 1
7230_ACEOF
7231
7232 if test "$llvm_cv_os_type" == "MingW" ; then
7233 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7234 fi
7235
7236cat >>confdefs.h <<_ACEOF
7237#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7238_ACEOF
7239
7240fi
7241
7242
7243# Extract the first word of "perl", so it can be a program name with args.
7244set dummy perl; ac_word=$2
7245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247if test "${ac_cv_path_PERL+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250 case $PERL in
7251 [\\/]* | ?:[\\/]*)
7252 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7253 ;;
7254 *)
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266done
7267done
7268IFS=$as_save_IFS
7269
7270 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7271 ;;
7272esac
7273fi
7274PERL=$ac_cv_path_PERL
7275if test -n "$PERL"; then
7276 { echo "$as_me:$LINENO: result: $PERL" >&5
7277echo "${ECHO_T}$PERL" >&6; }
7278else
7279 { echo "$as_me:$LINENO: result: no" >&5
7280echo "${ECHO_T}no" >&6; }
7281fi
7282
7283
7284if test "$PERL" != "none"; then
7285 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7286echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7287 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7288 { echo "$as_me:$LINENO: result: yes" >&5
7289echo "${ECHO_T}yes" >&6; }
7290 else
7291 PERL=none
7292 { echo "$as_me:$LINENO: result: not found" >&5
7293echo "${ECHO_T}not found" >&6; }
7294 fi
7295fi
7296
7297
7298if test x"$PERL" = xnone; then
7299 HAVE_PERL=0
7300
7301else
7302 HAVE_PERL=1
7303
7304fi
7305
7306# Find a good install program. We prefer a C program (faster),
7307# so one script is as good as another. But avoid the broken or
7308# incompatible versions:
7309# SysV /etc/install, /usr/sbin/install
7310# SunOS /usr/etc/install
7311# IRIX /sbin/install
7312# AIX /bin/install
7313# AmigaOS /C/install, which installs bootblocks on floppy discs
7314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7317# OS/2's system install, which has a completely different semantic
7318# ./install, which can be erroneously created by make from ./install.sh.
7319{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7320echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7321if test -z "$INSTALL"; then
7322if test "${ac_cv_path_install+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 # Account for people who put trailing slashes in PATH elements.
7331case $as_dir/ in
7332 ./ | .// | /cC/* | \
7333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7334 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7335 /usr/ucb/* ) ;;
7336 *)
7337 # OSF1 and SCO ODT 3.0 have their own names for install.
7338 # Don't use installbsd from OSF since it installs stuff as root
7339 # by default.
7340 for ac_prog in ginstall scoinst install; do
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7343 if test $ac_prog = install &&
7344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7345 # AIX install. It has an incompatible calling convention.
7346 :
7347 elif test $ac_prog = install &&
7348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7349 # program-specific install script used by HP pwplus--don't use.
7350 :
7351 else
7352 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7353 break 3
7354 fi
7355 fi
7356 done
7357 done
7358 ;;
7359esac
7360done
7361IFS=$as_save_IFS
7362
7363
7364fi
7365 if test "${ac_cv_path_install+set}" = set; then
7366 INSTALL=$ac_cv_path_install
7367 else
7368 # As a last resort, use the slow shell script. Don't cache a
7369 # value for INSTALL within a source directory, because that will
7370 # break other packages using the cache if that directory is
7371 # removed, or if the value is a relative name.
7372 INSTALL=$ac_install_sh
7373 fi
7374fi
7375{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7376echo "${ECHO_T}$INSTALL" >&6; }
7377
7378# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7379# It thinks the first close brace ends the variable substitution.
7380test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7381
7382test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7383
7384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7385
7386
7387# Extract the first word of "bzip2", so it can be a program name with args.
7388set dummy bzip2; ac_word=$2
7389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391if test "${ac_cv_path_BZIP2+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 case $BZIP2 in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411done
7412IFS=$as_save_IFS
7413
7414 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7415 ;;
7416esac
7417fi
7418BZIP2=$ac_cv_path_BZIP2
7419if test -n "$BZIP2"; then
7420 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7421echo "${ECHO_T}$BZIP2" >&6; }
7422else
7423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
7425fi
7426
7427
7428# Extract the first word of "doxygen", so it can be a program name with args.
7429set dummy doxygen; ac_word=$2
7430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7432if test "${ac_cv_path_DOXYGEN+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 case $DOXYGEN in
7436 [\\/]* | ?:[\\/]*)
7437 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7438 ;;
7439 *)
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453IFS=$as_save_IFS
7454
7455 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7456 ;;
7457esac
7458fi
7459DOXYGEN=$ac_cv_path_DOXYGEN
7460if test -n "$DOXYGEN"; then
7461 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7462echo "${ECHO_T}$DOXYGEN" >&6; }
7463else
7464 { echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6; }
7466fi
7467
7468
7469# Extract the first word of "etags", so it can be a program name with args.
7470set dummy etags; ac_word=$2
7471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473if test "${ac_cv_path_ETAGS+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476 case $ETAGS in
7477 [\\/]* | ?:[\\/]*)
7478 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
7479 ;;
7480 *)
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492done
7493done
7494IFS=$as_save_IFS
7495
7496 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
7497 ;;
7498esac
7499fi
7500ETAGS=$ac_cv_path_ETAGS
7501if test -n "$ETAGS"; then
7502 { echo "$as_me:$LINENO: result: $ETAGS" >&5
7503echo "${ECHO_T}$ETAGS" >&6; }
7504else
7505 { echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6; }
7507fi
7508
7509
7510# Extract the first word of "groff", so it can be a program name with args.
7511set dummy groff; ac_word=$2
7512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514if test "${ac_cv_path_GROFF+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516else
7517 case $GROFF in
7518 [\\/]* | ?:[\\/]*)
7519 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7520 ;;
7521 *)
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534done
7535IFS=$as_save_IFS
7536
7537 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7538 ;;
7539esac
7540fi
7541GROFF=$ac_cv_path_GROFF
7542if test -n "$GROFF"; then
7543 { echo "$as_me:$LINENO: result: $GROFF" >&5
7544echo "${ECHO_T}$GROFF" >&6; }
7545else
7546 { echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6; }
7548fi
7549
7550
7551# Extract the first word of "gzip", so it can be a program name with args.
7552set dummy gzip; ac_word=$2
7553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555if test "${ac_cv_path_GZIP+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558 case $GZIP in
7559 [\\/]* | ?:[\\/]*)
7560 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7561 ;;
7562 *)
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574done
7575done
7576IFS=$as_save_IFS
7577
7578 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7579 ;;
7580esac
7581fi
7582GZIP=$ac_cv_path_GZIP
7583if test -n "$GZIP"; then
7584 { echo "$as_me:$LINENO: result: $GZIP" >&5
7585echo "${ECHO_T}$GZIP" >&6; }
7586else
7587 { echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6; }
7589fi
7590
7591
7592# Extract the first word of "pod2html", so it can be a program name with args.
7593set dummy pod2html; ac_word=$2
7594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596if test "${ac_cv_path_POD2HTML+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599 case $POD2HTML in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615done
7616done
7617IFS=$as_save_IFS
7618
7619 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7620 ;;
7621esac
7622fi
7623POD2HTML=$ac_cv_path_POD2HTML
7624if test -n "$POD2HTML"; then
7625 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7626echo "${ECHO_T}$POD2HTML" >&6; }
7627else
7628 { echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6; }
7630fi
7631
7632
7633# Extract the first word of "pod2man", so it can be a program name with args.
7634set dummy pod2man; ac_word=$2
7635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637if test "${ac_cv_path_POD2MAN+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640 case $POD2MAN in
7641 [\\/]* | ?:[\\/]*)
7642 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7643 ;;
7644 *)
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656done
7657done
7658IFS=$as_save_IFS
7659
7660 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7661 ;;
7662esac
7663fi
7664POD2MAN=$ac_cv_path_POD2MAN
7665if test -n "$POD2MAN"; then
7666 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7667echo "${ECHO_T}$POD2MAN" >&6; }
7668else
7669 { echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6; }
7671fi
7672
7673
7674# Extract the first word of "runtest", so it can be a program name with args.
7675set dummy runtest; ac_word=$2
7676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678if test "${ac_cv_path_RUNTEST+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680else
7681 case $RUNTEST in
7682 [\\/]* | ?:[\\/]*)
7683 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7684 ;;
7685 *)
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 break 2
7696 fi
7697done
7698done
7699IFS=$as_save_IFS
7700
7701 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7702 ;;
7703esac
7704fi
7705RUNTEST=$ac_cv_path_RUNTEST
7706if test -n "$RUNTEST"; then
7707 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7708echo "${ECHO_T}$RUNTEST" >&6; }
7709else
7710 { echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6; }
7712fi
7713
7714
7715
7716no_itcl=true
7717{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7718echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7719
7720# Check whether --with-tclinclude was given.
7721if test "${with_tclinclude+set}" = set; then
7722 withval=$with_tclinclude; with_tclinclude=${withval}
7723else
7724 with_tclinclude=''
7725fi
7726
7727if test "${ac_cv_path_tclsh+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730
7731if test x"${with_tclinclude}" != x ; then
7732 if test -f ${with_tclinclude}/tclsh ; then
7733 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7734 elif test -f ${with_tclinclude}/src/tclsh ; then
7735 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7736 else
7737 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7738echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7739 { (exit 1); exit 1; }; }
7740 fi
7741fi
7742
7743if test x"${ac_cv_path_tclsh}" = x ; then
7744 { echo "$as_me:$LINENO: result: none" >&5
7745echo "${ECHO_T}none" >&6; }
7746 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
7747do
7748 # Extract the first word of "$ac_prog", so it can be a program name with args.
7749set dummy $ac_prog; ac_word=$2
7750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7752if test "${ac_cv_path_TCLSH+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754else
7755 case $TCLSH in
7756 [\\/]* | ?:[\\/]*)
7757 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7758 ;;
7759 *)
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7770 fi
7771done
7772done
7773IFS=$as_save_IFS
7774
7775 ;;
7776esac
7777fi
7778TCLSH=$ac_cv_path_TCLSH
7779if test -n "$TCLSH"; then
7780 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7781echo "${ECHO_T}$TCLSH" >&6; }
7782else
7783 { echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6; }
7785fi
7786
7787
7788 test -n "$TCLSH" && break
7789done
7790
7791 if test x"${TCLSH}" = x ; then
7792 ac_cv_path_tclsh='';
7793 else
7794 ac_cv_path_tclsh="${TCLSH}";
7795 fi
7796else
7797 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7798echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7799 TCLSH="${ac_cv_path_tclsh}"
7800
7801fi
7802
7803fi
7804
7805# Extract the first word of "zip", so it can be a program name with args.
7806set dummy zip; ac_word=$2
7807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7809if test "${ac_cv_path_ZIP+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811else
7812 case $ZIP in
7813 [\\/]* | ?:[\\/]*)
7814 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7815 ;;
7816 *)
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7824 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828done
7829done
7830IFS=$as_save_IFS
7831
7832 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7833 ;;
7834esac
7835fi
7836ZIP=$ac_cv_path_ZIP
7837if test -n "$ZIP"; then
7838 { echo "$as_me:$LINENO: result: $ZIP" >&5
7839echo "${ECHO_T}$ZIP" >&6; }
7840else
7841 { echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6; }
7843fi
7844
7845
7846
7847{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7848echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7849if test "${llvm_cv_link_use_r+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852 ac_ext=c
7853ac_cpp='$CPP $CPPFLAGS'
7854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857
7858 oldcflags="$CFLAGS"
7859 CFLAGS="$CFLAGS -Wl,-R."
7860 cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h. */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h. */
7866
7867int
7868main ()
7869{
7870int main() { return 0; }
7871 ;
7872 return 0;
7873}
7874_ACEOF
7875rm -f conftest.$ac_objext conftest$ac_exeext
7876if { (ac_try="$ac_link"
7877case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880esac
7881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_link") 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7890 { (case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7893esac
7894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_try") 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903esac
7904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_try") 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7909 llvm_cv_link_use_r=yes
7910else
7911 echo "$as_me: failed program was:" >&5
7912sed 's/^/| /' conftest.$ac_ext >&5
7913
7914 llvm_cv_link_use_r=no
7915fi
7916
7917rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7919 CFLAGS="$oldcflags"
7920 ac_ext=c
7921ac_cpp='$CPP $CPPFLAGS'
7922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924ac_compiler_gnu=$ac_cv_c_compiler_gnu
7925
7926
7927fi
7928{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7929echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7930if test "$llvm_cv_link_use_r" = yes ; then
7931
7932cat >>confdefs.h <<\_ACEOF
7933#define HAVE_LINK_R 1
7934_ACEOF
7935
7936 fi
7937
7938
7939
7940
7941{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7942echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7943if test "${ac_cv_c_const+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
7952
7953int
7954main ()
7955{
7956/* FIXME: Include the comments suggested by Paul. */
7957#ifndef __cplusplus
7958 /* Ultrix mips cc rejects this. */
7959 typedef int charset[2];
7960 const charset x;
7961 /* SunOS 4.1.1 cc rejects this. */
7962 char const *const *ccp;
7963 char **p;
7964 /* NEC SVR4.0.2 mips cc rejects this. */
7965 struct point {int x, y;};
7966 static struct point const zero = {0,0};
7967 /* AIX XL C 1.02.0.0 rejects this.
7968 It does not let you subtract one const X* pointer from another in
7969 an arm of an if-expression whose if-part is not a constant
7970 expression */
7971 const char *g = "string";
7972 ccp = &g + (g ? g-g : 0);
7973 /* HPUX 7.0 cc rejects these. */
7974 ++ccp;
7975 p = (char**) ccp;
7976 ccp = (char const *const *) p;
7977 { /* SCO 3.2v4 cc rejects this. */
7978 char *t;
7979 char const *s = 0 ? (char *) 0 : (char const *) 0;
7980
7981 *t++ = 0;
7982 if (s) return 0;
7983 }
7984 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7985 int x[] = {25, 17};
7986 const int *foo = &x[0];
7987 ++foo;
7988 }
7989 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7990 typedef const int *iptr;
7991 iptr p = 0;
7992 ++p;
7993 }
7994 { /* AIX XL C 1.02.0.0 rejects this saying
7995 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7996 struct s { int j; const int *ap[3]; };
7997 struct s *b; b->j = 5;
7998 }
7999 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8000 const int foo = 10;
8001 if (!foo) return 0;
8002 }
8003 return !x[0] && !zero.x;
8004#endif
8005
8006 ;
8007 return 0;
8008}
8009_ACEOF
8010rm -f conftest.$ac_objext
8011if { (ac_try="$ac_compile"
8012case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015esac
8016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_try") 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038esac
8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 ac_cv_c_const=yes
8045else
8046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 ac_cv_c_const=no
8050fi
8051
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053fi
8054{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8055echo "${ECHO_T}$ac_cv_c_const" >&6; }
8056if test $ac_cv_c_const = no; then
8057
8058cat >>confdefs.h <<\_ACEOF
8059#define const
8060_ACEOF
8061
8062fi
8063
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008064
8065
8066
8067
8068
8069ac_header_dirent=no
8070for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8071 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008072{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8073echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076else
8077 cat >conftest.$ac_ext <<_ACEOF
8078/* confdefs.h. */
8079_ACEOF
8080cat confdefs.h >>conftest.$ac_ext
8081cat >>conftest.$ac_ext <<_ACEOF
8082/* end confdefs.h. */
8083#include <sys/types.h>
8084#include <$ac_hdr>
8085
8086int
8087main ()
8088{
8089if ((DIR *) 0)
8090return 0;
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008096if { (ac_try="$ac_compile"
8097case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100esac
8101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8110 { (case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8113esac
8114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008120 { (case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8123esac
8124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 eval "$as_ac_Header=yes"
8130else
8131 echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
Reid Spencera773bd52006-08-04 18:18:08 +00008134 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008135fi
Reid Spencera773bd52006-08-04 18:18:08 +00008136
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008138fi
Reid Spencera773bd52006-08-04 18:18:08 +00008139ac_res=`eval echo '${'$as_ac_Header'}'`
8140 { echo "$as_me:$LINENO: result: $ac_res" >&5
8141echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008142if test `eval echo '${'$as_ac_Header'}'` = yes; then
8143 cat >>confdefs.h <<_ACEOF
8144#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8145_ACEOF
8146
8147ac_header_dirent=$ac_hdr; break
8148fi
8149
8150done
8151# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8152if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008153 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8154echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008155if test "${ac_cv_search_opendir+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157else
8158 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008159cat >conftest.$ac_ext <<_ACEOF
8160/* confdefs.h. */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h. */
8165
Reid Spencera773bd52006-08-04 18:18:08 +00008166/* Override any GCC internal prototype to avoid an error.
8167 Use char because int might match the return type of a GCC
8168 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008169#ifdef __cplusplus
8170extern "C"
8171#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008172char opendir ();
8173int
8174main ()
8175{
Reid Spencera773bd52006-08-04 18:18:08 +00008176return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008177 ;
8178 return 0;
8179}
8180_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008181for ac_lib in '' dir; do
8182 if test -z "$ac_lib"; then
8183 ac_res="none required"
8184 else
8185 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008187 fi
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189if { (ac_try="$ac_link"
8190case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8193esac
8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008196 ac_status=$?
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8203 { (case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206esac
8207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; } &&
8212 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216esac
8217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008222 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008223else
8224 echo "$as_me: failed program was:" >&5
8225sed 's/^/| /' conftest.$ac_ext >&5
8226
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008227
8228fi
8229
Reid Spencera773bd52006-08-04 18:18:08 +00008230rm -f core conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext
8232 if test "${ac_cv_search_opendir+set}" = set; then
8233 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008234fi
John Criswell7a73b802003-06-30 21:59:07 +00008235done
Reid Spencera773bd52006-08-04 18:18:08 +00008236if test "${ac_cv_search_opendir+set}" = set; then
8237 :
8238else
8239 ac_cv_search_opendir=no
8240fi
8241rm conftest.$ac_ext
8242LIBS=$ac_func_search_save_LIBS
8243fi
8244{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8245echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8246ac_res=$ac_cv_search_opendir
8247if test "$ac_res" != no; then
8248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008249
Reid Spencera773bd52006-08-04 18:18:08 +00008250fi
8251
8252else
8253 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8254echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8255if test "${ac_cv_search_opendir+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257else
8258 ac_func_search_save_LIBS=$LIBS
8259cat >conftest.$ac_ext <<_ACEOF
8260/* confdefs.h. */
8261_ACEOF
8262cat confdefs.h >>conftest.$ac_ext
8263cat >>conftest.$ac_ext <<_ACEOF
8264/* end confdefs.h. */
8265
8266/* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8269#ifdef __cplusplus
8270extern "C"
8271#endif
8272char opendir ();
8273int
8274main ()
8275{
8276return opendir ();
8277 ;
8278 return 0;
8279}
8280_ACEOF
8281for ac_lib in '' x; do
8282 if test -z "$ac_lib"; then
8283 ac_res="none required"
8284 else
8285 ac_res=-l$ac_lib
8286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8287 fi
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289if { (ac_try="$ac_link"
8290case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_link") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316esac
8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_search_opendir=$ac_res
8323else
8324 echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327
8328fi
8329
8330rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext
8332 if test "${ac_cv_search_opendir+set}" = set; then
8333 break
8334fi
8335done
8336if test "${ac_cv_search_opendir+set}" = set; then
8337 :
8338else
8339 ac_cv_search_opendir=no
8340fi
8341rm conftest.$ac_ext
8342LIBS=$ac_func_search_save_LIBS
8343fi
8344{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8345echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8346ac_res=$ac_cv_search_opendir
8347if test "$ac_res" != no; then
8348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8349
8350fi
8351
8352fi
John Criswell7a73b802003-06-30 21:59:07 +00008353
8354
8355for ac_header in dlfcn.h
8356do
8357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008362 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008363fi
Reid Spencera773bd52006-08-04 18:18:08 +00008364ac_res=`eval echo '${'$as_ac_Header'}'`
8365 { echo "$as_me:$LINENO: result: $ac_res" >&5
8366echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008367else
Brian Gaeke0a621332004-09-08 20:38:05 +00008368 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008369{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008371cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008372/* confdefs.h. */
8373_ACEOF
8374cat confdefs.h >>conftest.$ac_ext
8375cat >>conftest.$ac_ext <<_ACEOF
8376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008377$ac_includes_default
8378#include <$ac_header>
8379_ACEOF
8380rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008381if { (ac_try="$ac_compile"
8382case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008388 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398esac
8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008414 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008415else
8416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008417sed 's/^/| /' conftest.$ac_ext >&5
8418
Reid Spencera773bd52006-08-04 18:18:08 +00008419 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008420fi
Reid Spencera773bd52006-08-04 18:18:08 +00008421
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8424echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008425
8426# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008427{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008429cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008430/* confdefs.h. */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h. */
8435#include <$ac_header>
8436_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008437if { (ac_try="$ac_cpp conftest.$ac_ext"
8438case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441esac
8442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } >/dev/null; then
8450 if test -s conftest.err; then
8451 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008453 else
8454 ac_cpp_err=
8455 fi
8456else
8457 ac_cpp_err=yes
8458fi
8459if test -z "$ac_cpp_err"; then
8460 ac_header_preproc=yes
8461else
8462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 ac_header_preproc=no
8466fi
Reid Spencera773bd52006-08-04 18:18:08 +00008467
Brian Gaeke0a621332004-09-08 20:38:05 +00008468rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008469{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008471
8472# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8474 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8479 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008480 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008481 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008494 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008495## ----------------------------------- ##
8496## Report this to llvmbugs@cs.uiuc.edu ##
8497## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008498_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008499 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008500 ;;
8501esac
Reid Spencera773bd52006-08-04 18:18:08 +00008502{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008507 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008508fi
Reid Spencera773bd52006-08-04 18:18:08 +00008509ac_res=`eval echo '${'$as_ac_Header'}'`
8510 { echo "$as_me:$LINENO: result: $ac_res" >&5
8511echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008512
8513fi
John Criswell7a73b802003-06-30 21:59:07 +00008514if test `eval echo '${'$as_ac_Header'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8517_ACEOF
8518
8519fi
8520
8521done
8522
Reid Spencera773bd52006-08-04 18:18:08 +00008523# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008524if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008525 enableval=$enable_ltdl_install;
8526fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008527
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008528
8529
8530
8531if test x"${enable_ltdl_install-no}" != xno; then
8532 INSTALL_LTDL_TRUE=
8533 INSTALL_LTDL_FALSE='#'
8534else
8535 INSTALL_LTDL_TRUE='#'
8536 INSTALL_LTDL_FALSE=
8537fi
8538
8539
8540
8541if test x"${enable_ltdl_convenience-no}" != xno; then
8542 CONVENIENCE_LTDL_TRUE=
8543 CONVENIENCE_LTDL_FALSE='#'
8544else
8545 CONVENIENCE_LTDL_TRUE='#'
8546 CONVENIENCE_LTDL_FALSE=
8547fi
8548
8549
Reid Spencera773bd52006-08-04 18:18:08 +00008550{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8551echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008552library_names_spec=
8553libname_spec='lib$name'
8554soname_spec=
8555shrext_cmds=".so"
8556postinstall_cmds=
8557postuninstall_cmds=
8558finish_cmds=
8559finish_eval=
8560shlibpath_var=
8561shlibpath_overrides_runpath=unknown
8562version_type=none
8563dynamic_linker="$host_os ld.so"
8564sys_lib_dlsearch_path_spec="/lib /usr/lib"
8565if test "$GCC" = yes; then
8566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8567 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8568 # if the path contains ";" then we assume it to be the separator
8569 # otherwise default to the standard path separator (i.e. ":") - it is
8570 # assumed that no part of a normal pathname contains ";" but that should
8571 # okay in the real world where ";" in dirpaths is itself problematic.
8572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8573 else
8574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8575 fi
8576else
8577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8578fi
8579need_lib_prefix=unknown
8580hardcode_into_libs=no
8581
8582# when you set need_version to no, make sure it does not cause -set_version
8583# flags to be left without arguments
8584need_version=unknown
8585
8586case $host_os in
8587aix3*)
8588 version_type=linux
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8590 shlibpath_var=LIBPATH
8591
8592 # AIX 3 has no versioning support, so we append a major version to the name.
8593 soname_spec='${libname}${release}${shared_ext}$major'
8594 ;;
8595
8596aix4* | aix5*)
8597 version_type=linux
8598 need_lib_prefix=no
8599 need_version=no
8600 hardcode_into_libs=yes
8601 if test "$host_cpu" = ia64; then
8602 # AIX 5 supports IA64
8603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8604 shlibpath_var=LD_LIBRARY_PATH
8605 else
8606 # With GCC up to 2.95.x, collect2 would create an import file
8607 # for dependence libraries. The import file would start with
8608 # the line `#! .'. This would cause the generated library to
8609 # depend on `.', always an invalid library. This was fixed in
8610 # development snapshots of GCC prior to 3.0.
8611 case $host_os in
8612 aix4 | aix4.[01] | aix4.[01].*)
8613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8614 echo ' yes '
8615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8616 :
8617 else
8618 can_build_shared=no
8619 fi
8620 ;;
8621 esac
8622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8623 # soname into executable. Probably we can add versioning support to
8624 # collect2, so additional links can be useful in future.
8625 if test "$aix_use_runtimelinking" = yes; then
8626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8627 # instead of lib<name>.a to let people know that these are not
8628 # typical AIX shared libraries.
8629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8630 else
8631 # We preserve .a as extension for shared libraries through AIX4.2
8632 # and later when we are not doing run time linking.
8633 library_names_spec='${libname}${release}.a $libname.a'
8634 soname_spec='${libname}${release}${shared_ext}$major'
8635 fi
8636 shlibpath_var=LIBPATH
8637 fi
8638 ;;
8639
8640amigaos*)
8641 library_names_spec='$libname.ixlibrary $libname.a'
8642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8643 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'
8644 ;;
8645
8646beos*)
8647 library_names_spec='${libname}${shared_ext}'
8648 dynamic_linker="$host_os ld.so"
8649 shlibpath_var=LIBRARY_PATH
8650 ;;
8651
8652bsdi[45]*)
8653 version_type=linux
8654 need_version=no
8655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8656 soname_spec='${libname}${release}${shared_ext}$major'
8657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8658 shlibpath_var=LD_LIBRARY_PATH
8659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8661 # the default ld.so.conf also contains /usr/contrib/lib and
8662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8663 # libtool to hard-code these into programs
8664 ;;
8665
8666cygwin* | mingw* | pw32*)
8667 version_type=windows
8668 shrext_cmds=".dll"
8669 need_version=no
8670 need_lib_prefix=no
8671
8672 case $GCC,$host_os in
8673 yes,cygwin* | yes,mingw* | yes,pw32*)
8674 library_names_spec='$libname.dll.a'
8675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8676 postinstall_cmds='base_file=`basename \${file}`~
8677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8678 dldir=$destdir/`dirname \$dlpath`~
8679 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008680 $install_prog $dir/$dlname \$dldir/$dlname~
8681 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8683 dlpath=$dir/\$dldll~
8684 $rm \$dlpath'
8685 shlibpath_overrides_runpath=yes
8686
8687 case $host_os in
8688 cygwin*)
8689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8691 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8692 ;;
8693 mingw*)
8694 # MinGW DLLs use traditional 'lib' prefix
8695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8697 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8698 # It is most probably a Windows format PATH printed by
8699 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8700 # path with ; separators, and with drive letters. We can handle the
8701 # drive letters (cygwin fileutils understands them), so leave them,
8702 # especially as we might pass files found there to a mingw objdump,
8703 # which wouldn't understand a cygwinified path. Ahh.
8704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8705 else
8706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8707 fi
8708 ;;
8709 pw32*)
8710 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008711 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 +00008712 ;;
8713 esac
8714 ;;
8715
8716 *)
8717 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8718 ;;
8719 esac
8720 dynamic_linker='Win32 ld.exe'
8721 # FIXME: first we should search . and the directory the executable is in
8722 shlibpath_var=PATH
8723 ;;
8724
8725darwin* | rhapsody*)
8726 dynamic_linker="$host_os dyld"
8727 version_type=darwin
8728 need_lib_prefix=no
8729 need_version=no
8730 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8731 soname_spec='${libname}${release}${major}$shared_ext'
8732 shlibpath_overrides_runpath=yes
8733 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008734 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008735 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8736 if test "$GCC" = yes; then
8737 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"`
8738 else
8739 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8740 fi
8741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8742 ;;
8743
8744dgux*)
8745 version_type=linux
8746 need_lib_prefix=no
8747 need_version=no
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 shlibpath_var=LD_LIBRARY_PATH
8751 ;;
8752
8753freebsd1*)
8754 dynamic_linker=no
8755 ;;
8756
8757kfreebsd*-gnu)
8758 version_type=linux
8759 need_lib_prefix=no
8760 need_version=no
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8762 soname_spec='${libname}${release}${shared_ext}$major'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=no
8765 hardcode_into_libs=yes
8766 dynamic_linker='GNU ld.so'
8767 ;;
8768
Reid Spencera773bd52006-08-04 18:18:08 +00008769freebsd* | dragonfly*)
8770 # DragonFly does not have aout. When/if they implement a new
8771 # versioning mechanism, adjust this.
8772 if test -x /usr/bin/objformat; then
8773 objformat=`/usr/bin/objformat`
8774 else
8775 case $host_os in
8776 freebsd[123]*) objformat=aout ;;
8777 *) objformat=elf ;;
8778 esac
8779 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780 version_type=freebsd-$objformat
8781 case $version_type in
8782 freebsd-elf*)
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8784 need_version=no
8785 need_lib_prefix=no
8786 ;;
8787 freebsd-*)
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8789 need_version=yes
8790 ;;
8791 esac
8792 shlibpath_var=LD_LIBRARY_PATH
8793 case $host_os in
8794 freebsd2*)
8795 shlibpath_overrides_runpath=yes
8796 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008797 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008798 shlibpath_overrides_runpath=yes
8799 hardcode_into_libs=yes
8800 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008803 shlibpath_overrides_runpath=no
8804 hardcode_into_libs=yes
8805 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008806 freebsd*) # from 4.6 on
8807 shlibpath_overrides_runpath=yes
8808 hardcode_into_libs=yes
8809 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008810 esac
8811 ;;
8812
8813gnu*)
8814 version_type=linux
8815 need_lib_prefix=no
8816 need_version=no
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 hardcode_into_libs=yes
8821 ;;
8822
8823hpux9* | hpux10* | hpux11*)
8824 # Give a soname corresponding to the major version so that dld.sl refuses to
8825 # link against other versions.
8826 version_type=sunos
8827 need_lib_prefix=no
8828 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008829 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008830 ia64*)
8831 shrext_cmds='.so'
8832 hardcode_into_libs=yes
8833 dynamic_linker="$host_os dld.so"
8834 shlibpath_var=LD_LIBRARY_PATH
8835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 if test "X$HPUX_IA64_MODE" = X32; then
8839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8840 else
8841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8842 fi
8843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8844 ;;
8845 hppa*64*)
8846 shrext_cmds='.sl'
8847 hardcode_into_libs=yes
8848 dynamic_linker="$host_os dld.sl"
8849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8855 ;;
8856 *)
8857 shrext_cmds='.sl'
8858 dynamic_linker="$host_os dld.sl"
8859 shlibpath_var=SHLIB_PATH
8860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 ;;
8864 esac
8865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8866 postinstall_cmds='chmod 555 $lib'
8867 ;;
8868
Reid Spencera773bd52006-08-04 18:18:08 +00008869interix3*)
8870 version_type=linux
8871 need_lib_prefix=no
8872 need_version=no
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 shlibpath_overrides_runpath=no
8878 hardcode_into_libs=yes
8879 ;;
8880
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008881irix5* | irix6* | nonstopux*)
8882 case $host_os in
8883 nonstopux*) version_type=nonstopux ;;
8884 *)
8885 if test "$lt_cv_prog_gnu_ld" = yes; then
8886 version_type=linux
8887 else
8888 version_type=irix
8889 fi ;;
8890 esac
8891 need_lib_prefix=no
8892 need_version=no
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8895 case $host_os in
8896 irix5* | nonstopux*)
8897 libsuff= shlibsuff=
8898 ;;
8899 *)
8900 case $LD in # libtool.m4 will add one of these switches to LD
8901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8902 libsuff= shlibsuff= libmagic=32-bit;;
8903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8904 libsuff=32 shlibsuff=N32 libmagic=N32;;
8905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8907 *) libsuff= shlibsuff= libmagic=never-match;;
8908 esac
8909 ;;
8910 esac
8911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8912 shlibpath_overrides_runpath=no
8913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8915 hardcode_into_libs=yes
8916 ;;
8917
8918# No shared lib support for Linux oldld, aout, or coff.
8919linux*oldld* | linux*aout* | linux*coff*)
8920 dynamic_linker=no
8921 ;;
8922
8923# This must be Linux ELF.
8924linux*)
8925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=no
8933 # This implies no fast_install, which is unacceptable.
8934 # Some rework will be needed to allow for fast_install
8935 # before this can be enabled.
8936 hardcode_into_libs=yes
8937
8938 # Append ld.so.conf contents to the search path
8939 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008940 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 +00008941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8942 fi
8943
8944 # We used to test for /lib/ld.so.1 and disable shared libraries on
8945 # powerpc, because MkLinux only supported shared libraries with the
8946 # GNU dynamic linker. Since this was broken with cross compilers,
8947 # most powerpc-linux boxes support dynamic linking these days and
8948 # people can always --disable-shared, the test was removed, and we
8949 # assume the GNU/Linux dynamic linker is in use.
8950 dynamic_linker='GNU/Linux ld.so'
8951 ;;
8952
8953knetbsd*-gnu)
8954 version_type=linux
8955 need_lib_prefix=no
8956 need_version=no
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 shlibpath_var=LD_LIBRARY_PATH
8960 shlibpath_overrides_runpath=no
8961 hardcode_into_libs=yes
8962 dynamic_linker='GNU ld.so'
8963 ;;
8964
8965netbsd*)
8966 version_type=sunos
8967 need_lib_prefix=no
8968 need_version=no
8969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8972 dynamic_linker='NetBSD (a.out) ld.so'
8973 else
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 dynamic_linker='NetBSD ld.elf_so'
8977 fi
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8980 hardcode_into_libs=yes
8981 ;;
8982
8983newsos6)
8984 version_type=linux
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes
8988 ;;
8989
8990nto-qnx*)
8991 version_type=linux
8992 need_lib_prefix=no
8993 need_version=no
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 shlibpath_overrides_runpath=yes
8998 ;;
8999
9000openbsd*)
9001 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009002 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009003 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009004 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9005 case $host_os in
9006 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9007 *) need_version=no ;;
9008 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9013 case $host_os in
9014 openbsd2.[89] | openbsd2.[89].*)
9015 shlibpath_overrides_runpath=no
9016 ;;
9017 *)
9018 shlibpath_overrides_runpath=yes
9019 ;;
9020 esac
9021 else
9022 shlibpath_overrides_runpath=yes
9023 fi
9024 ;;
9025
9026os2*)
9027 libname_spec='$name'
9028 shrext_cmds=".dll"
9029 need_lib_prefix=no
9030 library_names_spec='$libname${shared_ext} $libname.a'
9031 dynamic_linker='OS/2 ld.exe'
9032 shlibpath_var=LIBPATH
9033 ;;
9034
9035osf3* | osf4* | osf5*)
9036 version_type=osf
9037 need_lib_prefix=no
9038 need_version=no
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9043 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9044 ;;
9045
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009046solaris*)
9047 version_type=linux
9048 need_lib_prefix=no
9049 need_version=no
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9055 # ldd complains unless libraries are executable
9056 postinstall_cmds='chmod +x $lib'
9057 ;;
9058
9059sunos4*)
9060 version_type=sunos
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9062 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=yes
9065 if test "$with_gnu_ld" = yes; then
9066 need_lib_prefix=no
9067 fi
9068 need_version=yes
9069 ;;
9070
Reid Spencera773bd52006-08-04 18:18:08 +00009071sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009072 version_type=linux
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 case $host_vendor in
9077 sni)
9078 shlibpath_overrides_runpath=no
9079 need_lib_prefix=no
9080 export_dynamic_flag_spec='${wl}-Blargedynsym'
9081 runpath_var=LD_RUN_PATH
9082 ;;
9083 siemens)
9084 need_lib_prefix=no
9085 ;;
9086 motorola)
9087 need_lib_prefix=no
9088 need_version=no
9089 shlibpath_overrides_runpath=no
9090 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9091 ;;
9092 esac
9093 ;;
9094
9095sysv4*MP*)
9096 if test -d /usr/nec ;then
9097 version_type=linux
9098 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9099 soname_spec='$libname${shared_ext}.$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 fi
9102 ;;
9103
Reid Spencera773bd52006-08-04 18:18:08 +00009104sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9105 version_type=freebsd-elf
9106 need_lib_prefix=no
9107 need_version=no
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 hardcode_into_libs=yes
9112 if test "$with_gnu_ld" = yes; then
9113 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9114 shlibpath_overrides_runpath=no
9115 else
9116 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9117 shlibpath_overrides_runpath=yes
9118 case $host_os in
9119 sco3.2v5*)
9120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9121 ;;
9122 esac
9123 fi
9124 sys_lib_dlsearch_path_spec='/usr/lib'
9125 ;;
9126
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009127uts4*)
9128 version_type=linux
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 ;;
9133
9134*)
9135 dynamic_linker=no
9136 ;;
9137esac
Reid Spencera773bd52006-08-04 18:18:08 +00009138{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9139echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009140test "$dynamic_linker" = no && can_build_shared=no
9141
Reid Spencera773bd52006-08-04 18:18:08 +00009142variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9143if test "$GCC" = yes; then
9144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9145fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146
Reid Spencera773bd52006-08-04 18:18:08 +00009147
9148{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9149echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009150if test "${libltdl_cv_shlibext+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152else
9153
9154module=yes
9155eval libltdl_cv_shlibext=$shrext_cmds
9156
9157fi
Reid Spencera773bd52006-08-04 18:18:08 +00009158{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9159echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009160if test -n "$libltdl_cv_shlibext"; then
9161
9162cat >>confdefs.h <<_ACEOF
9163#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9164_ACEOF
9165
9166fi
9167
9168
Reid Spencera773bd52006-08-04 18:18:08 +00009169{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9170echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171if test "${libltdl_cv_shlibpath_var+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174 libltdl_cv_shlibpath_var="$shlibpath_var"
9175fi
Reid Spencera773bd52006-08-04 18:18:08 +00009176{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9177echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009178if test -n "$libltdl_cv_shlibpath_var"; then
9179
9180cat >>confdefs.h <<_ACEOF
9181#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9182_ACEOF
9183
9184fi
9185
9186
Reid Spencera773bd52006-08-04 18:18:08 +00009187{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9188echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009189if test "${libltdl_cv_sys_search_path+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9193fi
Reid Spencera773bd52006-08-04 18:18:08 +00009194{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9195echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009196if test -n "$libltdl_cv_sys_search_path"; then
9197 sys_search_path=
9198 for dir in $libltdl_cv_sys_search_path; do
9199 if test -z "$sys_search_path"; then
9200 sys_search_path="$dir"
9201 else
9202 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9203 fi
9204 done
9205
9206cat >>confdefs.h <<_ACEOF
9207#define LTDL_SYSSEARCHPATH "$sys_search_path"
9208_ACEOF
9209
9210fi
9211
Reid Spencera773bd52006-08-04 18:18:08 +00009212{ echo "$as_me:$LINENO: checking for objdir" >&5
9213echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009214if test "${libltdl_cv_objdir+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217 libltdl_cv_objdir="$objdir"
9218 if test -n "$objdir"; then
9219 :
9220 else
9221 rm -f .libs 2>/dev/null
9222 mkdir .libs 2>/dev/null
9223 if test -d .libs; then
9224 libltdl_cv_objdir=.libs
9225 else
9226 # MS-DOS does not allow filenames that begin with a dot.
9227 libltdl_cv_objdir=_libs
9228 fi
9229 rmdir .libs 2>/dev/null
9230 fi
9231
9232fi
Reid Spencera773bd52006-08-04 18:18:08 +00009233{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9234echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009235
9236cat >>confdefs.h <<_ACEOF
9237#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9238_ACEOF
9239
9240
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241
9242
9243
9244
9245# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009246{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9247echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251
9252# These are sane defaults that work on at least a few old systems.
9253# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9254
9255# Character class describing NM global symbol codes.
9256symcode='[BCDEGRST]'
9257
9258# Regexp to match symbols that can be accessed directly from C.
9259sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9260
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261# Transform an extracted symbol line into a proper C declaration
9262lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9263
9264# Transform an extracted symbol line into symbol name and symbol address
9265lt_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'"
9266
9267# Define system-specific variables.
9268case $host_os in
9269aix*)
9270 symcode='[BCDT]'
9271 ;;
9272cygwin* | mingw* | pw32*)
9273 symcode='[ABCDGISTW]'
9274 ;;
9275hpux*) # Its linker distinguishes data from code symbols
9276 if test "$host_cpu" = ia64; then
9277 symcode='[ABCDEGRST]'
9278 fi
9279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9280 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'"
9281 ;;
9282linux*)
9283 if test "$host_cpu" = ia64; then
9284 symcode='[ABCDGIRSTW]'
9285 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9286 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'"
9287 fi
9288 ;;
9289irix* | nonstopux*)
9290 symcode='[BCDEGRST]'
9291 ;;
9292osf*)
9293 symcode='[BCDEGQRST]'
9294 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009295solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296 symcode='[BDRT]'
9297 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009298sco3.2v5*)
9299 symcode='[DT]'
9300 ;;
9301sysv4.2uw2*)
9302 symcode='[DT]'
9303 ;;
9304sysv5* | sco5v6* | unixware* | OpenUNIX*)
9305 symcode='[ABDT]'
9306 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307sysv4)
9308 symcode='[DFNSTU]'
9309 ;;
9310esac
9311
9312# Handle CRLF in mingw tool chain
9313opt_cr=
9314case $build_os in
9315mingw*)
9316 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9317 ;;
9318esac
9319
9320# If we're using GNU nm, then use its standard symbol codes.
9321case `$NM -V 2>&1` in
9322*GNU* | *'with BFD'*)
9323 symcode='[ABCDGIRSTW]' ;;
9324esac
9325
9326# Try without a prefix undercore, then with it.
9327for ac_symprfx in "" "_"; do
9328
Reid Spencera773bd52006-08-04 18:18:08 +00009329 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9330 symxfrm="\\1 $ac_symprfx\\2 \\2"
9331
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009333 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 +00009334
9335 # Check to see that the pipe works correctly.
9336 pipe_works=no
9337
9338 rm -f conftest*
9339 cat > conftest.$ac_ext <<EOF
9340#ifdef __cplusplus
9341extern "C" {
9342#endif
9343char nm_test_var;
9344void nm_test_func(){}
9345#ifdef __cplusplus
9346}
9347#endif
9348int main(){nm_test_var='a';nm_test_func();return(0);}
9349EOF
9350
9351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9352 (eval $ac_compile) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; then
9356 # Now try to grab the symbols.
9357 nlist=conftest.nm
9358 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9359 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && test -s "$nlist"; then
9363 # Try sorting and uniquifying the output.
9364 if sort "$nlist" | uniq > "$nlist"T; then
9365 mv -f "$nlist"T "$nlist"
9366 else
9367 rm -f "$nlist"T
9368 fi
9369
9370 # Make sure that we snagged all the symbols we need.
9371 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9372 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9373 cat <<EOF > conftest.$ac_ext
9374#ifdef __cplusplus
9375extern "C" {
9376#endif
9377
9378EOF
9379 # Now generate the symbol file.
9380 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9381
9382 cat <<EOF >> conftest.$ac_ext
9383#if defined (__STDC__) && __STDC__
9384# define lt_ptr_t void *
9385#else
9386# define lt_ptr_t char *
9387# define const
9388#endif
9389
9390/* The mapping between symbol names and symbols. */
9391const struct {
9392 const char *name;
9393 lt_ptr_t address;
9394}
9395lt_preloaded_symbols[] =
9396{
9397EOF
9398 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9399 cat <<\EOF >> conftest.$ac_ext
9400 {0, (lt_ptr_t) 0}
9401};
9402
9403#ifdef __cplusplus
9404}
9405#endif
9406EOF
9407 # Now try linking the two files.
9408 mv conftest.$ac_objext conftstm.$ac_objext
9409 lt_save_LIBS="$LIBS"
9410 lt_save_CFLAGS="$CFLAGS"
9411 LIBS="conftstm.$ac_objext"
9412 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414 (eval $ac_link) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9418 pipe_works=yes
9419 fi
9420 LIBS="$lt_save_LIBS"
9421 CFLAGS="$lt_save_CFLAGS"
9422 else
9423 echo "cannot find nm_test_func in $nlist" >&5
9424 fi
9425 else
9426 echo "cannot find nm_test_var in $nlist" >&5
9427 fi
9428 else
9429 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9430 fi
9431 else
9432 echo "$progname: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 fi
9435 rm -f conftest* conftst*
9436
9437 # Do not use the global_symbol_pipe unless it works.
9438 if test "$pipe_works" = yes; then
9439 break
9440 else
9441 lt_cv_sys_global_symbol_pipe=
9442 fi
9443done
9444
9445fi
9446
9447if test -z "$lt_cv_sys_global_symbol_pipe"; then
9448 lt_cv_sys_global_symbol_to_cdecl=
9449fi
9450if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009451 { echo "$as_me:$LINENO: result: failed" >&5
9452echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453else
Reid Spencera773bd52006-08-04 18:18:08 +00009454 { echo "$as_me:$LINENO: result: ok" >&5
9455echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456fi
9457
9458
Reid Spencera773bd52006-08-04 18:18:08 +00009459{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9460echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009461if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9465 libltdl_cv_preloaded_symbols=yes
9466 else
9467 libltdl_cv_preloaded_symbols=no
9468 fi
9469
9470fi
Reid Spencera773bd52006-08-04 18:18:08 +00009471{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9472echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009473if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9474
9475cat >>confdefs.h <<\_ACEOF
9476#define HAVE_PRELOADED_SYMBOLS 1
9477_ACEOF
9478
9479fi
9480
9481LIBADD_DL=
9482
9483ac_ext=c
9484ac_cpp='$CPP $CPPFLAGS'
9485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9487ac_compiler_gnu=$ac_cv_c_compiler_gnu
9488
9489
Reid Spencera773bd52006-08-04 18:18:08 +00009490{ echo "$as_me:$LINENO: checking for shl_load" >&5
9491echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009492if test "${ac_cv_func_shl_load+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9494else
9495 cat >conftest.$ac_ext <<_ACEOF
9496/* confdefs.h. */
9497_ACEOF
9498cat confdefs.h >>conftest.$ac_ext
9499cat >>conftest.$ac_ext <<_ACEOF
9500/* end confdefs.h. */
9501/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9503#define shl_load innocuous_shl_load
9504
9505/* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char shl_load (); below.
9507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508 <limits.h> exists even on freestanding compilers. */
9509
9510#ifdef __STDC__
9511# include <limits.h>
9512#else
9513# include <assert.h>
9514#endif
9515
9516#undef shl_load
9517
Reid Spencera773bd52006-08-04 18:18:08 +00009518/* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009521#ifdef __cplusplus
9522extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009523#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524char shl_load ();
9525/* The GNU C library defines this for functions which it implements
9526 to always fail with ENOSYS. Some functions are actually named
9527 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009528#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009529choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530#endif
9531
9532int
9533main ()
9534{
Reid Spencera773bd52006-08-04 18:18:08 +00009535return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009536 ;
9537 return 0;
9538}
9539_ACEOF
9540rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009541if { (ac_try="$ac_link"
9542case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545esac
9546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9555 { (case "(($ac_try" in
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9558esac
9559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009565 { (case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9568esac
9569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_cv_func_shl_load=yes
9575else
9576 echo "$as_me: failed program was:" >&5
9577sed 's/^/| /' conftest.$ac_ext >&5
9578
Reid Spencera773bd52006-08-04 18:18:08 +00009579 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009580fi
Reid Spencera773bd52006-08-04 18:18:08 +00009581
9582rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009583 conftest$ac_exeext conftest.$ac_ext
9584fi
Reid Spencera773bd52006-08-04 18:18:08 +00009585{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9586echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009587if test $ac_cv_func_shl_load = yes; then
9588
9589cat >>confdefs.h <<\_ACEOF
9590#define HAVE_SHL_LOAD 1
9591_ACEOF
9592
9593else
Reid Spencera773bd52006-08-04 18:18:08 +00009594 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9595echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599 ac_check_lib_save_LIBS=$LIBS
9600LIBS="-ldld $LIBS"
9601cat >conftest.$ac_ext <<_ACEOF
9602/* confdefs.h. */
9603_ACEOF
9604cat confdefs.h >>conftest.$ac_ext
9605cat >>conftest.$ac_ext <<_ACEOF
9606/* end confdefs.h. */
9607
Reid Spencera773bd52006-08-04 18:18:08 +00009608/* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611#ifdef __cplusplus
9612extern "C"
9613#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614char shl_load ();
9615int
9616main ()
9617{
Reid Spencera773bd52006-08-04 18:18:08 +00009618return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009619 ;
9620 return 0;
9621}
9622_ACEOF
9623rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009624if { (ac_try="$ac_link"
9625case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628esac
9629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9638 { (case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641esac
9642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009648 { (case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651esac
9652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 ac_cv_lib_dld_shl_load=yes
9658else
9659 echo "$as_me: failed program was:" >&5
9660sed 's/^/| /' conftest.$ac_ext >&5
9661
Reid Spencera773bd52006-08-04 18:18:08 +00009662 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663fi
Reid Spencera773bd52006-08-04 18:18:08 +00009664
9665rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666 conftest$ac_exeext conftest.$ac_ext
9667LIBS=$ac_check_lib_save_LIBS
9668fi
Reid Spencera773bd52006-08-04 18:18:08 +00009669{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9670echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009671if test $ac_cv_lib_dld_shl_load = yes; then
9672
9673cat >>confdefs.h <<\_ACEOF
9674#define HAVE_SHL_LOAD 1
9675_ACEOF
9676
9677 LIBADD_DL="$LIBADD_DL -ldld"
9678else
Reid Spencera773bd52006-08-04 18:18:08 +00009679 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9680echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009681if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683else
9684 ac_check_lib_save_LIBS=$LIBS
9685LIBS="-ldl $LIBS"
9686cat >conftest.$ac_ext <<_ACEOF
9687/* confdefs.h. */
9688_ACEOF
9689cat confdefs.h >>conftest.$ac_ext
9690cat >>conftest.$ac_ext <<_ACEOF
9691/* end confdefs.h. */
9692
Reid Spencera773bd52006-08-04 18:18:08 +00009693/* Override any GCC internal prototype to avoid an error.
9694 Use char because int might match the return type of a GCC
9695 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009696#ifdef __cplusplus
9697extern "C"
9698#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699char dlopen ();
9700int
9701main ()
9702{
Reid Spencera773bd52006-08-04 18:18:08 +00009703return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009704 ;
9705 return 0;
9706}
9707_ACEOF
9708rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009709if { (ac_try="$ac_link"
9710case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736esac
9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_dl_dlopen=yes
9743else
9744 echo "$as_me: failed program was:" >&5
9745sed 's/^/| /' conftest.$ac_ext >&5
9746
Reid Spencera773bd52006-08-04 18:18:08 +00009747 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748fi
Reid Spencera773bd52006-08-04 18:18:08 +00009749
9750rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751 conftest$ac_exeext conftest.$ac_ext
9752LIBS=$ac_check_lib_save_LIBS
9753fi
Reid Spencera773bd52006-08-04 18:18:08 +00009754{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9755echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756if test $ac_cv_lib_dl_dlopen = yes; then
9757
9758cat >>confdefs.h <<\_ACEOF
9759#define HAVE_LIBDL 1
9760_ACEOF
9761
9762 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9763else
9764 cat >conftest.$ac_ext <<_ACEOF
9765/* confdefs.h. */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h. */
9770#if HAVE_DLFCN_H
9771# include <dlfcn.h>
9772#endif
9773
9774int
9775main ()
9776{
9777dlopen(0, 0);
9778 ;
9779 return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009783if { (ac_try="$ac_link"
9784case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816
9817cat >>confdefs.h <<\_ACEOF
9818#define HAVE_LIBDL 1
9819_ACEOF
9820 libltdl_cv_func_dlopen="yes"
9821else
9822 echo "$as_me: failed program was:" >&5
9823sed 's/^/| /' conftest.$ac_ext >&5
9824
Reid Spencera773bd52006-08-04 18:18:08 +00009825 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9826echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830 ac_check_lib_save_LIBS=$LIBS
9831LIBS="-lsvld $LIBS"
9832cat >conftest.$ac_ext <<_ACEOF
9833/* confdefs.h. */
9834_ACEOF
9835cat confdefs.h >>conftest.$ac_ext
9836cat >>conftest.$ac_ext <<_ACEOF
9837/* end confdefs.h. */
9838
Reid Spencera773bd52006-08-04 18:18:08 +00009839/* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842#ifdef __cplusplus
9843extern "C"
9844#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845char dlopen ();
9846int
9847main ()
9848{
Reid Spencera773bd52006-08-04 18:18:08 +00009849return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850 ;
9851 return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009855if { (ac_try="$ac_link"
9856case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859esac
9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_svld_dlopen=yes
9889else
9890 echo "$as_me: failed program was:" >&5
9891sed 's/^/| /' conftest.$ac_ext >&5
9892
Reid Spencera773bd52006-08-04 18:18:08 +00009893 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894fi
Reid Spencera773bd52006-08-04 18:18:08 +00009895
9896rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897 conftest$ac_exeext conftest.$ac_ext
9898LIBS=$ac_check_lib_save_LIBS
9899fi
Reid Spencera773bd52006-08-04 18:18:08 +00009900{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9901echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902if test $ac_cv_lib_svld_dlopen = yes; then
9903
9904cat >>confdefs.h <<\_ACEOF
9905#define HAVE_LIBDL 1
9906_ACEOF
9907
9908 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9909else
Reid Spencera773bd52006-08-04 18:18:08 +00009910 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9911echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9914else
9915 ac_check_lib_save_LIBS=$LIBS
9916LIBS="-ldld $LIBS"
9917cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h. */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h. */
9923
Reid Spencera773bd52006-08-04 18:18:08 +00009924/* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927#ifdef __cplusplus
9928extern "C"
9929#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930char dld_link ();
9931int
9932main ()
9933{
Reid Spencera773bd52006-08-04 18:18:08 +00009934return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935 ;
9936 return 0;
9937}
9938_ACEOF
9939rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009940if { (ac_try="$ac_link"
9941case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944esac
9945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957esac
9958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
9968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_lib_dld_dld_link=yes
9974else
9975 echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
Reid Spencera773bd52006-08-04 18:18:08 +00009978 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979fi
Reid Spencera773bd52006-08-04 18:18:08 +00009980
9981rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982 conftest$ac_exeext conftest.$ac_ext
9983LIBS=$ac_check_lib_save_LIBS
9984fi
Reid Spencera773bd52006-08-04 18:18:08 +00009985{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9986echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987if test $ac_cv_lib_dld_dld_link = yes; then
9988
9989cat >>confdefs.h <<\_ACEOF
9990#define HAVE_DLD 1
9991_ACEOF
9992
9993 LIBADD_DL="$LIBADD_DL -ldld"
9994else
Reid Spencera773bd52006-08-04 18:18:08 +00009995 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9996echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999else
10000 cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h. */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h. */
10006/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10008#define _dyld_func_lookup innocuous__dyld_func_lookup
10009
10010/* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char _dyld_func_lookup (); below.
10012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10013 <limits.h> exists even on freestanding compilers. */
10014
10015#ifdef __STDC__
10016# include <limits.h>
10017#else
10018# include <assert.h>
10019#endif
10020
10021#undef _dyld_func_lookup
10022
Reid Spencera773bd52006-08-04 18:18:08 +000010023/* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026#ifdef __cplusplus
10027extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029char _dyld_func_lookup ();
10030/* The GNU C library defines this for functions which it implements
10031 to always fail with ENOSYS. Some functions are actually named
10032 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010033#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035#endif
10036
10037int
10038main ()
10039{
Reid Spencera773bd52006-08-04 18:18:08 +000010040return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010041 ;
10042 return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010046if { (ac_try="$ac_link"
10047case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050esac
10051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10060 { (case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10063esac
10064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010070 { (case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10073esac
10074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ac_cv_func__dyld_func_lookup=yes
10080else
10081 echo "$as_me: failed program was:" >&5
10082sed 's/^/| /' conftest.$ac_ext >&5
10083
Reid Spencera773bd52006-08-04 18:18:08 +000010084 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085fi
Reid Spencera773bd52006-08-04 18:18:08 +000010086
10087rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088 conftest$ac_exeext conftest.$ac_ext
10089fi
Reid Spencera773bd52006-08-04 18:18:08 +000010090{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10091echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092if test $ac_cv_func__dyld_func_lookup = yes; then
10093
10094cat >>confdefs.h <<\_ACEOF
10095#define HAVE_DYLD 1
10096_ACEOF
10097
10098fi
10099
10100
10101fi
10102
10103
10104fi
10105
10106
10107fi
Reid Spencera773bd52006-08-04 18:18:08 +000010108
10109rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110 conftest$ac_exeext conftest.$ac_ext
10111
10112fi
10113
10114
10115fi
10116
10117
10118fi
10119
10120
10121if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10122then
10123 lt_save_LIBS="$LIBS"
10124 LIBS="$LIBS $LIBADD_DL"
10125
10126for ac_func in dlerror
10127do
10128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010129{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10131if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134 cat >conftest.$ac_ext <<_ACEOF
10135/* confdefs.h. */
10136_ACEOF
10137cat confdefs.h >>conftest.$ac_ext
10138cat >>conftest.$ac_ext <<_ACEOF
10139/* end confdefs.h. */
10140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10142#define $ac_func innocuous_$ac_func
10143
10144/* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func (); below.
10146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147 <limits.h> exists even on freestanding compilers. */
10148
10149#ifdef __STDC__
10150# include <limits.h>
10151#else
10152# include <assert.h>
10153#endif
10154
10155#undef $ac_func
10156
Reid Spencera773bd52006-08-04 18:18:08 +000010157/* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010160#ifdef __cplusplus
10161extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163char $ac_func ();
10164/* The GNU C library defines this for functions which it implements
10165 to always fail with ENOSYS. Some functions are actually named
10166 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010167#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169#endif
10170
10171int
10172main ()
10173{
Reid Spencera773bd52006-08-04 18:18:08 +000010174return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010180if { (ac_try="$ac_link"
10181case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184esac
10185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197esac
10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207esac
10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 eval "$as_ac_var=yes"
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
Reid Spencera773bd52006-08-04 18:18:08 +000010218 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219fi
Reid Spencera773bd52006-08-04 18:18:08 +000010220
10221rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222 conftest$ac_exeext conftest.$ac_ext
10223fi
Reid Spencera773bd52006-08-04 18:18:08 +000010224ac_res=`eval echo '${'$as_ac_var'}'`
10225 { echo "$as_me:$LINENO: result: $ac_res" >&5
10226echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227if test `eval echo '${'$as_ac_var'}'` = yes; then
10228 cat >>confdefs.h <<_ACEOF
10229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10230_ACEOF
10231
10232fi
10233done
10234
10235 LIBS="$lt_save_LIBS"
10236fi
10237ac_ext=c
10238ac_cpp='$CPP $CPPFLAGS'
10239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10241ac_compiler_gnu=$ac_cv_c_compiler_gnu
10242
10243
10244
Reid Spencera773bd52006-08-04 18:18:08 +000010245{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10246echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010247if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 ac_cv_sys_symbol_underscore=no
10251 cat > conftest.$ac_ext <<EOF
10252void nm_test_func(){}
10253int main(){nm_test_func;return 0;}
10254EOF
10255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10256 (eval $ac_compile) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; then
10260 # Now try to grab the symbols.
10261 ac_nlist=conftest.nm
10262 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10263 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && test -s "$ac_nlist"; then
10267 # See whether the symbols have a leading underscore.
10268 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10269 ac_cv_sys_symbol_underscore=yes
10270 else
10271 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10272 :
10273 else
10274 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10275 fi
10276 fi
10277 else
10278 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10279 fi
10280 else
10281 echo "configure: failed program was:" >&5
10282 cat conftest.c >&5
10283 fi
10284 rm -rf conftest*
10285
10286fi
Reid Spencera773bd52006-08-04 18:18:08 +000010287{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10288echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289
10290
10291if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10292 if test x"$libltdl_cv_func_dlopen" = xyes ||
10293 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010294 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10295echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296if test "${libltdl_cv_need_uscore+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
10299 libltdl_cv_need_uscore=unknown
10300 save_LIBS="$LIBS"
10301 LIBS="$LIBS $LIBADD_DL"
10302 if test "$cross_compiling" = yes; then :
10303 libltdl_cv_need_uscore=cross
10304else
10305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10306 lt_status=$lt_dlunknown
10307 cat > conftest.$ac_ext <<EOF
Reid Spencera773bd52006-08-04 18:18:08 +000010308#line 10308 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309#include "confdefs.h"
10310
10311#if HAVE_DLFCN_H
10312#include <dlfcn.h>
10313#endif
10314
10315#include <stdio.h>
10316
10317#ifdef RTLD_GLOBAL
10318# define LT_DLGLOBAL RTLD_GLOBAL
10319#else
10320# ifdef DL_GLOBAL
10321# define LT_DLGLOBAL DL_GLOBAL
10322# else
10323# define LT_DLGLOBAL 0
10324# endif
10325#endif
10326
10327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10328 find out it does not work in some platform. */
10329#ifndef LT_DLLAZY_OR_NOW
10330# ifdef RTLD_LAZY
10331# define LT_DLLAZY_OR_NOW RTLD_LAZY
10332# else
10333# ifdef DL_LAZY
10334# define LT_DLLAZY_OR_NOW DL_LAZY
10335# else
10336# ifdef RTLD_NOW
10337# define LT_DLLAZY_OR_NOW RTLD_NOW
10338# else
10339# ifdef DL_NOW
10340# define LT_DLLAZY_OR_NOW DL_NOW
10341# else
10342# define LT_DLLAZY_OR_NOW 0
10343# endif
10344# endif
10345# endif
10346# endif
10347#endif
10348
10349#ifdef __cplusplus
10350extern "C" void exit (int);
10351#endif
10352
10353void fnord() { int i=42;}
10354int main ()
10355{
10356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10357 int status = $lt_dlunknown;
10358
10359 if (self)
10360 {
10361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10362 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10363 /* dlclose (self); */
10364 }
Reid Spencera773bd52006-08-04 18:18:08 +000010365 else
10366 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367
10368 exit (status);
10369}
10370EOF
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010376 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377 lt_status=$?
10378 case x$lt_status in
10379 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10380 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010381 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010382 esac
10383 else :
10384 # compilation failed
10385
10386 fi
10387fi
10388rm -fr conftest*
10389
10390 LIBS="$save_LIBS"
10391
10392fi
Reid Spencera773bd52006-08-04 18:18:08 +000010393{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10394echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395 fi
10396fi
10397
10398if test x"$libltdl_cv_need_uscore" = xyes; then
10399
10400cat >>confdefs.h <<\_ACEOF
10401#define NEED_USCORE 1
10402_ACEOF
10403
10404fi
10405
10406
Reid Spencera773bd52006-08-04 18:18:08 +000010407{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10408echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010409if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411else
10412 # PORTME does your system automatically load deplibs for dlopen?
10413 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10414 # For now, we just catch OSes we know something about -- in the
10415 # future, we'll try test this programmatically.
10416 libltdl_cv_sys_dlopen_deplibs=unknown
10417 case "$host_os" in
10418 aix3*|aix4.1.*|aix4.2.*)
10419 # Unknown whether this is true for these versions of AIX, but
10420 # we want this `case' here to explicitly catch those versions.
10421 libltdl_cv_sys_dlopen_deplibs=unknown
10422 ;;
10423 aix[45]*)
10424 libltdl_cv_sys_dlopen_deplibs=yes
10425 ;;
10426 darwin*)
10427 # Assuming the user has installed a libdl from somewhere, this is true
10428 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10429 libltdl_cv_sys_dlopen_deplibs=yes
10430 ;;
10431 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10432 # GNU and its variants, using gnu ld.so (Glibc)
10433 libltdl_cv_sys_dlopen_deplibs=yes
10434 ;;
10435 hpux10*|hpux11*)
10436 libltdl_cv_sys_dlopen_deplibs=yes
10437 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010438 interix*)
10439 libltdl_cv_sys_dlopen_deplibs=yes
10440 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441 irix[12345]*|irix6.[01]*)
10442 # Catch all versions of IRIX before 6.2, and indicate that we don't
10443 # know how it worked for any of those versions.
10444 libltdl_cv_sys_dlopen_deplibs=unknown
10445 ;;
10446 irix*)
10447 # The case above catches anything before 6.2, and it's known that
10448 # at 6.2 and later dlopen does load deplibs.
10449 libltdl_cv_sys_dlopen_deplibs=yes
10450 ;;
10451 netbsd*)
10452 libltdl_cv_sys_dlopen_deplibs=yes
10453 ;;
10454 openbsd*)
10455 libltdl_cv_sys_dlopen_deplibs=yes
10456 ;;
10457 osf[1234]*)
10458 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10459 # it did *not* use an RPATH in a shared library to find objects the
10460 # library depends on, so we explictly say `no'.
10461 libltdl_cv_sys_dlopen_deplibs=no
10462 ;;
10463 osf5.0|osf5.0a|osf5.1)
10464 # dlopen *does* load deplibs and with the right loader patch applied
10465 # it even uses RPATH in a shared library to search for shared objects
10466 # that the library depends on, but there's no easy way to know if that
10467 # patch is installed. Since this is the case, all we can really
10468 # say is unknown -- it depends on the patch being installed. If
10469 # it is, this changes to `yes'. Without it, it would be `no'.
10470 libltdl_cv_sys_dlopen_deplibs=unknown
10471 ;;
10472 osf*)
10473 # the two cases above should catch all versions of osf <= 5.1. Read
10474 # the comments above for what we know about them.
10475 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10476 # is used to find them so we can finally say `yes'.
10477 libltdl_cv_sys_dlopen_deplibs=yes
10478 ;;
10479 solaris*)
10480 libltdl_cv_sys_dlopen_deplibs=yes
10481 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10483 libltdl_cv_sys_dlopen_deplibs=yes
10484 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485 esac
10486
10487fi
Reid Spencera773bd52006-08-04 18:18:08 +000010488{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10489echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10491
10492cat >>confdefs.h <<\_ACEOF
10493#define LTDL_DLOPEN_DEPLIBS 1
10494_ACEOF
10495
10496fi
10497
10498
10499for ac_header in argz.h
10500do
10501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507fi
Reid Spencera773bd52006-08-04 18:18:08 +000010508ac_res=`eval echo '${'$as_ac_Header'}'`
10509 { echo "$as_me:$LINENO: result: $ac_res" >&5
10510echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511else
10512 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010513{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010515cat >conftest.$ac_ext <<_ACEOF
10516/* confdefs.h. */
10517_ACEOF
10518cat confdefs.h >>conftest.$ac_ext
10519cat >>conftest.$ac_ext <<_ACEOF
10520/* end confdefs.h. */
10521$ac_includes_default
10522#include <$ac_header>
10523_ACEOF
10524rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010525if { (ac_try="$ac_compile"
10526case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529esac
10530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10539 { (case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542esac
10543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552esac
10553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 ac_header_compiler=yes
10559else
10560 echo "$as_me: failed program was:" >&5
10561sed 's/^/| /' conftest.$ac_ext >&5
10562
Reid Spencera773bd52006-08-04 18:18:08 +000010563 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564fi
Reid Spencera773bd52006-08-04 18:18:08 +000010565
10566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10568echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569
10570# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010571{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573cat >conftest.$ac_ext <<_ACEOF
10574/* confdefs.h. */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h. */
10579#include <$ac_header>
10580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010581if { (ac_try="$ac_cpp conftest.$ac_ext"
10582case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585esac
10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } >/dev/null; then
10594 if test -s conftest.err; then
10595 ac_cpp_err=$ac_c_preproc_warn_flag
10596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10597 else
10598 ac_cpp_err=
10599 fi
10600else
10601 ac_cpp_err=yes
10602fi
10603if test -z "$ac_cpp_err"; then
10604 ac_header_preproc=yes
10605else
10606 echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_header_preproc=no
10610fi
Reid Spencera773bd52006-08-04 18:18:08 +000010611
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010613{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10614echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615
10616# So? What about this header?
10617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10618 yes:no: )
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10623 ac_header_preproc=yes
10624 ;;
10625 no:yes:* )
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010638 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010639## ----------------------------------- ##
10640## Report this to llvmbugs@cs.uiuc.edu ##
10641## ----------------------------------- ##
10642_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010643 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644 ;;
10645esac
Reid Spencera773bd52006-08-04 18:18:08 +000010646{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650else
10651 eval "$as_ac_Header=\$ac_header_preproc"
10652fi
Reid Spencera773bd52006-08-04 18:18:08 +000010653ac_res=`eval echo '${'$as_ac_Header'}'`
10654 { echo "$as_me:$LINENO: result: $ac_res" >&5
10655echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656
10657fi
10658if test `eval echo '${'$as_ac_Header'}'` = yes; then
10659 cat >>confdefs.h <<_ACEOF
10660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10661_ACEOF
10662
10663fi
10664
10665done
10666
10667
Reid Spencera773bd52006-08-04 18:18:08 +000010668{ echo "$as_me:$LINENO: checking for error_t" >&5
10669echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670if test "${ac_cv_type_error_t+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672else
10673 cat >conftest.$ac_ext <<_ACEOF
10674/* confdefs.h. */
10675_ACEOF
10676cat confdefs.h >>conftest.$ac_ext
10677cat >>conftest.$ac_ext <<_ACEOF
10678/* end confdefs.h. */
10679#if HAVE_ARGZ_H
10680# include <argz.h>
10681#endif
10682
Reid Spencera773bd52006-08-04 18:18:08 +000010683typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684int
10685main ()
10686{
Reid Spencera773bd52006-08-04 18:18:08 +000010687if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010689if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690 return 0;
10691 ;
10692 return 0;
10693}
10694_ACEOF
10695rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010696if { (ac_try="$ac_compile"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723esac
10724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_cv_type_error_t=yes
10730else
10731 echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
Reid Spencera773bd52006-08-04 18:18:08 +000010734 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735fi
Reid Spencera773bd52006-08-04 18:18:08 +000010736
10737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738fi
Reid Spencera773bd52006-08-04 18:18:08 +000010739{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10740echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010741if test $ac_cv_type_error_t = yes; then
10742
10743cat >>confdefs.h <<_ACEOF
10744#define HAVE_ERROR_T 1
10745_ACEOF
10746
10747
10748else
10749
10750cat >>confdefs.h <<\_ACEOF
10751#define error_t int
10752_ACEOF
10753
10754fi
10755
10756
10757
10758
10759
10760
10761
10762for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10763do
10764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010765{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769else
10770 cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
10776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10778#define $ac_func innocuous_$ac_func
10779
10780/* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func (); below.
10782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10783 <limits.h> exists even on freestanding compilers. */
10784
10785#ifdef __STDC__
10786# include <limits.h>
10787#else
10788# include <assert.h>
10789#endif
10790
10791#undef $ac_func
10792
Reid Spencera773bd52006-08-04 18:18:08 +000010793/* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010796#ifdef __cplusplus
10797extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010798#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799char $ac_func ();
10800/* The GNU C library defines this for functions which it implements
10801 to always fail with ENOSYS. Some functions are actually named
10802 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010803#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010805#endif
10806
10807int
10808main ()
10809{
Reid Spencera773bd52006-08-04 18:18:08 +000010810return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811 ;
10812 return 0;
10813}
10814_ACEOF
10815rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010816if { (ac_try="$ac_link"
10817case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820esac
10821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830 { (case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833esac
10834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843esac
10844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 eval "$as_ac_var=yes"
10850else
10851 echo "$as_me: failed program was:" >&5
10852sed 's/^/| /' conftest.$ac_ext >&5
10853
Reid Spencera773bd52006-08-04 18:18:08 +000010854 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010855fi
Reid Spencera773bd52006-08-04 18:18:08 +000010856
10857rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858 conftest$ac_exeext conftest.$ac_ext
10859fi
Reid Spencera773bd52006-08-04 18:18:08 +000010860ac_res=`eval echo '${'$as_ac_var'}'`
10861 { echo "$as_me:$LINENO: result: $ac_res" >&5
10862echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863if test `eval echo '${'$as_ac_var'}'` = yes; then
10864 cat >>confdefs.h <<_ACEOF
10865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10866_ACEOF
10867
10868fi
10869done
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10899 stdio.h unistd.h
10900do
10901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907fi
Reid Spencera773bd52006-08-04 18:18:08 +000010908ac_res=`eval echo '${'$as_ac_Header'}'`
10909 { echo "$as_me:$LINENO: result: $ac_res" >&5
10910echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911else
10912 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010913{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
10921$ac_includes_default
10922#include <$ac_header>
10923_ACEOF
10924rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010925if { (ac_try="$ac_compile"
10926case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929esac
10930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10939 { (case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10942esac
10943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10952esac
10953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_header_compiler=yes
10959else
10960 echo "$as_me: failed program was:" >&5
10961sed 's/^/| /' conftest.$ac_ext >&5
10962
Reid Spencera773bd52006-08-04 18:18:08 +000010963 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010964fi
Reid Spencera773bd52006-08-04 18:18:08 +000010965
10966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10968echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969
10970# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010971{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010973cat >conftest.$ac_ext <<_ACEOF
10974/* confdefs.h. */
10975_ACEOF
10976cat confdefs.h >>conftest.$ac_ext
10977cat >>conftest.$ac_ext <<_ACEOF
10978/* end confdefs.h. */
10979#include <$ac_header>
10980_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010981if { (ac_try="$ac_cpp conftest.$ac_ext"
10982case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985esac
10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } >/dev/null; then
10994 if test -s conftest.err; then
10995 ac_cpp_err=$ac_c_preproc_warn_flag
10996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10997 else
10998 ac_cpp_err=
10999 fi
11000else
11001 ac_cpp_err=yes
11002fi
11003if test -z "$ac_cpp_err"; then
11004 ac_header_preproc=yes
11005else
11006 echo "$as_me: failed program was:" >&5
11007sed 's/^/| /' conftest.$ac_ext >&5
11008
11009 ac_header_preproc=no
11010fi
Reid Spencera773bd52006-08-04 18:18:08 +000011011
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011013{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11014echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011015
11016# So? What about this header?
11017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11018 yes:no: )
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11023 ac_header_preproc=yes
11024 ;;
11025 no:yes:* )
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011038 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039## ----------------------------------- ##
11040## Report this to llvmbugs@cs.uiuc.edu ##
11041## ----------------------------------- ##
11042_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011043 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044 ;;
11045esac
Reid Spencera773bd52006-08-04 18:18:08 +000011046{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050else
11051 eval "$as_ac_Header=\$ac_header_preproc"
11052fi
Reid Spencera773bd52006-08-04 18:18:08 +000011053ac_res=`eval echo '${'$as_ac_Header'}'`
11054 { echo "$as_me:$LINENO: result: $ac_res" >&5
11055echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056
11057fi
11058if test `eval echo '${'$as_ac_Header'}'` = yes; then
11059 cat >>confdefs.h <<_ACEOF
11060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11061_ACEOF
11062
11063fi
11064
11065done
11066
11067
11068
11069
11070
11071for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11072do
11073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079fi
Reid Spencera773bd52006-08-04 18:18:08 +000011080ac_res=`eval echo '${'$as_ac_Header'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083else
11084 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087cat >conftest.$ac_ext <<_ACEOF
11088/* confdefs.h. */
11089_ACEOF
11090cat confdefs.h >>conftest.$ac_ext
11091cat >>conftest.$ac_ext <<_ACEOF
11092/* end confdefs.h. */
11093$ac_includes_default
11094#include <$ac_header>
11095_ACEOF
11096rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011097if { (ac_try="$ac_compile"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11111 { (case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114esac
11115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 ac_header_compiler=yes
11131else
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
Reid Spencera773bd52006-08-04 18:18:08 +000011135 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136fi
Reid Spencera773bd52006-08-04 18:18:08 +000011137
11138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11140echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011141
11142# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011143{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011145cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
11150/* end confdefs.h. */
11151#include <$ac_header>
11152_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011153if { (ac_try="$ac_cpp conftest.$ac_ext"
11154case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } >/dev/null; then
11166 if test -s conftest.err; then
11167 ac_cpp_err=$ac_c_preproc_warn_flag
11168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11169 else
11170 ac_cpp_err=
11171 fi
11172else
11173 ac_cpp_err=yes
11174fi
11175if test -z "$ac_cpp_err"; then
11176 ac_header_preproc=yes
11177else
11178 echo "$as_me: failed program was:" >&5
11179sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ac_header_preproc=no
11182fi
Reid Spencera773bd52006-08-04 18:18:08 +000011183
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011185{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11186echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011187
11188# So? What about this header?
11189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11190 yes:no: )
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11195 ac_header_preproc=yes
11196 ;;
11197 no:yes:* )
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11205echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011210 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211## ----------------------------------- ##
11212## Report this to llvmbugs@cs.uiuc.edu ##
11213## ----------------------------------- ##
11214_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011215 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216 ;;
11217esac
Reid Spencera773bd52006-08-04 18:18:08 +000011218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222else
11223 eval "$as_ac_Header=\$ac_header_preproc"
11224fi
Reid Spencera773bd52006-08-04 18:18:08 +000011225ac_res=`eval echo '${'$as_ac_Header'}'`
11226 { echo "$as_me:$LINENO: result: $ac_res" >&5
11227echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228
11229fi
11230if test `eval echo '${'$as_ac_Header'}'` = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11233_ACEOF
11234
11235fi
11236
11237done
11238
11239
11240
11241for ac_header in string.h strings.h
11242do
11243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248 echo $ECHO_N "(cached) $ECHO_C" >&6
11249fi
Reid Spencera773bd52006-08-04 18:18:08 +000011250ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253else
11254 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011255{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011257cat >conftest.$ac_ext <<_ACEOF
11258/* confdefs.h. */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h. */
11263$ac_includes_default
11264#include <$ac_header>
11265_ACEOF
11266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011267if { (ac_try="$ac_compile"
11268case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271esac
11272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11281 { (case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284esac
11285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; } &&
11290 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_header_compiler=yes
11301else
11302 echo "$as_me: failed program was:" >&5
11303sed 's/^/| /' conftest.$ac_ext >&5
11304
Reid Spencera773bd52006-08-04 18:18:08 +000011305 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306fi
Reid Spencera773bd52006-08-04 18:18:08 +000011307
11308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11310echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311
11312# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011313{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011315cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321#include <$ac_header>
11322_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011323if { (ac_try="$ac_cpp conftest.$ac_ext"
11324case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327esac
11328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } >/dev/null; then
11336 if test -s conftest.err; then
11337 ac_cpp_err=$ac_c_preproc_warn_flag
11338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11339 else
11340 ac_cpp_err=
11341 fi
11342else
11343 ac_cpp_err=yes
11344fi
11345if test -z "$ac_cpp_err"; then
11346 ac_header_preproc=yes
11347else
11348 echo "$as_me: failed program was:" >&5
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
11351 ac_header_preproc=no
11352fi
Reid Spencera773bd52006-08-04 18:18:08 +000011353
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011354rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011355{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11356echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357
11358# So? What about this header?
11359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360 yes:no: )
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11365 ac_header_preproc=yes
11366 ;;
11367 no:yes:* )
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011380 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381## ----------------------------------- ##
11382## Report this to llvmbugs@cs.uiuc.edu ##
11383## ----------------------------------- ##
11384_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011385 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011386 ;;
11387esac
Reid Spencera773bd52006-08-04 18:18:08 +000011388{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392else
11393 eval "$as_ac_Header=\$ac_header_preproc"
11394fi
Reid Spencera773bd52006-08-04 18:18:08 +000011395ac_res=`eval echo '${'$as_ac_Header'}'`
11396 { echo "$as_me:$LINENO: result: $ac_res" >&5
11397echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398
11399fi
11400if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401 cat >>confdefs.h <<_ACEOF
11402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11403_ACEOF
11404 break
11405fi
11406
11407done
11408
11409
11410
11411
11412for ac_func in strchr index
11413do
11414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011415{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11417if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420 cat >conftest.$ac_ext <<_ACEOF
11421/* confdefs.h. */
11422_ACEOF
11423cat confdefs.h >>conftest.$ac_ext
11424cat >>conftest.$ac_ext <<_ACEOF
11425/* end confdefs.h. */
11426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11428#define $ac_func innocuous_$ac_func
11429
11430/* System header to define __stub macros and hopefully few prototypes,
11431 which can conflict with char $ac_func (); below.
11432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11433 <limits.h> exists even on freestanding compilers. */
11434
11435#ifdef __STDC__
11436# include <limits.h>
11437#else
11438# include <assert.h>
11439#endif
11440
11441#undef $ac_func
11442
Reid Spencera773bd52006-08-04 18:18:08 +000011443/* Override any GCC internal prototype to avoid an error.
11444 Use char because int might match the return type of a GCC
11445 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011446#ifdef __cplusplus
11447extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011448#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449char $ac_func ();
11450/* The GNU C library defines this for functions which it implements
11451 to always fail with ENOSYS. Some functions are actually named
11452 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011453#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455#endif
11456
11457int
11458main ()
11459{
Reid Spencera773bd52006-08-04 18:18:08 +000011460return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461 ;
11462 return 0;
11463}
11464_ACEOF
11465rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011466if { (ac_try="$ac_link"
11467case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11470esac
11471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11480 { (case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11483esac
11484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; } &&
11489 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011490 { (case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493esac
11494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 eval "$as_ac_var=yes"
11500else
11501 echo "$as_me: failed program was:" >&5
11502sed 's/^/| /' conftest.$ac_ext >&5
11503
Reid Spencera773bd52006-08-04 18:18:08 +000011504 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505fi
Reid Spencera773bd52006-08-04 18:18:08 +000011506
11507rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508 conftest$ac_exeext conftest.$ac_ext
11509fi
Reid Spencera773bd52006-08-04 18:18:08 +000011510ac_res=`eval echo '${'$as_ac_var'}'`
11511 { echo "$as_me:$LINENO: result: $ac_res" >&5
11512echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513if test `eval echo '${'$as_ac_var'}'` = yes; then
11514 cat >>confdefs.h <<_ACEOF
11515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11516_ACEOF
11517 break
11518fi
11519done
11520
11521
11522
11523for ac_func in strrchr rindex
11524do
11525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011526{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11528if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530else
11531 cat >conftest.$ac_ext <<_ACEOF
11532/* confdefs.h. */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h. */
11537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11539#define $ac_func innocuous_$ac_func
11540
11541/* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char $ac_func (); below.
11543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11544 <limits.h> exists even on freestanding compilers. */
11545
11546#ifdef __STDC__
11547# include <limits.h>
11548#else
11549# include <assert.h>
11550#endif
11551
11552#undef $ac_func
11553
Reid Spencera773bd52006-08-04 18:18:08 +000011554/* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557#ifdef __cplusplus
11558extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560char $ac_func ();
11561/* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011564#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566#endif
11567
11568int
11569main ()
11570{
Reid Spencera773bd52006-08-04 18:18:08 +000011571return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572 ;
11573 return 0;
11574}
11575_ACEOF
11576rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011577if { (ac_try="$ac_link"
11578case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581esac
11582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11591 { (case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594esac
11595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; } &&
11600 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011601 { (case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604esac
11605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 eval "$as_ac_var=yes"
11611else
11612 echo "$as_me: failed program was:" >&5
11613sed 's/^/| /' conftest.$ac_ext >&5
11614
Reid Spencera773bd52006-08-04 18:18:08 +000011615 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616fi
Reid Spencera773bd52006-08-04 18:18:08 +000011617
11618rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619 conftest$ac_exeext conftest.$ac_ext
11620fi
Reid Spencera773bd52006-08-04 18:18:08 +000011621ac_res=`eval echo '${'$as_ac_var'}'`
11622 { echo "$as_me:$LINENO: result: $ac_res" >&5
11623echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011624if test `eval echo '${'$as_ac_var'}'` = yes; then
11625 cat >>confdefs.h <<_ACEOF
11626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11627_ACEOF
11628 break
11629fi
11630done
11631
11632
11633
11634for ac_func in memcpy bcopy
11635do
11636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011637{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11639if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642 cat >conftest.$ac_ext <<_ACEOF
11643/* confdefs.h. */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h. */
11648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11650#define $ac_func innocuous_$ac_func
11651
11652/* System header to define __stub macros and hopefully few prototypes,
11653 which can conflict with char $ac_func (); below.
11654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655 <limits.h> exists even on freestanding compilers. */
11656
11657#ifdef __STDC__
11658# include <limits.h>
11659#else
11660# include <assert.h>
11661#endif
11662
11663#undef $ac_func
11664
Reid Spencera773bd52006-08-04 18:18:08 +000011665/* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011668#ifdef __cplusplus
11669extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671char $ac_func ();
11672/* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011675#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011676choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677#endif
11678
11679int
11680main ()
11681{
Reid Spencera773bd52006-08-04 18:18:08 +000011682return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011688if { (ac_try="$ac_link"
11689case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692esac
11693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11702 { (case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705esac
11706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011712 { (case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715esac
11716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 eval "$as_ac_var=yes"
11722else
11723 echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
Reid Spencera773bd52006-08-04 18:18:08 +000011726 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011727fi
Reid Spencera773bd52006-08-04 18:18:08 +000011728
11729rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011730 conftest$ac_exeext conftest.$ac_ext
11731fi
Reid Spencera773bd52006-08-04 18:18:08 +000011732ac_res=`eval echo '${'$as_ac_var'}'`
11733 { echo "$as_me:$LINENO: result: $ac_res" >&5
11734echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738_ACEOF
11739 break
11740fi
11741done
11742
11743
11744
11745for ac_func in memmove strcmp
11746do
11747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011748{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11750if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752else
11753 cat >conftest.$ac_ext <<_ACEOF
11754/* confdefs.h. */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h. */
11759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11761#define $ac_func innocuous_$ac_func
11762
11763/* System header to define __stub macros and hopefully few prototypes,
11764 which can conflict with char $ac_func (); below.
11765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11766 <limits.h> exists even on freestanding compilers. */
11767
11768#ifdef __STDC__
11769# include <limits.h>
11770#else
11771# include <assert.h>
11772#endif
11773
11774#undef $ac_func
11775
Reid Spencera773bd52006-08-04 18:18:08 +000011776/* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779#ifdef __cplusplus
11780extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782char $ac_func ();
11783/* The GNU C library defines this for functions which it implements
11784 to always fail with ENOSYS. Some functions are actually named
11785 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011786#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788#endif
11789
11790int
11791main ()
11792{
Reid Spencera773bd52006-08-04 18:18:08 +000011793return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011794 ;
11795 return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011799if { (ac_try="$ac_link"
11800case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011823 { (case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11826esac
11827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 eval "$as_ac_var=yes"
11833else
11834 echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
Reid Spencera773bd52006-08-04 18:18:08 +000011837 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011838fi
Reid Spencera773bd52006-08-04 18:18:08 +000011839
11840rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841 conftest$ac_exeext conftest.$ac_ext
11842fi
Reid Spencera773bd52006-08-04 18:18:08 +000011843ac_res=`eval echo '${'$as_ac_var'}'`
11844 { echo "$as_me:$LINENO: result: $ac_res" >&5
11845echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011846if test `eval echo '${'$as_ac_var'}'` = yes; then
11847 cat >>confdefs.h <<_ACEOF
11848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11849_ACEOF
11850
11851fi
11852done
11853
11854
11855
11856
11857for ac_func in closedir opendir readdir
11858do
11859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011860{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864else
11865 cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
11871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11873#define $ac_func innocuous_$ac_func
11874
11875/* System header to define __stub macros and hopefully few prototypes,
11876 which can conflict with char $ac_func (); below.
11877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11878 <limits.h> exists even on freestanding compilers. */
11879
11880#ifdef __STDC__
11881# include <limits.h>
11882#else
11883# include <assert.h>
11884#endif
11885
11886#undef $ac_func
11887
Reid Spencera773bd52006-08-04 18:18:08 +000011888/* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891#ifdef __cplusplus
11892extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894char $ac_func ();
11895/* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011898#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900#endif
11901
11902int
11903main ()
11904{
Reid Spencera773bd52006-08-04 18:18:08 +000011905return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011906 ;
11907 return 0;
11908}
11909_ACEOF
11910rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011911if { (ac_try="$ac_link"
11912case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915esac
11916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928esac
11929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938esac
11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 eval "$as_ac_var=yes"
11945else
11946 echo "$as_me: failed program was:" >&5
11947sed 's/^/| /' conftest.$ac_ext >&5
11948
Reid Spencera773bd52006-08-04 18:18:08 +000011949 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950fi
Reid Spencera773bd52006-08-04 18:18:08 +000011951
11952rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953 conftest$ac_exeext conftest.$ac_ext
11954fi
Reid Spencera773bd52006-08-04 18:18:08 +000011955ac_res=`eval echo '${'$as_ac_var'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958if test `eval echo '${'$as_ac_var'}'` = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11961_ACEOF
11962
11963fi
11964done
11965
11966
Reid Spencera773bd52006-08-04 18:18:08 +000011967# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011969 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970 case $enableval in
11971 yes) enable_shared=yes ;;
11972 no) enable_shared=no ;;
11973 *)
11974 enable_shared=no
11975 # Look at the argument we got. We use all the common list separators.
11976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11977 for pkg in $enableval; do
11978 IFS="$lt_save_ifs"
11979 if test "X$pkg" = "X$p"; then
11980 enable_shared=yes
11981 fi
11982 done
11983 IFS="$lt_save_ifs"
11984 ;;
11985 esac
11986else
11987 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011988fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989
Reid Spencera773bd52006-08-04 18:18:08 +000011990
11991# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011993 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011994 case $enableval in
11995 yes) enable_static=yes ;;
11996 no) enable_static=no ;;
11997 *)
11998 enable_static=no
11999 # Look at the argument we got. We use all the common list separators.
12000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12001 for pkg in $enableval; do
12002 IFS="$lt_save_ifs"
12003 if test "X$pkg" = "X$p"; then
12004 enable_static=yes
12005 fi
12006 done
12007 IFS="$lt_save_ifs"
12008 ;;
12009 esac
12010else
12011 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012012fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012013
Reid Spencera773bd52006-08-04 18:18:08 +000012014
12015# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012017 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018 case $enableval in
12019 yes) enable_fast_install=yes ;;
12020 no) enable_fast_install=no ;;
12021 *)
12022 enable_fast_install=no
12023 # Look at the argument we got. We use all the common list separators.
12024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12025 for pkg in $enableval; do
12026 IFS="$lt_save_ifs"
12027 if test "X$pkg" = "X$p"; then
12028 enable_fast_install=yes
12029 fi
12030 done
12031 IFS="$lt_save_ifs"
12032 ;;
12033 esac
12034else
12035 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012036fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037
Reid Spencera773bd52006-08-04 18:18:08 +000012038
12039{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12040echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012041if test "${lt_cv_path_SED+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043else
12044 # Loop through the user's path and test for sed and gsed.
12045# Then use that list of sed's as ones to test for truncation.
12046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047for as_dir in $PATH
12048do
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
12051 for lt_ac_prog in sed gsed; do
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12054 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12055 fi
12056 done
12057 done
12058done
12059lt_ac_max=0
12060lt_ac_count=0
12061# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12062# along with /bin/sed that truncates output.
12063for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012064 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012065 cat /dev/null > conftest.in
12066 lt_ac_count=0
12067 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12068 # Check for GNU sed and select it if it is found.
12069 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12070 lt_cv_path_SED=$lt_ac_sed
12071 break
12072 fi
12073 while true; do
12074 cat conftest.in conftest.in >conftest.tmp
12075 mv conftest.tmp conftest.in
12076 cp conftest.in conftest.nl
12077 echo >>conftest.nl
12078 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12079 cmp -s conftest.out conftest.nl || break
12080 # 10000 chars as input seems more than enough
12081 test $lt_ac_count -gt 10 && break
12082 lt_ac_count=`expr $lt_ac_count + 1`
12083 if test $lt_ac_count -gt $lt_ac_max; then
12084 lt_ac_max=$lt_ac_count
12085 lt_cv_path_SED=$lt_ac_sed
12086 fi
12087 done
12088done
12089
12090fi
12091
12092SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012093{ echo "$as_me:$LINENO: result: $SED" >&5
12094echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012095
12096
Reid Spencera773bd52006-08-04 18:18:08 +000012097# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012098if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012099 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012100else
12101 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012102fi
12103
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012104ac_prog=ld
12105if test "$GCC" = yes; then
12106 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012107 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12108echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012109 case $host in
12110 *-*-mingw*)
12111 # gcc leaves a trailing carriage return which upsets mingw
12112 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12113 *)
12114 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12115 esac
12116 case $ac_prog in
12117 # Accept absolute paths.
12118 [\\/]* | ?:[\\/]*)
12119 re_direlt='/[^/][^/]*/\.\./'
12120 # Canonicalize the pathname of ld
12121 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12122 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12123 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12124 done
12125 test -z "$LD" && LD="$ac_prog"
12126 ;;
12127 "")
12128 # If it fails, then pretend we aren't using GCC.
12129 ac_prog=ld
12130 ;;
12131 *)
12132 # If it is relative, then search for the first ld in PATH.
12133 with_gnu_ld=unknown
12134 ;;
12135 esac
12136elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012137 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12138echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139else
Reid Spencera773bd52006-08-04 18:18:08 +000012140 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12141echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012142fi
12143if test "${lt_cv_path_LD+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12145else
12146 if test -z "$LD"; then
12147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12148 for ac_dir in $PATH; do
12149 IFS="$lt_save_ifs"
12150 test -z "$ac_dir" && ac_dir=.
12151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12152 lt_cv_path_LD="$ac_dir/$ac_prog"
12153 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012154 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155 # Break only if it was the GNU/non-GNU ld that we prefer.
12156 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12157 *GNU* | *'with BFD'*)
12158 test "$with_gnu_ld" != no && break
12159 ;;
12160 *)
12161 test "$with_gnu_ld" != yes && break
12162 ;;
12163 esac
12164 fi
12165 done
12166 IFS="$lt_save_ifs"
12167else
12168 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12169fi
12170fi
12171
12172LD="$lt_cv_path_LD"
12173if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012174 { echo "$as_me:$LINENO: result: $LD" >&5
12175echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176else
Reid Spencera773bd52006-08-04 18:18:08 +000012177 { echo "$as_me:$LINENO: result: no" >&5
12178echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179fi
12180test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12181echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012183{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12184echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012185if test "${lt_cv_prog_gnu_ld+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187else
Reid Spencera773bd52006-08-04 18:18:08 +000012188 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012189case `$LD -v 2>&1 </dev/null` in
12190*GNU* | *'with BFD'*)
12191 lt_cv_prog_gnu_ld=yes
12192 ;;
12193*)
12194 lt_cv_prog_gnu_ld=no
12195 ;;
12196esac
12197fi
Reid Spencera773bd52006-08-04 18:18:08 +000012198{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12199echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012200with_gnu_ld=$lt_cv_prog_gnu_ld
12201
12202
Reid Spencera773bd52006-08-04 18:18:08 +000012203{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12204echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012205if test "${lt_cv_ld_reload_flag+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208 lt_cv_ld_reload_flag='-r'
12209fi
Reid Spencera773bd52006-08-04 18:18:08 +000012210{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12211echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012212reload_flag=$lt_cv_ld_reload_flag
12213case $reload_flag in
12214"" | " "*) ;;
12215*) reload_flag=" $reload_flag" ;;
12216esac
12217reload_cmds='$LD$reload_flag -o $output$reload_objs'
12218case $host_os in
12219 darwin*)
12220 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012221 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222 else
12223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12224 fi
12225 ;;
12226esac
12227
Reid Spencera773bd52006-08-04 18:18:08 +000012228{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12229echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012230if test "${lt_cv_deplibs_check_method+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232else
12233 lt_cv_file_magic_cmd='$MAGIC_CMD'
12234lt_cv_file_magic_test_file=
12235lt_cv_deplibs_check_method='unknown'
12236# Need to set the preceding variable on all platforms that support
12237# interlibrary dependencies.
12238# 'none' -- dependencies not supported.
12239# `unknown' -- same as none, but documents that we really don't know.
12240# 'pass_all' -- all dependencies passed with no checks.
12241# 'test_compile' -- check by making test program.
12242# 'file_magic [[regex]]' -- check by looking for files in library path
12243# which responds to the $file_magic_cmd with a given extended regex.
12244# If you have `file' or equivalent on your system and you're not sure
12245# whether `pass_all' will *always* work, you probably want this one.
12246
12247case $host_os in
12248aix4* | aix5*)
12249 lt_cv_deplibs_check_method=pass_all
12250 ;;
12251
12252beos*)
12253 lt_cv_deplibs_check_method=pass_all
12254 ;;
12255
12256bsdi[45]*)
12257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12258 lt_cv_file_magic_cmd='/usr/bin/file -L'
12259 lt_cv_file_magic_test_file=/shlib/libc.so
12260 ;;
12261
12262cygwin*)
12263 # func_win32_libid is a shell function defined in ltmain.sh
12264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12265 lt_cv_file_magic_cmd='func_win32_libid'
12266 ;;
12267
12268mingw* | pw32*)
12269 # Base MSYS/MinGW do not provide the 'file' command needed by
12270 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12271 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12272 lt_cv_file_magic_cmd='$OBJDUMP -f'
12273 ;;
12274
12275darwin* | rhapsody*)
12276 lt_cv_deplibs_check_method=pass_all
12277 ;;
12278
Reid Spencera773bd52006-08-04 18:18:08 +000012279freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012280 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12281 case $host_cpu in
12282 i*86 )
12283 # Not sure whether the presence of OpenBSD here was a mistake.
12284 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012285 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 +000012286 lt_cv_file_magic_cmd=/usr/bin/file
12287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12288 ;;
12289 esac
12290 else
12291 lt_cv_deplibs_check_method=pass_all
12292 fi
12293 ;;
12294
12295gnu*)
12296 lt_cv_deplibs_check_method=pass_all
12297 ;;
12298
12299hpux10.20* | hpux11*)
12300 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012301 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012302 ia64*)
12303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12304 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12305 ;;
12306 hppa*64*)
12307 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]'
12308 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12309 ;;
12310 *)
12311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12312 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12313 ;;
12314 esac
12315 ;;
12316
Reid Spencera773bd52006-08-04 18:18:08 +000012317interix3*)
12318 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12320 ;;
12321
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012322irix5* | irix6* | nonstopux*)
12323 case $LD in
12324 *-32|*"-32 ") libmagic=32-bit;;
12325 *-n32|*"-n32 ") libmagic=N32;;
12326 *-64|*"-64 ") libmagic=64-bit;;
12327 *) libmagic=never-match;;
12328 esac
12329 lt_cv_deplibs_check_method=pass_all
12330 ;;
12331
12332# This must be Linux ELF.
12333linux*)
12334 lt_cv_deplibs_check_method=pass_all
12335 ;;
12336
12337netbsd*)
12338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12340 else
12341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12342 fi
12343 ;;
12344
12345newos6*)
12346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12347 lt_cv_file_magic_cmd=/usr/bin/file
12348 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12349 ;;
12350
12351nto-qnx*)
12352 lt_cv_deplibs_check_method=unknown
12353 ;;
12354
12355openbsd*)
12356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12358 else
12359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12360 fi
12361 ;;
12362
12363osf3* | osf4* | osf5*)
12364 lt_cv_deplibs_check_method=pass_all
12365 ;;
12366
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012367solaris*)
12368 lt_cv_deplibs_check_method=pass_all
12369 ;;
12370
Reid Spencera773bd52006-08-04 18:18:08 +000012371sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372 case $host_vendor in
12373 motorola)
12374 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]'
12375 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12376 ;;
12377 ncr)
12378 lt_cv_deplibs_check_method=pass_all
12379 ;;
12380 sequent)
12381 lt_cv_file_magic_cmd='/bin/file'
12382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12383 ;;
12384 sni)
12385 lt_cv_file_magic_cmd='/bin/file'
12386 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12387 lt_cv_file_magic_test_file=/lib/libc.so
12388 ;;
12389 siemens)
12390 lt_cv_deplibs_check_method=pass_all
12391 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012392 pc)
12393 lt_cv_deplibs_check_method=pass_all
12394 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012395 esac
12396 ;;
12397
Reid Spencera773bd52006-08-04 18:18:08 +000012398sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012399 lt_cv_deplibs_check_method=pass_all
12400 ;;
12401esac
12402
12403fi
Reid Spencera773bd52006-08-04 18:18:08 +000012404{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12405echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012406file_magic_cmd=$lt_cv_file_magic_cmd
12407deplibs_check_method=$lt_cv_deplibs_check_method
12408test -z "$deplibs_check_method" && deplibs_check_method=unknown
12409
12410
12411
12412# If no C compiler was specified, use CC.
12413LTCC=${LTCC-"$CC"}
12414
Reid Spencera773bd52006-08-04 18:18:08 +000012415# If no C compiler flags were specified, use CFLAGS.
12416LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12417
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418# Allow CC to be a program name with arguments.
12419compiler=$CC
12420
Reid Spencera773bd52006-08-04 18:18:08 +000012421# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012422if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012423 enableval=$enable_libtool_lock;
12424fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12427
12428# Some flags need to be propagated to the compiler or linker for good
12429# libtool support.
12430case $host in
12431ia64-*-hpux*)
12432 # Find out which ABI we are using.
12433 echo 'int i;' > conftest.$ac_ext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435 (eval $ac_compile) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; then
12439 case `/usr/bin/file conftest.$ac_objext` in
12440 *ELF-32*)
12441 HPUX_IA64_MODE="32"
12442 ;;
12443 *ELF-64*)
12444 HPUX_IA64_MODE="64"
12445 ;;
12446 esac
12447 fi
12448 rm -rf conftest*
12449 ;;
12450*-*-irix6*)
12451 # Find out which ABI we are using.
Reid Spencera773bd52006-08-04 18:18:08 +000012452 echo '#line 12452 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454 (eval $ac_compile) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; then
12458 if test "$lt_cv_prog_gnu_ld" = yes; then
12459 case `/usr/bin/file conftest.$ac_objext` in
12460 *32-bit*)
12461 LD="${LD-ld} -melf32bsmip"
12462 ;;
12463 *N32*)
12464 LD="${LD-ld} -melf32bmipn32"
12465 ;;
12466 *64-bit*)
12467 LD="${LD-ld} -melf64bmip"
12468 ;;
12469 esac
12470 else
12471 case `/usr/bin/file conftest.$ac_objext` in
12472 *32-bit*)
12473 LD="${LD-ld} -32"
12474 ;;
12475 *N32*)
12476 LD="${LD-ld} -n32"
12477 ;;
12478 *64-bit*)
12479 LD="${LD-ld} -64"
12480 ;;
12481 esac
12482 fi
12483 fi
12484 rm -rf conftest*
12485 ;;
12486
12487x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12488 # Find out which ABI we are using.
12489 echo 'int i;' > conftest.$ac_ext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12491 (eval $ac_compile) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012495 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012496 *32-bit*)
12497 case $host in
12498 x86_64-*linux*)
12499 LD="${LD-ld} -m elf_i386"
12500 ;;
12501 ppc64-*linux*|powerpc64-*linux*)
12502 LD="${LD-ld} -m elf32ppclinux"
12503 ;;
12504 s390x-*linux*)
12505 LD="${LD-ld} -m elf_s390"
12506 ;;
12507 sparc64-*linux*)
12508 LD="${LD-ld} -m elf32_sparc"
12509 ;;
12510 esac
12511 ;;
12512 *64-bit*)
12513 case $host in
12514 x86_64-*linux*)
12515 LD="${LD-ld} -m elf_x86_64"
12516 ;;
12517 ppc*-*linux*|powerpc*-*linux*)
12518 LD="${LD-ld} -m elf64ppc"
12519 ;;
12520 s390*-*linux*)
12521 LD="${LD-ld} -m elf64_s390"
12522 ;;
12523 sparc*-*linux*)
12524 LD="${LD-ld} -m elf64_sparc"
12525 ;;
12526 esac
12527 ;;
12528 esac
12529 fi
12530 rm -rf conftest*
12531 ;;
12532
12533*-*-sco3.2v5*)
12534 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12535 SAVE_CFLAGS="$CFLAGS"
12536 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012537 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12538echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012539if test "${lt_cv_cc_needs_belf+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541else
12542 ac_ext=c
12543ac_cpp='$CPP $CPPFLAGS'
12544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12546ac_compiler_gnu=$ac_cv_c_compiler_gnu
12547
12548 cat >conftest.$ac_ext <<_ACEOF
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554
Reid Spencera773bd52006-08-04 18:18:08 +000012555int
12556main ()
12557{
12558
12559 ;
12560 return 0;
12561}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012562_ACEOF
12563rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012564if { (ac_try="$ac_link"
12565case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568esac
12569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591esac
12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 lt_cv_cc_needs_belf=yes
12598else
12599 echo "$as_me: failed program was:" >&5
12600sed 's/^/| /' conftest.$ac_ext >&5
12601
Reid Spencera773bd52006-08-04 18:18:08 +000012602 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603fi
Reid Spencera773bd52006-08-04 18:18:08 +000012604
12605rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012606 conftest$ac_exeext conftest.$ac_ext
12607 ac_ext=c
12608ac_cpp='$CPP $CPPFLAGS'
12609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12611ac_compiler_gnu=$ac_cv_c_compiler_gnu
12612
12613fi
Reid Spencera773bd52006-08-04 18:18:08 +000012614{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12615echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012616 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12617 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12618 CFLAGS="$SAVE_CFLAGS"
12619 fi
12620 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012621sparc*-*solaris*)
12622 # Find out which ABI we are using.
12623 echo 'int i;' > conftest.$ac_ext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; then
12629 case `/usr/bin/file conftest.o` in
12630 *64-bit*)
12631 case $lt_cv_prog_gnu_ld in
12632 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12633 *) LD="${LD-ld} -64" ;;
12634 esac
12635 ;;
12636 esac
12637 fi
12638 rm -rf conftest*
12639 ;;
12640
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012641
12642esac
12643
12644need_locks="$enable_libtool_lock"
12645
12646
Reid Spencer2706f8c2004-09-19 23:53:36 +000012647
12648
12649if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12650 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12651 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012652 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012653ac_cpp='$CXXCPP $CPPFLAGS'
12654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012657{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12658echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012659if test -z "$CXXCPP"; then
12660 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662else
John Criswell47fdd832003-07-14 16:52:07 +000012663 # Double quotes because CXXCPP needs to be expanded
12664 for CXXCPP in "$CXX -E" "/lib/cpp"
12665 do
12666 ac_preproc_ok=false
12667for ac_cxx_preproc_warn_flag in '' yes
12668do
12669 # Use a header file that comes with gcc, so configuring glibc
12670 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012673 # On the NeXT, cc -E runs the code through the compiler's parser,
12674 # not just through cpp. "Syntax error" is here to catch this case.
12675 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012676/* confdefs.h. */
12677_ACEOF
12678cat confdefs.h >>conftest.$ac_ext
12679cat >>conftest.$ac_ext <<_ACEOF
12680/* end confdefs.h. */
12681#ifdef __STDC__
12682# include <limits.h>
12683#else
12684# include <assert.h>
12685#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012686 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012687_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012688if { (ac_try="$ac_cpp conftest.$ac_ext"
12689case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012695 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012696 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } >/dev/null; then
12701 if test -s conftest.err; then
12702 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012704 else
John Criswell47fdd832003-07-14 16:52:07 +000012705 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012706 fi
John Criswell47fdd832003-07-14 16:52:07 +000012707else
12708 ac_cpp_err=yes
12709fi
12710if test -z "$ac_cpp_err"; then
12711 :
12712else
12713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012714sed 's/^/| /' conftest.$ac_ext >&5
12715
John Criswell47fdd832003-07-14 16:52:07 +000012716 # Broken: fails on valid input.
12717continue
12718fi
Reid Spencera773bd52006-08-04 18:18:08 +000012719
John Criswell47fdd832003-07-14 16:52:07 +000012720rm -f conftest.err conftest.$ac_ext
12721
Reid Spencera773bd52006-08-04 18:18:08 +000012722 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012723 # can be detected and how.
12724 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012725/* confdefs.h. */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012730#include <ac_nonexistent.h>
12731_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012732if { (ac_try="$ac_cpp conftest.$ac_ext"
12733case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012739 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012740 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } >/dev/null; then
12745 if test -s conftest.err; then
12746 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012747 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012748 else
12749 ac_cpp_err=
12750 fi
12751else
12752 ac_cpp_err=yes
12753fi
12754if test -z "$ac_cpp_err"; then
12755 # Broken: success on invalid input.
12756continue
12757else
12758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012759sed 's/^/| /' conftest.$ac_ext >&5
12760
John Criswell47fdd832003-07-14 16:52:07 +000012761 # Passes both tests.
12762ac_preproc_ok=:
12763break
12764fi
Reid Spencera773bd52006-08-04 18:18:08 +000012765
John Criswell47fdd832003-07-14 16:52:07 +000012766rm -f conftest.err conftest.$ac_ext
12767
12768done
12769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12770rm -f conftest.err conftest.$ac_ext
12771if $ac_preproc_ok; then
12772 break
John Criswell7a73b802003-06-30 21:59:07 +000012773fi
12774
John Criswell47fdd832003-07-14 16:52:07 +000012775 done
12776 ac_cv_prog_CXXCPP=$CXXCPP
12777
12778fi
12779 CXXCPP=$ac_cv_prog_CXXCPP
12780else
12781 ac_cv_prog_CXXCPP=$CXXCPP
12782fi
Reid Spencera773bd52006-08-04 18:18:08 +000012783{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12784echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012785ac_preproc_ok=false
12786for ac_cxx_preproc_warn_flag in '' yes
12787do
12788 # Use a header file that comes with gcc, so configuring glibc
12789 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12791 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012792 # On the NeXT, cc -E runs the code through the compiler's parser,
12793 # not just through cpp. "Syntax error" is here to catch this case.
12794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012795/* confdefs.h. */
12796_ACEOF
12797cat confdefs.h >>conftest.$ac_ext
12798cat >>conftest.$ac_ext <<_ACEOF
12799/* end confdefs.h. */
12800#ifdef __STDC__
12801# include <limits.h>
12802#else
12803# include <assert.h>
12804#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012805 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012806_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012807if { (ac_try="$ac_cpp conftest.$ac_ext"
12808case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811esac
12812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012814 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012815 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } >/dev/null; then
12820 if test -s conftest.err; then
12821 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012822 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012823 else
12824 ac_cpp_err=
12825 fi
12826else
12827 ac_cpp_err=yes
12828fi
12829if test -z "$ac_cpp_err"; then
12830 :
12831else
12832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012833sed 's/^/| /' conftest.$ac_ext >&5
12834
John Criswell47fdd832003-07-14 16:52:07 +000012835 # Broken: fails on valid input.
12836continue
12837fi
Reid Spencera773bd52006-08-04 18:18:08 +000012838
John Criswell47fdd832003-07-14 16:52:07 +000012839rm -f conftest.err conftest.$ac_ext
12840
Reid Spencera773bd52006-08-04 18:18:08 +000012841 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012842 # can be detected and how.
12843 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012844/* confdefs.h. */
12845_ACEOF
12846cat confdefs.h >>conftest.$ac_ext
12847cat >>conftest.$ac_ext <<_ACEOF
12848/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012849#include <ac_nonexistent.h>
12850_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012851if { (ac_try="$ac_cpp conftest.$ac_ext"
12852case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012858 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012859 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012860 rm -f conftest.er1
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } >/dev/null; then
12864 if test -s conftest.err; then
12865 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012866 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012867 else
12868 ac_cpp_err=
12869 fi
12870else
12871 ac_cpp_err=yes
12872fi
12873if test -z "$ac_cpp_err"; then
12874 # Broken: success on invalid input.
12875continue
12876else
12877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012878sed 's/^/| /' conftest.$ac_ext >&5
12879
John Criswell47fdd832003-07-14 16:52:07 +000012880 # Passes both tests.
12881ac_preproc_ok=:
12882break
12883fi
Reid Spencera773bd52006-08-04 18:18:08 +000012884
John Criswell47fdd832003-07-14 16:52:07 +000012885rm -f conftest.err conftest.$ac_ext
12886
12887done
12888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12889rm -f conftest.err conftest.$ac_ext
12890if $ac_preproc_ok; then
12891 :
12892else
John Criswell0c38eaf2003-09-10 15:17:25 +000012893 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12894See \`config.log' for more details." >&5
12895echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12896See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012897 { (exit 1); exit 1; }; }
12898fi
12899
Reid Spencera773bd52006-08-04 18:18:08 +000012900ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012901ac_cpp='$CXXCPP $CPPFLAGS'
12902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12905
Reid Spencer2706f8c2004-09-19 23:53:36 +000012906fi
12907
John Criswell47fdd832003-07-14 16:52:07 +000012908
12909ac_ext=f
12910ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12911ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12912ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12913if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012914 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 +000012915 do
12916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12917set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012920if test "${ac_cv_prog_F77+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922else
12923 if test -n "$F77"; then
12924 ac_cv_prog_F77="$F77" # Let the user override the test.
12925else
12926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $PATH
12928do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012932 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 +000012933 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12935 break 2
12936 fi
12937done
12938done
Reid Spencera773bd52006-08-04 18:18:08 +000012939IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012940
12941fi
12942fi
12943F77=$ac_cv_prog_F77
12944if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012945 { echo "$as_me:$LINENO: result: $F77" >&5
12946echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012947else
Reid Spencera773bd52006-08-04 18:18:08 +000012948 { echo "$as_me:$LINENO: result: no" >&5
12949echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012950fi
12951
Reid Spencera773bd52006-08-04 18:18:08 +000012952
John Criswell47fdd832003-07-14 16:52:07 +000012953 test -n "$F77" && break
12954 done
12955fi
12956if test -z "$F77"; then
12957 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012958 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 +000012959do
12960 # Extract the first word of "$ac_prog", so it can be a program name with args.
12961set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012964if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966else
12967 if test -n "$ac_ct_F77"; then
12968 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12969else
12970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971for as_dir in $PATH
12972do
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
12975 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012976 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 +000012977 ac_cv_prog_ac_ct_F77="$ac_prog"
12978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12979 break 2
12980 fi
12981done
12982done
Reid Spencera773bd52006-08-04 18:18:08 +000012983IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012984
12985fi
12986fi
12987ac_ct_F77=$ac_cv_prog_ac_ct_F77
12988if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012989 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12990echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012991else
Reid Spencera773bd52006-08-04 18:18:08 +000012992 { echo "$as_me:$LINENO: result: no" >&5
12993echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012994fi
12995
Reid Spencera773bd52006-08-04 18:18:08 +000012996
John Criswell47fdd832003-07-14 16:52:07 +000012997 test -n "$ac_ct_F77" && break
12998done
12999
Reid Spencera773bd52006-08-04 18:18:08 +000013000 if test "x$ac_ct_F77" = x; then
13001 F77=""
13002 else
13003 case $cross_compiling:$ac_tool_warned in
13004yes:)
13005{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13006whose name does not start with the host triplet. If you think this
13007configuration is useful to you, please write to autoconf@gnu.org." >&5
13008echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13009whose name does not start with the host triplet. If you think this
13010configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13011ac_tool_warned=yes ;;
13012esac
13013 F77=$ac_ct_F77
13014 fi
John Criswell47fdd832003-07-14 16:52:07 +000013015fi
13016
13017
13018# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013019echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013020ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013021{ (ac_try="$ac_compiler --version >&5"
13022case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025esac
13026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013031{ (ac_try="$ac_compiler -v >&5"
13032case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13035esac
13036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013041{ (ac_try="$ac_compiler -V >&5"
13042case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13045esac
13046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013051rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013052
13053# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013054# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013055ac_save_ext=$ac_ext
13056ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013057{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13058echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013059if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13061else
13062 cat >conftest.$ac_ext <<_ACEOF
13063 program main
13064#ifndef __GNUC__
13065 choke me
13066#endif
13067
13068 end
13069_ACEOF
13070rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013071if { (ac_try="$ac_compile"
13072case "(($ac_try" in
13073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074 *) ac_try_echo=$ac_try;;
13075esac
13076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013079 grep -v '^ *+' conftest.er1 >conftest.err
13080 rm -f conftest.er1
13081 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013084 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; } &&
13094 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013095 { (case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13098esac
13099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 ac_compiler_gnu=yes
13105else
13106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013107sed 's/^/| /' conftest.$ac_ext >&5
13108
Reid Spencera773bd52006-08-04 18:18:08 +000013109 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013110fi
Reid Spencera773bd52006-08-04 18:18:08 +000013111
13112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013113ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13114
13115fi
Reid Spencera773bd52006-08-04 18:18:08 +000013116{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13117echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013118ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013119ac_test_FFLAGS=${FFLAGS+set}
13120ac_save_FFLAGS=$FFLAGS
13121FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013122{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13123echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013124if test "${ac_cv_prog_f77_g+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126else
13127 FFLAGS=-g
13128cat >conftest.$ac_ext <<_ACEOF
13129 program main
13130
13131 end
13132_ACEOF
13133rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013134if { (ac_try="$ac_compile"
13135case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13138esac
13139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013141 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013147 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013158 { (case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161esac
13162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_prog_f77_g=yes
13168else
13169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013170sed 's/^/| /' conftest.$ac_ext >&5
13171
Reid Spencera773bd52006-08-04 18:18:08 +000013172 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013173fi
Reid Spencera773bd52006-08-04 18:18:08 +000013174
13175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013176
13177fi
Reid Spencera773bd52006-08-04 18:18:08 +000013178{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13179echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013180if test "$ac_test_FFLAGS" = set; then
13181 FFLAGS=$ac_save_FFLAGS
13182elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013183 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013184 FFLAGS="-g -O2"
13185 else
13186 FFLAGS="-g"
13187 fi
13188else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013189 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013190 FFLAGS="-O2"
13191 else
13192 FFLAGS=
13193 fi
13194fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013195
13196G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013197ac_ext=c
13198ac_cpp='$CPP $CPPFLAGS'
13199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201ac_compiler_gnu=$ac_cv_c_compiler_gnu
13202
13203
13204
13205# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13206
13207# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013208{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13209echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013210if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212else
13213 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013214 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013215
13216 case $build_os in
13217 msdosdjgpp*)
13218 # On DJGPP, this test can blow up pretty badly due to problems in libc
13219 # (any single argument exceeding 2000 bytes causes a buffer overrun
13220 # during glob expansion). Even if it were fixed, the result of this
13221 # check would be larger than it should be.
13222 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13223 ;;
13224
13225 gnu*)
13226 # Under GNU Hurd, this test is not required because there is
13227 # no limit to the length of command line arguments.
13228 # Libtool will interpret -1 as no limit whatsoever
13229 lt_cv_sys_max_cmd_len=-1;
13230 ;;
13231
13232 cygwin* | mingw*)
13233 # On Win9x/ME, this test blows up -- it succeeds, but takes
13234 # about 5 minutes as the teststring grows exponentially.
13235 # Worse, since 9x/ME are not pre-emptively multitasking,
13236 # you end up with a "frozen" computer, even though with patience
13237 # the test eventually succeeds (with a max line length of 256k).
13238 # Instead, let's just punt: use the minimum linelength reported by
13239 # all of the supported platforms: 8192 (on NT/2K/XP).
13240 lt_cv_sys_max_cmd_len=8192;
13241 ;;
13242
Reid Spencer2706f8c2004-09-19 23:53:36 +000013243 amigaos*)
13244 # On AmigaOS with pdksh, this test takes hours, literally.
13245 # So we just punt and use a minimum line length of 8192.
13246 lt_cv_sys_max_cmd_len=8192;
13247 ;;
13248
Reid Spencera773bd52006-08-04 18:18:08 +000013249 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013250 # This has been around since 386BSD, at least. Likely further.
13251 if test -x /sbin/sysctl; then
13252 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13253 elif test -x /usr/sbin/sysctl; then
13254 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13255 else
Reid Spencera773bd52006-08-04 18:18:08 +000013256 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013257 fi
13258 # And add a safety zone
13259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013261 ;;
13262
Reid Spencera773bd52006-08-04 18:18:08 +000013263 interix*)
13264 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13265 lt_cv_sys_max_cmd_len=196608
13266 ;;
13267
13268 osf*)
13269 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13270 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13271 # nice to cause kernel panics so lets avoid the loop below.
13272 # First set a reasonable default.
13273 lt_cv_sys_max_cmd_len=16384
13274 #
13275 if test -x /sbin/sysconfig; then
13276 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13277 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13278 esac
13279 fi
13280 ;;
13281 sco3.2v5*)
13282 lt_cv_sys_max_cmd_len=102400
13283 ;;
13284 sysv5* | sco5v6* | sysv4.2uw2*)
13285 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13286 if test -n "$kargmax"; then
13287 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13288 else
13289 lt_cv_sys_max_cmd_len=32768
13290 fi
13291 ;;
13292 *)
John Criswell47fdd832003-07-14 16:52:07 +000013293 # If test is not a shell built-in, we'll probably end up computing a
13294 # maximum length that is only half of the actual maximum length, but
13295 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013296 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13297 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13298 = "XX$teststring") >/dev/null 2>&1 &&
13299 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013300 lt_cv_sys_max_cmd_len=$new_result &&
13301 test $i != 17 # 1/2 MB should be enough
13302 do
13303 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013304 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013305 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013306 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013307 # Add a significant safety factor because C++ compilers can tack on massive
13308 # amounts of additional arguments before passing them to the linker.
13309 # It appears as though 1/2 is a usable value.
13310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13311 ;;
13312 esac
13313
13314fi
13315
13316if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013317 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13318echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013319else
Reid Spencera773bd52006-08-04 18:18:08 +000013320 { echo "$as_me:$LINENO: result: none" >&5
13321echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013322fi
13323
13324
13325
13326
13327# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013328{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13329echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013330if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332else
13333
13334# These are sane defaults that work on at least a few old systems.
13335# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13336
13337# Character class describing NM global symbol codes.
13338symcode='[BCDEGRST]'
13339
13340# Regexp to match symbols that can be accessed directly from C.
13341sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13342
John Criswell47fdd832003-07-14 16:52:07 +000013343# Transform an extracted symbol line into a proper C declaration
13344lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13345
13346# Transform an extracted symbol line into symbol name and symbol address
13347lt_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'"
13348
13349# Define system-specific variables.
13350case $host_os in
13351aix*)
13352 symcode='[BCDT]'
13353 ;;
13354cygwin* | mingw* | pw32*)
13355 symcode='[ABCDGISTW]'
13356 ;;
13357hpux*) # Its linker distinguishes data from code symbols
13358 if test "$host_cpu" = ia64; then
13359 symcode='[ABCDEGRST]'
13360 fi
13361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13362 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'"
13363 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013364linux*)
13365 if test "$host_cpu" = ia64; then
13366 symcode='[ABCDGIRSTW]'
13367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13368 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'"
13369 fi
13370 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013371irix* | nonstopux*)
13372 symcode='[BCDEGRST]'
13373 ;;
13374osf*)
13375 symcode='[BCDEGQRST]'
13376 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013377solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013378 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013379 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013380sco3.2v5*)
13381 symcode='[DT]'
13382 ;;
13383sysv4.2uw2*)
13384 symcode='[DT]'
13385 ;;
13386sysv5* | sco5v6* | unixware* | OpenUNIX*)
13387 symcode='[ABDT]'
13388 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013389sysv4)
13390 symcode='[DFNSTU]'
13391 ;;
13392esac
13393
13394# Handle CRLF in mingw tool chain
13395opt_cr=
13396case $build_os in
13397mingw*)
13398 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13399 ;;
13400esac
13401
13402# If we're using GNU nm, then use its standard symbol codes.
13403case `$NM -V 2>&1` in
13404*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013405 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013406esac
13407
13408# Try without a prefix undercore, then with it.
13409for ac_symprfx in "" "_"; do
13410
Reid Spencera773bd52006-08-04 18:18:08 +000013411 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13412 symxfrm="\\1 $ac_symprfx\\2 \\2"
13413
John Criswell47fdd832003-07-14 16:52:07 +000013414 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013415 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 +000013416
13417 # Check to see that the pipe works correctly.
13418 pipe_works=no
13419
13420 rm -f conftest*
13421 cat > conftest.$ac_ext <<EOF
13422#ifdef __cplusplus
13423extern "C" {
13424#endif
13425char nm_test_var;
13426void nm_test_func(){}
13427#ifdef __cplusplus
13428}
13429#endif
13430int main(){nm_test_var='a';nm_test_func();return(0);}
13431EOF
13432
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; then
13438 # Now try to grab the symbols.
13439 nlist=conftest.nm
13440 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13441 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && test -s "$nlist"; then
13445 # Try sorting and uniquifying the output.
13446 if sort "$nlist" | uniq > "$nlist"T; then
13447 mv -f "$nlist"T "$nlist"
13448 else
13449 rm -f "$nlist"T
13450 fi
13451
13452 # Make sure that we snagged all the symbols we need.
13453 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13454 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13455 cat <<EOF > conftest.$ac_ext
13456#ifdef __cplusplus
13457extern "C" {
13458#endif
13459
13460EOF
13461 # Now generate the symbol file.
13462 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13463
13464 cat <<EOF >> conftest.$ac_ext
13465#if defined (__STDC__) && __STDC__
13466# define lt_ptr_t void *
13467#else
13468# define lt_ptr_t char *
13469# define const
13470#endif
13471
13472/* The mapping between symbol names and symbols. */
13473const struct {
13474 const char *name;
13475 lt_ptr_t address;
13476}
13477lt_preloaded_symbols[] =
13478{
13479EOF
13480 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13481 cat <<\EOF >> conftest.$ac_ext
13482 {0, (lt_ptr_t) 0}
13483};
13484
13485#ifdef __cplusplus
13486}
13487#endif
13488EOF
13489 # Now try linking the two files.
13490 mv conftest.$ac_objext conftstm.$ac_objext
13491 lt_save_LIBS="$LIBS"
13492 lt_save_CFLAGS="$CFLAGS"
13493 LIBS="conftstm.$ac_objext"
13494 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13496 (eval $ac_link) 2>&5
13497 ac_status=$?
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13500 pipe_works=yes
13501 fi
13502 LIBS="$lt_save_LIBS"
13503 CFLAGS="$lt_save_CFLAGS"
13504 else
13505 echo "cannot find nm_test_func in $nlist" >&5
13506 fi
13507 else
13508 echo "cannot find nm_test_var in $nlist" >&5
13509 fi
13510 else
13511 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13512 fi
13513 else
13514 echo "$progname: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13516 fi
13517 rm -f conftest* conftst*
13518
13519 # Do not use the global_symbol_pipe unless it works.
13520 if test "$pipe_works" = yes; then
13521 break
13522 else
13523 lt_cv_sys_global_symbol_pipe=
13524 fi
13525done
13526
13527fi
13528
13529if test -z "$lt_cv_sys_global_symbol_pipe"; then
13530 lt_cv_sys_global_symbol_to_cdecl=
13531fi
13532if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013533 { echo "$as_me:$LINENO: result: failed" >&5
13534echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013535else
Reid Spencera773bd52006-08-04 18:18:08 +000013536 { echo "$as_me:$LINENO: result: ok" >&5
13537echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013538fi
13539
Reid Spencera773bd52006-08-04 18:18:08 +000013540{ echo "$as_me:$LINENO: checking for objdir" >&5
13541echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013542if test "${lt_cv_objdir+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
13545 rm -f .libs 2>/dev/null
13546mkdir .libs 2>/dev/null
13547if test -d .libs; then
13548 lt_cv_objdir=.libs
13549else
13550 # MS-DOS does not allow filenames that begin with a dot.
13551 lt_cv_objdir=_libs
13552fi
13553rmdir .libs 2>/dev/null
13554fi
Reid Spencera773bd52006-08-04 18:18:08 +000013555{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13556echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013557objdir=$lt_cv_objdir
13558
13559
13560
13561
13562
13563case $host_os in
13564aix3*)
13565 # AIX sometimes has problems with the GCC collect2 program. For some
13566 # reason, if we set the COLLECT_NAMES environment variable, the problems
13567 # vanish in a puff of smoke.
13568 if test "X${COLLECT_NAMES+set}" != Xset; then
13569 COLLECT_NAMES=
13570 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013571 fi
13572 ;;
13573esac
13574
John Criswell47fdd832003-07-14 16:52:07 +000013575# Sed substitution that helps us do robust quoting. It backslashifies
13576# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013577Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013578sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13579
13580# Same as above, but do not quote variable references.
13581double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13582
13583# Sed substitution to delay expansion of an escaped shell variable in a
13584# double_quote_subst'ed string.
13585delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13586
13587# Sed substitution to avoid accidental globbing in evaled expressions
13588no_glob_subst='s/\*/\\\*/g'
13589
13590# Constants:
13591rm="rm -f"
13592
13593# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013594default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013595can_build_shared=yes
13596
Reid Spencera773bd52006-08-04 18:18:08 +000013597# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013598# which needs '.lib').
13599libext=a
13600ltmain="$ac_aux_dir/ltmain.sh"
13601ofile="$default_ofile"
13602with_gnu_ld="$lt_cv_prog_gnu_ld"
13603
13604if test -n "$ac_tool_prefix"; then
13605 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13606set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013609if test "${ac_cv_prog_AR+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
13612 if test -n "$AR"; then
13613 ac_cv_prog_AR="$AR" # Let the user override the test.
13614else
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013621 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 +000013622 ac_cv_prog_AR="${ac_tool_prefix}ar"
13623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626done
13627done
Reid Spencera773bd52006-08-04 18:18:08 +000013628IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013629
13630fi
13631fi
13632AR=$ac_cv_prog_AR
13633if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013634 { echo "$as_me:$LINENO: result: $AR" >&5
13635echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013636else
Reid Spencera773bd52006-08-04 18:18:08 +000013637 { echo "$as_me:$LINENO: result: no" >&5
13638echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013639fi
13640
Reid Spencera773bd52006-08-04 18:18:08 +000013641
John Criswell47fdd832003-07-14 16:52:07 +000013642fi
13643if test -z "$ac_cv_prog_AR"; then
13644 ac_ct_AR=$AR
13645 # Extract the first word of "ar", so it can be a program name with args.
13646set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013649if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651else
13652 if test -n "$ac_ct_AR"; then
13653 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13654else
13655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656for as_dir in $PATH
13657do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013661 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 +000013662 ac_cv_prog_ac_ct_AR="ar"
13663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13664 break 2
13665 fi
13666done
13667done
Reid Spencera773bd52006-08-04 18:18:08 +000013668IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013669
John Criswell47fdd832003-07-14 16:52:07 +000013670fi
13671fi
13672ac_ct_AR=$ac_cv_prog_ac_ct_AR
13673if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013674 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13675echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013676else
Reid Spencera773bd52006-08-04 18:18:08 +000013677 { echo "$as_me:$LINENO: result: no" >&5
13678echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013679fi
13680
Reid Spencera773bd52006-08-04 18:18:08 +000013681 if test "x$ac_ct_AR" = x; then
13682 AR="false"
13683 else
13684 case $cross_compiling:$ac_tool_warned in
13685yes:)
13686{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13687whose name does not start with the host triplet. If you think this
13688configuration is useful to you, please write to autoconf@gnu.org." >&5
13689echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13690whose name does not start with the host triplet. If you think this
13691configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13692ac_tool_warned=yes ;;
13693esac
13694 AR=$ac_ct_AR
13695 fi
John Criswell47fdd832003-07-14 16:52:07 +000013696else
13697 AR="$ac_cv_prog_AR"
13698fi
13699
John Criswell7a73b802003-06-30 21:59:07 +000013700if test -n "$ac_tool_prefix"; then
13701 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13702set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013705if test "${ac_cv_prog_RANLIB+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707else
13708 if test -n "$RANLIB"; then
13709 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13710else
13711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712for as_dir in $PATH
13713do
13714 IFS=$as_save_IFS
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013717 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 +000013718 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13720 break 2
13721 fi
13722done
13723done
Reid Spencera773bd52006-08-04 18:18:08 +000013724IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013725
13726fi
13727fi
13728RANLIB=$ac_cv_prog_RANLIB
13729if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013730 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13731echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013732else
Reid Spencera773bd52006-08-04 18:18:08 +000013733 { echo "$as_me:$LINENO: result: no" >&5
13734echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013735fi
13736
Reid Spencera773bd52006-08-04 18:18:08 +000013737
John Criswell7a73b802003-06-30 21:59:07 +000013738fi
13739if test -z "$ac_cv_prog_RANLIB"; then
13740 ac_ct_RANLIB=$RANLIB
13741 # Extract the first word of "ranlib", so it can be a program name with args.
13742set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013745if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747else
13748 if test -n "$ac_ct_RANLIB"; then
13749 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13750else
13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752for as_dir in $PATH
13753do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013757 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 +000013758 ac_cv_prog_ac_ct_RANLIB="ranlib"
13759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13761 fi
13762done
13763done
Reid Spencera773bd52006-08-04 18:18:08 +000013764IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013765
John Criswell7a73b802003-06-30 21:59:07 +000013766fi
13767fi
13768ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13769if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013770 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13771echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013772else
Reid Spencera773bd52006-08-04 18:18:08 +000013773 { echo "$as_me:$LINENO: result: no" >&5
13774echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013775fi
13776
Reid Spencera773bd52006-08-04 18:18:08 +000013777 if test "x$ac_ct_RANLIB" = x; then
13778 RANLIB=":"
13779 else
13780 case $cross_compiling:$ac_tool_warned in
13781yes:)
13782{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13783whose name does not start with the host triplet. If you think this
13784configuration is useful to you, please write to autoconf@gnu.org." >&5
13785echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13786whose name does not start with the host triplet. If you think this
13787configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13788ac_tool_warned=yes ;;
13789esac
13790 RANLIB=$ac_ct_RANLIB
13791 fi
John Criswell7a73b802003-06-30 21:59:07 +000013792else
13793 RANLIB="$ac_cv_prog_RANLIB"
13794fi
13795
13796if test -n "$ac_tool_prefix"; then
13797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13798set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013801if test "${ac_cv_prog_STRIP+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804 if test -n "$STRIP"; then
13805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13806else
13807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808for as_dir in $PATH
13809do
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013813 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 +000013814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 break 2
13817 fi
13818done
13819done
Reid Spencera773bd52006-08-04 18:18:08 +000013820IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013821
13822fi
13823fi
13824STRIP=$ac_cv_prog_STRIP
13825if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013826 { echo "$as_me:$LINENO: result: $STRIP" >&5
13827echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013828else
Reid Spencera773bd52006-08-04 18:18:08 +000013829 { echo "$as_me:$LINENO: result: no" >&5
13830echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013831fi
13832
Reid Spencera773bd52006-08-04 18:18:08 +000013833
John Criswell7a73b802003-06-30 21:59:07 +000013834fi
13835if test -z "$ac_cv_prog_STRIP"; then
13836 ac_ct_STRIP=$STRIP
13837 # Extract the first word of "strip", so it can be a program name with args.
13838set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013841if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843else
13844 if test -n "$ac_ct_STRIP"; then
13845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13846else
13847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848for as_dir in $PATH
13849do
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013853 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 +000013854 ac_cv_prog_ac_ct_STRIP="strip"
13855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13857 fi
13858done
13859done
Reid Spencera773bd52006-08-04 18:18:08 +000013860IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013861
John Criswell7a73b802003-06-30 21:59:07 +000013862fi
13863fi
13864ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13865if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013866 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13867echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013868else
Reid Spencera773bd52006-08-04 18:18:08 +000013869 { echo "$as_me:$LINENO: result: no" >&5
13870echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013871fi
13872
Reid Spencera773bd52006-08-04 18:18:08 +000013873 if test "x$ac_ct_STRIP" = x; then
13874 STRIP=":"
13875 else
13876 case $cross_compiling:$ac_tool_warned in
13877yes:)
13878{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13879whose name does not start with the host triplet. If you think this
13880configuration is useful to you, please write to autoconf@gnu.org." >&5
13881echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13882whose name does not start with the host triplet. If you think this
13883configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13884ac_tool_warned=yes ;;
13885esac
13886 STRIP=$ac_ct_STRIP
13887 fi
John Criswell7a73b802003-06-30 21:59:07 +000013888else
13889 STRIP="$ac_cv_prog_STRIP"
13890fi
13891
13892
John Criswell7a73b802003-06-30 21:59:07 +000013893old_CC="$CC"
13894old_CFLAGS="$CFLAGS"
13895
13896# Set sane defaults for various variables
13897test -z "$AR" && AR=ar
13898test -z "$AR_FLAGS" && AR_FLAGS=cru
13899test -z "$AS" && AS=as
13900test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013901test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013902test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013903test -z "$DLLTOOL" && DLLTOOL=dlltool
13904test -z "$LD" && LD=ld
13905test -z "$LN_S" && LN_S="ln -s"
13906test -z "$MAGIC_CMD" && MAGIC_CMD=file
13907test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013908test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013909test -z "$OBJDUMP" && OBJDUMP=objdump
13910test -z "$RANLIB" && RANLIB=:
13911test -z "$STRIP" && STRIP=:
13912test -z "$ac_objext" && ac_objext=o
13913
John Criswell7a73b802003-06-30 21:59:07 +000013914# Determine commands to create old-style static archives.
13915old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13916old_postinstall_cmds='chmod 644 $oldlib'
13917old_postuninstall_cmds=
13918
13919if test -n "$RANLIB"; then
13920 case $host_os in
13921 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013923 ;;
13924 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013926 ;;
13927 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013928 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013929fi
13930
Reid Spencera773bd52006-08-04 18:18:08 +000013931for cc_temp in $compiler""; do
13932 case $cc_temp in
13933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13935 \-*) ;;
13936 *) break;;
13937 esac
13938done
13939cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13940
Reid Spencer2706f8c2004-09-19 23:53:36 +000013941
John Criswell47fdd832003-07-14 16:52:07 +000013942# Only perform the check for file, if the check method requires it
13943case $deplibs_check_method in
13944file_magic*)
13945 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013946 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13947echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013948if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013950else
John Criswell47fdd832003-07-14 16:52:07 +000013951 case $MAGIC_CMD in
13952[\\/*] | ?:[\\/]*)
13953 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13954 ;;
13955*)
13956 lt_save_MAGIC_CMD="$MAGIC_CMD"
13957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13958 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13959 for ac_dir in $ac_dummy; do
13960 IFS="$lt_save_ifs"
13961 test -z "$ac_dir" && ac_dir=.
13962 if test -f $ac_dir/${ac_tool_prefix}file; then
13963 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13964 if test -n "$file_magic_test_file"; then
13965 case $deplibs_check_method in
13966 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013967 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13969 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13970 $EGREP "$file_magic_regex" > /dev/null; then
13971 :
13972 else
13973 cat <<EOF 1>&2
13974
13975*** Warning: the command libtool uses to detect shared libraries,
13976*** $file_magic_cmd, produces output that libtool cannot recognize.
13977*** The result is that libtool may fail to recognize shared libraries
13978*** as such. This will affect the creation of libtool libraries that
13979*** depend on shared libraries, but programs linked with such libtool
13980*** libraries will work regardless of this problem. Nevertheless, you
13981*** may want to report the problem to your system manager and/or to
13982*** bug-libtool@gnu.org
13983
13984EOF
13985 fi ;;
13986 esac
13987 fi
13988 break
13989 fi
13990 done
13991 IFS="$lt_save_ifs"
13992 MAGIC_CMD="$lt_save_MAGIC_CMD"
13993 ;;
13994esac
John Criswell7a73b802003-06-30 21:59:07 +000013995fi
John Criswell7a73b802003-06-30 21:59:07 +000013996
John Criswell47fdd832003-07-14 16:52:07 +000013997MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13998if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013999 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14000echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014001else
Reid Spencera773bd52006-08-04 18:18:08 +000014002 { echo "$as_me:$LINENO: result: no" >&5
14003echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014004fi
John Criswell7a73b802003-06-30 21:59:07 +000014005
John Criswell47fdd832003-07-14 16:52:07 +000014006if test -z "$lt_cv_path_MAGIC_CMD"; then
14007 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014008 { echo "$as_me:$LINENO: checking for file" >&5
14009echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014010if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012else
14013 case $MAGIC_CMD in
14014[\\/*] | ?:[\\/]*)
14015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14016 ;;
14017*)
14018 lt_save_MAGIC_CMD="$MAGIC_CMD"
14019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14021 for ac_dir in $ac_dummy; do
14022 IFS="$lt_save_ifs"
14023 test -z "$ac_dir" && ac_dir=.
14024 if test -f $ac_dir/file; then
14025 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14026 if test -n "$file_magic_test_file"; then
14027 case $deplibs_check_method in
14028 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14032 $EGREP "$file_magic_regex" > /dev/null; then
14033 :
14034 else
14035 cat <<EOF 1>&2
14036
14037*** Warning: the command libtool uses to detect shared libraries,
14038*** $file_magic_cmd, produces output that libtool cannot recognize.
14039*** The result is that libtool may fail to recognize shared libraries
14040*** as such. This will affect the creation of libtool libraries that
14041*** depend on shared libraries, but programs linked with such libtool
14042*** libraries will work regardless of this problem. Nevertheless, you
14043*** may want to report the problem to your system manager and/or to
14044*** bug-libtool@gnu.org
14045
14046EOF
14047 fi ;;
14048 esac
14049 fi
14050 break
14051 fi
14052 done
14053 IFS="$lt_save_ifs"
14054 MAGIC_CMD="$lt_save_MAGIC_CMD"
14055 ;;
14056esac
14057fi
14058
14059MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14060if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014061 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14062echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014063else
Reid Spencera773bd52006-08-04 18:18:08 +000014064 { echo "$as_me:$LINENO: result: no" >&5
14065echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014066fi
14067
14068 else
14069 MAGIC_CMD=:
14070 fi
14071fi
14072
14073 fi
14074 ;;
14075esac
14076
Reid Spencer17795972004-11-18 09:47:37 +000014077enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014078enable_win32_dll=no
14079
Reid Spencera773bd52006-08-04 18:18:08 +000014080# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014081if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014082 enableval=$enable_libtool_lock;
14083fi
John Criswell47fdd832003-07-14 16:52:07 +000014084
John Criswell47fdd832003-07-14 16:52:07 +000014085test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14086
John Criswell7a73b802003-06-30 21:59:07 +000014087
Reid Spencera773bd52006-08-04 18:18:08 +000014088# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014089if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014090 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014091else
14092 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014093fi
14094
John Criswell7a73b802003-06-30 21:59:07 +000014095test -z "$pic_mode" && pic_mode=default
14096
John Criswell47fdd832003-07-14 16:52:07 +000014097# Use C for the default configuration in the libtool script
14098tagname=
14099lt_save_CC="$CC"
14100ac_ext=c
14101ac_cpp='$CPP $CPPFLAGS'
14102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14104ac_compiler_gnu=$ac_cv_c_compiler_gnu
14105
14106
14107# Source file extension for C test sources.
14108ac_ext=c
14109
14110# Object file extension for compiled C test sources.
14111objext=o
14112objext=$objext
14113
14114# Code to be used in simple compile tests
14115lt_simple_compile_test_code="int some_variable = 0;\n"
14116
14117# Code to be used in simple link tests
14118lt_simple_link_test_code='int main(){return(0);}\n'
14119
14120
14121# If no C compiler was specified, use CC.
14122LTCC=${LTCC-"$CC"}
14123
Reid Spencera773bd52006-08-04 18:18:08 +000014124# If no C compiler flags were specified, use CFLAGS.
14125LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14126
John Criswell47fdd832003-07-14 16:52:07 +000014127# Allow CC to be a program name with arguments.
14128compiler=$CC
14129
14130
Reid Spencera773bd52006-08-04 18:18:08 +000014131# save warnings/boilerplate of simple test code
14132ac_outfile=conftest.$ac_objext
14133printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14134eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14135_lt_compiler_boilerplate=`cat conftest.err`
14136$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014137
Reid Spencera773bd52006-08-04 18:18:08 +000014138ac_outfile=conftest.$ac_objext
14139printf "$lt_simple_link_test_code" >conftest.$ac_ext
14140eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14141_lt_linker_boilerplate=`cat conftest.err`
14142$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014143
14144
John Criswell47fdd832003-07-14 16:52:07 +000014145
14146lt_prog_compiler_no_builtin_flag=
14147
14148if test "$GCC" = yes; then
14149 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14150
Reid Spencer2706f8c2004-09-19 23:53:36 +000014151
Reid Spencera773bd52006-08-04 18:18:08 +000014152{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14153echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014154if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156else
14157 lt_cv_prog_compiler_rtti_exceptions=no
14158 ac_outfile=conftest.$ac_objext
14159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14160 lt_compiler_flag="-fno-rtti -fno-exceptions"
14161 # Insert the option either (1) after the last *FLAGS variable, or
14162 # (2) before a word containing "conftest.", or (3) at the end.
14163 # Note that $ac_compile itself does not contain backslashes and begins
14164 # with a dollar sign (not a hyphen), so the echo should work correctly.
14165 # The option is referenced via a variable to avoid confusing sed.
14166 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14169 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000014170 (eval echo "\"\$as_me:14170: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014171 (eval "$lt_compile" 2>conftest.err)
14172 ac_status=$?
14173 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000014174 echo "$as_me:14174: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014175 if (exit $ac_status) && test -s "$ac_outfile"; then
14176 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014177 # So say no if there are warnings other than the usual output.
14178 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014181 lt_cv_prog_compiler_rtti_exceptions=yes
14182 fi
14183 fi
14184 $rm conftest*
14185
14186fi
Reid Spencera773bd52006-08-04 18:18:08 +000014187{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14188echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014189
14190if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14191 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14192else
14193 :
14194fi
14195
14196fi
14197
14198lt_prog_compiler_wl=
14199lt_prog_compiler_pic=
14200lt_prog_compiler_static=
14201
Reid Spencera773bd52006-08-04 18:18:08 +000014202{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14203echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014204
14205 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014206 lt_prog_compiler_wl='-Wl,'
14207 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014208
14209 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014210 aix*)
14211 # All AIX code is PIC.
14212 if test "$host_cpu" = ia64; then
14213 # AIX 5 now supports IA64 processor
14214 lt_prog_compiler_static='-Bstatic'
14215 fi
John Criswell7a73b802003-06-30 21:59:07 +000014216 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014217
John Criswell7a73b802003-06-30 21:59:07 +000014218 amigaos*)
14219 # FIXME: we need at least 68020 code to build shared libraries, but
14220 # adding the `-m68020' flag to GCC prevents building anything better,
14221 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014222 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014223 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014224
14225 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014226 # PIC is the default for these OSes.
14227 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014228
14229 mingw* | pw32* | os2*)
14230 # This hack is so that the source file can tell whether it is being
14231 # built for inclusion in a dll (and should export symbols for example).
14232 lt_prog_compiler_pic='-DDLL_EXPORT'
14233 ;;
14234
John Criswell7a73b802003-06-30 21:59:07 +000014235 darwin* | rhapsody*)
14236 # PIC is the default on this platform
14237 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014238 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014239 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014240
Reid Spencera773bd52006-08-04 18:18:08 +000014241 interix3*)
14242 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14243 # Instead, we relocate shared libraries at runtime.
14244 ;;
14245
John Criswell47fdd832003-07-14 16:52:07 +000014246 msdosdjgpp*)
14247 # Just because we use GCC doesn't mean we suddenly get shared libraries
14248 # on systems that don't support them.
14249 lt_prog_compiler_can_build_shared=no
14250 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014251 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014252
John Criswell7a73b802003-06-30 21:59:07 +000014253 sysv4*MP*)
14254 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014255 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014256 fi
14257 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014258
14259 hpux*)
14260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14261 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014262 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014263 hppa*64*|ia64*)
14264 # +Z the default
14265 ;;
14266 *)
14267 lt_prog_compiler_pic='-fPIC'
14268 ;;
14269 esac
14270 ;;
14271
John Criswell7a73b802003-06-30 21:59:07 +000014272 *)
John Criswell47fdd832003-07-14 16:52:07 +000014273 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014274 ;;
14275 esac
14276 else
John Criswell47fdd832003-07-14 16:52:07 +000014277 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014278 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014279 aix*)
14280 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014281 if test "$host_cpu" = ia64; then
14282 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014283 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014284 else
John Criswell47fdd832003-07-14 16:52:07 +000014285 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014286 fi
14287 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014288 darwin*)
14289 # PIC is the default on this platform
14290 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014291 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014292 xlc*)
14293 lt_prog_compiler_pic='-qnocommon'
14294 lt_prog_compiler_wl='-Wl,'
14295 ;;
14296 esac
14297 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014298
John Criswell47fdd832003-07-14 16:52:07 +000014299 mingw* | pw32* | os2*)
14300 # This hack is so that the source file can tell whether it is being
14301 # built for inclusion in a dll (and should export symbols for example).
14302 lt_prog_compiler_pic='-DDLL_EXPORT'
14303 ;;
14304
John Criswell7a73b802003-06-30 21:59:07 +000014305 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014306 lt_prog_compiler_wl='-Wl,'
14307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14308 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014309 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014310 hppa*64*|ia64*)
14311 # +Z the default
14312 ;;
14313 *)
14314 lt_prog_compiler_pic='+Z'
14315 ;;
14316 esac
14317 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14318 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014319 ;;
14320
John Criswell47fdd832003-07-14 16:52:07 +000014321 irix5* | irix6* | nonstopux*)
14322 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014323 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014324 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014325 ;;
14326
14327 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014328 lt_prog_compiler_pic='-KPIC'
14329 lt_prog_compiler_static='-Bstatic'
14330 ;;
14331
14332 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014333 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014334 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_pic='-KPIC'
14337 lt_prog_compiler_static='-static'
14338 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014339 pgcc* | pgf77* | pgf90* | pgf95*)
14340 # Portland Group compilers (*not* the Pentium gcc compiler,
14341 # which looks to be a dead project)
14342 lt_prog_compiler_wl='-Wl,'
14343 lt_prog_compiler_pic='-fpic'
14344 lt_prog_compiler_static='-Bstatic'
14345 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014346 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014347 lt_prog_compiler_wl='-Wl,'
14348 # All Alpha code is PIC.
14349 lt_prog_compiler_static='-non_shared'
14350 ;;
14351 esac
John Criswell7a73b802003-06-30 21:59:07 +000014352 ;;
14353
14354 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014355 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014356 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014357 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014358 ;;
14359
John Criswell7a73b802003-06-30 21:59:07 +000014360 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014361 lt_prog_compiler_pic='-KPIC'
14362 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014363 case $cc_basename in
14364 f77* | f90* | f95*)
14365 lt_prog_compiler_wl='-Qoption ld ';;
14366 *)
14367 lt_prog_compiler_wl='-Wl,';;
14368 esac
John Criswell7a73b802003-06-30 21:59:07 +000014369 ;;
14370
14371 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014372 lt_prog_compiler_wl='-Qoption ld '
14373 lt_prog_compiler_pic='-PIC'
14374 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014375 ;;
14376
Reid Spencera773bd52006-08-04 18:18:08 +000014377 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014378 lt_prog_compiler_wl='-Wl,'
14379 lt_prog_compiler_pic='-KPIC'
14380 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014381 ;;
14382
14383 sysv4*MP*)
14384 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014385 lt_prog_compiler_pic='-Kconform_pic'
14386 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014387 fi
14388 ;;
14389
Reid Spencera773bd52006-08-04 18:18:08 +000014390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14391 lt_prog_compiler_wl='-Wl,'
14392 lt_prog_compiler_pic='-KPIC'
14393 lt_prog_compiler_static='-Bstatic'
14394 ;;
14395
14396 unicos*)
14397 lt_prog_compiler_wl='-Wl,'
14398 lt_prog_compiler_can_build_shared=no
14399 ;;
14400
John Criswell47fdd832003-07-14 16:52:07 +000014401 uts4*)
14402 lt_prog_compiler_pic='-pic'
14403 lt_prog_compiler_static='-Bstatic'
14404 ;;
14405
John Criswell7a73b802003-06-30 21:59:07 +000014406 *)
John Criswell47fdd832003-07-14 16:52:07 +000014407 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014408 ;;
14409 esac
14410 fi
14411
Reid Spencera773bd52006-08-04 18:18:08 +000014412{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14413echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014414
John Criswell47fdd832003-07-14 16:52:07 +000014415#
14416# Check to make sure the PIC flag actually works.
14417#
14418if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014419
Reid Spencera773bd52006-08-04 18:18:08 +000014420{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14421echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014422if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424else
John Criswell47fdd832003-07-14 16:52:07 +000014425 lt_prog_compiler_pic_works=no
14426 ac_outfile=conftest.$ac_objext
14427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14428 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14429 # Insert the option either (1) after the last *FLAGS variable, or
14430 # (2) before a word containing "conftest.", or (3) at the end.
14431 # Note that $ac_compile itself does not contain backslashes and begins
14432 # with a dollar sign (not a hyphen), so the echo should work correctly.
14433 # The option is referenced via a variable to avoid confusing sed.
14434 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14437 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000014438 (eval echo "\"\$as_me:14438: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014439 (eval "$lt_compile" 2>conftest.err)
14440 ac_status=$?
14441 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000014442 echo "$as_me:14442: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014443 if (exit $ac_status) && test -s "$ac_outfile"; then
14444 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014445 # So say no if there are warnings other than the usual output.
14446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014449 lt_prog_compiler_pic_works=yes
14450 fi
14451 fi
14452 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014453
John Criswell47fdd832003-07-14 16:52:07 +000014454fi
Reid Spencera773bd52006-08-04 18:18:08 +000014455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14456echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014457
John Criswell47fdd832003-07-14 16:52:07 +000014458if test x"$lt_prog_compiler_pic_works" = xyes; then
14459 case $lt_prog_compiler_pic in
14460 "" | " "*) ;;
14461 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14462 esac
John Criswell7a73b802003-06-30 21:59:07 +000014463else
John Criswell47fdd832003-07-14 16:52:07 +000014464 lt_prog_compiler_pic=
14465 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014466fi
14467
John Criswell7a73b802003-06-30 21:59:07 +000014468fi
Reid Spencera773bd52006-08-04 18:18:08 +000014469case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014470 # For platforms which do not support PIC, -DPIC is meaningless:
14471 *djgpp*)
14472 lt_prog_compiler_pic=
14473 ;;
14474 *)
14475 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14476 ;;
14477esac
John Criswell7a73b802003-06-30 21:59:07 +000014478
Reid Spencera773bd52006-08-04 18:18:08 +000014479#
14480# Check to make sure the static flag actually works.
14481#
14482wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14483{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14484echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14485if test "${lt_prog_compiler_static_works+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487else
14488 lt_prog_compiler_static_works=no
14489 save_LDFLAGS="$LDFLAGS"
14490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14491 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14493 # The linker can only warn and ignore the option if not recognized
14494 # So say no if there are warnings
14495 if test -s conftest.err; then
14496 # Append any errors to the config.log.
14497 cat conftest.err 1>&5
14498 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14500 if diff conftest.exp conftest.er2 >/dev/null; then
14501 lt_prog_compiler_static_works=yes
14502 fi
14503 else
14504 lt_prog_compiler_static_works=yes
14505 fi
14506 fi
14507 $rm conftest*
14508 LDFLAGS="$save_LDFLAGS"
14509
14510fi
14511{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14512echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14513
14514if test x"$lt_prog_compiler_static_works" = xyes; then
14515 :
14516else
14517 lt_prog_compiler_static=
14518fi
14519
14520
14521{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14522echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014523if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
John Criswell47fdd832003-07-14 16:52:07 +000014526 lt_cv_prog_compiler_c_o=no
14527 $rm -r conftest 2>/dev/null
14528 mkdir conftest
14529 cd conftest
14530 mkdir out
14531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014532
John Criswell47fdd832003-07-14 16:52:07 +000014533 lt_compiler_flag="-o out/conftest2.$ac_objext"
14534 # Insert the option either (1) after the last *FLAGS variable, or
14535 # (2) before a word containing "conftest.", or (3) at the end.
14536 # Note that $ac_compile itself does not contain backslashes and begins
14537 # with a dollar sign (not a hyphen), so the echo should work correctly.
14538 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14541 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000014542 (eval echo "\"\$as_me:14542: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014543 (eval "$lt_compile" 2>out/conftest.err)
14544 ac_status=$?
14545 cat out/conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000014546 echo "$as_me:14546: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14548 then
14549 # The compiler can only warn and ignore the option if not recognized
14550 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014551 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014554 lt_cv_prog_compiler_c_o=yes
14555 fi
14556 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014557 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014558 $rm conftest*
14559 # SGI C++ compiler will create directory out/ii_files/ for
14560 # template instantiation
14561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14562 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014563 cd ..
14564 rmdir conftest
14565 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014566
14567fi
Reid Spencera773bd52006-08-04 18:18:08 +000014568{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14569echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014570
John Criswell7a73b802003-06-30 21:59:07 +000014571
John Criswell7a73b802003-06-30 21:59:07 +000014572hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014573if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014574 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014575 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14576echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014577 hard_links=yes
14578 $rm conftest*
14579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14580 touch conftest.a
14581 ln conftest.a conftest.b 2>&5 || hard_links=no
14582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014583 { echo "$as_me:$LINENO: result: $hard_links" >&5
14584echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014585 if test "$hard_links" = no; then
14586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14587echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14588 need_locks=warn
14589 fi
14590else
14591 need_locks=no
14592fi
John Criswell7a73b802003-06-30 21:59:07 +000014593
Reid Spencera773bd52006-08-04 18:18:08 +000014594{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14595echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014596
14597 runpath_var=
14598 allow_undefined_flag=
14599 enable_shared_with_static_runtimes=no
14600 archive_cmds=
14601 archive_expsym_cmds=
14602 old_archive_From_new_cmds=
14603 old_archive_from_expsyms_cmds=
14604 export_dynamic_flag_spec=
14605 whole_archive_flag_spec=
14606 thread_safe_flag_spec=
14607 hardcode_libdir_flag_spec=
14608 hardcode_libdir_flag_spec_ld=
14609 hardcode_libdir_separator=
14610 hardcode_direct=no
14611 hardcode_minus_L=no
14612 hardcode_shlibpath_var=unsupported
14613 link_all_deplibs=unknown
14614 hardcode_automatic=no
14615 module_cmds=
14616 module_expsym_cmds=
14617 always_export_symbols=no
14618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14619 # include_expsyms should be a list of space-separated symbols to be *always*
14620 # included in the symbol list
14621 include_expsyms=
14622 # exclude_expsyms can be an extended regexp of symbols to exclude
14623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14625 # as well as any symbol that contains `d'.
14626 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14628 # platforms (ab)use it in PIC code, but their linkers get confused if
14629 # the symbol is explicitly referenced. Since portable code cannot
14630 # rely on this symbol name, it's probably fine to never include it in
14631 # preloaded symbol tables.
14632 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014633 # Just being paranoid about ensuring that cc_basename is set.
14634 for cc_temp in $compiler""; do
14635 case $cc_temp in
14636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14638 \-*) ;;
14639 *) break;;
14640 esac
14641done
14642cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014643
14644 case $host_os in
14645 cygwin* | mingw* | pw32*)
14646 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14647 # When not using gcc, we currently assume that we are using
14648 # Microsoft Visual C++.
14649 if test "$GCC" != yes; then
14650 with_gnu_ld=no
14651 fi
14652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014653 interix*)
14654 # we just hope/assume this is gcc and not c89 (= MSVC++)
14655 with_gnu_ld=yes
14656 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014657 openbsd*)
14658 with_gnu_ld=no
14659 ;;
14660 esac
14661
14662 ld_shlibs=yes
14663 if test "$with_gnu_ld" = yes; then
14664 # If archive_cmds runs LD, not CC, wlarc should be empty
14665 wlarc='${wl}'
14666
Reid Spencera773bd52006-08-04 18:18:08 +000014667 # Set some defaults for GNU ld with shared library support. These
14668 # are reset later if shared libraries are not supported. Putting them
14669 # here allows them to be overridden if necessary.
14670 runpath_var=LD_RUN_PATH
14671 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14672 export_dynamic_flag_spec='${wl}--export-dynamic'
14673 # ancient GNU ld didn't support --whole-archive et. al.
14674 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14675 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14676 else
14677 whole_archive_flag_spec=
14678 fi
14679 supports_anon_versioning=no
14680 case `$LD -v 2>/dev/null` in
14681 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14684 *\ 2.11.*) ;; # other 2.11 versions
14685 *) supports_anon_versioning=yes ;;
14686 esac
14687
John Criswell47fdd832003-07-14 16:52:07 +000014688 # See if GNU ld supports shared libraries.
14689 case $host_os in
14690 aix3* | aix4* | aix5*)
14691 # On AIX/PPC, the GNU linker is very broken
14692 if test "$host_cpu" != ia64; then
14693 ld_shlibs=no
14694 cat <<EOF 1>&2
14695
14696*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14697*** to be unable to reliably create shared libraries on AIX.
14698*** Therefore, libtool is disabling shared libraries support. If you
14699*** really care for shared libraries, you may want to modify your PATH
14700*** so that a non-GNU linker is found, and then restart.
14701
14702EOF
14703 fi
14704 ;;
14705
14706 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014707 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 +000014708 hardcode_libdir_flag_spec='-L$libdir'
14709 hardcode_minus_L=yes
14710
14711 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14712 # that the semantics of dynamic libraries on AmigaOS, at least up
14713 # to version 4, is to share data among multiple programs linked
14714 # with the same dynamic library. Since this doesn't match the
14715 # behavior of shared libraries on other platforms, we can't use
14716 # them.
14717 ld_shlibs=no
14718 ;;
14719
14720 beos*)
14721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14722 allow_undefined_flag=unsupported
14723 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14724 # support --undefined. This deserves some investigation. FIXME
14725 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14726 else
14727 ld_shlibs=no
14728 fi
14729 ;;
14730
14731 cygwin* | mingw* | pw32*)
14732 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14733 # as there is no search path for DLLs.
14734 hardcode_libdir_flag_spec='-L$libdir'
14735 allow_undefined_flag=unsupported
14736 always_export_symbols=no
14737 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014738 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 +000014739
14740 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014741 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 +000014742 # If the export-symbols file already is a .def file (1st line
14743 # is EXPORTS), use it as is; otherwise, prepend...
14744 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14745 cp $export_symbols $output_objdir/$soname.def;
14746 else
14747 echo EXPORTS > $output_objdir/$soname.def;
14748 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014749 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014750 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14751 else
14752 ld_shlibs=no
14753 fi
14754 ;;
14755
14756 interix3*)
14757 hardcode_direct=no
14758 hardcode_shlibpath_var=no
14759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14760 export_dynamic_flag_spec='${wl}-E'
14761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14762 # Instead, shared libraries are loaded at an image base (0x10000000 by
14763 # default) and relocated if they conflict, which is a slow very memory
14764 # consuming and fragmenting process. To avoid this, we pick a random,
14765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14766 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14768 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'
14769 ;;
14770
14771 linux*)
14772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14773 tmp_addflag=
14774 case $cc_basename,$host_cpu in
14775 pgcc*) # Portland Group C compiler
14776 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'
14777 tmp_addflag=' $pic_flag'
14778 ;;
14779 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14780 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'
14781 tmp_addflag=' $pic_flag -Mnomain' ;;
14782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14783 tmp_addflag=' -i_dynamic' ;;
14784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14785 tmp_addflag=' -i_dynamic -nofor_main' ;;
14786 ifc* | ifort*) # Intel Fortran compiler
14787 tmp_addflag=' -nofor_main' ;;
14788 esac
14789 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790
14791 if test $supports_anon_versioning = yes; then
14792 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14794 $echo "local: *; };" >> $output_objdir/$libname.ver~
14795 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14796 fi
John Criswell47fdd832003-07-14 16:52:07 +000014797 else
14798 ld_shlibs=no
14799 fi
14800 ;;
14801
14802 netbsd*)
14803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14804 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14805 wlarc=
14806 else
14807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14809 fi
14810 ;;
14811
Reid Spencera773bd52006-08-04 18:18:08 +000014812 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014813 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14814 ld_shlibs=no
14815 cat <<EOF 1>&2
14816
14817*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14818*** create shared libraries on Solaris systems. Therefore, libtool
14819*** is disabling shared libraries support. We urge you to upgrade GNU
14820*** binutils to release 2.9.1 or newer. Another option is to modify
14821*** your PATH or compiler configuration so that the native linker is
14822*** used, and then restart.
14823
14824EOF
14825 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14828 else
14829 ld_shlibs=no
14830 fi
14831 ;;
14832
Reid Spencera773bd52006-08-04 18:18:08 +000014833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14834 case `$LD -v 2>&1` in
14835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14836 ld_shlibs=no
14837 cat <<_LT_EOF 1>&2
14838
14839*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14840*** reliably create shared libraries on SCO systems. Therefore, libtool
14841*** is disabling shared libraries support. We urge you to upgrade GNU
14842*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14843*** your PATH or compiler configuration so that the native linker is
14844*** used, and then restart.
14845
14846_LT_EOF
14847 ;;
14848 *)
14849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14850 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14853 else
14854 ld_shlibs=no
14855 fi
14856 ;;
14857 esac
14858 ;;
14859
John Criswell47fdd832003-07-14 16:52:07 +000014860 sunos4*)
14861 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14862 wlarc=
14863 hardcode_direct=yes
14864 hardcode_shlibpath_var=no
14865 ;;
14866
14867 *)
14868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14871 else
14872 ld_shlibs=no
14873 fi
14874 ;;
14875 esac
14876
Reid Spencera773bd52006-08-04 18:18:08 +000014877 if test "$ld_shlibs" = no; then
14878 runpath_var=
14879 hardcode_libdir_flag_spec=
14880 export_dynamic_flag_spec=
14881 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014882 fi
14883 else
14884 # PORTME fill in a description of your system's linker (not GNU ld)
14885 case $host_os in
14886 aix3*)
14887 allow_undefined_flag=unsupported
14888 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014889 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 +000014890 # Note: this linker hardcodes the directories in LIBPATH if there
14891 # are no directories specified by -L.
14892 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014893 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014894 # Neither direct hardcoding nor static linking is supported with a
14895 # broken collect2.
14896 hardcode_direct=unsupported
14897 fi
14898 ;;
14899
14900 aix4* | aix5*)
14901 if test "$host_cpu" = ia64; then
14902 # On IA64, the linker does run time linking by default, so we don't
14903 # have to do anything special.
14904 aix_use_runtimelinking=no
14905 exp_sym_flag='-Bexport'
14906 no_entry_flag=""
14907 else
14908 # If we're using GNU nm, then we don't want the "-C" option.
14909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14911 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'
14912 else
14913 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'
14914 fi
14915 aix_use_runtimelinking=no
14916
14917 # Test if we are trying to use run time linking or normal
14918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14919 # need to do runtime linking.
14920 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14921 for ld_flag in $LDFLAGS; do
14922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14923 aix_use_runtimelinking=yes
14924 break
14925 fi
14926 done
Reid Spencera773bd52006-08-04 18:18:08 +000014927 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014928 esac
14929
14930 exp_sym_flag='-bexport'
14931 no_entry_flag='-bnoentry'
14932 fi
14933
14934 # When large executables or shared objects are built, AIX ld can
14935 # have problems creating the table of contents. If linking a library
14936 # or program results in "error TOC overflow" add -mminimal-toc to
14937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14939
14940 archive_cmds=''
14941 hardcode_direct=yes
14942 hardcode_libdir_separator=':'
14943 link_all_deplibs=yes
14944
14945 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014946 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014947 # We only want to do this on AIX 4.2 and lower, the check
14948 # below for broken collect2 doesn't work under 4.3+
14949 collect2name=`${CC} -print-prog-name=collect2`
14950 if test -f "$collect2name" && \
14951 strings "$collect2name" | grep resolve_lib_name >/dev/null
14952 then
14953 # We have reworked collect2
14954 hardcode_direct=yes
14955 else
14956 # We have old collect2
14957 hardcode_direct=unsupported
14958 # It fails to find uninstalled libraries when the uninstalled
14959 # path is not listed in the libpath. Setting hardcode_minus_L
14960 # to unsupported forces relinking
14961 hardcode_minus_L=yes
14962 hardcode_libdir_flag_spec='-L$libdir'
14963 hardcode_libdir_separator=
14964 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014965 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014966 esac
14967 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014968 if test "$aix_use_runtimelinking" = yes; then
14969 shared_flag="$shared_flag "'${wl}-G'
14970 fi
John Criswell47fdd832003-07-14 16:52:07 +000014971 else
14972 # not using gcc
14973 if test "$host_cpu" = ia64; then
14974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14975 # chokes on -Wl,-G. The following line is correct:
14976 shared_flag='-G'
14977 else
Reid Spencera773bd52006-08-04 18:18:08 +000014978 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014979 shared_flag='${wl}-G'
14980 else
14981 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014982 fi
John Criswell47fdd832003-07-14 16:52:07 +000014983 fi
14984 fi
14985
14986 # It seems that -bexpall does not export symbols beginning with
14987 # underscore (_), so it is better to generate a list of symbols to export.
14988 always_export_symbols=yes
14989 if test "$aix_use_runtimelinking" = yes; then
14990 # Warning - without using the other runtime loading flags (-brtl),
14991 # -berok will link without error, but may produce a broken library.
14992 allow_undefined_flag='-berok'
14993 # Determine the default libpath from the value encoded in an empty executable.
14994 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014995/* confdefs.h. */
14996_ACEOF
14997cat confdefs.h >>conftest.$ac_ext
14998cat >>conftest.$ac_ext <<_ACEOF
14999/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015000
John Criswell7a73b802003-06-30 21:59:07 +000015001int
15002main ()
15003{
John Criswell47fdd832003-07-14 16:52:07 +000015004
John Criswell7a73b802003-06-30 21:59:07 +000015005 ;
15006 return 0;
15007}
15008_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015009rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015010if { (ac_try="$ac_link"
15011case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15014esac
15015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015017 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15027esac
15028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015034 { (case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037esac
15038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015043
John Criswell47fdd832003-07-14 16:52:07 +000015044aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15045}'`
15046# Check for a 64-bit object if we didn't find anything.
15047if 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; }
15048}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015049else
15050 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015051sed 's/^/| /' conftest.$ac_ext >&5
15052
Reid Spencera773bd52006-08-04 18:18:08 +000015053
John Criswell7a73b802003-06-30 21:59:07 +000015054fi
Reid Spencera773bd52006-08-04 18:18:08 +000015055
15056rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015057 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015058if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015059
John Criswell47fdd832003-07-14 16:52:07 +000015060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015061 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 +000015062 else
15063 if test "$host_cpu" = ia64; then
15064 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15065 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015066 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 +000015067 else
15068 # Determine the default libpath from the value encoded in an empty executable.
15069 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015070/* confdefs.h. */
15071_ACEOF
15072cat confdefs.h >>conftest.$ac_ext
15073cat >>conftest.$ac_ext <<_ACEOF
15074/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015075
John Criswell47fdd832003-07-14 16:52:07 +000015076int
15077main ()
15078{
John Criswell7a73b802003-06-30 21:59:07 +000015079
John Criswell47fdd832003-07-14 16:52:07 +000015080 ;
15081 return 0;
15082}
15083_ACEOF
15084rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015085if { (ac_try="$ac_link"
15086case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089esac
15090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015092 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15099 { (case "(($ac_try" in
15100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15102esac
15103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15104 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015109 { (case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15112esac
15113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015118
John Criswell47fdd832003-07-14 16:52:07 +000015119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15120}'`
15121# Check for a 64-bit object if we didn't find anything.
15122if 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; }
15123}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015124else
John Criswell47fdd832003-07-14 16:52:07 +000015125 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015126sed 's/^/| /' conftest.$ac_ext >&5
15127
Reid Spencera773bd52006-08-04 18:18:08 +000015128
John Criswell47fdd832003-07-14 16:52:07 +000015129fi
Reid Spencera773bd52006-08-04 18:18:08 +000015130
15131rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015132 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015133if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015134
John Criswell47fdd832003-07-14 16:52:07 +000015135 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15136 # Warning - without using the other run time loading flags,
15137 # -berok will link without error, but may produce a broken library.
15138 no_undefined_flag=' ${wl}-bernotok'
15139 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015140 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015141 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015142 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015143 # This is similar to how AIX traditionally builds its shared libraries.
15144 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 +000015145 fi
15146 fi
John Criswell7a73b802003-06-30 21:59:07 +000015147 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015148
15149 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015150 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 +000015151 hardcode_libdir_flag_spec='-L$libdir'
15152 hardcode_minus_L=yes
15153 # see comment about different semantics on the GNU ld section
15154 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015155 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015156
Reid Spencer2706f8c2004-09-19 23:53:36 +000015157 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015158 export_dynamic_flag_spec=-rdynamic
15159 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015160
John Criswell47fdd832003-07-14 16:52:07 +000015161 cygwin* | mingw* | pw32*)
15162 # When not using gcc, we currently assume that we are using
15163 # Microsoft Visual C++.
15164 # hardcode_libdir_flag_spec is actually meaningless, as there is
15165 # no search path for DLLs.
15166 hardcode_libdir_flag_spec=' '
15167 allow_undefined_flag=unsupported
15168 # Tell ltmain to make .lib files, not .a files.
15169 libext=lib
15170 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015171 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015172 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015173 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015174 # The linker will automatically build a .lib file if we build a DLL.
15175 old_archive_From_new_cmds='true'
15176 # FIXME: Should let the user specify the lib program.
15177 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15178 fix_srcfile_path='`cygpath -w "$srcfile"`'
15179 enable_shared_with_static_runtimes=yes
15180 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015181
John Criswell47fdd832003-07-14 16:52:07 +000015182 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015183 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015184 rhapsody* | darwin1.[012])
15185 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15186 ;;
15187 *) # Darwin 1.3 on
15188 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15189 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15190 else
15191 case ${MACOSX_DEPLOYMENT_TARGET} in
15192 10.[012])
15193 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15194 ;;
15195 10.*)
15196 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15197 ;;
15198 esac
15199 fi
15200 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015201 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015202 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015203 hardcode_direct=no
15204 hardcode_automatic=yes
15205 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015206 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015207 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015208 if test "$GCC" = yes ; then
15209 output_verbose_link_cmd='echo'
15210 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15211 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015212 # 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 +000015213 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}'
15214 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 +000015215 else
Reid Spencera773bd52006-08-04 18:18:08 +000015216 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015217 xlc*)
15218 output_verbose_link_cmd='echo'
15219 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15220 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015221 # 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 +000015222 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}'
15223 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 +000015224 ;;
15225 *)
15226 ld_shlibs=no
15227 ;;
15228 esac
John Criswell7a73b802003-06-30 21:59:07 +000015229 fi
John Criswell47fdd832003-07-14 16:52:07 +000015230 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015231
John Criswell47fdd832003-07-14 16:52:07 +000015232 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015234 hardcode_libdir_flag_spec='-L$libdir'
15235 hardcode_shlibpath_var=no
15236 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015237
John Criswell47fdd832003-07-14 16:52:07 +000015238 freebsd1*)
15239 ld_shlibs=no
15240 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015241
John Criswell47fdd832003-07-14 16:52:07 +000015242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15243 # support. Future versions do this automatically, but an explicit c++rt0.o
15244 # does not break anything, and helps significantly (at the cost of a little
15245 # extra space).
15246 freebsd2.2*)
15247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15248 hardcode_libdir_flag_spec='-R$libdir'
15249 hardcode_direct=yes
15250 hardcode_shlibpath_var=no
15251 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015252
John Criswell47fdd832003-07-14 16:52:07 +000015253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15254 freebsd2*)
15255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15256 hardcode_direct=yes
15257 hardcode_minus_L=yes
15258 hardcode_shlibpath_var=no
15259 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015260
John Criswell47fdd832003-07-14 16:52:07 +000015261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015262 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015263 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15264 hardcode_libdir_flag_spec='-R$libdir'
15265 hardcode_direct=yes
15266 hardcode_shlibpath_var=no
15267 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015268
John Criswell47fdd832003-07-14 16:52:07 +000015269 hpux9*)
15270 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015271 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 +000015272 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015273 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 +000015274 fi
15275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15276 hardcode_libdir_separator=:
15277 hardcode_direct=yes
15278
15279 # hardcode_minus_L: Not really in the search PATH,
15280 # but as the default location of the library.
15281 hardcode_minus_L=yes
15282 export_dynamic_flag_spec='${wl}-E'
15283 ;;
15284
Reid Spencera773bd52006-08-04 18:18:08 +000015285 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015286 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015287 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15288 else
15289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15290 fi
15291 if test "$with_gnu_ld" = no; then
15292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15293 hardcode_libdir_separator=:
15294
15295 hardcode_direct=yes
15296 export_dynamic_flag_spec='${wl}-E'
15297
15298 # hardcode_minus_L: Not really in the search PATH,
15299 # but as the default location of the library.
15300 hardcode_minus_L=yes
15301 fi
15302 ;;
15303
15304 hpux11*)
15305 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15306 case $host_cpu in
15307 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015308 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15309 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015310 ia64*)
15311 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15312 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015313 *)
15314 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15315 ;;
15316 esac
15317 else
Reid Spencera773bd52006-08-04 18:18:08 +000015318 case $host_cpu in
15319 hppa*64*)
15320 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15321 ;;
15322 ia64*)
15323 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015324 ;;
15325 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015326 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 +000015327 ;;
15328 esac
15329 fi
15330 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15332 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015333
Reid Spencera773bd52006-08-04 18:18:08 +000015334 case $host_cpu in
15335 hppa*64*|ia64*)
15336 hardcode_libdir_flag_spec_ld='+b $libdir'
15337 hardcode_direct=no
15338 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015339 ;;
15340 *)
John Criswell47fdd832003-07-14 16:52:07 +000015341 hardcode_direct=yes
15342 export_dynamic_flag_spec='${wl}-E'
15343
15344 # hardcode_minus_L: Not really in the search PATH,
15345 # but as the default location of the library.
15346 hardcode_minus_L=yes
15347 ;;
15348 esac
15349 fi
15350 ;;
15351
15352 irix5* | irix6* | nonstopux*)
15353 if test "$GCC" = yes; then
15354 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'
15355 else
15356 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'
15357 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15358 fi
15359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15360 hardcode_libdir_separator=:
15361 link_all_deplibs=yes
15362 ;;
15363
15364 netbsd*)
15365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15367 else
15368 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15369 fi
15370 hardcode_libdir_flag_spec='-R$libdir'
15371 hardcode_direct=yes
15372 hardcode_shlibpath_var=no
15373 ;;
15374
15375 newsos6)
15376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15377 hardcode_direct=yes
15378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15379 hardcode_libdir_separator=:
15380 hardcode_shlibpath_var=no
15381 ;;
15382
15383 openbsd*)
15384 hardcode_direct=yes
15385 hardcode_shlibpath_var=no
15386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015388 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 +000015389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15390 export_dynamic_flag_spec='${wl}-E'
15391 else
15392 case $host_os in
15393 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15395 hardcode_libdir_flag_spec='-R$libdir'
15396 ;;
15397 *)
15398 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15400 ;;
15401 esac
15402 fi
15403 ;;
15404
15405 os2*)
15406 hardcode_libdir_flag_spec='-L$libdir'
15407 hardcode_minus_L=yes
15408 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015409 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 +000015410 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15411 ;;
15412
15413 osf3*)
15414 if test "$GCC" = yes; then
15415 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15416 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'
15417 else
15418 allow_undefined_flag=' -expect_unresolved \*'
15419 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'
15420 fi
15421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15422 hardcode_libdir_separator=:
15423 ;;
15424
15425 osf4* | osf5*) # as osf3* with the addition of -msym flag
15426 if test "$GCC" = yes; then
15427 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15428 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'
15429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15430 else
15431 allow_undefined_flag=' -expect_unresolved \*'
15432 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 +000015433 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 +000015434 $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 +000015435
John Criswell47fdd832003-07-14 16:52:07 +000015436 # Both c and cxx compiler support -rpath directly
15437 hardcode_libdir_flag_spec='-rpath $libdir'
15438 fi
15439 hardcode_libdir_separator=:
15440 ;;
15441
John Criswell47fdd832003-07-14 16:52:07 +000015442 solaris*)
15443 no_undefined_flag=' -z text'
15444 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015445 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015446 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015447 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15448 $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 +000015449 else
Reid Spencera773bd52006-08-04 18:18:08 +000015450 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015451 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015452 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15453 $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 +000015454 fi
15455 hardcode_libdir_flag_spec='-R$libdir'
15456 hardcode_shlibpath_var=no
15457 case $host_os in
15458 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015459 *)
15460 # The compiler driver will combine linker options so we
15461 # cannot just pass the convience library names through
15462 # without $wl, iff we do not link with $LD.
15463 # Luckily, gcc supports the same syntax we need for Sun Studio.
15464 # Supported since Solaris 2.6 (maybe 2.5.1?)
15465 case $wlarc in
15466 '')
15467 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15468 *)
15469 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' ;;
15470 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015471 esac
15472 link_all_deplibs=yes
15473 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015474
John Criswell47fdd832003-07-14 16:52:07 +000015475 sunos4*)
15476 if test "x$host_vendor" = xsequent; then
15477 # Use $CC to link under sequent, because it throws in some extra .o
15478 # files that make .init and .fini sections work.
15479 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15480 else
15481 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15482 fi
15483 hardcode_libdir_flag_spec='-L$libdir'
15484 hardcode_direct=yes
15485 hardcode_minus_L=yes
15486 hardcode_shlibpath_var=no
15487 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015488
John Criswell47fdd832003-07-14 16:52:07 +000015489 sysv4)
15490 case $host_vendor in
15491 sni)
15492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493 hardcode_direct=yes # is this really true???
15494 ;;
15495 siemens)
15496 ## LD is ld it makes a PLAMLIB
15497 ## CC just makes a GrossModule.
15498 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15499 reload_cmds='$CC -r -o $output$reload_objs'
15500 hardcode_direct=no
15501 ;;
15502 motorola)
15503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15505 ;;
15506 esac
15507 runpath_var='LD_RUN_PATH'
15508 hardcode_shlibpath_var=no
15509 ;;
15510
15511 sysv4.3*)
15512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_shlibpath_var=no
15514 export_dynamic_flag_spec='-Bexport'
15515 ;;
15516
15517 sysv4*MP*)
15518 if test -d /usr/nec; then
15519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15520 hardcode_shlibpath_var=no
15521 runpath_var=LD_RUN_PATH
15522 hardcode_runpath_var=yes
15523 ld_shlibs=yes
15524 fi
15525 ;;
15526
Reid Spencera773bd52006-08-04 18:18:08 +000015527 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15528 no_undefined_flag='${wl}-z,text'
15529 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015530 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015531 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015532
John Criswell47fdd832003-07-14 16:52:07 +000015533 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15535 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 +000015536 else
Reid Spencera773bd52006-08-04 18:18:08 +000015537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15538 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 +000015539 fi
John Criswell47fdd832003-07-14 16:52:07 +000015540 ;;
15541
Reid Spencera773bd52006-08-04 18:18:08 +000015542 sysv5* | sco3.2v5* | sco5v6*)
15543 # Note: We can NOT use -z defs as we might desire, because we do not
15544 # link with -lc, and that would cause any symbols used from libc to
15545 # always be unresolved, which means just about no library would
15546 # ever link correctly. If we're not using GNU ld we use -z text
15547 # though, which does catch some bad symbols but isn't as heavy-handed
15548 # as -z defs.
15549 no_undefined_flag='${wl}-z,text'
15550 allow_undefined_flag='${wl}-z,nodefs'
15551 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015552 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015553 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15554 hardcode_libdir_separator=':'
15555 link_all_deplibs=yes
15556 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015557 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015558
15559 if test "$GCC" = yes; then
15560 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 else
15563 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15565 fi
John Criswell47fdd832003-07-14 16:52:07 +000015566 ;;
15567
15568 uts4*)
15569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_libdir_flag_spec='-L$libdir'
15571 hardcode_shlibpath_var=no
15572 ;;
15573
15574 *)
15575 ld_shlibs=no
15576 ;;
15577 esac
15578 fi
15579
Reid Spencera773bd52006-08-04 18:18:08 +000015580{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15581echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015582test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015583
John Criswell47fdd832003-07-14 16:52:07 +000015584#
15585# Do we need to explicitly link libc?
15586#
15587case "x$archive_cmds_need_lc" in
15588x|xyes)
15589 # Assume -lc should be added
15590 archive_cmds_need_lc=yes
15591
15592 if test "$enable_shared" = yes && test "$GCC" = yes; then
15593 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015594 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015595 # FIXME: we may have to deal with multi-command sequences.
15596 ;;
15597 '$CC '*)
15598 # Test whether the compiler implicitly links with -lc since on some
15599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15600 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015601 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15602echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015603 $rm conftest*
15604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15605
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } 2>conftest.err; then
15611 soname=conftest
15612 lib=conftest
15613 libobjs=conftest.$ac_objext
15614 deplibs=
15615 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015616 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015617 compiler_flags=-v
15618 linker_flags=-v
15619 verstring=
15620 output_objdir=.
15621 libname=conftest
15622 lt_save_allow_undefined_flag=$allow_undefined_flag
15623 allow_undefined_flag=
15624 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15625 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }
15629 then
15630 archive_cmds_need_lc=no
15631 else
15632 archive_cmds_need_lc=yes
15633 fi
15634 allow_undefined_flag=$lt_save_allow_undefined_flag
15635 else
15636 cat conftest.err 1>&5
15637 fi
15638 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015639 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15640echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015641 ;;
15642 esac
15643 fi
15644 ;;
15645esac
15646
Reid Spencera773bd52006-08-04 18:18:08 +000015647{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15648echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015649library_names_spec=
15650libname_spec='lib$name'
15651soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015652shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015653postinstall_cmds=
15654postuninstall_cmds=
15655finish_cmds=
15656finish_eval=
15657shlibpath_var=
15658shlibpath_overrides_runpath=unknown
15659version_type=none
15660dynamic_linker="$host_os ld.so"
15661sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015662if test "$GCC" = yes; then
15663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15664 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15665 # if the path contains ";" then we assume it to be the separator
15666 # otherwise default to the standard path separator (i.e. ":") - it is
15667 # assumed that no part of a normal pathname contains ";" but that should
15668 # okay in the real world where ";" in dirpaths is itself problematic.
15669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15670 else
15671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15672 fi
15673else
15674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15675fi
15676need_lib_prefix=unknown
15677hardcode_into_libs=no
15678
15679# when you set need_version to no, make sure it does not cause -set_version
15680# flags to be left without arguments
15681need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015682
15683case $host_os in
15684aix3*)
15685 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015687 shlibpath_var=LIBPATH
15688
John Criswell47fdd832003-07-14 16:52:07 +000015689 # AIX 3 has no versioning support, so we append a major version to the name.
15690 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015691 ;;
15692
15693aix4* | aix5*)
15694 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015695 need_lib_prefix=no
15696 need_version=no
15697 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015698 if test "$host_cpu" = ia64; then
15699 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015701 shlibpath_var=LD_LIBRARY_PATH
15702 else
15703 # With GCC up to 2.95.x, collect2 would create an import file
15704 # for dependence libraries. The import file would start with
15705 # the line `#! .'. This would cause the generated library to
15706 # depend on `.', always an invalid library. This was fixed in
15707 # development snapshots of GCC prior to 3.0.
15708 case $host_os in
15709 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15711 echo ' yes '
15712 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15713 :
15714 else
15715 can_build_shared=no
15716 fi
15717 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015718 esac
John Criswell47fdd832003-07-14 16:52:07 +000015719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15720 # soname into executable. Probably we can add versioning support to
15721 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015722 if test "$aix_use_runtimelinking" = yes; then
15723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15724 # instead of lib<name>.a to let people know that these are not
15725 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015727 else
15728 # We preserve .a as extension for shared libraries through AIX4.2
15729 # and later when we are not doing run time linking.
15730 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015731 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015732 fi
15733 shlibpath_var=LIBPATH
15734 fi
15735 ;;
15736
15737amigaos*)
15738 library_names_spec='$libname.ixlibrary $libname.a'
15739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015740 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 +000015741 ;;
15742
15743beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015744 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015745 dynamic_linker="$host_os ld.so"
15746 shlibpath_var=LIBRARY_PATH
15747 ;;
15748
Reid Spencer2706f8c2004-09-19 23:53:36 +000015749bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015750 version_type=linux
15751 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015758 # the default ld.so.conf also contains /usr/contrib/lib and
15759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15760 # libtool to hard-code these into programs
15761 ;;
15762
15763cygwin* | mingw* | pw32*)
15764 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015765 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015766 need_version=no
15767 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015768
John Criswell7a73b802003-06-30 21:59:07 +000015769 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015770 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015771 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015773 postinstall_cmds='base_file=`basename \${file}`~
15774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15775 dldir=$destdir/`dirname \$dlpath`~
15776 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015777 $install_prog $dir/$dlname \$dldir/$dlname~
15778 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015781 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015782 shlibpath_overrides_runpath=yes
15783
15784 case $host_os in
15785 cygwin*)
15786 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15787 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 +000015788 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015789 ;;
15790 mingw*)
15791 # MinGW DLLs use traditional 'lib' prefix
15792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15794 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15795 # It is most probably a Windows format PATH printed by
15796 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15797 # path with ; separators, and with drive letters. We can handle the
15798 # drive letters (cygwin fileutils understands them), so leave them,
15799 # especially as we might pass files found there to a mingw objdump,
15800 # which wouldn't understand a cygwinified path. Ahh.
15801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15802 else
15803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15804 fi
15805 ;;
15806 pw32*)
15807 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015808 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 +000015809 ;;
15810 esac
John Criswell7a73b802003-06-30 21:59:07 +000015811 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015812
John Criswell7a73b802003-06-30 21:59:07 +000015813 *)
John Criswell47fdd832003-07-14 16:52:07 +000015814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015815 ;;
15816 esac
15817 dynamic_linker='Win32 ld.exe'
15818 # FIXME: first we should search . and the directory the executable is in
15819 shlibpath_var=PATH
15820 ;;
15821
15822darwin* | rhapsody*)
15823 dynamic_linker="$host_os dyld"
15824 version_type=darwin
15825 need_lib_prefix=no
15826 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015827 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015828 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015829 shlibpath_overrides_runpath=yes
15830 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015832 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015833 if test "$GCC" = yes; then
15834 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"`
15835 else
15836 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015837 fi
15838 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15839 ;;
15840
15841dgux*)
15842 version_type=linux
15843 need_lib_prefix=no
15844 need_version=no
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15846 soname_spec='${libname}${release}${shared_ext}$major'
15847 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015848 ;;
15849
15850freebsd1*)
15851 dynamic_linker=no
15852 ;;
15853
Reid Spencer2706f8c2004-09-19 23:53:36 +000015854kfreebsd*-gnu)
15855 version_type=linux
15856 need_lib_prefix=no
15857 need_version=no
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15859 soname_spec='${libname}${release}${shared_ext}$major'
15860 shlibpath_var=LD_LIBRARY_PATH
15861 shlibpath_overrides_runpath=no
15862 hardcode_into_libs=yes
15863 dynamic_linker='GNU ld.so'
15864 ;;
15865
Reid Spencera773bd52006-08-04 18:18:08 +000015866freebsd* | dragonfly*)
15867 # DragonFly does not have aout. When/if they implement a new
15868 # versioning mechanism, adjust this.
15869 if test -x /usr/bin/objformat; then
15870 objformat=`/usr/bin/objformat`
15871 else
15872 case $host_os in
15873 freebsd[123]*) objformat=aout ;;
15874 *) objformat=elf ;;
15875 esac
15876 fi
John Criswell7a73b802003-06-30 21:59:07 +000015877 version_type=freebsd-$objformat
15878 case $version_type in
15879 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015881 need_version=no
15882 need_lib_prefix=no
15883 ;;
15884 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015886 need_version=yes
15887 ;;
15888 esac
15889 shlibpath_var=LD_LIBRARY_PATH
15890 case $host_os in
15891 freebsd2*)
15892 shlibpath_overrides_runpath=yes
15893 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015894 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015895 shlibpath_overrides_runpath=yes
15896 hardcode_into_libs=yes
15897 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015898 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15899 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015900 shlibpath_overrides_runpath=no
15901 hardcode_into_libs=yes
15902 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015903 freebsd*) # from 4.6 on
15904 shlibpath_overrides_runpath=yes
15905 hardcode_into_libs=yes
15906 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015907 esac
15908 ;;
15909
15910gnu*)
15911 version_type=linux
15912 need_lib_prefix=no
15913 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15915 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015916 shlibpath_var=LD_LIBRARY_PATH
15917 hardcode_into_libs=yes
15918 ;;
15919
15920hpux9* | hpux10* | hpux11*)
15921 # Give a soname corresponding to the major version so that dld.sl refuses to
15922 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015923 version_type=sunos
15924 need_lib_prefix=no
15925 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015926 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015927 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015928 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015929 hardcode_into_libs=yes
15930 dynamic_linker="$host_os dld.so"
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934 soname_spec='${libname}${release}${shared_ext}$major'
15935 if test "X$HPUX_IA64_MODE" = X32; then
15936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15937 else
15938 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15939 fi
15940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15941 ;;
15942 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015943 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015944 hardcode_into_libs=yes
15945 dynamic_linker="$host_os dld.sl"
15946 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
15950 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15952 ;;
15953 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015954 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015955 dynamic_linker="$host_os dld.sl"
15956 shlibpath_var=SHLIB_PATH
15957 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15959 soname_spec='${libname}${release}${shared_ext}$major'
15960 ;;
15961 esac
John Criswell7a73b802003-06-30 21:59:07 +000015962 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15963 postinstall_cmds='chmod 555 $lib'
15964 ;;
15965
Reid Spencera773bd52006-08-04 18:18:08 +000015966interix3*)
15967 version_type=linux
15968 need_lib_prefix=no
15969 need_version=no
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15973 shlibpath_var=LD_LIBRARY_PATH
15974 shlibpath_overrides_runpath=no
15975 hardcode_into_libs=yes
15976 ;;
15977
John Criswell47fdd832003-07-14 16:52:07 +000015978irix5* | irix6* | nonstopux*)
15979 case $host_os in
15980 nonstopux*) version_type=nonstopux ;;
15981 *)
15982 if test "$lt_cv_prog_gnu_ld" = yes; then
15983 version_type=linux
15984 else
15985 version_type=irix
15986 fi ;;
15987 esac
John Criswell7a73b802003-06-30 21:59:07 +000015988 need_lib_prefix=no
15989 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015990 soname_spec='${libname}${release}${shared_ext}$major'
15991 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 +000015992 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015993 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015994 libsuff= shlibsuff=
15995 ;;
15996 *)
15997 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015998 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15999 libsuff= shlibsuff= libmagic=32-bit;;
16000 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16001 libsuff=32 shlibsuff=N32 libmagic=N32;;
16002 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16003 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016004 *) libsuff= shlibsuff= libmagic=never-match;;
16005 esac
16006 ;;
16007 esac
16008 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16009 shlibpath_overrides_runpath=no
16010 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16011 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016012 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016013 ;;
16014
16015# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016016linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016017 dynamic_linker=no
16018 ;;
16019
16020# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016021linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016022 version_type=linux
16023 need_lib_prefix=no
16024 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16028 shlibpath_var=LD_LIBRARY_PATH
16029 shlibpath_overrides_runpath=no
16030 # This implies no fast_install, which is unacceptable.
16031 # Some rework will be needed to allow for fast_install
16032 # before this can be enabled.
16033 hardcode_into_libs=yes
16034
Reid Spencer2706f8c2004-09-19 23:53:36 +000016035 # Append ld.so.conf contents to the search path
16036 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016037 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 +000016038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16039 fi
16040
John Criswell7a73b802003-06-30 21:59:07 +000016041 # We used to test for /lib/ld.so.1 and disable shared libraries on
16042 # powerpc, because MkLinux only supported shared libraries with the
16043 # GNU dynamic linker. Since this was broken with cross compilers,
16044 # most powerpc-linux boxes support dynamic linking these days and
16045 # people can always --disable-shared, the test was removed, and we
16046 # assume the GNU/Linux dynamic linker is in use.
16047 dynamic_linker='GNU/Linux ld.so'
16048 ;;
16049
Reid Spencer2706f8c2004-09-19 23:53:36 +000016050knetbsd*-gnu)
16051 version_type=linux
16052 need_lib_prefix=no
16053 need_version=no
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath=no
16058 hardcode_into_libs=yes
16059 dynamic_linker='GNU ld.so'
16060 ;;
16061
John Criswell7a73b802003-06-30 21:59:07 +000016062netbsd*)
16063 version_type=sunos
16064 need_lib_prefix=no
16065 need_version=no
16066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16069 dynamic_linker='NetBSD (a.out) ld.so'
16070 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016072 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016073 dynamic_linker='NetBSD ld.elf_so'
16074 fi
16075 shlibpath_var=LD_LIBRARY_PATH
16076 shlibpath_overrides_runpath=yes
16077 hardcode_into_libs=yes
16078 ;;
16079
16080newsos6)
16081 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 shlibpath_overrides_runpath=yes
16085 ;;
16086
Reid Spencer2706f8c2004-09-19 23:53:36 +000016087nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016088 version_type=linux
16089 need_lib_prefix=no
16090 need_version=no
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016093 shlibpath_var=LD_LIBRARY_PATH
16094 shlibpath_overrides_runpath=yes
16095 ;;
16096
16097openbsd*)
16098 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016099 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016100 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16102 case $host_os in
16103 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16104 *) need_version=no ;;
16105 esac
John Criswell47fdd832003-07-14 16:52:07 +000016106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16108 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016109 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 +000016110 case $host_os in
16111 openbsd2.[89] | openbsd2.[89].*)
16112 shlibpath_overrides_runpath=no
16113 ;;
16114 *)
16115 shlibpath_overrides_runpath=yes
16116 ;;
16117 esac
John Criswell7a73b802003-06-30 21:59:07 +000016118 else
16119 shlibpath_overrides_runpath=yes
16120 fi
John Criswell7a73b802003-06-30 21:59:07 +000016121 ;;
16122
16123os2*)
16124 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016125 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016126 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016127 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016128 dynamic_linker='OS/2 ld.exe'
16129 shlibpath_var=LIBPATH
16130 ;;
16131
16132osf3* | osf4* | osf5*)
16133 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016134 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016135 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016136 soname_spec='${libname}${release}${shared_ext}$major'
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016138 shlibpath_var=LD_LIBRARY_PATH
16139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16141 ;;
16142
John Criswell7a73b802003-06-30 21:59:07 +000016143solaris*)
16144 version_type=linux
16145 need_lib_prefix=no
16146 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016149 shlibpath_var=LD_LIBRARY_PATH
16150 shlibpath_overrides_runpath=yes
16151 hardcode_into_libs=yes
16152 # ldd complains unless libraries are executable
16153 postinstall_cmds='chmod +x $lib'
16154 ;;
16155
16156sunos4*)
16157 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016159 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 shlibpath_overrides_runpath=yes
16162 if test "$with_gnu_ld" = yes; then
16163 need_lib_prefix=no
16164 fi
16165 need_version=yes
16166 ;;
16167
Reid Spencera773bd52006-08-04 18:18:08 +000016168sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016169 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016172 shlibpath_var=LD_LIBRARY_PATH
16173 case $host_vendor in
16174 sni)
16175 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016176 need_lib_prefix=no
16177 export_dynamic_flag_spec='${wl}-Blargedynsym'
16178 runpath_var=LD_RUN_PATH
16179 ;;
16180 siemens)
16181 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016182 ;;
16183 motorola)
16184 need_lib_prefix=no
16185 need_version=no
16186 shlibpath_overrides_runpath=no
16187 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16188 ;;
16189 esac
16190 ;;
16191
John Criswell7a73b802003-06-30 21:59:07 +000016192sysv4*MP*)
16193 if test -d /usr/nec ;then
16194 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016195 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16196 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016197 shlibpath_var=LD_LIBRARY_PATH
16198 fi
16199 ;;
16200
Reid Spencera773bd52006-08-04 18:18:08 +000016201sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16202 version_type=freebsd-elf
16203 need_lib_prefix=no
16204 need_version=no
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 hardcode_into_libs=yes
16209 if test "$with_gnu_ld" = yes; then
16210 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16211 shlibpath_overrides_runpath=no
16212 else
16213 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16214 shlibpath_overrides_runpath=yes
16215 case $host_os in
16216 sco3.2v5*)
16217 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16218 ;;
16219 esac
16220 fi
16221 sys_lib_dlsearch_path_spec='/usr/lib'
16222 ;;
16223
John Criswell47fdd832003-07-14 16:52:07 +000016224uts4*)
16225 version_type=linux
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16227 soname_spec='${libname}${release}${shared_ext}$major'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 ;;
16230
John Criswell7a73b802003-06-30 21:59:07 +000016231*)
16232 dynamic_linker=no
16233 ;;
16234esac
Reid Spencera773bd52006-08-04 18:18:08 +000016235{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16236echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016237test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016238
Reid Spencera773bd52006-08-04 18:18:08 +000016239variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16240if test "$GCC" = yes; then
16241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16242fi
16243
16244{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16245echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016246hardcode_action=
16247if test -n "$hardcode_libdir_flag_spec" || \
16248 test -n "$runpath_var" || \
16249 test "X$hardcode_automatic" = "Xyes" ; then
16250
16251 # We can hardcode non-existant directories.
16252 if test "$hardcode_direct" != no &&
16253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16254 # have to relink, otherwise we might link with an installed library
16255 # when we should be linking with a yet-to-be-installed one
16256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16257 test "$hardcode_minus_L" != no; then
16258 # Linking always hardcodes the temporary library directory.
16259 hardcode_action=relink
16260 else
16261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16262 hardcode_action=immediate
16263 fi
16264else
16265 # We cannot hardcode anything, or else we can only hardcode existing
16266 # directories.
16267 hardcode_action=unsupported
16268fi
Reid Spencera773bd52006-08-04 18:18:08 +000016269{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16270echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016271
16272if test "$hardcode_action" = relink; then
16273 # Fast installation is not supported
16274 enable_fast_install=no
16275elif test "$shlibpath_overrides_runpath" = yes ||
16276 test "$enable_shared" = no; then
16277 # Fast installation is not necessary
16278 enable_fast_install=needless
16279fi
16280
16281striplib=
16282old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016283{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16284echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016285if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16287 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016288 { echo "$as_me:$LINENO: result: yes" >&5
16289echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016290else
16291# FIXME - insert some real tests, host_os isn't really good enough
16292 case $host_os in
16293 darwin*)
16294 if test -n "$STRIP" ; then
16295 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016296 { echo "$as_me:$LINENO: result: yes" >&5
16297echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016298 else
Reid Spencera773bd52006-08-04 18:18:08 +000016299 { echo "$as_me:$LINENO: result: no" >&5
16300echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016301fi
16302 ;;
16303 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016304 { echo "$as_me:$LINENO: result: no" >&5
16305echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016306 ;;
16307 esac
16308fi
16309
John Criswell7a73b802003-06-30 21:59:07 +000016310if test "x$enable_dlopen" != xyes; then
16311 enable_dlopen=unknown
16312 enable_dlopen_self=unknown
16313 enable_dlopen_self_static=unknown
16314else
16315 lt_cv_dlopen=no
16316 lt_cv_dlopen_libs=
16317
16318 case $host_os in
16319 beos*)
16320 lt_cv_dlopen="load_add_on"
16321 lt_cv_dlopen_libs=
16322 lt_cv_dlopen_self=yes
16323 ;;
16324
John Criswell47fdd832003-07-14 16:52:07 +000016325 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016326 lt_cv_dlopen="LoadLibrary"
16327 lt_cv_dlopen_libs=
16328 ;;
16329
John Criswell47fdd832003-07-14 16:52:07 +000016330 cygwin*)
16331 lt_cv_dlopen="dlopen"
16332 lt_cv_dlopen_libs=
16333 ;;
16334
16335 darwin*)
16336 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016337 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16338echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016339if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16341else
16342 ac_check_lib_save_LIBS=$LIBS
16343LIBS="-ldl $LIBS"
16344cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016345/* confdefs.h. */
16346_ACEOF
16347cat confdefs.h >>conftest.$ac_ext
16348cat >>conftest.$ac_ext <<_ACEOF
16349/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016350
Reid Spencera773bd52006-08-04 18:18:08 +000016351/* Override any GCC internal prototype to avoid an error.
16352 Use char because int might match the return type of a GCC
16353 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016354#ifdef __cplusplus
16355extern "C"
16356#endif
John Criswell47fdd832003-07-14 16:52:07 +000016357char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016358int
16359main ()
16360{
Reid Spencera773bd52006-08-04 18:18:08 +000016361return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016362 ;
16363 return 0;
16364}
16365_ACEOF
16366rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016367if { (ac_try="$ac_link"
16368case "(($ac_try" in
16369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16371esac
16372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016374 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016375 grep -v '^ *+' conftest.er1 >conftest.err
16376 rm -f conftest.er1
16377 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } &&
16390 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394esac
16395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; }; then
16400 ac_cv_lib_dl_dlopen=yes
16401else
16402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016403sed 's/^/| /' conftest.$ac_ext >&5
16404
Reid Spencera773bd52006-08-04 18:18:08 +000016405 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016406fi
Reid Spencera773bd52006-08-04 18:18:08 +000016407
16408rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016409 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016410LIBS=$ac_check_lib_save_LIBS
16411fi
Reid Spencera773bd52006-08-04 18:18:08 +000016412{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16413echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016414if test $ac_cv_lib_dl_dlopen = yes; then
16415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16416else
16417
16418 lt_cv_dlopen="dyld"
16419 lt_cv_dlopen_libs=
16420 lt_cv_dlopen_self=yes
16421
16422fi
16423
16424 ;;
16425
John Criswell7a73b802003-06-30 21:59:07 +000016426 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016427 { echo "$as_me:$LINENO: checking for shl_load" >&5
16428echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016429if test "${ac_cv_func_shl_load+set}" = set; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16431else
16432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016433/* confdefs.h. */
16434_ACEOF
16435cat confdefs.h >>conftest.$ac_ext
16436cat >>conftest.$ac_ext <<_ACEOF
16437/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016438/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16440#define shl_load innocuous_shl_load
16441
John Criswell7a73b802003-06-30 21:59:07 +000016442/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016443 which can conflict with char shl_load (); below.
16444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16445 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016446
John Criswell0c38eaf2003-09-10 15:17:25 +000016447#ifdef __STDC__
16448# include <limits.h>
16449#else
16450# include <assert.h>
16451#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016452
16453#undef shl_load
16454
Reid Spencera773bd52006-08-04 18:18:08 +000016455/* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016458#ifdef __cplusplus
16459extern "C"
16460#endif
John Criswell7a73b802003-06-30 21:59:07 +000016461char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016462/* The GNU C library defines this for functions which it implements
16463 to always fail with ENOSYS. Some functions are actually named
16464 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016465#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016466choke me
John Criswell7a73b802003-06-30 21:59:07 +000016467#endif
16468
John Criswell0c38eaf2003-09-10 15:17:25 +000016469int
16470main ()
16471{
Reid Spencera773bd52006-08-04 18:18:08 +000016472return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016473 ;
16474 return 0;
16475}
16476_ACEOF
16477rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016478if { (ac_try="$ac_link"
16479case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482esac
16483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016485 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16492 { (case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495esac
16496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016502 { (case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505esac
16506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_func_shl_load=yes
16512else
16513 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016514sed 's/^/| /' conftest.$ac_ext >&5
16515
Reid Spencera773bd52006-08-04 18:18:08 +000016516 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016517fi
Reid Spencera773bd52006-08-04 18:18:08 +000016518
16519rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016520 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016521fi
Reid Spencera773bd52006-08-04 18:18:08 +000016522{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16523echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016524if test $ac_cv_func_shl_load = yes; then
16525 lt_cv_dlopen="shl_load"
16526else
Reid Spencera773bd52006-08-04 18:18:08 +000016527 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16528echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016529if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16531else
16532 ac_check_lib_save_LIBS=$LIBS
16533LIBS="-ldld $LIBS"
16534cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016540
Reid Spencera773bd52006-08-04 18:18:08 +000016541/* Override any GCC internal prototype to avoid an error.
16542 Use char because int might match the return type of a GCC
16543 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016544#ifdef __cplusplus
16545extern "C"
16546#endif
John Criswell7a73b802003-06-30 21:59:07 +000016547char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016548int
16549main ()
16550{
Reid Spencera773bd52006-08-04 18:18:08 +000016551return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016552 ;
16553 return 0;
16554}
16555_ACEOF
16556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016557if { (ac_try="$ac_link"
16558case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16561esac
16562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574esac
16575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584esac
16585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_lib_dld_shl_load=yes
16591else
16592 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016593sed 's/^/| /' conftest.$ac_ext >&5
16594
Reid Spencera773bd52006-08-04 18:18:08 +000016595 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016596fi
Reid Spencera773bd52006-08-04 18:18:08 +000016597
16598rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016599 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016600LIBS=$ac_check_lib_save_LIBS
16601fi
Reid Spencera773bd52006-08-04 18:18:08 +000016602{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16603echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016604if test $ac_cv_lib_dld_shl_load = yes; then
16605 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16606else
Reid Spencera773bd52006-08-04 18:18:08 +000016607 { echo "$as_me:$LINENO: checking for dlopen" >&5
16608echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016609if test "${ac_cv_func_dlopen+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611else
16612 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016613/* confdefs.h. */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
16617/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016618/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16620#define dlopen innocuous_dlopen
16621
John Criswell7a73b802003-06-30 21:59:07 +000016622/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016623 which can conflict with char dlopen (); below.
16624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16625 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626
John Criswell0c38eaf2003-09-10 15:17:25 +000016627#ifdef __STDC__
16628# include <limits.h>
16629#else
16630# include <assert.h>
16631#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016632
16633#undef dlopen
16634
Reid Spencera773bd52006-08-04 18:18:08 +000016635/* Override any GCC internal prototype to avoid an error.
16636 Use char because int might match the return type of a GCC
16637 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016638#ifdef __cplusplus
16639extern "C"
16640#endif
John Criswell7a73b802003-06-30 21:59:07 +000016641char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016642/* The GNU C library defines this for functions which it implements
16643 to always fail with ENOSYS. Some functions are actually named
16644 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016645#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016646choke me
John Criswell7a73b802003-06-30 21:59:07 +000016647#endif
16648
John Criswell0c38eaf2003-09-10 15:17:25 +000016649int
16650main ()
16651{
Reid Spencera773bd52006-08-04 18:18:08 +000016652return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016653 ;
16654 return 0;
16655}
16656_ACEOF
16657rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016658if { (ac_try="$ac_link"
16659case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662esac
16663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016665 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16672 { (case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16675esac
16676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016682 { (case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16685esac
16686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 ac_cv_func_dlopen=yes
16692else
16693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016694sed 's/^/| /' conftest.$ac_ext >&5
16695
Reid Spencera773bd52006-08-04 18:18:08 +000016696 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016697fi
Reid Spencera773bd52006-08-04 18:18:08 +000016698
16699rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016700 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016701fi
Reid Spencera773bd52006-08-04 18:18:08 +000016702{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16703echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016704if test $ac_cv_func_dlopen = yes; then
16705 lt_cv_dlopen="dlopen"
16706else
Reid Spencera773bd52006-08-04 18:18:08 +000016707 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16708echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016709if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711else
16712 ac_check_lib_save_LIBS=$LIBS
16713LIBS="-ldl $LIBS"
16714cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016715/* confdefs.h. */
16716_ACEOF
16717cat confdefs.h >>conftest.$ac_ext
16718cat >>conftest.$ac_ext <<_ACEOF
16719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016720
Reid Spencera773bd52006-08-04 18:18:08 +000016721/* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016724#ifdef __cplusplus
16725extern "C"
16726#endif
John Criswell7a73b802003-06-30 21:59:07 +000016727char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016728int
16729main ()
16730{
Reid Spencera773bd52006-08-04 18:18:08 +000016731return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016732 ;
16733 return 0;
16734}
16735_ACEOF
16736rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016737if { (ac_try="$ac_link"
16738case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741esac
16742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754esac
16755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16764esac
16765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 ac_cv_lib_dl_dlopen=yes
16771else
16772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016773sed 's/^/| /' conftest.$ac_ext >&5
16774
Reid Spencera773bd52006-08-04 18:18:08 +000016775 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016776fi
Reid Spencera773bd52006-08-04 18:18:08 +000016777
16778rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016779 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016780LIBS=$ac_check_lib_save_LIBS
16781fi
Reid Spencera773bd52006-08-04 18:18:08 +000016782{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16783echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016784if test $ac_cv_lib_dl_dlopen = yes; then
16785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16786else
Reid Spencera773bd52006-08-04 18:18:08 +000016787 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16788echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016789if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16791else
16792 ac_check_lib_save_LIBS=$LIBS
16793LIBS="-lsvld $LIBS"
16794cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016795/* confdefs.h. */
16796_ACEOF
16797cat confdefs.h >>conftest.$ac_ext
16798cat >>conftest.$ac_ext <<_ACEOF
16799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016800
Reid Spencera773bd52006-08-04 18:18:08 +000016801/* Override any GCC internal prototype to avoid an error.
16802 Use char because int might match the return type of a GCC
16803 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016804#ifdef __cplusplus
16805extern "C"
16806#endif
John Criswell7a73b802003-06-30 21:59:07 +000016807char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016808int
16809main ()
16810{
Reid Spencera773bd52006-08-04 18:18:08 +000016811return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016812 ;
16813 return 0;
16814}
16815_ACEOF
16816rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016817if { (ac_try="$ac_link"
16818case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821esac
16822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016824 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834esac
16835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844esac
16845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 ac_cv_lib_svld_dlopen=yes
16851else
16852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016853sed 's/^/| /' conftest.$ac_ext >&5
16854
Reid Spencera773bd52006-08-04 18:18:08 +000016855 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016856fi
Reid Spencera773bd52006-08-04 18:18:08 +000016857
16858rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016859 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016860LIBS=$ac_check_lib_save_LIBS
16861fi
Reid Spencera773bd52006-08-04 18:18:08 +000016862{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16863echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016864if test $ac_cv_lib_svld_dlopen = yes; then
16865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16866else
Reid Spencera773bd52006-08-04 18:18:08 +000016867 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16868echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016869if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871else
16872 ac_check_lib_save_LIBS=$LIBS
16873LIBS="-ldld $LIBS"
16874cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016880
Reid Spencera773bd52006-08-04 18:18:08 +000016881/* Override any GCC internal prototype to avoid an error.
16882 Use char because int might match the return type of a GCC
16883 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016884#ifdef __cplusplus
16885extern "C"
16886#endif
John Criswell7a73b802003-06-30 21:59:07 +000016887char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016888int
16889main ()
16890{
Reid Spencera773bd52006-08-04 18:18:08 +000016891return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016892 ;
16893 return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016897if { (ac_try="$ac_link"
16898case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16901esac
16902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016904 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914esac
16915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_lib_dld_dld_link=yes
16931else
16932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016933sed 's/^/| /' conftest.$ac_ext >&5
16934
Reid Spencera773bd52006-08-04 18:18:08 +000016935 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016936fi
Reid Spencera773bd52006-08-04 18:18:08 +000016937
16938rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016939 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016940LIBS=$ac_check_lib_save_LIBS
16941fi
Reid Spencera773bd52006-08-04 18:18:08 +000016942{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16943echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016944if test $ac_cv_lib_dld_dld_link = yes; then
16945 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16946fi
16947
16948
16949fi
16950
16951
16952fi
16953
16954
16955fi
16956
16957
16958fi
16959
16960
16961fi
16962
16963 ;;
16964 esac
16965
16966 if test "x$lt_cv_dlopen" != xno; then
16967 enable_dlopen=yes
16968 else
16969 enable_dlopen=no
16970 fi
16971
16972 case $lt_cv_dlopen in
16973 dlopen)
16974 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016975 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016976
16977 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016978 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016979
16980 save_LIBS="$LIBS"
16981 LIBS="$lt_cv_dlopen_libs $LIBS"
16982
Reid Spencera773bd52006-08-04 18:18:08 +000016983 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16984echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016985if test "${lt_cv_dlopen_self+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 if test "$cross_compiling" = yes; then :
16989 lt_cv_dlopen_self=cross
16990else
John Criswell47fdd832003-07-14 16:52:07 +000016991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016992 lt_status=$lt_dlunknown
16993 cat > conftest.$ac_ext <<EOF
Reid Spencera773bd52006-08-04 18:18:08 +000016994#line 16994 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016995#include "confdefs.h"
16996
16997#if HAVE_DLFCN_H
16998#include <dlfcn.h>
16999#endif
17000
17001#include <stdio.h>
17002
17003#ifdef RTLD_GLOBAL
17004# define LT_DLGLOBAL RTLD_GLOBAL
17005#else
17006# ifdef DL_GLOBAL
17007# define LT_DLGLOBAL DL_GLOBAL
17008# else
17009# define LT_DLGLOBAL 0
17010# endif
17011#endif
17012
17013/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17014 find out it does not work in some platform. */
17015#ifndef LT_DLLAZY_OR_NOW
17016# ifdef RTLD_LAZY
17017# define LT_DLLAZY_OR_NOW RTLD_LAZY
17018# else
17019# ifdef DL_LAZY
17020# define LT_DLLAZY_OR_NOW DL_LAZY
17021# else
17022# ifdef RTLD_NOW
17023# define LT_DLLAZY_OR_NOW RTLD_NOW
17024# else
17025# ifdef DL_NOW
17026# define LT_DLLAZY_OR_NOW DL_NOW
17027# else
17028# define LT_DLLAZY_OR_NOW 0
17029# endif
17030# endif
17031# endif
17032# endif
17033#endif
17034
17035#ifdef __cplusplus
17036extern "C" void exit (int);
17037#endif
17038
17039void fnord() { int i=42;}
17040int main ()
17041{
17042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17043 int status = $lt_dlunknown;
17044
17045 if (self)
17046 {
17047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17048 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17049 /* dlclose (self); */
17050 }
Reid Spencera773bd52006-08-04 18:18:08 +000017051 else
17052 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017053
17054 exit (status);
17055}
17056EOF
17057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058 (eval $ac_link) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017062 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017063 lt_status=$?
17064 case x$lt_status in
17065 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17066 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017067 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017068 esac
17069 else :
17070 # compilation failed
17071 lt_cv_dlopen_self=no
17072 fi
17073fi
17074rm -fr conftest*
17075
17076
17077fi
Reid Spencera773bd52006-08-04 18:18:08 +000017078{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17079echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017080
17081 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017082 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17083 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17084echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017085if test "${lt_cv_dlopen_self_static+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087else
17088 if test "$cross_compiling" = yes; then :
17089 lt_cv_dlopen_self_static=cross
17090else
John Criswell47fdd832003-07-14 16:52:07 +000017091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017092 lt_status=$lt_dlunknown
17093 cat > conftest.$ac_ext <<EOF
Reid Spencera773bd52006-08-04 18:18:08 +000017094#line 17094 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017095#include "confdefs.h"
17096
17097#if HAVE_DLFCN_H
17098#include <dlfcn.h>
17099#endif
17100
17101#include <stdio.h>
17102
17103#ifdef RTLD_GLOBAL
17104# define LT_DLGLOBAL RTLD_GLOBAL
17105#else
17106# ifdef DL_GLOBAL
17107# define LT_DLGLOBAL DL_GLOBAL
17108# else
17109# define LT_DLGLOBAL 0
17110# endif
17111#endif
17112
17113/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17114 find out it does not work in some platform. */
17115#ifndef LT_DLLAZY_OR_NOW
17116# ifdef RTLD_LAZY
17117# define LT_DLLAZY_OR_NOW RTLD_LAZY
17118# else
17119# ifdef DL_LAZY
17120# define LT_DLLAZY_OR_NOW DL_LAZY
17121# else
17122# ifdef RTLD_NOW
17123# define LT_DLLAZY_OR_NOW RTLD_NOW
17124# else
17125# ifdef DL_NOW
17126# define LT_DLLAZY_OR_NOW DL_NOW
17127# else
17128# define LT_DLLAZY_OR_NOW 0
17129# endif
17130# endif
17131# endif
17132# endif
17133#endif
17134
17135#ifdef __cplusplus
17136extern "C" void exit (int);
17137#endif
17138
17139void fnord() { int i=42;}
17140int main ()
17141{
17142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17143 int status = $lt_dlunknown;
17144
17145 if (self)
17146 {
17147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17148 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17149 /* dlclose (self); */
17150 }
Reid Spencera773bd52006-08-04 18:18:08 +000017151 else
17152 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017153
17154 exit (status);
17155}
17156EOF
17157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158 (eval $ac_link) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017162 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017163 lt_status=$?
17164 case x$lt_status in
17165 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17166 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017167 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017168 esac
17169 else :
17170 # compilation failed
17171 lt_cv_dlopen_self_static=no
17172 fi
17173fi
17174rm -fr conftest*
17175
17176
17177fi
Reid Spencera773bd52006-08-04 18:18:08 +000017178{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17179echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017180 fi
17181
17182 CPPFLAGS="$save_CPPFLAGS"
17183 LDFLAGS="$save_LDFLAGS"
17184 LIBS="$save_LIBS"
17185 ;;
17186 esac
17187
17188 case $lt_cv_dlopen_self in
17189 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17190 *) enable_dlopen_self=unknown ;;
17191 esac
17192
17193 case $lt_cv_dlopen_self_static in
17194 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17195 *) enable_dlopen_self_static=unknown ;;
17196 esac
17197fi
17198
17199
Reid Spencera773bd52006-08-04 18:18:08 +000017200# Report which library types will actually be built
17201{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17202echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17203{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17204echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017205
Reid Spencera773bd52006-08-04 18:18:08 +000017206{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17207echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017208test "$can_build_shared" = "no" && enable_shared=no
17209
17210# On AIX, shared libraries and static libraries use the same namespace, and
17211# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017212case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017213aix3*)
17214 test "$enable_shared" = yes && enable_static=no
17215 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017216 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017217 postinstall_cmds='$RANLIB $lib'
17218 fi
17219 ;;
17220
Reid Spencer2706f8c2004-09-19 23:53:36 +000017221aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017222 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17223 test "$enable_shared" = yes && enable_static=no
17224 fi
John Criswell7a73b802003-06-30 21:59:07 +000017225 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017226esac
Reid Spencera773bd52006-08-04 18:18:08 +000017227{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17228echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017229
Reid Spencera773bd52006-08-04 18:18:08 +000017230{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17231echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017232# Make sure either enable_shared or enable_static is yes.
17233test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017234{ echo "$as_me:$LINENO: result: $enable_static" >&5
17235echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017236
17237# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017238# libtool distribution, otherwise you forgot to ship ltmain.sh
17239# with your package, and you will get complaints that there are
17240# no rules to generate ltmain.sh.
17241if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017242 # See if we are running on zsh, and set the options which allow our commands through
17243 # without removal of \ escapes.
17244 if test -n "${ZSH_VERSION+set}" ; then
17245 setopt NO_GLOB_SUBST
17246 fi
John Criswell7a73b802003-06-30 21:59:07 +000017247 # Now quote all the things that may contain metacharacters while being
17248 # careful not to overquote the AC_SUBSTed values. We take copies of the
17249 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017250 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 +000017251 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017252 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17253 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17254 deplibs_check_method reload_flag reload_cmds need_locks \
17255 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17256 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017257 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017258 old_postinstall_cmds old_postuninstall_cmds \
17259 compiler \
17260 CC \
17261 LD \
17262 lt_prog_compiler_wl \
17263 lt_prog_compiler_pic \
17264 lt_prog_compiler_static \
17265 lt_prog_compiler_no_builtin_flag \
17266 export_dynamic_flag_spec \
17267 thread_safe_flag_spec \
17268 whole_archive_flag_spec \
17269 enable_shared_with_static_runtimes \
17270 old_archive_cmds \
17271 old_archive_from_new_cmds \
17272 predep_objects \
17273 postdep_objects \
17274 predeps \
17275 postdeps \
17276 compiler_lib_search_path \
17277 archive_cmds \
17278 archive_expsym_cmds \
17279 postinstall_cmds \
17280 postuninstall_cmds \
17281 old_archive_from_expsyms_cmds \
17282 allow_undefined_flag \
17283 no_undefined_flag \
17284 export_symbols_cmds \
17285 hardcode_libdir_flag_spec \
17286 hardcode_libdir_flag_spec_ld \
17287 hardcode_libdir_separator \
17288 hardcode_automatic \
17289 module_cmds \
17290 module_expsym_cmds \
17291 lt_cv_prog_compiler_c_o \
17292 exclude_expsyms \
17293 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017294
17295 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017296 old_archive_cmds | \
17297 old_archive_from_new_cmds | \
17298 archive_cmds | \
17299 archive_expsym_cmds | \
17300 module_cmds | \
17301 module_expsym_cmds | \
17302 old_archive_from_expsyms_cmds | \
17303 export_symbols_cmds | \
17304 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017305 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017306 old_postinstall_cmds | old_postuninstall_cmds | \
17307 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017308 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017309 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 +000017310 ;;
17311 *)
17312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17313 ;;
17314 esac
17315 done
17316
John Criswell47fdd832003-07-14 16:52:07 +000017317 case $lt_echo in
17318 *'\$0 --fallback-echo"')
17319 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17320 ;;
17321 esac
17322
17323cfgfile="${ofile}T"
17324 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17325 $rm -f "$cfgfile"
17326 { echo "$as_me:$LINENO: creating $ofile" >&5
17327echo "$as_me: creating $ofile" >&6;}
17328
17329 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017330#! $SHELL
17331
John Criswell47fdd832003-07-14 16:52:07 +000017332# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017333# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17334# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17335#
John Criswell47fdd832003-07-14 16:52:07 +000017336# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17337# Free Software Foundation, Inc.
17338#
17339# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017340# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17341#
17342# This program is free software; you can redistribute it and/or modify
17343# it under the terms of the GNU General Public License as published by
17344# the Free Software Foundation; either version 2 of the License, or
17345# (at your option) any later version.
17346#
17347# This program is distributed in the hope that it will be useful, but
17348# WITHOUT ANY WARRANTY; without even the implied warranty of
17349# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17350# General Public License for more details.
17351#
17352# You should have received a copy of the GNU General Public License
17353# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017354# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017355#
17356# As a special exception to the GNU General Public License, if you
17357# distribute this file as part of a program that contains a
17358# configuration script generated by Autoconf, you may include it under
17359# the same distribution terms that you use for the rest of that program.
17360
John Criswell47fdd832003-07-14 16:52:07 +000017361# A sed program that does not truncate output.
17362SED=$lt_SED
17363
John Criswell7a73b802003-06-30 21:59:07 +000017364# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017365Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017366
17367# The HP-UX ksh and POSIX shell print the target directory to stdout
17368# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017370
John Criswell47fdd832003-07-14 16:52:07 +000017371# The names of the tagged configurations supported by this script.
17372available_tags=
17373
John Criswell7a73b802003-06-30 21:59:07 +000017374# ### BEGIN LIBTOOL CONFIG
17375
17376# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17377
17378# Shell to use when invoking shell scripts.
17379SHELL=$lt_SHELL
17380
17381# Whether or not to build shared libraries.
17382build_libtool_libs=$enable_shared
17383
17384# Whether or not to build static libraries.
17385build_old_libs=$enable_static
17386
17387# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017388build_libtool_need_lc=$archive_cmds_need_lc
17389
17390# Whether or not to disallow shared libs when runtime libs are static
17391allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017392
17393# Whether or not to optimize for fast installation.
17394fast_install=$enable_fast_install
17395
17396# The host system.
17397host_alias=$host_alias
17398host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017399host_os=$host_os
17400
17401# The build system.
17402build_alias=$build_alias
17403build=$build
17404build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017405
17406# An echo program that does not interpret backslashes.
17407echo=$lt_echo
17408
17409# The archiver.
17410AR=$lt_AR
17411AR_FLAGS=$lt_AR_FLAGS
17412
John Criswell47fdd832003-07-14 16:52:07 +000017413# A C compiler.
17414LTCC=$lt_LTCC
17415
Reid Spencera773bd52006-08-04 18:18:08 +000017416# LTCC compiler flags.
17417LTCFLAGS=$lt_LTCFLAGS
17418
John Criswell47fdd832003-07-14 16:52:07 +000017419# A language-specific compiler.
17420CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017421
17422# Is the compiler the GNU C compiler?
17423with_gcc=$GCC
17424
John Criswell47fdd832003-07-14 16:52:07 +000017425# An ERE matcher.
17426EGREP=$lt_EGREP
17427
John Criswell7a73b802003-06-30 21:59:07 +000017428# The linker used to build libraries.
17429LD=$lt_LD
17430
17431# Whether we need hard or soft links.
17432LN_S=$lt_LN_S
17433
17434# A BSD-compatible nm program.
17435NM=$lt_NM
17436
17437# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017438STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017439
17440# Used to examine libraries when file_magic_cmd begins "file"
17441MAGIC_CMD=$MAGIC_CMD
17442
17443# Used on cygwin: DLL creation program.
17444DLLTOOL="$DLLTOOL"
17445
17446# Used on cygwin: object dumper.
17447OBJDUMP="$OBJDUMP"
17448
17449# Used on cygwin: assembler.
17450AS="$AS"
17451
17452# The name of the directory that contains temporary libtool files.
17453objdir=$objdir
17454
17455# How to create reloadable object files.
17456reload_flag=$lt_reload_flag
17457reload_cmds=$lt_reload_cmds
17458
17459# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017460wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017461
17462# Object file suffix (normally "o").
17463objext="$ac_objext"
17464
17465# Old archive suffix (normally "a").
17466libext="$libext"
17467
John Criswell47fdd832003-07-14 16:52:07 +000017468# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017469shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017470
John Criswell7a73b802003-06-30 21:59:07 +000017471# Executable file suffix (normally "").
17472exeext="$exeext"
17473
17474# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017475pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017476pic_mode=$pic_mode
17477
John Criswell47fdd832003-07-14 16:52:07 +000017478# What is the maximum length of a command?
17479max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017480
John Criswell47fdd832003-07-14 16:52:07 +000017481# Does compiler simultaneously support -c and -o options?
17482compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017483
Reid Spencera773bd52006-08-04 18:18:08 +000017484# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017485need_locks=$lt_need_locks
17486
17487# Do we need the lib prefix for modules?
17488need_lib_prefix=$need_lib_prefix
17489
17490# Do we need a version for libraries?
17491need_version=$need_version
17492
17493# Whether dlopen is supported.
17494dlopen_support=$enable_dlopen
17495
17496# Whether dlopen of programs is supported.
17497dlopen_self=$enable_dlopen_self
17498
17499# Whether dlopen of statically linked programs is supported.
17500dlopen_self_static=$enable_dlopen_self_static
17501
17502# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017503link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017504
17505# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017507
17508# Compiler flag to allow reflexive dlopens.
17509export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17510
17511# Compiler flag to generate shared objects directly from archives.
17512whole_archive_flag_spec=$lt_whole_archive_flag_spec
17513
17514# Compiler flag to generate thread-safe objects.
17515thread_safe_flag_spec=$lt_thread_safe_flag_spec
17516
17517# Library versioning type.
17518version_type=$version_type
17519
17520# Format of library name prefix.
17521libname_spec=$lt_libname_spec
17522
17523# List of archive names. First name is the real one, the rest are links.
17524# The last name is the one that the linker finds with -lNAME.
17525library_names_spec=$lt_library_names_spec
17526
17527# The coded name of the library, if different from the real name.
17528soname_spec=$lt_soname_spec
17529
17530# Commands used to build and install an old-style archive.
17531RANLIB=$lt_RANLIB
17532old_archive_cmds=$lt_old_archive_cmds
17533old_postinstall_cmds=$lt_old_postinstall_cmds
17534old_postuninstall_cmds=$lt_old_postuninstall_cmds
17535
17536# Create an old-style archive from a shared archive.
17537old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17538
17539# Create a temporary old-style archive to link instead of a shared archive.
17540old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17541
17542# Commands used to build and install a shared archive.
17543archive_cmds=$lt_archive_cmds
17544archive_expsym_cmds=$lt_archive_expsym_cmds
17545postinstall_cmds=$lt_postinstall_cmds
17546postuninstall_cmds=$lt_postuninstall_cmds
17547
John Criswell47fdd832003-07-14 16:52:07 +000017548# Commands used to build a loadable module (assumed same as above if empty)
17549module_cmds=$lt_module_cmds
17550module_expsym_cmds=$lt_module_expsym_cmds
17551
John Criswell7a73b802003-06-30 21:59:07 +000017552# Commands to strip libraries.
17553old_striplib=$lt_old_striplib
17554striplib=$lt_striplib
17555
John Criswell47fdd832003-07-14 16:52:07 +000017556# Dependencies to place before the objects being linked to create a
17557# shared library.
17558predep_objects=$lt_predep_objects
17559
17560# Dependencies to place after the objects being linked to create a
17561# shared library.
17562postdep_objects=$lt_postdep_objects
17563
17564# Dependencies to place before the objects being linked to create a
17565# shared library.
17566predeps=$lt_predeps
17567
17568# Dependencies to place after the objects being linked to create a
17569# shared library.
17570postdeps=$lt_postdeps
17571
17572# The library search path used internally by the compiler when linking
17573# a shared library.
17574compiler_lib_search_path=$lt_compiler_lib_search_path
17575
John Criswell7a73b802003-06-30 21:59:07 +000017576# Method to check whether dependent libraries are shared objects.
17577deplibs_check_method=$lt_deplibs_check_method
17578
17579# Command to use when deplibs_check_method == file_magic.
17580file_magic_cmd=$lt_file_magic_cmd
17581
17582# Flag that allows shared libraries with undefined symbols to be built.
17583allow_undefined_flag=$lt_allow_undefined_flag
17584
17585# Flag that forces no undefined symbols.
17586no_undefined_flag=$lt_no_undefined_flag
17587
17588# Commands used to finish a libtool library installation in a directory.
17589finish_cmds=$lt_finish_cmds
17590
17591# Same as above, but a single script fragment to be evaled but not shown.
17592finish_eval=$lt_finish_eval
17593
17594# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017595global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017596
17597# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017598global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017599
17600# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017601global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017602
17603# This is the shared library runtime path variable.
17604runpath_var=$runpath_var
17605
17606# This is the shared library path variable.
17607shlibpath_var=$shlibpath_var
17608
17609# Is shlibpath searched before the hard-coded library search path?
17610shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17611
17612# How to hardcode a shared library path into an executable.
17613hardcode_action=$hardcode_action
17614
17615# Whether we should hardcode library paths into libraries.
17616hardcode_into_libs=$hardcode_into_libs
17617
17618# Flag to hardcode \$libdir into a binary during linking.
17619# This must work even if \$libdir does not exist.
17620hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17621
John Criswell47fdd832003-07-14 16:52:07 +000017622# If ld is used when linking, flag to hardcode \$libdir into
17623# a binary during linking. This must work even if \$libdir does
17624# not exist.
17625hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17626
John Criswell7a73b802003-06-30 21:59:07 +000017627# Whether we need a single -rpath flag with a separated argument.
17628hardcode_libdir_separator=$lt_hardcode_libdir_separator
17629
John Criswell47fdd832003-07-14 16:52:07 +000017630# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017631# resulting binary.
17632hardcode_direct=$hardcode_direct
17633
17634# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17635# resulting binary.
17636hardcode_minus_L=$hardcode_minus_L
17637
17638# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17639# the resulting binary.
17640hardcode_shlibpath_var=$hardcode_shlibpath_var
17641
John Criswell47fdd832003-07-14 16:52:07 +000017642# Set to yes if building a shared library automatically hardcodes DIR into the library
17643# and all subsequent libraries and executables linked against it.
17644hardcode_automatic=$hardcode_automatic
17645
John Criswell7a73b802003-06-30 21:59:07 +000017646# Variables whose values should be saved in libtool wrapper scripts and
17647# restored at relink time.
17648variables_saved_for_relink="$variables_saved_for_relink"
17649
17650# Whether libtool must link a program against all its dependency libraries.
17651link_all_deplibs=$link_all_deplibs
17652
17653# Compile-time system search path for libraries
17654sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17655
17656# Run-time system search path for libraries
17657sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17658
17659# Fix the shell variable \$srcfile for the compiler.
17660fix_srcfile_path="$fix_srcfile_path"
17661
17662# Set to yes if exported symbols are required.
17663always_export_symbols=$always_export_symbols
17664
17665# The commands to list exported symbols.
17666export_symbols_cmds=$lt_export_symbols_cmds
17667
17668# The commands to extract the exported symbol list from a shared archive.
17669extract_expsyms_cmds=$lt_extract_expsyms_cmds
17670
17671# Symbols that should not be listed in the preloaded symbols.
17672exclude_expsyms=$lt_exclude_expsyms
17673
17674# Symbols that must always be exported.
17675include_expsyms=$lt_include_expsyms
17676
17677# ### END LIBTOOL CONFIG
17678
17679__EOF__
17680
John Criswell47fdd832003-07-14 16:52:07 +000017681
John Criswell7a73b802003-06-30 21:59:07 +000017682 case $host_os in
17683 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017684 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017685
17686# AIX sometimes has problems with the GCC collect2 program. For some
17687# reason, if we set the COLLECT_NAMES environment variable, the problems
17688# vanish in a puff of smoke.
17689if test "X${COLLECT_NAMES+set}" != Xset; then
17690 COLLECT_NAMES=
17691 export COLLECT_NAMES
17692fi
17693EOF
17694 ;;
17695 esac
17696
John Criswell7a73b802003-06-30 21:59:07 +000017697 # We use sed instead of cat because bash on DJGPP gets confused if
17698 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17699 # text mode, it properly converts lines to CR/LF. This bash problem
17700 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017701 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017702
John Criswell47fdd832003-07-14 16:52:07 +000017703 mv -f "$cfgfile" "$ofile" || \
17704 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017705 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017706
17707else
17708 # If there is no Makefile yet, we rely on a make rule to execute
17709 # `config.status --recheck' to rerun these tests and create the
17710 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017711 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17712 if test -f "$ltmain_in"; then
17713 test -f Makefile && make "$ltmain"
17714 fi
John Criswell7a73b802003-06-30 21:59:07 +000017715fi
John Criswell7a73b802003-06-30 21:59:07 +000017716
17717
John Criswell47fdd832003-07-14 16:52:07 +000017718ac_ext=c
17719ac_cpp='$CPP $CPPFLAGS'
17720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17722ac_compiler_gnu=$ac_cv_c_compiler_gnu
17723
17724CC="$lt_save_CC"
17725
17726
Reid Spencera773bd52006-08-04 18:18:08 +000017727# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017728if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017729 withval=$with_tags; tagnames="$withval"
17730fi
17731
John Criswell47fdd832003-07-14 16:52:07 +000017732
17733if test -f "$ltmain" && test -n "$tagnames"; then
17734 if test ! -f "${ofile}"; then
17735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17736echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17737 fi
17738
17739 if test -z "$LTCC"; then
17740 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17741 if test -z "$LTCC"; then
17742 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17743echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17744 else
17745 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17746echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17747 fi
17748 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017749 if test -z "$LTCFLAGS"; then
17750 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17751 fi
John Criswell47fdd832003-07-14 16:52:07 +000017752
17753 # Extract list of available tagged configurations in $ofile.
17754 # Note that this assumes the entire list is on one line.
17755 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17756
17757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17758 for tagname in $tagnames; do
17759 IFS="$lt_save_ifs"
17760 # Check whether tagname contains only valid characters
17761 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17762 "") ;;
17763 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17764echo "$as_me: error: invalid tag name: $tagname" >&2;}
17765 { (exit 1); exit 1; }; }
17766 ;;
17767 esac
17768
17769 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17770 then
17771 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17772echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17773 { (exit 1); exit 1; }; }
17774 fi
17775
17776 # Update the list of available tags.
17777 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017778 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017779
17780 case $tagname in
17781 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017782 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17783 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17784 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017785 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017786ac_cpp='$CXXCPP $CPPFLAGS'
17787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17790
17791
17792
17793
17794archive_cmds_need_lc_CXX=no
17795allow_undefined_flag_CXX=
17796always_export_symbols_CXX=no
17797archive_expsym_cmds_CXX=
17798export_dynamic_flag_spec_CXX=
17799hardcode_direct_CXX=no
17800hardcode_libdir_flag_spec_CXX=
17801hardcode_libdir_flag_spec_ld_CXX=
17802hardcode_libdir_separator_CXX=
17803hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017804hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017805hardcode_automatic_CXX=no
17806module_cmds_CXX=
17807module_expsym_cmds_CXX=
17808link_all_deplibs_CXX=unknown
17809old_archive_cmds_CXX=$old_archive_cmds
17810no_undefined_flag_CXX=
17811whole_archive_flag_spec_CXX=
17812enable_shared_with_static_runtimes_CXX=no
17813
17814# Dependencies to place before and after the object being linked:
17815predep_objects_CXX=
17816postdep_objects_CXX=
17817predeps_CXX=
17818postdeps_CXX=
17819compiler_lib_search_path_CXX=
17820
17821# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017822ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017823
17824# Object file extension for compiled C++ test sources.
17825objext=o
17826objext_CXX=$objext
17827
17828# Code to be used in simple compile tests
17829lt_simple_compile_test_code="int some_variable = 0;\n"
17830
17831# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017832lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017833
17834# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17835
17836# If no C compiler was specified, use CC.
17837LTCC=${LTCC-"$CC"}
17838
Reid Spencera773bd52006-08-04 18:18:08 +000017839# If no C compiler flags were specified, use CFLAGS.
17840LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17841
John Criswell47fdd832003-07-14 16:52:07 +000017842# Allow CC to be a program name with arguments.
17843compiler=$CC
17844
17845
Reid Spencera773bd52006-08-04 18:18:08 +000017846# save warnings/boilerplate of simple test code
17847ac_outfile=conftest.$ac_objext
17848printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17849eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17850_lt_compiler_boilerplate=`cat conftest.err`
17851$rm conftest*
17852
17853ac_outfile=conftest.$ac_objext
17854printf "$lt_simple_link_test_code" >conftest.$ac_ext
17855eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17856_lt_linker_boilerplate=`cat conftest.err`
17857$rm conftest*
17858
17859
John Criswell47fdd832003-07-14 16:52:07 +000017860# Allow CC to be a program name with arguments.
17861lt_save_CC=$CC
17862lt_save_LD=$LD
17863lt_save_GCC=$GCC
17864GCC=$GXX
17865lt_save_with_gnu_ld=$with_gnu_ld
17866lt_save_path_LD=$lt_cv_path_LD
17867if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17868 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17869else
Reid Spencera773bd52006-08-04 18:18:08 +000017870 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017871fi
17872if test -n "${lt_cv_path_LDCXX+set}"; then
17873 lt_cv_path_LD=$lt_cv_path_LDCXX
17874else
Reid Spencera773bd52006-08-04 18:18:08 +000017875 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017876fi
17877test -z "${LDCXX+set}" || LD=$LDCXX
17878CC=${CXX-"c++"}
17879compiler=$CC
17880compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017881for cc_temp in $compiler""; do
17882 case $cc_temp in
17883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17885 \-*) ;;
17886 *) break;;
17887 esac
17888done
17889cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17890
John Criswell47fdd832003-07-14 16:52:07 +000017891
17892# We don't want -fno-exception wen compiling C++ code, so set the
17893# no_builtin_flag separately
17894if test "$GXX" = yes; then
17895 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17896else
17897 lt_prog_compiler_no_builtin_flag_CXX=
17898fi
17899
17900if test "$GXX" = yes; then
17901 # Set up default GNU C++ configuration
17902
17903
Reid Spencera773bd52006-08-04 18:18:08 +000017904# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017905if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017907else
17908 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017909fi
17910
John Criswell47fdd832003-07-14 16:52:07 +000017911ac_prog=ld
17912if test "$GCC" = yes; then
17913 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017914 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17915echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017916 case $host in
17917 *-*-mingw*)
17918 # gcc leaves a trailing carriage return which upsets mingw
17919 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17920 *)
17921 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17922 esac
17923 case $ac_prog in
17924 # Accept absolute paths.
17925 [\\/]* | ?:[\\/]*)
17926 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017927 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017928 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17929 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17930 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17931 done
17932 test -z "$LD" && LD="$ac_prog"
17933 ;;
17934 "")
17935 # If it fails, then pretend we aren't using GCC.
17936 ac_prog=ld
17937 ;;
17938 *)
17939 # If it is relative, then search for the first ld in PATH.
17940 with_gnu_ld=unknown
17941 ;;
17942 esac
17943elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017944 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17945echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017946else
Reid Spencera773bd52006-08-04 18:18:08 +000017947 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17948echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017949fi
17950if test "${lt_cv_path_LD+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17952else
17953 if test -z "$LD"; then
17954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17955 for ac_dir in $PATH; do
17956 IFS="$lt_save_ifs"
17957 test -z "$ac_dir" && ac_dir=.
17958 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17959 lt_cv_path_LD="$ac_dir/$ac_prog"
17960 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017961 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017962 # Break only if it was the GNU/non-GNU ld that we prefer.
17963 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17964 *GNU* | *'with BFD'*)
17965 test "$with_gnu_ld" != no && break
17966 ;;
17967 *)
17968 test "$with_gnu_ld" != yes && break
17969 ;;
17970 esac
17971 fi
17972 done
17973 IFS="$lt_save_ifs"
17974else
17975 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17976fi
17977fi
17978
17979LD="$lt_cv_path_LD"
17980if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017981 { echo "$as_me:$LINENO: result: $LD" >&5
17982echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017983else
Reid Spencera773bd52006-08-04 18:18:08 +000017984 { echo "$as_me:$LINENO: result: no" >&5
17985echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017986fi
17987test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17988echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17989 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017990{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17991echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017992if test "${lt_cv_prog_gnu_ld+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
Reid Spencera773bd52006-08-04 18:18:08 +000017995 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017996case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017997*GNU* | *'with BFD'*)
17998 lt_cv_prog_gnu_ld=yes
17999 ;;
18000*)
18001 lt_cv_prog_gnu_ld=no
18002 ;;
18003esac
18004fi
Reid Spencera773bd52006-08-04 18:18:08 +000018005{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18006echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018007with_gnu_ld=$lt_cv_prog_gnu_ld
18008
18009
18010
18011 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18012 # archiving commands below assume that GNU ld is being used.
18013 if test "$with_gnu_ld" = yes; then
18014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18015 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'
18016
18017 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18019
18020 # If archive_cmds runs LD, not CC, wlarc should be empty
18021 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18022 # investigate it a little bit more. (MM)
18023 wlarc='${wl}'
18024
18025 # ancient GNU ld didn't support --whole-archive et. al.
18026 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18027 grep 'no-whole-archive' > /dev/null; then
18028 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18029 else
18030 whole_archive_flag_spec_CXX=
18031 fi
18032 else
18033 with_gnu_ld=no
18034 wlarc=
18035
18036 # A generic and very simple default shared library creation
18037 # command for GNU C++ for the case where it uses the native
18038 # linker, instead of GNU ld. If possible, this setting should
18039 # overridden to take advantage of the native linker features on
18040 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018042 fi
18043
18044 # Commands to make compiler produce verbose output that lists
18045 # what "hidden" libraries, object files and flags are used when
18046 # linking a shared library.
18047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18048
18049else
18050 GXX=no
18051 with_gnu_ld=no
18052 wlarc=
18053fi
18054
18055# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018056{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18057echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018058ld_shlibs_CXX=yes
18059case $host_os in
18060 aix3*)
18061 # FIXME: insert proper C++ library support
18062 ld_shlibs_CXX=no
18063 ;;
18064 aix4* | aix5*)
18065 if test "$host_cpu" = ia64; then
18066 # On IA64, the linker does run time linking by default, so we don't
18067 # have to do anything special.
18068 aix_use_runtimelinking=no
18069 exp_sym_flag='-Bexport'
18070 no_entry_flag=""
18071 else
18072 aix_use_runtimelinking=no
18073
18074 # Test if we are trying to use run time linking or normal
18075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18076 # need to do runtime linking.
18077 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18078 for ld_flag in $LDFLAGS; do
18079 case $ld_flag in
18080 *-brtl*)
18081 aix_use_runtimelinking=yes
18082 break
18083 ;;
18084 esac
18085 done
Reid Spencera773bd52006-08-04 18:18:08 +000018086 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018087 esac
18088
18089 exp_sym_flag='-bexport'
18090 no_entry_flag='-bnoentry'
18091 fi
18092
18093 # When large executables or shared objects are built, AIX ld can
18094 # have problems creating the table of contents. If linking a library
18095 # or program results in "error TOC overflow" add -mminimal-toc to
18096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18098
18099 archive_cmds_CXX=''
18100 hardcode_direct_CXX=yes
18101 hardcode_libdir_separator_CXX=':'
18102 link_all_deplibs_CXX=yes
18103
18104 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018105 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018106 # We only want to do this on AIX 4.2 and lower, the check
18107 # below for broken collect2 doesn't work under 4.3+
18108 collect2name=`${CC} -print-prog-name=collect2`
18109 if test -f "$collect2name" && \
18110 strings "$collect2name" | grep resolve_lib_name >/dev/null
18111 then
18112 # We have reworked collect2
18113 hardcode_direct_CXX=yes
18114 else
18115 # We have old collect2
18116 hardcode_direct_CXX=unsupported
18117 # It fails to find uninstalled libraries when the uninstalled
18118 # path is not listed in the libpath. Setting hardcode_minus_L
18119 # to unsupported forces relinking
18120 hardcode_minus_L_CXX=yes
18121 hardcode_libdir_flag_spec_CXX='-L$libdir'
18122 hardcode_libdir_separator_CXX=
18123 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018124 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018125 esac
18126 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018127 if test "$aix_use_runtimelinking" = yes; then
18128 shared_flag="$shared_flag "'${wl}-G'
18129 fi
John Criswell47fdd832003-07-14 16:52:07 +000018130 else
18131 # not using gcc
18132 if test "$host_cpu" = ia64; then
18133 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18134 # chokes on -Wl,-G. The following line is correct:
18135 shared_flag='-G'
18136 else
18137 if test "$aix_use_runtimelinking" = yes; then
18138 shared_flag='${wl}-G'
18139 else
18140 shared_flag='${wl}-bM:SRE'
18141 fi
18142 fi
18143 fi
18144
18145 # It seems that -bexpall does not export symbols beginning with
18146 # underscore (_), so it is better to generate a list of symbols to export.
18147 always_export_symbols_CXX=yes
18148 if test "$aix_use_runtimelinking" = yes; then
18149 # Warning - without using the other runtime loading flags (-brtl),
18150 # -berok will link without error, but may produce a broken library.
18151 allow_undefined_flag_CXX='-berok'
18152 # Determine the default libpath from the value encoded in an empty executable.
18153 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018154/* confdefs.h. */
18155_ACEOF
18156cat confdefs.h >>conftest.$ac_ext
18157cat >>conftest.$ac_ext <<_ACEOF
18158/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018159
John Criswell47fdd832003-07-14 16:52:07 +000018160int
18161main ()
18162{
18163
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018169if { (ac_try="$ac_link"
18170case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173esac
18174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18183 { (case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186esac
18187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; } &&
18192 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018193 { (case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196esac
18197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202
18203aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18204}'`
18205# Check for a 64-bit object if we didn't find anything.
18206if 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; }
18207}'`; fi
18208else
18209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018210sed 's/^/| /' conftest.$ac_ext >&5
18211
Reid Spencera773bd52006-08-04 18:18:08 +000018212
John Criswell47fdd832003-07-14 16:52:07 +000018213fi
Reid Spencera773bd52006-08-04 18:18:08 +000018214
18215rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018216 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018217if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18218
18219 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18220
Reid Spencera773bd52006-08-04 18:18:08 +000018221 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 +000018222 else
18223 if test "$host_cpu" = ia64; then
18224 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18225 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018226 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 +000018227 else
18228 # Determine the default libpath from the value encoded in an empty executable.
18229 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018230/* confdefs.h. */
18231_ACEOF
18232cat confdefs.h >>conftest.$ac_ext
18233cat >>conftest.$ac_ext <<_ACEOF
18234/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018235
John Criswell47fdd832003-07-14 16:52:07 +000018236int
18237main ()
18238{
18239
18240 ;
18241 return 0;
18242}
18243_ACEOF
18244rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018245if { (ac_try="$ac_link"
18246case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018252 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018269 { (case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18272esac
18273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278
18279aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18280}'`
18281# Check for a 64-bit object if we didn't find anything.
18282if 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; }
18283}'`; fi
18284else
18285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018286sed 's/^/| /' conftest.$ac_ext >&5
18287
Reid Spencera773bd52006-08-04 18:18:08 +000018288
John Criswell47fdd832003-07-14 16:52:07 +000018289fi
Reid Spencera773bd52006-08-04 18:18:08 +000018290
18291rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018292 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018293if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18294
18295 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18296 # Warning - without using the other run time loading flags,
18297 # -berok will link without error, but may produce a broken library.
18298 no_undefined_flag_CXX=' ${wl}-bernotok'
18299 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018300 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018301 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018302 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018303 # This is similar to how AIX traditionally builds its shared libraries.
18304 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 +000018305 fi
18306 fi
18307 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018308
18309 beos*)
18310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18311 allow_undefined_flag_CXX=unsupported
18312 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18313 # support --undefined. This deserves some investigation. FIXME
18314 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18315 else
18316 ld_shlibs_CXX=no
18317 fi
18318 ;;
18319
John Criswell47fdd832003-07-14 16:52:07 +000018320 chorus*)
18321 case $cc_basename in
18322 *)
18323 # FIXME: insert proper C++ library support
18324 ld_shlibs_CXX=no
18325 ;;
18326 esac
18327 ;;
18328
18329 cygwin* | mingw* | pw32*)
18330 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18331 # as there is no search path for DLLs.
18332 hardcode_libdir_flag_spec_CXX='-L$libdir'
18333 allow_undefined_flag_CXX=unsupported
18334 always_export_symbols_CXX=no
18335 enable_shared_with_static_runtimes_CXX=yes
18336
18337 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018338 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 +000018339 # If the export-symbols file already is a .def file (1st line
18340 # is EXPORTS), use it as is; otherwise, prepend...
18341 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18342 cp $export_symbols $output_objdir/$soname.def;
18343 else
18344 echo EXPORTS > $output_objdir/$soname.def;
18345 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018346 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018347 $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 +000018348 else
18349 ld_shlibs_CXX=no
18350 fi
18351 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018352 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018353 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018354 rhapsody* | darwin1.[012])
18355 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18356 ;;
18357 *) # Darwin 1.3 on
18358 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18359 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18360 else
18361 case ${MACOSX_DEPLOYMENT_TARGET} in
18362 10.[012])
18363 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18364 ;;
18365 10.*)
18366 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18367 ;;
18368 esac
18369 fi
18370 ;;
18371 esac
18372 archive_cmds_need_lc_CXX=no
18373 hardcode_direct_CXX=no
18374 hardcode_automatic_CXX=yes
18375 hardcode_shlibpath_var_CXX=unsupported
18376 whole_archive_flag_spec_CXX=''
18377 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018378
Reid Spencer2706f8c2004-09-19 23:53:36 +000018379 if test "$GXX" = yes ; then
18380 lt_int_apple_cc_single_mod=no
18381 output_verbose_link_cmd='echo'
18382 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18383 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018384 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018385 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018386 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 +000018387 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018388 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 +000018389 fi
18390 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018391 # 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 +000018392 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018393 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 +000018394 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018395 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 +000018396 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018397 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 +000018398 else
Reid Spencera773bd52006-08-04 18:18:08 +000018399 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018400 xlc*)
18401 output_verbose_link_cmd='echo'
18402 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'
18403 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018404 # 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 +000018405 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}'
18406 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 +000018407 ;;
18408 *)
18409 ld_shlibs_CXX=no
18410 ;;
18411 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018412 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018413 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018414
18415 dgux*)
18416 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018417 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018418 # FIXME: insert proper C++ library support
18419 ld_shlibs_CXX=no
18420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018421 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018422 # Green Hills C++ Compiler
18423 # FIXME: insert proper C++ library support
18424 ld_shlibs_CXX=no
18425 ;;
18426 *)
18427 # FIXME: insert proper C++ library support
18428 ld_shlibs_CXX=no
18429 ;;
18430 esac
18431 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018432 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018433 # C++ shared libraries reported to be fairly broken before switch to ELF
18434 ld_shlibs_CXX=no
18435 ;;
18436 freebsd-elf*)
18437 archive_cmds_need_lc_CXX=no
18438 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018439 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018440 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18441 # conventions
18442 ld_shlibs_CXX=yes
18443 ;;
18444 gnu*)
18445 ;;
18446 hpux9*)
18447 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18448 hardcode_libdir_separator_CXX=:
18449 export_dynamic_flag_spec_CXX='${wl}-E'
18450 hardcode_direct_CXX=yes
18451 hardcode_minus_L_CXX=yes # Not in the search PATH,
18452 # but as the default
18453 # location of the library.
18454
18455 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018456 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018457 # FIXME: insert proper C++ library support
18458 ld_shlibs_CXX=no
18459 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018460 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018461 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 +000018462 # Commands to make compiler produce verbose output that lists
18463 # what "hidden" libraries, object files and flags are used when
18464 # linking a shared library.
18465 #
18466 # There doesn't appear to be a way to prevent this compiler from
18467 # explicitly linking system object files so we need to strip them
18468 # from the output so that they don't get included in the library
18469 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018470 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 +000018471 ;;
18472 *)
18473 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018474 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 +000018475 else
18476 # FIXME: insert proper C++ library support
18477 ld_shlibs_CXX=no
18478 fi
18479 ;;
18480 esac
18481 ;;
18482 hpux10*|hpux11*)
18483 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018484 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18485 hardcode_libdir_separator_CXX=:
18486
18487 case $host_cpu in
18488 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018489 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018490 ;;
18491 *)
John Criswell47fdd832003-07-14 16:52:07 +000018492 export_dynamic_flag_spec_CXX='${wl}-E'
18493 ;;
18494 esac
18495 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018496 case $host_cpu in
18497 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018498 hardcode_direct_CXX=no
18499 hardcode_shlibpath_var_CXX=no
18500 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018501 *)
18502 hardcode_direct_CXX=yes
18503 hardcode_minus_L_CXX=yes # Not in the search PATH,
18504 # but as the default
18505 # location of the library.
18506 ;;
18507 esac
18508
18509 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018510 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018511 # FIXME: insert proper C++ library support
18512 ld_shlibs_CXX=no
18513 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018514 aCC*)
18515 case $host_cpu in
18516 hppa*64*)
18517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18518 ;;
18519 ia64*)
18520 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 +000018521 ;;
18522 *)
18523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18524 ;;
18525 esac
18526 # Commands to make compiler produce verbose output that lists
18527 # what "hidden" libraries, object files and flags are used when
18528 # linking a shared library.
18529 #
18530 # There doesn't appear to be a way to prevent this compiler from
18531 # explicitly linking system object files so we need to strip them
18532 # from the output so that they don't get included in the library
18533 # dependencies.
18534 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'
18535 ;;
18536 *)
18537 if test "$GXX" = yes; then
18538 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018539 case $host_cpu in
18540 hppa*64*)
18541 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18542 ;;
18543 ia64*)
18544 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 +000018545 ;;
18546 *)
18547 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'
18548 ;;
18549 esac
18550 fi
18551 else
18552 # FIXME: insert proper C++ library support
18553 ld_shlibs_CXX=no
18554 fi
18555 ;;
18556 esac
18557 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018558 interix3*)
18559 hardcode_direct_CXX=no
18560 hardcode_shlibpath_var_CXX=no
18561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18562 export_dynamic_flag_spec_CXX='${wl}-E'
18563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18564 # Instead, shared libraries are loaded at an image base (0x10000000 by
18565 # default) and relocated if they conflict, which is a slow very memory
18566 # consuming and fragmenting process. To avoid this, we pick a random,
18567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18569 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'
18570 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'
18571 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018572 irix5* | irix6*)
18573 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018574 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018575 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018576 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 +000018577
18578 # Archives containing C++ object files must be created using
18579 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18580 # necessary to make sure instantiated templates are included
18581 # in the archive.
18582 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18583 ;;
18584 *)
18585 if test "$GXX" = yes; then
18586 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018587 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 +000018588 else
18589 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'
18590 fi
18591 fi
18592 link_all_deplibs_CXX=yes
18593 ;;
18594 esac
18595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18596 hardcode_libdir_separator_CXX=:
18597 ;;
18598 linux*)
18599 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018600 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018601 # Kuck and Associates, Inc. (KAI) C++ Compiler
18602
18603 # KCC will only create a shared library if the output file
18604 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18605 # to its proper name (with version) after linking.
18606 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'
18607 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'
18608 # Commands to make compiler produce verbose output that lists
18609 # what "hidden" libraries, object files and flags are used when
18610 # linking a shared library.
18611 #
18612 # There doesn't appear to be a way to prevent this compiler from
18613 # explicitly linking system object files so we need to strip them
18614 # from the output so that they don't get included in the library
18615 # dependencies.
18616 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'
18617
18618 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18620
18621 # Archives containing C++ object files must be created using
18622 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18623 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18624 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018625 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018626 # Intel C++
18627 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018628 # version 8.0 and above of icpc choke on multiply defined symbols
18629 # if we add $predep_objects and $postdep_objects, however 7.1 and
18630 # earlier do not add the objects themselves.
18631 case `$CC -V 2>&1` in
18632 *"Version 7."*)
18633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18634 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'
18635 ;;
18636 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018637 tmp_idyn=
18638 case $host_cpu in
18639 ia64*) tmp_idyn=' -i_dynamic';;
18640 esac
18641 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18642 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 +000018643 ;;
18644 esac
John Criswell47fdd832003-07-14 16:52:07 +000018645 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18647 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18648 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018650 pgCC*)
18651 # Portland Group C++ compiler
18652 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18653 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'
18654
18655 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18657 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'
18658 ;;
18659 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018660 # Compaq C++
18661 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18662 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'
18663
18664 runpath_var=LD_RUN_PATH
18665 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18666 hardcode_libdir_separator_CXX=:
18667
18668 # Commands to make compiler produce verbose output that lists
18669 # what "hidden" libraries, object files and flags are used when
18670 # linking a shared library.
18671 #
18672 # There doesn't appear to be a way to prevent this compiler from
18673 # explicitly linking system object files so we need to strip them
18674 # from the output so that they don't get included in the library
18675 # dependencies.
18676 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'
18677 ;;
18678 esac
18679 ;;
18680 lynxos*)
18681 # FIXME: insert proper C++ library support
18682 ld_shlibs_CXX=no
18683 ;;
18684 m88k*)
18685 # FIXME: insert proper C++ library support
18686 ld_shlibs_CXX=no
18687 ;;
18688 mvs*)
18689 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018690 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018691 # FIXME: insert proper C++ library support
18692 ld_shlibs_CXX=no
18693 ;;
18694 *)
18695 # FIXME: insert proper C++ library support
18696 ld_shlibs_CXX=no
18697 ;;
18698 esac
18699 ;;
18700 netbsd*)
18701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18702 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18703 wlarc=
18704 hardcode_libdir_flag_spec_CXX='-R$libdir'
18705 hardcode_direct_CXX=yes
18706 hardcode_shlibpath_var_CXX=no
18707 fi
18708 # Workaround some broken pre-1.5 toolchains
18709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18710 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018711 openbsd2*)
18712 # C++ shared libraries are fairly broken
18713 ld_shlibs_CXX=no
18714 ;;
18715 openbsd*)
18716 hardcode_direct_CXX=yes
18717 hardcode_shlibpath_var_CXX=no
18718 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18721 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18722 export_dynamic_flag_spec_CXX='${wl}-E'
18723 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18724 fi
18725 output_verbose_link_cmd='echo'
18726 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018727 osf3*)
18728 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018729 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018730 # Kuck and Associates, Inc. (KAI) C++ Compiler
18731
18732 # KCC will only create a shared library if the output file
18733 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18734 # to its proper name (with version) after linking.
18735 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'
18736
18737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18738 hardcode_libdir_separator_CXX=:
18739
18740 # Archives containing C++ object files must be created using
18741 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18742 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18743
18744 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018745 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018746 # Rational C++ 2.4.1
18747 # FIXME: insert proper C++ library support
18748 ld_shlibs_CXX=no
18749 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018750 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018751 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018752 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 +000018753
18754 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18755 hardcode_libdir_separator_CXX=:
18756
18757 # Commands to make compiler produce verbose output that lists
18758 # what "hidden" libraries, object files and flags are used when
18759 # linking a shared library.
18760 #
18761 # There doesn't appear to be a way to prevent this compiler from
18762 # explicitly linking system object files so we need to strip them
18763 # from the output so that they don't get included in the library
18764 # dependencies.
18765 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'
18766 ;;
18767 *)
18768 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18769 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018770 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 +000018771
18772 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18773 hardcode_libdir_separator_CXX=:
18774
18775 # Commands to make compiler produce verbose output that lists
18776 # what "hidden" libraries, object files and flags are used when
18777 # linking a shared library.
18778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18779
18780 else
18781 # FIXME: insert proper C++ library support
18782 ld_shlibs_CXX=no
18783 fi
18784 ;;
18785 esac
18786 ;;
18787 osf4* | osf5*)
18788 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018789 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018790 # Kuck and Associates, Inc. (KAI) C++ Compiler
18791
18792 # KCC will only create a shared library if the output file
18793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18794 # to its proper name (with version) after linking.
18795 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'
18796
18797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18798 hardcode_libdir_separator_CXX=:
18799
18800 # Archives containing C++ object files must be created using
18801 # the KAI C++ compiler.
18802 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18803 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018804 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018805 # Rational C++ 2.4.1
18806 # FIXME: insert proper C++ library support
18807 ld_shlibs_CXX=no
18808 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018809 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018810 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018811 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 +000018812 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18813 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018814 $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 +000018815 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018816
18817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18818 hardcode_libdir_separator_CXX=:
18819
18820 # Commands to make compiler produce verbose output that lists
18821 # what "hidden" libraries, object files and flags are used when
18822 # linking a shared library.
18823 #
18824 # There doesn't appear to be a way to prevent this compiler from
18825 # explicitly linking system object files so we need to strip them
18826 # from the output so that they don't get included in the library
18827 # dependencies.
18828 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'
18829 ;;
18830 *)
18831 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18832 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018833 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 +000018834
18835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18836 hardcode_libdir_separator_CXX=:
18837
18838 # Commands to make compiler produce verbose output that lists
18839 # what "hidden" libraries, object files and flags are used when
18840 # linking a shared library.
18841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18842
18843 else
18844 # FIXME: insert proper C++ library support
18845 ld_shlibs_CXX=no
18846 fi
18847 ;;
18848 esac
18849 ;;
18850 psos*)
18851 # FIXME: insert proper C++ library support
18852 ld_shlibs_CXX=no
18853 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018854 sunos4*)
18855 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018856 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018857 # Sun C++ 4.x
18858 # FIXME: insert proper C++ library support
18859 ld_shlibs_CXX=no
18860 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018861 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018862 # Lucid
18863 # FIXME: insert proper C++ library support
18864 ld_shlibs_CXX=no
18865 ;;
18866 *)
18867 # FIXME: insert proper C++ library support
18868 ld_shlibs_CXX=no
18869 ;;
18870 esac
18871 ;;
18872 solaris*)
18873 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018874 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018875 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018876 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018877 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018878 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 +000018879 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 +000018880 $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 +000018881
18882 hardcode_libdir_flag_spec_CXX='-R$libdir'
18883 hardcode_shlibpath_var_CXX=no
18884 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018885 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018886 *)
18887 # The C++ compiler is used as linker so we must use $wl
18888 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018889 # linker. We must also pass each convience library through
18890 # to the system linker between allextract/defaultextract.
18891 # The C++ compiler will combine linker options so we
18892 # cannot just pass the convience library names through
18893 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018894 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018895 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 +000018896 ;;
18897 esac
18898 link_all_deplibs_CXX=yes
18899
Reid Spencera773bd52006-08-04 18:18:08 +000018900 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018901
18902 # Archives containing C++ object files must be created using
18903 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18904 # necessary to make sure instantiated templates are included
18905 # in the archive.
18906 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018908 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018909 # Green Hills C++ Compiler
18910 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18911
18912 # The C++ compiler must be used to create the archive.
18913 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18914 ;;
18915 *)
18916 # GNU C++ compiler with Solaris linker
18917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18918 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18919 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018920 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 +000018921 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18922 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18923
John Criswell47fdd832003-07-14 16:52:07 +000018924 # Commands to make compiler produce verbose output that lists
18925 # what "hidden" libraries, object files and flags are used when
18926 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018927 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018928 else
18929 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18930 # platform.
18931 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 +000018932 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18933 $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 +000018934
18935 # Commands to make compiler produce verbose output that lists
18936 # what "hidden" libraries, object files and flags are used when
18937 # linking a shared library.
18938 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18939 fi
18940
18941 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18942 fi
18943 ;;
18944 esac
18945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18947 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018948 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018949 hardcode_shlibpath_var_CXX=no
18950 runpath_var='LD_RUN_PATH'
18951
18952 case $cc_basename in
18953 CC*)
18954 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18955 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18956 ;;
18957 *)
18958 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18960 ;;
18961 esac
18962 ;;
18963 sysv5* | sco3.2v5* | sco5v6*)
18964 # Note: We can NOT use -z defs as we might desire, because we do not
18965 # link with -lc, and that would cause any symbols used from libc to
18966 # always be unresolved, which means just about no library would
18967 # ever link correctly. If we're not using GNU ld we use -z text
18968 # though, which does catch some bad symbols but isn't as heavy-handed
18969 # as -z defs.
18970 # For security reasons, it is highly recommended that you always
18971 # use absolute paths for naming shared libraries, and exclude the
18972 # DT_RUNPATH tag from executables and libraries. But doing so
18973 # requires that you compile everything twice, which is a pain.
18974 # So that behaviour is only enabled if SCOABSPATH is set to a
18975 # non-empty value in the environment. Most likely only useful for
18976 # creating official distributions of packages.
18977 # This is a hack until libtool officially supports absolute path
18978 # names for shared libraries.
18979 no_undefined_flag_CXX='${wl}-z,text'
18980 allow_undefined_flag_CXX='${wl}-z,nodefs'
18981 archive_cmds_need_lc_CXX=no
18982 hardcode_shlibpath_var_CXX=no
18983 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18984 hardcode_libdir_separator_CXX=':'
18985 link_all_deplibs_CXX=yes
18986 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18987 runpath_var='LD_RUN_PATH'
18988
18989 case $cc_basename in
18990 CC*)
18991 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18992 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18993 ;;
18994 *)
18995 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18996 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18997 ;;
18998 esac
John Criswell47fdd832003-07-14 16:52:07 +000018999 ;;
19000 tandem*)
19001 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019002 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019003 # NonStop-UX NCC 3.20
19004 # FIXME: insert proper C++ library support
19005 ld_shlibs_CXX=no
19006 ;;
19007 *)
19008 # FIXME: insert proper C++ library support
19009 ld_shlibs_CXX=no
19010 ;;
19011 esac
19012 ;;
19013 vxworks*)
19014 # FIXME: insert proper C++ library support
19015 ld_shlibs_CXX=no
19016 ;;
19017 *)
19018 # FIXME: insert proper C++ library support
19019 ld_shlibs_CXX=no
19020 ;;
19021esac
Reid Spencera773bd52006-08-04 18:18:08 +000019022{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19023echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019024test "$ld_shlibs_CXX" = no && can_build_shared=no
19025
19026GCC_CXX="$GXX"
19027LD_CXX="$LD"
19028
John Criswell47fdd832003-07-14 16:52:07 +000019029
19030cat > conftest.$ac_ext <<EOF
19031class Foo
19032{
19033public:
19034 Foo (void) { a = 0; }
19035private:
19036 int a;
19037};
19038EOF
19039
19040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19041 (eval $ac_compile) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; then
19045 # Parse the compiler output and extract the necessary
19046 # objects, libraries and library flags.
19047
19048 # Sentinel used to keep track of whether or not we are before
19049 # the conftest object file.
19050 pre_test_object_deps_done=no
19051
19052 # The `*' in the case matches for architectures that use `case' in
19053 # $output_verbose_cmd can trigger glob expansion during the loop
19054 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019055 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019056
19057 for p in `eval $output_verbose_link_cmd`; do
19058 case $p in
19059
19060 -L* | -R* | -l*)
19061 # Some compilers place space between "-{L,R}" and the path.
19062 # Remove the space.
19063 if test $p = "-L" \
19064 || test $p = "-R"; then
19065 prev=$p
19066 continue
19067 else
19068 prev=
19069 fi
19070
19071 if test "$pre_test_object_deps_done" = no; then
19072 case $p in
19073 -L* | -R*)
19074 # Internal compiler library paths should come after those
19075 # provided the user. The postdeps already come after the
19076 # user supplied libs so there is no need to process them.
19077 if test -z "$compiler_lib_search_path_CXX"; then
19078 compiler_lib_search_path_CXX="${prev}${p}"
19079 else
19080 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19081 fi
19082 ;;
19083 # The "-l" case would never come before the object being
19084 # linked, so don't bother handling this case.
19085 esac
19086 else
19087 if test -z "$postdeps_CXX"; then
19088 postdeps_CXX="${prev}${p}"
19089 else
19090 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19091 fi
19092 fi
19093 ;;
19094
19095 *.$objext)
19096 # This assumes that the test object file only shows up
19097 # once in the compiler output.
19098 if test "$p" = "conftest.$objext"; then
19099 pre_test_object_deps_done=yes
19100 continue
19101 fi
19102
19103 if test "$pre_test_object_deps_done" = no; then
19104 if test -z "$predep_objects_CXX"; then
19105 predep_objects_CXX="$p"
19106 else
19107 predep_objects_CXX="$predep_objects_CXX $p"
19108 fi
19109 else
19110 if test -z "$postdep_objects_CXX"; then
19111 postdep_objects_CXX="$p"
19112 else
19113 postdep_objects_CXX="$postdep_objects_CXX $p"
19114 fi
19115 fi
19116 ;;
19117
19118 *) ;; # Ignore the rest.
19119
19120 esac
19121 done
19122
19123 # Clean up.
19124 rm -f a.out a.exe
19125else
19126 echo "libtool.m4: error: problem compiling CXX test program"
19127fi
19128
19129$rm -f confest.$objext
19130
Reid Spencera773bd52006-08-04 18:18:08 +000019131# PORTME: override above test on systems where it is broken
19132case $host_os in
19133interix3*)
19134 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19135 # hack all around it, let's just trust "g++" to DTRT.
19136 predep_objects_CXX=
19137 postdep_objects_CXX=
19138 postdeps_CXX=
19139 ;;
19140
19141solaris*)
19142 case $cc_basename in
19143 CC*)
19144 # Adding this requires a known-good setup of shared libraries for
19145 # Sun compiler versions before 5.6, else PIC objects from an old
19146 # archive will be linked into the output, leading to subtle bugs.
19147 postdeps_CXX='-lCstd -lCrun'
19148 ;;
19149 esac
19150 ;;
19151esac
19152
19153
John Criswell47fdd832003-07-14 16:52:07 +000019154case " $postdeps_CXX " in
19155*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19156esac
19157
19158lt_prog_compiler_wl_CXX=
19159lt_prog_compiler_pic_CXX=
19160lt_prog_compiler_static_CXX=
19161
Reid Spencera773bd52006-08-04 18:18:08 +000019162{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19163echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019164
19165 # C++ specific cases for pic, static, wl, etc.
19166 if test "$GXX" = yes; then
19167 lt_prog_compiler_wl_CXX='-Wl,'
19168 lt_prog_compiler_static_CXX='-static'
19169
19170 case $host_os in
19171 aix*)
19172 # All AIX code is PIC.
19173 if test "$host_cpu" = ia64; then
19174 # AIX 5 now supports IA64 processor
19175 lt_prog_compiler_static_CXX='-Bstatic'
19176 fi
19177 ;;
19178 amigaos*)
19179 # FIXME: we need at least 68020 code to build shared libraries, but
19180 # adding the `-m68020' flag to GCC prevents building anything better,
19181 # like `-m68040'.
19182 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19183 ;;
19184 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19185 # PIC is the default for these OSes.
19186 ;;
19187 mingw* | os2* | pw32*)
19188 # This hack is so that the source file can tell whether it is being
19189 # built for inclusion in a dll (and should export symbols for example).
19190 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19191 ;;
19192 darwin* | rhapsody*)
19193 # PIC is the default on this platform
19194 # Common symbols not allowed in MH_DYLIB files
19195 lt_prog_compiler_pic_CXX='-fno-common'
19196 ;;
19197 *djgpp*)
19198 # DJGPP does not support shared libraries at all
19199 lt_prog_compiler_pic_CXX=
19200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019201 interix3*)
19202 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19203 # Instead, we relocate shared libraries at runtime.
19204 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019205 sysv4*MP*)
19206 if test -d /usr/nec; then
19207 lt_prog_compiler_pic_CXX=-Kconform_pic
19208 fi
19209 ;;
19210 hpux*)
19211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19212 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019213 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019214 hppa*64*|ia64*)
19215 ;;
19216 *)
19217 lt_prog_compiler_pic_CXX='-fPIC'
19218 ;;
19219 esac
19220 ;;
19221 *)
19222 lt_prog_compiler_pic_CXX='-fPIC'
19223 ;;
19224 esac
19225 else
19226 case $host_os in
19227 aix4* | aix5*)
19228 # All AIX code is PIC.
19229 if test "$host_cpu" = ia64; then
19230 # AIX 5 now supports IA64 processor
19231 lt_prog_compiler_static_CXX='-Bstatic'
19232 else
19233 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19234 fi
19235 ;;
19236 chorus*)
19237 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019238 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019239 # Green Hills C++ Compiler
19240 # _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"
19241 ;;
19242 esac
19243 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019244 darwin*)
19245 # PIC is the default on this platform
19246 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019247 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019248 xlc*)
19249 lt_prog_compiler_pic_CXX='-qnocommon'
19250 lt_prog_compiler_wl_CXX='-Wl,'
19251 ;;
19252 esac
19253 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019254 dgux*)
19255 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019256 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019257 lt_prog_compiler_pic_CXX='-KPIC'
19258 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019259 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019260 # Green Hills C++ Compiler
19261 lt_prog_compiler_pic_CXX='-pic'
19262 ;;
19263 *)
19264 ;;
19265 esac
19266 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019267 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019268 # FreeBSD uses GNU C++
19269 ;;
19270 hpux9* | hpux10* | hpux11*)
19271 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019272 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019273 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019274 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019275 if test "$host_cpu" != ia64; then
19276 lt_prog_compiler_pic_CXX='+Z'
19277 fi
19278 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019279 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019280 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019281 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19282 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019283 hppa*64*|ia64*)
19284 # +Z the default
19285 ;;
19286 *)
19287 lt_prog_compiler_pic_CXX='+Z'
19288 ;;
19289 esac
19290 ;;
19291 *)
19292 ;;
19293 esac
19294 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019295 interix*)
19296 # This is c89, which is MS Visual C++ (no shared libs)
19297 # Anyone wants to do a port?
19298 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019299 irix5* | irix6* | nonstopux*)
19300 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019301 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019302 lt_prog_compiler_wl_CXX='-Wl,'
19303 lt_prog_compiler_static_CXX='-non_shared'
19304 # CC pic flag -KPIC is the default.
19305 ;;
19306 *)
19307 ;;
19308 esac
19309 ;;
19310 linux*)
19311 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019312 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019313 # KAI C++ Compiler
19314 lt_prog_compiler_wl_CXX='--backend -Wl,'
19315 lt_prog_compiler_pic_CXX='-fPIC'
19316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019317 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019318 # Intel C++
19319 lt_prog_compiler_wl_CXX='-Wl,'
19320 lt_prog_compiler_pic_CXX='-KPIC'
19321 lt_prog_compiler_static_CXX='-static'
19322 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019323 pgCC*)
19324 # Portland Group C++ compiler.
19325 lt_prog_compiler_wl_CXX='-Wl,'
19326 lt_prog_compiler_pic_CXX='-fpic'
19327 lt_prog_compiler_static_CXX='-Bstatic'
19328 ;;
19329 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019330 # Compaq C++
19331 # Make sure the PIC flag is empty. It appears that all Alpha
19332 # Linux and Compaq Tru64 Unix objects are PIC.
19333 lt_prog_compiler_pic_CXX=
19334 lt_prog_compiler_static_CXX='-non_shared'
19335 ;;
19336 *)
19337 ;;
19338 esac
19339 ;;
19340 lynxos*)
19341 ;;
19342 m88k*)
19343 ;;
19344 mvs*)
19345 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019346 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019347 lt_prog_compiler_pic_CXX='-W c,exportall'
19348 ;;
19349 *)
19350 ;;
19351 esac
19352 ;;
19353 netbsd*)
19354 ;;
19355 osf3* | osf4* | osf5*)
19356 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019357 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019358 lt_prog_compiler_wl_CXX='--backend -Wl,'
19359 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019360 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019361 # Rational C++ 2.4.1
19362 lt_prog_compiler_pic_CXX='-pic'
19363 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019364 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019365 # Digital/Compaq C++
19366 lt_prog_compiler_wl_CXX='-Wl,'
19367 # Make sure the PIC flag is empty. It appears that all Alpha
19368 # Linux and Compaq Tru64 Unix objects are PIC.
19369 lt_prog_compiler_pic_CXX=
19370 lt_prog_compiler_static_CXX='-non_shared'
19371 ;;
19372 *)
19373 ;;
19374 esac
19375 ;;
19376 psos*)
19377 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019378 solaris*)
19379 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019380 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019381 # Sun C++ 4.2, 5.x and Centerline C++
19382 lt_prog_compiler_pic_CXX='-KPIC'
19383 lt_prog_compiler_static_CXX='-Bstatic'
19384 lt_prog_compiler_wl_CXX='-Qoption ld '
19385 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019386 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019387 # Green Hills C++ Compiler
19388 lt_prog_compiler_pic_CXX='-PIC'
19389 ;;
19390 *)
19391 ;;
19392 esac
19393 ;;
19394 sunos4*)
19395 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019396 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019397 # Sun C++ 4.x
19398 lt_prog_compiler_pic_CXX='-pic'
19399 lt_prog_compiler_static_CXX='-Bstatic'
19400 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019401 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019402 # Lucid
19403 lt_prog_compiler_pic_CXX='-pic'
19404 ;;
19405 *)
19406 ;;
19407 esac
19408 ;;
19409 tandem*)
19410 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019411 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019412 # NonStop-UX NCC 3.20
19413 lt_prog_compiler_pic_CXX='-KPIC'
19414 ;;
19415 *)
19416 ;;
19417 esac
19418 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19420 case $cc_basename in
19421 CC*)
19422 lt_prog_compiler_wl_CXX='-Wl,'
19423 lt_prog_compiler_pic_CXX='-KPIC'
19424 lt_prog_compiler_static_CXX='-Bstatic'
19425 ;;
19426 esac
John Criswell47fdd832003-07-14 16:52:07 +000019427 ;;
19428 vxworks*)
19429 ;;
19430 *)
19431 lt_prog_compiler_can_build_shared_CXX=no
19432 ;;
19433 esac
19434 fi
19435
Reid Spencera773bd52006-08-04 18:18:08 +000019436{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19437echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019438
19439#
19440# Check to make sure the PIC flag actually works.
19441#
19442if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019443
Reid Spencera773bd52006-08-04 18:18:08 +000019444{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19445echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019446if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19448else
19449 lt_prog_compiler_pic_works_CXX=no
19450 ac_outfile=conftest.$ac_objext
19451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19452 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19453 # Insert the option either (1) after the last *FLAGS variable, or
19454 # (2) before a word containing "conftest.", or (3) at the end.
19455 # Note that $ac_compile itself does not contain backslashes and begins
19456 # with a dollar sign (not a hyphen), so the echo should work correctly.
19457 # The option is referenced via a variable to avoid confusing sed.
19458 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19461 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000019462 (eval echo "\"\$as_me:19462: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019463 (eval "$lt_compile" 2>conftest.err)
19464 ac_status=$?
19465 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000019466 echo "$as_me:19466: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019467 if (exit $ac_status) && test -s "$ac_outfile"; then
19468 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019469 # So say no if there are warnings other than the usual output.
19470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019473 lt_prog_compiler_pic_works_CXX=yes
19474 fi
19475 fi
19476 $rm conftest*
19477
19478fi
Reid Spencera773bd52006-08-04 18:18:08 +000019479{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19480echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019481
19482if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19483 case $lt_prog_compiler_pic_CXX in
19484 "" | " "*) ;;
19485 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19486 esac
19487else
19488 lt_prog_compiler_pic_CXX=
19489 lt_prog_compiler_can_build_shared_CXX=no
19490fi
19491
19492fi
Reid Spencera773bd52006-08-04 18:18:08 +000019493case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019494 # For platforms which do not support PIC, -DPIC is meaningless:
19495 *djgpp*)
19496 lt_prog_compiler_pic_CXX=
19497 ;;
19498 *)
19499 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19500 ;;
19501esac
19502
Reid Spencera773bd52006-08-04 18:18:08 +000019503#
19504# Check to make sure the static flag actually works.
19505#
19506wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19507{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19508echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19509if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19511else
19512 lt_prog_compiler_static_works_CXX=no
19513 save_LDFLAGS="$LDFLAGS"
19514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19515 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19517 # The linker can only warn and ignore the option if not recognized
19518 # So say no if there are warnings
19519 if test -s conftest.err; then
19520 # Append any errors to the config.log.
19521 cat conftest.err 1>&5
19522 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19524 if diff conftest.exp conftest.er2 >/dev/null; then
19525 lt_prog_compiler_static_works_CXX=yes
19526 fi
19527 else
19528 lt_prog_compiler_static_works_CXX=yes
19529 fi
19530 fi
19531 $rm conftest*
19532 LDFLAGS="$save_LDFLAGS"
19533
19534fi
19535{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19536echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19537
19538if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19539 :
19540else
19541 lt_prog_compiler_static_CXX=
19542fi
19543
19544
19545{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19546echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019547if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549else
19550 lt_cv_prog_compiler_c_o_CXX=no
19551 $rm -r conftest 2>/dev/null
19552 mkdir conftest
19553 cd conftest
19554 mkdir out
19555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19556
John Criswell47fdd832003-07-14 16:52:07 +000019557 lt_compiler_flag="-o out/conftest2.$ac_objext"
19558 # Insert the option either (1) after the last *FLAGS variable, or
19559 # (2) before a word containing "conftest.", or (3) at the end.
19560 # Note that $ac_compile itself does not contain backslashes and begins
19561 # with a dollar sign (not a hyphen), so the echo should work correctly.
19562 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19565 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000019566 (eval echo "\"\$as_me:19566: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019567 (eval "$lt_compile" 2>out/conftest.err)
19568 ac_status=$?
19569 cat out/conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000019570 echo "$as_me:19570: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19572 then
19573 # The compiler can only warn and ignore the option if not recognized
19574 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019578 lt_cv_prog_compiler_c_o_CXX=yes
19579 fi
19580 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019581 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019582 $rm conftest*
19583 # SGI C++ compiler will create directory out/ii_files/ for
19584 # template instantiation
19585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19586 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019587 cd ..
19588 rmdir conftest
19589 $rm conftest*
19590
19591fi
Reid Spencera773bd52006-08-04 18:18:08 +000019592{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19593echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019594
19595
19596hard_links="nottested"
19597if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19598 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19600echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019601 hard_links=yes
19602 $rm conftest*
19603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19604 touch conftest.a
19605 ln conftest.a conftest.b 2>&5 || hard_links=no
19606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019607 { echo "$as_me:$LINENO: result: $hard_links" >&5
19608echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019609 if test "$hard_links" = no; then
19610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19611echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19612 need_locks=warn
19613 fi
19614else
19615 need_locks=no
19616fi
19617
Reid Spencera773bd52006-08-04 18:18:08 +000019618{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19619echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019620
19621 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19622 case $host_os in
19623 aix4* | aix5*)
19624 # If we're using GNU nm, then we don't want the "-C" option.
19625 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19626 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19627 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'
19628 else
19629 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'
19630 fi
19631 ;;
19632 pw32*)
19633 export_symbols_cmds_CXX="$ltdll_cmds"
19634 ;;
19635 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019636 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 +000019637 ;;
19638 *)
19639 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19640 ;;
19641 esac
19642
Reid Spencera773bd52006-08-04 18:18:08 +000019643{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19644echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019645test "$ld_shlibs_CXX" = no && can_build_shared=no
19646
John Criswell47fdd832003-07-14 16:52:07 +000019647#
19648# Do we need to explicitly link libc?
19649#
19650case "x$archive_cmds_need_lc_CXX" in
19651x|xyes)
19652 # Assume -lc should be added
19653 archive_cmds_need_lc_CXX=yes
19654
19655 if test "$enable_shared" = yes && test "$GCC" = yes; then
19656 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019657 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019658 # FIXME: we may have to deal with multi-command sequences.
19659 ;;
19660 '$CC '*)
19661 # Test whether the compiler implicitly links with -lc since on some
19662 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19663 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019664 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19665echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019666 $rm conftest*
19667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19668
19669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19670 (eval $ac_compile) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } 2>conftest.err; then
19674 soname=conftest
19675 lib=conftest
19676 libobjs=conftest.$ac_objext
19677 deplibs=
19678 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019679 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019680 compiler_flags=-v
19681 linker_flags=-v
19682 verstring=
19683 output_objdir=.
19684 libname=conftest
19685 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19686 allow_undefined_flag_CXX=
19687 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19688 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }
19692 then
19693 archive_cmds_need_lc_CXX=no
19694 else
19695 archive_cmds_need_lc_CXX=yes
19696 fi
19697 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19698 else
19699 cat conftest.err 1>&5
19700 fi
19701 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019702 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19703echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019704 ;;
19705 esac
19706 fi
19707 ;;
19708esac
19709
Reid Spencera773bd52006-08-04 18:18:08 +000019710{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19711echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019712library_names_spec=
19713libname_spec='lib$name'
19714soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019715shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019716postinstall_cmds=
19717postuninstall_cmds=
19718finish_cmds=
19719finish_eval=
19720shlibpath_var=
19721shlibpath_overrides_runpath=unknown
19722version_type=none
19723dynamic_linker="$host_os ld.so"
19724sys_lib_dlsearch_path_spec="/lib /usr/lib"
19725if test "$GCC" = yes; then
19726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19727 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19728 # if the path contains ";" then we assume it to be the separator
19729 # otherwise default to the standard path separator (i.e. ":") - it is
19730 # assumed that no part of a normal pathname contains ";" but that should
19731 # okay in the real world where ";" in dirpaths is itself problematic.
19732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19733 else
19734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19735 fi
19736else
19737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19738fi
19739need_lib_prefix=unknown
19740hardcode_into_libs=no
19741
19742# when you set need_version to no, make sure it does not cause -set_version
19743# flags to be left without arguments
19744need_version=unknown
19745
19746case $host_os in
19747aix3*)
19748 version_type=linux
19749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19750 shlibpath_var=LIBPATH
19751
19752 # AIX 3 has no versioning support, so we append a major version to the name.
19753 soname_spec='${libname}${release}${shared_ext}$major'
19754 ;;
19755
19756aix4* | aix5*)
19757 version_type=linux
19758 need_lib_prefix=no
19759 need_version=no
19760 hardcode_into_libs=yes
19761 if test "$host_cpu" = ia64; then
19762 # AIX 5 supports IA64
19763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19764 shlibpath_var=LD_LIBRARY_PATH
19765 else
19766 # With GCC up to 2.95.x, collect2 would create an import file
19767 # for dependence libraries. The import file would start with
19768 # the line `#! .'. This would cause the generated library to
19769 # depend on `.', always an invalid library. This was fixed in
19770 # development snapshots of GCC prior to 3.0.
19771 case $host_os in
19772 aix4 | aix4.[01] | aix4.[01].*)
19773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19774 echo ' yes '
19775 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19776 :
19777 else
19778 can_build_shared=no
19779 fi
19780 ;;
19781 esac
19782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19783 # soname into executable. Probably we can add versioning support to
19784 # collect2, so additional links can be useful in future.
19785 if test "$aix_use_runtimelinking" = yes; then
19786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19787 # instead of lib<name>.a to let people know that these are not
19788 # typical AIX shared libraries.
19789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19790 else
19791 # We preserve .a as extension for shared libraries through AIX4.2
19792 # and later when we are not doing run time linking.
19793 library_names_spec='${libname}${release}.a $libname.a'
19794 soname_spec='${libname}${release}${shared_ext}$major'
19795 fi
19796 shlibpath_var=LIBPATH
19797 fi
19798 ;;
19799
19800amigaos*)
19801 library_names_spec='$libname.ixlibrary $libname.a'
19802 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019803 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 +000019804 ;;
19805
19806beos*)
19807 library_names_spec='${libname}${shared_ext}'
19808 dynamic_linker="$host_os ld.so"
19809 shlibpath_var=LIBRARY_PATH
19810 ;;
19811
Reid Spencer2706f8c2004-09-19 23:53:36 +000019812bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019813 version_type=linux
19814 need_version=no
19815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19816 soname_spec='${libname}${release}${shared_ext}$major'
19817 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19818 shlibpath_var=LD_LIBRARY_PATH
19819 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19820 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19821 # the default ld.so.conf also contains /usr/contrib/lib and
19822 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19823 # libtool to hard-code these into programs
19824 ;;
19825
19826cygwin* | mingw* | pw32*)
19827 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019828 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019829 need_version=no
19830 need_lib_prefix=no
19831
19832 case $GCC,$host_os in
19833 yes,cygwin* | yes,mingw* | yes,pw32*)
19834 library_names_spec='$libname.dll.a'
19835 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019836 postinstall_cmds='base_file=`basename \${file}`~
19837 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19838 dldir=$destdir/`dirname \$dlpath`~
19839 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019840 $install_prog $dir/$dlname \$dldir/$dlname~
19841 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19843 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019844 $rm \$dlpath'
19845 shlibpath_overrides_runpath=yes
19846
19847 case $host_os in
19848 cygwin*)
19849 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19850 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 +000019851 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019852 ;;
19853 mingw*)
19854 # MinGW DLLs use traditional 'lib' prefix
19855 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19856 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19857 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19858 # It is most probably a Windows format PATH printed by
19859 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19860 # path with ; separators, and with drive letters. We can handle the
19861 # drive letters (cygwin fileutils understands them), so leave them,
19862 # especially as we might pass files found there to a mingw objdump,
19863 # which wouldn't understand a cygwinified path. Ahh.
19864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19865 else
19866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19867 fi
19868 ;;
19869 pw32*)
19870 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019871 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 +000019872 ;;
19873 esac
19874 ;;
19875
19876 *)
19877 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19878 ;;
19879 esac
19880 dynamic_linker='Win32 ld.exe'
19881 # FIXME: first we should search . and the directory the executable is in
19882 shlibpath_var=PATH
19883 ;;
19884
19885darwin* | rhapsody*)
19886 dynamic_linker="$host_os dyld"
19887 version_type=darwin
19888 need_lib_prefix=no
19889 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019890 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019891 soname_spec='${libname}${release}${major}$shared_ext'
19892 shlibpath_overrides_runpath=yes
19893 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019894 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019895 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019896 if test "$GCC" = yes; then
19897 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"`
19898 else
19899 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019900 fi
19901 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19902 ;;
19903
19904dgux*)
19905 version_type=linux
19906 need_lib_prefix=no
19907 need_version=no
19908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19909 soname_spec='${libname}${release}${shared_ext}$major'
19910 shlibpath_var=LD_LIBRARY_PATH
19911 ;;
19912
19913freebsd1*)
19914 dynamic_linker=no
19915 ;;
19916
Reid Spencer2706f8c2004-09-19 23:53:36 +000019917kfreebsd*-gnu)
19918 version_type=linux
19919 need_lib_prefix=no
19920 need_version=no
19921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19922 soname_spec='${libname}${release}${shared_ext}$major'
19923 shlibpath_var=LD_LIBRARY_PATH
19924 shlibpath_overrides_runpath=no
19925 hardcode_into_libs=yes
19926 dynamic_linker='GNU ld.so'
19927 ;;
19928
Reid Spencera773bd52006-08-04 18:18:08 +000019929freebsd* | dragonfly*)
19930 # DragonFly does not have aout. When/if they implement a new
19931 # versioning mechanism, adjust this.
19932 if test -x /usr/bin/objformat; then
19933 objformat=`/usr/bin/objformat`
19934 else
19935 case $host_os in
19936 freebsd[123]*) objformat=aout ;;
19937 *) objformat=elf ;;
19938 esac
19939 fi
John Criswell47fdd832003-07-14 16:52:07 +000019940 version_type=freebsd-$objformat
19941 case $version_type in
19942 freebsd-elf*)
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19944 need_version=no
19945 need_lib_prefix=no
19946 ;;
19947 freebsd-*)
19948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19949 need_version=yes
19950 ;;
19951 esac
19952 shlibpath_var=LD_LIBRARY_PATH
19953 case $host_os in
19954 freebsd2*)
19955 shlibpath_overrides_runpath=yes
19956 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019957 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019958 shlibpath_overrides_runpath=yes
19959 hardcode_into_libs=yes
19960 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019963 shlibpath_overrides_runpath=no
19964 hardcode_into_libs=yes
19965 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019966 freebsd*) # from 4.6 on
19967 shlibpath_overrides_runpath=yes
19968 hardcode_into_libs=yes
19969 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019970 esac
19971 ;;
19972
19973gnu*)
19974 version_type=linux
19975 need_lib_prefix=no
19976 need_version=no
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19978 soname_spec='${libname}${release}${shared_ext}$major'
19979 shlibpath_var=LD_LIBRARY_PATH
19980 hardcode_into_libs=yes
19981 ;;
19982
19983hpux9* | hpux10* | hpux11*)
19984 # Give a soname corresponding to the major version so that dld.sl refuses to
19985 # link against other versions.
19986 version_type=sunos
19987 need_lib_prefix=no
19988 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019989 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019990 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019991 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019992 hardcode_into_libs=yes
19993 dynamic_linker="$host_os dld.so"
19994 shlibpath_var=LD_LIBRARY_PATH
19995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 if test "X$HPUX_IA64_MODE" = X32; then
19999 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20000 else
20001 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20002 fi
20003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20004 ;;
20005 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020006 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020007 hardcode_into_libs=yes
20008 dynamic_linker="$host_os dld.sl"
20009 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012 soname_spec='${libname}${release}${shared_ext}$major'
20013 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20015 ;;
20016 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020017 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020018 dynamic_linker="$host_os dld.sl"
20019 shlibpath_var=SHLIB_PATH
20020 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec='${libname}${release}${shared_ext}$major'
20023 ;;
20024 esac
20025 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20026 postinstall_cmds='chmod 555 $lib'
20027 ;;
20028
Reid Spencera773bd52006-08-04 18:18:08 +000020029interix3*)
20030 version_type=linux
20031 need_lib_prefix=no
20032 need_version=no
20033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20036 shlibpath_var=LD_LIBRARY_PATH
20037 shlibpath_overrides_runpath=no
20038 hardcode_into_libs=yes
20039 ;;
20040
John Criswell47fdd832003-07-14 16:52:07 +000020041irix5* | irix6* | nonstopux*)
20042 case $host_os in
20043 nonstopux*) version_type=nonstopux ;;
20044 *)
20045 if test "$lt_cv_prog_gnu_ld" = yes; then
20046 version_type=linux
20047 else
20048 version_type=irix
20049 fi ;;
20050 esac
20051 need_lib_prefix=no
20052 need_version=no
20053 soname_spec='${libname}${release}${shared_ext}$major'
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20055 case $host_os in
20056 irix5* | nonstopux*)
20057 libsuff= shlibsuff=
20058 ;;
20059 *)
20060 case $LD in # libtool.m4 will add one of these switches to LD
20061 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20062 libsuff= shlibsuff= libmagic=32-bit;;
20063 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20064 libsuff=32 shlibsuff=N32 libmagic=N32;;
20065 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20066 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20067 *) libsuff= shlibsuff= libmagic=never-match;;
20068 esac
20069 ;;
20070 esac
20071 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20072 shlibpath_overrides_runpath=no
20073 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20074 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20075 hardcode_into_libs=yes
20076 ;;
20077
20078# No shared lib support for Linux oldld, aout, or coff.
20079linux*oldld* | linux*aout* | linux*coff*)
20080 dynamic_linker=no
20081 ;;
20082
20083# This must be Linux ELF.
20084linux*)
20085 version_type=linux
20086 need_lib_prefix=no
20087 need_version=no
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20089 soname_spec='${libname}${release}${shared_ext}$major'
20090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20091 shlibpath_var=LD_LIBRARY_PATH
20092 shlibpath_overrides_runpath=no
20093 # This implies no fast_install, which is unacceptable.
20094 # Some rework will be needed to allow for fast_install
20095 # before this can be enabled.
20096 hardcode_into_libs=yes
20097
Reid Spencer2706f8c2004-09-19 23:53:36 +000020098 # Append ld.so.conf contents to the search path
20099 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020100 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 +000020101 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20102 fi
20103
John Criswell47fdd832003-07-14 16:52:07 +000020104 # We used to test for /lib/ld.so.1 and disable shared libraries on
20105 # powerpc, because MkLinux only supported shared libraries with the
20106 # GNU dynamic linker. Since this was broken with cross compilers,
20107 # most powerpc-linux boxes support dynamic linking these days and
20108 # people can always --disable-shared, the test was removed, and we
20109 # assume the GNU/Linux dynamic linker is in use.
20110 dynamic_linker='GNU/Linux ld.so'
20111 ;;
20112
Reid Spencer2706f8c2004-09-19 23:53:36 +000020113knetbsd*-gnu)
20114 version_type=linux
20115 need_lib_prefix=no
20116 need_version=no
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20119 shlibpath_var=LD_LIBRARY_PATH
20120 shlibpath_overrides_runpath=no
20121 hardcode_into_libs=yes
20122 dynamic_linker='GNU ld.so'
20123 ;;
20124
John Criswell47fdd832003-07-14 16:52:07 +000020125netbsd*)
20126 version_type=sunos
20127 need_lib_prefix=no
20128 need_version=no
20129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20132 dynamic_linker='NetBSD (a.out) ld.so'
20133 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020135 soname_spec='${libname}${release}${shared_ext}$major'
20136 dynamic_linker='NetBSD ld.elf_so'
20137 fi
20138 shlibpath_var=LD_LIBRARY_PATH
20139 shlibpath_overrides_runpath=yes
20140 hardcode_into_libs=yes
20141 ;;
20142
20143newsos6)
20144 version_type=linux
20145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20146 shlibpath_var=LD_LIBRARY_PATH
20147 shlibpath_overrides_runpath=yes
20148 ;;
20149
Reid Spencer2706f8c2004-09-19 23:53:36 +000020150nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020151 version_type=linux
20152 need_lib_prefix=no
20153 need_version=no
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20155 soname_spec='${libname}${release}${shared_ext}$major'
20156 shlibpath_var=LD_LIBRARY_PATH
20157 shlibpath_overrides_runpath=yes
20158 ;;
20159
20160openbsd*)
20161 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020162 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020163 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020164 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20165 case $host_os in
20166 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20167 *) need_version=no ;;
20168 esac
John Criswell47fdd832003-07-14 16:52:07 +000020169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20171 shlibpath_var=LD_LIBRARY_PATH
20172 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20173 case $host_os in
20174 openbsd2.[89] | openbsd2.[89].*)
20175 shlibpath_overrides_runpath=no
20176 ;;
20177 *)
20178 shlibpath_overrides_runpath=yes
20179 ;;
20180 esac
20181 else
20182 shlibpath_overrides_runpath=yes
20183 fi
20184 ;;
20185
20186os2*)
20187 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020188 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020189 need_lib_prefix=no
20190 library_names_spec='$libname${shared_ext} $libname.a'
20191 dynamic_linker='OS/2 ld.exe'
20192 shlibpath_var=LIBPATH
20193 ;;
20194
20195osf3* | osf4* | osf5*)
20196 version_type=osf
20197 need_lib_prefix=no
20198 need_version=no
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201 shlibpath_var=LD_LIBRARY_PATH
20202 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20203 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20204 ;;
20205
John Criswell47fdd832003-07-14 16:52:07 +000020206solaris*)
20207 version_type=linux
20208 need_lib_prefix=no
20209 need_version=no
20210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20211 soname_spec='${libname}${release}${shared_ext}$major'
20212 shlibpath_var=LD_LIBRARY_PATH
20213 shlibpath_overrides_runpath=yes
20214 hardcode_into_libs=yes
20215 # ldd complains unless libraries are executable
20216 postinstall_cmds='chmod +x $lib'
20217 ;;
20218
20219sunos4*)
20220 version_type=sunos
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20223 shlibpath_var=LD_LIBRARY_PATH
20224 shlibpath_overrides_runpath=yes
20225 if test "$with_gnu_ld" = yes; then
20226 need_lib_prefix=no
20227 fi
20228 need_version=yes
20229 ;;
20230
Reid Spencera773bd52006-08-04 18:18:08 +000020231sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020232 version_type=linux
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 shlibpath_var=LD_LIBRARY_PATH
20236 case $host_vendor in
20237 sni)
20238 shlibpath_overrides_runpath=no
20239 need_lib_prefix=no
20240 export_dynamic_flag_spec='${wl}-Blargedynsym'
20241 runpath_var=LD_RUN_PATH
20242 ;;
20243 siemens)
20244 need_lib_prefix=no
20245 ;;
20246 motorola)
20247 need_lib_prefix=no
20248 need_version=no
20249 shlibpath_overrides_runpath=no
20250 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20251 ;;
20252 esac
20253 ;;
20254
20255sysv4*MP*)
20256 if test -d /usr/nec ;then
20257 version_type=linux
20258 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20259 soname_spec='$libname${shared_ext}.$major'
20260 shlibpath_var=LD_LIBRARY_PATH
20261 fi
20262 ;;
20263
Reid Spencera773bd52006-08-04 18:18:08 +000020264sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20265 version_type=freebsd-elf
20266 need_lib_prefix=no
20267 need_version=no
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20269 soname_spec='${libname}${release}${shared_ext}$major'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 hardcode_into_libs=yes
20272 if test "$with_gnu_ld" = yes; then
20273 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20274 shlibpath_overrides_runpath=no
20275 else
20276 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20277 shlibpath_overrides_runpath=yes
20278 case $host_os in
20279 sco3.2v5*)
20280 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20281 ;;
20282 esac
20283 fi
20284 sys_lib_dlsearch_path_spec='/usr/lib'
20285 ;;
20286
John Criswell47fdd832003-07-14 16:52:07 +000020287uts4*)
20288 version_type=linux
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 ;;
20293
20294*)
20295 dynamic_linker=no
20296 ;;
20297esac
Reid Spencera773bd52006-08-04 18:18:08 +000020298{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20299echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020300test "$dynamic_linker" = no && can_build_shared=no
20301
Reid Spencera773bd52006-08-04 18:18:08 +000020302variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20303if test "$GCC" = yes; then
20304 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20305fi
20306
20307{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20308echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020309hardcode_action_CXX=
20310if test -n "$hardcode_libdir_flag_spec_CXX" || \
20311 test -n "$runpath_var_CXX" || \
20312 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20313
20314 # We can hardcode non-existant directories.
20315 if test "$hardcode_direct_CXX" != no &&
20316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20317 # have to relink, otherwise we might link with an installed library
20318 # when we should be linking with a yet-to-be-installed one
20319 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20320 test "$hardcode_minus_L_CXX" != no; then
20321 # Linking always hardcodes the temporary library directory.
20322 hardcode_action_CXX=relink
20323 else
20324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20325 hardcode_action_CXX=immediate
20326 fi
20327else
20328 # We cannot hardcode anything, or else we can only hardcode existing
20329 # directories.
20330 hardcode_action_CXX=unsupported
20331fi
Reid Spencera773bd52006-08-04 18:18:08 +000020332{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20333echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020334
20335if test "$hardcode_action_CXX" = relink; then
20336 # Fast installation is not supported
20337 enable_fast_install=no
20338elif test "$shlibpath_overrides_runpath" = yes ||
20339 test "$enable_shared" = no; then
20340 # Fast installation is not necessary
20341 enable_fast_install=needless
20342fi
20343
John Criswell47fdd832003-07-14 16:52:07 +000020344
20345# The else clause should only fire when bootstrapping the
20346# libtool distribution, otherwise you forgot to ship ltmain.sh
20347# with your package, and you will get complaints that there are
20348# no rules to generate ltmain.sh.
20349if test -f "$ltmain"; then
20350 # See if we are running on zsh, and set the options which allow our commands through
20351 # without removal of \ escapes.
20352 if test -n "${ZSH_VERSION+set}" ; then
20353 setopt NO_GLOB_SUBST
20354 fi
20355 # Now quote all the things that may contain metacharacters while being
20356 # careful not to overquote the AC_SUBSTed values. We take copies of the
20357 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020358 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 +000020359 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020360 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20361 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20362 deplibs_check_method reload_flag reload_cmds need_locks \
20363 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20364 lt_cv_sys_global_symbol_to_c_name_address \
20365 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20366 old_postinstall_cmds old_postuninstall_cmds \
20367 compiler_CXX \
20368 CC_CXX \
20369 LD_CXX \
20370 lt_prog_compiler_wl_CXX \
20371 lt_prog_compiler_pic_CXX \
20372 lt_prog_compiler_static_CXX \
20373 lt_prog_compiler_no_builtin_flag_CXX \
20374 export_dynamic_flag_spec_CXX \
20375 thread_safe_flag_spec_CXX \
20376 whole_archive_flag_spec_CXX \
20377 enable_shared_with_static_runtimes_CXX \
20378 old_archive_cmds_CXX \
20379 old_archive_from_new_cmds_CXX \
20380 predep_objects_CXX \
20381 postdep_objects_CXX \
20382 predeps_CXX \
20383 postdeps_CXX \
20384 compiler_lib_search_path_CXX \
20385 archive_cmds_CXX \
20386 archive_expsym_cmds_CXX \
20387 postinstall_cmds_CXX \
20388 postuninstall_cmds_CXX \
20389 old_archive_from_expsyms_cmds_CXX \
20390 allow_undefined_flag_CXX \
20391 no_undefined_flag_CXX \
20392 export_symbols_cmds_CXX \
20393 hardcode_libdir_flag_spec_CXX \
20394 hardcode_libdir_flag_spec_ld_CXX \
20395 hardcode_libdir_separator_CXX \
20396 hardcode_automatic_CXX \
20397 module_cmds_CXX \
20398 module_expsym_cmds_CXX \
20399 lt_cv_prog_compiler_c_o_CXX \
20400 exclude_expsyms_CXX \
20401 include_expsyms_CXX; do
20402
20403 case $var in
20404 old_archive_cmds_CXX | \
20405 old_archive_from_new_cmds_CXX | \
20406 archive_cmds_CXX | \
20407 archive_expsym_cmds_CXX | \
20408 module_cmds_CXX | \
20409 module_expsym_cmds_CXX | \
20410 old_archive_from_expsyms_cmds_CXX | \
20411 export_symbols_cmds_CXX | \
20412 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20413 postinstall_cmds | postuninstall_cmds | \
20414 old_postinstall_cmds | old_postuninstall_cmds | \
20415 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20416 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020417 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 +000020418 ;;
20419 *)
20420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20421 ;;
20422 esac
20423 done
20424
20425 case $lt_echo in
20426 *'\$0 --fallback-echo"')
20427 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20428 ;;
20429 esac
20430
20431cfgfile="$ofile"
20432
20433 cat <<__EOF__ >> "$cfgfile"
20434# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20435
20436# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20437
20438# Shell to use when invoking shell scripts.
20439SHELL=$lt_SHELL
20440
20441# Whether or not to build shared libraries.
20442build_libtool_libs=$enable_shared
20443
20444# Whether or not to build static libraries.
20445build_old_libs=$enable_static
20446
20447# Whether or not to add -lc for building shared libraries.
20448build_libtool_need_lc=$archive_cmds_need_lc_CXX
20449
20450# Whether or not to disallow shared libs when runtime libs are static
20451allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20452
20453# Whether or not to optimize for fast installation.
20454fast_install=$enable_fast_install
20455
20456# The host system.
20457host_alias=$host_alias
20458host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020459host_os=$host_os
20460
20461# The build system.
20462build_alias=$build_alias
20463build=$build
20464build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020465
20466# An echo program that does not interpret backslashes.
20467echo=$lt_echo
20468
20469# The archiver.
20470AR=$lt_AR
20471AR_FLAGS=$lt_AR_FLAGS
20472
20473# A C compiler.
20474LTCC=$lt_LTCC
20475
Reid Spencera773bd52006-08-04 18:18:08 +000020476# LTCC compiler flags.
20477LTCFLAGS=$lt_LTCFLAGS
20478
John Criswell47fdd832003-07-14 16:52:07 +000020479# A language-specific compiler.
20480CC=$lt_compiler_CXX
20481
20482# Is the compiler the GNU C compiler?
20483with_gcc=$GCC_CXX
20484
20485# An ERE matcher.
20486EGREP=$lt_EGREP
20487
20488# The linker used to build libraries.
20489LD=$lt_LD_CXX
20490
20491# Whether we need hard or soft links.
20492LN_S=$lt_LN_S
20493
20494# A BSD-compatible nm program.
20495NM=$lt_NM
20496
20497# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020498STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020499
20500# Used to examine libraries when file_magic_cmd begins "file"
20501MAGIC_CMD=$MAGIC_CMD
20502
20503# Used on cygwin: DLL creation program.
20504DLLTOOL="$DLLTOOL"
20505
20506# Used on cygwin: object dumper.
20507OBJDUMP="$OBJDUMP"
20508
20509# Used on cygwin: assembler.
20510AS="$AS"
20511
20512# The name of the directory that contains temporary libtool files.
20513objdir=$objdir
20514
20515# How to create reloadable object files.
20516reload_flag=$lt_reload_flag
20517reload_cmds=$lt_reload_cmds
20518
20519# How to pass a linker flag through the compiler.
20520wl=$lt_lt_prog_compiler_wl_CXX
20521
20522# Object file suffix (normally "o").
20523objext="$ac_objext"
20524
20525# Old archive suffix (normally "a").
20526libext="$libext"
20527
20528# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020529shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020530
20531# Executable file suffix (normally "").
20532exeext="$exeext"
20533
20534# Additional compiler flags for building library objects.
20535pic_flag=$lt_lt_prog_compiler_pic_CXX
20536pic_mode=$pic_mode
20537
20538# What is the maximum length of a command?
20539max_cmd_len=$lt_cv_sys_max_cmd_len
20540
20541# Does compiler simultaneously support -c and -o options?
20542compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20543
Reid Spencera773bd52006-08-04 18:18:08 +000020544# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020545need_locks=$lt_need_locks
20546
20547# Do we need the lib prefix for modules?
20548need_lib_prefix=$need_lib_prefix
20549
20550# Do we need a version for libraries?
20551need_version=$need_version
20552
20553# Whether dlopen is supported.
20554dlopen_support=$enable_dlopen
20555
20556# Whether dlopen of programs is supported.
20557dlopen_self=$enable_dlopen_self
20558
20559# Whether dlopen of statically linked programs is supported.
20560dlopen_self_static=$enable_dlopen_self_static
20561
20562# Compiler flag to prevent dynamic linking.
20563link_static_flag=$lt_lt_prog_compiler_static_CXX
20564
20565# Compiler flag to turn off builtin functions.
20566no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20567
20568# Compiler flag to allow reflexive dlopens.
20569export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20570
20571# Compiler flag to generate shared objects directly from archives.
20572whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20573
20574# Compiler flag to generate thread-safe objects.
20575thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20576
20577# Library versioning type.
20578version_type=$version_type
20579
20580# Format of library name prefix.
20581libname_spec=$lt_libname_spec
20582
20583# List of archive names. First name is the real one, the rest are links.
20584# The last name is the one that the linker finds with -lNAME.
20585library_names_spec=$lt_library_names_spec
20586
20587# The coded name of the library, if different from the real name.
20588soname_spec=$lt_soname_spec
20589
20590# Commands used to build and install an old-style archive.
20591RANLIB=$lt_RANLIB
20592old_archive_cmds=$lt_old_archive_cmds_CXX
20593old_postinstall_cmds=$lt_old_postinstall_cmds
20594old_postuninstall_cmds=$lt_old_postuninstall_cmds
20595
20596# Create an old-style archive from a shared archive.
20597old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20598
20599# Create a temporary old-style archive to link instead of a shared archive.
20600old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20601
20602# Commands used to build and install a shared archive.
20603archive_cmds=$lt_archive_cmds_CXX
20604archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20605postinstall_cmds=$lt_postinstall_cmds
20606postuninstall_cmds=$lt_postuninstall_cmds
20607
20608# Commands used to build a loadable module (assumed same as above if empty)
20609module_cmds=$lt_module_cmds_CXX
20610module_expsym_cmds=$lt_module_expsym_cmds_CXX
20611
20612# Commands to strip libraries.
20613old_striplib=$lt_old_striplib
20614striplib=$lt_striplib
20615
20616# Dependencies to place before the objects being linked to create a
20617# shared library.
20618predep_objects=$lt_predep_objects_CXX
20619
20620# Dependencies to place after the objects being linked to create a
20621# shared library.
20622postdep_objects=$lt_postdep_objects_CXX
20623
20624# Dependencies to place before the objects being linked to create a
20625# shared library.
20626predeps=$lt_predeps_CXX
20627
20628# Dependencies to place after the objects being linked to create a
20629# shared library.
20630postdeps=$lt_postdeps_CXX
20631
20632# The library search path used internally by the compiler when linking
20633# a shared library.
20634compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20635
20636# Method to check whether dependent libraries are shared objects.
20637deplibs_check_method=$lt_deplibs_check_method
20638
20639# Command to use when deplibs_check_method == file_magic.
20640file_magic_cmd=$lt_file_magic_cmd
20641
20642# Flag that allows shared libraries with undefined symbols to be built.
20643allow_undefined_flag=$lt_allow_undefined_flag_CXX
20644
20645# Flag that forces no undefined symbols.
20646no_undefined_flag=$lt_no_undefined_flag_CXX
20647
20648# Commands used to finish a libtool library installation in a directory.
20649finish_cmds=$lt_finish_cmds
20650
20651# Same as above, but a single script fragment to be evaled but not shown.
20652finish_eval=$lt_finish_eval
20653
20654# Take the output of nm and produce a listing of raw symbols and C names.
20655global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20656
20657# Transform the output of nm in a proper C declaration
20658global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20659
20660# Transform the output of nm in a C name address pair
20661global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20662
20663# This is the shared library runtime path variable.
20664runpath_var=$runpath_var
20665
20666# This is the shared library path variable.
20667shlibpath_var=$shlibpath_var
20668
20669# Is shlibpath searched before the hard-coded library search path?
20670shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20671
20672# How to hardcode a shared library path into an executable.
20673hardcode_action=$hardcode_action_CXX
20674
20675# Whether we should hardcode library paths into libraries.
20676hardcode_into_libs=$hardcode_into_libs
20677
20678# Flag to hardcode \$libdir into a binary during linking.
20679# This must work even if \$libdir does not exist.
20680hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20681
20682# If ld is used when linking, flag to hardcode \$libdir into
20683# a binary during linking. This must work even if \$libdir does
20684# not exist.
20685hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20686
20687# Whether we need a single -rpath flag with a separated argument.
20688hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20689
20690# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20691# resulting binary.
20692hardcode_direct=$hardcode_direct_CXX
20693
20694# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20695# resulting binary.
20696hardcode_minus_L=$hardcode_minus_L_CXX
20697
20698# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20699# the resulting binary.
20700hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20701
20702# Set to yes if building a shared library automatically hardcodes DIR into the library
20703# and all subsequent libraries and executables linked against it.
20704hardcode_automatic=$hardcode_automatic_CXX
20705
20706# Variables whose values should be saved in libtool wrapper scripts and
20707# restored at relink time.
20708variables_saved_for_relink="$variables_saved_for_relink"
20709
20710# Whether libtool must link a program against all its dependency libraries.
20711link_all_deplibs=$link_all_deplibs_CXX
20712
20713# Compile-time system search path for libraries
20714sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20715
20716# Run-time system search path for libraries
20717sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20718
20719# Fix the shell variable \$srcfile for the compiler.
20720fix_srcfile_path="$fix_srcfile_path_CXX"
20721
20722# Set to yes if exported symbols are required.
20723always_export_symbols=$always_export_symbols_CXX
20724
20725# The commands to list exported symbols.
20726export_symbols_cmds=$lt_export_symbols_cmds_CXX
20727
20728# The commands to extract the exported symbol list from a shared archive.
20729extract_expsyms_cmds=$lt_extract_expsyms_cmds
20730
20731# Symbols that should not be listed in the preloaded symbols.
20732exclude_expsyms=$lt_exclude_expsyms_CXX
20733
20734# Symbols that must always be exported.
20735include_expsyms=$lt_include_expsyms_CXX
20736
20737# ### END LIBTOOL TAG CONFIG: $tagname
20738
20739__EOF__
20740
20741
20742else
20743 # If there is no Makefile yet, we rely on a make rule to execute
20744 # `config.status --recheck' to rerun these tests and create the
20745 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020746 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20747 if test -f "$ltmain_in"; then
20748 test -f Makefile && make "$ltmain"
20749 fi
John Criswell47fdd832003-07-14 16:52:07 +000020750fi
20751
20752
20753ac_ext=c
20754ac_cpp='$CPP $CPPFLAGS'
20755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757ac_compiler_gnu=$ac_cv_c_compiler_gnu
20758
20759CC=$lt_save_CC
20760LDCXX=$LD
20761LD=$lt_save_LD
20762GCC=$lt_save_GCC
20763with_gnu_ldcxx=$with_gnu_ld
20764with_gnu_ld=$lt_save_with_gnu_ld
20765lt_cv_path_LDCXX=$lt_cv_path_LD
20766lt_cv_path_LD=$lt_save_path_LD
20767lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20768lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20769
20770 else
20771 tagname=""
20772 fi
20773 ;;
20774
20775 F77)
20776 if test -n "$F77" && test "X$F77" != "Xno"; then
20777
20778ac_ext=f
20779ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20780ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20782
20783
20784archive_cmds_need_lc_F77=no
20785allow_undefined_flag_F77=
20786always_export_symbols_F77=no
20787archive_expsym_cmds_F77=
20788export_dynamic_flag_spec_F77=
20789hardcode_direct_F77=no
20790hardcode_libdir_flag_spec_F77=
20791hardcode_libdir_flag_spec_ld_F77=
20792hardcode_libdir_separator_F77=
20793hardcode_minus_L_F77=no
20794hardcode_automatic_F77=no
20795module_cmds_F77=
20796module_expsym_cmds_F77=
20797link_all_deplibs_F77=unknown
20798old_archive_cmds_F77=$old_archive_cmds
20799no_undefined_flag_F77=
20800whole_archive_flag_spec_F77=
20801enable_shared_with_static_runtimes_F77=no
20802
20803# Source file extension for f77 test sources.
20804ac_ext=f
20805
20806# Object file extension for compiled f77 test sources.
20807objext=o
20808objext_F77=$objext
20809
20810# Code to be used in simple compile tests
20811lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20812
20813# Code to be used in simple link tests
20814lt_simple_link_test_code=" program t\n end\n"
20815
20816# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20817
20818# If no C compiler was specified, use CC.
20819LTCC=${LTCC-"$CC"}
20820
Reid Spencera773bd52006-08-04 18:18:08 +000020821# If no C compiler flags were specified, use CFLAGS.
20822LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20823
John Criswell47fdd832003-07-14 16:52:07 +000020824# Allow CC to be a program name with arguments.
20825compiler=$CC
20826
20827
Reid Spencera773bd52006-08-04 18:18:08 +000020828# save warnings/boilerplate of simple test code
20829ac_outfile=conftest.$ac_objext
20830printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20831eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20832_lt_compiler_boilerplate=`cat conftest.err`
20833$rm conftest*
20834
20835ac_outfile=conftest.$ac_objext
20836printf "$lt_simple_link_test_code" >conftest.$ac_ext
20837eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20838_lt_linker_boilerplate=`cat conftest.err`
20839$rm conftest*
20840
20841
John Criswell47fdd832003-07-14 16:52:07 +000020842# Allow CC to be a program name with arguments.
20843lt_save_CC="$CC"
20844CC=${F77-"f77"}
20845compiler=$CC
20846compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020847for cc_temp in $compiler""; do
20848 case $cc_temp in
20849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20851 \-*) ;;
20852 *) break;;
20853 esac
20854done
20855cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020856
John Criswell47fdd832003-07-14 16:52:07 +000020857
Reid Spencera773bd52006-08-04 18:18:08 +000020858{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20859echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20860{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20861echo "${ECHO_T}$can_build_shared" >&6; }
20862
20863{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20864echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020865test "$can_build_shared" = "no" && enable_shared=no
20866
20867# On AIX, shared libraries and static libraries use the same namespace, and
20868# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020869case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020870aix3*)
20871 test "$enable_shared" = yes && enable_static=no
20872 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020873 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020874 postinstall_cmds='$RANLIB $lib'
20875 fi
20876 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020877aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020878 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20879 test "$enable_shared" = yes && enable_static=no
20880 fi
John Criswell47fdd832003-07-14 16:52:07 +000020881 ;;
20882esac
Reid Spencera773bd52006-08-04 18:18:08 +000020883{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20884echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020885
Reid Spencera773bd52006-08-04 18:18:08 +000020886{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20887echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020888# Make sure either enable_shared or enable_static is yes.
20889test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020890{ echo "$as_me:$LINENO: result: $enable_static" >&5
20891echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020892
20893GCC_F77="$G77"
20894LD_F77="$LD"
20895
20896lt_prog_compiler_wl_F77=
20897lt_prog_compiler_pic_F77=
20898lt_prog_compiler_static_F77=
20899
Reid Spencera773bd52006-08-04 18:18:08 +000020900{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20901echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020902
20903 if test "$GCC" = yes; then
20904 lt_prog_compiler_wl_F77='-Wl,'
20905 lt_prog_compiler_static_F77='-static'
20906
20907 case $host_os in
20908 aix*)
20909 # All AIX code is PIC.
20910 if test "$host_cpu" = ia64; then
20911 # AIX 5 now supports IA64 processor
20912 lt_prog_compiler_static_F77='-Bstatic'
20913 fi
20914 ;;
20915
20916 amigaos*)
20917 # FIXME: we need at least 68020 code to build shared libraries, but
20918 # adding the `-m68020' flag to GCC prevents building anything better,
20919 # like `-m68040'.
20920 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20921 ;;
20922
20923 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20924 # PIC is the default for these OSes.
20925 ;;
20926
20927 mingw* | pw32* | os2*)
20928 # This hack is so that the source file can tell whether it is being
20929 # built for inclusion in a dll (and should export symbols for example).
20930 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20931 ;;
20932
20933 darwin* | rhapsody*)
20934 # PIC is the default on this platform
20935 # Common symbols not allowed in MH_DYLIB files
20936 lt_prog_compiler_pic_F77='-fno-common'
20937 ;;
20938
Reid Spencera773bd52006-08-04 18:18:08 +000020939 interix3*)
20940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20941 # Instead, we relocate shared libraries at runtime.
20942 ;;
20943
John Criswell47fdd832003-07-14 16:52:07 +000020944 msdosdjgpp*)
20945 # Just because we use GCC doesn't mean we suddenly get shared libraries
20946 # on systems that don't support them.
20947 lt_prog_compiler_can_build_shared_F77=no
20948 enable_shared=no
20949 ;;
20950
20951 sysv4*MP*)
20952 if test -d /usr/nec; then
20953 lt_prog_compiler_pic_F77=-Kconform_pic
20954 fi
20955 ;;
20956
20957 hpux*)
20958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20959 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020960 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020961 hppa*64*|ia64*)
20962 # +Z the default
20963 ;;
20964 *)
20965 lt_prog_compiler_pic_F77='-fPIC'
20966 ;;
20967 esac
20968 ;;
20969
20970 *)
20971 lt_prog_compiler_pic_F77='-fPIC'
20972 ;;
20973 esac
20974 else
20975 # PORTME Check for flag to pass linker flags through the system compiler.
20976 case $host_os in
20977 aix*)
20978 lt_prog_compiler_wl_F77='-Wl,'
20979 if test "$host_cpu" = ia64; then
20980 # AIX 5 now supports IA64 processor
20981 lt_prog_compiler_static_F77='-Bstatic'
20982 else
20983 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20984 fi
20985 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020986 darwin*)
20987 # PIC is the default on this platform
20988 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020989 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020990 xlc*)
20991 lt_prog_compiler_pic_F77='-qnocommon'
20992 lt_prog_compiler_wl_F77='-Wl,'
20993 ;;
20994 esac
20995 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020996
20997 mingw* | pw32* | os2*)
20998 # This hack is so that the source file can tell whether it is being
20999 # built for inclusion in a dll (and should export symbols for example).
21000 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21001 ;;
21002
21003 hpux9* | hpux10* | hpux11*)
21004 lt_prog_compiler_wl_F77='-Wl,'
21005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21006 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021007 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021008 hppa*64*|ia64*)
21009 # +Z the default
21010 ;;
21011 *)
21012 lt_prog_compiler_pic_F77='+Z'
21013 ;;
21014 esac
21015 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21016 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21017 ;;
21018
21019 irix5* | irix6* | nonstopux*)
21020 lt_prog_compiler_wl_F77='-Wl,'
21021 # PIC (with -KPIC) is the default.
21022 lt_prog_compiler_static_F77='-non_shared'
21023 ;;
21024
21025 newsos6)
21026 lt_prog_compiler_pic_F77='-KPIC'
21027 lt_prog_compiler_static_F77='-Bstatic'
21028 ;;
21029
21030 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021031 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021032 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021033 lt_prog_compiler_wl_F77='-Wl,'
21034 lt_prog_compiler_pic_F77='-KPIC'
21035 lt_prog_compiler_static_F77='-static'
21036 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021037 pgcc* | pgf77* | pgf90* | pgf95*)
21038 # Portland Group compilers (*not* the Pentium gcc compiler,
21039 # which looks to be a dead project)
21040 lt_prog_compiler_wl_F77='-Wl,'
21041 lt_prog_compiler_pic_F77='-fpic'
21042 lt_prog_compiler_static_F77='-Bstatic'
21043 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021044 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021045 lt_prog_compiler_wl_F77='-Wl,'
21046 # All Alpha code is PIC.
21047 lt_prog_compiler_static_F77='-non_shared'
21048 ;;
21049 esac
21050 ;;
21051
21052 osf3* | osf4* | osf5*)
21053 lt_prog_compiler_wl_F77='-Wl,'
21054 # All OSF/1 code is PIC.
21055 lt_prog_compiler_static_F77='-non_shared'
21056 ;;
21057
John Criswell47fdd832003-07-14 16:52:07 +000021058 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021059 lt_prog_compiler_pic_F77='-KPIC'
21060 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021061 case $cc_basename in
21062 f77* | f90* | f95*)
21063 lt_prog_compiler_wl_F77='-Qoption ld ';;
21064 *)
21065 lt_prog_compiler_wl_F77='-Wl,';;
21066 esac
John Criswell47fdd832003-07-14 16:52:07 +000021067 ;;
21068
21069 sunos4*)
21070 lt_prog_compiler_wl_F77='-Qoption ld '
21071 lt_prog_compiler_pic_F77='-PIC'
21072 lt_prog_compiler_static_F77='-Bstatic'
21073 ;;
21074
Reid Spencera773bd52006-08-04 18:18:08 +000021075 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021076 lt_prog_compiler_wl_F77='-Wl,'
21077 lt_prog_compiler_pic_F77='-KPIC'
21078 lt_prog_compiler_static_F77='-Bstatic'
21079 ;;
21080
21081 sysv4*MP*)
21082 if test -d /usr/nec ;then
21083 lt_prog_compiler_pic_F77='-Kconform_pic'
21084 lt_prog_compiler_static_F77='-Bstatic'
21085 fi
21086 ;;
21087
Reid Spencera773bd52006-08-04 18:18:08 +000021088 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21089 lt_prog_compiler_wl_F77='-Wl,'
21090 lt_prog_compiler_pic_F77='-KPIC'
21091 lt_prog_compiler_static_F77='-Bstatic'
21092 ;;
21093
21094 unicos*)
21095 lt_prog_compiler_wl_F77='-Wl,'
21096 lt_prog_compiler_can_build_shared_F77=no
21097 ;;
21098
John Criswell47fdd832003-07-14 16:52:07 +000021099 uts4*)
21100 lt_prog_compiler_pic_F77='-pic'
21101 lt_prog_compiler_static_F77='-Bstatic'
21102 ;;
21103
21104 *)
21105 lt_prog_compiler_can_build_shared_F77=no
21106 ;;
21107 esac
21108 fi
21109
Reid Spencera773bd52006-08-04 18:18:08 +000021110{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21111echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021112
21113#
21114# Check to make sure the PIC flag actually works.
21115#
21116if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021117
Reid Spencera773bd52006-08-04 18:18:08 +000021118{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21119echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021120if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122else
21123 lt_prog_compiler_pic_works_F77=no
21124 ac_outfile=conftest.$ac_objext
21125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21126 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21127 # Insert the option either (1) after the last *FLAGS variable, or
21128 # (2) before a word containing "conftest.", or (3) at the end.
21129 # Note that $ac_compile itself does not contain backslashes and begins
21130 # with a dollar sign (not a hyphen), so the echo should work correctly.
21131 # The option is referenced via a variable to avoid confusing sed.
21132 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21135 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000021136 (eval echo "\"\$as_me:21136: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021137 (eval "$lt_compile" 2>conftest.err)
21138 ac_status=$?
21139 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000021140 echo "$as_me:21140: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021141 if (exit $ac_status) && test -s "$ac_outfile"; then
21142 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021143 # So say no if there are warnings other than the usual output.
21144 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021147 lt_prog_compiler_pic_works_F77=yes
21148 fi
21149 fi
21150 $rm conftest*
21151
21152fi
Reid Spencera773bd52006-08-04 18:18:08 +000021153{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21154echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021155
21156if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21157 case $lt_prog_compiler_pic_F77 in
21158 "" | " "*) ;;
21159 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21160 esac
21161else
21162 lt_prog_compiler_pic_F77=
21163 lt_prog_compiler_can_build_shared_F77=no
21164fi
21165
21166fi
Reid Spencera773bd52006-08-04 18:18:08 +000021167case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021168 # For platforms which do not support PIC, -DPIC is meaningless:
21169 *djgpp*)
21170 lt_prog_compiler_pic_F77=
21171 ;;
21172 *)
21173 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21174 ;;
21175esac
21176
Reid Spencera773bd52006-08-04 18:18:08 +000021177#
21178# Check to make sure the static flag actually works.
21179#
21180wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21181{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21182echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21183if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185else
21186 lt_prog_compiler_static_works_F77=no
21187 save_LDFLAGS="$LDFLAGS"
21188 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21189 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21191 # The linker can only warn and ignore the option if not recognized
21192 # So say no if there are warnings
21193 if test -s conftest.err; then
21194 # Append any errors to the config.log.
21195 cat conftest.err 1>&5
21196 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21198 if diff conftest.exp conftest.er2 >/dev/null; then
21199 lt_prog_compiler_static_works_F77=yes
21200 fi
21201 else
21202 lt_prog_compiler_static_works_F77=yes
21203 fi
21204 fi
21205 $rm conftest*
21206 LDFLAGS="$save_LDFLAGS"
21207
21208fi
21209{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21210echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21211
21212if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21213 :
21214else
21215 lt_prog_compiler_static_F77=
21216fi
21217
21218
21219{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21220echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021221if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223else
21224 lt_cv_prog_compiler_c_o_F77=no
21225 $rm -r conftest 2>/dev/null
21226 mkdir conftest
21227 cd conftest
21228 mkdir out
21229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21230
John Criswell47fdd832003-07-14 16:52:07 +000021231 lt_compiler_flag="-o out/conftest2.$ac_objext"
21232 # Insert the option either (1) after the last *FLAGS variable, or
21233 # (2) before a word containing "conftest.", or (3) at the end.
21234 # Note that $ac_compile itself does not contain backslashes and begins
21235 # with a dollar sign (not a hyphen), so the echo should work correctly.
21236 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21239 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000021240 (eval echo "\"\$as_me:21240: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021241 (eval "$lt_compile" 2>out/conftest.err)
21242 ac_status=$?
21243 cat out/conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000021244 echo "$as_me:21244: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21246 then
21247 # The compiler can only warn and ignore the option if not recognized
21248 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021249 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021252 lt_cv_prog_compiler_c_o_F77=yes
21253 fi
21254 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021255 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021256 $rm conftest*
21257 # SGI C++ compiler will create directory out/ii_files/ for
21258 # template instantiation
21259 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21260 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021261 cd ..
21262 rmdir conftest
21263 $rm conftest*
21264
21265fi
Reid Spencera773bd52006-08-04 18:18:08 +000021266{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21267echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021268
21269
21270hard_links="nottested"
21271if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21272 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021273 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21274echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021275 hard_links=yes
21276 $rm conftest*
21277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21278 touch conftest.a
21279 ln conftest.a conftest.b 2>&5 || hard_links=no
21280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021281 { echo "$as_me:$LINENO: result: $hard_links" >&5
21282echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021283 if test "$hard_links" = no; then
21284 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21285echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21286 need_locks=warn
21287 fi
21288else
21289 need_locks=no
21290fi
21291
Reid Spencera773bd52006-08-04 18:18:08 +000021292{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21293echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021294
21295 runpath_var=
21296 allow_undefined_flag_F77=
21297 enable_shared_with_static_runtimes_F77=no
21298 archive_cmds_F77=
21299 archive_expsym_cmds_F77=
21300 old_archive_From_new_cmds_F77=
21301 old_archive_from_expsyms_cmds_F77=
21302 export_dynamic_flag_spec_F77=
21303 whole_archive_flag_spec_F77=
21304 thread_safe_flag_spec_F77=
21305 hardcode_libdir_flag_spec_F77=
21306 hardcode_libdir_flag_spec_ld_F77=
21307 hardcode_libdir_separator_F77=
21308 hardcode_direct_F77=no
21309 hardcode_minus_L_F77=no
21310 hardcode_shlibpath_var_F77=unsupported
21311 link_all_deplibs_F77=unknown
21312 hardcode_automatic_F77=no
21313 module_cmds_F77=
21314 module_expsym_cmds_F77=
21315 always_export_symbols_F77=no
21316 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21317 # include_expsyms should be a list of space-separated symbols to be *always*
21318 # included in the symbol list
21319 include_expsyms_F77=
21320 # exclude_expsyms can be an extended regexp of symbols to exclude
21321 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21322 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21323 # as well as any symbol that contains `d'.
21324 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21325 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21326 # platforms (ab)use it in PIC code, but their linkers get confused if
21327 # the symbol is explicitly referenced. Since portable code cannot
21328 # rely on this symbol name, it's probably fine to never include it in
21329 # preloaded symbol tables.
21330 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021331 # Just being paranoid about ensuring that cc_basename is set.
21332 for cc_temp in $compiler""; do
21333 case $cc_temp in
21334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21336 \-*) ;;
21337 *) break;;
21338 esac
21339done
21340cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021341
21342 case $host_os in
21343 cygwin* | mingw* | pw32*)
21344 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21345 # When not using gcc, we currently assume that we are using
21346 # Microsoft Visual C++.
21347 if test "$GCC" != yes; then
21348 with_gnu_ld=no
21349 fi
21350 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021351 interix*)
21352 # we just hope/assume this is gcc and not c89 (= MSVC++)
21353 with_gnu_ld=yes
21354 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021355 openbsd*)
21356 with_gnu_ld=no
21357 ;;
21358 esac
21359
21360 ld_shlibs_F77=yes
21361 if test "$with_gnu_ld" = yes; then
21362 # If archive_cmds runs LD, not CC, wlarc should be empty
21363 wlarc='${wl}'
21364
Reid Spencera773bd52006-08-04 18:18:08 +000021365 # Set some defaults for GNU ld with shared library support. These
21366 # are reset later if shared libraries are not supported. Putting them
21367 # here allows them to be overridden if necessary.
21368 runpath_var=LD_RUN_PATH
21369 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21370 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21371 # ancient GNU ld didn't support --whole-archive et. al.
21372 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21373 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21374 else
21375 whole_archive_flag_spec_F77=
21376 fi
21377 supports_anon_versioning=no
21378 case `$LD -v 2>/dev/null` in
21379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21382 *\ 2.11.*) ;; # other 2.11 versions
21383 *) supports_anon_versioning=yes ;;
21384 esac
21385
John Criswell47fdd832003-07-14 16:52:07 +000021386 # See if GNU ld supports shared libraries.
21387 case $host_os in
21388 aix3* | aix4* | aix5*)
21389 # On AIX/PPC, the GNU linker is very broken
21390 if test "$host_cpu" != ia64; then
21391 ld_shlibs_F77=no
21392 cat <<EOF 1>&2
21393
21394*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21395*** to be unable to reliably create shared libraries on AIX.
21396*** Therefore, libtool is disabling shared libraries support. If you
21397*** really care for shared libraries, you may want to modify your PATH
21398*** so that a non-GNU linker is found, and then restart.
21399
21400EOF
21401 fi
21402 ;;
21403
21404 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021405 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 +000021406 hardcode_libdir_flag_spec_F77='-L$libdir'
21407 hardcode_minus_L_F77=yes
21408
21409 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21410 # that the semantics of dynamic libraries on AmigaOS, at least up
21411 # to version 4, is to share data among multiple programs linked
21412 # with the same dynamic library. Since this doesn't match the
21413 # behavior of shared libraries on other platforms, we can't use
21414 # them.
21415 ld_shlibs_F77=no
21416 ;;
21417
21418 beos*)
21419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21420 allow_undefined_flag_F77=unsupported
21421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21422 # support --undefined. This deserves some investigation. FIXME
21423 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21424 else
21425 ld_shlibs_F77=no
21426 fi
21427 ;;
21428
21429 cygwin* | mingw* | pw32*)
21430 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21431 # as there is no search path for DLLs.
21432 hardcode_libdir_flag_spec_F77='-L$libdir'
21433 allow_undefined_flag_F77=unsupported
21434 always_export_symbols_F77=no
21435 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021436 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 +000021437
21438 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021439 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 +000021440 # If the export-symbols file already is a .def file (1st line
21441 # is EXPORTS), use it as is; otherwise, prepend...
21442 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21443 cp $export_symbols $output_objdir/$soname.def;
21444 else
21445 echo EXPORTS > $output_objdir/$soname.def;
21446 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021447 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021448 $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 +000021449 else
Reid Spencera773bd52006-08-04 18:18:08 +000021450 ld_shlibs_F77=no
21451 fi
21452 ;;
21453
21454 interix3*)
21455 hardcode_direct_F77=no
21456 hardcode_shlibpath_var_F77=no
21457 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21458 export_dynamic_flag_spec_F77='${wl}-E'
21459 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21460 # Instead, shared libraries are loaded at an image base (0x10000000 by
21461 # default) and relocated if they conflict, which is a slow very memory
21462 # consuming and fragmenting process. To avoid this, we pick a random,
21463 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21464 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21465 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'
21466 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'
21467 ;;
21468
21469 linux*)
21470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21471 tmp_addflag=
21472 case $cc_basename,$host_cpu in
21473 pgcc*) # Portland Group C compiler
21474 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'
21475 tmp_addflag=' $pic_flag'
21476 ;;
21477 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21478 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'
21479 tmp_addflag=' $pic_flag -Mnomain' ;;
21480 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21481 tmp_addflag=' -i_dynamic' ;;
21482 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21483 tmp_addflag=' -i_dynamic -nofor_main' ;;
21484 ifc* | ifort*) # Intel Fortran compiler
21485 tmp_addflag=' -nofor_main' ;;
21486 esac
21487 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488
21489 if test $supports_anon_versioning = yes; then
21490 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21492 $echo "local: *; };" >> $output_objdir/$libname.ver~
21493 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21494 fi
21495 else
21496 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021497 fi
21498 ;;
21499
21500 netbsd*)
21501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21502 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21503 wlarc=
21504 else
21505 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21506 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21507 fi
21508 ;;
21509
Reid Spencera773bd52006-08-04 18:18:08 +000021510 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021511 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21512 ld_shlibs_F77=no
21513 cat <<EOF 1>&2
21514
21515*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21516*** create shared libraries on Solaris systems. Therefore, libtool
21517*** is disabling shared libraries support. We urge you to upgrade GNU
21518*** binutils to release 2.9.1 or newer. Another option is to modify
21519*** your PATH or compiler configuration so that the native linker is
21520*** used, and then restart.
21521
21522EOF
21523 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21524 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21525 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21526 else
21527 ld_shlibs_F77=no
21528 fi
21529 ;;
21530
Reid Spencera773bd52006-08-04 18:18:08 +000021531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21532 case `$LD -v 2>&1` in
21533 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21534 ld_shlibs_F77=no
21535 cat <<_LT_EOF 1>&2
21536
21537*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21538*** reliably create shared libraries on SCO systems. Therefore, libtool
21539*** is disabling shared libraries support. We urge you to upgrade GNU
21540*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21541*** your PATH or compiler configuration so that the native linker is
21542*** used, and then restart.
21543
21544_LT_EOF
21545 ;;
21546 *)
21547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21548 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21549 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21550 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21551 else
21552 ld_shlibs_F77=no
21553 fi
21554 ;;
21555 esac
21556 ;;
21557
John Criswell47fdd832003-07-14 16:52:07 +000021558 sunos4*)
21559 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21560 wlarc=
21561 hardcode_direct_F77=yes
21562 hardcode_shlibpath_var_F77=no
21563 ;;
21564
21565 *)
21566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21567 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21568 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21569 else
21570 ld_shlibs_F77=no
21571 fi
21572 ;;
21573 esac
21574
Reid Spencera773bd52006-08-04 18:18:08 +000021575 if test "$ld_shlibs_F77" = no; then
21576 runpath_var=
21577 hardcode_libdir_flag_spec_F77=
21578 export_dynamic_flag_spec_F77=
21579 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021580 fi
21581 else
21582 # PORTME fill in a description of your system's linker (not GNU ld)
21583 case $host_os in
21584 aix3*)
21585 allow_undefined_flag_F77=unsupported
21586 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021587 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 +000021588 # Note: this linker hardcodes the directories in LIBPATH if there
21589 # are no directories specified by -L.
21590 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021591 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021592 # Neither direct hardcoding nor static linking is supported with a
21593 # broken collect2.
21594 hardcode_direct_F77=unsupported
21595 fi
21596 ;;
21597
21598 aix4* | aix5*)
21599 if test "$host_cpu" = ia64; then
21600 # On IA64, the linker does run time linking by default, so we don't
21601 # have to do anything special.
21602 aix_use_runtimelinking=no
21603 exp_sym_flag='-Bexport'
21604 no_entry_flag=""
21605 else
21606 # If we're using GNU nm, then we don't want the "-C" option.
21607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21608 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21609 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'
21610 else
21611 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'
21612 fi
21613 aix_use_runtimelinking=no
21614
21615 # Test if we are trying to use run time linking or normal
21616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21617 # need to do runtime linking.
21618 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21619 for ld_flag in $LDFLAGS; do
21620 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21621 aix_use_runtimelinking=yes
21622 break
21623 fi
21624 done
Reid Spencera773bd52006-08-04 18:18:08 +000021625 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021626 esac
21627
21628 exp_sym_flag='-bexport'
21629 no_entry_flag='-bnoentry'
21630 fi
21631
21632 # When large executables or shared objects are built, AIX ld can
21633 # have problems creating the table of contents. If linking a library
21634 # or program results in "error TOC overflow" add -mminimal-toc to
21635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21637
21638 archive_cmds_F77=''
21639 hardcode_direct_F77=yes
21640 hardcode_libdir_separator_F77=':'
21641 link_all_deplibs_F77=yes
21642
21643 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021644 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021645 # We only want to do this on AIX 4.2 and lower, the check
21646 # below for broken collect2 doesn't work under 4.3+
21647 collect2name=`${CC} -print-prog-name=collect2`
21648 if test -f "$collect2name" && \
21649 strings "$collect2name" | grep resolve_lib_name >/dev/null
21650 then
21651 # We have reworked collect2
21652 hardcode_direct_F77=yes
21653 else
21654 # We have old collect2
21655 hardcode_direct_F77=unsupported
21656 # It fails to find uninstalled libraries when the uninstalled
21657 # path is not listed in the libpath. Setting hardcode_minus_L
21658 # to unsupported forces relinking
21659 hardcode_minus_L_F77=yes
21660 hardcode_libdir_flag_spec_F77='-L$libdir'
21661 hardcode_libdir_separator_F77=
21662 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021663 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021664 esac
21665 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021666 if test "$aix_use_runtimelinking" = yes; then
21667 shared_flag="$shared_flag "'${wl}-G'
21668 fi
John Criswell47fdd832003-07-14 16:52:07 +000021669 else
21670 # not using gcc
21671 if test "$host_cpu" = ia64; then
21672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21673 # chokes on -Wl,-G. The following line is correct:
21674 shared_flag='-G'
21675 else
Reid Spencera773bd52006-08-04 18:18:08 +000021676 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021677 shared_flag='${wl}-G'
21678 else
21679 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021680 fi
John Criswell47fdd832003-07-14 16:52:07 +000021681 fi
21682 fi
21683
21684 # It seems that -bexpall does not export symbols beginning with
21685 # underscore (_), so it is better to generate a list of symbols to export.
21686 always_export_symbols_F77=yes
21687 if test "$aix_use_runtimelinking" = yes; then
21688 # Warning - without using the other runtime loading flags (-brtl),
21689 # -berok will link without error, but may produce a broken library.
21690 allow_undefined_flag_F77='-berok'
21691 # Determine the default libpath from the value encoded in an empty executable.
21692 cat >conftest.$ac_ext <<_ACEOF
21693 program main
21694
21695 end
21696_ACEOF
21697rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021698if { (ac_try="$ac_link"
21699case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21702esac
21703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021705 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021711 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21712 { (case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715esac
21716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; } &&
21721 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021722 { (case "(($ac_try" in
21723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724 *) ac_try_echo=$ac_try;;
21725esac
21726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021728 ac_status=$?
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }; then
21731
21732aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21733}'`
21734# Check for a 64-bit object if we didn't find anything.
21735if 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; }
21736}'`; fi
21737else
21738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021739sed 's/^/| /' conftest.$ac_ext >&5
21740
Reid Spencera773bd52006-08-04 18:18:08 +000021741
John Criswell47fdd832003-07-14 16:52:07 +000021742fi
Reid Spencera773bd52006-08-04 18:18:08 +000021743
21744rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021745 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21747
21748 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021749 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 +000021750 else
21751 if test "$host_cpu" = ia64; then
21752 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21753 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021754 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 +000021755 else
21756 # Determine the default libpath from the value encoded in an empty executable.
21757 cat >conftest.$ac_ext <<_ACEOF
21758 program main
21759
21760 end
21761_ACEOF
21762rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021763if { (ac_try="$ac_link"
21764case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767esac
21768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021770 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021776 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21777 { (case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21780esac
21781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; } &&
21786 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021787 { (case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21790esac
21791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021793 ac_status=$?
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); }; }; then
21796
21797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21798}'`
21799# Check for a 64-bit object if we didn't find anything.
21800if 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; }
21801}'`; fi
21802else
21803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021804sed 's/^/| /' conftest.$ac_ext >&5
21805
Reid Spencera773bd52006-08-04 18:18:08 +000021806
John Criswell47fdd832003-07-14 16:52:07 +000021807fi
Reid Spencera773bd52006-08-04 18:18:08 +000021808
21809rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021810 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21812
21813 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21814 # Warning - without using the other run time loading flags,
21815 # -berok will link without error, but may produce a broken library.
21816 no_undefined_flag_F77=' ${wl}-bernotok'
21817 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021818 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021819 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021820 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021821 # This is similar to how AIX traditionally builds its shared libraries.
21822 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 +000021823 fi
21824 fi
21825 ;;
21826
21827 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021828 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 +000021829 hardcode_libdir_flag_spec_F77='-L$libdir'
21830 hardcode_minus_L_F77=yes
21831 # see comment about different semantics on the GNU ld section
21832 ld_shlibs_F77=no
21833 ;;
21834
Reid Spencer2706f8c2004-09-19 23:53:36 +000021835 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021836 export_dynamic_flag_spec_F77=-rdynamic
21837 ;;
21838
21839 cygwin* | mingw* | pw32*)
21840 # When not using gcc, we currently assume that we are using
21841 # Microsoft Visual C++.
21842 # hardcode_libdir_flag_spec is actually meaningless, as there is
21843 # no search path for DLLs.
21844 hardcode_libdir_flag_spec_F77=' '
21845 allow_undefined_flag_F77=unsupported
21846 # Tell ltmain to make .lib files, not .a files.
21847 libext=lib
21848 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021849 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021850 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021851 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 +000021852 # The linker will automatically build a .lib file if we build a DLL.
21853 old_archive_From_new_cmds_F77='true'
21854 # FIXME: Should let the user specify the lib program.
21855 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021856 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021857 enable_shared_with_static_runtimes_F77=yes
21858 ;;
21859
21860 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021861 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021862 rhapsody* | darwin1.[012])
21863 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21864 ;;
21865 *) # Darwin 1.3 on
21866 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21867 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21868 else
21869 case ${MACOSX_DEPLOYMENT_TARGET} in
21870 10.[012])
21871 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21872 ;;
21873 10.*)
21874 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21875 ;;
21876 esac
21877 fi
21878 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021879 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021880 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021881 hardcode_direct_F77=no
21882 hardcode_automatic_F77=yes
21883 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021884 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021885 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021886 if test "$GCC" = yes ; then
21887 output_verbose_link_cmd='echo'
21888 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21889 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021890 # 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 +000021891 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}'
21892 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 +000021893 else
Reid Spencera773bd52006-08-04 18:18:08 +000021894 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021895 xlc*)
21896 output_verbose_link_cmd='echo'
21897 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21898 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021899 # 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 +000021900 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}'
21901 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 +000021902 ;;
21903 *)
21904 ld_shlibs_F77=no
21905 ;;
21906 esac
John Criswell47fdd832003-07-14 16:52:07 +000021907 fi
21908 ;;
21909
21910 dgux*)
21911 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21912 hardcode_libdir_flag_spec_F77='-L$libdir'
21913 hardcode_shlibpath_var_F77=no
21914 ;;
21915
21916 freebsd1*)
21917 ld_shlibs_F77=no
21918 ;;
21919
21920 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21921 # support. Future versions do this automatically, but an explicit c++rt0.o
21922 # does not break anything, and helps significantly (at the cost of a little
21923 # extra space).
21924 freebsd2.2*)
21925 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21926 hardcode_libdir_flag_spec_F77='-R$libdir'
21927 hardcode_direct_F77=yes
21928 hardcode_shlibpath_var_F77=no
21929 ;;
21930
21931 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21932 freebsd2*)
21933 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21934 hardcode_direct_F77=yes
21935 hardcode_minus_L_F77=yes
21936 hardcode_shlibpath_var_F77=no
21937 ;;
21938
21939 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021940 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021941 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21942 hardcode_libdir_flag_spec_F77='-R$libdir'
21943 hardcode_direct_F77=yes
21944 hardcode_shlibpath_var_F77=no
21945 ;;
21946
21947 hpux9*)
21948 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021949 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 +000021950 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021951 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 +000021952 fi
21953 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21954 hardcode_libdir_separator_F77=:
21955 hardcode_direct_F77=yes
21956
21957 # hardcode_minus_L: Not really in the search PATH,
21958 # but as the default location of the library.
21959 hardcode_minus_L_F77=yes
21960 export_dynamic_flag_spec_F77='${wl}-E'
21961 ;;
21962
Reid Spencera773bd52006-08-04 18:18:08 +000021963 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021964 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021965 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21966 else
21967 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21968 fi
21969 if test "$with_gnu_ld" = no; then
21970 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21971 hardcode_libdir_separator_F77=:
21972
21973 hardcode_direct_F77=yes
21974 export_dynamic_flag_spec_F77='${wl}-E'
21975
21976 # hardcode_minus_L: Not really in the search PATH,
21977 # but as the default location of the library.
21978 hardcode_minus_L_F77=yes
21979 fi
21980 ;;
21981
21982 hpux11*)
21983 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21984 case $host_cpu in
21985 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021986 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021988 ia64*)
21989 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21990 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021991 *)
21992 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21993 ;;
21994 esac
21995 else
Reid Spencera773bd52006-08-04 18:18:08 +000021996 case $host_cpu in
21997 hppa*64*)
21998 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21999 ;;
22000 ia64*)
22001 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022002 ;;
22003 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022004 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 +000022005 ;;
22006 esac
22007 fi
22008 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022009 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22010 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022011
Reid Spencera773bd52006-08-04 18:18:08 +000022012 case $host_cpu in
22013 hppa*64*|ia64*)
22014 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22015 hardcode_direct_F77=no
22016 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022017 ;;
22018 *)
John Criswell47fdd832003-07-14 16:52:07 +000022019 hardcode_direct_F77=yes
22020 export_dynamic_flag_spec_F77='${wl}-E'
22021
22022 # hardcode_minus_L: Not really in the search PATH,
22023 # but as the default location of the library.
22024 hardcode_minus_L_F77=yes
22025 ;;
22026 esac
22027 fi
22028 ;;
22029
22030 irix5* | irix6* | nonstopux*)
22031 if test "$GCC" = yes; then
22032 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'
22033 else
22034 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'
22035 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22036 fi
22037 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22038 hardcode_libdir_separator_F77=:
22039 link_all_deplibs_F77=yes
22040 ;;
22041
22042 netbsd*)
22043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22044 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22045 else
22046 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22047 fi
22048 hardcode_libdir_flag_spec_F77='-R$libdir'
22049 hardcode_direct_F77=yes
22050 hardcode_shlibpath_var_F77=no
22051 ;;
22052
22053 newsos6)
22054 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22055 hardcode_direct_F77=yes
22056 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22057 hardcode_libdir_separator_F77=:
22058 hardcode_shlibpath_var_F77=no
22059 ;;
22060
22061 openbsd*)
22062 hardcode_direct_F77=yes
22063 hardcode_shlibpath_var_F77=no
22064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22065 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022066 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 +000022067 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22068 export_dynamic_flag_spec_F77='${wl}-E'
22069 else
22070 case $host_os in
22071 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22072 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22073 hardcode_libdir_flag_spec_F77='-R$libdir'
22074 ;;
22075 *)
22076 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22077 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22078 ;;
22079 esac
22080 fi
22081 ;;
22082
22083 os2*)
22084 hardcode_libdir_flag_spec_F77='-L$libdir'
22085 hardcode_minus_L_F77=yes
22086 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022087 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 +000022088 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22089 ;;
22090
22091 osf3*)
22092 if test "$GCC" = yes; then
22093 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22094 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'
22095 else
22096 allow_undefined_flag_F77=' -expect_unresolved \*'
22097 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'
22098 fi
22099 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22100 hardcode_libdir_separator_F77=:
22101 ;;
22102
22103 osf4* | osf5*) # as osf3* with the addition of -msym flag
22104 if test "$GCC" = yes; then
22105 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22106 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'
22107 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22108 else
22109 allow_undefined_flag_F77=' -expect_unresolved \*'
22110 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 +000022111 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 +000022112 $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 +000022113
John Criswell47fdd832003-07-14 16:52:07 +000022114 # Both c and cxx compiler support -rpath directly
22115 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22116 fi
22117 hardcode_libdir_separator_F77=:
22118 ;;
22119
John Criswell47fdd832003-07-14 16:52:07 +000022120 solaris*)
22121 no_undefined_flag_F77=' -z text'
22122 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022123 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022124 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022125 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22126 $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 +000022127 else
Reid Spencera773bd52006-08-04 18:18:08 +000022128 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022129 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022130 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22131 $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 +000022132 fi
22133 hardcode_libdir_flag_spec_F77='-R$libdir'
22134 hardcode_shlibpath_var_F77=no
22135 case $host_os in
22136 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022137 *)
22138 # The compiler driver will combine linker options so we
22139 # cannot just pass the convience library names through
22140 # without $wl, iff we do not link with $LD.
22141 # Luckily, gcc supports the same syntax we need for Sun Studio.
22142 # Supported since Solaris 2.6 (maybe 2.5.1?)
22143 case $wlarc in
22144 '')
22145 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22146 *)
22147 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' ;;
22148 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022149 esac
22150 link_all_deplibs_F77=yes
22151 ;;
22152
22153 sunos4*)
22154 if test "x$host_vendor" = xsequent; then
22155 # Use $CC to link under sequent, because it throws in some extra .o
22156 # files that make .init and .fini sections work.
22157 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22158 else
22159 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22160 fi
22161 hardcode_libdir_flag_spec_F77='-L$libdir'
22162 hardcode_direct_F77=yes
22163 hardcode_minus_L_F77=yes
22164 hardcode_shlibpath_var_F77=no
22165 ;;
22166
22167 sysv4)
22168 case $host_vendor in
22169 sni)
22170 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22171 hardcode_direct_F77=yes # is this really true???
22172 ;;
22173 siemens)
22174 ## LD is ld it makes a PLAMLIB
22175 ## CC just makes a GrossModule.
22176 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22177 reload_cmds_F77='$CC -r -o $output$reload_objs'
22178 hardcode_direct_F77=no
22179 ;;
22180 motorola)
22181 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22183 ;;
22184 esac
22185 runpath_var='LD_RUN_PATH'
22186 hardcode_shlibpath_var_F77=no
22187 ;;
22188
22189 sysv4.3*)
22190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_shlibpath_var_F77=no
22192 export_dynamic_flag_spec_F77='-Bexport'
22193 ;;
22194
22195 sysv4*MP*)
22196 if test -d /usr/nec; then
22197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22198 hardcode_shlibpath_var_F77=no
22199 runpath_var=LD_RUN_PATH
22200 hardcode_runpath_var=yes
22201 ld_shlibs_F77=yes
22202 fi
22203 ;;
22204
Reid Spencera773bd52006-08-04 18:18:08 +000022205 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22206 no_undefined_flag_F77='${wl}-z,text'
22207 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022208 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022209 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022210
John Criswell47fdd832003-07-14 16:52:07 +000022211 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022212 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22213 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 +000022214 else
Reid Spencera773bd52006-08-04 18:18:08 +000022215 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22216 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 +000022217 fi
John Criswell47fdd832003-07-14 16:52:07 +000022218 ;;
22219
Reid Spencera773bd52006-08-04 18:18:08 +000022220 sysv5* | sco3.2v5* | sco5v6*)
22221 # Note: We can NOT use -z defs as we might desire, because we do not
22222 # link with -lc, and that would cause any symbols used from libc to
22223 # always be unresolved, which means just about no library would
22224 # ever link correctly. If we're not using GNU ld we use -z text
22225 # though, which does catch some bad symbols but isn't as heavy-handed
22226 # as -z defs.
22227 no_undefined_flag_F77='${wl}-z,text'
22228 allow_undefined_flag_F77='${wl}-z,nodefs'
22229 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022230 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022231 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22232 hardcode_libdir_separator_F77=':'
22233 link_all_deplibs_F77=yes
22234 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022235 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022236
22237 if test "$GCC" = yes; then
22238 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22239 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22240 else
22241 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22242 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22243 fi
John Criswell47fdd832003-07-14 16:52:07 +000022244 ;;
22245
22246 uts4*)
22247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22248 hardcode_libdir_flag_spec_F77='-L$libdir'
22249 hardcode_shlibpath_var_F77=no
22250 ;;
22251
22252 *)
22253 ld_shlibs_F77=no
22254 ;;
22255 esac
22256 fi
22257
Reid Spencera773bd52006-08-04 18:18:08 +000022258{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22259echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022260test "$ld_shlibs_F77" = no && can_build_shared=no
22261
John Criswell47fdd832003-07-14 16:52:07 +000022262#
22263# Do we need to explicitly link libc?
22264#
22265case "x$archive_cmds_need_lc_F77" in
22266x|xyes)
22267 # Assume -lc should be added
22268 archive_cmds_need_lc_F77=yes
22269
22270 if test "$enable_shared" = yes && test "$GCC" = yes; then
22271 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022272 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022273 # FIXME: we may have to deal with multi-command sequences.
22274 ;;
22275 '$CC '*)
22276 # Test whether the compiler implicitly links with -lc since on some
22277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22278 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022279 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22280echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022281 $rm conftest*
22282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22283
22284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22285 (eval $ac_compile) 2>&5
22286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } 2>conftest.err; then
22289 soname=conftest
22290 lib=conftest
22291 libobjs=conftest.$ac_objext
22292 deplibs=
22293 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022294 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022295 compiler_flags=-v
22296 linker_flags=-v
22297 verstring=
22298 output_objdir=.
22299 libname=conftest
22300 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22301 allow_undefined_flag_F77=
22302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22303 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }
22307 then
22308 archive_cmds_need_lc_F77=no
22309 else
22310 archive_cmds_need_lc_F77=yes
22311 fi
22312 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22313 else
22314 cat conftest.err 1>&5
22315 fi
22316 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022317 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22318echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022319 ;;
22320 esac
22321 fi
22322 ;;
22323esac
22324
Reid Spencera773bd52006-08-04 18:18:08 +000022325{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22326echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022327library_names_spec=
22328libname_spec='lib$name'
22329soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022330shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022331postinstall_cmds=
22332postuninstall_cmds=
22333finish_cmds=
22334finish_eval=
22335shlibpath_var=
22336shlibpath_overrides_runpath=unknown
22337version_type=none
22338dynamic_linker="$host_os ld.so"
22339sys_lib_dlsearch_path_spec="/lib /usr/lib"
22340if test "$GCC" = yes; then
22341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22342 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22343 # if the path contains ";" then we assume it to be the separator
22344 # otherwise default to the standard path separator (i.e. ":") - it is
22345 # assumed that no part of a normal pathname contains ";" but that should
22346 # okay in the real world where ";" in dirpaths is itself problematic.
22347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22348 else
22349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22350 fi
22351else
22352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22353fi
22354need_lib_prefix=unknown
22355hardcode_into_libs=no
22356
22357# when you set need_version to no, make sure it does not cause -set_version
22358# flags to be left without arguments
22359need_version=unknown
22360
22361case $host_os in
22362aix3*)
22363 version_type=linux
22364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22365 shlibpath_var=LIBPATH
22366
22367 # AIX 3 has no versioning support, so we append a major version to the name.
22368 soname_spec='${libname}${release}${shared_ext}$major'
22369 ;;
22370
22371aix4* | aix5*)
22372 version_type=linux
22373 need_lib_prefix=no
22374 need_version=no
22375 hardcode_into_libs=yes
22376 if test "$host_cpu" = ia64; then
22377 # AIX 5 supports IA64
22378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22379 shlibpath_var=LD_LIBRARY_PATH
22380 else
22381 # With GCC up to 2.95.x, collect2 would create an import file
22382 # for dependence libraries. The import file would start with
22383 # the line `#! .'. This would cause the generated library to
22384 # depend on `.', always an invalid library. This was fixed in
22385 # development snapshots of GCC prior to 3.0.
22386 case $host_os in
22387 aix4 | aix4.[01] | aix4.[01].*)
22388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22389 echo ' yes '
22390 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22391 :
22392 else
22393 can_build_shared=no
22394 fi
22395 ;;
22396 esac
22397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22398 # soname into executable. Probably we can add versioning support to
22399 # collect2, so additional links can be useful in future.
22400 if test "$aix_use_runtimelinking" = yes; then
22401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22402 # instead of lib<name>.a to let people know that these are not
22403 # typical AIX shared libraries.
22404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22405 else
22406 # We preserve .a as extension for shared libraries through AIX4.2
22407 # and later when we are not doing run time linking.
22408 library_names_spec='${libname}${release}.a $libname.a'
22409 soname_spec='${libname}${release}${shared_ext}$major'
22410 fi
22411 shlibpath_var=LIBPATH
22412 fi
22413 ;;
22414
22415amigaos*)
22416 library_names_spec='$libname.ixlibrary $libname.a'
22417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022418 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 +000022419 ;;
22420
22421beos*)
22422 library_names_spec='${libname}${shared_ext}'
22423 dynamic_linker="$host_os ld.so"
22424 shlibpath_var=LIBRARY_PATH
22425 ;;
22426
Reid Spencer2706f8c2004-09-19 23:53:36 +000022427bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022428 version_type=linux
22429 need_version=no
22430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22431 soname_spec='${libname}${release}${shared_ext}$major'
22432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22433 shlibpath_var=LD_LIBRARY_PATH
22434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22436 # the default ld.so.conf also contains /usr/contrib/lib and
22437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22438 # libtool to hard-code these into programs
22439 ;;
22440
22441cygwin* | mingw* | pw32*)
22442 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022443 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022444 need_version=no
22445 need_lib_prefix=no
22446
22447 case $GCC,$host_os in
22448 yes,cygwin* | yes,mingw* | yes,pw32*)
22449 library_names_spec='$libname.dll.a'
22450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022451 postinstall_cmds='base_file=`basename \${file}`~
22452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22453 dldir=$destdir/`dirname \$dlpath`~
22454 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022455 $install_prog $dir/$dlname \$dldir/$dlname~
22456 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22458 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022459 $rm \$dlpath'
22460 shlibpath_overrides_runpath=yes
22461
22462 case $host_os in
22463 cygwin*)
22464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22465 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 +000022466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022467 ;;
22468 mingw*)
22469 # MinGW DLLs use traditional 'lib' prefix
22470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22473 # It is most probably a Windows format PATH printed by
22474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22475 # path with ; separators, and with drive letters. We can handle the
22476 # drive letters (cygwin fileutils understands them), so leave them,
22477 # especially as we might pass files found there to a mingw objdump,
22478 # which wouldn't understand a cygwinified path. Ahh.
22479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22480 else
22481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22482 fi
22483 ;;
22484 pw32*)
22485 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022486 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 +000022487 ;;
22488 esac
22489 ;;
22490
22491 *)
22492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22493 ;;
22494 esac
22495 dynamic_linker='Win32 ld.exe'
22496 # FIXME: first we should search . and the directory the executable is in
22497 shlibpath_var=PATH
22498 ;;
22499
22500darwin* | rhapsody*)
22501 dynamic_linker="$host_os dyld"
22502 version_type=darwin
22503 need_lib_prefix=no
22504 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022506 soname_spec='${libname}${release}${major}$shared_ext'
22507 shlibpath_overrides_runpath=yes
22508 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022511 if test "$GCC" = yes; then
22512 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"`
22513 else
22514 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022515 fi
22516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22517 ;;
22518
22519dgux*)
22520 version_type=linux
22521 need_lib_prefix=no
22522 need_version=no
22523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22524 soname_spec='${libname}${release}${shared_ext}$major'
22525 shlibpath_var=LD_LIBRARY_PATH
22526 ;;
22527
22528freebsd1*)
22529 dynamic_linker=no
22530 ;;
22531
Reid Spencer2706f8c2004-09-19 23:53:36 +000022532kfreebsd*-gnu)
22533 version_type=linux
22534 need_lib_prefix=no
22535 need_version=no
22536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22537 soname_spec='${libname}${release}${shared_ext}$major'
22538 shlibpath_var=LD_LIBRARY_PATH
22539 shlibpath_overrides_runpath=no
22540 hardcode_into_libs=yes
22541 dynamic_linker='GNU ld.so'
22542 ;;
22543
Reid Spencera773bd52006-08-04 18:18:08 +000022544freebsd* | dragonfly*)
22545 # DragonFly does not have aout. When/if they implement a new
22546 # versioning mechanism, adjust this.
22547 if test -x /usr/bin/objformat; then
22548 objformat=`/usr/bin/objformat`
22549 else
22550 case $host_os in
22551 freebsd[123]*) objformat=aout ;;
22552 *) objformat=elf ;;
22553 esac
22554 fi
John Criswell47fdd832003-07-14 16:52:07 +000022555 version_type=freebsd-$objformat
22556 case $version_type in
22557 freebsd-elf*)
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22559 need_version=no
22560 need_lib_prefix=no
22561 ;;
22562 freebsd-*)
22563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22564 need_version=yes
22565 ;;
22566 esac
22567 shlibpath_var=LD_LIBRARY_PATH
22568 case $host_os in
22569 freebsd2*)
22570 shlibpath_overrides_runpath=yes
22571 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022572 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022573 shlibpath_overrides_runpath=yes
22574 hardcode_into_libs=yes
22575 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022576 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22577 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022578 shlibpath_overrides_runpath=no
22579 hardcode_into_libs=yes
22580 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022581 freebsd*) # from 4.6 on
22582 shlibpath_overrides_runpath=yes
22583 hardcode_into_libs=yes
22584 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022585 esac
22586 ;;
22587
22588gnu*)
22589 version_type=linux
22590 need_lib_prefix=no
22591 need_version=no
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22593 soname_spec='${libname}${release}${shared_ext}$major'
22594 shlibpath_var=LD_LIBRARY_PATH
22595 hardcode_into_libs=yes
22596 ;;
22597
22598hpux9* | hpux10* | hpux11*)
22599 # Give a soname corresponding to the major version so that dld.sl refuses to
22600 # link against other versions.
22601 version_type=sunos
22602 need_lib_prefix=no
22603 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022604 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022605 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022606 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022607 hardcode_into_libs=yes
22608 dynamic_linker="$host_os dld.so"
22609 shlibpath_var=LD_LIBRARY_PATH
22610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 soname_spec='${libname}${release}${shared_ext}$major'
22613 if test "X$HPUX_IA64_MODE" = X32; then
22614 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22615 else
22616 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22617 fi
22618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22619 ;;
22620 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022621 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022622 hardcode_into_libs=yes
22623 dynamic_linker="$host_os dld.sl"
22624 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22625 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22627 soname_spec='${libname}${release}${shared_ext}$major'
22628 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22630 ;;
22631 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022632 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022633 dynamic_linker="$host_os dld.sl"
22634 shlibpath_var=SHLIB_PATH
22635 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22637 soname_spec='${libname}${release}${shared_ext}$major'
22638 ;;
22639 esac
22640 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22641 postinstall_cmds='chmod 555 $lib'
22642 ;;
22643
Reid Spencera773bd52006-08-04 18:18:08 +000022644interix3*)
22645 version_type=linux
22646 need_lib_prefix=no
22647 need_version=no
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22649 soname_spec='${libname}${release}${shared_ext}$major'
22650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22651 shlibpath_var=LD_LIBRARY_PATH
22652 shlibpath_overrides_runpath=no
22653 hardcode_into_libs=yes
22654 ;;
22655
John Criswell47fdd832003-07-14 16:52:07 +000022656irix5* | irix6* | nonstopux*)
22657 case $host_os in
22658 nonstopux*) version_type=nonstopux ;;
22659 *)
22660 if test "$lt_cv_prog_gnu_ld" = yes; then
22661 version_type=linux
22662 else
22663 version_type=irix
22664 fi ;;
22665 esac
22666 need_lib_prefix=no
22667 need_version=no
22668 soname_spec='${libname}${release}${shared_ext}$major'
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22670 case $host_os in
22671 irix5* | nonstopux*)
22672 libsuff= shlibsuff=
22673 ;;
22674 *)
22675 case $LD in # libtool.m4 will add one of these switches to LD
22676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22677 libsuff= shlibsuff= libmagic=32-bit;;
22678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22679 libsuff=32 shlibsuff=N32 libmagic=N32;;
22680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22681 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22682 *) libsuff= shlibsuff= libmagic=never-match;;
22683 esac
22684 ;;
22685 esac
22686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22687 shlibpath_overrides_runpath=no
22688 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22689 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22690 hardcode_into_libs=yes
22691 ;;
22692
22693# No shared lib support for Linux oldld, aout, or coff.
22694linux*oldld* | linux*aout* | linux*coff*)
22695 dynamic_linker=no
22696 ;;
22697
22698# This must be Linux ELF.
22699linux*)
22700 version_type=linux
22701 need_lib_prefix=no
22702 need_version=no
22703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22704 soname_spec='${libname}${release}${shared_ext}$major'
22705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22706 shlibpath_var=LD_LIBRARY_PATH
22707 shlibpath_overrides_runpath=no
22708 # This implies no fast_install, which is unacceptable.
22709 # Some rework will be needed to allow for fast_install
22710 # before this can be enabled.
22711 hardcode_into_libs=yes
22712
Reid Spencer2706f8c2004-09-19 23:53:36 +000022713 # Append ld.so.conf contents to the search path
22714 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022715 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 +000022716 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22717 fi
22718
John Criswell47fdd832003-07-14 16:52:07 +000022719 # We used to test for /lib/ld.so.1 and disable shared libraries on
22720 # powerpc, because MkLinux only supported shared libraries with the
22721 # GNU dynamic linker. Since this was broken with cross compilers,
22722 # most powerpc-linux boxes support dynamic linking these days and
22723 # people can always --disable-shared, the test was removed, and we
22724 # assume the GNU/Linux dynamic linker is in use.
22725 dynamic_linker='GNU/Linux ld.so'
22726 ;;
22727
Reid Spencer2706f8c2004-09-19 23:53:36 +000022728knetbsd*-gnu)
22729 version_type=linux
22730 need_lib_prefix=no
22731 need_version=no
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22733 soname_spec='${libname}${release}${shared_ext}$major'
22734 shlibpath_var=LD_LIBRARY_PATH
22735 shlibpath_overrides_runpath=no
22736 hardcode_into_libs=yes
22737 dynamic_linker='GNU ld.so'
22738 ;;
22739
John Criswell47fdd832003-07-14 16:52:07 +000022740netbsd*)
22741 version_type=sunos
22742 need_lib_prefix=no
22743 need_version=no
22744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22747 dynamic_linker='NetBSD (a.out) ld.so'
22748 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022750 soname_spec='${libname}${release}${shared_ext}$major'
22751 dynamic_linker='NetBSD ld.elf_so'
22752 fi
22753 shlibpath_var=LD_LIBRARY_PATH
22754 shlibpath_overrides_runpath=yes
22755 hardcode_into_libs=yes
22756 ;;
22757
22758newsos6)
22759 version_type=linux
22760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22761 shlibpath_var=LD_LIBRARY_PATH
22762 shlibpath_overrides_runpath=yes
22763 ;;
22764
Reid Spencer2706f8c2004-09-19 23:53:36 +000022765nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022766 version_type=linux
22767 need_lib_prefix=no
22768 need_version=no
22769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22770 soname_spec='${libname}${release}${shared_ext}$major'
22771 shlibpath_var=LD_LIBRARY_PATH
22772 shlibpath_overrides_runpath=yes
22773 ;;
22774
22775openbsd*)
22776 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022777 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022778 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022779 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22780 case $host_os in
22781 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22782 *) need_version=no ;;
22783 esac
John Criswell47fdd832003-07-14 16:52:07 +000022784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22786 shlibpath_var=LD_LIBRARY_PATH
22787 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22788 case $host_os in
22789 openbsd2.[89] | openbsd2.[89].*)
22790 shlibpath_overrides_runpath=no
22791 ;;
22792 *)
22793 shlibpath_overrides_runpath=yes
22794 ;;
22795 esac
22796 else
22797 shlibpath_overrides_runpath=yes
22798 fi
22799 ;;
22800
22801os2*)
22802 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022803 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022804 need_lib_prefix=no
22805 library_names_spec='$libname${shared_ext} $libname.a'
22806 dynamic_linker='OS/2 ld.exe'
22807 shlibpath_var=LIBPATH
22808 ;;
22809
22810osf3* | osf4* | osf5*)
22811 version_type=osf
22812 need_lib_prefix=no
22813 need_version=no
22814 soname_spec='${libname}${release}${shared_ext}$major'
22815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22816 shlibpath_var=LD_LIBRARY_PATH
22817 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22818 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22819 ;;
22820
John Criswell47fdd832003-07-14 16:52:07 +000022821solaris*)
22822 version_type=linux
22823 need_lib_prefix=no
22824 need_version=no
22825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22826 soname_spec='${libname}${release}${shared_ext}$major'
22827 shlibpath_var=LD_LIBRARY_PATH
22828 shlibpath_overrides_runpath=yes
22829 hardcode_into_libs=yes
22830 # ldd complains unless libraries are executable
22831 postinstall_cmds='chmod +x $lib'
22832 ;;
22833
22834sunos4*)
22835 version_type=sunos
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22837 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22838 shlibpath_var=LD_LIBRARY_PATH
22839 shlibpath_overrides_runpath=yes
22840 if test "$with_gnu_ld" = yes; then
22841 need_lib_prefix=no
22842 fi
22843 need_version=yes
22844 ;;
22845
Reid Spencera773bd52006-08-04 18:18:08 +000022846sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022847 version_type=linux
22848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22849 soname_spec='${libname}${release}${shared_ext}$major'
22850 shlibpath_var=LD_LIBRARY_PATH
22851 case $host_vendor in
22852 sni)
22853 shlibpath_overrides_runpath=no
22854 need_lib_prefix=no
22855 export_dynamic_flag_spec='${wl}-Blargedynsym'
22856 runpath_var=LD_RUN_PATH
22857 ;;
22858 siemens)
22859 need_lib_prefix=no
22860 ;;
22861 motorola)
22862 need_lib_prefix=no
22863 need_version=no
22864 shlibpath_overrides_runpath=no
22865 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22866 ;;
22867 esac
22868 ;;
22869
22870sysv4*MP*)
22871 if test -d /usr/nec ;then
22872 version_type=linux
22873 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22874 soname_spec='$libname${shared_ext}.$major'
22875 shlibpath_var=LD_LIBRARY_PATH
22876 fi
22877 ;;
22878
Reid Spencera773bd52006-08-04 18:18:08 +000022879sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22880 version_type=freebsd-elf
22881 need_lib_prefix=no
22882 need_version=no
22883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22884 soname_spec='${libname}${release}${shared_ext}$major'
22885 shlibpath_var=LD_LIBRARY_PATH
22886 hardcode_into_libs=yes
22887 if test "$with_gnu_ld" = yes; then
22888 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22889 shlibpath_overrides_runpath=no
22890 else
22891 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22892 shlibpath_overrides_runpath=yes
22893 case $host_os in
22894 sco3.2v5*)
22895 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22896 ;;
22897 esac
22898 fi
22899 sys_lib_dlsearch_path_spec='/usr/lib'
22900 ;;
22901
John Criswell47fdd832003-07-14 16:52:07 +000022902uts4*)
22903 version_type=linux
22904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22905 soname_spec='${libname}${release}${shared_ext}$major'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 ;;
22908
22909*)
22910 dynamic_linker=no
22911 ;;
22912esac
Reid Spencera773bd52006-08-04 18:18:08 +000022913{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22914echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022915test "$dynamic_linker" = no && can_build_shared=no
22916
Reid Spencera773bd52006-08-04 18:18:08 +000022917variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22918if test "$GCC" = yes; then
22919 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22920fi
22921
22922{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22923echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022924hardcode_action_F77=
22925if test -n "$hardcode_libdir_flag_spec_F77" || \
22926 test -n "$runpath_var_F77" || \
22927 test "X$hardcode_automatic_F77" = "Xyes" ; then
22928
22929 # We can hardcode non-existant directories.
22930 if test "$hardcode_direct_F77" != no &&
22931 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22932 # have to relink, otherwise we might link with an installed library
22933 # when we should be linking with a yet-to-be-installed one
22934 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22935 test "$hardcode_minus_L_F77" != no; then
22936 # Linking always hardcodes the temporary library directory.
22937 hardcode_action_F77=relink
22938 else
22939 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22940 hardcode_action_F77=immediate
22941 fi
22942else
22943 # We cannot hardcode anything, or else we can only hardcode existing
22944 # directories.
22945 hardcode_action_F77=unsupported
22946fi
Reid Spencera773bd52006-08-04 18:18:08 +000022947{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22948echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022949
22950if test "$hardcode_action_F77" = relink; then
22951 # Fast installation is not supported
22952 enable_fast_install=no
22953elif test "$shlibpath_overrides_runpath" = yes ||
22954 test "$enable_shared" = no; then
22955 # Fast installation is not necessary
22956 enable_fast_install=needless
22957fi
22958
John Criswell47fdd832003-07-14 16:52:07 +000022959
22960# The else clause should only fire when bootstrapping the
22961# libtool distribution, otherwise you forgot to ship ltmain.sh
22962# with your package, and you will get complaints that there are
22963# no rules to generate ltmain.sh.
22964if test -f "$ltmain"; then
22965 # See if we are running on zsh, and set the options which allow our commands through
22966 # without removal of \ escapes.
22967 if test -n "${ZSH_VERSION+set}" ; then
22968 setopt NO_GLOB_SUBST
22969 fi
22970 # Now quote all the things that may contain metacharacters while being
22971 # careful not to overquote the AC_SUBSTed values. We take copies of the
22972 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022973 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 +000022974 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022975 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22976 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22977 deplibs_check_method reload_flag reload_cmds need_locks \
22978 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22979 lt_cv_sys_global_symbol_to_c_name_address \
22980 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22981 old_postinstall_cmds old_postuninstall_cmds \
22982 compiler_F77 \
22983 CC_F77 \
22984 LD_F77 \
22985 lt_prog_compiler_wl_F77 \
22986 lt_prog_compiler_pic_F77 \
22987 lt_prog_compiler_static_F77 \
22988 lt_prog_compiler_no_builtin_flag_F77 \
22989 export_dynamic_flag_spec_F77 \
22990 thread_safe_flag_spec_F77 \
22991 whole_archive_flag_spec_F77 \
22992 enable_shared_with_static_runtimes_F77 \
22993 old_archive_cmds_F77 \
22994 old_archive_from_new_cmds_F77 \
22995 predep_objects_F77 \
22996 postdep_objects_F77 \
22997 predeps_F77 \
22998 postdeps_F77 \
22999 compiler_lib_search_path_F77 \
23000 archive_cmds_F77 \
23001 archive_expsym_cmds_F77 \
23002 postinstall_cmds_F77 \
23003 postuninstall_cmds_F77 \
23004 old_archive_from_expsyms_cmds_F77 \
23005 allow_undefined_flag_F77 \
23006 no_undefined_flag_F77 \
23007 export_symbols_cmds_F77 \
23008 hardcode_libdir_flag_spec_F77 \
23009 hardcode_libdir_flag_spec_ld_F77 \
23010 hardcode_libdir_separator_F77 \
23011 hardcode_automatic_F77 \
23012 module_cmds_F77 \
23013 module_expsym_cmds_F77 \
23014 lt_cv_prog_compiler_c_o_F77 \
23015 exclude_expsyms_F77 \
23016 include_expsyms_F77; do
23017
23018 case $var in
23019 old_archive_cmds_F77 | \
23020 old_archive_from_new_cmds_F77 | \
23021 archive_cmds_F77 | \
23022 archive_expsym_cmds_F77 | \
23023 module_cmds_F77 | \
23024 module_expsym_cmds_F77 | \
23025 old_archive_from_expsyms_cmds_F77 | \
23026 export_symbols_cmds_F77 | \
23027 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23028 postinstall_cmds | postuninstall_cmds | \
23029 old_postinstall_cmds | old_postuninstall_cmds | \
23030 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23031 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023032 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 +000023033 ;;
23034 *)
23035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23036 ;;
23037 esac
23038 done
23039
23040 case $lt_echo in
23041 *'\$0 --fallback-echo"')
23042 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23043 ;;
23044 esac
23045
23046cfgfile="$ofile"
23047
23048 cat <<__EOF__ >> "$cfgfile"
23049# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23050
23051# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23052
23053# Shell to use when invoking shell scripts.
23054SHELL=$lt_SHELL
23055
23056# Whether or not to build shared libraries.
23057build_libtool_libs=$enable_shared
23058
23059# Whether or not to build static libraries.
23060build_old_libs=$enable_static
23061
23062# Whether or not to add -lc for building shared libraries.
23063build_libtool_need_lc=$archive_cmds_need_lc_F77
23064
23065# Whether or not to disallow shared libs when runtime libs are static
23066allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23067
23068# Whether or not to optimize for fast installation.
23069fast_install=$enable_fast_install
23070
23071# The host system.
23072host_alias=$host_alias
23073host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023074host_os=$host_os
23075
23076# The build system.
23077build_alias=$build_alias
23078build=$build
23079build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023080
23081# An echo program that does not interpret backslashes.
23082echo=$lt_echo
23083
23084# The archiver.
23085AR=$lt_AR
23086AR_FLAGS=$lt_AR_FLAGS
23087
23088# A C compiler.
23089LTCC=$lt_LTCC
23090
Reid Spencera773bd52006-08-04 18:18:08 +000023091# LTCC compiler flags.
23092LTCFLAGS=$lt_LTCFLAGS
23093
John Criswell47fdd832003-07-14 16:52:07 +000023094# A language-specific compiler.
23095CC=$lt_compiler_F77
23096
23097# Is the compiler the GNU C compiler?
23098with_gcc=$GCC_F77
23099
23100# An ERE matcher.
23101EGREP=$lt_EGREP
23102
23103# The linker used to build libraries.
23104LD=$lt_LD_F77
23105
23106# Whether we need hard or soft links.
23107LN_S=$lt_LN_S
23108
23109# A BSD-compatible nm program.
23110NM=$lt_NM
23111
23112# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023113STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023114
23115# Used to examine libraries when file_magic_cmd begins "file"
23116MAGIC_CMD=$MAGIC_CMD
23117
23118# Used on cygwin: DLL creation program.
23119DLLTOOL="$DLLTOOL"
23120
23121# Used on cygwin: object dumper.
23122OBJDUMP="$OBJDUMP"
23123
23124# Used on cygwin: assembler.
23125AS="$AS"
23126
23127# The name of the directory that contains temporary libtool files.
23128objdir=$objdir
23129
23130# How to create reloadable object files.
23131reload_flag=$lt_reload_flag
23132reload_cmds=$lt_reload_cmds
23133
23134# How to pass a linker flag through the compiler.
23135wl=$lt_lt_prog_compiler_wl_F77
23136
23137# Object file suffix (normally "o").
23138objext="$ac_objext"
23139
23140# Old archive suffix (normally "a").
23141libext="$libext"
23142
23143# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023144shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023145
23146# Executable file suffix (normally "").
23147exeext="$exeext"
23148
23149# Additional compiler flags for building library objects.
23150pic_flag=$lt_lt_prog_compiler_pic_F77
23151pic_mode=$pic_mode
23152
23153# What is the maximum length of a command?
23154max_cmd_len=$lt_cv_sys_max_cmd_len
23155
23156# Does compiler simultaneously support -c and -o options?
23157compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23158
Reid Spencera773bd52006-08-04 18:18:08 +000023159# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023160need_locks=$lt_need_locks
23161
23162# Do we need the lib prefix for modules?
23163need_lib_prefix=$need_lib_prefix
23164
23165# Do we need a version for libraries?
23166need_version=$need_version
23167
23168# Whether dlopen is supported.
23169dlopen_support=$enable_dlopen
23170
23171# Whether dlopen of programs is supported.
23172dlopen_self=$enable_dlopen_self
23173
23174# Whether dlopen of statically linked programs is supported.
23175dlopen_self_static=$enable_dlopen_self_static
23176
23177# Compiler flag to prevent dynamic linking.
23178link_static_flag=$lt_lt_prog_compiler_static_F77
23179
23180# Compiler flag to turn off builtin functions.
23181no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23182
23183# Compiler flag to allow reflexive dlopens.
23184export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23185
23186# Compiler flag to generate shared objects directly from archives.
23187whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23188
23189# Compiler flag to generate thread-safe objects.
23190thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23191
23192# Library versioning type.
23193version_type=$version_type
23194
23195# Format of library name prefix.
23196libname_spec=$lt_libname_spec
23197
23198# List of archive names. First name is the real one, the rest are links.
23199# The last name is the one that the linker finds with -lNAME.
23200library_names_spec=$lt_library_names_spec
23201
23202# The coded name of the library, if different from the real name.
23203soname_spec=$lt_soname_spec
23204
23205# Commands used to build and install an old-style archive.
23206RANLIB=$lt_RANLIB
23207old_archive_cmds=$lt_old_archive_cmds_F77
23208old_postinstall_cmds=$lt_old_postinstall_cmds
23209old_postuninstall_cmds=$lt_old_postuninstall_cmds
23210
23211# Create an old-style archive from a shared archive.
23212old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23213
23214# Create a temporary old-style archive to link instead of a shared archive.
23215old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23216
23217# Commands used to build and install a shared archive.
23218archive_cmds=$lt_archive_cmds_F77
23219archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23220postinstall_cmds=$lt_postinstall_cmds
23221postuninstall_cmds=$lt_postuninstall_cmds
23222
23223# Commands used to build a loadable module (assumed same as above if empty)
23224module_cmds=$lt_module_cmds_F77
23225module_expsym_cmds=$lt_module_expsym_cmds_F77
23226
23227# Commands to strip libraries.
23228old_striplib=$lt_old_striplib
23229striplib=$lt_striplib
23230
23231# Dependencies to place before the objects being linked to create a
23232# shared library.
23233predep_objects=$lt_predep_objects_F77
23234
23235# Dependencies to place after the objects being linked to create a
23236# shared library.
23237postdep_objects=$lt_postdep_objects_F77
23238
23239# Dependencies to place before the objects being linked to create a
23240# shared library.
23241predeps=$lt_predeps_F77
23242
23243# Dependencies to place after the objects being linked to create a
23244# shared library.
23245postdeps=$lt_postdeps_F77
23246
23247# The library search path used internally by the compiler when linking
23248# a shared library.
23249compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23250
23251# Method to check whether dependent libraries are shared objects.
23252deplibs_check_method=$lt_deplibs_check_method
23253
23254# Command to use when deplibs_check_method == file_magic.
23255file_magic_cmd=$lt_file_magic_cmd
23256
23257# Flag that allows shared libraries with undefined symbols to be built.
23258allow_undefined_flag=$lt_allow_undefined_flag_F77
23259
23260# Flag that forces no undefined symbols.
23261no_undefined_flag=$lt_no_undefined_flag_F77
23262
23263# Commands used to finish a libtool library installation in a directory.
23264finish_cmds=$lt_finish_cmds
23265
23266# Same as above, but a single script fragment to be evaled but not shown.
23267finish_eval=$lt_finish_eval
23268
23269# Take the output of nm and produce a listing of raw symbols and C names.
23270global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23271
23272# Transform the output of nm in a proper C declaration
23273global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23274
23275# Transform the output of nm in a C name address pair
23276global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23277
23278# This is the shared library runtime path variable.
23279runpath_var=$runpath_var
23280
23281# This is the shared library path variable.
23282shlibpath_var=$shlibpath_var
23283
23284# Is shlibpath searched before the hard-coded library search path?
23285shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23286
23287# How to hardcode a shared library path into an executable.
23288hardcode_action=$hardcode_action_F77
23289
23290# Whether we should hardcode library paths into libraries.
23291hardcode_into_libs=$hardcode_into_libs
23292
23293# Flag to hardcode \$libdir into a binary during linking.
23294# This must work even if \$libdir does not exist.
23295hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23296
23297# If ld is used when linking, flag to hardcode \$libdir into
23298# a binary during linking. This must work even if \$libdir does
23299# not exist.
23300hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23301
23302# Whether we need a single -rpath flag with a separated argument.
23303hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23304
23305# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23306# resulting binary.
23307hardcode_direct=$hardcode_direct_F77
23308
23309# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23310# resulting binary.
23311hardcode_minus_L=$hardcode_minus_L_F77
23312
23313# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23314# the resulting binary.
23315hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23316
23317# Set to yes if building a shared library automatically hardcodes DIR into the library
23318# and all subsequent libraries and executables linked against it.
23319hardcode_automatic=$hardcode_automatic_F77
23320
23321# Variables whose values should be saved in libtool wrapper scripts and
23322# restored at relink time.
23323variables_saved_for_relink="$variables_saved_for_relink"
23324
23325# Whether libtool must link a program against all its dependency libraries.
23326link_all_deplibs=$link_all_deplibs_F77
23327
23328# Compile-time system search path for libraries
23329sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23330
23331# Run-time system search path for libraries
23332sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23333
23334# Fix the shell variable \$srcfile for the compiler.
23335fix_srcfile_path="$fix_srcfile_path_F77"
23336
23337# Set to yes if exported symbols are required.
23338always_export_symbols=$always_export_symbols_F77
23339
23340# The commands to list exported symbols.
23341export_symbols_cmds=$lt_export_symbols_cmds_F77
23342
23343# The commands to extract the exported symbol list from a shared archive.
23344extract_expsyms_cmds=$lt_extract_expsyms_cmds
23345
23346# Symbols that should not be listed in the preloaded symbols.
23347exclude_expsyms=$lt_exclude_expsyms_F77
23348
23349# Symbols that must always be exported.
23350include_expsyms=$lt_include_expsyms_F77
23351
23352# ### END LIBTOOL TAG CONFIG: $tagname
23353
23354__EOF__
23355
23356
23357else
23358 # If there is no Makefile yet, we rely on a make rule to execute
23359 # `config.status --recheck' to rerun these tests and create the
23360 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023361 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23362 if test -f "$ltmain_in"; then
23363 test -f Makefile && make "$ltmain"
23364 fi
John Criswell47fdd832003-07-14 16:52:07 +000023365fi
23366
23367
23368ac_ext=c
23369ac_cpp='$CPP $CPPFLAGS'
23370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23372ac_compiler_gnu=$ac_cv_c_compiler_gnu
23373
23374CC="$lt_save_CC"
23375
23376 else
23377 tagname=""
23378 fi
23379 ;;
23380
23381 GCJ)
23382 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023383 ac_ext=c
23384ac_cpp='$CPP $CPPFLAGS'
23385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23387ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023388
23389
23390# Source file extension for Java test sources.
23391ac_ext=java
23392
23393# Object file extension for compiled Java test sources.
23394objext=o
23395objext_GCJ=$objext
23396
23397# Code to be used in simple compile tests
23398lt_simple_compile_test_code="class foo {}\n"
23399
23400# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023401lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023402
23403# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23404
23405# If no C compiler was specified, use CC.
23406LTCC=${LTCC-"$CC"}
23407
Reid Spencera773bd52006-08-04 18:18:08 +000023408# If no C compiler flags were specified, use CFLAGS.
23409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23410
John Criswell47fdd832003-07-14 16:52:07 +000023411# Allow CC to be a program name with arguments.
23412compiler=$CC
23413
23414
Reid Spencera773bd52006-08-04 18:18:08 +000023415# save warnings/boilerplate of simple test code
23416ac_outfile=conftest.$ac_objext
23417printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23418eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23419_lt_compiler_boilerplate=`cat conftest.err`
23420$rm conftest*
23421
23422ac_outfile=conftest.$ac_objext
23423printf "$lt_simple_link_test_code" >conftest.$ac_ext
23424eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23425_lt_linker_boilerplate=`cat conftest.err`
23426$rm conftest*
23427
23428
John Criswell47fdd832003-07-14 16:52:07 +000023429# Allow CC to be a program name with arguments.
23430lt_save_CC="$CC"
23431CC=${GCJ-"gcj"}
23432compiler=$CC
23433compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023434for cc_temp in $compiler""; do
23435 case $cc_temp in
23436 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23437 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23438 \-*) ;;
23439 *) break;;
23440 esac
23441done
23442cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23443
John Criswell47fdd832003-07-14 16:52:07 +000023444
23445# GCJ did not exist at the time GCC didn't implicitly link libc in.
23446archive_cmds_need_lc_GCJ=no
23447
Reid Spencera773bd52006-08-04 18:18:08 +000023448old_archive_cmds_GCJ=$old_archive_cmds
23449
John Criswell47fdd832003-07-14 16:52:07 +000023450
23451lt_prog_compiler_no_builtin_flag_GCJ=
23452
23453if test "$GCC" = yes; then
23454 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23455
Reid Spencer2706f8c2004-09-19 23:53:36 +000023456
Reid Spencera773bd52006-08-04 18:18:08 +000023457{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23458echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023459if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23461else
23462 lt_cv_prog_compiler_rtti_exceptions=no
23463 ac_outfile=conftest.$ac_objext
23464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23465 lt_compiler_flag="-fno-rtti -fno-exceptions"
23466 # Insert the option either (1) after the last *FLAGS variable, or
23467 # (2) before a word containing "conftest.", or (3) at the end.
23468 # Note that $ac_compile itself does not contain backslashes and begins
23469 # with a dollar sign (not a hyphen), so the echo should work correctly.
23470 # The option is referenced via a variable to avoid confusing sed.
23471 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23474 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000023475 (eval echo "\"\$as_me:23475: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023476 (eval "$lt_compile" 2>conftest.err)
23477 ac_status=$?
23478 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000023479 echo "$as_me:23479: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023480 if (exit $ac_status) && test -s "$ac_outfile"; then
23481 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023482 # So say no if there are warnings other than the usual output.
23483 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23485 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023486 lt_cv_prog_compiler_rtti_exceptions=yes
23487 fi
23488 fi
23489 $rm conftest*
23490
23491fi
Reid Spencera773bd52006-08-04 18:18:08 +000023492{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23493echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023494
23495if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23496 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23497else
23498 :
23499fi
23500
23501fi
23502
23503lt_prog_compiler_wl_GCJ=
23504lt_prog_compiler_pic_GCJ=
23505lt_prog_compiler_static_GCJ=
23506
Reid Spencera773bd52006-08-04 18:18:08 +000023507{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23508echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023509
23510 if test "$GCC" = yes; then
23511 lt_prog_compiler_wl_GCJ='-Wl,'
23512 lt_prog_compiler_static_GCJ='-static'
23513
23514 case $host_os in
23515 aix*)
23516 # All AIX code is PIC.
23517 if test "$host_cpu" = ia64; then
23518 # AIX 5 now supports IA64 processor
23519 lt_prog_compiler_static_GCJ='-Bstatic'
23520 fi
23521 ;;
23522
23523 amigaos*)
23524 # FIXME: we need at least 68020 code to build shared libraries, but
23525 # adding the `-m68020' flag to GCC prevents building anything better,
23526 # like `-m68040'.
23527 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23528 ;;
23529
23530 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23531 # PIC is the default for these OSes.
23532 ;;
23533
23534 mingw* | pw32* | os2*)
23535 # This hack is so that the source file can tell whether it is being
23536 # built for inclusion in a dll (and should export symbols for example).
23537 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23538 ;;
23539
23540 darwin* | rhapsody*)
23541 # PIC is the default on this platform
23542 # Common symbols not allowed in MH_DYLIB files
23543 lt_prog_compiler_pic_GCJ='-fno-common'
23544 ;;
23545
Reid Spencera773bd52006-08-04 18:18:08 +000023546 interix3*)
23547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23548 # Instead, we relocate shared libraries at runtime.
23549 ;;
23550
John Criswell47fdd832003-07-14 16:52:07 +000023551 msdosdjgpp*)
23552 # Just because we use GCC doesn't mean we suddenly get shared libraries
23553 # on systems that don't support them.
23554 lt_prog_compiler_can_build_shared_GCJ=no
23555 enable_shared=no
23556 ;;
23557
23558 sysv4*MP*)
23559 if test -d /usr/nec; then
23560 lt_prog_compiler_pic_GCJ=-Kconform_pic
23561 fi
23562 ;;
23563
23564 hpux*)
23565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23566 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023567 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023568 hppa*64*|ia64*)
23569 # +Z the default
23570 ;;
23571 *)
23572 lt_prog_compiler_pic_GCJ='-fPIC'
23573 ;;
23574 esac
23575 ;;
23576
23577 *)
23578 lt_prog_compiler_pic_GCJ='-fPIC'
23579 ;;
23580 esac
23581 else
23582 # PORTME Check for flag to pass linker flags through the system compiler.
23583 case $host_os in
23584 aix*)
23585 lt_prog_compiler_wl_GCJ='-Wl,'
23586 if test "$host_cpu" = ia64; then
23587 # AIX 5 now supports IA64 processor
23588 lt_prog_compiler_static_GCJ='-Bstatic'
23589 else
23590 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23591 fi
23592 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023593 darwin*)
23594 # PIC is the default on this platform
23595 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023596 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023597 xlc*)
23598 lt_prog_compiler_pic_GCJ='-qnocommon'
23599 lt_prog_compiler_wl_GCJ='-Wl,'
23600 ;;
23601 esac
23602 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023603
23604 mingw* | pw32* | os2*)
23605 # This hack is so that the source file can tell whether it is being
23606 # built for inclusion in a dll (and should export symbols for example).
23607 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23608 ;;
23609
23610 hpux9* | hpux10* | hpux11*)
23611 lt_prog_compiler_wl_GCJ='-Wl,'
23612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23613 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023614 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023615 hppa*64*|ia64*)
23616 # +Z the default
23617 ;;
23618 *)
23619 lt_prog_compiler_pic_GCJ='+Z'
23620 ;;
23621 esac
23622 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23623 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23624 ;;
23625
23626 irix5* | irix6* | nonstopux*)
23627 lt_prog_compiler_wl_GCJ='-Wl,'
23628 # PIC (with -KPIC) is the default.
23629 lt_prog_compiler_static_GCJ='-non_shared'
23630 ;;
23631
23632 newsos6)
23633 lt_prog_compiler_pic_GCJ='-KPIC'
23634 lt_prog_compiler_static_GCJ='-Bstatic'
23635 ;;
23636
23637 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023638 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023639 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023640 lt_prog_compiler_wl_GCJ='-Wl,'
23641 lt_prog_compiler_pic_GCJ='-KPIC'
23642 lt_prog_compiler_static_GCJ='-static'
23643 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023644 pgcc* | pgf77* | pgf90* | pgf95*)
23645 # Portland Group compilers (*not* the Pentium gcc compiler,
23646 # which looks to be a dead project)
23647 lt_prog_compiler_wl_GCJ='-Wl,'
23648 lt_prog_compiler_pic_GCJ='-fpic'
23649 lt_prog_compiler_static_GCJ='-Bstatic'
23650 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023651 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023652 lt_prog_compiler_wl_GCJ='-Wl,'
23653 # All Alpha code is PIC.
23654 lt_prog_compiler_static_GCJ='-non_shared'
23655 ;;
23656 esac
23657 ;;
23658
23659 osf3* | osf4* | osf5*)
23660 lt_prog_compiler_wl_GCJ='-Wl,'
23661 # All OSF/1 code is PIC.
23662 lt_prog_compiler_static_GCJ='-non_shared'
23663 ;;
23664
John Criswell47fdd832003-07-14 16:52:07 +000023665 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023666 lt_prog_compiler_pic_GCJ='-KPIC'
23667 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023668 case $cc_basename in
23669 f77* | f90* | f95*)
23670 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23671 *)
23672 lt_prog_compiler_wl_GCJ='-Wl,';;
23673 esac
John Criswell47fdd832003-07-14 16:52:07 +000023674 ;;
23675
23676 sunos4*)
23677 lt_prog_compiler_wl_GCJ='-Qoption ld '
23678 lt_prog_compiler_pic_GCJ='-PIC'
23679 lt_prog_compiler_static_GCJ='-Bstatic'
23680 ;;
23681
Reid Spencera773bd52006-08-04 18:18:08 +000023682 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023683 lt_prog_compiler_wl_GCJ='-Wl,'
23684 lt_prog_compiler_pic_GCJ='-KPIC'
23685 lt_prog_compiler_static_GCJ='-Bstatic'
23686 ;;
23687
23688 sysv4*MP*)
23689 if test -d /usr/nec ;then
23690 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23691 lt_prog_compiler_static_GCJ='-Bstatic'
23692 fi
23693 ;;
23694
Reid Spencera773bd52006-08-04 18:18:08 +000023695 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23696 lt_prog_compiler_wl_GCJ='-Wl,'
23697 lt_prog_compiler_pic_GCJ='-KPIC'
23698 lt_prog_compiler_static_GCJ='-Bstatic'
23699 ;;
23700
23701 unicos*)
23702 lt_prog_compiler_wl_GCJ='-Wl,'
23703 lt_prog_compiler_can_build_shared_GCJ=no
23704 ;;
23705
John Criswell47fdd832003-07-14 16:52:07 +000023706 uts4*)
23707 lt_prog_compiler_pic_GCJ='-pic'
23708 lt_prog_compiler_static_GCJ='-Bstatic'
23709 ;;
23710
23711 *)
23712 lt_prog_compiler_can_build_shared_GCJ=no
23713 ;;
23714 esac
23715 fi
23716
Reid Spencera773bd52006-08-04 18:18:08 +000023717{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23718echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023719
23720#
23721# Check to make sure the PIC flag actually works.
23722#
23723if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023724
Reid Spencera773bd52006-08-04 18:18:08 +000023725{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23726echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023727if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23728 echo $ECHO_N "(cached) $ECHO_C" >&6
23729else
23730 lt_prog_compiler_pic_works_GCJ=no
23731 ac_outfile=conftest.$ac_objext
23732 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23733 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23734 # Insert the option either (1) after the last *FLAGS variable, or
23735 # (2) before a word containing "conftest.", or (3) at the end.
23736 # Note that $ac_compile itself does not contain backslashes and begins
23737 # with a dollar sign (not a hyphen), so the echo should work correctly.
23738 # The option is referenced via a variable to avoid confusing sed.
23739 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23742 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000023743 (eval echo "\"\$as_me:23743: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023744 (eval "$lt_compile" 2>conftest.err)
23745 ac_status=$?
23746 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000023747 echo "$as_me:23747: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023748 if (exit $ac_status) && test -s "$ac_outfile"; then
23749 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023750 # So say no if there are warnings other than the usual output.
23751 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023754 lt_prog_compiler_pic_works_GCJ=yes
23755 fi
23756 fi
23757 $rm conftest*
23758
23759fi
Reid Spencera773bd52006-08-04 18:18:08 +000023760{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23761echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023762
23763if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23764 case $lt_prog_compiler_pic_GCJ in
23765 "" | " "*) ;;
23766 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23767 esac
23768else
23769 lt_prog_compiler_pic_GCJ=
23770 lt_prog_compiler_can_build_shared_GCJ=no
23771fi
23772
23773fi
Reid Spencera773bd52006-08-04 18:18:08 +000023774case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023775 # For platforms which do not support PIC, -DPIC is meaningless:
23776 *djgpp*)
23777 lt_prog_compiler_pic_GCJ=
23778 ;;
23779 *)
23780 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23781 ;;
23782esac
23783
Reid Spencera773bd52006-08-04 18:18:08 +000023784#
23785# Check to make sure the static flag actually works.
23786#
23787wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23788{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23789echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23790if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23791 echo $ECHO_N "(cached) $ECHO_C" >&6
23792else
23793 lt_prog_compiler_static_works_GCJ=no
23794 save_LDFLAGS="$LDFLAGS"
23795 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23796 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23798 # The linker can only warn and ignore the option if not recognized
23799 # So say no if there are warnings
23800 if test -s conftest.err; then
23801 # Append any errors to the config.log.
23802 cat conftest.err 1>&5
23803 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23805 if diff conftest.exp conftest.er2 >/dev/null; then
23806 lt_prog_compiler_static_works_GCJ=yes
23807 fi
23808 else
23809 lt_prog_compiler_static_works_GCJ=yes
23810 fi
23811 fi
23812 $rm conftest*
23813 LDFLAGS="$save_LDFLAGS"
23814
23815fi
23816{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23817echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23818
23819if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23820 :
23821else
23822 lt_prog_compiler_static_GCJ=
23823fi
23824
23825
23826{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23827echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023828if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23830else
23831 lt_cv_prog_compiler_c_o_GCJ=no
23832 $rm -r conftest 2>/dev/null
23833 mkdir conftest
23834 cd conftest
23835 mkdir out
23836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23837
John Criswell47fdd832003-07-14 16:52:07 +000023838 lt_compiler_flag="-o out/conftest2.$ac_objext"
23839 # Insert the option either (1) after the last *FLAGS variable, or
23840 # (2) before a word containing "conftest.", or (3) at the end.
23841 # Note that $ac_compile itself does not contain backslashes and begins
23842 # with a dollar sign (not a hyphen), so the echo should work correctly.
23843 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23846 -e 's:$: $lt_compiler_flag:'`
Reid Spencera773bd52006-08-04 18:18:08 +000023847 (eval echo "\"\$as_me:23847: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023848 (eval "$lt_compile" 2>out/conftest.err)
23849 ac_status=$?
23850 cat out/conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +000023851 echo "$as_me:23851: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23853 then
23854 # The compiler can only warn and ignore the option if not recognized
23855 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023856 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023859 lt_cv_prog_compiler_c_o_GCJ=yes
23860 fi
23861 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023862 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023863 $rm conftest*
23864 # SGI C++ compiler will create directory out/ii_files/ for
23865 # template instantiation
23866 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23867 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023868 cd ..
23869 rmdir conftest
23870 $rm conftest*
23871
23872fi
Reid Spencera773bd52006-08-04 18:18:08 +000023873{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23874echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023875
23876
23877hard_links="nottested"
23878if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23879 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023880 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23881echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023882 hard_links=yes
23883 $rm conftest*
23884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23885 touch conftest.a
23886 ln conftest.a conftest.b 2>&5 || hard_links=no
23887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023888 { echo "$as_me:$LINENO: result: $hard_links" >&5
23889echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023890 if test "$hard_links" = no; then
23891 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23892echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23893 need_locks=warn
23894 fi
23895else
23896 need_locks=no
23897fi
23898
Reid Spencera773bd52006-08-04 18:18:08 +000023899{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23900echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023901
23902 runpath_var=
23903 allow_undefined_flag_GCJ=
23904 enable_shared_with_static_runtimes_GCJ=no
23905 archive_cmds_GCJ=
23906 archive_expsym_cmds_GCJ=
23907 old_archive_From_new_cmds_GCJ=
23908 old_archive_from_expsyms_cmds_GCJ=
23909 export_dynamic_flag_spec_GCJ=
23910 whole_archive_flag_spec_GCJ=
23911 thread_safe_flag_spec_GCJ=
23912 hardcode_libdir_flag_spec_GCJ=
23913 hardcode_libdir_flag_spec_ld_GCJ=
23914 hardcode_libdir_separator_GCJ=
23915 hardcode_direct_GCJ=no
23916 hardcode_minus_L_GCJ=no
23917 hardcode_shlibpath_var_GCJ=unsupported
23918 link_all_deplibs_GCJ=unknown
23919 hardcode_automatic_GCJ=no
23920 module_cmds_GCJ=
23921 module_expsym_cmds_GCJ=
23922 always_export_symbols_GCJ=no
23923 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23924 # include_expsyms should be a list of space-separated symbols to be *always*
23925 # included in the symbol list
23926 include_expsyms_GCJ=
23927 # exclude_expsyms can be an extended regexp of symbols to exclude
23928 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23929 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23930 # as well as any symbol that contains `d'.
23931 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23932 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23933 # platforms (ab)use it in PIC code, but their linkers get confused if
23934 # the symbol is explicitly referenced. Since portable code cannot
23935 # rely on this symbol name, it's probably fine to never include it in
23936 # preloaded symbol tables.
23937 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023938 # Just being paranoid about ensuring that cc_basename is set.
23939 for cc_temp in $compiler""; do
23940 case $cc_temp in
23941 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23942 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23943 \-*) ;;
23944 *) break;;
23945 esac
23946done
23947cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023948
23949 case $host_os in
23950 cygwin* | mingw* | pw32*)
23951 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23952 # When not using gcc, we currently assume that we are using
23953 # Microsoft Visual C++.
23954 if test "$GCC" != yes; then
23955 with_gnu_ld=no
23956 fi
23957 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023958 interix*)
23959 # we just hope/assume this is gcc and not c89 (= MSVC++)
23960 with_gnu_ld=yes
23961 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023962 openbsd*)
23963 with_gnu_ld=no
23964 ;;
23965 esac
23966
23967 ld_shlibs_GCJ=yes
23968 if test "$with_gnu_ld" = yes; then
23969 # If archive_cmds runs LD, not CC, wlarc should be empty
23970 wlarc='${wl}'
23971
Reid Spencera773bd52006-08-04 18:18:08 +000023972 # Set some defaults for GNU ld with shared library support. These
23973 # are reset later if shared libraries are not supported. Putting them
23974 # here allows them to be overridden if necessary.
23975 runpath_var=LD_RUN_PATH
23976 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23977 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23978 # ancient GNU ld didn't support --whole-archive et. al.
23979 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23980 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23981 else
23982 whole_archive_flag_spec_GCJ=
23983 fi
23984 supports_anon_versioning=no
23985 case `$LD -v 2>/dev/null` in
23986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23989 *\ 2.11.*) ;; # other 2.11 versions
23990 *) supports_anon_versioning=yes ;;
23991 esac
23992
John Criswell47fdd832003-07-14 16:52:07 +000023993 # See if GNU ld supports shared libraries.
23994 case $host_os in
23995 aix3* | aix4* | aix5*)
23996 # On AIX/PPC, the GNU linker is very broken
23997 if test "$host_cpu" != ia64; then
23998 ld_shlibs_GCJ=no
23999 cat <<EOF 1>&2
24000
24001*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24002*** to be unable to reliably create shared libraries on AIX.
24003*** Therefore, libtool is disabling shared libraries support. If you
24004*** really care for shared libraries, you may want to modify your PATH
24005*** so that a non-GNU linker is found, and then restart.
24006
24007EOF
24008 fi
24009 ;;
24010
24011 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024012 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 +000024013 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24014 hardcode_minus_L_GCJ=yes
24015
24016 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24017 # that the semantics of dynamic libraries on AmigaOS, at least up
24018 # to version 4, is to share data among multiple programs linked
24019 # with the same dynamic library. Since this doesn't match the
24020 # behavior of shared libraries on other platforms, we can't use
24021 # them.
24022 ld_shlibs_GCJ=no
24023 ;;
24024
24025 beos*)
24026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24027 allow_undefined_flag_GCJ=unsupported
24028 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24029 # support --undefined. This deserves some investigation. FIXME
24030 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24031 else
24032 ld_shlibs_GCJ=no
24033 fi
24034 ;;
24035
24036 cygwin* | mingw* | pw32*)
24037 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24038 # as there is no search path for DLLs.
24039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24040 allow_undefined_flag_GCJ=unsupported
24041 always_export_symbols_GCJ=no
24042 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024043 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 +000024044
24045 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024046 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 +000024047 # If the export-symbols file already is a .def file (1st line
24048 # is EXPORTS), use it as is; otherwise, prepend...
24049 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24050 cp $export_symbols $output_objdir/$soname.def;
24051 else
24052 echo EXPORTS > $output_objdir/$soname.def;
24053 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024054 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024055 $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 +000024056 else
Reid Spencera773bd52006-08-04 18:18:08 +000024057 ld_shlibs_GCJ=no
24058 fi
24059 ;;
24060
24061 interix3*)
24062 hardcode_direct_GCJ=no
24063 hardcode_shlibpath_var_GCJ=no
24064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24065 export_dynamic_flag_spec_GCJ='${wl}-E'
24066 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24067 # Instead, shared libraries are loaded at an image base (0x10000000 by
24068 # default) and relocated if they conflict, which is a slow very memory
24069 # consuming and fragmenting process. To avoid this, we pick a random,
24070 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24071 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24072 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'
24073 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'
24074 ;;
24075
24076 linux*)
24077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24078 tmp_addflag=
24079 case $cc_basename,$host_cpu in
24080 pgcc*) # Portland Group C compiler
24081 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'
24082 tmp_addflag=' $pic_flag'
24083 ;;
24084 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24085 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'
24086 tmp_addflag=' $pic_flag -Mnomain' ;;
24087 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24088 tmp_addflag=' -i_dynamic' ;;
24089 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24090 tmp_addflag=' -i_dynamic -nofor_main' ;;
24091 ifc* | ifort*) # Intel Fortran compiler
24092 tmp_addflag=' -nofor_main' ;;
24093 esac
24094 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24095
24096 if test $supports_anon_versioning = yes; then
24097 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24099 $echo "local: *; };" >> $output_objdir/$libname.ver~
24100 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24101 fi
24102 else
24103 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024104 fi
24105 ;;
24106
24107 netbsd*)
24108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24109 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24110 wlarc=
24111 else
24112 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24113 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24114 fi
24115 ;;
24116
Reid Spencera773bd52006-08-04 18:18:08 +000024117 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024118 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24119 ld_shlibs_GCJ=no
24120 cat <<EOF 1>&2
24121
24122*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24123*** create shared libraries on Solaris systems. Therefore, libtool
24124*** is disabling shared libraries support. We urge you to upgrade GNU
24125*** binutils to release 2.9.1 or newer. Another option is to modify
24126*** your PATH or compiler configuration so that the native linker is
24127*** used, and then restart.
24128
24129EOF
24130 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24131 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24132 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24133 else
24134 ld_shlibs_GCJ=no
24135 fi
24136 ;;
24137
Reid Spencera773bd52006-08-04 18:18:08 +000024138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24139 case `$LD -v 2>&1` in
24140 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24141 ld_shlibs_GCJ=no
24142 cat <<_LT_EOF 1>&2
24143
24144*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24145*** reliably create shared libraries on SCO systems. Therefore, libtool
24146*** is disabling shared libraries support. We urge you to upgrade GNU
24147*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24148*** your PATH or compiler configuration so that the native linker is
24149*** used, and then restart.
24150
24151_LT_EOF
24152 ;;
24153 *)
24154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24155 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24156 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24157 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24158 else
24159 ld_shlibs_GCJ=no
24160 fi
24161 ;;
24162 esac
24163 ;;
24164
John Criswell47fdd832003-07-14 16:52:07 +000024165 sunos4*)
24166 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24167 wlarc=
24168 hardcode_direct_GCJ=yes
24169 hardcode_shlibpath_var_GCJ=no
24170 ;;
24171
24172 *)
24173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24174 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24175 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24176 else
24177 ld_shlibs_GCJ=no
24178 fi
24179 ;;
24180 esac
24181
Reid Spencera773bd52006-08-04 18:18:08 +000024182 if test "$ld_shlibs_GCJ" = no; then
24183 runpath_var=
24184 hardcode_libdir_flag_spec_GCJ=
24185 export_dynamic_flag_spec_GCJ=
24186 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024187 fi
24188 else
24189 # PORTME fill in a description of your system's linker (not GNU ld)
24190 case $host_os in
24191 aix3*)
24192 allow_undefined_flag_GCJ=unsupported
24193 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024194 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 +000024195 # Note: this linker hardcodes the directories in LIBPATH if there
24196 # are no directories specified by -L.
24197 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024199 # Neither direct hardcoding nor static linking is supported with a
24200 # broken collect2.
24201 hardcode_direct_GCJ=unsupported
24202 fi
24203 ;;
24204
24205 aix4* | aix5*)
24206 if test "$host_cpu" = ia64; then
24207 # On IA64, the linker does run time linking by default, so we don't
24208 # have to do anything special.
24209 aix_use_runtimelinking=no
24210 exp_sym_flag='-Bexport'
24211 no_entry_flag=""
24212 else
24213 # If we're using GNU nm, then we don't want the "-C" option.
24214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24215 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24216 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'
24217 else
24218 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'
24219 fi
24220 aix_use_runtimelinking=no
24221
24222 # Test if we are trying to use run time linking or normal
24223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24224 # need to do runtime linking.
24225 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24226 for ld_flag in $LDFLAGS; do
24227 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24228 aix_use_runtimelinking=yes
24229 break
24230 fi
24231 done
Reid Spencera773bd52006-08-04 18:18:08 +000024232 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024233 esac
24234
24235 exp_sym_flag='-bexport'
24236 no_entry_flag='-bnoentry'
24237 fi
24238
24239 # When large executables or shared objects are built, AIX ld can
24240 # have problems creating the table of contents. If linking a library
24241 # or program results in "error TOC overflow" add -mminimal-toc to
24242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24244
24245 archive_cmds_GCJ=''
24246 hardcode_direct_GCJ=yes
24247 hardcode_libdir_separator_GCJ=':'
24248 link_all_deplibs_GCJ=yes
24249
24250 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024251 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024252 # We only want to do this on AIX 4.2 and lower, the check
24253 # below for broken collect2 doesn't work under 4.3+
24254 collect2name=`${CC} -print-prog-name=collect2`
24255 if test -f "$collect2name" && \
24256 strings "$collect2name" | grep resolve_lib_name >/dev/null
24257 then
24258 # We have reworked collect2
24259 hardcode_direct_GCJ=yes
24260 else
24261 # We have old collect2
24262 hardcode_direct_GCJ=unsupported
24263 # It fails to find uninstalled libraries when the uninstalled
24264 # path is not listed in the libpath. Setting hardcode_minus_L
24265 # to unsupported forces relinking
24266 hardcode_minus_L_GCJ=yes
24267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24268 hardcode_libdir_separator_GCJ=
24269 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024270 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024271 esac
24272 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024273 if test "$aix_use_runtimelinking" = yes; then
24274 shared_flag="$shared_flag "'${wl}-G'
24275 fi
John Criswell47fdd832003-07-14 16:52:07 +000024276 else
24277 # not using gcc
24278 if test "$host_cpu" = ia64; then
24279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24280 # chokes on -Wl,-G. The following line is correct:
24281 shared_flag='-G'
24282 else
Reid Spencera773bd52006-08-04 18:18:08 +000024283 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024284 shared_flag='${wl}-G'
24285 else
24286 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024287 fi
John Criswell47fdd832003-07-14 16:52:07 +000024288 fi
24289 fi
24290
24291 # It seems that -bexpall does not export symbols beginning with
24292 # underscore (_), so it is better to generate a list of symbols to export.
24293 always_export_symbols_GCJ=yes
24294 if test "$aix_use_runtimelinking" = yes; then
24295 # Warning - without using the other runtime loading flags (-brtl),
24296 # -berok will link without error, but may produce a broken library.
24297 allow_undefined_flag_GCJ='-berok'
24298 # Determine the default libpath from the value encoded in an empty executable.
24299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024300/* confdefs.h. */
24301_ACEOF
24302cat confdefs.h >>conftest.$ac_ext
24303cat >>conftest.$ac_ext <<_ACEOF
24304/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024305
John Criswell47fdd832003-07-14 16:52:07 +000024306int
24307main ()
24308{
24309
24310 ;
24311 return 0;
24312}
24313_ACEOF
24314rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024315if { (ac_try="$ac_link"
24316case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24319esac
24320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024322 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024323 grep -v '^ *+' conftest.er1 >conftest.err
24324 rm -f conftest.er1
24325 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24329 { (case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24332esac
24333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024335 ac_status=$?
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; } &&
24338 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024339 { (case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24342esac
24343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024345 ac_status=$?
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; }; then
24348
24349aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24350}'`
24351# Check for a 64-bit object if we didn't find anything.
24352if 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; }
24353}'`; fi
24354else
24355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024356sed 's/^/| /' conftest.$ac_ext >&5
24357
Reid Spencera773bd52006-08-04 18:18:08 +000024358
John Criswell47fdd832003-07-14 16:52:07 +000024359fi
Reid Spencera773bd52006-08-04 18:18:08 +000024360
24361rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024362 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24364
24365 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024366 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 +000024367 else
24368 if test "$host_cpu" = ia64; then
24369 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24370 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024371 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 +000024372 else
24373 # Determine the default libpath from the value encoded in an empty executable.
24374 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024375/* confdefs.h. */
24376_ACEOF
24377cat confdefs.h >>conftest.$ac_ext
24378cat >>conftest.$ac_ext <<_ACEOF
24379/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024380
John Criswell47fdd832003-07-14 16:52:07 +000024381int
24382main ()
24383{
24384
24385 ;
24386 return 0;
24387}
24388_ACEOF
24389rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024390if { (ac_try="$ac_link"
24391case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24394esac
24395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024398 grep -v '^ *+' conftest.er1 >conftest.err
24399 rm -f conftest.er1
24400 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24404 { (case "(($ac_try" in
24405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24407esac
24408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024410 ac_status=$?
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; } &&
24413 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024414 { (case "(($ac_try" in
24415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416 *) ac_try_echo=$ac_try;;
24417esac
24418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024420 ac_status=$?
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; }; then
24423
24424aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24425}'`
24426# Check for a 64-bit object if we didn't find anything.
24427if 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; }
24428}'`; fi
24429else
24430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024431sed 's/^/| /' conftest.$ac_ext >&5
24432
Reid Spencera773bd52006-08-04 18:18:08 +000024433
John Criswell47fdd832003-07-14 16:52:07 +000024434fi
Reid Spencera773bd52006-08-04 18:18:08 +000024435
24436rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024437 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024438if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24439
24440 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24441 # Warning - without using the other run time loading flags,
24442 # -berok will link without error, but may produce a broken library.
24443 no_undefined_flag_GCJ=' ${wl}-bernotok'
24444 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024445 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024446 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024447 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024448 # This is similar to how AIX traditionally builds its shared libraries.
24449 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 +000024450 fi
24451 fi
24452 ;;
24453
24454 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024455 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 +000024456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24457 hardcode_minus_L_GCJ=yes
24458 # see comment about different semantics on the GNU ld section
24459 ld_shlibs_GCJ=no
24460 ;;
24461
Reid Spencer2706f8c2004-09-19 23:53:36 +000024462 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024463 export_dynamic_flag_spec_GCJ=-rdynamic
24464 ;;
24465
24466 cygwin* | mingw* | pw32*)
24467 # When not using gcc, we currently assume that we are using
24468 # Microsoft Visual C++.
24469 # hardcode_libdir_flag_spec is actually meaningless, as there is
24470 # no search path for DLLs.
24471 hardcode_libdir_flag_spec_GCJ=' '
24472 allow_undefined_flag_GCJ=unsupported
24473 # Tell ltmain to make .lib files, not .a files.
24474 libext=lib
24475 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024476 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024477 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024478 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 +000024479 # The linker will automatically build a .lib file if we build a DLL.
24480 old_archive_From_new_cmds_GCJ='true'
24481 # FIXME: Should let the user specify the lib program.
24482 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024483 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024484 enable_shared_with_static_runtimes_GCJ=yes
24485 ;;
24486
24487 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024488 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024489 rhapsody* | darwin1.[012])
24490 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24491 ;;
24492 *) # Darwin 1.3 on
24493 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24494 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24495 else
24496 case ${MACOSX_DEPLOYMENT_TARGET} in
24497 10.[012])
24498 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24499 ;;
24500 10.*)
24501 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24502 ;;
24503 esac
24504 fi
24505 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024506 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024507 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024508 hardcode_direct_GCJ=no
24509 hardcode_automatic_GCJ=yes
24510 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024511 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024512 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024513 if test "$GCC" = yes ; then
24514 output_verbose_link_cmd='echo'
24515 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24516 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024517 # 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 +000024518 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}'
24519 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 +000024520 else
Reid Spencera773bd52006-08-04 18:18:08 +000024521 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024522 xlc*)
24523 output_verbose_link_cmd='echo'
24524 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24525 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024526 # 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 +000024527 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}'
24528 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 +000024529 ;;
24530 *)
24531 ld_shlibs_GCJ=no
24532 ;;
24533 esac
John Criswell47fdd832003-07-14 16:52:07 +000024534 fi
24535 ;;
24536
24537 dgux*)
24538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24539 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24540 hardcode_shlibpath_var_GCJ=no
24541 ;;
24542
24543 freebsd1*)
24544 ld_shlibs_GCJ=no
24545 ;;
24546
24547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24548 # support. Future versions do this automatically, but an explicit c++rt0.o
24549 # does not break anything, and helps significantly (at the cost of a little
24550 # extra space).
24551 freebsd2.2*)
24552 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24553 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24554 hardcode_direct_GCJ=yes
24555 hardcode_shlibpath_var_GCJ=no
24556 ;;
24557
24558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24559 freebsd2*)
24560 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24561 hardcode_direct_GCJ=yes
24562 hardcode_minus_L_GCJ=yes
24563 hardcode_shlibpath_var_GCJ=no
24564 ;;
24565
24566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024567 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024568 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24570 hardcode_direct_GCJ=yes
24571 hardcode_shlibpath_var_GCJ=no
24572 ;;
24573
24574 hpux9*)
24575 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024576 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 +000024577 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024578 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 +000024579 fi
24580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24581 hardcode_libdir_separator_GCJ=:
24582 hardcode_direct_GCJ=yes
24583
24584 # hardcode_minus_L: Not really in the search PATH,
24585 # but as the default location of the library.
24586 hardcode_minus_L_GCJ=yes
24587 export_dynamic_flag_spec_GCJ='${wl}-E'
24588 ;;
24589
Reid Spencera773bd52006-08-04 18:18:08 +000024590 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024591 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024592 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24593 else
24594 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24595 fi
24596 if test "$with_gnu_ld" = no; then
24597 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24598 hardcode_libdir_separator_GCJ=:
24599
24600 hardcode_direct_GCJ=yes
24601 export_dynamic_flag_spec_GCJ='${wl}-E'
24602
24603 # hardcode_minus_L: Not really in the search PATH,
24604 # but as the default location of the library.
24605 hardcode_minus_L_GCJ=yes
24606 fi
24607 ;;
24608
24609 hpux11*)
24610 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24611 case $host_cpu in
24612 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024613 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24614 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024615 ia64*)
24616 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24617 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024618 *)
24619 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24620 ;;
24621 esac
24622 else
Reid Spencera773bd52006-08-04 18:18:08 +000024623 case $host_cpu in
24624 hppa*64*)
24625 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24626 ;;
24627 ia64*)
24628 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024629 ;;
24630 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024631 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 +000024632 ;;
24633 esac
24634 fi
24635 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024636 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24637 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024638
Reid Spencera773bd52006-08-04 18:18:08 +000024639 case $host_cpu in
24640 hppa*64*|ia64*)
24641 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24642 hardcode_direct_GCJ=no
24643 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024644 ;;
24645 *)
John Criswell47fdd832003-07-14 16:52:07 +000024646 hardcode_direct_GCJ=yes
24647 export_dynamic_flag_spec_GCJ='${wl}-E'
24648
24649 # hardcode_minus_L: Not really in the search PATH,
24650 # but as the default location of the library.
24651 hardcode_minus_L_GCJ=yes
24652 ;;
24653 esac
24654 fi
24655 ;;
24656
24657 irix5* | irix6* | nonstopux*)
24658 if test "$GCC" = yes; then
24659 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'
24660 else
24661 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'
24662 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24663 fi
24664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24665 hardcode_libdir_separator_GCJ=:
24666 link_all_deplibs_GCJ=yes
24667 ;;
24668
24669 netbsd*)
24670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24671 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24672 else
24673 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24674 fi
24675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24676 hardcode_direct_GCJ=yes
24677 hardcode_shlibpath_var_GCJ=no
24678 ;;
24679
24680 newsos6)
24681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24682 hardcode_direct_GCJ=yes
24683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24684 hardcode_libdir_separator_GCJ=:
24685 hardcode_shlibpath_var_GCJ=no
24686 ;;
24687
24688 openbsd*)
24689 hardcode_direct_GCJ=yes
24690 hardcode_shlibpath_var_GCJ=no
24691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24692 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024693 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 +000024694 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24695 export_dynamic_flag_spec_GCJ='${wl}-E'
24696 else
24697 case $host_os in
24698 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24699 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24700 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24701 ;;
24702 *)
24703 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24705 ;;
24706 esac
24707 fi
24708 ;;
24709
24710 os2*)
24711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24712 hardcode_minus_L_GCJ=yes
24713 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024714 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 +000024715 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24716 ;;
24717
24718 osf3*)
24719 if test "$GCC" = yes; then
24720 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24721 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'
24722 else
24723 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24724 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'
24725 fi
24726 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24727 hardcode_libdir_separator_GCJ=:
24728 ;;
24729
24730 osf4* | osf5*) # as osf3* with the addition of -msym flag
24731 if test "$GCC" = yes; then
24732 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24733 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'
24734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24735 else
24736 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24737 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 +000024738 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 +000024739 $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 +000024740
John Criswell47fdd832003-07-14 16:52:07 +000024741 # Both c and cxx compiler support -rpath directly
24742 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24743 fi
24744 hardcode_libdir_separator_GCJ=:
24745 ;;
24746
John Criswell47fdd832003-07-14 16:52:07 +000024747 solaris*)
24748 no_undefined_flag_GCJ=' -z text'
24749 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024750 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024751 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024752 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24753 $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 +000024754 else
Reid Spencera773bd52006-08-04 18:18:08 +000024755 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024756 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024757 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24758 $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 +000024759 fi
24760 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24761 hardcode_shlibpath_var_GCJ=no
24762 case $host_os in
24763 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024764 *)
24765 # The compiler driver will combine linker options so we
24766 # cannot just pass the convience library names through
24767 # without $wl, iff we do not link with $LD.
24768 # Luckily, gcc supports the same syntax we need for Sun Studio.
24769 # Supported since Solaris 2.6 (maybe 2.5.1?)
24770 case $wlarc in
24771 '')
24772 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24773 *)
24774 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' ;;
24775 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024776 esac
24777 link_all_deplibs_GCJ=yes
24778 ;;
24779
24780 sunos4*)
24781 if test "x$host_vendor" = xsequent; then
24782 # Use $CC to link under sequent, because it throws in some extra .o
24783 # files that make .init and .fini sections work.
24784 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24785 else
24786 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24787 fi
24788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24789 hardcode_direct_GCJ=yes
24790 hardcode_minus_L_GCJ=yes
24791 hardcode_shlibpath_var_GCJ=no
24792 ;;
24793
24794 sysv4)
24795 case $host_vendor in
24796 sni)
24797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24798 hardcode_direct_GCJ=yes # is this really true???
24799 ;;
24800 siemens)
24801 ## LD is ld it makes a PLAMLIB
24802 ## CC just makes a GrossModule.
24803 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24804 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24805 hardcode_direct_GCJ=no
24806 ;;
24807 motorola)
24808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24809 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24810 ;;
24811 esac
24812 runpath_var='LD_RUN_PATH'
24813 hardcode_shlibpath_var_GCJ=no
24814 ;;
24815
24816 sysv4.3*)
24817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818 hardcode_shlibpath_var_GCJ=no
24819 export_dynamic_flag_spec_GCJ='-Bexport'
24820 ;;
24821
24822 sysv4*MP*)
24823 if test -d /usr/nec; then
24824 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24825 hardcode_shlibpath_var_GCJ=no
24826 runpath_var=LD_RUN_PATH
24827 hardcode_runpath_var=yes
24828 ld_shlibs_GCJ=yes
24829 fi
24830 ;;
24831
Reid Spencera773bd52006-08-04 18:18:08 +000024832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24833 no_undefined_flag_GCJ='${wl}-z,text'
24834 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024835 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024836 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024837
John Criswell47fdd832003-07-14 16:52:07 +000024838 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024839 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24840 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 +000024841 else
Reid Spencera773bd52006-08-04 18:18:08 +000024842 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24843 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 +000024844 fi
John Criswell47fdd832003-07-14 16:52:07 +000024845 ;;
24846
Reid Spencera773bd52006-08-04 18:18:08 +000024847 sysv5* | sco3.2v5* | sco5v6*)
24848 # Note: We can NOT use -z defs as we might desire, because we do not
24849 # link with -lc, and that would cause any symbols used from libc to
24850 # always be unresolved, which means just about no library would
24851 # ever link correctly. If we're not using GNU ld we use -z text
24852 # though, which does catch some bad symbols but isn't as heavy-handed
24853 # as -z defs.
24854 no_undefined_flag_GCJ='${wl}-z,text'
24855 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24856 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024857 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024858 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24859 hardcode_libdir_separator_GCJ=':'
24860 link_all_deplibs_GCJ=yes
24861 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024862 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024863
24864 if test "$GCC" = yes; then
24865 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24866 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24867 else
24868 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24869 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24870 fi
John Criswell47fdd832003-07-14 16:52:07 +000024871 ;;
24872
24873 uts4*)
24874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24876 hardcode_shlibpath_var_GCJ=no
24877 ;;
24878
24879 *)
24880 ld_shlibs_GCJ=no
24881 ;;
24882 esac
24883 fi
24884
Reid Spencera773bd52006-08-04 18:18:08 +000024885{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24886echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024887test "$ld_shlibs_GCJ" = no && can_build_shared=no
24888
John Criswell47fdd832003-07-14 16:52:07 +000024889#
24890# Do we need to explicitly link libc?
24891#
24892case "x$archive_cmds_need_lc_GCJ" in
24893x|xyes)
24894 # Assume -lc should be added
24895 archive_cmds_need_lc_GCJ=yes
24896
24897 if test "$enable_shared" = yes && test "$GCC" = yes; then
24898 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024899 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024900 # FIXME: we may have to deal with multi-command sequences.
24901 ;;
24902 '$CC '*)
24903 # Test whether the compiler implicitly links with -lc since on some
24904 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24905 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024906 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24907echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024908 $rm conftest*
24909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24910
24911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24912 (eval $ac_compile) 2>&5
24913 ac_status=$?
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } 2>conftest.err; then
24916 soname=conftest
24917 lib=conftest
24918 libobjs=conftest.$ac_objext
24919 deplibs=
24920 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024921 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024922 compiler_flags=-v
24923 linker_flags=-v
24924 verstring=
24925 output_objdir=.
24926 libname=conftest
24927 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24928 allow_undefined_flag_GCJ=
24929 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24930 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }
24934 then
24935 archive_cmds_need_lc_GCJ=no
24936 else
24937 archive_cmds_need_lc_GCJ=yes
24938 fi
24939 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24940 else
24941 cat conftest.err 1>&5
24942 fi
24943 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024944 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24945echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024946 ;;
24947 esac
24948 fi
24949 ;;
24950esac
24951
Reid Spencera773bd52006-08-04 18:18:08 +000024952{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24953echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024954library_names_spec=
24955libname_spec='lib$name'
24956soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024957shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024958postinstall_cmds=
24959postuninstall_cmds=
24960finish_cmds=
24961finish_eval=
24962shlibpath_var=
24963shlibpath_overrides_runpath=unknown
24964version_type=none
24965dynamic_linker="$host_os ld.so"
24966sys_lib_dlsearch_path_spec="/lib /usr/lib"
24967if test "$GCC" = yes; then
24968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24969 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24970 # if the path contains ";" then we assume it to be the separator
24971 # otherwise default to the standard path separator (i.e. ":") - it is
24972 # assumed that no part of a normal pathname contains ";" but that should
24973 # okay in the real world where ";" in dirpaths is itself problematic.
24974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24975 else
24976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24977 fi
24978else
24979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24980fi
24981need_lib_prefix=unknown
24982hardcode_into_libs=no
24983
24984# when you set need_version to no, make sure it does not cause -set_version
24985# flags to be left without arguments
24986need_version=unknown
24987
24988case $host_os in
24989aix3*)
24990 version_type=linux
24991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24992 shlibpath_var=LIBPATH
24993
24994 # AIX 3 has no versioning support, so we append a major version to the name.
24995 soname_spec='${libname}${release}${shared_ext}$major'
24996 ;;
24997
24998aix4* | aix5*)
24999 version_type=linux
25000 need_lib_prefix=no
25001 need_version=no
25002 hardcode_into_libs=yes
25003 if test "$host_cpu" = ia64; then
25004 # AIX 5 supports IA64
25005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25006 shlibpath_var=LD_LIBRARY_PATH
25007 else
25008 # With GCC up to 2.95.x, collect2 would create an import file
25009 # for dependence libraries. The import file would start with
25010 # the line `#! .'. This would cause the generated library to
25011 # depend on `.', always an invalid library. This was fixed in
25012 # development snapshots of GCC prior to 3.0.
25013 case $host_os in
25014 aix4 | aix4.[01] | aix4.[01].*)
25015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25016 echo ' yes '
25017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25018 :
25019 else
25020 can_build_shared=no
25021 fi
25022 ;;
25023 esac
25024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25025 # soname into executable. Probably we can add versioning support to
25026 # collect2, so additional links can be useful in future.
25027 if test "$aix_use_runtimelinking" = yes; then
25028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25029 # instead of lib<name>.a to let people know that these are not
25030 # typical AIX shared libraries.
25031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25032 else
25033 # We preserve .a as extension for shared libraries through AIX4.2
25034 # and later when we are not doing run time linking.
25035 library_names_spec='${libname}${release}.a $libname.a'
25036 soname_spec='${libname}${release}${shared_ext}$major'
25037 fi
25038 shlibpath_var=LIBPATH
25039 fi
25040 ;;
25041
25042amigaos*)
25043 library_names_spec='$libname.ixlibrary $libname.a'
25044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025045 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 +000025046 ;;
25047
25048beos*)
25049 library_names_spec='${libname}${shared_ext}'
25050 dynamic_linker="$host_os ld.so"
25051 shlibpath_var=LIBRARY_PATH
25052 ;;
25053
Reid Spencer2706f8c2004-09-19 23:53:36 +000025054bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025055 version_type=linux
25056 need_version=no
25057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25058 soname_spec='${libname}${release}${shared_ext}$major'
25059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25060 shlibpath_var=LD_LIBRARY_PATH
25061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25063 # the default ld.so.conf also contains /usr/contrib/lib and
25064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25065 # libtool to hard-code these into programs
25066 ;;
25067
25068cygwin* | mingw* | pw32*)
25069 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025070 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025071 need_version=no
25072 need_lib_prefix=no
25073
25074 case $GCC,$host_os in
25075 yes,cygwin* | yes,mingw* | yes,pw32*)
25076 library_names_spec='$libname.dll.a'
25077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025078 postinstall_cmds='base_file=`basename \${file}`~
25079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25080 dldir=$destdir/`dirname \$dlpath`~
25081 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025082 $install_prog $dir/$dlname \$dldir/$dlname~
25083 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25085 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025086 $rm \$dlpath'
25087 shlibpath_overrides_runpath=yes
25088
25089 case $host_os in
25090 cygwin*)
25091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25092 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 +000025093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025094 ;;
25095 mingw*)
25096 # MinGW DLLs use traditional 'lib' prefix
25097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25100 # It is most probably a Windows format PATH printed by
25101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25102 # path with ; separators, and with drive letters. We can handle the
25103 # drive letters (cygwin fileutils understands them), so leave them,
25104 # especially as we might pass files found there to a mingw objdump,
25105 # which wouldn't understand a cygwinified path. Ahh.
25106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25107 else
25108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25109 fi
25110 ;;
25111 pw32*)
25112 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025113 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 +000025114 ;;
25115 esac
25116 ;;
25117
25118 *)
25119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25120 ;;
25121 esac
25122 dynamic_linker='Win32 ld.exe'
25123 # FIXME: first we should search . and the directory the executable is in
25124 shlibpath_var=PATH
25125 ;;
25126
25127darwin* | rhapsody*)
25128 dynamic_linker="$host_os dyld"
25129 version_type=darwin
25130 need_lib_prefix=no
25131 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025132 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025133 soname_spec='${libname}${release}${major}$shared_ext'
25134 shlibpath_overrides_runpath=yes
25135 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025137 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025138 if test "$GCC" = yes; then
25139 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"`
25140 else
25141 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025142 fi
25143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25144 ;;
25145
25146dgux*)
25147 version_type=linux
25148 need_lib_prefix=no
25149 need_version=no
25150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25151 soname_spec='${libname}${release}${shared_ext}$major'
25152 shlibpath_var=LD_LIBRARY_PATH
25153 ;;
25154
25155freebsd1*)
25156 dynamic_linker=no
25157 ;;
25158
Reid Spencer2706f8c2004-09-19 23:53:36 +000025159kfreebsd*-gnu)
25160 version_type=linux
25161 need_lib_prefix=no
25162 need_version=no
25163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25164 soname_spec='${libname}${release}${shared_ext}$major'
25165 shlibpath_var=LD_LIBRARY_PATH
25166 shlibpath_overrides_runpath=no
25167 hardcode_into_libs=yes
25168 dynamic_linker='GNU ld.so'
25169 ;;
25170
Reid Spencera773bd52006-08-04 18:18:08 +000025171freebsd* | dragonfly*)
25172 # DragonFly does not have aout. When/if they implement a new
25173 # versioning mechanism, adjust this.
25174 if test -x /usr/bin/objformat; then
25175 objformat=`/usr/bin/objformat`
25176 else
25177 case $host_os in
25178 freebsd[123]*) objformat=aout ;;
25179 *) objformat=elf ;;
25180 esac
25181 fi
John Criswell47fdd832003-07-14 16:52:07 +000025182 version_type=freebsd-$objformat
25183 case $version_type in
25184 freebsd-elf*)
25185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25186 need_version=no
25187 need_lib_prefix=no
25188 ;;
25189 freebsd-*)
25190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25191 need_version=yes
25192 ;;
25193 esac
25194 shlibpath_var=LD_LIBRARY_PATH
25195 case $host_os in
25196 freebsd2*)
25197 shlibpath_overrides_runpath=yes
25198 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025199 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025200 shlibpath_overrides_runpath=yes
25201 hardcode_into_libs=yes
25202 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025203 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25204 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025205 shlibpath_overrides_runpath=no
25206 hardcode_into_libs=yes
25207 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025208 freebsd*) # from 4.6 on
25209 shlibpath_overrides_runpath=yes
25210 hardcode_into_libs=yes
25211 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025212 esac
25213 ;;
25214
25215gnu*)
25216 version_type=linux
25217 need_lib_prefix=no
25218 need_version=no
25219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25220 soname_spec='${libname}${release}${shared_ext}$major'
25221 shlibpath_var=LD_LIBRARY_PATH
25222 hardcode_into_libs=yes
25223 ;;
25224
25225hpux9* | hpux10* | hpux11*)
25226 # Give a soname corresponding to the major version so that dld.sl refuses to
25227 # link against other versions.
25228 version_type=sunos
25229 need_lib_prefix=no
25230 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025231 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025232 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025233 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025234 hardcode_into_libs=yes
25235 dynamic_linker="$host_os dld.so"
25236 shlibpath_var=LD_LIBRARY_PATH
25237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25239 soname_spec='${libname}${release}${shared_ext}$major'
25240 if test "X$HPUX_IA64_MODE" = X32; then
25241 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25242 else
25243 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25244 fi
25245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25246 ;;
25247 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025248 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025249 hardcode_into_libs=yes
25250 dynamic_linker="$host_os dld.sl"
25251 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25252 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25254 soname_spec='${libname}${release}${shared_ext}$major'
25255 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25257 ;;
25258 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025259 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025260 dynamic_linker="$host_os dld.sl"
25261 shlibpath_var=SHLIB_PATH
25262 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25264 soname_spec='${libname}${release}${shared_ext}$major'
25265 ;;
25266 esac
25267 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25268 postinstall_cmds='chmod 555 $lib'
25269 ;;
25270
Reid Spencera773bd52006-08-04 18:18:08 +000025271interix3*)
25272 version_type=linux
25273 need_lib_prefix=no
25274 need_version=no
25275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25276 soname_spec='${libname}${release}${shared_ext}$major'
25277 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25278 shlibpath_var=LD_LIBRARY_PATH
25279 shlibpath_overrides_runpath=no
25280 hardcode_into_libs=yes
25281 ;;
25282
John Criswell47fdd832003-07-14 16:52:07 +000025283irix5* | irix6* | nonstopux*)
25284 case $host_os in
25285 nonstopux*) version_type=nonstopux ;;
25286 *)
25287 if test "$lt_cv_prog_gnu_ld" = yes; then
25288 version_type=linux
25289 else
25290 version_type=irix
25291 fi ;;
25292 esac
25293 need_lib_prefix=no
25294 need_version=no
25295 soname_spec='${libname}${release}${shared_ext}$major'
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25297 case $host_os in
25298 irix5* | nonstopux*)
25299 libsuff= shlibsuff=
25300 ;;
25301 *)
25302 case $LD in # libtool.m4 will add one of these switches to LD
25303 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25304 libsuff= shlibsuff= libmagic=32-bit;;
25305 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25306 libsuff=32 shlibsuff=N32 libmagic=N32;;
25307 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25308 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25309 *) libsuff= shlibsuff= libmagic=never-match;;
25310 esac
25311 ;;
25312 esac
25313 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25314 shlibpath_overrides_runpath=no
25315 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25316 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25317 hardcode_into_libs=yes
25318 ;;
25319
25320# No shared lib support for Linux oldld, aout, or coff.
25321linux*oldld* | linux*aout* | linux*coff*)
25322 dynamic_linker=no
25323 ;;
25324
25325# This must be Linux ELF.
25326linux*)
25327 version_type=linux
25328 need_lib_prefix=no
25329 need_version=no
25330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25331 soname_spec='${libname}${release}${shared_ext}$major'
25332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25333 shlibpath_var=LD_LIBRARY_PATH
25334 shlibpath_overrides_runpath=no
25335 # This implies no fast_install, which is unacceptable.
25336 # Some rework will be needed to allow for fast_install
25337 # before this can be enabled.
25338 hardcode_into_libs=yes
25339
Reid Spencer2706f8c2004-09-19 23:53:36 +000025340 # Append ld.so.conf contents to the search path
25341 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025342 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 +000025343 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25344 fi
25345
John Criswell47fdd832003-07-14 16:52:07 +000025346 # We used to test for /lib/ld.so.1 and disable shared libraries on
25347 # powerpc, because MkLinux only supported shared libraries with the
25348 # GNU dynamic linker. Since this was broken with cross compilers,
25349 # most powerpc-linux boxes support dynamic linking these days and
25350 # people can always --disable-shared, the test was removed, and we
25351 # assume the GNU/Linux dynamic linker is in use.
25352 dynamic_linker='GNU/Linux ld.so'
25353 ;;
25354
Reid Spencer2706f8c2004-09-19 23:53:36 +000025355knetbsd*-gnu)
25356 version_type=linux
25357 need_lib_prefix=no
25358 need_version=no
25359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25360 soname_spec='${libname}${release}${shared_ext}$major'
25361 shlibpath_var=LD_LIBRARY_PATH
25362 shlibpath_overrides_runpath=no
25363 hardcode_into_libs=yes
25364 dynamic_linker='GNU ld.so'
25365 ;;
25366
John Criswell47fdd832003-07-14 16:52:07 +000025367netbsd*)
25368 version_type=sunos
25369 need_lib_prefix=no
25370 need_version=no
25371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25374 dynamic_linker='NetBSD (a.out) ld.so'
25375 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025377 soname_spec='${libname}${release}${shared_ext}$major'
25378 dynamic_linker='NetBSD ld.elf_so'
25379 fi
25380 shlibpath_var=LD_LIBRARY_PATH
25381 shlibpath_overrides_runpath=yes
25382 hardcode_into_libs=yes
25383 ;;
25384
25385newsos6)
25386 version_type=linux
25387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25388 shlibpath_var=LD_LIBRARY_PATH
25389 shlibpath_overrides_runpath=yes
25390 ;;
25391
Reid Spencer2706f8c2004-09-19 23:53:36 +000025392nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025393 version_type=linux
25394 need_lib_prefix=no
25395 need_version=no
25396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25397 soname_spec='${libname}${release}${shared_ext}$major'
25398 shlibpath_var=LD_LIBRARY_PATH
25399 shlibpath_overrides_runpath=yes
25400 ;;
25401
25402openbsd*)
25403 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025404 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025405 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025406 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25407 case $host_os in
25408 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25409 *) need_version=no ;;
25410 esac
John Criswell47fdd832003-07-14 16:52:07 +000025411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25413 shlibpath_var=LD_LIBRARY_PATH
25414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25415 case $host_os in
25416 openbsd2.[89] | openbsd2.[89].*)
25417 shlibpath_overrides_runpath=no
25418 ;;
25419 *)
25420 shlibpath_overrides_runpath=yes
25421 ;;
25422 esac
25423 else
25424 shlibpath_overrides_runpath=yes
25425 fi
25426 ;;
25427
25428os2*)
25429 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025430 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025431 need_lib_prefix=no
25432 library_names_spec='$libname${shared_ext} $libname.a'
25433 dynamic_linker='OS/2 ld.exe'
25434 shlibpath_var=LIBPATH
25435 ;;
25436
25437osf3* | osf4* | osf5*)
25438 version_type=osf
25439 need_lib_prefix=no
25440 need_version=no
25441 soname_spec='${libname}${release}${shared_ext}$major'
25442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25443 shlibpath_var=LD_LIBRARY_PATH
25444 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25445 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25446 ;;
25447
John Criswell47fdd832003-07-14 16:52:07 +000025448solaris*)
25449 version_type=linux
25450 need_lib_prefix=no
25451 need_version=no
25452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25453 soname_spec='${libname}${release}${shared_ext}$major'
25454 shlibpath_var=LD_LIBRARY_PATH
25455 shlibpath_overrides_runpath=yes
25456 hardcode_into_libs=yes
25457 # ldd complains unless libraries are executable
25458 postinstall_cmds='chmod +x $lib'
25459 ;;
25460
25461sunos4*)
25462 version_type=sunos
25463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25464 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25465 shlibpath_var=LD_LIBRARY_PATH
25466 shlibpath_overrides_runpath=yes
25467 if test "$with_gnu_ld" = yes; then
25468 need_lib_prefix=no
25469 fi
25470 need_version=yes
25471 ;;
25472
Reid Spencera773bd52006-08-04 18:18:08 +000025473sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025474 version_type=linux
25475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25476 soname_spec='${libname}${release}${shared_ext}$major'
25477 shlibpath_var=LD_LIBRARY_PATH
25478 case $host_vendor in
25479 sni)
25480 shlibpath_overrides_runpath=no
25481 need_lib_prefix=no
25482 export_dynamic_flag_spec='${wl}-Blargedynsym'
25483 runpath_var=LD_RUN_PATH
25484 ;;
25485 siemens)
25486 need_lib_prefix=no
25487 ;;
25488 motorola)
25489 need_lib_prefix=no
25490 need_version=no
25491 shlibpath_overrides_runpath=no
25492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25493 ;;
25494 esac
25495 ;;
25496
25497sysv4*MP*)
25498 if test -d /usr/nec ;then
25499 version_type=linux
25500 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25501 soname_spec='$libname${shared_ext}.$major'
25502 shlibpath_var=LD_LIBRARY_PATH
25503 fi
25504 ;;
25505
Reid Spencera773bd52006-08-04 18:18:08 +000025506sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25507 version_type=freebsd-elf
25508 need_lib_prefix=no
25509 need_version=no
25510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25511 soname_spec='${libname}${release}${shared_ext}$major'
25512 shlibpath_var=LD_LIBRARY_PATH
25513 hardcode_into_libs=yes
25514 if test "$with_gnu_ld" = yes; then
25515 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25516 shlibpath_overrides_runpath=no
25517 else
25518 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25519 shlibpath_overrides_runpath=yes
25520 case $host_os in
25521 sco3.2v5*)
25522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25523 ;;
25524 esac
25525 fi
25526 sys_lib_dlsearch_path_spec='/usr/lib'
25527 ;;
25528
John Criswell47fdd832003-07-14 16:52:07 +000025529uts4*)
25530 version_type=linux
25531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25532 soname_spec='${libname}${release}${shared_ext}$major'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 ;;
25535
25536*)
25537 dynamic_linker=no
25538 ;;
25539esac
Reid Spencera773bd52006-08-04 18:18:08 +000025540{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25541echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025542test "$dynamic_linker" = no && can_build_shared=no
25543
Reid Spencera773bd52006-08-04 18:18:08 +000025544variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25545if test "$GCC" = yes; then
25546 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25547fi
25548
25549{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25550echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025551hardcode_action_GCJ=
25552if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25553 test -n "$runpath_var_GCJ" || \
25554 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25555
25556 # We can hardcode non-existant directories.
25557 if test "$hardcode_direct_GCJ" != no &&
25558 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25559 # have to relink, otherwise we might link with an installed library
25560 # when we should be linking with a yet-to-be-installed one
25561 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25562 test "$hardcode_minus_L_GCJ" != no; then
25563 # Linking always hardcodes the temporary library directory.
25564 hardcode_action_GCJ=relink
25565 else
25566 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25567 hardcode_action_GCJ=immediate
25568 fi
25569else
25570 # We cannot hardcode anything, or else we can only hardcode existing
25571 # directories.
25572 hardcode_action_GCJ=unsupported
25573fi
Reid Spencera773bd52006-08-04 18:18:08 +000025574{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25575echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576
25577if test "$hardcode_action_GCJ" = relink; then
25578 # Fast installation is not supported
25579 enable_fast_install=no
25580elif test "$shlibpath_overrides_runpath" = yes ||
25581 test "$enable_shared" = no; then
25582 # Fast installation is not necessary
25583 enable_fast_install=needless
25584fi
25585
John Criswell47fdd832003-07-14 16:52:07 +000025586
25587# The else clause should only fire when bootstrapping the
25588# libtool distribution, otherwise you forgot to ship ltmain.sh
25589# with your package, and you will get complaints that there are
25590# no rules to generate ltmain.sh.
25591if test -f "$ltmain"; then
25592 # See if we are running on zsh, and set the options which allow our commands through
25593 # without removal of \ escapes.
25594 if test -n "${ZSH_VERSION+set}" ; then
25595 setopt NO_GLOB_SUBST
25596 fi
25597 # Now quote all the things that may contain metacharacters while being
25598 # careful not to overquote the AC_SUBSTed values. We take copies of the
25599 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025600 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 +000025601 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025602 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25603 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25604 deplibs_check_method reload_flag reload_cmds need_locks \
25605 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25606 lt_cv_sys_global_symbol_to_c_name_address \
25607 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25608 old_postinstall_cmds old_postuninstall_cmds \
25609 compiler_GCJ \
25610 CC_GCJ \
25611 LD_GCJ \
25612 lt_prog_compiler_wl_GCJ \
25613 lt_prog_compiler_pic_GCJ \
25614 lt_prog_compiler_static_GCJ \
25615 lt_prog_compiler_no_builtin_flag_GCJ \
25616 export_dynamic_flag_spec_GCJ \
25617 thread_safe_flag_spec_GCJ \
25618 whole_archive_flag_spec_GCJ \
25619 enable_shared_with_static_runtimes_GCJ \
25620 old_archive_cmds_GCJ \
25621 old_archive_from_new_cmds_GCJ \
25622 predep_objects_GCJ \
25623 postdep_objects_GCJ \
25624 predeps_GCJ \
25625 postdeps_GCJ \
25626 compiler_lib_search_path_GCJ \
25627 archive_cmds_GCJ \
25628 archive_expsym_cmds_GCJ \
25629 postinstall_cmds_GCJ \
25630 postuninstall_cmds_GCJ \
25631 old_archive_from_expsyms_cmds_GCJ \
25632 allow_undefined_flag_GCJ \
25633 no_undefined_flag_GCJ \
25634 export_symbols_cmds_GCJ \
25635 hardcode_libdir_flag_spec_GCJ \
25636 hardcode_libdir_flag_spec_ld_GCJ \
25637 hardcode_libdir_separator_GCJ \
25638 hardcode_automatic_GCJ \
25639 module_cmds_GCJ \
25640 module_expsym_cmds_GCJ \
25641 lt_cv_prog_compiler_c_o_GCJ \
25642 exclude_expsyms_GCJ \
25643 include_expsyms_GCJ; do
25644
25645 case $var in
25646 old_archive_cmds_GCJ | \
25647 old_archive_from_new_cmds_GCJ | \
25648 archive_cmds_GCJ | \
25649 archive_expsym_cmds_GCJ | \
25650 module_cmds_GCJ | \
25651 module_expsym_cmds_GCJ | \
25652 old_archive_from_expsyms_cmds_GCJ | \
25653 export_symbols_cmds_GCJ | \
25654 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25655 postinstall_cmds | postuninstall_cmds | \
25656 old_postinstall_cmds | old_postuninstall_cmds | \
25657 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25658 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025659 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 +000025660 ;;
25661 *)
25662 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25663 ;;
25664 esac
25665 done
25666
25667 case $lt_echo in
25668 *'\$0 --fallback-echo"')
25669 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25670 ;;
25671 esac
25672
25673cfgfile="$ofile"
25674
25675 cat <<__EOF__ >> "$cfgfile"
25676# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25677
25678# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25679
25680# Shell to use when invoking shell scripts.
25681SHELL=$lt_SHELL
25682
25683# Whether or not to build shared libraries.
25684build_libtool_libs=$enable_shared
25685
25686# Whether or not to build static libraries.
25687build_old_libs=$enable_static
25688
25689# Whether or not to add -lc for building shared libraries.
25690build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25691
25692# Whether or not to disallow shared libs when runtime libs are static
25693allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25694
25695# Whether or not to optimize for fast installation.
25696fast_install=$enable_fast_install
25697
25698# The host system.
25699host_alias=$host_alias
25700host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025701host_os=$host_os
25702
25703# The build system.
25704build_alias=$build_alias
25705build=$build
25706build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025707
25708# An echo program that does not interpret backslashes.
25709echo=$lt_echo
25710
25711# The archiver.
25712AR=$lt_AR
25713AR_FLAGS=$lt_AR_FLAGS
25714
25715# A C compiler.
25716LTCC=$lt_LTCC
25717
Reid Spencera773bd52006-08-04 18:18:08 +000025718# LTCC compiler flags.
25719LTCFLAGS=$lt_LTCFLAGS
25720
John Criswell47fdd832003-07-14 16:52:07 +000025721# A language-specific compiler.
25722CC=$lt_compiler_GCJ
25723
25724# Is the compiler the GNU C compiler?
25725with_gcc=$GCC_GCJ
25726
25727# An ERE matcher.
25728EGREP=$lt_EGREP
25729
25730# The linker used to build libraries.
25731LD=$lt_LD_GCJ
25732
25733# Whether we need hard or soft links.
25734LN_S=$lt_LN_S
25735
25736# A BSD-compatible nm program.
25737NM=$lt_NM
25738
25739# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025740STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025741
25742# Used to examine libraries when file_magic_cmd begins "file"
25743MAGIC_CMD=$MAGIC_CMD
25744
25745# Used on cygwin: DLL creation program.
25746DLLTOOL="$DLLTOOL"
25747
25748# Used on cygwin: object dumper.
25749OBJDUMP="$OBJDUMP"
25750
25751# Used on cygwin: assembler.
25752AS="$AS"
25753
25754# The name of the directory that contains temporary libtool files.
25755objdir=$objdir
25756
25757# How to create reloadable object files.
25758reload_flag=$lt_reload_flag
25759reload_cmds=$lt_reload_cmds
25760
25761# How to pass a linker flag through the compiler.
25762wl=$lt_lt_prog_compiler_wl_GCJ
25763
25764# Object file suffix (normally "o").
25765objext="$ac_objext"
25766
25767# Old archive suffix (normally "a").
25768libext="$libext"
25769
25770# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025771shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025772
25773# Executable file suffix (normally "").
25774exeext="$exeext"
25775
25776# Additional compiler flags for building library objects.
25777pic_flag=$lt_lt_prog_compiler_pic_GCJ
25778pic_mode=$pic_mode
25779
25780# What is the maximum length of a command?
25781max_cmd_len=$lt_cv_sys_max_cmd_len
25782
25783# Does compiler simultaneously support -c and -o options?
25784compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25785
Reid Spencera773bd52006-08-04 18:18:08 +000025786# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025787need_locks=$lt_need_locks
25788
25789# Do we need the lib prefix for modules?
25790need_lib_prefix=$need_lib_prefix
25791
25792# Do we need a version for libraries?
25793need_version=$need_version
25794
25795# Whether dlopen is supported.
25796dlopen_support=$enable_dlopen
25797
25798# Whether dlopen of programs is supported.
25799dlopen_self=$enable_dlopen_self
25800
25801# Whether dlopen of statically linked programs is supported.
25802dlopen_self_static=$enable_dlopen_self_static
25803
25804# Compiler flag to prevent dynamic linking.
25805link_static_flag=$lt_lt_prog_compiler_static_GCJ
25806
25807# Compiler flag to turn off builtin functions.
25808no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25809
25810# Compiler flag to allow reflexive dlopens.
25811export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25812
25813# Compiler flag to generate shared objects directly from archives.
25814whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25815
25816# Compiler flag to generate thread-safe objects.
25817thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25818
25819# Library versioning type.
25820version_type=$version_type
25821
25822# Format of library name prefix.
25823libname_spec=$lt_libname_spec
25824
25825# List of archive names. First name is the real one, the rest are links.
25826# The last name is the one that the linker finds with -lNAME.
25827library_names_spec=$lt_library_names_spec
25828
25829# The coded name of the library, if different from the real name.
25830soname_spec=$lt_soname_spec
25831
25832# Commands used to build and install an old-style archive.
25833RANLIB=$lt_RANLIB
25834old_archive_cmds=$lt_old_archive_cmds_GCJ
25835old_postinstall_cmds=$lt_old_postinstall_cmds
25836old_postuninstall_cmds=$lt_old_postuninstall_cmds
25837
25838# Create an old-style archive from a shared archive.
25839old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25840
25841# Create a temporary old-style archive to link instead of a shared archive.
25842old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25843
25844# Commands used to build and install a shared archive.
25845archive_cmds=$lt_archive_cmds_GCJ
25846archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25847postinstall_cmds=$lt_postinstall_cmds
25848postuninstall_cmds=$lt_postuninstall_cmds
25849
25850# Commands used to build a loadable module (assumed same as above if empty)
25851module_cmds=$lt_module_cmds_GCJ
25852module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25853
25854# Commands to strip libraries.
25855old_striplib=$lt_old_striplib
25856striplib=$lt_striplib
25857
25858# Dependencies to place before the objects being linked to create a
25859# shared library.
25860predep_objects=$lt_predep_objects_GCJ
25861
25862# Dependencies to place after the objects being linked to create a
25863# shared library.
25864postdep_objects=$lt_postdep_objects_GCJ
25865
25866# Dependencies to place before the objects being linked to create a
25867# shared library.
25868predeps=$lt_predeps_GCJ
25869
25870# Dependencies to place after the objects being linked to create a
25871# shared library.
25872postdeps=$lt_postdeps_GCJ
25873
25874# The library search path used internally by the compiler when linking
25875# a shared library.
25876compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25877
25878# Method to check whether dependent libraries are shared objects.
25879deplibs_check_method=$lt_deplibs_check_method
25880
25881# Command to use when deplibs_check_method == file_magic.
25882file_magic_cmd=$lt_file_magic_cmd
25883
25884# Flag that allows shared libraries with undefined symbols to be built.
25885allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25886
25887# Flag that forces no undefined symbols.
25888no_undefined_flag=$lt_no_undefined_flag_GCJ
25889
25890# Commands used to finish a libtool library installation in a directory.
25891finish_cmds=$lt_finish_cmds
25892
25893# Same as above, but a single script fragment to be evaled but not shown.
25894finish_eval=$lt_finish_eval
25895
25896# Take the output of nm and produce a listing of raw symbols and C names.
25897global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25898
25899# Transform the output of nm in a proper C declaration
25900global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25901
25902# Transform the output of nm in a C name address pair
25903global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25904
25905# This is the shared library runtime path variable.
25906runpath_var=$runpath_var
25907
25908# This is the shared library path variable.
25909shlibpath_var=$shlibpath_var
25910
25911# Is shlibpath searched before the hard-coded library search path?
25912shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25913
25914# How to hardcode a shared library path into an executable.
25915hardcode_action=$hardcode_action_GCJ
25916
25917# Whether we should hardcode library paths into libraries.
25918hardcode_into_libs=$hardcode_into_libs
25919
25920# Flag to hardcode \$libdir into a binary during linking.
25921# This must work even if \$libdir does not exist.
25922hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25923
25924# If ld is used when linking, flag to hardcode \$libdir into
25925# a binary during linking. This must work even if \$libdir does
25926# not exist.
25927hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25928
25929# Whether we need a single -rpath flag with a separated argument.
25930hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25931
25932# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25933# resulting binary.
25934hardcode_direct=$hardcode_direct_GCJ
25935
25936# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25937# resulting binary.
25938hardcode_minus_L=$hardcode_minus_L_GCJ
25939
25940# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25941# the resulting binary.
25942hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25943
25944# Set to yes if building a shared library automatically hardcodes DIR into the library
25945# and all subsequent libraries and executables linked against it.
25946hardcode_automatic=$hardcode_automatic_GCJ
25947
25948# Variables whose values should be saved in libtool wrapper scripts and
25949# restored at relink time.
25950variables_saved_for_relink="$variables_saved_for_relink"
25951
25952# Whether libtool must link a program against all its dependency libraries.
25953link_all_deplibs=$link_all_deplibs_GCJ
25954
25955# Compile-time system search path for libraries
25956sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25957
25958# Run-time system search path for libraries
25959sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25960
25961# Fix the shell variable \$srcfile for the compiler.
25962fix_srcfile_path="$fix_srcfile_path_GCJ"
25963
25964# Set to yes if exported symbols are required.
25965always_export_symbols=$always_export_symbols_GCJ
25966
25967# The commands to list exported symbols.
25968export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25969
25970# The commands to extract the exported symbol list from a shared archive.
25971extract_expsyms_cmds=$lt_extract_expsyms_cmds
25972
25973# Symbols that should not be listed in the preloaded symbols.
25974exclude_expsyms=$lt_exclude_expsyms_GCJ
25975
25976# Symbols that must always be exported.
25977include_expsyms=$lt_include_expsyms_GCJ
25978
25979# ### END LIBTOOL TAG CONFIG: $tagname
25980
25981__EOF__
25982
25983
25984else
25985 # If there is no Makefile yet, we rely on a make rule to execute
25986 # `config.status --recheck' to rerun these tests and create the
25987 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025988 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25989 if test -f "$ltmain_in"; then
25990 test -f Makefile && make "$ltmain"
25991 fi
John Criswell47fdd832003-07-14 16:52:07 +000025992fi
25993
25994
25995ac_ext=c
25996ac_cpp='$CPP $CPPFLAGS'
25997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25999ac_compiler_gnu=$ac_cv_c_compiler_gnu
26000
26001CC="$lt_save_CC"
26002
26003 else
26004 tagname=""
26005 fi
26006 ;;
26007
26008 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026009 ac_ext=c
26010ac_cpp='$CPP $CPPFLAGS'
26011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26013ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026014
26015
26016# Source file extension for RC test sources.
26017ac_ext=rc
26018
26019# Object file extension for compiled RC test sources.
26020objext=o
26021objext_RC=$objext
26022
26023# Code to be used in simple compile tests
26024lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26025
26026# Code to be used in simple link tests
26027lt_simple_link_test_code="$lt_simple_compile_test_code"
26028
26029# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26030
26031# If no C compiler was specified, use CC.
26032LTCC=${LTCC-"$CC"}
26033
Reid Spencera773bd52006-08-04 18:18:08 +000026034# If no C compiler flags were specified, use CFLAGS.
26035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26036
John Criswell47fdd832003-07-14 16:52:07 +000026037# Allow CC to be a program name with arguments.
26038compiler=$CC
26039
26040
Reid Spencera773bd52006-08-04 18:18:08 +000026041# save warnings/boilerplate of simple test code
26042ac_outfile=conftest.$ac_objext
26043printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26045_lt_compiler_boilerplate=`cat conftest.err`
26046$rm conftest*
26047
26048ac_outfile=conftest.$ac_objext
26049printf "$lt_simple_link_test_code" >conftest.$ac_ext
26050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26051_lt_linker_boilerplate=`cat conftest.err`
26052$rm conftest*
26053
26054
John Criswell47fdd832003-07-14 16:52:07 +000026055# Allow CC to be a program name with arguments.
26056lt_save_CC="$CC"
26057CC=${RC-"windres"}
26058compiler=$CC
26059compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026060for cc_temp in $compiler""; do
26061 case $cc_temp in
26062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26064 \-*) ;;
26065 *) break;;
26066 esac
26067done
26068cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26069
John Criswell47fdd832003-07-14 16:52:07 +000026070lt_cv_prog_compiler_c_o_RC=yes
26071
26072# The else clause should only fire when bootstrapping the
26073# libtool distribution, otherwise you forgot to ship ltmain.sh
26074# with your package, and you will get complaints that there are
26075# no rules to generate ltmain.sh.
26076if test -f "$ltmain"; then
26077 # See if we are running on zsh, and set the options which allow our commands through
26078 # without removal of \ escapes.
26079 if test -n "${ZSH_VERSION+set}" ; then
26080 setopt NO_GLOB_SUBST
26081 fi
26082 # Now quote all the things that may contain metacharacters while being
26083 # careful not to overquote the AC_SUBSTed values. We take copies of the
26084 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026085 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 +000026086 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26089 deplibs_check_method reload_flag reload_cmds need_locks \
26090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26091 lt_cv_sys_global_symbol_to_c_name_address \
26092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26093 old_postinstall_cmds old_postuninstall_cmds \
26094 compiler_RC \
26095 CC_RC \
26096 LD_RC \
26097 lt_prog_compiler_wl_RC \
26098 lt_prog_compiler_pic_RC \
26099 lt_prog_compiler_static_RC \
26100 lt_prog_compiler_no_builtin_flag_RC \
26101 export_dynamic_flag_spec_RC \
26102 thread_safe_flag_spec_RC \
26103 whole_archive_flag_spec_RC \
26104 enable_shared_with_static_runtimes_RC \
26105 old_archive_cmds_RC \
26106 old_archive_from_new_cmds_RC \
26107 predep_objects_RC \
26108 postdep_objects_RC \
26109 predeps_RC \
26110 postdeps_RC \
26111 compiler_lib_search_path_RC \
26112 archive_cmds_RC \
26113 archive_expsym_cmds_RC \
26114 postinstall_cmds_RC \
26115 postuninstall_cmds_RC \
26116 old_archive_from_expsyms_cmds_RC \
26117 allow_undefined_flag_RC \
26118 no_undefined_flag_RC \
26119 export_symbols_cmds_RC \
26120 hardcode_libdir_flag_spec_RC \
26121 hardcode_libdir_flag_spec_ld_RC \
26122 hardcode_libdir_separator_RC \
26123 hardcode_automatic_RC \
26124 module_cmds_RC \
26125 module_expsym_cmds_RC \
26126 lt_cv_prog_compiler_c_o_RC \
26127 exclude_expsyms_RC \
26128 include_expsyms_RC; do
26129
26130 case $var in
26131 old_archive_cmds_RC | \
26132 old_archive_from_new_cmds_RC | \
26133 archive_cmds_RC | \
26134 archive_expsym_cmds_RC | \
26135 module_cmds_RC | \
26136 module_expsym_cmds_RC | \
26137 old_archive_from_expsyms_cmds_RC | \
26138 export_symbols_cmds_RC | \
26139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26140 postinstall_cmds | postuninstall_cmds | \
26141 old_postinstall_cmds | old_postuninstall_cmds | \
26142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26143 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026144 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 +000026145 ;;
26146 *)
26147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26148 ;;
26149 esac
26150 done
26151
26152 case $lt_echo in
26153 *'\$0 --fallback-echo"')
26154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26155 ;;
26156 esac
26157
26158cfgfile="$ofile"
26159
26160 cat <<__EOF__ >> "$cfgfile"
26161# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26162
26163# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26164
26165# Shell to use when invoking shell scripts.
26166SHELL=$lt_SHELL
26167
26168# Whether or not to build shared libraries.
26169build_libtool_libs=$enable_shared
26170
26171# Whether or not to build static libraries.
26172build_old_libs=$enable_static
26173
26174# Whether or not to add -lc for building shared libraries.
26175build_libtool_need_lc=$archive_cmds_need_lc_RC
26176
26177# Whether or not to disallow shared libs when runtime libs are static
26178allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26179
26180# Whether or not to optimize for fast installation.
26181fast_install=$enable_fast_install
26182
26183# The host system.
26184host_alias=$host_alias
26185host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026186host_os=$host_os
26187
26188# The build system.
26189build_alias=$build_alias
26190build=$build
26191build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026192
26193# An echo program that does not interpret backslashes.
26194echo=$lt_echo
26195
26196# The archiver.
26197AR=$lt_AR
26198AR_FLAGS=$lt_AR_FLAGS
26199
26200# A C compiler.
26201LTCC=$lt_LTCC
26202
Reid Spencera773bd52006-08-04 18:18:08 +000026203# LTCC compiler flags.
26204LTCFLAGS=$lt_LTCFLAGS
26205
John Criswell47fdd832003-07-14 16:52:07 +000026206# A language-specific compiler.
26207CC=$lt_compiler_RC
26208
26209# Is the compiler the GNU C compiler?
26210with_gcc=$GCC_RC
26211
26212# An ERE matcher.
26213EGREP=$lt_EGREP
26214
26215# The linker used to build libraries.
26216LD=$lt_LD_RC
26217
26218# Whether we need hard or soft links.
26219LN_S=$lt_LN_S
26220
26221# A BSD-compatible nm program.
26222NM=$lt_NM
26223
26224# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026225STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026226
26227# Used to examine libraries when file_magic_cmd begins "file"
26228MAGIC_CMD=$MAGIC_CMD
26229
26230# Used on cygwin: DLL creation program.
26231DLLTOOL="$DLLTOOL"
26232
26233# Used on cygwin: object dumper.
26234OBJDUMP="$OBJDUMP"
26235
26236# Used on cygwin: assembler.
26237AS="$AS"
26238
26239# The name of the directory that contains temporary libtool files.
26240objdir=$objdir
26241
26242# How to create reloadable object files.
26243reload_flag=$lt_reload_flag
26244reload_cmds=$lt_reload_cmds
26245
26246# How to pass a linker flag through the compiler.
26247wl=$lt_lt_prog_compiler_wl_RC
26248
26249# Object file suffix (normally "o").
26250objext="$ac_objext"
26251
26252# Old archive suffix (normally "a").
26253libext="$libext"
26254
26255# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026256shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026257
26258# Executable file suffix (normally "").
26259exeext="$exeext"
26260
26261# Additional compiler flags for building library objects.
26262pic_flag=$lt_lt_prog_compiler_pic_RC
26263pic_mode=$pic_mode
26264
26265# What is the maximum length of a command?
26266max_cmd_len=$lt_cv_sys_max_cmd_len
26267
26268# Does compiler simultaneously support -c and -o options?
26269compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26270
Reid Spencera773bd52006-08-04 18:18:08 +000026271# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026272need_locks=$lt_need_locks
26273
26274# Do we need the lib prefix for modules?
26275need_lib_prefix=$need_lib_prefix
26276
26277# Do we need a version for libraries?
26278need_version=$need_version
26279
26280# Whether dlopen is supported.
26281dlopen_support=$enable_dlopen
26282
26283# Whether dlopen of programs is supported.
26284dlopen_self=$enable_dlopen_self
26285
26286# Whether dlopen of statically linked programs is supported.
26287dlopen_self_static=$enable_dlopen_self_static
26288
26289# Compiler flag to prevent dynamic linking.
26290link_static_flag=$lt_lt_prog_compiler_static_RC
26291
26292# Compiler flag to turn off builtin functions.
26293no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26294
26295# Compiler flag to allow reflexive dlopens.
26296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26297
26298# Compiler flag to generate shared objects directly from archives.
26299whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26300
26301# Compiler flag to generate thread-safe objects.
26302thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26303
26304# Library versioning type.
26305version_type=$version_type
26306
26307# Format of library name prefix.
26308libname_spec=$lt_libname_spec
26309
26310# List of archive names. First name is the real one, the rest are links.
26311# The last name is the one that the linker finds with -lNAME.
26312library_names_spec=$lt_library_names_spec
26313
26314# The coded name of the library, if different from the real name.
26315soname_spec=$lt_soname_spec
26316
26317# Commands used to build and install an old-style archive.
26318RANLIB=$lt_RANLIB
26319old_archive_cmds=$lt_old_archive_cmds_RC
26320old_postinstall_cmds=$lt_old_postinstall_cmds
26321old_postuninstall_cmds=$lt_old_postuninstall_cmds
26322
26323# Create an old-style archive from a shared archive.
26324old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26325
26326# Create a temporary old-style archive to link instead of a shared archive.
26327old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26328
26329# Commands used to build and install a shared archive.
26330archive_cmds=$lt_archive_cmds_RC
26331archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26332postinstall_cmds=$lt_postinstall_cmds
26333postuninstall_cmds=$lt_postuninstall_cmds
26334
26335# Commands used to build a loadable module (assumed same as above if empty)
26336module_cmds=$lt_module_cmds_RC
26337module_expsym_cmds=$lt_module_expsym_cmds_RC
26338
26339# Commands to strip libraries.
26340old_striplib=$lt_old_striplib
26341striplib=$lt_striplib
26342
26343# Dependencies to place before the objects being linked to create a
26344# shared library.
26345predep_objects=$lt_predep_objects_RC
26346
26347# Dependencies to place after the objects being linked to create a
26348# shared library.
26349postdep_objects=$lt_postdep_objects_RC
26350
26351# Dependencies to place before the objects being linked to create a
26352# shared library.
26353predeps=$lt_predeps_RC
26354
26355# Dependencies to place after the objects being linked to create a
26356# shared library.
26357postdeps=$lt_postdeps_RC
26358
26359# The library search path used internally by the compiler when linking
26360# a shared library.
26361compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26362
26363# Method to check whether dependent libraries are shared objects.
26364deplibs_check_method=$lt_deplibs_check_method
26365
26366# Command to use when deplibs_check_method == file_magic.
26367file_magic_cmd=$lt_file_magic_cmd
26368
26369# Flag that allows shared libraries with undefined symbols to be built.
26370allow_undefined_flag=$lt_allow_undefined_flag_RC
26371
26372# Flag that forces no undefined symbols.
26373no_undefined_flag=$lt_no_undefined_flag_RC
26374
26375# Commands used to finish a libtool library installation in a directory.
26376finish_cmds=$lt_finish_cmds
26377
26378# Same as above, but a single script fragment to be evaled but not shown.
26379finish_eval=$lt_finish_eval
26380
26381# Take the output of nm and produce a listing of raw symbols and C names.
26382global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26383
26384# Transform the output of nm in a proper C declaration
26385global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26386
26387# Transform the output of nm in a C name address pair
26388global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26389
26390# This is the shared library runtime path variable.
26391runpath_var=$runpath_var
26392
26393# This is the shared library path variable.
26394shlibpath_var=$shlibpath_var
26395
26396# Is shlibpath searched before the hard-coded library search path?
26397shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26398
26399# How to hardcode a shared library path into an executable.
26400hardcode_action=$hardcode_action_RC
26401
26402# Whether we should hardcode library paths into libraries.
26403hardcode_into_libs=$hardcode_into_libs
26404
26405# Flag to hardcode \$libdir into a binary during linking.
26406# This must work even if \$libdir does not exist.
26407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26408
26409# If ld is used when linking, flag to hardcode \$libdir into
26410# a binary during linking. This must work even if \$libdir does
26411# not exist.
26412hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26413
26414# Whether we need a single -rpath flag with a separated argument.
26415hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26416
26417# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26418# resulting binary.
26419hardcode_direct=$hardcode_direct_RC
26420
26421# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26422# resulting binary.
26423hardcode_minus_L=$hardcode_minus_L_RC
26424
26425# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26426# the resulting binary.
26427hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26428
26429# Set to yes if building a shared library automatically hardcodes DIR into the library
26430# and all subsequent libraries and executables linked against it.
26431hardcode_automatic=$hardcode_automatic_RC
26432
26433# Variables whose values should be saved in libtool wrapper scripts and
26434# restored at relink time.
26435variables_saved_for_relink="$variables_saved_for_relink"
26436
26437# Whether libtool must link a program against all its dependency libraries.
26438link_all_deplibs=$link_all_deplibs_RC
26439
26440# Compile-time system search path for libraries
26441sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26442
26443# Run-time system search path for libraries
26444sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26445
26446# Fix the shell variable \$srcfile for the compiler.
26447fix_srcfile_path="$fix_srcfile_path_RC"
26448
26449# Set to yes if exported symbols are required.
26450always_export_symbols=$always_export_symbols_RC
26451
26452# The commands to list exported symbols.
26453export_symbols_cmds=$lt_export_symbols_cmds_RC
26454
26455# The commands to extract the exported symbol list from a shared archive.
26456extract_expsyms_cmds=$lt_extract_expsyms_cmds
26457
26458# Symbols that should not be listed in the preloaded symbols.
26459exclude_expsyms=$lt_exclude_expsyms_RC
26460
26461# Symbols that must always be exported.
26462include_expsyms=$lt_include_expsyms_RC
26463
26464# ### END LIBTOOL TAG CONFIG: $tagname
26465
26466__EOF__
26467
26468
26469else
26470 # If there is no Makefile yet, we rely on a make rule to execute
26471 # `config.status --recheck' to rerun these tests and create the
26472 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026473 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26474 if test -f "$ltmain_in"; then
26475 test -f Makefile && make "$ltmain"
26476 fi
John Criswell47fdd832003-07-14 16:52:07 +000026477fi
26478
26479
26480ac_ext=c
26481ac_cpp='$CPP $CPPFLAGS'
26482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26484ac_compiler_gnu=$ac_cv_c_compiler_gnu
26485
26486CC="$lt_save_CC"
26487
26488 ;;
26489
26490 *)
26491 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26492echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26493 { (exit 1); exit 1; }; }
26494 ;;
26495 esac
26496
26497 # Append the new tag name to the list of available tags.
26498 if test -n "$tagname" ; then
26499 available_tags="$available_tags $tagname"
26500 fi
26501 fi
26502 done
26503 IFS="$lt_save_ifs"
26504
26505 # Now substitute the updated list of available tags.
26506 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26507 mv "${ofile}T" "$ofile"
26508 chmod +x "$ofile"
26509 else
26510 rm -f "${ofile}T"
26511 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26512echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26513 { (exit 1); exit 1; }; }
26514 fi
26515fi
John Criswell7a73b802003-06-30 21:59:07 +000026516
26517
26518
26519# This can be used to rebuild libtool when needed
26520LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26521
26522# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026523LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026524
26525# Prevent multiple expansion
26526
26527
26528
John Criswell47fdd832003-07-14 16:52:07 +000026529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026546
Reid Spencer582a23c2004-12-29 07:07:57 +000026547if test "$lt_cv_dlopen_self" = "yes" ; then
26548
26549cat >>confdefs.h <<\_ACEOF
26550#define CAN_DLOPEN_SELF 1
26551_ACEOF
26552
26553fi
26554
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026555etags_version=`$ETAGS --version 2>&1`
26556case "$etags_version" in
26557 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26558 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26559 *) ETAGSFLAGS="" ;;
26560esac
26561ETAGSFLAGS=$ETAGSFLAGS
26562
26563
Reid Spencer7931a782004-12-27 06:15:02 +000026564if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026565 LLVMGCC="llvm-gcc${EXEEXT}"
26566 LLVMGXX="llvm-g++${EXEEXT}"
26567 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26568set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026571if test "${ac_cv_path_LLVMGCC+set}" = set; then
26572 echo $ECHO_N "(cached) $ECHO_C" >&6
26573else
26574 case $LLVMGCC in
26575 [\\/]* | ?:[\\/]*)
26576 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26577 ;;
26578 *)
26579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26580for as_dir in $PATH
26581do
26582 IFS=$as_save_IFS
26583 test -z "$as_dir" && as_dir=.
26584 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026585 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 +000026586 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26588 break 2
26589 fi
26590done
26591done
Reid Spencera773bd52006-08-04 18:18:08 +000026592IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026593
Reid Spencer59473af2004-12-25 07:31:29 +000026594 ;;
26595esac
26596fi
26597LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026598if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026599 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26600echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026601else
Reid Spencera773bd52006-08-04 18:18:08 +000026602 { echo "$as_me:$LINENO: result: no" >&5
26603echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026604fi
26605
Reid Spencera773bd52006-08-04 18:18:08 +000026606
Reid Spencerc84492c2005-06-02 22:34:49 +000026607 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26608set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026611if test "${ac_cv_path_LLVMGXX+set}" = set; then
26612 echo $ECHO_N "(cached) $ECHO_C" >&6
26613else
26614 case $LLVMGXX in
26615 [\\/]* | ?:[\\/]*)
26616 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26617 ;;
26618 *)
26619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26620for as_dir in $PATH
26621do
26622 IFS=$as_save_IFS
26623 test -z "$as_dir" && as_dir=.
26624 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026625 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 +000026626 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26628 break 2
26629 fi
26630done
26631done
Reid Spencera773bd52006-08-04 18:18:08 +000026632IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026633
Reid Spencer59473af2004-12-25 07:31:29 +000026634 ;;
26635esac
26636fi
26637LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026638if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026639 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26640echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026641else
Reid Spencera773bd52006-08-04 18:18:08 +000026642 { echo "$as_me:$LINENO: result: no" >&5
26643echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026644fi
26645
Reid Spencera773bd52006-08-04 18:18:08 +000026646
Reid Spencer59473af2004-12-25 07:31:29 +000026647else
Reid Spencerc84492c2005-06-02 22:34:49 +000026648 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26649 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026650 LLVMGCC=$LLVMGCC
26651
26652 LLVMGXX=$LLVMGXX
26653
26654fi
26655
Reid Spencera773bd52006-08-04 18:18:08 +000026656{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26657echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026658
Reid Spencer86901802004-12-08 23:07:27 +000026659ICC=no
26660IXX=no
26661case $CC in
26662 icc*|icpc*)
26663 ICC=yes
26664 IXX=yes
26665 ;;
26666 *)
26667 ;;
26668esac
26669
Duraid Madina937c60a2006-02-15 07:57:42 +000026670if test "$GCC" != "yes" && test "$ICC" != "yes"
26671then
26672 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26673echo "$as_me: error: gcc|icc required but not found" >&2;}
26674 { (exit 1); exit 1; }; }
26675fi
26676
26677if test "$GXX" != "yes" && test "$IXX" != "yes"
26678then
26679 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26680echo "$as_me: error: g++|icc required but not found" >&2;}
26681 { (exit 1); exit 1; }; }
26682fi
26683
Reid Spencer86901802004-12-08 23:07:27 +000026684if test "$GCC" = "yes"
26685then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026686 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026687 if test "$gccmajor" -lt "3"
26688 then
26689 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026690echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26691 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026692 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026693fi
26694
26695if test -z "$llvm_cv_gnu_make_command"
26696then
26697 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26698echo "$as_me: error: GNU Make required but not found" >&2;}
26699 { (exit 1); exit 1; }; }
26700fi
26701
Reid Spencera773bd52006-08-04 18:18:08 +000026702{ echo "$as_me:$LINENO: result: ok" >&5
26703echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026704
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026705
John Criswell7a73b802003-06-30 21:59:07 +000026706
Reid Spencera773bd52006-08-04 18:18:08 +000026707{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26708echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026709if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26711else
26712 ac_check_lib_save_LIBS=$LIBS
26713LIBS="-lelf $LIBS"
26714cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026715/* confdefs.h. */
26716_ACEOF
26717cat confdefs.h >>conftest.$ac_ext
26718cat >>conftest.$ac_ext <<_ACEOF
26719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026720
Reid Spencera773bd52006-08-04 18:18:08 +000026721/* Override any GCC internal prototype to avoid an error.
26722 Use char because int might match the return type of a GCC
26723 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026724#ifdef __cplusplus
26725extern "C"
26726#endif
John Criswell7a73b802003-06-30 21:59:07 +000026727char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026728int
26729main ()
26730{
Reid Spencera773bd52006-08-04 18:18:08 +000026731return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026732 ;
26733 return 0;
26734}
26735_ACEOF
26736rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026737if { (ac_try="$ac_link"
26738case "(($ac_try" in
26739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26740 *) ac_try_echo=$ac_try;;
26741esac
26742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26743 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026745 grep -v '^ *+' conftest.er1 >conftest.err
26746 rm -f conftest.er1
26747 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26751 { (case "(($ac_try" in
26752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26753 *) ac_try_echo=$ac_try;;
26754esac
26755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26756 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026757 ac_status=$?
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; } &&
26760 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026761 { (case "(($ac_try" in
26762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763 *) ac_try_echo=$ac_try;;
26764esac
26765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026767 ac_status=$?
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); }; }; then
26770 ac_cv_lib_elf_elf_begin=yes
26771else
26772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026773sed 's/^/| /' conftest.$ac_ext >&5
26774
Reid Spencera773bd52006-08-04 18:18:08 +000026775 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026776fi
Reid Spencera773bd52006-08-04 18:18:08 +000026777
26778rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026779 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026780LIBS=$ac_check_lib_save_LIBS
26781fi
Reid Spencera773bd52006-08-04 18:18:08 +000026782{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26783echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026784if test $ac_cv_lib_elf_elf_begin = yes; then
26785 cat >>confdefs.h <<_ACEOF
26786#define HAVE_LIBELF 1
26787_ACEOF
26788
26789 LIBS="-lelf $LIBS"
26790
26791fi
26792
26793
Reid Spencera773bd52006-08-04 18:18:08 +000026794{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26795echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026796if test "${ac_cv_lib_m_sin+set}" = set; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26798else
26799 ac_check_lib_save_LIBS=$LIBS
26800LIBS="-lm $LIBS"
26801cat >conftest.$ac_ext <<_ACEOF
26802/* confdefs.h. */
26803_ACEOF
26804cat confdefs.h >>conftest.$ac_ext
26805cat >>conftest.$ac_ext <<_ACEOF
26806/* end confdefs.h. */
26807
Reid Spencera773bd52006-08-04 18:18:08 +000026808/* Override any GCC internal prototype to avoid an error.
26809 Use char because int might match the return type of a GCC
26810 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026811#ifdef __cplusplus
26812extern "C"
26813#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026814char sin ();
26815int
26816main ()
26817{
Reid Spencera773bd52006-08-04 18:18:08 +000026818return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026819 ;
26820 return 0;
26821}
26822_ACEOF
26823rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026824if { (ac_try="$ac_link"
26825case "(($ac_try" in
26826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827 *) ac_try_echo=$ac_try;;
26828esac
26829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026831 ac_status=$?
26832 grep -v '^ *+' conftest.er1 >conftest.err
26833 rm -f conftest.er1
26834 cat conftest.err >&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26838 { (case "(($ac_try" in
26839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26841esac
26842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026844 ac_status=$?
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); }; } &&
26847 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026848 { (case "(($ac_try" in
26849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850 *) ac_try_echo=$ac_try;;
26851esac
26852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_cv_lib_m_sin=yes
26858else
26859 echo "$as_me: failed program was:" >&5
26860sed 's/^/| /' conftest.$ac_ext >&5
26861
Reid Spencera773bd52006-08-04 18:18:08 +000026862 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026863fi
Reid Spencera773bd52006-08-04 18:18:08 +000026864
26865rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026866 conftest$ac_exeext conftest.$ac_ext
26867LIBS=$ac_check_lib_save_LIBS
26868fi
Reid Spencera773bd52006-08-04 18:18:08 +000026869{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26870echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026871if test $ac_cv_lib_m_sin = yes; then
26872 cat >>confdefs.h <<_ACEOF
26873#define HAVE_LIBM 1
26874_ACEOF
26875
26876 LIBS="-lm $LIBS"
26877
26878fi
26879
Reid Spencer484fc8e2006-06-01 16:55:59 +000026880if test "$llvm_cv_os_type" == "MingW" ; then
26881
Reid Spencera773bd52006-08-04 18:18:08 +000026882{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26883echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026884if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026885 echo $ECHO_N "(cached) $ECHO_C" >&6
26886else
26887 ac_check_lib_save_LIBS=$LIBS
26888LIBS="-limagehlp $LIBS"
26889cat >conftest.$ac_ext <<_ACEOF
26890/* confdefs.h. */
26891_ACEOF
26892cat confdefs.h >>conftest.$ac_ext
26893cat >>conftest.$ac_ext <<_ACEOF
26894/* end confdefs.h. */
26895
Reid Spencer48fdf912006-06-01 19:03:21 +000026896
Reid Spencer484fc8e2006-06-01 16:55:59 +000026897int
26898main ()
26899{
Reid Spencera773bd52006-08-04 18:18:08 +000026900return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026901 ;
26902 return 0;
26903}
26904_ACEOF
26905rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026906if { (ac_try="$ac_link"
26907case "(($ac_try" in
26908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909 *) ac_try_echo=$ac_try;;
26910esac
26911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26912 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026913 ac_status=$?
26914 grep -v '^ *+' conftest.er1 >conftest.err
26915 rm -f conftest.er1
26916 cat conftest.err >&5
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26920 { (case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26923esac
26924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026926 ac_status=$?
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); }; } &&
26929 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026930 { (case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26933esac
26934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026936 ac_status=$?
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026939 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026940else
26941 echo "$as_me: failed program was:" >&5
26942sed 's/^/| /' conftest.$ac_ext >&5
26943
Reid Spencera773bd52006-08-04 18:18:08 +000026944 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026945fi
Reid Spencera773bd52006-08-04 18:18:08 +000026946
26947rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026948 conftest$ac_exeext conftest.$ac_ext
26949LIBS=$ac_check_lib_save_LIBS
26950fi
Reid Spencera773bd52006-08-04 18:18:08 +000026951{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26952echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026953if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026954 cat >>confdefs.h <<_ACEOF
26955#define HAVE_LIBIMAGEHLP 1
26956_ACEOF
26957
26958 LIBS="-limagehlp $LIBS"
26959
26960fi
26961
26962
Reid Spencera773bd52006-08-04 18:18:08 +000026963{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26964echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026965if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026966 echo $ECHO_N "(cached) $ECHO_C" >&6
26967else
26968 ac_check_lib_save_LIBS=$LIBS
26969LIBS="-lpsapi $LIBS"
26970cat >conftest.$ac_ext <<_ACEOF
26971/* confdefs.h. */
26972_ACEOF
26973cat confdefs.h >>conftest.$ac_ext
26974cat >>conftest.$ac_ext <<_ACEOF
26975/* end confdefs.h. */
26976
Reid Spencer48fdf912006-06-01 19:03:21 +000026977
Reid Spencer484fc8e2006-06-01 16:55:59 +000026978int
26979main ()
26980{
Reid Spencera773bd52006-08-04 18:18:08 +000026981return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026982 ;
26983 return 0;
26984}
26985_ACEOF
26986rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026987if { (ac_try="$ac_link"
26988case "(($ac_try" in
26989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26990 *) ac_try_echo=$ac_try;;
26991esac
26992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26993 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026994 ac_status=$?
26995 grep -v '^ *+' conftest.er1 >conftest.err
26996 rm -f conftest.er1
26997 cat conftest.err >&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27001 { (case "(($ac_try" in
27002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003 *) ac_try_echo=$ac_try;;
27004esac
27005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027007 ac_status=$?
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; } &&
27010 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027011 { (case "(($ac_try" in
27012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013 *) ac_try_echo=$ac_try;;
27014esac
27015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027017 ac_status=$?
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027020 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027021else
27022 echo "$as_me: failed program was:" >&5
27023sed 's/^/| /' conftest.$ac_ext >&5
27024
Reid Spencera773bd52006-08-04 18:18:08 +000027025 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027026fi
Reid Spencera773bd52006-08-04 18:18:08 +000027027
27028rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027029 conftest$ac_exeext conftest.$ac_ext
27030LIBS=$ac_check_lib_save_LIBS
27031fi
Reid Spencera773bd52006-08-04 18:18:08 +000027032{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27033echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027034if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027035 cat >>confdefs.h <<_ACEOF
27036#define HAVE_LIBPSAPI 1
27037_ACEOF
27038
27039 LIBS="-lpsapi $LIBS"
27040
27041fi
27042
27043fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027044
Reid Spencera773bd52006-08-04 18:18:08 +000027045{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27046echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027047if test "${ac_cv_search_lt_dlopen+set}" = set; then
27048 echo $ECHO_N "(cached) $ECHO_C" >&6
27049else
27050 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027051cat >conftest.$ac_ext <<_ACEOF
27052/* confdefs.h. */
27053_ACEOF
27054cat confdefs.h >>conftest.$ac_ext
27055cat >>conftest.$ac_ext <<_ACEOF
27056/* end confdefs.h. */
27057
Reid Spencera773bd52006-08-04 18:18:08 +000027058/* Override any GCC internal prototype to avoid an error.
27059 Use char because int might match the return type of a GCC
27060 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027061#ifdef __cplusplus
27062extern "C"
27063#endif
Reid Spencer17795972004-11-18 09:47:37 +000027064char lt_dlopen ();
27065int
27066main ()
27067{
Reid Spencera773bd52006-08-04 18:18:08 +000027068return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027069 ;
27070 return 0;
27071}
27072_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027073for ac_lib in '' ltdl; do
27074 if test -z "$ac_lib"; then
27075 ac_res="none required"
27076 else
27077 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027079 fi
27080 rm -f conftest.$ac_objext conftest$ac_exeext
27081if { (ac_try="$ac_link"
27082case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27085esac
27086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027088 ac_status=$?
27089 grep -v '^ *+' conftest.er1 >conftest.err
27090 rm -f conftest.er1
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27095 { (case "(($ac_try" in
27096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097 *) ac_try_echo=$ac_try;;
27098esac
27099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027101 ac_status=$?
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; } &&
27104 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108esac
27109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027114 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027115else
27116 echo "$as_me: failed program was:" >&5
27117sed 's/^/| /' conftest.$ac_ext >&5
27118
Reid Spencera773bd52006-08-04 18:18:08 +000027119
Reid Spencer17795972004-11-18 09:47:37 +000027120fi
Reid Spencera773bd52006-08-04 18:18:08 +000027121
27122rm -f core conftest.err conftest.$ac_objext \
27123 conftest$ac_exeext
27124 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27125 break
Reid Spencer17795972004-11-18 09:47:37 +000027126fi
Reid Spencera773bd52006-08-04 18:18:08 +000027127done
27128if test "${ac_cv_search_lt_dlopen+set}" = set; then
27129 :
27130else
27131 ac_cv_search_lt_dlopen=no
27132fi
27133rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027134LIBS=$ac_func_search_save_LIBS
27135fi
Reid Spencera773bd52006-08-04 18:18:08 +000027136{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27137echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27138ac_res=$ac_cv_search_lt_dlopen
27139if test "$ac_res" != no; then
27140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027141
27142cat >>confdefs.h <<\_ACEOF
27143#define HAVE_LT_DLOPEN 1
27144_ACEOF
27145
27146else
27147 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27148 not be available" >&5
27149echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27150 not be available" >&2;}
27151fi
27152
27153
Reid Spencera773bd52006-08-04 18:18:08 +000027154{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27155echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027156if test "${ac_cv_search_dlopen+set}" = set; then
27157 echo $ECHO_N "(cached) $ECHO_C" >&6
27158else
27159 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027160cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027161/* confdefs.h. */
27162_ACEOF
27163cat confdefs.h >>conftest.$ac_ext
27164cat >>conftest.$ac_ext <<_ACEOF
27165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027166
Reid Spencera773bd52006-08-04 18:18:08 +000027167/* Override any GCC internal prototype to avoid an error.
27168 Use char because int might match the return type of a GCC
27169 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027170#ifdef __cplusplus
27171extern "C"
27172#endif
John Criswell7a73b802003-06-30 21:59:07 +000027173char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027174int
27175main ()
27176{
Reid Spencera773bd52006-08-04 18:18:08 +000027177return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027178 ;
27179 return 0;
27180}
27181_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027182for ac_lib in '' dl; do
27183 if test -z "$ac_lib"; then
27184 ac_res="none required"
27185 else
27186 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027188 fi
27189 rm -f conftest.$ac_objext conftest$ac_exeext
27190if { (ac_try="$ac_link"
27191case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27194esac
27195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027197 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027198 grep -v '^ *+' conftest.er1 >conftest.err
27199 rm -f conftest.er1
27200 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27204 { (case "(($ac_try" in
27205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206 *) ac_try_echo=$ac_try;;
27207esac
27208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027210 ac_status=$?
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); }; } &&
27213 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027214 { (case "(($ac_try" in
27215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216 *) ac_try_echo=$ac_try;;
27217esac
27218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027220 ac_status=$?
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027223 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027224else
27225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027226sed 's/^/| /' conftest.$ac_ext >&5
27227
Reid Spencera773bd52006-08-04 18:18:08 +000027228
John Criswell7a73b802003-06-30 21:59:07 +000027229fi
Reid Spencera773bd52006-08-04 18:18:08 +000027230
27231rm -f core conftest.err conftest.$ac_objext \
27232 conftest$ac_exeext
27233 if test "${ac_cv_search_dlopen+set}" = set; then
27234 break
John Criswell7a73b802003-06-30 21:59:07 +000027235fi
Reid Spencera773bd52006-08-04 18:18:08 +000027236done
27237if test "${ac_cv_search_dlopen+set}" = set; then
27238 :
27239else
27240 ac_cv_search_dlopen=no
27241fi
27242rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027243LIBS=$ac_func_search_save_LIBS
27244fi
Reid Spencera773bd52006-08-04 18:18:08 +000027245{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27246echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27247ac_res=$ac_cv_search_dlopen
27248if test "$ac_res" != no; then
27249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027250
27251cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027252#define HAVE_DLOPEN 1
27253_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027254
27255else
Brian Gaekec45be042003-10-07 06:01:34 +000027256 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27257echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027258fi
27259
27260
Reid Spencera773bd52006-08-04 18:18:08 +000027261{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27262echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027263if test "${ac_cv_search_mallinfo+set}" = set; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27265else
27266 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027267cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027268/* confdefs.h. */
27269_ACEOF
27270cat confdefs.h >>conftest.$ac_ext
27271cat >>conftest.$ac_ext <<_ACEOF
27272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027273
Reid Spencera773bd52006-08-04 18:18:08 +000027274/* Override any GCC internal prototype to avoid an error.
27275 Use char because int might match the return type of a GCC
27276 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027277#ifdef __cplusplus
27278extern "C"
27279#endif
John Criswell7a73b802003-06-30 21:59:07 +000027280char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027281int
27282main ()
27283{
Reid Spencera773bd52006-08-04 18:18:08 +000027284return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027285 ;
27286 return 0;
27287}
27288_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027289for ac_lib in '' malloc; do
27290 if test -z "$ac_lib"; then
27291 ac_res="none required"
27292 else
27293 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027295 fi
27296 rm -f conftest.$ac_objext conftest$ac_exeext
27297if { (ac_try="$ac_link"
27298case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27301esac
27302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027304 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027305 grep -v '^ *+' conftest.er1 >conftest.err
27306 rm -f conftest.er1
27307 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27311 { (case "(($ac_try" in
27312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313 *) ac_try_echo=$ac_try;;
27314esac
27315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027317 ac_status=$?
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; } &&
27320 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027321 { (case "(($ac_try" in
27322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323 *) ac_try_echo=$ac_try;;
27324esac
27325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027327 ac_status=$?
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027330 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027331else
27332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027333sed 's/^/| /' conftest.$ac_ext >&5
27334
Reid Spencera773bd52006-08-04 18:18:08 +000027335
John Criswell7a73b802003-06-30 21:59:07 +000027336fi
Reid Spencera773bd52006-08-04 18:18:08 +000027337
27338rm -f core conftest.err conftest.$ac_objext \
27339 conftest$ac_exeext
27340 if test "${ac_cv_search_mallinfo+set}" = set; then
27341 break
John Criswell7a73b802003-06-30 21:59:07 +000027342fi
Reid Spencera773bd52006-08-04 18:18:08 +000027343done
27344if test "${ac_cv_search_mallinfo+set}" = set; then
27345 :
27346else
27347 ac_cv_search_mallinfo=no
27348fi
27349rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027350LIBS=$ac_func_search_save_LIBS
27351fi
Reid Spencera773bd52006-08-04 18:18:08 +000027352{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27353echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27354ac_res=$ac_cv_search_mallinfo
27355if test "$ac_res" != no; then
27356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027357
27358cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027359#define HAVE_MALLINFO 1
27360_ACEOF
27361
27362fi
27363
27364
Reid Spencer0a262ba2005-08-24 10:07:20 +000027365if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027366
Reid Spencera773bd52006-08-04 18:18:08 +000027367{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27368echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027369if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27370 echo $ECHO_N "(cached) $ECHO_C" >&6
27371else
27372 ac_check_lib_save_LIBS=$LIBS
27373LIBS="-lpthread $LIBS"
27374cat >conftest.$ac_ext <<_ACEOF
27375/* confdefs.h. */
27376_ACEOF
27377cat confdefs.h >>conftest.$ac_ext
27378cat >>conftest.$ac_ext <<_ACEOF
27379/* end confdefs.h. */
27380
Reid Spencera773bd52006-08-04 18:18:08 +000027381/* Override any GCC internal prototype to avoid an error.
27382 Use char because int might match the return type of a GCC
27383 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027384#ifdef __cplusplus
27385extern "C"
27386#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027387char pthread_mutex_init ();
27388int
27389main ()
27390{
Reid Spencera773bd52006-08-04 18:18:08 +000027391return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027392 ;
27393 return 0;
27394}
27395_ACEOF
27396rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027397if { (ac_try="$ac_link"
27398case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27401esac
27402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027404 ac_status=$?
27405 grep -v '^ *+' conftest.er1 >conftest.err
27406 rm -f conftest.er1
27407 cat conftest.err >&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27411 { (case "(($ac_try" in
27412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27413 *) ac_try_echo=$ac_try;;
27414esac
27415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27416 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; } &&
27420 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027421 { (case "(($ac_try" in
27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423 *) ac_try_echo=$ac_try;;
27424esac
27425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027427 ac_status=$?
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; }; then
27430 ac_cv_lib_pthread_pthread_mutex_init=yes
27431else
27432 echo "$as_me: failed program was:" >&5
27433sed 's/^/| /' conftest.$ac_ext >&5
27434
Reid Spencera773bd52006-08-04 18:18:08 +000027435 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027436fi
Reid Spencera773bd52006-08-04 18:18:08 +000027437
27438rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027439 conftest$ac_exeext conftest.$ac_ext
27440LIBS=$ac_check_lib_save_LIBS
27441fi
Reid Spencera773bd52006-08-04 18:18:08 +000027442{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27443echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027444if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27445 cat >>confdefs.h <<_ACEOF
27446#define HAVE_LIBPTHREAD 1
27447_ACEOF
27448
27449 LIBS="-lpthread $LIBS"
27450
27451fi
27452
Reid Spencera773bd52006-08-04 18:18:08 +000027453 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27454echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027455if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27456 echo $ECHO_N "(cached) $ECHO_C" >&6
27457else
27458 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027459cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027460/* confdefs.h. */
27461_ACEOF
27462cat confdefs.h >>conftest.$ac_ext
27463cat >>conftest.$ac_ext <<_ACEOF
27464/* end confdefs.h. */
27465
Reid Spencera773bd52006-08-04 18:18:08 +000027466/* Override any GCC internal prototype to avoid an error.
27467 Use char because int might match the return type of a GCC
27468 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027469#ifdef __cplusplus
27470extern "C"
27471#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027472char pthread_mutex_lock ();
27473int
27474main ()
27475{
Reid Spencera773bd52006-08-04 18:18:08 +000027476return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027477 ;
27478 return 0;
27479}
27480_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027481for ac_lib in '' pthread; do
27482 if test -z "$ac_lib"; then
27483 ac_res="none required"
27484 else
27485 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027487 fi
27488 rm -f conftest.$ac_objext conftest$ac_exeext
27489if { (ac_try="$ac_link"
27490case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27493esac
27494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027497 grep -v '^ *+' conftest.er1 >conftest.err
27498 rm -f conftest.er1
27499 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27503 { (case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27506esac
27507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027509 ac_status=$?
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); }; } &&
27512 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027513 { (case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27516esac
27517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027519 ac_status=$?
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027522 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027523else
27524 echo "$as_me: failed program was:" >&5
27525sed 's/^/| /' conftest.$ac_ext >&5
27526
Reid Spencera773bd52006-08-04 18:18:08 +000027527
Brian Gaeke5f268f72003-12-05 19:29:01 +000027528fi
Reid Spencera773bd52006-08-04 18:18:08 +000027529
27530rm -f core conftest.err conftest.$ac_objext \
27531 conftest$ac_exeext
27532 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27533 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027534fi
Reid Spencera773bd52006-08-04 18:18:08 +000027535done
27536if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27537 :
27538else
27539 ac_cv_search_pthread_mutex_lock=no
27540fi
27541rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027542LIBS=$ac_func_search_save_LIBS
27543fi
Reid Spencera773bd52006-08-04 18:18:08 +000027544{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27545echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27546ac_res=$ac_cv_search_pthread_mutex_lock
27547if test "$ac_res" != no; then
27548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027549
John Criswell40468462004-09-24 21:19:06 +000027550cat >>confdefs.h <<\_ACEOF
27551#define HAVE_PTHREAD_MUTEX_LOCK 1
27552_ACEOF
27553
27554fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027555
Reid Spencer0a262ba2005-08-24 10:07:20 +000027556fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027557
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027558
Reid Spencer59473af2004-12-25 07:31:29 +000027559
27560
27561
27562
27563
27564ac_header_dirent=no
27565for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27566 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027567{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27568echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027570 echo $ECHO_N "(cached) $ECHO_C" >&6
27571else
27572 cat >conftest.$ac_ext <<_ACEOF
27573/* confdefs.h. */
27574_ACEOF
27575cat confdefs.h >>conftest.$ac_ext
27576cat >>conftest.$ac_ext <<_ACEOF
27577/* end confdefs.h. */
27578#include <sys/types.h>
27579#include <$ac_hdr>
27580
27581int
27582main ()
27583{
27584if ((DIR *) 0)
27585return 0;
27586 ;
27587 return 0;
27588}
27589_ACEOF
27590rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027591if { (ac_try="$ac_compile"
27592case "(($ac_try" in
27593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594 *) ac_try_echo=$ac_try;;
27595esac
27596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027598 ac_status=$?
27599 grep -v '^ *+' conftest.er1 >conftest.err
27600 rm -f conftest.er1
27601 cat conftest.err >&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27605 { (case "(($ac_try" in
27606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27607 *) ac_try_echo=$ac_try;;
27608esac
27609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27610 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027611 ac_status=$?
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; } &&
27614 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027615 { (case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27618esac
27619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; }; then
27624 eval "$as_ac_Header=yes"
27625else
27626 echo "$as_me: failed program was:" >&5
27627sed 's/^/| /' conftest.$ac_ext >&5
27628
Reid Spencera773bd52006-08-04 18:18:08 +000027629 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027630fi
Reid Spencera773bd52006-08-04 18:18:08 +000027631
27632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027633fi
Reid Spencera773bd52006-08-04 18:18:08 +000027634ac_res=`eval echo '${'$as_ac_Header'}'`
27635 { echo "$as_me:$LINENO: result: $ac_res" >&5
27636echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027637if test `eval echo '${'$as_ac_Header'}'` = yes; then
27638 cat >>confdefs.h <<_ACEOF
27639#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27640_ACEOF
27641
27642ac_header_dirent=$ac_hdr; break
27643fi
27644
27645done
27646# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27647if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027648 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27649echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027650if test "${ac_cv_search_opendir+set}" = set; then
27651 echo $ECHO_N "(cached) $ECHO_C" >&6
27652else
27653 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027654cat >conftest.$ac_ext <<_ACEOF
27655/* confdefs.h. */
27656_ACEOF
27657cat confdefs.h >>conftest.$ac_ext
27658cat >>conftest.$ac_ext <<_ACEOF
27659/* end confdefs.h. */
27660
Reid Spencera773bd52006-08-04 18:18:08 +000027661/* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027664#ifdef __cplusplus
27665extern "C"
27666#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027667char opendir ();
27668int
27669main ()
27670{
Reid Spencera773bd52006-08-04 18:18:08 +000027671return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027672 ;
27673 return 0;
27674}
27675_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027676for ac_lib in '' dir; do
27677 if test -z "$ac_lib"; then
27678 ac_res="none required"
27679 else
27680 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027682 fi
27683 rm -f conftest.$ac_objext conftest$ac_exeext
27684if { (ac_try="$ac_link"
27685case "(($ac_try" in
27686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687 *) ac_try_echo=$ac_try;;
27688esac
27689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027691 ac_status=$?
27692 grep -v '^ *+' conftest.er1 >conftest.err
27693 rm -f conftest.er1
27694 cat conftest.err >&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27698 { (case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27701esac
27702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027704 ac_status=$?
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; } &&
27707 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027708 { (case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27711esac
27712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027714 ac_status=$?
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027717 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027718else
27719 echo "$as_me: failed program was:" >&5
27720sed 's/^/| /' conftest.$ac_ext >&5
27721
Reid Spencera773bd52006-08-04 18:18:08 +000027722
Reid Spencer59473af2004-12-25 07:31:29 +000027723fi
Reid Spencera773bd52006-08-04 18:18:08 +000027724
27725rm -f core conftest.err conftest.$ac_objext \
27726 conftest$ac_exeext
27727 if test "${ac_cv_search_opendir+set}" = set; then
27728 break
Reid Spencer59473af2004-12-25 07:31:29 +000027729fi
Reid Spencera773bd52006-08-04 18:18:08 +000027730done
27731if test "${ac_cv_search_opendir+set}" = set; then
27732 :
27733else
27734 ac_cv_search_opendir=no
27735fi
27736rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027737LIBS=$ac_func_search_save_LIBS
27738fi
Reid Spencera773bd52006-08-04 18:18:08 +000027739{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27740echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27741ac_res=$ac_cv_search_opendir
27742if test "$ac_res" != no; then
27743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027744
27745fi
27746
27747else
Reid Spencera773bd52006-08-04 18:18:08 +000027748 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27749echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027750if test "${ac_cv_search_opendir+set}" = set; then
27751 echo $ECHO_N "(cached) $ECHO_C" >&6
27752else
27753 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027754cat >conftest.$ac_ext <<_ACEOF
27755/* confdefs.h. */
27756_ACEOF
27757cat confdefs.h >>conftest.$ac_ext
27758cat >>conftest.$ac_ext <<_ACEOF
27759/* end confdefs.h. */
27760
Reid Spencera773bd52006-08-04 18:18:08 +000027761/* Override any GCC internal prototype to avoid an error.
27762 Use char because int might match the return type of a GCC
27763 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027764#ifdef __cplusplus
27765extern "C"
27766#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027767char opendir ();
27768int
27769main ()
27770{
Reid Spencera773bd52006-08-04 18:18:08 +000027771return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027772 ;
27773 return 0;
27774}
27775_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027776for ac_lib in '' x; do
27777 if test -z "$ac_lib"; then
27778 ac_res="none required"
27779 else
27780 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027782 fi
27783 rm -f conftest.$ac_objext conftest$ac_exeext
27784if { (ac_try="$ac_link"
27785case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27788esac
27789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027791 ac_status=$?
27792 grep -v '^ *+' conftest.er1 >conftest.err
27793 rm -f conftest.er1
27794 cat conftest.err >&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27798 { (case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27801esac
27802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027804 ac_status=$?
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; } &&
27807 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027808 { (case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27811esac
27812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027814 ac_status=$?
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027817 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027818else
27819 echo "$as_me: failed program was:" >&5
27820sed 's/^/| /' conftest.$ac_ext >&5
27821
Reid Spencera773bd52006-08-04 18:18:08 +000027822
Reid Spencer59473af2004-12-25 07:31:29 +000027823fi
Reid Spencera773bd52006-08-04 18:18:08 +000027824
27825rm -f core conftest.err conftest.$ac_objext \
27826 conftest$ac_exeext
27827 if test "${ac_cv_search_opendir+set}" = set; then
27828 break
Reid Spencer59473af2004-12-25 07:31:29 +000027829fi
Reid Spencera773bd52006-08-04 18:18:08 +000027830done
27831if test "${ac_cv_search_opendir+set}" = set; then
27832 :
27833else
27834 ac_cv_search_opendir=no
27835fi
27836rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027837LIBS=$ac_func_search_save_LIBS
27838fi
Reid Spencera773bd52006-08-04 18:18:08 +000027839{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27840echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27841ac_res=$ac_cv_search_opendir
27842if test "$ac_res" != no; then
27843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027844
27845fi
27846
27847fi
27848
Reid Spencera773bd52006-08-04 18:18:08 +000027849{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27850echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027851if test "${ac_cv_header_mmap_anon+set}" = set; then
27852 echo $ECHO_N "(cached) $ECHO_C" >&6
27853else
27854 ac_ext=c
27855ac_cpp='$CPP $CPPFLAGS'
27856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27858ac_compiler_gnu=$ac_cv_c_compiler_gnu
27859
27860 cat >conftest.$ac_ext <<_ACEOF
27861/* confdefs.h. */
27862_ACEOF
27863cat confdefs.h >>conftest.$ac_ext
27864cat >>conftest.$ac_ext <<_ACEOF
27865/* end confdefs.h. */
27866#include <sys/mman.h>
27867#include <unistd.h>
27868#include <fcntl.h>
27869int
27870main ()
27871{
27872mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27873 ;
27874 return 0;
27875}
27876_ACEOF
27877rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027878if { (ac_try="$ac_compile"
27879case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27882esac
27883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027885 ac_status=$?
27886 grep -v '^ *+' conftest.er1 >conftest.err
27887 rm -f conftest.er1
27888 cat conftest.err >&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27892 { (case "(($ac_try" in
27893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894 *) ac_try_echo=$ac_try;;
27895esac
27896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027898 ac_status=$?
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); }; } &&
27901 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027902 { (case "(($ac_try" in
27903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27904 *) ac_try_echo=$ac_try;;
27905esac
27906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27907 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027908 ac_status=$?
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); }; }; then
27911 ac_cv_header_mmap_anon=yes
27912else
27913 echo "$as_me: failed program was:" >&5
27914sed 's/^/| /' conftest.$ac_ext >&5
27915
Reid Spencera773bd52006-08-04 18:18:08 +000027916 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027917fi
Reid Spencera773bd52006-08-04 18:18:08 +000027918
27919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027920 ac_ext=c
27921ac_cpp='$CPP $CPPFLAGS'
27922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27924ac_compiler_gnu=$ac_cv_c_compiler_gnu
27925
27926
27927fi
Reid Spencera773bd52006-08-04 18:18:08 +000027928{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27929echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027930if test "$ac_cv_header_mmap_anon" = yes; then
27931
27932cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027933#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027934_ACEOF
27935
27936fi
27937
Reid Spencera773bd52006-08-04 18:18:08 +000027938{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27939echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027940if test "${ac_cv_header_stat_broken+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27942else
27943 cat >conftest.$ac_ext <<_ACEOF
27944/* confdefs.h. */
27945_ACEOF
27946cat confdefs.h >>conftest.$ac_ext
27947cat >>conftest.$ac_ext <<_ACEOF
27948/* end confdefs.h. */
27949#include <sys/types.h>
27950#include <sys/stat.h>
27951
Reid Spencera773bd52006-08-04 18:18:08 +000027952#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000027953# if S_ISBLK (S_IFDIR)
27954You lose.
27955# endif
27956#endif
27957
Reid Spencera773bd52006-08-04 18:18:08 +000027958#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000027959# if S_ISBLK (S_IFCHR)
27960You lose.
27961# endif
27962#endif
27963
Reid Spencera773bd52006-08-04 18:18:08 +000027964#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027965# if S_ISLNK (S_IFREG)
27966You lose.
27967# endif
27968#endif
27969
Reid Spencera773bd52006-08-04 18:18:08 +000027970#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027971# if S_ISSOCK (S_IFREG)
27972You lose.
27973# endif
27974#endif
27975
27976_ACEOF
27977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27978 $EGREP "You lose" >/dev/null 2>&1; then
27979 ac_cv_header_stat_broken=yes
27980else
27981 ac_cv_header_stat_broken=no
27982fi
27983rm -f conftest*
27984
27985fi
Reid Spencera773bd52006-08-04 18:18:08 +000027986{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27987echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027988if test $ac_cv_header_stat_broken = yes; then
27989
27990cat >>confdefs.h <<\_ACEOF
27991#define STAT_MACROS_BROKEN 1
27992_ACEOF
27993
27994fi
27995
Reid Spencera773bd52006-08-04 18:18:08 +000027996{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27997echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027998if test "${ac_cv_header_stdc+set}" = set; then
27999 echo $ECHO_N "(cached) $ECHO_C" >&6
28000else
28001 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028002/* confdefs.h. */
28003_ACEOF
28004cat confdefs.h >>conftest.$ac_ext
28005cat >>conftest.$ac_ext <<_ACEOF
28006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028007#include <stdlib.h>
28008#include <stdarg.h>
28009#include <string.h>
28010#include <float.h>
28011
John Criswell0c38eaf2003-09-10 15:17:25 +000028012int
28013main ()
28014{
28015
28016 ;
28017 return 0;
28018}
John Criswell7a73b802003-06-30 21:59:07 +000028019_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028020rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028021if { (ac_try="$ac_compile"
28022case "(($ac_try" in
28023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024 *) ac_try_echo=$ac_try;;
28025esac
28026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028029 grep -v '^ *+' conftest.er1 >conftest.err
28030 rm -f conftest.er1
28031 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028033 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28035 { (case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28038esac
28039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028041 ac_status=$?
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; } &&
28044 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028045 { (case "(($ac_try" in
28046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047 *) ac_try_echo=$ac_try;;
28048esac
28049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028054 ac_cv_header_stdc=yes
28055else
28056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028057sed 's/^/| /' conftest.$ac_ext >&5
28058
Reid Spencera773bd52006-08-04 18:18:08 +000028059 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028060fi
Reid Spencera773bd52006-08-04 18:18:08 +000028061
28062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028063
28064if test $ac_cv_header_stdc = yes; then
28065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28066 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028067/* confdefs.h. */
28068_ACEOF
28069cat confdefs.h >>conftest.$ac_ext
28070cat >>conftest.$ac_ext <<_ACEOF
28071/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028072#include <string.h>
28073
28074_ACEOF
28075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028076 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028077 :
28078else
28079 ac_cv_header_stdc=no
28080fi
28081rm -f conftest*
28082
28083fi
28084
28085if test $ac_cv_header_stdc = yes; then
28086 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
28094
28095_ACEOF
28096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028097 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28108 if test "$cross_compiling" = yes; then
28109 :
28110else
28111 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028112/* confdefs.h. */
28113_ACEOF
28114cat confdefs.h >>conftest.$ac_ext
28115cat >>conftest.$ac_ext <<_ACEOF
28116/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028117#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028118#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028119#if ((' ' & 0x0FF) == 0x020)
28120# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28121# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28122#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028123# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028124 (('a' <= (c) && (c) <= 'i') \
28125 || ('j' <= (c) && (c) <= 'r') \
28126 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028127# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28128#endif
28129
28130#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28131int
28132main ()
28133{
28134 int i;
28135 for (i = 0; i < 256; i++)
28136 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028137 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028138 return 2;
28139 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028140}
28141_ACEOF
28142rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028143if { (ac_try="$ac_link"
28144case "(($ac_try" in
28145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146 *) ac_try_echo=$ac_try;;
28147esac
28148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028153 { (case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156esac
28157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
28162 :
28163else
28164 echo "$as_me: program exited with status $ac_status" >&5
28165echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028166sed 's/^/| /' conftest.$ac_ext >&5
28167
John Criswell7a73b802003-06-30 21:59:07 +000028168( exit $ac_status )
28169ac_cv_header_stdc=no
28170fi
Reid Spencera773bd52006-08-04 18:18:08 +000028171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28172fi
28173
28174
John Criswell7a73b802003-06-30 21:59:07 +000028175fi
28176fi
Reid Spencera773bd52006-08-04 18:18:08 +000028177{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28178echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028179if test $ac_cv_header_stdc = yes; then
28180
28181cat >>confdefs.h <<\_ACEOF
28182#define STDC_HEADERS 1
28183_ACEOF
28184
28185fi
28186
Reid Spencera773bd52006-08-04 18:18:08 +000028187{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28188echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028189if test "${ac_cv_header_sys_wait_h+set}" = set; then
28190 echo $ECHO_N "(cached) $ECHO_C" >&6
28191else
28192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028193/* confdefs.h. */
28194_ACEOF
28195cat confdefs.h >>conftest.$ac_ext
28196cat >>conftest.$ac_ext <<_ACEOF
28197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028198#include <sys/types.h>
28199#include <sys/wait.h>
28200#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028201# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028202#endif
28203#ifndef WIFEXITED
28204# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28205#endif
28206
John Criswell7a73b802003-06-30 21:59:07 +000028207int
28208main ()
28209{
28210 int s;
28211 wait (&s);
28212 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28213 ;
28214 return 0;
28215}
28216_ACEOF
28217rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028218if { (ac_try="$ac_compile"
28219case "(($ac_try" in
28220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221 *) ac_try_echo=$ac_try;;
28222esac
28223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028225 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028226 grep -v '^ *+' conftest.er1 >conftest.err
28227 rm -f conftest.er1
28228 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28232 { (case "(($ac_try" in
28233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234 *) ac_try_echo=$ac_try;;
28235esac
28236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028238 ac_status=$?
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; } &&
28241 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028242 { (case "(($ac_try" in
28243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244 *) ac_try_echo=$ac_try;;
28245esac
28246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028248 ac_status=$?
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; }; then
28251 ac_cv_header_sys_wait_h=yes
28252else
28253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028254sed 's/^/| /' conftest.$ac_ext >&5
28255
Reid Spencera773bd52006-08-04 18:18:08 +000028256 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028257fi
Reid Spencera773bd52006-08-04 18:18:08 +000028258
28259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028260fi
Reid Spencera773bd52006-08-04 18:18:08 +000028261{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28262echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028263if test $ac_cv_header_sys_wait_h = yes; then
28264
28265cat >>confdefs.h <<\_ACEOF
28266#define HAVE_SYS_WAIT_H 1
28267_ACEOF
28268
28269fi
28270
Reid Spencera773bd52006-08-04 18:18:08 +000028271{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28272echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028273if test "${ac_cv_header_time+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28275else
28276 cat >conftest.$ac_ext <<_ACEOF
28277/* confdefs.h. */
28278_ACEOF
28279cat confdefs.h >>conftest.$ac_ext
28280cat >>conftest.$ac_ext <<_ACEOF
28281/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028282#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028283#include <sys/time.h>
28284#include <time.h>
28285
28286int
28287main ()
28288{
28289if ((struct tm *) 0)
28290return 0;
28291 ;
28292 return 0;
28293}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028294_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028295rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028296if { (ac_try="$ac_compile"
28297case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28300esac
28301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028303 ac_status=$?
28304 grep -v '^ *+' conftest.er1 >conftest.err
28305 rm -f conftest.er1
28306 cat conftest.err >&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028308 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28310 { (case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28313esac
28314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028316 ac_status=$?
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; } &&
28319 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028320 { (case "(($ac_try" in
28321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322 *) ac_try_echo=$ac_try;;
28323esac
28324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028326 ac_status=$?
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); }; }; then
28329 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028330else
28331 echo "$as_me: failed program was:" >&5
28332sed 's/^/| /' conftest.$ac_ext >&5
28333
Reid Spencera773bd52006-08-04 18:18:08 +000028334 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028335fi
Reid Spencera773bd52006-08-04 18:18:08 +000028336
28337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028338fi
Reid Spencera773bd52006-08-04 18:18:08 +000028339{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28340echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028341if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028342
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028343cat >>confdefs.h <<\_ACEOF
28344#define TIME_WITH_SYS_TIME 1
28345_ACEOF
28346
28347fi
28348
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028349
Reid Spencer59473af2004-12-25 07:31:29 +000028350
28351
28352
28353
28354
28355
28356for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28357do
28358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028363 echo $ECHO_N "(cached) $ECHO_C" >&6
28364fi
Reid Spencera773bd52006-08-04 18:18:08 +000028365ac_res=`eval echo '${'$as_ac_Header'}'`
28366 { echo "$as_me:$LINENO: result: $ac_res" >&5
28367echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028368else
28369 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028370{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028372cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028373/* confdefs.h. */
28374_ACEOF
28375cat confdefs.h >>conftest.$ac_ext
28376cat >>conftest.$ac_ext <<_ACEOF
28377/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028378$ac_includes_default
28379#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028380_ACEOF
28381rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028382if { (ac_try="$ac_compile"
28383case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28386esac
28387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028389 ac_status=$?
28390 grep -v '^ *+' conftest.er1 >conftest.err
28391 rm -f conftest.er1
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28396 { (case "(($ac_try" in
28397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398 *) ac_try_echo=$ac_try;;
28399esac
28400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028402 ac_status=$?
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; } &&
28405 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028406 { (case "(($ac_try" in
28407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28409esac
28410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028412 ac_status=$?
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028415 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028416else
28417 echo "$as_me: failed program was:" >&5
28418sed 's/^/| /' conftest.$ac_ext >&5
28419
Reid Spencera773bd52006-08-04 18:18:08 +000028420 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028421fi
Reid Spencera773bd52006-08-04 18:18:08 +000028422
28423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28424{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28425echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028426
Reid Spencer59473af2004-12-25 07:31:29 +000028427# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028428{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028430cat >conftest.$ac_ext <<_ACEOF
28431/* confdefs.h. */
28432_ACEOF
28433cat confdefs.h >>conftest.$ac_ext
28434cat >>conftest.$ac_ext <<_ACEOF
28435/* end confdefs.h. */
28436#include <$ac_header>
28437_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028438if { (ac_try="$ac_cpp conftest.$ac_ext"
28439case "(($ac_try" in
28440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441 *) ac_try_echo=$ac_try;;
28442esac
28443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028445 ac_status=$?
28446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } >/dev/null; then
28451 if test -s conftest.err; then
28452 ac_cpp_err=$ac_c_preproc_warn_flag
28453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28454 else
28455 ac_cpp_err=
28456 fi
28457else
28458 ac_cpp_err=yes
28459fi
28460if test -z "$ac_cpp_err"; then
28461 ac_header_preproc=yes
28462else
28463 echo "$as_me: failed program was:" >&5
28464sed 's/^/| /' conftest.$ac_ext >&5
28465
28466 ac_header_preproc=no
28467fi
Reid Spencera773bd52006-08-04 18:18:08 +000028468
Reid Spencer59473af2004-12-25 07:31:29 +000028469rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028470{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28471echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028472
28473# So? What about this header?
28474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28475 yes:no: )
28476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28480 ac_header_preproc=yes
28481 ;;
28482 no:yes:* )
28483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028495 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028496## ----------------------------------- ##
28497## Report this to llvmbugs@cs.uiuc.edu ##
28498## ----------------------------------- ##
28499_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028500 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028501 ;;
28502esac
Reid Spencera773bd52006-08-04 18:18:08 +000028503{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028506 echo $ECHO_N "(cached) $ECHO_C" >&6
28507else
28508 eval "$as_ac_Header=\$ac_header_preproc"
28509fi
Reid Spencera773bd52006-08-04 18:18:08 +000028510ac_res=`eval echo '${'$as_ac_Header'}'`
28511 { echo "$as_me:$LINENO: result: $ac_res" >&5
28512echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028513
28514fi
Reid Spencer59473af2004-12-25 07:31:29 +000028515if test `eval echo '${'$as_ac_Header'}'` = yes; then
28516 cat >>confdefs.h <<_ACEOF
28517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028518_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028519
28520fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028521
Reid Spencer59473af2004-12-25 07:31:29 +000028522done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028523
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028524
28525
Reid Spencer59473af2004-12-25 07:31:29 +000028526
28527
28528
28529
Reid Spencercdb08a32006-06-05 16:11:07 +000028530for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028531do
28532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028537 echo $ECHO_N "(cached) $ECHO_C" >&6
28538fi
Reid Spencera773bd52006-08-04 18:18:08 +000028539ac_res=`eval echo '${'$as_ac_Header'}'`
28540 { echo "$as_me:$LINENO: result: $ac_res" >&5
28541echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028542else
28543 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028544{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28545echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028546cat >conftest.$ac_ext <<_ACEOF
28547/* confdefs.h. */
28548_ACEOF
28549cat confdefs.h >>conftest.$ac_ext
28550cat >>conftest.$ac_ext <<_ACEOF
28551/* end confdefs.h. */
28552$ac_includes_default
28553#include <$ac_header>
28554_ACEOF
28555rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028556if { (ac_try="$ac_compile"
28557case "(($ac_try" in
28558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28559 *) ac_try_echo=$ac_try;;
28560esac
28561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28562 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028563 ac_status=$?
28564 grep -v '^ *+' conftest.er1 >conftest.err
28565 rm -f conftest.er1
28566 cat conftest.err >&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28570 { (case "(($ac_try" in
28571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28572 *) ac_try_echo=$ac_try;;
28573esac
28574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28575 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; } &&
28579 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028580 { (case "(($ac_try" in
28581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582 *) ac_try_echo=$ac_try;;
28583esac
28584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28585 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028586 ac_status=$?
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; }; then
28589 ac_header_compiler=yes
28590else
28591 echo "$as_me: failed program was:" >&5
28592sed 's/^/| /' conftest.$ac_ext >&5
28593
Reid Spencera773bd52006-08-04 18:18:08 +000028594 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028595fi
Reid Spencera773bd52006-08-04 18:18:08 +000028596
28597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28598{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28599echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028600
28601# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028602{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28603echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028604cat >conftest.$ac_ext <<_ACEOF
28605/* confdefs.h. */
28606_ACEOF
28607cat confdefs.h >>conftest.$ac_ext
28608cat >>conftest.$ac_ext <<_ACEOF
28609/* end confdefs.h. */
28610#include <$ac_header>
28611_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028612if { (ac_try="$ac_cpp conftest.$ac_ext"
28613case "(($ac_try" in
28614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28615 *) ac_try_echo=$ac_try;;
28616esac
28617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028619 ac_status=$?
28620 grep -v '^ *+' conftest.er1 >conftest.err
28621 rm -f conftest.er1
28622 cat conftest.err >&5
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } >/dev/null; then
28625 if test -s conftest.err; then
28626 ac_cpp_err=$ac_c_preproc_warn_flag
28627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28628 else
28629 ac_cpp_err=
28630 fi
28631else
28632 ac_cpp_err=yes
28633fi
28634if test -z "$ac_cpp_err"; then
28635 ac_header_preproc=yes
28636else
28637 echo "$as_me: failed program was:" >&5
28638sed 's/^/| /' conftest.$ac_ext >&5
28639
28640 ac_header_preproc=no
28641fi
Reid Spencera773bd52006-08-04 18:18:08 +000028642
Reid Spencer59473af2004-12-25 07:31:29 +000028643rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028644{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28645echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028646
28647# So? What about this header?
28648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28649 yes:no: )
28650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28654 ac_header_preproc=yes
28655 ;;
28656 no:yes:* )
28657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28664echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028669 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028670## ----------------------------------- ##
28671## Report this to llvmbugs@cs.uiuc.edu ##
28672## ----------------------------------- ##
28673_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028674 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028675 ;;
28676esac
Reid Spencera773bd52006-08-04 18:18:08 +000028677{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028680 echo $ECHO_N "(cached) $ECHO_C" >&6
28681else
28682 eval "$as_ac_Header=\$ac_header_preproc"
28683fi
Reid Spencera773bd52006-08-04 18:18:08 +000028684ac_res=`eval echo '${'$as_ac_Header'}'`
28685 { echo "$as_me:$LINENO: result: $ac_res" >&5
28686echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028687
28688fi
28689if test `eval echo '${'$as_ac_Header'}'` = yes; then
28690 cat >>confdefs.h <<_ACEOF
28691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28692_ACEOF
28693
28694fi
28695
28696done
28697
28698
28699
28700
28701
28702
Reid Spencercdb08a32006-06-05 16:11:07 +000028703for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028704do
28705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028710 echo $ECHO_N "(cached) $ECHO_C" >&6
28711fi
Reid Spencera773bd52006-08-04 18:18:08 +000028712ac_res=`eval echo '${'$as_ac_Header'}'`
28713 { echo "$as_me:$LINENO: result: $ac_res" >&5
28714echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028715else
28716 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028717{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028719cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028720/* confdefs.h. */
28721_ACEOF
28722cat confdefs.h >>conftest.$ac_ext
28723cat >>conftest.$ac_ext <<_ACEOF
28724/* end confdefs.h. */
28725$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028726#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028727_ACEOF
28728rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028729if { (ac_try="$ac_compile"
28730case "(($ac_try" in
28731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28732 *) ac_try_echo=$ac_try;;
28733esac
28734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028737 grep -v '^ *+' conftest.er1 >conftest.err
28738 rm -f conftest.er1
28739 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28743 { (case "(($ac_try" in
28744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28745 *) ac_try_echo=$ac_try;;
28746esac
28747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28748 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028749 ac_status=$?
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; } &&
28752 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028753 { (case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756esac
28757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028759 ac_status=$?
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; }; then
28762 ac_header_compiler=yes
28763else
28764 echo "$as_me: failed program was:" >&5
28765sed 's/^/| /' conftest.$ac_ext >&5
28766
Reid Spencera773bd52006-08-04 18:18:08 +000028767 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028768fi
Reid Spencera773bd52006-08-04 18:18:08 +000028769
28770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28771{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28772echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028773
28774# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028775{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028777cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028778/* confdefs.h. */
28779_ACEOF
28780cat confdefs.h >>conftest.$ac_ext
28781cat >>conftest.$ac_ext <<_ACEOF
28782/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028783#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028784_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028785if { (ac_try="$ac_cpp conftest.$ac_ext"
28786case "(($ac_try" in
28787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788 *) ac_try_echo=$ac_try;;
28789esac
28790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028792 ac_status=$?
28793 grep -v '^ *+' conftest.er1 >conftest.err
28794 rm -f conftest.er1
28795 cat conftest.err >&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } >/dev/null; then
28798 if test -s conftest.err; then
28799 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028801 else
28802 ac_cpp_err=
28803 fi
28804else
28805 ac_cpp_err=yes
28806fi
28807if test -z "$ac_cpp_err"; then
28808 ac_header_preproc=yes
28809else
28810 echo "$as_me: failed program was:" >&5
28811sed 's/^/| /' conftest.$ac_ext >&5
28812
28813 ac_header_preproc=no
28814fi
Reid Spencera773bd52006-08-04 18:18:08 +000028815
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028816rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028817{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28818echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028819
28820# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28822 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028827 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028828 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028829 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28837echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028842 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028843## ----------------------------------- ##
28844## Report this to llvmbugs@cs.uiuc.edu ##
28845## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028846_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028847 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028848 ;;
28849esac
Reid Spencera773bd52006-08-04 18:18:08 +000028850{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028853 echo $ECHO_N "(cached) $ECHO_C" >&6
28854else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028855 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028856fi
Reid Spencera773bd52006-08-04 18:18:08 +000028857ac_res=`eval echo '${'$as_ac_Header'}'`
28858 { echo "$as_me:$LINENO: result: $ac_res" >&5
28859echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028860
28861fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028862if test `eval echo '${'$as_ac_Header'}'` = yes; then
28863 cat >>confdefs.h <<_ACEOF
28864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028865_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028866
28867fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028868
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028869done
28870
John Criswell7ed43ad2004-07-19 16:12:29 +000028871
Reid Spencercdb08a32006-06-05 16:11:07 +000028872
28873for ac_header in sys/types.h malloc/malloc.h
Chris Lattner0b142592005-11-14 06:57:34 +000028874do
28875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028880 echo $ECHO_N "(cached) $ECHO_C" >&6
28881fi
Reid Spencera773bd52006-08-04 18:18:08 +000028882ac_res=`eval echo '${'$as_ac_Header'}'`
28883 { echo "$as_me:$LINENO: result: $ac_res" >&5
28884echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028885else
28886 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028887{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028889cat >conftest.$ac_ext <<_ACEOF
28890/* confdefs.h. */
28891_ACEOF
28892cat confdefs.h >>conftest.$ac_ext
28893cat >>conftest.$ac_ext <<_ACEOF
28894/* end confdefs.h. */
28895$ac_includes_default
28896#include <$ac_header>
28897_ACEOF
28898rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028899if { (ac_try="$ac_compile"
28900case "(($ac_try" in
28901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902 *) ac_try_echo=$ac_try;;
28903esac
28904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28905 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028906 ac_status=$?
28907 grep -v '^ *+' conftest.er1 >conftest.err
28908 rm -f conftest.er1
28909 cat conftest.err >&5
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28913 { (case "(($ac_try" in
28914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915 *) ac_try_echo=$ac_try;;
28916esac
28917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028919 ac_status=$?
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; } &&
28922 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028923 { (case "(($ac_try" in
28924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28925 *) ac_try_echo=$ac_try;;
28926esac
28927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28928 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028929 ac_status=$?
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); }; }; then
28932 ac_header_compiler=yes
28933else
28934 echo "$as_me: failed program was:" >&5
28935sed 's/^/| /' conftest.$ac_ext >&5
28936
Reid Spencera773bd52006-08-04 18:18:08 +000028937 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028938fi
Reid Spencera773bd52006-08-04 18:18:08 +000028939
28940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28941{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28942echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028943
28944# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028945{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028947cat >conftest.$ac_ext <<_ACEOF
28948/* confdefs.h. */
28949_ACEOF
28950cat confdefs.h >>conftest.$ac_ext
28951cat >>conftest.$ac_ext <<_ACEOF
28952/* end confdefs.h. */
28953#include <$ac_header>
28954_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028955if { (ac_try="$ac_cpp conftest.$ac_ext"
28956case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28959esac
28960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028962 ac_status=$?
28963 grep -v '^ *+' conftest.er1 >conftest.err
28964 rm -f conftest.er1
28965 cat conftest.err >&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } >/dev/null; then
28968 if test -s conftest.err; then
28969 ac_cpp_err=$ac_c_preproc_warn_flag
28970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28971 else
28972 ac_cpp_err=
28973 fi
28974else
28975 ac_cpp_err=yes
28976fi
28977if test -z "$ac_cpp_err"; then
28978 ac_header_preproc=yes
28979else
28980 echo "$as_me: failed program was:" >&5
28981sed 's/^/| /' conftest.$ac_ext >&5
28982
28983 ac_header_preproc=no
28984fi
Reid Spencera773bd52006-08-04 18:18:08 +000028985
Chris Lattner0b142592005-11-14 06:57:34 +000028986rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028987{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28988echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028989
28990# So? What about this header?
28991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28992 yes:no: )
28993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28997 ac_header_preproc=yes
28998 ;;
28999 no:yes:* )
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29003echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29007echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029012 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029013## ----------------------------------- ##
29014## Report this to llvmbugs@cs.uiuc.edu ##
29015## ----------------------------------- ##
29016_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029017 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029018 ;;
29019esac
Reid Spencera773bd52006-08-04 18:18:08 +000029020{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029023 echo $ECHO_N "(cached) $ECHO_C" >&6
29024else
29025 eval "$as_ac_Header=\$ac_header_preproc"
29026fi
Reid Spencera773bd52006-08-04 18:18:08 +000029027ac_res=`eval echo '${'$as_ac_Header'}'`
29028 { echo "$as_me:$LINENO: result: $ac_res" >&5
29029echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029030
29031fi
29032if test `eval echo '${'$as_ac_Header'}'` = yes; then
29033 cat >>confdefs.h <<_ACEOF
29034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29035_ACEOF
29036
29037fi
29038
29039done
29040
Reid Spencer0a262ba2005-08-24 10:07:20 +000029041if test "$ENABLE_THREADS" -eq 1 ; then
29042
29043for ac_header in pthread.h
29044do
29045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051fi
Reid Spencera773bd52006-08-04 18:18:08 +000029052ac_res=`eval echo '${'$as_ac_Header'}'`
29053 { echo "$as_me:$LINENO: result: $ac_res" >&5
29054echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029055else
29056 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029057{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029059cat >conftest.$ac_ext <<_ACEOF
29060/* confdefs.h. */
29061_ACEOF
29062cat confdefs.h >>conftest.$ac_ext
29063cat >>conftest.$ac_ext <<_ACEOF
29064/* end confdefs.h. */
29065$ac_includes_default
29066#include <$ac_header>
29067_ACEOF
29068rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029069if { (ac_try="$ac_compile"
29070case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29073esac
29074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029076 ac_status=$?
29077 grep -v '^ *+' conftest.er1 >conftest.err
29078 rm -f conftest.er1
29079 cat conftest.err >&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29083 { (case "(($ac_try" in
29084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085 *) ac_try_echo=$ac_try;;
29086esac
29087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029089 ac_status=$?
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); }; } &&
29092 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029093 { (case "(($ac_try" in
29094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095 *) ac_try_echo=$ac_try;;
29096esac
29097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029099 ac_status=$?
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; }; then
29102 ac_header_compiler=yes
29103else
29104 echo "$as_me: failed program was:" >&5
29105sed 's/^/| /' conftest.$ac_ext >&5
29106
Reid Spencera773bd52006-08-04 18:18:08 +000029107 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029108fi
Reid Spencera773bd52006-08-04 18:18:08 +000029109
29110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29111{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29112echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029113
29114# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029115{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029117cat >conftest.$ac_ext <<_ACEOF
29118/* confdefs.h. */
29119_ACEOF
29120cat confdefs.h >>conftest.$ac_ext
29121cat >>conftest.$ac_ext <<_ACEOF
29122/* end confdefs.h. */
29123#include <$ac_header>
29124_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029125if { (ac_try="$ac_cpp conftest.$ac_ext"
29126case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29129esac
29130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029132 ac_status=$?
29133 grep -v '^ *+' conftest.er1 >conftest.err
29134 rm -f conftest.er1
29135 cat conftest.err >&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); } >/dev/null; then
29138 if test -s conftest.err; then
29139 ac_cpp_err=$ac_c_preproc_warn_flag
29140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29141 else
29142 ac_cpp_err=
29143 fi
29144else
29145 ac_cpp_err=yes
29146fi
29147if test -z "$ac_cpp_err"; then
29148 ac_header_preproc=yes
29149else
29150 echo "$as_me: failed program was:" >&5
29151sed 's/^/| /' conftest.$ac_ext >&5
29152
29153 ac_header_preproc=no
29154fi
Reid Spencera773bd52006-08-04 18:18:08 +000029155
Reid Spencer0a262ba2005-08-24 10:07:20 +000029156rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29158echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029159
29160# So? What about this header?
29161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29162 yes:no: )
29163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29167 ac_header_preproc=yes
29168 ;;
29169 no:yes:* )
29170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029182 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029183## ----------------------------------- ##
29184## Report this to llvmbugs@cs.uiuc.edu ##
29185## ----------------------------------- ##
29186_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029187 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029188 ;;
29189esac
Reid Spencera773bd52006-08-04 18:18:08 +000029190{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029193 echo $ECHO_N "(cached) $ECHO_C" >&6
29194else
29195 eval "$as_ac_Header=\$ac_header_preproc"
29196fi
Reid Spencera773bd52006-08-04 18:18:08 +000029197ac_res=`eval echo '${'$as_ac_Header'}'`
29198 { echo "$as_me:$LINENO: result: $ac_res" >&5
29199echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029200
29201fi
29202if test `eval echo '${'$as_ac_Header'}'` = yes; then
29203 cat >>confdefs.h <<_ACEOF
29204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29205_ACEOF
29206
29207fi
29208
29209done
29210
29211fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029212
29213
Reid Spencera773bd52006-08-04 18:18:08 +000029214{ echo "$as_me:$LINENO: checking for pid_t" >&5
29215echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029216if test "${ac_cv_type_pid_t+set}" = set; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29218else
29219 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029225$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029226typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029227int
29228main ()
29229{
Reid Spencera773bd52006-08-04 18:18:08 +000029230if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029231 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029232if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029233 return 0;
29234 ;
29235 return 0;
29236}
29237_ACEOF
29238rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029239if { (ac_try="$ac_compile"
29240case "(($ac_try" in
29241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242 *) ac_try_echo=$ac_try;;
29243esac
29244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29245 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029247 grep -v '^ *+' conftest.er1 >conftest.err
29248 rm -f conftest.er1
29249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29253 { (case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29256esac
29257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; } &&
29262 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029263 { (case "(($ac_try" in
29264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29265 *) ac_try_echo=$ac_try;;
29266esac
29267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29268 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029269 ac_status=$?
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); }; }; then
29272 ac_cv_type_pid_t=yes
29273else
29274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029275sed 's/^/| /' conftest.$ac_ext >&5
29276
Reid Spencera773bd52006-08-04 18:18:08 +000029277 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029278fi
Reid Spencera773bd52006-08-04 18:18:08 +000029279
29280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029281fi
Reid Spencera773bd52006-08-04 18:18:08 +000029282{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29283echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029284if test $ac_cv_type_pid_t = yes; then
29285 :
29286else
29287
29288cat >>confdefs.h <<_ACEOF
29289#define pid_t int
29290_ACEOF
29291
29292fi
29293
Reid Spencera773bd52006-08-04 18:18:08 +000029294{ echo "$as_me:$LINENO: checking for size_t" >&5
29295echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029296if test "${ac_cv_type_size_t+set}" = set; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
29298else
29299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029300/* confdefs.h. */
29301_ACEOF
29302cat confdefs.h >>conftest.$ac_ext
29303cat >>conftest.$ac_ext <<_ACEOF
29304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029305$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029306typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029307int
29308main ()
29309{
Reid Spencera773bd52006-08-04 18:18:08 +000029310if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029311 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029312if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029313 return 0;
29314 ;
29315 return 0;
29316}
29317_ACEOF
29318rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029319if { (ac_try="$ac_compile"
29320case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323esac
29324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29333 { (case "(($ac_try" in
29334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29336esac
29337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
29342 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029343 { (case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29346esac
29347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029349 ac_status=$?
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; }; then
29352 ac_cv_type_size_t=yes
29353else
29354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029355sed 's/^/| /' conftest.$ac_ext >&5
29356
Reid Spencera773bd52006-08-04 18:18:08 +000029357 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029358fi
Reid Spencera773bd52006-08-04 18:18:08 +000029359
29360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029361fi
Reid Spencera773bd52006-08-04 18:18:08 +000029362{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29363echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029364if test $ac_cv_type_size_t = yes; then
29365 :
29366else
29367
29368cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029369#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029370_ACEOF
29371
29372fi
29373
Reid Spencera773bd52006-08-04 18:18:08 +000029374{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29375echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029376if test "${ac_cv_type_signal+set}" = set; then
29377 echo $ECHO_N "(cached) $ECHO_C" >&6
29378else
29379 cat >conftest.$ac_ext <<_ACEOF
29380/* confdefs.h. */
29381_ACEOF
29382cat confdefs.h >>conftest.$ac_ext
29383cat >>conftest.$ac_ext <<_ACEOF
29384/* end confdefs.h. */
29385#include <sys/types.h>
29386#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029387
29388int
29389main ()
29390{
Reid Spencera773bd52006-08-04 18:18:08 +000029391return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029392 ;
29393 return 0;
29394}
29395_ACEOF
29396rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029397if { (ac_try="$ac_compile"
29398case "(($ac_try" in
29399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29400 *) ac_try_echo=$ac_try;;
29401esac
29402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029404 ac_status=$?
29405 grep -v '^ *+' conftest.er1 >conftest.err
29406 rm -f conftest.er1
29407 cat conftest.err >&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29411 { (case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29414esac
29415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; } &&
29420 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029421 { (case "(($ac_try" in
29422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423 *) ac_try_echo=$ac_try;;
29424esac
29425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29426 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029427 ac_status=$?
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029430 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029431else
29432 echo "$as_me: failed program was:" >&5
29433sed 's/^/| /' conftest.$ac_ext >&5
29434
Reid Spencera773bd52006-08-04 18:18:08 +000029435 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029436fi
Reid Spencera773bd52006-08-04 18:18:08 +000029437
29438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029439fi
Reid Spencera773bd52006-08-04 18:18:08 +000029440{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29441echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029442
29443cat >>confdefs.h <<_ACEOF
29444#define RETSIGTYPE $ac_cv_type_signal
29445_ACEOF
29446
29447
Reid Spencera773bd52006-08-04 18:18:08 +000029448{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29449echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029450if test "${ac_cv_struct_tm+set}" = set; then
29451 echo $ECHO_N "(cached) $ECHO_C" >&6
29452else
29453 cat >conftest.$ac_ext <<_ACEOF
29454/* confdefs.h. */
29455_ACEOF
29456cat confdefs.h >>conftest.$ac_ext
29457cat >>conftest.$ac_ext <<_ACEOF
29458/* end confdefs.h. */
29459#include <sys/types.h>
29460#include <time.h>
29461
29462int
29463main ()
29464{
29465struct tm *tp; tp->tm_sec;
29466 ;
29467 return 0;
29468}
29469_ACEOF
29470rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029471if { (ac_try="$ac_compile"
29472case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29475esac
29476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029478 ac_status=$?
29479 grep -v '^ *+' conftest.er1 >conftest.err
29480 rm -f conftest.er1
29481 cat conftest.err >&5
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29485 { (case "(($ac_try" in
29486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29487 *) ac_try_echo=$ac_try;;
29488esac
29489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29490 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029495 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
29504 ac_cv_struct_tm=time.h
29505else
29506 echo "$as_me: failed program was:" >&5
29507sed 's/^/| /' conftest.$ac_ext >&5
29508
Reid Spencera773bd52006-08-04 18:18:08 +000029509 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029510fi
Reid Spencera773bd52006-08-04 18:18:08 +000029511
29512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029513fi
Reid Spencera773bd52006-08-04 18:18:08 +000029514{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29515echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029516if test $ac_cv_struct_tm = sys/time.h; then
29517
29518cat >>confdefs.h <<\_ACEOF
29519#define TM_IN_SYS_TIME 1
29520_ACEOF
29521
29522fi
29523
Reid Spencera773bd52006-08-04 18:18:08 +000029524{ echo "$as_me:$LINENO: checking for int64_t" >&5
29525echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029526if test "${ac_cv_type_int64_t+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29528else
29529 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029530/* confdefs.h. */
29531_ACEOF
29532cat confdefs.h >>conftest.$ac_ext
29533cat >>conftest.$ac_ext <<_ACEOF
29534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029535$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029536typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029537int
29538main ()
29539{
Reid Spencera773bd52006-08-04 18:18:08 +000029540if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029541 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029542if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029543 return 0;
29544 ;
29545 return 0;
29546}
29547_ACEOF
29548rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029549if { (ac_try="$ac_compile"
29550case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29553esac
29554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029556 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029557 grep -v '^ *+' conftest.er1 >conftest.err
29558 rm -f conftest.er1
29559 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29563 { (case "(($ac_try" in
29564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29565 *) ac_try_echo=$ac_try;;
29566esac
29567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29568 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029569 ac_status=$?
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); }; } &&
29572 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029573 { (case "(($ac_try" in
29574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29575 *) ac_try_echo=$ac_try;;
29576esac
29577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29578 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029579 ac_status=$?
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29582 ac_cv_type_int64_t=yes
29583else
29584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029585sed 's/^/| /' conftest.$ac_ext >&5
29586
Reid Spencera773bd52006-08-04 18:18:08 +000029587 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029588fi
Reid Spencera773bd52006-08-04 18:18:08 +000029589
29590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029591fi
Reid Spencera773bd52006-08-04 18:18:08 +000029592{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29593echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029594if test $ac_cv_type_int64_t = yes; then
29595
29596cat >>confdefs.h <<_ACEOF
29597#define HAVE_INT64_T 1
29598_ACEOF
29599
29600
29601else
29602 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29603echo "$as_me: error: Type int64_t required but not found" >&2;}
29604 { (exit 1); exit 1; }; }
29605fi
29606
Reid Spencera773bd52006-08-04 18:18:08 +000029607{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29608echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029609if test "${ac_cv_type_uint64_t+set}" = set; then
29610 echo $ECHO_N "(cached) $ECHO_C" >&6
29611else
29612 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029613/* confdefs.h. */
29614_ACEOF
29615cat confdefs.h >>conftest.$ac_ext
29616cat >>conftest.$ac_ext <<_ACEOF
29617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029618$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029619typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029620int
29621main ()
29622{
Reid Spencera773bd52006-08-04 18:18:08 +000029623if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029624 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029625if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029626 return 0;
29627 ;
29628 return 0;
29629}
29630_ACEOF
29631rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029632if { (ac_try="$ac_compile"
29633case "(($ac_try" in
29634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635 *) ac_try_echo=$ac_try;;
29636esac
29637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029639 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029640 grep -v '^ *+' conftest.er1 >conftest.err
29641 rm -f conftest.er1
29642 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29646 { (case "(($ac_try" in
29647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648 *) ac_try_echo=$ac_try;;
29649esac
29650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029652 ac_status=$?
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; } &&
29655 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029656 { (case "(($ac_try" in
29657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29658 *) ac_try_echo=$ac_try;;
29659esac
29660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29661 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029662 ac_status=$?
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; }; then
29665 ac_cv_type_uint64_t=yes
29666else
29667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029668sed 's/^/| /' conftest.$ac_ext >&5
29669
Reid Spencera773bd52006-08-04 18:18:08 +000029670 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029671fi
Reid Spencera773bd52006-08-04 18:18:08 +000029672
29673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029674fi
Reid Spencera773bd52006-08-04 18:18:08 +000029675{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29676echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029677if test $ac_cv_type_uint64_t = yes; then
29678
29679cat >>confdefs.h <<_ACEOF
29680#define HAVE_UINT64_T 1
29681_ACEOF
29682
29683
29684else
Reid Spencera773bd52006-08-04 18:18:08 +000029685 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29686echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029687if test "${ac_cv_type_u_int64_t+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29689else
29690 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029691/* confdefs.h. */
29692_ACEOF
29693cat confdefs.h >>conftest.$ac_ext
29694cat >>conftest.$ac_ext <<_ACEOF
29695/* end confdefs.h. */
29696$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029697typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029698int
29699main ()
29700{
Reid Spencera773bd52006-08-04 18:18:08 +000029701if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029702 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029703if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029704 return 0;
29705 ;
29706 return 0;
29707}
29708_ACEOF
29709rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029710if { (ac_try="$ac_compile"
29711case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29714esac
29715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029717 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029718 grep -v '^ *+' conftest.er1 >conftest.err
29719 rm -f conftest.er1
29720 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29724 { (case "(($ac_try" in
29725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726 *) ac_try_echo=$ac_try;;
29727esac
29728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029730 ac_status=$?
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; } &&
29733 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029734 { (case "(($ac_try" in
29735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29736 *) ac_try_echo=$ac_try;;
29737esac
29738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29739 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029740 ac_status=$?
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); }; }; then
29743 ac_cv_type_u_int64_t=yes
29744else
29745 echo "$as_me: failed program was:" >&5
29746sed 's/^/| /' conftest.$ac_ext >&5
29747
Reid Spencera773bd52006-08-04 18:18:08 +000029748 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029749fi
Reid Spencera773bd52006-08-04 18:18:08 +000029750
29751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029752fi
Reid Spencera773bd52006-08-04 18:18:08 +000029753{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29754echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029755if test $ac_cv_type_u_int64_t = yes; then
29756
29757cat >>confdefs.h <<_ACEOF
29758#define HAVE_U_INT64_T 1
29759_ACEOF
29760
29761
Misha Brukmanceca9042004-09-02 23:02:30 +000029762else
29763 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29764echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29765 { (exit 1); exit 1; }; }
29766fi
29767
John Criswell679ff312004-09-02 18:44:44 +000029768fi
29769
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029770
29771
29772
29773
29774
29775
29776
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029777
29778
Reid Spencerdf3be822006-01-23 08:15:53 +000029779for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029780do
29781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029785 echo $ECHO_N "(cached) $ECHO_C" >&6
29786else
29787 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029788/* confdefs.h. */
29789_ACEOF
29790cat confdefs.h >>conftest.$ac_ext
29791cat >>conftest.$ac_ext <<_ACEOF
29792/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29795#define $ac_func innocuous_$ac_func
29796
29797/* System header to define __stub macros and hopefully few prototypes,
29798 which can conflict with char $ac_func (); below.
29799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29800 <limits.h> exists even on freestanding compilers. */
29801
29802#ifdef __STDC__
29803# include <limits.h>
29804#else
29805# include <assert.h>
29806#endif
29807
29808#undef $ac_func
29809
Reid Spencera773bd52006-08-04 18:18:08 +000029810/* Override any GCC internal prototype to avoid an error.
29811 Use char because int might match the return type of a GCC
29812 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029813#ifdef __cplusplus
29814extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029815#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029816char $ac_func ();
29817/* The GNU C library defines this for functions which it implements
29818 to always fail with ENOSYS. Some functions are actually named
29819 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029820#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029821choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029822#endif
John Criswell7a73b802003-06-30 21:59:07 +000029823
John Criswell7a73b802003-06-30 21:59:07 +000029824int
29825main ()
29826{
Reid Spencera773bd52006-08-04 18:18:08 +000029827return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029828 ;
29829 return 0;
29830}
29831_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029832rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029833if { (ac_try="$ac_link"
29834case "(($ac_try" in
29835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836 *) ac_try_echo=$ac_try;;
29837esac
29838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29839 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029840 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029841 grep -v '^ *+' conftest.er1 >conftest.err
29842 rm -f conftest.er1
29843 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29847 { (case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29850esac
29851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029856 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029857 { (case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29860esac
29861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029863 ac_status=$?
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029866 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029867else
29868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029869sed 's/^/| /' conftest.$ac_ext >&5
29870
Reid Spencera773bd52006-08-04 18:18:08 +000029871 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029872fi
Reid Spencera773bd52006-08-04 18:18:08 +000029873
29874rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029875 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029876fi
Reid Spencera773bd52006-08-04 18:18:08 +000029877ac_res=`eval echo '${'$as_ac_var'}'`
29878 { echo "$as_me:$LINENO: result: $ac_res" >&5
29879echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029880if test `eval echo '${'$as_ac_var'}'` = yes; then
29881 cat >>confdefs.h <<_ACEOF
29882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029883_ACEOF
29884
29885fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029886done
John Criswell7a73b802003-06-30 21:59:07 +000029887
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029888
29889
29890
Reid Spencer6af3d262004-12-15 04:01:48 +000029891
29892
Reid Spencer59473af2004-12-25 07:31:29 +000029893
Reid Spencerdf3be822006-01-23 08:15:53 +000029894for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29895do
29896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029897{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29899if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029900 echo $ECHO_N "(cached) $ECHO_C" >&6
29901else
29902 cat >conftest.$ac_ext <<_ACEOF
29903/* confdefs.h. */
29904_ACEOF
29905cat confdefs.h >>conftest.$ac_ext
29906cat >>conftest.$ac_ext <<_ACEOF
29907/* end confdefs.h. */
29908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29910#define $ac_func innocuous_$ac_func
29911
29912/* System header to define __stub macros and hopefully few prototypes,
29913 which can conflict with char $ac_func (); below.
29914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29915 <limits.h> exists even on freestanding compilers. */
29916
29917#ifdef __STDC__
29918# include <limits.h>
29919#else
29920# include <assert.h>
29921#endif
29922
29923#undef $ac_func
29924
Reid Spencera773bd52006-08-04 18:18:08 +000029925/* Override any GCC internal prototype to avoid an error.
29926 Use char because int might match the return type of a GCC
29927 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000029928#ifdef __cplusplus
29929extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000029930#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000029931char $ac_func ();
29932/* The GNU C library defines this for functions which it implements
29933 to always fail with ENOSYS. Some functions are actually named
29934 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029935#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000029936choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000029937#endif
29938
29939int
29940main ()
29941{
Reid Spencera773bd52006-08-04 18:18:08 +000029942return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000029943 ;
29944 return 0;
29945}
29946_ACEOF
29947rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029948if { (ac_try="$ac_link"
29949case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29952esac
29953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000029955 ac_status=$?
29956 grep -v '^ *+' conftest.er1 >conftest.err
29957 rm -f conftest.er1
29958 cat conftest.err >&5
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29962 { (case "(($ac_try" in
29963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964 *) ac_try_echo=$ac_try;;
29965esac
29966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000029968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; } &&
29971 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029972 { (case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29975esac
29976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000029978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
29981 eval "$as_ac_var=yes"
29982else
29983 echo "$as_me: failed program was:" >&5
29984sed 's/^/| /' conftest.$ac_ext >&5
29985
Reid Spencera773bd52006-08-04 18:18:08 +000029986 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000029987fi
Reid Spencera773bd52006-08-04 18:18:08 +000029988
29989rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000029990 conftest$ac_exeext conftest.$ac_ext
29991fi
Reid Spencera773bd52006-08-04 18:18:08 +000029992ac_res=`eval echo '${'$as_ac_var'}'`
29993 { echo "$as_me:$LINENO: result: $ac_res" >&5
29994echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000029995if test `eval echo '${'$as_ac_var'}'` = yes; then
29996 cat >>confdefs.h <<_ACEOF
29997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29998_ACEOF
29999
30000fi
30001done
30002
30003
30004
30005
30006
30007
30008
30009
30010for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030011do
30012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030016 echo $ECHO_N "(cached) $ECHO_C" >&6
30017else
30018 cat >conftest.$ac_ext <<_ACEOF
30019/* confdefs.h. */
30020_ACEOF
30021cat confdefs.h >>conftest.$ac_ext
30022cat >>conftest.$ac_ext <<_ACEOF
30023/* end confdefs.h. */
30024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30026#define $ac_func innocuous_$ac_func
30027
30028/* System header to define __stub macros and hopefully few prototypes,
30029 which can conflict with char $ac_func (); below.
30030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30031 <limits.h> exists even on freestanding compilers. */
30032
30033#ifdef __STDC__
30034# include <limits.h>
30035#else
30036# include <assert.h>
30037#endif
30038
30039#undef $ac_func
30040
Reid Spencera773bd52006-08-04 18:18:08 +000030041/* Override any GCC internal prototype to avoid an error.
30042 Use char because int might match the return type of a GCC
30043 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030044#ifdef __cplusplus
30045extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030046#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030047char $ac_func ();
30048/* The GNU C library defines this for functions which it implements
30049 to always fail with ENOSYS. Some functions are actually named
30050 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030051#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030052choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030053#endif
30054
30055int
30056main ()
30057{
Reid Spencera773bd52006-08-04 18:18:08 +000030058return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030059 ;
30060 return 0;
30061}
30062_ACEOF
30063rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030064if { (ac_try="$ac_link"
30065case "(($ac_try" in
30066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30067 *) ac_try_echo=$ac_try;;
30068esac
30069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030071 ac_status=$?
30072 grep -v '^ *+' conftest.er1 >conftest.err
30073 rm -f conftest.er1
30074 cat conftest.err >&5
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30078 { (case "(($ac_try" in
30079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080 *) ac_try_echo=$ac_try;;
30081esac
30082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030084 ac_status=$?
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; } &&
30087 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030088 { (case "(($ac_try" in
30089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090 *) ac_try_echo=$ac_try;;
30091esac
30092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030094 ac_status=$?
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; }; then
30097 eval "$as_ac_var=yes"
30098else
30099 echo "$as_me: failed program was:" >&5
30100sed 's/^/| /' conftest.$ac_ext >&5
30101
Reid Spencera773bd52006-08-04 18:18:08 +000030102 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030103fi
Reid Spencera773bd52006-08-04 18:18:08 +000030104
30105rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030106 conftest$ac_exeext conftest.$ac_ext
30107fi
Reid Spencera773bd52006-08-04 18:18:08 +000030108ac_res=`eval echo '${'$as_ac_var'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030111if test `eval echo '${'$as_ac_var'}'` = yes; then
30112 cat >>confdefs.h <<_ACEOF
30113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30114_ACEOF
30115
30116fi
30117done
30118
30119
Reid Spencerba46ca32004-12-31 05:49:15 +000030120
30121
Chris Lattner0b142592005-11-14 06:57:34 +000030122
Chris Lattner511f11d2005-11-14 07:25:50 +000030123for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030124do
30125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030126{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30128if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030129 echo $ECHO_N "(cached) $ECHO_C" >&6
30130else
30131 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030132/* confdefs.h. */
30133_ACEOF
30134cat confdefs.h >>conftest.$ac_ext
30135cat >>conftest.$ac_ext <<_ACEOF
30136/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30139#define $ac_func innocuous_$ac_func
30140
30141/* System header to define __stub macros and hopefully few prototypes,
30142 which can conflict with char $ac_func (); below.
30143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30144 <limits.h> exists even on freestanding compilers. */
30145
30146#ifdef __STDC__
30147# include <limits.h>
30148#else
30149# include <assert.h>
30150#endif
30151
30152#undef $ac_func
30153
Reid Spencera773bd52006-08-04 18:18:08 +000030154/* Override any GCC internal prototype to avoid an error.
30155 Use char because int might match the return type of a GCC
30156 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030157#ifdef __cplusplus
30158extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030159#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030160char $ac_func ();
30161/* The GNU C library defines this for functions which it implements
30162 to always fail with ENOSYS. Some functions are actually named
30163 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030164#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030165choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030166#endif
John Criswell7a73b802003-06-30 21:59:07 +000030167
John Criswell7a73b802003-06-30 21:59:07 +000030168int
30169main ()
30170{
Reid Spencera773bd52006-08-04 18:18:08 +000030171return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030172 ;
30173 return 0;
30174}
30175_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030176rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030177if { (ac_try="$ac_link"
30178case "(($ac_try" in
30179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180 *) ac_try_echo=$ac_try;;
30181esac
30182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030185 grep -v '^ *+' conftest.er1 >conftest.err
30186 rm -f conftest.er1
30187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30194esac
30195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030200 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030201 { (case "(($ac_try" in
30202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30204esac
30205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030207 ac_status=$?
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030210 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030211else
30212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030213sed 's/^/| /' conftest.$ac_ext >&5
30214
Reid Spencera773bd52006-08-04 18:18:08 +000030215 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030216fi
Reid Spencera773bd52006-08-04 18:18:08 +000030217
30218rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030219 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030220fi
Reid Spencera773bd52006-08-04 18:18:08 +000030221ac_res=`eval echo '${'$as_ac_var'}'`
30222 { echo "$as_me:$LINENO: result: $ac_res" >&5
30223echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030224if test `eval echo '${'$as_ac_var'}'` = yes; then
30225 cat >>confdefs.h <<_ACEOF
30226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030227_ACEOF
30228
30229fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030230done
John Criswell7a73b802003-06-30 21:59:07 +000030231
Reid Spencercdb08a32006-06-05 16:11:07 +000030232
30233
30234
30235
30236
30237
30238for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30239do
30240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030241{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030244 echo $ECHO_N "(cached) $ECHO_C" >&6
30245else
30246 cat >conftest.$ac_ext <<_ACEOF
30247/* confdefs.h. */
30248_ACEOF
30249cat confdefs.h >>conftest.$ac_ext
30250cat >>conftest.$ac_ext <<_ACEOF
30251/* end confdefs.h. */
30252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30254#define $ac_func innocuous_$ac_func
30255
30256/* System header to define __stub macros and hopefully few prototypes,
30257 which can conflict with char $ac_func (); below.
30258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30259 <limits.h> exists even on freestanding compilers. */
30260
30261#ifdef __STDC__
30262# include <limits.h>
30263#else
30264# include <assert.h>
30265#endif
30266
30267#undef $ac_func
30268
Reid Spencera773bd52006-08-04 18:18:08 +000030269/* Override any GCC internal prototype to avoid an error.
30270 Use char because int might match the return type of a GCC
30271 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030272#ifdef __cplusplus
30273extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030274#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030275char $ac_func ();
30276/* The GNU C library defines this for functions which it implements
30277 to always fail with ENOSYS. Some functions are actually named
30278 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030279#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030280choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030281#endif
30282
30283int
30284main ()
30285{
Reid Spencera773bd52006-08-04 18:18:08 +000030286return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030287 ;
30288 return 0;
30289}
30290_ACEOF
30291rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030292if { (ac_try="$ac_link"
30293case "(($ac_try" in
30294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295 *) ac_try_echo=$ac_try;;
30296esac
30297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030299 ac_status=$?
30300 grep -v '^ *+' conftest.er1 >conftest.err
30301 rm -f conftest.er1
30302 cat conftest.err >&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30306 { (case "(($ac_try" in
30307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308 *) ac_try_echo=$ac_try;;
30309esac
30310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; } &&
30315 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030316 { (case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30319esac
30320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030322 ac_status=$?
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; }; then
30325 eval "$as_ac_var=yes"
30326else
30327 echo "$as_me: failed program was:" >&5
30328sed 's/^/| /' conftest.$ac_ext >&5
30329
Reid Spencera773bd52006-08-04 18:18:08 +000030330 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030331fi
Reid Spencera773bd52006-08-04 18:18:08 +000030332
30333rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030334 conftest$ac_exeext conftest.$ac_ext
30335fi
Reid Spencera773bd52006-08-04 18:18:08 +000030336ac_res=`eval echo '${'$as_ac_var'}'`
30337 { echo "$as_me:$LINENO: result: $ac_res" >&5
30338echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030339if test `eval echo '${'$as_ac_var'}'` = yes; then
30340 cat >>confdefs.h <<_ACEOF
30341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30342_ACEOF
30343
30344fi
30345done
30346
Reid Spencera773bd52006-08-04 18:18:08 +000030347{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30348echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030349if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030350 echo $ECHO_N "(cached) $ECHO_C" >&6
30351else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030352 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030353ac_cpp='$CPP $CPPFLAGS'
30354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30356ac_compiler_gnu=$ac_cv_c_compiler_gnu
30357
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030358 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030359 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030360else
30361 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030362
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030363 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030364_ACEOF
30365cat confdefs.h >>conftest.$ac_ext
30366cat >>conftest.$ac_ext <<_ACEOF
30367/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030368
John Criswella0137d32003-10-13 16:22:01 +000030369#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030370#include <stdlib.h>
30371
John Criswella0137d32003-10-13 16:22:01 +000030372int
30373main ()
30374{
30375
Reid Spencer2706f8c2004-09-19 23:53:36 +000030376volatile double A, B;
30377char Buffer[100];
30378A = 1;
30379A /= 10.0;
30380sprintf(Buffer, "%a", A);
30381B = atof(Buffer);
30382if (A != B)
30383 return (1);
30384if (A != 0x1.999999999999ap-4)
30385 return (1);
30386return (0);
John Criswella0137d32003-10-13 16:22:01 +000030387 ;
30388 return 0;
30389}
30390_ACEOF
30391rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030392if { (ac_try="$ac_link"
30393case "(($ac_try" in
30394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395 *) ac_try_echo=$ac_try;;
30396esac
30397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030399 ac_status=$?
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030402 { (case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30405esac
30406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030408 ac_status=$?
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030411 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030412else
30413 echo "$as_me: program exited with status $ac_status" >&5
30414echo "$as_me: failed program was:" >&5
30415sed 's/^/| /' conftest.$ac_ext >&5
30416
30417( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030418llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030419fi
Reid Spencera773bd52006-08-04 18:18:08 +000030420rm -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 +000030421fi
Reid Spencera773bd52006-08-04 18:18:08 +000030422
30423
Reid Spencer2706f8c2004-09-19 23:53:36 +000030424 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030425ac_cpp='$CPP $CPPFLAGS'
30426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30428ac_compiler_gnu=$ac_cv_c_compiler_gnu
30429
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030430fi
Reid Spencera773bd52006-08-04 18:18:08 +000030431{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30432echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030433 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030434
30435cat >>confdefs.h <<\_ACEOF
30436#define HAVE_PRINTF_A 1
30437_ACEOF
30438
Reid Spencer2706f8c2004-09-19 23:53:36 +000030439 fi
John Criswella0137d32003-10-13 16:22:01 +000030440
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030441# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30442# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030443{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30444echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030445if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030446 echo $ECHO_N "(cached) $ECHO_C" >&6
30447else
John Criswell0021c312004-02-13 21:57:29 +000030448 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030449/* confdefs.h. */
30450_ACEOF
30451cat confdefs.h >>conftest.$ac_ext
30452cat >>conftest.$ac_ext <<_ACEOF
30453/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030454#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030455int
30456main ()
30457{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030458char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030459 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030460 ;
30461 return 0;
30462}
30463_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030464rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030465if { (ac_try="$ac_link"
30466case "(($ac_try" in
30467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468 *) ac_try_echo=$ac_try;;
30469esac
30470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030473 grep -v '^ *+' conftest.er1 >conftest.err
30474 rm -f conftest.er1
30475 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30479 { (case "(($ac_try" in
30480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481 *) ac_try_echo=$ac_try;;
30482esac
30483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030485 ac_status=$?
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030488 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030489 { (case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30492esac
30493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030498 ac_cv_working_alloca_h=yes
30499else
30500 echo "$as_me: failed program was:" >&5
30501sed 's/^/| /' conftest.$ac_ext >&5
30502
Reid Spencera773bd52006-08-04 18:18:08 +000030503 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030504fi
Reid Spencera773bd52006-08-04 18:18:08 +000030505
30506rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030507 conftest$ac_exeext conftest.$ac_ext
30508fi
Reid Spencera773bd52006-08-04 18:18:08 +000030509{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30510echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030511if test $ac_cv_working_alloca_h = yes; then
30512
30513cat >>confdefs.h <<\_ACEOF
30514#define HAVE_ALLOCA_H 1
30515_ACEOF
30516
30517fi
30518
Reid Spencera773bd52006-08-04 18:18:08 +000030519{ echo "$as_me:$LINENO: checking for alloca" >&5
30520echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030521if test "${ac_cv_func_alloca_works+set}" = set; then
30522 echo $ECHO_N "(cached) $ECHO_C" >&6
30523else
30524 cat >conftest.$ac_ext <<_ACEOF
30525/* confdefs.h. */
30526_ACEOF
30527cat confdefs.h >>conftest.$ac_ext
30528cat >>conftest.$ac_ext <<_ACEOF
30529/* end confdefs.h. */
30530#ifdef __GNUC__
30531# define alloca __builtin_alloca
30532#else
30533# ifdef _MSC_VER
30534# include <malloc.h>
30535# define alloca _alloca
30536# else
30537# if HAVE_ALLOCA_H
30538# include <alloca.h>
30539# else
30540# ifdef _AIX
30541 #pragma alloca
30542# else
30543# ifndef alloca /* predefined by HP cc +Olibcalls */
30544char *alloca ();
30545# endif
30546# endif
30547# endif
30548# endif
30549#endif
30550
30551int
30552main ()
30553{
30554char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030555 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030556 ;
30557 return 0;
30558}
30559_ACEOF
30560rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030561if { (ac_try="$ac_link"
30562case "(($ac_try" in
30563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564 *) ac_try_echo=$ac_try;;
30565esac
30566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030568 ac_status=$?
30569 grep -v '^ *+' conftest.er1 >conftest.err
30570 rm -f conftest.er1
30571 cat conftest.err >&5
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30575 { (case "(($ac_try" in
30576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30577 *) ac_try_echo=$ac_try;;
30578esac
30579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; } &&
30584 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030585 { (case "(($ac_try" in
30586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30587 *) ac_try_echo=$ac_try;;
30588esac
30589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30590 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030591 ac_status=$?
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594 ac_cv_func_alloca_works=yes
30595else
30596 echo "$as_me: failed program was:" >&5
30597sed 's/^/| /' conftest.$ac_ext >&5
30598
Reid Spencera773bd52006-08-04 18:18:08 +000030599 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030600fi
Reid Spencera773bd52006-08-04 18:18:08 +000030601
30602rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030603 conftest$ac_exeext conftest.$ac_ext
30604fi
Reid Spencera773bd52006-08-04 18:18:08 +000030605{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30606echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030607
30608if test $ac_cv_func_alloca_works = yes; then
30609
30610cat >>confdefs.h <<\_ACEOF
30611#define HAVE_ALLOCA 1
30612_ACEOF
30613
30614else
30615 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30616# that cause trouble. Some versions do not even contain alloca or
30617# contain a buggy version. If you still want to use their alloca,
30618# use ar to extract alloca.o from them instead of compiling alloca.c.
30619
Reid Spencera773bd52006-08-04 18:18:08 +000030620ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030621
30622cat >>confdefs.h <<\_ACEOF
30623#define C_ALLOCA 1
30624_ACEOF
30625
30626
Reid Spencera773bd52006-08-04 18:18:08 +000030627{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30628echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030629if test "${ac_cv_os_cray+set}" = set; then
30630 echo $ECHO_N "(cached) $ECHO_C" >&6
30631else
30632 cat >conftest.$ac_ext <<_ACEOF
30633/* confdefs.h. */
30634_ACEOF
30635cat confdefs.h >>conftest.$ac_ext
30636cat >>conftest.$ac_ext <<_ACEOF
30637/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030638#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030639webecray
30640#else
30641wenotbecray
30642#endif
30643
30644_ACEOF
30645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30646 $EGREP "webecray" >/dev/null 2>&1; then
30647 ac_cv_os_cray=yes
30648else
30649 ac_cv_os_cray=no
30650fi
30651rm -f conftest*
30652
30653fi
Reid Spencera773bd52006-08-04 18:18:08 +000030654{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30655echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030656if test $ac_cv_os_cray = yes; then
30657 for ac_func in _getb67 GETB67 getb67; do
30658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030659{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30661if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030662 echo $ECHO_N "(cached) $ECHO_C" >&6
30663else
30664 cat >conftest.$ac_ext <<_ACEOF
30665/* confdefs.h. */
30666_ACEOF
30667cat confdefs.h >>conftest.$ac_ext
30668cat >>conftest.$ac_ext <<_ACEOF
30669/* end confdefs.h. */
30670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30672#define $ac_func innocuous_$ac_func
30673
30674/* System header to define __stub macros and hopefully few prototypes,
30675 which can conflict with char $ac_func (); below.
30676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30677 <limits.h> exists even on freestanding compilers. */
30678
30679#ifdef __STDC__
30680# include <limits.h>
30681#else
30682# include <assert.h>
30683#endif
30684
30685#undef $ac_func
30686
Reid Spencera773bd52006-08-04 18:18:08 +000030687/* Override any GCC internal prototype to avoid an error.
30688 Use char because int might match the return type of a GCC
30689 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030690#ifdef __cplusplus
30691extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030692#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030693char $ac_func ();
30694/* The GNU C library defines this for functions which it implements
30695 to always fail with ENOSYS. Some functions are actually named
30696 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030697#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030698choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030699#endif
30700
30701int
30702main ()
30703{
Reid Spencera773bd52006-08-04 18:18:08 +000030704return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030705 ;
30706 return 0;
30707}
30708_ACEOF
30709rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030710if { (ac_try="$ac_link"
30711case "(($ac_try" in
30712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30714esac
30715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030717 ac_status=$?
30718 grep -v '^ *+' conftest.er1 >conftest.err
30719 rm -f conftest.er1
30720 cat conftest.err >&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30724 { (case "(($ac_try" in
30725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30726 *) ac_try_echo=$ac_try;;
30727esac
30728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30729 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; } &&
30733 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030734 { (case "(($ac_try" in
30735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736 *) ac_try_echo=$ac_try;;
30737esac
30738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030740 ac_status=$?
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); }; }; then
30743 eval "$as_ac_var=yes"
30744else
30745 echo "$as_me: failed program was:" >&5
30746sed 's/^/| /' conftest.$ac_ext >&5
30747
Reid Spencera773bd52006-08-04 18:18:08 +000030748 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030749fi
Reid Spencera773bd52006-08-04 18:18:08 +000030750
30751rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030752 conftest$ac_exeext conftest.$ac_ext
30753fi
Reid Spencera773bd52006-08-04 18:18:08 +000030754ac_res=`eval echo '${'$as_ac_var'}'`
30755 { echo "$as_me:$LINENO: result: $ac_res" >&5
30756echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030757if test `eval echo '${'$as_ac_var'}'` = yes; then
30758
30759cat >>confdefs.h <<_ACEOF
30760#define CRAY_STACKSEG_END $ac_func
30761_ACEOF
30762
30763 break
30764fi
30765
30766 done
30767fi
30768
Reid Spencera773bd52006-08-04 18:18:08 +000030769{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30770echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030771if test "${ac_cv_c_stack_direction+set}" = set; then
30772 echo $ECHO_N "(cached) $ECHO_C" >&6
30773else
30774 if test "$cross_compiling" = yes; then
30775 ac_cv_c_stack_direction=0
30776else
30777 cat >conftest.$ac_ext <<_ACEOF
30778/* confdefs.h. */
30779_ACEOF
30780cat confdefs.h >>conftest.$ac_ext
30781cat >>conftest.$ac_ext <<_ACEOF
30782/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030783$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030784int
30785find_stack_direction ()
30786{
30787 static char *addr = 0;
30788 auto char dummy;
30789 if (addr == 0)
30790 {
30791 addr = &dummy;
30792 return find_stack_direction ();
30793 }
John Criswell0021c312004-02-13 21:57:29 +000030794 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030795 return (&dummy > addr) ? 1 : -1;
30796}
John Criswell0021c312004-02-13 21:57:29 +000030797
John Criswell0021c312004-02-13 21:57:29 +000030798int
30799main ()
30800{
Reid Spencera773bd52006-08-04 18:18:08 +000030801 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030802}
30803_ACEOF
30804rm -f 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>&5
John Criswell0021c312004-02-13 21:57:29 +000030812 ac_status=$?
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030815 { (case "(($ac_try" in
30816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817 *) ac_try_echo=$ac_try;;
30818esac
30819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030821 ac_status=$?
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030824 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030825else
30826 echo "$as_me: program exited with status $ac_status" >&5
30827echo "$as_me: failed program was:" >&5
30828sed 's/^/| /' conftest.$ac_ext >&5
30829
30830( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030831ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030832fi
Reid Spencera773bd52006-08-04 18:18:08 +000030833rm -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 +000030834fi
Reid Spencera773bd52006-08-04 18:18:08 +000030835
30836
John Criswell0021c312004-02-13 21:57:29 +000030837fi
Reid Spencera773bd52006-08-04 18:18:08 +000030838{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30839echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030840
30841cat >>confdefs.h <<_ACEOF
30842#define STACK_DIRECTION $ac_cv_c_stack_direction
30843_ACEOF
30844
30845
John Criswell0021c312004-02-13 21:57:29 +000030846fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030847
30848
Reid Spencera773bd52006-08-04 18:18:08 +000030849{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30850echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030851if test "${ac_cv_func_rand48+set}" = set; then
30852 echo $ECHO_N "(cached) $ECHO_C" >&6
30853else
Reid Spencera773bd52006-08-04 18:18:08 +000030854 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030855ac_cpp='$CXXCPP $CPPFLAGS'
30856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30859
30860 cat >conftest.$ac_ext <<_ACEOF
30861/* confdefs.h. */
30862_ACEOF
30863cat confdefs.h >>conftest.$ac_ext
30864cat >>conftest.$ac_ext <<_ACEOF
30865/* end confdefs.h. */
30866#include <stdlib.h>
30867int
30868main ()
30869{
30870srand48(0);lrand48();drand48();
30871 ;
30872 return 0;
30873}
30874_ACEOF
30875rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030876if { (ac_try="$ac_compile"
30877case "(($ac_try" in
30878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30879 *) ac_try_echo=$ac_try;;
30880esac
30881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30882 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030883 ac_status=$?
30884 grep -v '^ *+' conftest.er1 >conftest.err
30885 rm -f conftest.er1
30886 cat conftest.err >&5
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30890 { (case "(($ac_try" in
30891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30892 *) ac_try_echo=$ac_try;;
30893esac
30894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30895 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030896 ac_status=$?
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); }; } &&
30899 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030900 { (case "(($ac_try" in
30901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30902 *) ac_try_echo=$ac_try;;
30903esac
30904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30905 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030906 ac_status=$?
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); }; }; then
30909 ac_cv_func_rand48=yes
30910else
30911 echo "$as_me: failed program was:" >&5
30912sed 's/^/| /' conftest.$ac_ext >&5
30913
Reid Spencera773bd52006-08-04 18:18:08 +000030914 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030915fi
Reid Spencera773bd52006-08-04 18:18:08 +000030916
30917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030918 ac_ext=c
30919ac_cpp='$CPP $CPPFLAGS'
30920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30922ac_compiler_gnu=$ac_cv_c_compiler_gnu
30923
30924fi
Reid Spencera773bd52006-08-04 18:18:08 +000030925{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30926echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030927
30928if test "$ac_cv_func_rand48" = "yes" ; then
30929
30930cat >>confdefs.h <<\_ACEOF
30931#define HAVE_RAND48 1
30932_ACEOF
30933
30934fi
John Criswell0021c312004-02-13 21:57:29 +000030935
30936
Reid Spencera773bd52006-08-04 18:18:08 +000030937{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30938echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030939if test "${ac_cv_cxx_namespaces+set}" = set; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30941else
Reid Spencera773bd52006-08-04 18:18:08 +000030942 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030943ac_cpp='$CXXCPP $CPPFLAGS'
30944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30947
30948 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030949/* confdefs.h. */
30950_ACEOF
30951cat confdefs.h >>conftest.$ac_ext
30952cat >>conftest.$ac_ext <<_ACEOF
30953/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030954namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000030955int
30956main ()
30957{
30958using namespace Outer::Inner; return i;
30959 ;
30960 return 0;
30961}
30962_ACEOF
30963rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030964if { (ac_try="$ac_compile"
30965case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30968esac
30969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030972 grep -v '^ *+' conftest.er1 >conftest.err
30973 rm -f conftest.er1
30974 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30981esac
30982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; } &&
30987 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030988 { (case "(($ac_try" in
30989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990 *) ac_try_echo=$ac_try;;
30991esac
30992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030994 ac_status=$?
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; }; then
30997 ac_cv_cxx_namespaces=yes
30998else
30999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031000sed 's/^/| /' conftest.$ac_ext >&5
31001
Reid Spencera773bd52006-08-04 18:18:08 +000031002 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031003fi
Reid Spencera773bd52006-08-04 18:18:08 +000031004
31005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031006 ac_ext=c
31007ac_cpp='$CPP $CPPFLAGS'
31008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31010ac_compiler_gnu=$ac_cv_c_compiler_gnu
31011
31012
31013fi
Reid Spencera773bd52006-08-04 18:18:08 +000031014{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31015echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031016if test "$ac_cv_cxx_namespaces" = yes; then
31017
31018cat >>confdefs.h <<\_ACEOF
31019#define HAVE_NAMESPACES
31020_ACEOF
31021
31022fi
31023
Reid Spencera773bd52006-08-04 18:18:08 +000031024{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31025echo $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 +000031026if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031027 echo $ECHO_N "(cached) $ECHO_C" >&6
31028else
31029
Reid Spencera773bd52006-08-04 18:18:08 +000031030 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031031ac_cpp='$CXXCPP $CPPFLAGS'
31032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31035
31036 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031037/* confdefs.h. */
31038_ACEOF
31039cat confdefs.h >>conftest.$ac_ext
31040cat >>conftest.$ac_ext <<_ACEOF
31041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031042#include <ext/hash_map>
31043#ifdef HAVE_NAMESPACES
31044using namespace std;
31045#endif
John Criswell7a73b802003-06-30 21:59:07 +000031046int
31047main ()
31048{
Brian Gaeke90583492003-11-10 03:06:28 +000031049hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031050 ;
31051 return 0;
31052}
31053_ACEOF
31054rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031055if { (ac_try="$ac_compile"
31056case "(($ac_try" in
31057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058 *) ac_try_echo=$ac_try;;
31059esac
31060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031062 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031063 grep -v '^ *+' conftest.er1 >conftest.err
31064 rm -f conftest.er1
31065 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31069 { (case "(($ac_try" in
31070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31071 *) ac_try_echo=$ac_try;;
31072esac
31073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31074 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; } &&
31078 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031079 { (case "(($ac_try" in
31080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31081 *) ac_try_echo=$ac_try;;
31082esac
31083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31084 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031085 ac_status=$?
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031088 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031089else
31090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031091sed 's/^/| /' conftest.$ac_ext >&5
31092
Reid Spencera773bd52006-08-04 18:18:08 +000031093 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031094fi
Reid Spencera773bd52006-08-04 18:18:08 +000031095
31096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031097 ac_ext=c
31098ac_cpp='$CPP $CPPFLAGS'
31099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31101ac_compiler_gnu=$ac_cv_c_compiler_gnu
31102
John Criswell7a73b802003-06-30 21:59:07 +000031103fi
Reid Spencera773bd52006-08-04 18:18:08 +000031104{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31105echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031106 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31107 then
John Criswell9f011862004-09-24 18:28:00 +000031108
31109cat >>confdefs.h <<\_ACEOF
31110#define HAVE_STD_EXT_HASH_MAP 1
31111_ACEOF
31112
31113 else
31114
31115cat >>confdefs.h <<\_ACEOF
31116#define HAVE_STD_EXT_HASH_MAP 0
31117_ACEOF
31118
Brian Gaeke90583492003-11-10 03:06:28 +000031119 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031120
Reid Spencera773bd52006-08-04 18:18:08 +000031121 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31122echo $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 +000031123if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31124 echo $ECHO_N "(cached) $ECHO_C" >&6
31125else
31126
Reid Spencera773bd52006-08-04 18:18:08 +000031127 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031128ac_cpp='$CXXCPP $CPPFLAGS'
31129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31132
31133 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031134/* confdefs.h. */
31135_ACEOF
31136cat confdefs.h >>conftest.$ac_ext
31137cat >>conftest.$ac_ext <<_ACEOF
31138/* end confdefs.h. */
31139#include <ext/hash_map>
31140#ifdef HAVE_NAMESPACES
31141using namespace __gnu_cxx;
31142#endif
31143int
31144main ()
31145{
31146hash_map<int,int> t;
31147 ;
31148 return 0;
31149}
31150_ACEOF
31151rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031152if { (ac_try="$ac_compile"
31153case "(($ac_try" in
31154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31155 *) ac_try_echo=$ac_try;;
31156esac
31157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31158 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031159 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031160 grep -v '^ *+' conftest.er1 >conftest.err
31161 rm -f conftest.er1
31162 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31166 { (case "(($ac_try" in
31167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168 *) ac_try_echo=$ac_try;;
31169esac
31170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; } &&
31175 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031176 { (case "(($ac_try" in
31177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31179esac
31180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031182 ac_status=$?
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); }; }; then
31185 ac_cv_cxx_have_gnu_ext_hash_map=yes
31186else
31187 echo "$as_me: failed program was:" >&5
31188sed 's/^/| /' conftest.$ac_ext >&5
31189
Reid Spencera773bd52006-08-04 18:18:08 +000031190 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031191fi
Reid Spencera773bd52006-08-04 18:18:08 +000031192
31193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031194 ac_ext=c
31195ac_cpp='$CPP $CPPFLAGS'
31196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31198ac_compiler_gnu=$ac_cv_c_compiler_gnu
31199
31200fi
Reid Spencera773bd52006-08-04 18:18:08 +000031201{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31202echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031203 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31204 then
John Criswell9f011862004-09-24 18:28:00 +000031205
31206cat >>confdefs.h <<\_ACEOF
31207#define HAVE_GNU_EXT_HASH_MAP 1
31208_ACEOF
31209
31210 else
31211
31212cat >>confdefs.h <<\_ACEOF
31213#define HAVE_GNU_EXT_HASH_MAP 0
31214_ACEOF
31215
Brian Gaeke90583492003-11-10 03:06:28 +000031216 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031217
Reid Spencera773bd52006-08-04 18:18:08 +000031218 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31219echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031220if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31221 echo $ECHO_N "(cached) $ECHO_C" >&6
31222else
John Criswell7a73b802003-06-30 21:59:07 +000031223
Reid Spencera773bd52006-08-04 18:18:08 +000031224 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031225ac_cpp='$CXXCPP $CPPFLAGS'
31226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31229
31230 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031231/* confdefs.h. */
31232_ACEOF
31233cat confdefs.h >>conftest.$ac_ext
31234cat >>conftest.$ac_ext <<_ACEOF
31235/* end confdefs.h. */
31236#include <hash_map>
31237int
31238main ()
31239{
31240hash_map<int,int> t;
31241 ;
31242 return 0;
31243}
31244_ACEOF
31245rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031246if { (ac_try="$ac_compile"
31247case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31250esac
31251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031253 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031254 grep -v '^ *+' conftest.er1 >conftest.err
31255 rm -f conftest.er1
31256 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31260 { (case "(($ac_try" in
31261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31262 *) ac_try_echo=$ac_try;;
31263esac
31264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31265 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; } &&
31269 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031270 { (case "(($ac_try" in
31271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31272 *) ac_try_echo=$ac_try;;
31273esac
31274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31275 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031276 ac_status=$?
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); }; }; then
31279 ac_cv_cxx_have_global_hash_map=yes
31280else
31281 echo "$as_me: failed program was:" >&5
31282sed 's/^/| /' conftest.$ac_ext >&5
31283
Reid Spencera773bd52006-08-04 18:18:08 +000031284 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031285fi
Reid Spencera773bd52006-08-04 18:18:08 +000031286
31287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031288 ac_ext=c
31289ac_cpp='$CPP $CPPFLAGS'
31290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31292ac_compiler_gnu=$ac_cv_c_compiler_gnu
31293
31294fi
Reid Spencera773bd52006-08-04 18:18:08 +000031295{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31296echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031297 if test "$ac_cv_cxx_have_global_hash_map" = yes
31298 then
John Criswell9f011862004-09-24 18:28:00 +000031299
31300cat >>confdefs.h <<\_ACEOF
31301#define HAVE_GLOBAL_HASH_MAP 1
31302_ACEOF
31303
31304 else
31305
31306cat >>confdefs.h <<\_ACEOF
31307#define HAVE_GLOBAL_HASH_MAP 0
31308_ACEOF
31309
Brian Gaeke90583492003-11-10 03:06:28 +000031310 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031311
Reid Spencera773bd52006-08-04 18:18:08 +000031312{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31313echo $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 +000031314if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031315 echo $ECHO_N "(cached) $ECHO_C" >&6
31316else
31317
Reid Spencera773bd52006-08-04 18:18:08 +000031318 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031319ac_cpp='$CXXCPP $CPPFLAGS'
31320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31323
31324 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031325/* confdefs.h. */
31326_ACEOF
31327cat confdefs.h >>conftest.$ac_ext
31328cat >>conftest.$ac_ext <<_ACEOF
31329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031330#include <ext/hash_set>
31331#ifdef HAVE_NAMESPACES
31332using namespace std;
31333#endif
John Criswell7a73b802003-06-30 21:59:07 +000031334int
31335main ()
31336{
Brian Gaeke90583492003-11-10 03:06:28 +000031337hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031338 ;
31339 return 0;
31340}
31341_ACEOF
31342rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031343if { (ac_try="$ac_compile"
31344case "(($ac_try" in
31345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346 *) ac_try_echo=$ac_try;;
31347esac
31348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031350 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031351 grep -v '^ *+' conftest.er1 >conftest.err
31352 rm -f conftest.er1
31353 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31357 { (case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31360esac
31361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31370esac
31371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031376 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031377else
31378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031379sed 's/^/| /' conftest.$ac_ext >&5
31380
Reid Spencera773bd52006-08-04 18:18:08 +000031381 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031382fi
Reid Spencera773bd52006-08-04 18:18:08 +000031383
31384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031385 ac_ext=c
31386ac_cpp='$CPP $CPPFLAGS'
31387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31389ac_compiler_gnu=$ac_cv_c_compiler_gnu
31390
31391fi
Reid Spencera773bd52006-08-04 18:18:08 +000031392{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31393echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031394 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31395 then
John Criswell9f011862004-09-24 18:28:00 +000031396
31397cat >>confdefs.h <<\_ACEOF
31398#define HAVE_STD_EXT_HASH_SET 1
31399_ACEOF
31400
31401 else
31402
31403cat >>confdefs.h <<\_ACEOF
31404#define HAVE_STD_EXT_HASH_SET 0
31405_ACEOF
31406
Brian Gaeke90583492003-11-10 03:06:28 +000031407 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031408
Reid Spencera773bd52006-08-04 18:18:08 +000031409 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31410echo $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 +000031411if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31412 echo $ECHO_N "(cached) $ECHO_C" >&6
31413else
31414
Reid Spencera773bd52006-08-04 18:18:08 +000031415 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031416ac_cpp='$CXXCPP $CPPFLAGS'
31417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31420
John Criswell7a73b802003-06-30 21:59:07 +000031421 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031422/* confdefs.h. */
31423_ACEOF
31424cat confdefs.h >>conftest.$ac_ext
31425cat >>conftest.$ac_ext <<_ACEOF
31426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031427#include <ext/hash_set>
31428#ifdef HAVE_NAMESPACES
31429using namespace __gnu_cxx;
31430#endif
John Criswell7a73b802003-06-30 21:59:07 +000031431int
31432main ()
31433{
Brian Gaeke90583492003-11-10 03:06:28 +000031434hash_set<int> t;
31435 ;
31436 return 0;
31437}
31438_ACEOF
31439rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031440if { (ac_try="$ac_compile"
31441case "(($ac_try" in
31442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443 *) ac_try_echo=$ac_try;;
31444esac
31445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031448 grep -v '^ *+' conftest.er1 >conftest.err
31449 rm -f conftest.er1
31450 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31454 { (case "(($ac_try" in
31455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456 *) ac_try_echo=$ac_try;;
31457esac
31458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031460 ac_status=$?
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; } &&
31463 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031464 { (case "(($ac_try" in
31465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31466 *) ac_try_echo=$ac_try;;
31467esac
31468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031470 ac_status=$?
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); }; }; then
31473 ac_cv_cxx_have_gnu_ext_hash_set=yes
31474else
31475 echo "$as_me: failed program was:" >&5
31476sed 's/^/| /' conftest.$ac_ext >&5
31477
Reid Spencera773bd52006-08-04 18:18:08 +000031478 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031479fi
Reid Spencera773bd52006-08-04 18:18:08 +000031480
31481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031482 ac_ext=c
31483ac_cpp='$CPP $CPPFLAGS'
31484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31486ac_compiler_gnu=$ac_cv_c_compiler_gnu
31487
31488fi
Reid Spencera773bd52006-08-04 18:18:08 +000031489{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31490echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031491 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31492 then
John Criswell9f011862004-09-24 18:28:00 +000031493
31494cat >>confdefs.h <<\_ACEOF
31495#define HAVE_GNU_EXT_HASH_SET 1
31496_ACEOF
31497
31498 else
31499
31500cat >>confdefs.h <<\_ACEOF
31501#define HAVE_GNU_EXT_HASH_SET 0
31502_ACEOF
31503
Brian Gaeke90583492003-11-10 03:06:28 +000031504 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031505
Reid Spencera773bd52006-08-04 18:18:08 +000031506 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31507echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031508if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31509 echo $ECHO_N "(cached) $ECHO_C" >&6
31510else
31511
Reid Spencera773bd52006-08-04 18:18:08 +000031512 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031513ac_cpp='$CXXCPP $CPPFLAGS'
31514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31517
31518 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031519/* confdefs.h. */
31520_ACEOF
31521cat confdefs.h >>conftest.$ac_ext
31522cat >>conftest.$ac_ext <<_ACEOF
31523/* end confdefs.h. */
31524#include <hash_set>
31525int
31526main ()
31527{
John Criswell7a73b802003-06-30 21:59:07 +000031528hash_set<int> t; return 0;
31529 ;
31530 return 0;
31531}
31532_ACEOF
31533rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031534if { (ac_try="$ac_compile"
31535case "(($ac_try" in
31536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31538esac
31539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31540 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031541 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031542 grep -v '^ *+' conftest.er1 >conftest.err
31543 rm -f conftest.er1
31544 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31548 { (case "(($ac_try" in
31549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31550 *) ac_try_echo=$ac_try;;
31551esac
31552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31553 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031554 ac_status=$?
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; } &&
31557 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031558 { (case "(($ac_try" in
31559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31560 *) ac_try_echo=$ac_try;;
31561esac
31562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31563 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031564 ac_status=$?
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031567 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031568else
31569 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031570sed 's/^/| /' conftest.$ac_ext >&5
31571
Reid Spencera773bd52006-08-04 18:18:08 +000031572 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031573fi
Reid Spencera773bd52006-08-04 18:18:08 +000031574
31575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031576 ac_ext=c
31577ac_cpp='$CPP $CPPFLAGS'
31578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31580ac_compiler_gnu=$ac_cv_c_compiler_gnu
31581
John Criswell7a73b802003-06-30 21:59:07 +000031582fi
Reid Spencera773bd52006-08-04 18:18:08 +000031583{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31584echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031585 if test "$ac_cv_cxx_have_global_hash_set" = yes
31586 then
John Criswell9f011862004-09-24 18:28:00 +000031587
31588cat >>confdefs.h <<\_ACEOF
31589#define HAVE_GLOBAL_HASH_SET 1
31590_ACEOF
31591
31592 else
31593
31594cat >>confdefs.h <<\_ACEOF
31595#define HAVE_GLOBAL_HASH_SET 0
31596_ACEOF
31597
Brian Gaeke90583492003-11-10 03:06:28 +000031598 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031599
Reid Spencera773bd52006-08-04 18:18:08 +000031600{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31601echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031602if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31603 echo $ECHO_N "(cached) $ECHO_C" >&6
31604else
31605
Reid Spencera773bd52006-08-04 18:18:08 +000031606 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031607ac_cpp='$CXXCPP $CPPFLAGS'
31608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31611
31612 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031613/* confdefs.h. */
31614_ACEOF
31615cat confdefs.h >>conftest.$ac_ext
31616cat >>conftest.$ac_ext <<_ACEOF
31617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031618#include <iterator>
31619#ifdef HAVE_NAMESPACES
31620using namespace std;
31621#endif
John Criswell7a73b802003-06-30 21:59:07 +000031622int
31623main ()
31624{
31625iterator<int,int,int> t; return 0;
31626 ;
31627 return 0;
31628}
31629_ACEOF
31630rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031631if { (ac_try="$ac_compile"
31632case "(($ac_try" in
31633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634 *) ac_try_echo=$ac_try;;
31635esac
31636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031638 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031639 grep -v '^ *+' conftest.er1 >conftest.err
31640 rm -f conftest.er1
31641 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31645 { (case "(($ac_try" in
31646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31647 *) ac_try_echo=$ac_try;;
31648esac
31649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31650 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031651 ac_status=$?
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; } &&
31654 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031655 { (case "(($ac_try" in
31656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657 *) ac_try_echo=$ac_try;;
31658esac
31659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031661 ac_status=$?
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; }; then
31664 ac_cv_cxx_have_std_iterator=yes
31665else
31666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031667sed 's/^/| /' conftest.$ac_ext >&5
31668
Reid Spencera773bd52006-08-04 18:18:08 +000031669 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031670fi
Reid Spencera773bd52006-08-04 18:18:08 +000031671
31672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031673 ac_ext=c
31674ac_cpp='$CPP $CPPFLAGS'
31675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31677ac_compiler_gnu=$ac_cv_c_compiler_gnu
31678
31679
31680fi
Reid Spencera773bd52006-08-04 18:18:08 +000031681{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31682echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031683if test "$ac_cv_cxx_have_std_iterator" = yes
31684then
John Criswell40468462004-09-24 21:19:06 +000031685
31686cat >>confdefs.h <<\_ACEOF
31687#define HAVE_STD_ITERATOR 1
31688_ACEOF
31689
31690else
31691
31692cat >>confdefs.h <<\_ACEOF
31693#define HAVE_STD_ITERATOR 0
31694_ACEOF
31695
John Criswell7a73b802003-06-30 21:59:07 +000031696fi
31697
Reid Spencera773bd52006-08-04 18:18:08 +000031698{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31699echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031700if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31701 echo $ECHO_N "(cached) $ECHO_C" >&6
31702else
31703
Reid Spencera773bd52006-08-04 18:18:08 +000031704 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031705ac_cpp='$CXXCPP $CPPFLAGS'
31706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31709
31710 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031711/* confdefs.h. */
31712_ACEOF
31713cat confdefs.h >>conftest.$ac_ext
31714cat >>conftest.$ac_ext <<_ACEOF
31715/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031716#include <iterator>
31717#ifdef HAVE_NAMESPACES
31718using namespace std;
31719#endif
John Criswell7a73b802003-06-30 21:59:07 +000031720int
31721main ()
31722{
John Criswellc78022e2003-07-29 19:11:58 +000031723bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031724 ;
31725 return 0;
31726}
31727_ACEOF
31728rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031729if { (ac_try="$ac_compile"
31730case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31733esac
31734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031737 grep -v '^ *+' conftest.er1 >conftest.err
31738 rm -f conftest.er1
31739 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31743 { (case "(($ac_try" in
31744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31745 *) ac_try_echo=$ac_try;;
31746esac
31747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31748 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031749 ac_status=$?
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); }; } &&
31752 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031753 { (case "(($ac_try" in
31754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755 *) ac_try_echo=$ac_try;;
31756esac
31757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031759 ac_status=$?
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); }; }; then
31762 ac_cv_cxx_have_bi_iterator=yes
31763else
31764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031765sed 's/^/| /' conftest.$ac_ext >&5
31766
Reid Spencera773bd52006-08-04 18:18:08 +000031767 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031768fi
Reid Spencera773bd52006-08-04 18:18:08 +000031769
31770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031771 ac_ext=c
31772ac_cpp='$CPP $CPPFLAGS'
31773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31775ac_compiler_gnu=$ac_cv_c_compiler_gnu
31776
31777
31778fi
Reid Spencera773bd52006-08-04 18:18:08 +000031779{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31780echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031781if test "$ac_cv_cxx_have_bi_iterator" = yes
31782then
John Criswell40468462004-09-24 21:19:06 +000031783
31784cat >>confdefs.h <<\_ACEOF
31785#define HAVE_BI_ITERATOR 1
31786_ACEOF
31787
31788else
31789
31790cat >>confdefs.h <<\_ACEOF
31791#define HAVE_BI_ITERATOR 0
31792_ACEOF
31793
John Criswell7a73b802003-06-30 21:59:07 +000031794fi
31795
Reid Spencera773bd52006-08-04 18:18:08 +000031796{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31797echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031798if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31799 echo $ECHO_N "(cached) $ECHO_C" >&6
31800else
31801
Reid Spencera773bd52006-08-04 18:18:08 +000031802 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031803ac_cpp='$CXXCPP $CPPFLAGS'
31804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31807
31808 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031809/* confdefs.h. */
31810_ACEOF
31811cat confdefs.h >>conftest.$ac_ext
31812cat >>conftest.$ac_ext <<_ACEOF
31813/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031814#include <iterator>
31815#ifdef HAVE_NAMESPACES
31816using namespace std;
31817#endif
John Criswell7a73b802003-06-30 21:59:07 +000031818int
31819main ()
31820{
John Criswellc78022e2003-07-29 19:11:58 +000031821forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031822 ;
31823 return 0;
31824}
31825_ACEOF
31826rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031827if { (ac_try="$ac_compile"
31828case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31831esac
31832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031834 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031835 grep -v '^ *+' conftest.er1 >conftest.err
31836 rm -f conftest.er1
31837 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031840 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31841 { (case "(($ac_try" in
31842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31844esac
31845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031851 { (case "(($ac_try" in
31852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31853 *) ac_try_echo=$ac_try;;
31854esac
31855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031857 ac_status=$?
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; }; then
31860 ac_cv_cxx_have_fwd_iterator=yes
31861else
31862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031863sed 's/^/| /' conftest.$ac_ext >&5
31864
Reid Spencera773bd52006-08-04 18:18:08 +000031865 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031866fi
Reid Spencera773bd52006-08-04 18:18:08 +000031867
31868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031869 ac_ext=c
31870ac_cpp='$CPP $CPPFLAGS'
31871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31873ac_compiler_gnu=$ac_cv_c_compiler_gnu
31874
31875
31876fi
Reid Spencera773bd52006-08-04 18:18:08 +000031877{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31878echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031879if test "$ac_cv_cxx_have_fwd_iterator" = yes
31880then
John Criswell40468462004-09-24 21:19:06 +000031881
31882cat >>confdefs.h <<\_ACEOF
31883#define HAVE_FWD_ITERATOR 1
31884_ACEOF
31885
31886else
31887
31888cat >>confdefs.h <<\_ACEOF
31889#define HAVE_FWD_ITERATOR 0
31890_ACEOF
31891
John Criswell7a73b802003-06-30 21:59:07 +000031892fi
31893
31894
Reid Spencera773bd52006-08-04 18:18:08 +000031895{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31896echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031897if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31898 echo $ECHO_N "(cached) $ECHO_C" >&6
31899else
Reid Spencera773bd52006-08-04 18:18:08 +000031900 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031901ac_cpp='$CXXCPP $CPPFLAGS'
31902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31905
Reid Spencerabec8f92004-10-27 23:03:44 +000031906 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031907/* confdefs.h. */
31908_ACEOF
31909cat confdefs.h >>conftest.$ac_ext
31910cat >>conftest.$ac_ext <<_ACEOF
31911/* end confdefs.h. */
31912#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031913int
31914main ()
31915{
31916float f; isnan(f);
31917 ;
31918 return 0;
31919}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031920_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
Brian Gaeke6f5b6212004-06-22 23:47:13 +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
Brian Gaeke6f5b6212004-06-22 23:47:13 +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
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031952 ac_status=$?
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; }; then
31955 ac_cv_func_isnan_in_math_h=yes
31956else
31957 echo "$as_me: failed program was:" >&5
31958sed 's/^/| /' conftest.$ac_ext >&5
31959
Reid Spencera773bd52006-08-04 18:18:08 +000031960 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031961fi
Reid Spencera773bd52006-08-04 18:18:08 +000031962
31963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031964 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031965ac_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
31970fi
Reid Spencera773bd52006-08-04 18:18:08 +000031971{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
31972echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031973
31974
31975if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031976
31977cat >>confdefs.h <<\_ACEOF
31978#define HAVE_ISNAN_IN_MATH_H 1
31979_ACEOF
31980
Reid Spencerabec8f92004-10-27 23:03:44 +000031981fi
31982
Reid Spencera773bd52006-08-04 18:18:08 +000031983{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
31984echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031985if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
31986 echo $ECHO_N "(cached) $ECHO_C" >&6
31987else
Reid Spencera773bd52006-08-04 18:18:08 +000031988 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031989ac_cpp='$CXXCPP $CPPFLAGS'
31990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31993
Reid Spencerabec8f92004-10-27 23:03:44 +000031994 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031995/* confdefs.h. */
31996_ACEOF
31997cat confdefs.h >>conftest.$ac_ext
31998cat >>conftest.$ac_ext <<_ACEOF
31999/* end confdefs.h. */
32000#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032001int
32002main ()
32003{
32004float f; isnan(f);
32005 ;
32006 return 0;
32007}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032008_ACEOF
32009rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032010if { (ac_try="$ac_compile"
32011case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32014esac
32015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032017 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032018 grep -v '^ *+' conftest.er1 >conftest.err
32019 rm -f conftest.er1
32020 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027esac
32028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032034 { (case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32037esac
32038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032040 ac_status=$?
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
32043 ac_cv_func_isnan_in_cmath=yes
32044else
32045 echo "$as_me: failed program was:" >&5
32046sed 's/^/| /' conftest.$ac_ext >&5
32047
Reid Spencera773bd52006-08-04 18:18:08 +000032048 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032049fi
Reid Spencera773bd52006-08-04 18:18:08 +000032050
32051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032052 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032053ac_cpp='$CPP $CPPFLAGS'
32054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32056ac_compiler_gnu=$ac_cv_c_compiler_gnu
32057
32058fi
Reid Spencera773bd52006-08-04 18:18:08 +000032059{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32060echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032061
32062if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032063
32064cat >>confdefs.h <<\_ACEOF
32065#define HAVE_ISNAN_IN_CMATH 1
32066_ACEOF
32067
Reid Spencerabec8f92004-10-27 23:03:44 +000032068fi
32069
Reid Spencera773bd52006-08-04 18:18:08 +000032070{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32071echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032072if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32073 echo $ECHO_N "(cached) $ECHO_C" >&6
32074else
Reid Spencera773bd52006-08-04 18:18:08 +000032075 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032076ac_cpp='$CXXCPP $CPPFLAGS'
32077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32080
Reid Spencerabec8f92004-10-27 23:03:44 +000032081 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032082/* confdefs.h. */
32083_ACEOF
32084cat confdefs.h >>conftest.$ac_ext
32085cat >>conftest.$ac_ext <<_ACEOF
32086/* end confdefs.h. */
32087#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032088int
32089main ()
32090{
32091float f; std::isnan(f);
32092 ;
32093 return 0;
32094}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032095_ACEOF
32096rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032097if { (ac_try="$ac_compile"
32098case "(($ac_try" in
32099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100 *) ac_try_echo=$ac_try;;
32101esac
32102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032104 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032105 grep -v '^ *+' conftest.er1 >conftest.err
32106 rm -f conftest.er1
32107 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111 { (case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32114esac
32115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032117 ac_status=$?
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; } &&
32120 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032121 { (case "(($ac_try" in
32122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32124esac
32125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032127 ac_status=$?
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
32130 ac_cv_func_std_isnan_in_cmath=yes
32131else
32132 echo "$as_me: failed program was:" >&5
32133sed 's/^/| /' conftest.$ac_ext >&5
32134
Reid Spencera773bd52006-08-04 18:18:08 +000032135 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032136fi
Reid Spencera773bd52006-08-04 18:18:08 +000032137
32138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032139 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032140ac_cpp='$CPP $CPPFLAGS'
32141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143ac_compiler_gnu=$ac_cv_c_compiler_gnu
32144
32145fi
Reid Spencera773bd52006-08-04 18:18:08 +000032146{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32147echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032148
32149if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032150
32151cat >>confdefs.h <<\_ACEOF
32152#define HAVE_STD_ISNAN_IN_CMATH 1
32153_ACEOF
32154
Reid Spencerabec8f92004-10-27 23:03:44 +000032155fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032156
32157
Reid Spencera773bd52006-08-04 18:18:08 +000032158{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32159echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032160if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32162else
Reid Spencera773bd52006-08-04 18:18:08 +000032163 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032164ac_cpp='$CXXCPP $CPPFLAGS'
32165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32168
Reid Spencerabec8f92004-10-27 23:03:44 +000032169 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032170/* confdefs.h. */
32171_ACEOF
32172cat confdefs.h >>conftest.$ac_ext
32173cat >>conftest.$ac_ext <<_ACEOF
32174/* end confdefs.h. */
32175#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032176int
32177main ()
32178{
32179float f; isinf(f);
32180 ;
32181 return 0;
32182}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032183_ACEOF
32184rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032185if { (ac_try="$ac_compile"
32186case "(($ac_try" in
32187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188 *) ac_try_echo=$ac_try;;
32189esac
32190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032192 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032193 grep -v '^ *+' conftest.er1 >conftest.err
32194 rm -f conftest.er1
32195 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32199 { (case "(($ac_try" in
32200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32201 *) ac_try_echo=$ac_try;;
32202esac
32203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32204 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; } &&
32208 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032209 { (case "(($ac_try" in
32210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32211 *) ac_try_echo=$ac_try;;
32212esac
32213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032215 ac_status=$?
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); }; }; then
32218 ac_cv_func_isinf_in_math_h=yes
32219else
32220 echo "$as_me: failed program was:" >&5
32221sed 's/^/| /' conftest.$ac_ext >&5
32222
Reid Spencera773bd52006-08-04 18:18:08 +000032223 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032224fi
Reid Spencera773bd52006-08-04 18:18:08 +000032225
32226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032227 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032228ac_cpp='$CPP $CPPFLAGS'
32229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32231ac_compiler_gnu=$ac_cv_c_compiler_gnu
32232
32233fi
Reid Spencera773bd52006-08-04 18:18:08 +000032234{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32235echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032236
32237if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032238
32239cat >>confdefs.h <<\_ACEOF
32240#define HAVE_ISINF_IN_MATH_H 1
32241_ACEOF
32242
Reid Spencerabec8f92004-10-27 23:03:44 +000032243fi
32244
Reid Spencera773bd52006-08-04 18:18:08 +000032245{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32246echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032247if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32248 echo $ECHO_N "(cached) $ECHO_C" >&6
32249else
Reid Spencera773bd52006-08-04 18:18:08 +000032250 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032251ac_cpp='$CXXCPP $CPPFLAGS'
32252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32255
Reid Spencerabec8f92004-10-27 23:03:44 +000032256 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032257/* confdefs.h. */
32258_ACEOF
32259cat confdefs.h >>conftest.$ac_ext
32260cat >>conftest.$ac_ext <<_ACEOF
32261/* end confdefs.h. */
32262#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032263int
32264main ()
32265{
32266float f; isinf(f);
32267 ;
32268 return 0;
32269}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032270_ACEOF
32271rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032272if { (ac_try="$ac_compile"
32273case "(($ac_try" in
32274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275 *) ac_try_echo=$ac_try;;
32276esac
32277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032280 grep -v '^ *+' conftest.er1 >conftest.err
32281 rm -f conftest.er1
32282 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32286 { (case "(($ac_try" in
32287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288 *) ac_try_echo=$ac_try;;
32289esac
32290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032292 ac_status=$?
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; } &&
32295 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032296 { (case "(($ac_try" in
32297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32298 *) ac_try_echo=$ac_try;;
32299esac
32300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; }; then
32305 ac_cv_func_isinf_in_cmath=yes
32306else
32307 echo "$as_me: failed program was:" >&5
32308sed 's/^/| /' conftest.$ac_ext >&5
32309
Reid Spencera773bd52006-08-04 18:18:08 +000032310 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032311fi
Reid Spencera773bd52006-08-04 18:18:08 +000032312
32313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032314 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032315ac_cpp='$CPP $CPPFLAGS'
32316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318ac_compiler_gnu=$ac_cv_c_compiler_gnu
32319
32320fi
Reid Spencera773bd52006-08-04 18:18:08 +000032321{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32322echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032323
32324if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032325
32326cat >>confdefs.h <<\_ACEOF
32327#define HAVE_ISINF_IN_CMATH 1
32328_ACEOF
32329
Reid Spencerabec8f92004-10-27 23:03:44 +000032330fi
32331
Reid Spencera773bd52006-08-04 18:18:08 +000032332{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32333echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032334if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32335 echo $ECHO_N "(cached) $ECHO_C" >&6
32336else
Reid Spencera773bd52006-08-04 18:18:08 +000032337 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032338ac_cpp='$CXXCPP $CPPFLAGS'
32339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32342
Reid Spencerabec8f92004-10-27 23:03:44 +000032343 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032344/* confdefs.h. */
32345_ACEOF
32346cat confdefs.h >>conftest.$ac_ext
32347cat >>conftest.$ac_ext <<_ACEOF
32348/* end confdefs.h. */
32349#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032350int
32351main ()
32352{
32353float f; std::isinf(f)}
32354 ;
32355 return 0;
32356}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032357_ACEOF
32358rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032359if { (ac_try="$ac_compile"
32360case "(($ac_try" in
32361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362 *) ac_try_echo=$ac_try;;
32363esac
32364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032366 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032367 grep -v '^ *+' conftest.er1 >conftest.err
32368 rm -f conftest.er1
32369 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32373 { (case "(($ac_try" in
32374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375 *) ac_try_echo=$ac_try;;
32376esac
32377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032379 ac_status=$?
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); }; } &&
32382 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032383 { (case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32386esac
32387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032389 ac_status=$?
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); }; }; then
32392 ac_cv_func_std_isinf_in_cmath=yes
32393else
32394 echo "$as_me: failed program was:" >&5
32395sed 's/^/| /' conftest.$ac_ext >&5
32396
Reid Spencera773bd52006-08-04 18:18:08 +000032397 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032398fi
Reid Spencera773bd52006-08-04 18:18:08 +000032399
32400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032401 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032402ac_cpp='$CPP $CPPFLAGS'
32403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405ac_compiler_gnu=$ac_cv_c_compiler_gnu
32406
32407fi
Reid Spencera773bd52006-08-04 18:18:08 +000032408{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32409echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032410
32411if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032412
32413cat >>confdefs.h <<\_ACEOF
32414#define HAVE_STD_ISINF_IN_CMATH 1
32415_ACEOF
32416
Reid Spencerabec8f92004-10-27 23:03:44 +000032417fi
32418
Reid Spencera773bd52006-08-04 18:18:08 +000032419{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32420echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032421if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32422 echo $ECHO_N "(cached) $ECHO_C" >&6
32423else
Reid Spencera773bd52006-08-04 18:18:08 +000032424 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032425ac_cpp='$CXXCPP $CPPFLAGS'
32426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32429
Reid Spencerabec8f92004-10-27 23:03:44 +000032430 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032431/* confdefs.h. */
32432_ACEOF
32433cat confdefs.h >>conftest.$ac_ext
32434cat >>conftest.$ac_ext <<_ACEOF
32435/* end confdefs.h. */
32436#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032437int
32438main ()
32439{
32440float f; finite(f);
32441 ;
32442 return 0;
32443}
Brian Gaeked59a6472004-07-21 03:33:58 +000032444_ACEOF
32445rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032446if { (ac_try="$ac_compile"
32447case "(($ac_try" in
32448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449 *) ac_try_echo=$ac_try;;
32450esac
32451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032454 grep -v '^ *+' conftest.er1 >conftest.err
32455 rm -f conftest.er1
32456 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32460 { (case "(($ac_try" in
32461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32462 *) ac_try_echo=$ac_try;;
32463esac
32464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32465 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032466 ac_status=$?
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; } &&
32469 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032470 { (case "(($ac_try" in
32471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32472 *) ac_try_echo=$ac_try;;
32473esac
32474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032476 ac_status=$?
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; }; then
32479 ac_cv_func_finite_in_ieeefp_h=yes
32480else
32481 echo "$as_me: failed program was:" >&5
32482sed 's/^/| /' conftest.$ac_ext >&5
32483
Reid Spencera773bd52006-08-04 18:18:08 +000032484 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032485fi
Reid Spencera773bd52006-08-04 18:18:08 +000032486
32487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032488 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032489ac_cpp='$CPP $CPPFLAGS'
32490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32492ac_compiler_gnu=$ac_cv_c_compiler_gnu
32493
32494fi
Reid Spencera773bd52006-08-04 18:18:08 +000032495{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32496echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032497
Brian Gaeke6802b552004-10-28 05:06:45 +000032498if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032499
32500cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032501#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032502_ACEOF
32503
Reid Spencerabec8f92004-10-27 23:03:44 +000032504fi
32505
32506
32507
John Criswell7a73b802003-06-30 21:59:07 +000032508
32509
32510for ac_header in stdlib.h unistd.h
32511do
32512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032517 echo $ECHO_N "(cached) $ECHO_C" >&6
32518fi
Reid Spencera773bd52006-08-04 18:18:08 +000032519ac_res=`eval echo '${'$as_ac_Header'}'`
32520 { echo "$as_me:$LINENO: result: $ac_res" >&5
32521echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032522else
32523 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032524{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032526cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032527/* confdefs.h. */
32528_ACEOF
32529cat confdefs.h >>conftest.$ac_ext
32530cat >>conftest.$ac_ext <<_ACEOF
32531/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032532$ac_includes_default
32533#include <$ac_header>
32534_ACEOF
32535rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032536if { (ac_try="$ac_compile"
32537case "(($ac_try" in
32538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32539 *) ac_try_echo=$ac_try;;
32540esac
32541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32542 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032544 grep -v '^ *+' conftest.er1 >conftest.err
32545 rm -f conftest.er1
32546 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32550 { (case "(($ac_try" in
32551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32552 *) ac_try_echo=$ac_try;;
32553esac
32554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32555 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; } &&
32559 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032560 { (case "(($ac_try" in
32561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32562 *) ac_try_echo=$ac_try;;
32563esac
32564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32565 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032566 ac_status=$?
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); }; }; then
32569 ac_header_compiler=yes
32570else
32571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032572sed 's/^/| /' conftest.$ac_ext >&5
32573
Reid Spencera773bd52006-08-04 18:18:08 +000032574 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032575fi
Reid Spencera773bd52006-08-04 18:18:08 +000032576
32577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32579echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032580
32581# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032582{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032584cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032585/* confdefs.h. */
32586_ACEOF
32587cat confdefs.h >>conftest.$ac_ext
32588cat >>conftest.$ac_ext <<_ACEOF
32589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032590#include <$ac_header>
32591_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032592if { (ac_try="$ac_cpp conftest.$ac_ext"
32593case "(($ac_try" in
32594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595 *) ac_try_echo=$ac_try;;
32596esac
32597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032599 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032600 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032601 rm -f conftest.er1
32602 cat conftest.err >&5
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); } >/dev/null; then
32605 if test -s conftest.err; then
32606 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032608 else
32609 ac_cpp_err=
32610 fi
32611else
32612 ac_cpp_err=yes
32613fi
32614if test -z "$ac_cpp_err"; then
32615 ac_header_preproc=yes
32616else
32617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032618sed 's/^/| /' conftest.$ac_ext >&5
32619
John Criswell7a73b802003-06-30 21:59:07 +000032620 ac_header_preproc=no
32621fi
Reid Spencera773bd52006-08-04 18:18:08 +000032622
John Criswell7a73b802003-06-30 21:59:07 +000032623rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032624{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32625echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032626
32627# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32629 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32634 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032635 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032636 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32644echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032649 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032650## ----------------------------------- ##
32651## Report this to llvmbugs@cs.uiuc.edu ##
32652## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032653_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032654 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032655 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032656esac
Reid Spencera773bd52006-08-04 18:18:08 +000032657{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032660 echo $ECHO_N "(cached) $ECHO_C" >&6
32661else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032662 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032663fi
Reid Spencera773bd52006-08-04 18:18:08 +000032664ac_res=`eval echo '${'$as_ac_Header'}'`
32665 { echo "$as_me:$LINENO: result: $ac_res" >&5
32666echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032667
32668fi
32669if test `eval echo '${'$as_ac_Header'}'` = yes; then
32670 cat >>confdefs.h <<_ACEOF
32671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32672_ACEOF
32673
32674fi
32675
32676done
32677
32678
32679for ac_func in getpagesize
32680do
32681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032682{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32684if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032685 echo $ECHO_N "(cached) $ECHO_C" >&6
32686else
32687 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032688/* confdefs.h. */
32689_ACEOF
32690cat confdefs.h >>conftest.$ac_ext
32691cat >>conftest.$ac_ext <<_ACEOF
32692/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32695#define $ac_func innocuous_$ac_func
32696
John Criswell7a73b802003-06-30 21:59:07 +000032697/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032698 which can conflict with char $ac_func (); below.
32699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32700 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032701
John Criswell0c38eaf2003-09-10 15:17:25 +000032702#ifdef __STDC__
32703# include <limits.h>
32704#else
32705# include <assert.h>
32706#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032707
32708#undef $ac_func
32709
Reid Spencera773bd52006-08-04 18:18:08 +000032710/* Override any GCC internal prototype to avoid an error.
32711 Use char because int might match the return type of a GCC
32712 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032713#ifdef __cplusplus
32714extern "C"
32715#endif
John Criswell7a73b802003-06-30 21:59:07 +000032716char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032717/* The GNU C library defines this for functions which it implements
32718 to always fail with ENOSYS. Some functions are actually named
32719 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032720#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032721choke me
John Criswell7a73b802003-06-30 21:59:07 +000032722#endif
32723
John Criswell0c38eaf2003-09-10 15:17:25 +000032724int
32725main ()
32726{
Reid Spencera773bd52006-08-04 18:18:08 +000032727return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032728 ;
32729 return 0;
32730}
32731_ACEOF
32732rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032733if { (ac_try="$ac_link"
32734case "(($ac_try" in
32735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736 *) ac_try_echo=$ac_try;;
32737esac
32738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032741 grep -v '^ *+' conftest.er1 >conftest.err
32742 rm -f conftest.er1
32743 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32745 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32747 { (case "(($ac_try" in
32748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32749 *) ac_try_echo=$ac_try;;
32750esac
32751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32752 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032753 ac_status=$?
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; } &&
32756 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032757 { (case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32760esac
32761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; }; then
32766 eval "$as_ac_var=yes"
32767else
32768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032769sed 's/^/| /' conftest.$ac_ext >&5
32770
Reid Spencera773bd52006-08-04 18:18:08 +000032771 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032772fi
Reid Spencera773bd52006-08-04 18:18:08 +000032773
32774rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032775 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032776fi
Reid Spencera773bd52006-08-04 18:18:08 +000032777ac_res=`eval echo '${'$as_ac_var'}'`
32778 { echo "$as_me:$LINENO: result: $ac_res" >&5
32779echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032780if test `eval echo '${'$as_ac_var'}'` = yes; then
32781 cat >>confdefs.h <<_ACEOF
32782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32783_ACEOF
32784
32785fi
32786done
32787
Reid Spencera773bd52006-08-04 18:18:08 +000032788{ echo "$as_me:$LINENO: checking for working mmap" >&5
32789echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032790if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32791 echo $ECHO_N "(cached) $ECHO_C" >&6
32792else
32793 if test "$cross_compiling" = yes; then
32794 ac_cv_func_mmap_fixed_mapped=no
32795else
32796 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032797/* confdefs.h. */
32798_ACEOF
32799cat confdefs.h >>conftest.$ac_ext
32800cat >>conftest.$ac_ext <<_ACEOF
32801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032802$ac_includes_default
32803/* malloc might have been renamed as rpl_malloc. */
32804#undef malloc
32805
32806/* Thanks to Mike Haertel and Jim Avera for this test.
32807 Here is a matrix of mmap possibilities:
32808 mmap private not fixed
32809 mmap private fixed at somewhere currently unmapped
32810 mmap private fixed at somewhere already mapped
32811 mmap shared not fixed
32812 mmap shared fixed at somewhere currently unmapped
32813 mmap shared fixed at somewhere already mapped
32814 For private mappings, we should verify that changes cannot be read()
32815 back from the file, nor mmap's back from the file at a different
32816 address. (There have been systems where private was not correctly
32817 implemented like the infamous i386 svr4.0, and systems where the
32818 VM page cache was not coherent with the file system buffer cache
32819 like early versions of FreeBSD and possibly contemporary NetBSD.)
32820 For shared mappings, we should conversely verify that changes get
32821 propagated back to all the places they're supposed to be.
32822
32823 Grep wants private fixed already mapped.
32824 The main things grep needs to know about mmap are:
32825 * does it exist and is it safe to write into the mmap'd area
32826 * how to use it (BSD variants) */
32827
32828#include <fcntl.h>
32829#include <sys/mman.h>
32830
32831#if !STDC_HEADERS && !HAVE_STDLIB_H
32832char *malloc ();
32833#endif
32834
32835/* This mess was copied from the GNU getpagesize.h. */
32836#if !HAVE_GETPAGESIZE
32837/* Assume that all systems that can run configure have sys/param.h. */
32838# if !HAVE_SYS_PARAM_H
32839# define HAVE_SYS_PARAM_H 1
32840# endif
32841
32842# ifdef _SC_PAGESIZE
32843# define getpagesize() sysconf(_SC_PAGESIZE)
32844# else /* no _SC_PAGESIZE */
32845# if HAVE_SYS_PARAM_H
32846# include <sys/param.h>
32847# ifdef EXEC_PAGESIZE
32848# define getpagesize() EXEC_PAGESIZE
32849# else /* no EXEC_PAGESIZE */
32850# ifdef NBPG
32851# define getpagesize() NBPG * CLSIZE
32852# ifndef CLSIZE
32853# define CLSIZE 1
32854# endif /* no CLSIZE */
32855# else /* no NBPG */
32856# ifdef NBPC
32857# define getpagesize() NBPC
32858# else /* no NBPC */
32859# ifdef PAGESIZE
32860# define getpagesize() PAGESIZE
32861# endif /* PAGESIZE */
32862# endif /* no NBPC */
32863# endif /* no NBPG */
32864# endif /* no EXEC_PAGESIZE */
32865# else /* no HAVE_SYS_PARAM_H */
32866# define getpagesize() 8192 /* punt totally */
32867# endif /* no HAVE_SYS_PARAM_H */
32868# endif /* no _SC_PAGESIZE */
32869
32870#endif /* no HAVE_GETPAGESIZE */
32871
32872int
32873main ()
32874{
32875 char *data, *data2, *data3;
32876 int i, pagesize;
32877 int fd;
32878
32879 pagesize = getpagesize ();
32880
32881 /* First, make a file with some known garbage in it. */
32882 data = (char *) malloc (pagesize);
32883 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032884 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032885 for (i = 0; i < pagesize; ++i)
32886 *(data + i) = rand ();
32887 umask (0);
32888 fd = creat ("conftest.mmap", 0600);
32889 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032890 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032891 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032892 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032893 close (fd);
32894
32895 /* Next, try to mmap the file at a fixed address which already has
32896 something else allocated at it. If we can, also make sure that
32897 we see the same garbage. */
32898 fd = open ("conftest.mmap", O_RDWR);
32899 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032900 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032901 data2 = (char *) malloc (2 * pagesize);
32902 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032903 return 1;
32904 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000032905 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000032906 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000032907 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032908 for (i = 0; i < pagesize; ++i)
32909 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032910 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032911
32912 /* Finally, make sure that changes to the mapped area do not
32913 percolate back to the file as seen by read(). (This is a bug on
32914 some variants of i386 svr4.0.) */
32915 for (i = 0; i < pagesize; ++i)
32916 *(data2 + i) = *(data2 + i) + 1;
32917 data3 = (char *) malloc (pagesize);
32918 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000032919 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032920 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032921 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032922 for (i = 0; i < pagesize; ++i)
32923 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032924 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032925 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000032926 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032927}
32928_ACEOF
32929rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032930if { (ac_try="$ac_link"
32931case "(($ac_try" in
32932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933 *) ac_try_echo=$ac_try;;
32934esac
32935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032940 { (case "(($ac_try" in
32941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32942 *) ac_try_echo=$ac_try;;
32943esac
32944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32945 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032946 ac_status=$?
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); }; }; then
32949 ac_cv_func_mmap_fixed_mapped=yes
32950else
32951 echo "$as_me: program exited with status $ac_status" >&5
32952echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032953sed 's/^/| /' conftest.$ac_ext >&5
32954
John Criswell7a73b802003-06-30 21:59:07 +000032955( exit $ac_status )
32956ac_cv_func_mmap_fixed_mapped=no
32957fi
Reid Spencera773bd52006-08-04 18:18:08 +000032958rm -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 +000032959fi
Reid Spencera773bd52006-08-04 18:18:08 +000032960
32961
John Criswell7a73b802003-06-30 21:59:07 +000032962fi
Reid Spencera773bd52006-08-04 18:18:08 +000032963{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
32964echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032965if test $ac_cv_func_mmap_fixed_mapped = yes; then
32966
32967cat >>confdefs.h <<\_ACEOF
32968#define HAVE_MMAP 1
32969_ACEOF
32970
32971fi
32972rm -f conftest.mmap
32973
Reid Spencera773bd52006-08-04 18:18:08 +000032974{ echo "$as_me:$LINENO: checking for mmap of files" >&5
32975echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032976if test "${ac_cv_func_mmap_file+set}" = set; then
32977 echo $ECHO_N "(cached) $ECHO_C" >&6
32978else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032979 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000032980ac_cpp='$CPP $CPPFLAGS'
32981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32983ac_compiler_gnu=$ac_cv_c_compiler_gnu
32984
32985 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000032986 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000032987else
32988 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032989
Reid Spencer777ce172004-09-20 04:09:56 +000032990 /* confdefs.h. */
32991_ACEOF
32992cat confdefs.h >>conftest.$ac_ext
32993cat >>conftest.$ac_ext <<_ACEOF
32994/* end confdefs.h. */
32995
John Criswell7a73b802003-06-30 21:59:07 +000032996#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000032997#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000032998#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000032999
33000int
33001main ()
33002{
John Criswell7a73b802003-06-30 21:59:07 +000033003
33004 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033005 fd = creat ("foo",0777);
33006 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33007 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033008 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033009 ;
33010 return 0;
33011}
John Criswell7a73b802003-06-30 21:59:07 +000033012_ACEOF
33013rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033014if { (ac_try="$ac_link"
33015case "(($ac_try" in
33016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33017 *) ac_try_echo=$ac_try;;
33018esac
33019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33020 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033021 ac_status=$?
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033024 { (case "(($ac_try" in
33025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33026 *) ac_try_echo=$ac_try;;
33027esac
33028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33029 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033030 ac_status=$?
33031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032 (exit $ac_status); }; }; then
33033 ac_cv_func_mmap_file=yes
33034else
33035 echo "$as_me: program exited with status $ac_status" >&5
33036echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033037sed 's/^/| /' conftest.$ac_ext >&5
33038
John Criswell7a73b802003-06-30 21:59:07 +000033039( exit $ac_status )
33040ac_cv_func_mmap_file=no
33041fi
Reid Spencera773bd52006-08-04 18:18:08 +000033042rm -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 +000033043fi
Reid Spencera773bd52006-08-04 18:18:08 +000033044
33045
John Criswell7a73b802003-06-30 21:59:07 +000033046 ac_ext=c
33047ac_cpp='$CPP $CPPFLAGS'
33048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33050ac_compiler_gnu=$ac_cv_c_compiler_gnu
33051
33052
33053fi
Reid Spencera773bd52006-08-04 18:18:08 +000033054{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33055echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033056if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033057
33058cat >>confdefs.h <<\_ACEOF
33059#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033060_ACEOF
33061
33062 MMAP_FILE=yes
33063
33064fi
33065
Reid Spencera773bd52006-08-04 18:18:08 +000033066{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33067echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033068if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33069 echo $ECHO_N "(cached) $ECHO_C" >&6
33070else
Reid Spencer582a23c2004-12-29 07:07:57 +000033071 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033072 ac_cv_need_dev_zero_for_mmap=yes
33073 else
33074 ac_cv_need_dev_zero_for_mmap=no
33075 fi
33076
33077fi
Reid Spencera773bd52006-08-04 18:18:08 +000033078{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33079echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033080if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33081
33082cat >>confdefs.h <<\_ACEOF
33083#define NEED_DEV_ZERO_FOR_MMAP 1
33084_ACEOF
33085
33086fi
Reid Spencera773bd52006-08-04 18:18:08 +000033087{ echo "$as_me:$LINENO: checking for mprotect" >&5
33088echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033089if test "${ac_cv_func_mprotect+set}" = set; then
33090 echo $ECHO_N "(cached) $ECHO_C" >&6
33091else
33092 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033093/* confdefs.h. */
33094_ACEOF
33095cat confdefs.h >>conftest.$ac_ext
33096cat >>conftest.$ac_ext <<_ACEOF
33097/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033098/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33100#define mprotect innocuous_mprotect
33101
John Criswell7a73b802003-06-30 21:59:07 +000033102/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033103 which can conflict with char mprotect (); below.
33104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33105 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033106
John Criswell0c38eaf2003-09-10 15:17:25 +000033107#ifdef __STDC__
33108# include <limits.h>
33109#else
33110# include <assert.h>
33111#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033112
33113#undef mprotect
33114
Reid Spencera773bd52006-08-04 18:18:08 +000033115/* Override any GCC internal prototype to avoid an error.
33116 Use char because int might match the return type of a GCC
33117 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033118#ifdef __cplusplus
33119extern "C"
33120#endif
John Criswell7a73b802003-06-30 21:59:07 +000033121char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033122/* The GNU C library defines this for functions which it implements
33123 to always fail with ENOSYS. Some functions are actually named
33124 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033125#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033126choke me
John Criswell7a73b802003-06-30 21:59:07 +000033127#endif
33128
John Criswell0c38eaf2003-09-10 15:17:25 +000033129int
33130main ()
33131{
Reid Spencera773bd52006-08-04 18:18:08 +000033132return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033133 ;
33134 return 0;
33135}
33136_ACEOF
33137rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033138if { (ac_try="$ac_link"
33139case "(($ac_try" in
33140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33142esac
33143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033145 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033146 grep -v '^ *+' conftest.er1 >conftest.err
33147 rm -f conftest.er1
33148 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33152 { (case "(($ac_try" in
33153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33155esac
33156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033158 ac_status=$?
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; } &&
33161 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033162 { (case "(($ac_try" in
33163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164 *) ac_try_echo=$ac_try;;
33165esac
33166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033168 ac_status=$?
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); }; }; then
33171 ac_cv_func_mprotect=yes
33172else
33173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033174sed 's/^/| /' conftest.$ac_ext >&5
33175
Reid Spencera773bd52006-08-04 18:18:08 +000033176 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033177fi
Reid Spencera773bd52006-08-04 18:18:08 +000033178
33179rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033180 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033181fi
Reid Spencera773bd52006-08-04 18:18:08 +000033182{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33183echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033184if test $ac_cv_func_mprotect = yes; then
33185 :
33186else
33187 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33188echo "$as_me: error: Function mprotect() required but not found" >&2;}
33189 { (exit 1); exit 1; }; }
33190fi
33191
33192
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033193if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033194then
Reid Spencer582a23c2004-12-29 07:07:57 +000033195 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33196echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033197fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033198if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033199then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033200 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33201echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033202fi
John Criswell7a73b802003-06-30 21:59:07 +000033203
33204
Reid Spencera773bd52006-08-04 18:18:08 +000033205{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33206echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033207if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33208 echo $ECHO_N "(cached) $ECHO_C" >&6
33209else
33210 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033211if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033212 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033213 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033214 if test $? -eq 0 ; then
33215 llvm_cv_llvmgcc_sanity="yes"
33216 fi
33217 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033218fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033219fi
Reid Spencera773bd52006-08-04 18:18:08 +000033220{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33221echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033222
33223if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033224 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033225 LLVMCC1=$llvmcc1path
33226
Reid Spencer502935f2004-12-22 05:56:56 +000033227 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033228 LLVMCC1PLUS=$llvmcc1pluspath
33229
Reid Spencer502935f2004-12-22 05:56:56 +000033230 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33231 LLVMGCCDIR=$llvmgccdir
33232
Reid Spencerb5d75b82006-05-09 00:31:01 +000033233 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033234 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33235 LLVMGCC_VERSION=$llvmgccversion
33236
33237 LLVMGCC_MAJVERS=$llvmgccmajvers
33238
Brian Gaekef3b24102003-11-16 18:38:14 +000033239fi
33240
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033241SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033242
33243
Reid Spencere9de0912004-08-20 09:03:57 +000033244# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033245# information into substitutions that will end up in Makefile.config.in
33246# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000033247if test "${prefix}" == "NONE" ; then
33248 prefix="/usr/local"
33249fi
Reid Spencere9de0912004-08-20 09:03:57 +000033250eval LLVM_PREFIX="${prefix}";
33251eval LLVM_BINDIR="${prefix}/bin";
33252eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033253eval LLVM_DATADIR="${prefix}/share/llvm";
33254eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33255eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033256eval LLVM_INCLUDEDIR="${prefix}/include";
33257eval LLVM_INFODIR="${prefix}/info";
33258eval LLVM_MANDIR="${prefix}/man";
33259LLVM_CONFIGTIME=`date`
33260
33261
33262
33263
33264
33265
33266
33267
33268
33269
33270
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033271# Place the various directores into the config.h file as #defines so that we
33272# can know about the installation paths within LLVM.
33273
Reid Spencere9de0912004-08-20 09:03:57 +000033274cat >>confdefs.h <<_ACEOF
33275#define LLVM_PREFIX "$LLVM_PREFIX"
33276_ACEOF
33277
33278
33279cat >>confdefs.h <<_ACEOF
33280#define LLVM_BINDIR "$LLVM_BINDIR"
33281_ACEOF
33282
33283
33284cat >>confdefs.h <<_ACEOF
33285#define LLVM_LIBDIR "$LLVM_LIBDIR"
33286_ACEOF
33287
33288
33289cat >>confdefs.h <<_ACEOF
33290#define LLVM_DATADIR "$LLVM_DATADIR"
33291_ACEOF
33292
33293
33294cat >>confdefs.h <<_ACEOF
33295#define LLVM_DATADIR "$LLVM_DOCSDIR"
33296_ACEOF
33297
33298
33299cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033300#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033301_ACEOF
33302
33303
33304cat >>confdefs.h <<_ACEOF
33305#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33306_ACEOF
33307
33308
33309cat >>confdefs.h <<_ACEOF
33310#define LLVM_INFODIR "$LLVM_INFODIR"
33311_ACEOF
33312
33313
33314cat >>confdefs.h <<_ACEOF
33315#define LLVM_MANDIR "$LLVM_MANDIR"
33316_ACEOF
33317
33318
33319cat >>confdefs.h <<_ACEOF
33320#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33321_ACEOF
33322
33323
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033324
Reid Spencera773bd52006-08-04 18:18:08 +000033325ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033326
Reid Spencera773bd52006-08-04 18:18:08 +000033327ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033328
Reid Spencera773bd52006-08-04 18:18:08 +000033329ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033330
Reid Spencera773bd52006-08-04 18:18:08 +000033331ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033332
Reid Spencera773bd52006-08-04 18:18:08 +000033333ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033334
33335
Reid Spencera773bd52006-08-04 18:18:08 +000033336ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033337
33338
Reid Spencera773bd52006-08-04 18:18:08 +000033339ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033340
33341
Reid Spencera773bd52006-08-04 18:18:08 +000033342ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033343
33344
Reid Spencera773bd52006-08-04 18:18:08 +000033345ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033346
Reid Spencera773bd52006-08-04 18:18:08 +000033347ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033348
33349
Reid Spencera773bd52006-08-04 18:18:08 +000033350ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033351
33352
Reid Spencera773bd52006-08-04 18:18:08 +000033353ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033354
33355
Reid Spencera773bd52006-08-04 18:18:08 +000033356ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033357
33358
Reid Spencera773bd52006-08-04 18:18:08 +000033359ac_config_commands="$ac_config_commands runtime/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033360
33361
Reid Spencera773bd52006-08-04 18:18:08 +000033362ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033363
33364
Reid Spencera773bd52006-08-04 18:18:08 +000033365ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033366
33367
Reid Spencera773bd52006-08-04 18:18:08 +000033368ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033369
33370
Reid Spencera773bd52006-08-04 18:18:08 +000033371ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033372
33373
Reid Spencera773bd52006-08-04 18:18:08 +000033374ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033375
33376
33377
John Criswell7a73b802003-06-30 21:59:07 +000033378cat >confcache <<\_ACEOF
33379# This file is a shell script that caches the results of configure
33380# tests run on this system so they can be shared between configure
33381# scripts and configure runs, see configure's option --config-cache.
33382# It is not useful on other systems. If it contains results you don't
33383# want to keep, you may remove or edit it.
33384#
33385# config.status only pays attention to the cache file if you give it
33386# the --recheck option to rerun configure.
33387#
John Criswell0c38eaf2003-09-10 15:17:25 +000033388# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033389# loading this file, other *unset* `ac_cv_foo' will be assigned the
33390# following values.
33391
33392_ACEOF
33393
33394# The following way of writing the cache mishandles newlines in values,
33395# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033396# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033397# Ultrix sh set writes to stderr and can't be redirected directly,
33398# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033399(
33400 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33401 eval ac_val=\$$ac_var
33402 case $ac_val in #(
33403 *${as_nl}*)
33404 case $ac_var in #(
33405 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33406echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33407 esac
33408 case $ac_var in #(
33409 _ | IFS | as_nl) ;; #(
33410 *) $as_unset $ac_var ;;
33411 esac ;;
33412 esac
33413 done
33414
John Criswell7a73b802003-06-30 21:59:07 +000033415 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033416 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33417 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033418 # `set' does not quote correctly, so add quotes (double-quote
33419 # substitution turns \\\\ into \\, and sed turns \\ into \).
33420 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033421 "s/'/'\\\\''/g;
33422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033423 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033424 *)
33425 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033427 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033428 esac |
33429 sort
33430) |
John Criswell7a73b802003-06-30 21:59:07 +000033431 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033432 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033433 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033434 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33436 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033437 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33438 :end' >>confcache
33439if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33440 if test -w "$cache_file"; then
33441 test "x$cache_file" != "x/dev/null" &&
33442 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33443echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033444 cat confcache >$cache_file
33445 else
Reid Spencera773bd52006-08-04 18:18:08 +000033446 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33447echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033448 fi
33449fi
33450rm -f confcache
33451
33452test "x$prefix" = xNONE && prefix=$ac_default_prefix
33453# Let make expand exec_prefix.
33454test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33455
John Criswell7a73b802003-06-30 21:59:07 +000033456DEFS=-DHAVE_CONFIG_H
33457
John Criswell0c38eaf2003-09-10 15:17:25 +000033458ac_libobjs=
33459ac_ltlibobjs=
33460for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33461 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33463 ac_i=`echo "$ac_i" | sed "$ac_script"`
33464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33465 # will be set to the directory where LIBOBJS objects are built.
33466 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33467 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033468done
33469LIBOBJS=$ac_libobjs
33470
33471LTLIBOBJS=$ac_ltlibobjs
33472
33473
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033474if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33475 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33476Usually this means the macro was only invoked conditionally." >&5
33477echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33478Usually this means the macro was only invoked conditionally." >&2;}
33479 { (exit 1); exit 1; }; }
33480fi
33481if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33482 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33483Usually this means the macro was only invoked conditionally." >&5
33484echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33485Usually this means the macro was only invoked conditionally." >&2;}
33486 { (exit 1); exit 1; }; }
33487fi
John Criswell7a73b802003-06-30 21:59:07 +000033488
33489: ${CONFIG_STATUS=./config.status}
33490ac_clean_files_save=$ac_clean_files
33491ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33492{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33493echo "$as_me: creating $CONFIG_STATUS" >&6;}
33494cat >$CONFIG_STATUS <<_ACEOF
33495#! $SHELL
33496# Generated by $as_me.
33497# Run this file to recreate the current configuration.
33498# Compiler output produced by configure, useful for debugging
33499# configure, is in config.log if it exists.
33500
33501debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033502ac_cs_recheck=false
33503ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033504SHELL=\${CONFIG_SHELL-$SHELL}
33505_ACEOF
33506
33507cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033508## --------------------- ##
33509## M4sh Initialization. ##
33510## --------------------- ##
33511
33512# Be Bourne compatible
33513if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33514 emulate sh
33515 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033516 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33517 # is contrary to our usage. Disable this feature.
33518 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033519 setopt NO_GLOB_SUBST
33520else
33521 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033522fi
Reid Spencera773bd52006-08-04 18:18:08 +000033523BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033524DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033525
John Criswell7a73b802003-06-30 21:59:07 +000033526
Reid Spencera773bd52006-08-04 18:18:08 +000033527# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033528# Avoid depending upon Character Ranges.
33529as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33530as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33531as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33532as_cr_digits='0123456789'
33533as_cr_alnum=$as_cr_Letters$as_cr_digits
33534
33535# The user is always right.
33536if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033537 echo "#! /bin/sh" >conf$$.sh
33538 echo "exit 0" >>conf$$.sh
33539 chmod +x conf$$.sh
33540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033541 PATH_SEPARATOR=';'
33542 else
33543 PATH_SEPARATOR=:
33544 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033545 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033546fi
33547
Reid Spencera773bd52006-08-04 18:18:08 +000033548# Support unset when possible.
33549if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33550 as_unset=unset
33551else
33552 as_unset=false
33553fi
John Criswell7a73b802003-06-30 21:59:07 +000033554
Reid Spencera773bd52006-08-04 18:18:08 +000033555
33556# IFS
33557# We need space, tab and new line, in precisely that order. Quoting is
33558# there to prevent editors from complaining about space-tab.
33559# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33560# splitting by setting IFS to empty value.)
33561as_nl='
33562'
33563IFS=" "" $as_nl"
33564
33565# Find who we are. Look in the path if we contain no directory separator.
33566case $0 in
33567 *[\\/]* ) as_myself=$0 ;;
33568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033569for as_dir in $PATH
33570do
33571 IFS=$as_save_IFS
33572 test -z "$as_dir" && as_dir=.
33573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33574done
Reid Spencera773bd52006-08-04 18:18:08 +000033575IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033576
Reid Spencera773bd52006-08-04 18:18:08 +000033577 ;;
33578esac
33579# We did not find ourselves, most probably we were run as `sh COMMAND'
33580# in which case we are not to be found in the path.
33581if test "x$as_myself" = x; then
33582 as_myself=$0
33583fi
33584if test ! -f "$as_myself"; then
33585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33586 { (exit 1); exit 1; }
33587fi
33588
33589# Work around bugs in pre-3.0 UWIN ksh.
33590for as_var in ENV MAIL MAILPATH
33591do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33592done
33593PS1='$ '
33594PS2='> '
33595PS4='+ '
33596
33597# NLS nuisances.
33598for as_var in \
33599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33601 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033602do
Reid Spencera773bd52006-08-04 18:18:08 +000033603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33604 eval $as_var=C; export $as_var
33605 else
33606 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33607 fi
33608done
33609
33610# Required to use basename.
33611if expr a : '\(a\)' >/dev/null 2>&1 &&
33612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33613 as_expr=expr
33614else
33615 as_expr=false
33616fi
33617
33618if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33619 as_basename=basename
33620else
33621 as_basename=false
33622fi
33623
33624
33625# Name of the executable.
33626as_me=`$as_basename -- "$0" ||
33627$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33628 X"$0" : 'X\(//\)$' \| \
33629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33630echo X/"$0" |
33631 sed '/^.*\/\([^/][^/]*\)\/*$/{
33632 s//\1/
33633 q
33634 }
33635 /^X\/\(\/\/\)$/{
33636 s//\1/
33637 q
33638 }
33639 /^X\/\(\/\).*/{
33640 s//\1/
33641 q
33642 }
33643 s/.*/./; q'`
33644
33645# CDPATH.
33646$as_unset CDPATH
33647
33648
33649
John Criswell7a73b802003-06-30 21:59:07 +000033650 as_lineno_1=$LINENO
33651 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033652 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033654
33655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33656 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033657 # line-number line after each line using $LINENO; the second 'sed'
33658 # does the real work. The second script uses 'N' to pair each
33659 # line-number line with the line containing $LINENO, and appends
33660 # trailing '-' during substitution so that $LINENO is not a special
33661 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033663 # scripts with optimization help from Paolo Bonzini. Blame Lee
33664 # E. McMahon (1931-1989) for sed's syntax. :-)
33665 sed -n '
33666 p
33667 /[$]LINENO/=
33668 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033669 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033670 s/[$]LINENO.*/&-/
33671 t lineno
33672 b
33673 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033674 N
Reid Spencera773bd52006-08-04 18:18:08 +000033675 :loop
33676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033677 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033678 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033679 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033680 chmod +x "$as_me.lineno" ||
33681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033682 { (exit 1); exit 1; }; }
33683
33684 # Don't try to exec as it changes $[0], causing all sort of problems
33685 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033686 # original and so on. Autoconf is especially sensitive to this).
33687 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033688 # Exit status is that of the last command.
33689 exit
33690}
33691
33692
Reid Spencera773bd52006-08-04 18:18:08 +000033693if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33694 as_dirname=dirname
33695else
33696 as_dirname=false
33697fi
33698
33699ECHO_C= ECHO_N= ECHO_T=
33700case `echo -n x` in
33701-n*)
33702 case `echo 'x\c'` in
33703 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33704 *) ECHO_C='\c';;
33705 esac;;
33706*)
33707 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033708esac
33709
Reid Spencera773bd52006-08-04 18:18:08 +000033710if expr a : '\(a\)' >/dev/null 2>&1 &&
33711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033712 as_expr=expr
33713else
33714 as_expr=false
33715fi
33716
33717rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033718if test -d conf$$.dir; then
33719 rm -f conf$$.dir/conf$$.file
33720else
33721 rm -f conf$$.dir
33722 mkdir conf$$.dir
33723fi
John Criswell7a73b802003-06-30 21:59:07 +000033724echo >conf$$.file
33725if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033726 as_ln_s='ln -s'
33727 # ... but there are two gotchas:
33728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33730 # In both cases, we have to default to `cp -p'.
33731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033732 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033733elif ln conf$$.file conf$$ 2>/dev/null; then
33734 as_ln_s=ln
33735else
33736 as_ln_s='cp -p'
33737fi
Reid Spencera773bd52006-08-04 18:18:08 +000033738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33739rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033740
John Criswell0c38eaf2003-09-10 15:17:25 +000033741if mkdir -p . 2>/dev/null; then
33742 as_mkdir_p=:
33743else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033744 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033745 as_mkdir_p=false
33746fi
33747
Reid Spencera773bd52006-08-04 18:18:08 +000033748# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33749# systems may use methods other than mode bits to determine executability.
33750cat >conf$$.file <<_ASEOF
33751#! /bin/sh
33752exit 0
33753_ASEOF
33754chmod +x conf$$.file
33755if test -x conf$$.file >/dev/null 2>&1; then
33756 as_executable_p="test -x"
33757else
33758 as_executable_p=:
33759fi
33760rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033761
33762# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033763as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033764
33765# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033766as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033767
33768
John Criswell7a73b802003-06-30 21:59:07 +000033769exec 6>&1
33770
Reid Spencera773bd52006-08-04 18:18:08 +000033771# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033772# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033773# values after options handling.
33774ac_log="
Reid Spencer1bc68642006-07-27 23:00:30 +000033775This file was extended by llvm $as_me 1.9cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033776generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033777
33778 CONFIG_FILES = $CONFIG_FILES
33779 CONFIG_HEADERS = $CONFIG_HEADERS
33780 CONFIG_LINKS = $CONFIG_LINKS
33781 CONFIG_COMMANDS = $CONFIG_COMMANDS
33782 $ $0 $@
33783
Reid Spencera773bd52006-08-04 18:18:08 +000033784on `(hostname || uname -n) 2>/dev/null | sed 1q`
33785"
33786
John Criswell7a73b802003-06-30 21:59:07 +000033787_ACEOF
33788
Reid Spencera773bd52006-08-04 18:18:08 +000033789cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033790# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033791config_files="$ac_config_files"
33792config_headers="$ac_config_headers"
33793config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033794
Reid Spencera773bd52006-08-04 18:18:08 +000033795_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033796
33797cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033798ac_cs_usage="\
33799\`$as_me' instantiates files from templates according to the
33800current configuration.
33801
33802Usage: $0 [OPTIONS] [FILE]...
33803
33804 -h, --help print this help, then exit
33805 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033806 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033807 -d, --debug don't remove temporary files
33808 --recheck update $as_me by reconfiguring in the same conditions
33809 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033810 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033811 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033812 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033813
33814Configuration files:
33815$config_files
33816
33817Configuration headers:
33818$config_headers
33819
John Criswellc764fbc2003-09-06 15:17:13 +000033820Configuration commands:
33821$config_commands
33822
John Criswell7a73b802003-06-30 21:59:07 +000033823Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033824
Reid Spencera773bd52006-08-04 18:18:08 +000033825_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033826cat >>$CONFIG_STATUS <<_ACEOF
33827ac_cs_version="\\
Reid Spencer1bc68642006-07-27 23:00:30 +000033828llvm config.status 1.9cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033829configured by $0, generated by GNU Autoconf 2.60,
33830 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033831
Reid Spencera773bd52006-08-04 18:18:08 +000033832Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033833This config.status script is free software; the Free Software Foundation
33834gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033835
33836ac_pwd='$ac_pwd'
33837srcdir='$srcdir'
33838INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033839_ACEOF
33840
33841cat >>$CONFIG_STATUS <<\_ACEOF
33842# If no file are specified by the user, then we need to provide default
33843# value. By we need to know if files were specified by the user.
33844ac_need_defaults=:
33845while test $# != 0
33846do
33847 case $1 in
33848 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033851 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033853 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033854 ac_option=$1
33855 ac_optarg=$2
33856 ac_shift=shift
33857 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033858 esac
33859
John Criswell0c38eaf2003-09-10 15:17:25 +000033860 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033861 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33863 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33865 echo "$ac_cs_version"; exit ;;
33866 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033867 debug=: ;;
33868 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033869 $ac_shift
33870 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033871 ac_need_defaults=false;;
33872 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033873 $ac_shift
33874 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033875 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033876 --he | --h)
33877 # Conflict between --help and --header
33878 { echo "$as_me: error: ambiguous option: $1
33879Try \`$0 --help' for more information." >&2
33880 { (exit 1); exit 1; }; };;
33881 --help | --hel | -h )
33882 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33885 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033886
33887 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033888 -*) { echo "$as_me: error: unrecognized option: $1
33889Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033890 { (exit 1); exit 1; }; } ;;
33891
Reid Spencera773bd52006-08-04 18:18:08 +000033892 *) ac_config_targets="$ac_config_targets $1"
33893 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033894
33895 esac
33896 shift
33897done
33898
John Criswell0c38eaf2003-09-10 15:17:25 +000033899ac_configure_extra_args=
33900
33901if $ac_cs_silent; then
33902 exec 6>/dev/null
33903 ac_configure_extra_args="$ac_configure_extra_args --silent"
33904fi
33905
33906_ACEOF
33907cat >>$CONFIG_STATUS <<_ACEOF
33908if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000033909 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33910 CONFIG_SHELL=$SHELL
33911 export CONFIG_SHELL
33912 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000033913fi
33914
John Criswell7a73b802003-06-30 21:59:07 +000033915_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033916cat >>$CONFIG_STATUS <<\_ACEOF
33917exec 5>>config.log
33918{
33919 echo
33920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33921## Running $as_me. ##
33922_ASBOX
33923 echo "$ac_log"
33924} >&5
John Criswell7a73b802003-06-30 21:59:07 +000033925
Reid Spencera773bd52006-08-04 18:18:08 +000033926_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000033927cat >>$CONFIG_STATUS <<_ACEOF
33928#
Reid Spencera773bd52006-08-04 18:18:08 +000033929# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000033930#
Reid Spencerc0682832005-02-24 19:05:19 +000033931llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000033932
33933_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033934
John Criswell7a73b802003-06-30 21:59:07 +000033935cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033936
33937# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000033938for ac_config_target in $ac_config_targets
33939do
Reid Spencera773bd52006-08-04 18:18:08 +000033940 case $ac_config_target in
33941 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33942 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33943 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33944 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
33945 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
33946 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
33947 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
33948 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33949 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
33950 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
33951 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
33952 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
33953 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
33954 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
33955 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
33956 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
33957 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
33958 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
33959 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
33960
John Criswell7a73b802003-06-30 21:59:07 +000033961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33962echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33963 { (exit 1); exit 1; }; };;
33964 esac
33965done
33966
Reid Spencera773bd52006-08-04 18:18:08 +000033967
John Criswell7a73b802003-06-30 21:59:07 +000033968# If the user did not use the arguments to specify the items to instantiate,
33969# then the envvar interface is used. Set only those that are not.
33970# We use the long form for the default assignment because of an extremely
33971# bizarre bug on SunOS 4.1.3.
33972if $ac_need_defaults; then
33973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000033975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000033976fi
33977
John Criswell0c38eaf2003-09-10 15:17:25 +000033978# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000033979# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000033980# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000033981# Hook for its removal unless debugging.
33982# Note that there is a small window in which the directory will not be cleaned:
33983# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000033984$debug ||
33985{
Reid Spencera773bd52006-08-04 18:18:08 +000033986 tmp=
33987 trap 'exit_status=$?
33988 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33989' 0
John Criswell7a73b802003-06-30 21:59:07 +000033990 trap '{ (exit 1); exit 1; }' 1 2 13 15
33991}
John Criswell7a73b802003-06-30 21:59:07 +000033992# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000033993
John Criswell7a73b802003-06-30 21:59:07 +000033994{
Reid Spencera773bd52006-08-04 18:18:08 +000033995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000033996 test -n "$tmp" && test -d "$tmp"
33997} ||
33998{
Reid Spencera773bd52006-08-04 18:18:08 +000033999 tmp=./conf$$-$RANDOM
34000 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034001} ||
34002{
John Criswell0c38eaf2003-09-10 15:17:25 +000034003 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034004 { (exit 1); exit 1; }
34005}
34006
John Criswell7a73b802003-06-30 21:59:07 +000034007#
Reid Spencera773bd52006-08-04 18:18:08 +000034008# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034009#
34010
34011# No need to generate the scripts if there are no CONFIG_FILES.
34012# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034013if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034014
34015_ACEOF
34016
Reid Spencera773bd52006-08-04 18:18:08 +000034017
34018
34019ac_delim='%!_!# '
34020for ac_last_try in false false false false false :; do
34021 cat >conf$$subs.sed <<_ACEOF
34022SHELL!$SHELL$ac_delim
34023PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34024PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34025PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34026PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34027PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34028PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34029exec_prefix!$exec_prefix$ac_delim
34030prefix!$prefix$ac_delim
34031program_transform_name!$program_transform_name$ac_delim
34032bindir!$bindir$ac_delim
34033sbindir!$sbindir$ac_delim
34034libexecdir!$libexecdir$ac_delim
34035datarootdir!$datarootdir$ac_delim
34036datadir!$datadir$ac_delim
34037sysconfdir!$sysconfdir$ac_delim
34038sharedstatedir!$sharedstatedir$ac_delim
34039localstatedir!$localstatedir$ac_delim
34040includedir!$includedir$ac_delim
34041oldincludedir!$oldincludedir$ac_delim
34042docdir!$docdir$ac_delim
34043infodir!$infodir$ac_delim
34044htmldir!$htmldir$ac_delim
34045dvidir!$dvidir$ac_delim
34046pdfdir!$pdfdir$ac_delim
34047psdir!$psdir$ac_delim
34048libdir!$libdir$ac_delim
34049localedir!$localedir$ac_delim
34050mandir!$mandir$ac_delim
34051DEFS!$DEFS$ac_delim
34052ECHO_C!$ECHO_C$ac_delim
34053ECHO_N!$ECHO_N$ac_delim
34054ECHO_T!$ECHO_T$ac_delim
34055LIBS!$LIBS$ac_delim
34056build_alias!$build_alias$ac_delim
34057host_alias!$host_alias$ac_delim
34058target_alias!$target_alias$ac_delim
34059LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34060subdirs!$subdirs$ac_delim
34061build!$build$ac_delim
34062build_cpu!$build_cpu$ac_delim
34063build_vendor!$build_vendor$ac_delim
34064build_os!$build_os$ac_delim
34065host!$host$ac_delim
34066host_cpu!$host_cpu$ac_delim
34067host_vendor!$host_vendor$ac_delim
34068host_os!$host_os$ac_delim
34069target!$target$ac_delim
34070target_cpu!$target_cpu$ac_delim
34071target_vendor!$target_vendor$ac_delim
34072target_os!$target_os$ac_delim
34073OS!$OS$ac_delim
34074LINKALL!$LINKALL$ac_delim
34075NOLINKALL!$NOLINKALL$ac_delim
34076LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34077LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34078ARCH!$ARCH$ac_delim
34079ENDIAN!$ENDIAN$ac_delim
34080CC!$CC$ac_delim
34081CFLAGS!$CFLAGS$ac_delim
34082LDFLAGS!$LDFLAGS$ac_delim
34083CPPFLAGS!$CPPFLAGS$ac_delim
34084ac_ct_CC!$ac_ct_CC$ac_delim
34085EXEEXT!$EXEEXT$ac_delim
34086OBJEXT!$OBJEXT$ac_delim
34087CPP!$CPP$ac_delim
34088GREP!$GREP$ac_delim
34089EGREP!$EGREP$ac_delim
34090LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34091BUILD_CC!$BUILD_CC$ac_delim
34092BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34093CVSBUILD!$CVSBUILD$ac_delim
34094ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34095DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34096DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34097JIT!$JIT$ac_delim
34098TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34099ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34100ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34101TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34102EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34103CXX!$CXX$ac_delim
34104CXXFLAGS!$CXXFLAGS$ac_delim
34105ac_ct_CXX!$ac_ct_CXX$ac_delim
34106LEX!$LEX$ac_delim
34107LEXLIB!$LEXLIB$ac_delim
34108LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34109FLEX!$FLEX$ac_delim
34110YACC!$YACC$ac_delim
34111YFLAGS!$YFLAGS$ac_delim
34112BISON!$BISON$ac_delim
34113NM!$NM$ac_delim
34114ifGNUmake!$ifGNUmake$ac_delim
34115LN_S!$LN_S$ac_delim
34116CMP!$CMP$ac_delim
34117CP!$CP$ac_delim
34118DATE!$DATE$ac_delim
34119_ACEOF
34120
34121 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34122 break
34123 elif $ac_last_try; then
34124 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34125echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34126 { (exit 1); exit 1; }; }
34127 else
34128 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034129 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034130done
34131
34132ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34133if test -n "$ac_eof"; then
34134 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34135 ac_eof=`expr $ac_eof + 1`
34136fi
34137
34138cat >>$CONFIG_STATUS <<_ACEOF
34139cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34140/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34141_ACEOF
34142sed '
34143s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34144s/^/s,@/; s/!/@,|#_!!_#|/
34145:n
34146t n
34147s/'"$ac_delim"'$/,g/; t
34148s/$/\\/; p
34149N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34150' >>$CONFIG_STATUS <conf$$subs.sed
34151rm -f conf$$subs.sed
34152cat >>$CONFIG_STATUS <<_ACEOF
34153CEOF$ac_eof
34154_ACEOF
34155
34156
34157ac_delim='%!_!# '
34158for ac_last_try in false false false false false :; do
34159 cat >conf$$subs.sed <<_ACEOF
34160FIND!$FIND$ac_delim
34161MKDIR!$MKDIR$ac_delim
34162MV!$MV$ac_delim
34163RANLIB!$RANLIB$ac_delim
34164RM!$RM$ac_delim
34165SED!$SED$ac_delim
34166TAR!$TAR$ac_delim
34167BINPWD!$BINPWD$ac_delim
34168GRAPHVIZ!$GRAPHVIZ$ac_delim
34169DOT!$DOT$ac_delim
34170GV!$GV$ac_delim
34171DOTTY!$DOTTY$ac_delim
34172PERL!$PERL$ac_delim
34173HAVE_PERL!$HAVE_PERL$ac_delim
34174INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34175INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34176INSTALL_DATA!$INSTALL_DATA$ac_delim
34177BZIP2!$BZIP2$ac_delim
34178DOXYGEN!$DOXYGEN$ac_delim
34179ETAGS!$ETAGS$ac_delim
34180GROFF!$GROFF$ac_delim
34181GZIP!$GZIP$ac_delim
34182POD2HTML!$POD2HTML$ac_delim
34183POD2MAN!$POD2MAN$ac_delim
34184RUNTEST!$RUNTEST$ac_delim
34185TCLSH!$TCLSH$ac_delim
34186ZIP!$ZIP$ac_delim
34187INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34188INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34189CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34190CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34191LIBADD_DL!$LIBADD_DL$ac_delim
34192ECHO!$ECHO$ac_delim
34193AR!$AR$ac_delim
34194STRIP!$STRIP$ac_delim
34195CXXCPP!$CXXCPP$ac_delim
34196F77!$F77$ac_delim
34197FFLAGS!$FFLAGS$ac_delim
34198ac_ct_F77!$ac_ct_F77$ac_delim
34199LIBTOOL!$LIBTOOL$ac_delim
34200ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34201LLVMGCC!$LLVMGCC$ac_delim
34202LLVMGXX!$LLVMGXX$ac_delim
34203ALLOCA!$ALLOCA$ac_delim
34204MMAP_FILE!$MMAP_FILE$ac_delim
34205LLVMCC1!$LLVMCC1$ac_delim
34206LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34207LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34208LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34209LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34210SHLIBEXT!$SHLIBEXT$ac_delim
34211LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34212LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34213LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34214LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34215LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34216LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34217LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34218LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34219LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34220LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34221LIBOBJS!$LIBOBJS$ac_delim
34222LTLIBOBJS!$LTLIBOBJS$ac_delim
34223_ACEOF
34224
34225 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
34226 break
34227 elif $ac_last_try; then
34228 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34229echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34230 { (exit 1); exit 1; }; }
34231 else
34232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34233 fi
34234done
34235
34236ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34237if test -n "$ac_eof"; then
34238 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34239 ac_eof=`expr $ac_eof + 1`
34240fi
34241
34242cat >>$CONFIG_STATUS <<_ACEOF
34243cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34244/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34245_ACEOF
34246sed '
34247s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34248s/^/s,@/; s/!/@,|#_!!_#|/
34249:n
34250t n
34251s/'"$ac_delim"'$/,g/; t
34252s/$/\\/; p
34253N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34254' >>$CONFIG_STATUS <conf$$subs.sed
34255rm -f conf$$subs.sed
34256cat >>$CONFIG_STATUS <<_ACEOF
34257:end
34258s/|#_!!_#|//g
34259CEOF$ac_eof
34260_ACEOF
34261
34262
34263# VPATH may cause trouble with some makes, so we remove $(srcdir),
34264# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34265# trailing colons and then remove the whole line if VPATH becomes empty
34266# (actually we leave an empty line to preserve line numbers).
34267if test "x$srcdir" = x.; then
34268 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34269s/:*\$(srcdir):*/:/
34270s/:*\${srcdir}:*/:/
34271s/:*@srcdir@:*/:/
34272s/^\([^=]*=[ ]*\):*/\1/
34273s/:*$//
34274s/^[^=]*=[ ]*$//
34275}'
34276fi
34277
34278cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034279fi # test -n "$CONFIG_FILES"
34280
Reid Spencera773bd52006-08-04 18:18:08 +000034281
34282for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34283do
34284 case $ac_tag in
34285 :[FHLC]) ac_mode=$ac_tag; continue;;
34286 esac
34287 case $ac_mode$ac_tag in
34288 :[FHL]*:*);;
34289 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34290echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34291 { (exit 1); exit 1; }; };;
34292 :[FH]-) ac_tag=-:-;;
34293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34294 esac
34295 ac_save_IFS=$IFS
34296 IFS=:
34297 set x $ac_tag
34298 IFS=$ac_save_IFS
34299 shift
34300 ac_file=$1
34301 shift
34302
34303 case $ac_mode in
34304 :L) ac_source=$1;;
34305 :[FH])
34306 ac_file_inputs=
34307 for ac_f
34308 do
34309 case $ac_f in
34310 -) ac_f="$tmp/stdin";;
34311 *) # Look for the file first in the build tree, then in the source tree
34312 # (if the path is not absolute). The absolute path cannot be DOS-style,
34313 # because $ac_f cannot contain `:'.
34314 test -f "$ac_f" ||
34315 case $ac_f in
34316 [\\/$]*) false;;
34317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34318 esac ||
34319 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34320echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34321 { (exit 1); exit 1; }; };;
34322 esac
34323 ac_file_inputs="$ac_file_inputs $ac_f"
34324 done
34325
34326 # Let's still pretend it is `configure' which instantiates (i.e., don't
34327 # use $as_me), people would be surprised to read:
34328 # /* config.h. Generated by config.status. */
34329 configure_input="Generated from "`IFS=:
34330 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34331 if test x"$ac_file" != x-; then
34332 configure_input="$ac_file. $configure_input"
34333 { echo "$as_me:$LINENO: creating $ac_file" >&5
34334echo "$as_me: creating $ac_file" >&6;}
34335 fi
34336
34337 case $ac_tag in
34338 *:-:* | *:-) cat >"$tmp/stdin";;
34339 esac
34340 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034341 esac
34342
Reid Spencera773bd52006-08-04 18:18:08 +000034343 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034344$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034345 X"$ac_file" : 'X\(//\)[^/]' \| \
34346 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034348echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34350 s//\1/
34351 q
34352 }
34353 /^X\(\/\/\)[^/].*/{
34354 s//\1/
34355 q
34356 }
34357 /^X\(\/\/\)$/{
34358 s//\1/
34359 q
34360 }
34361 /^X\(\/\).*/{
34362 s//\1/
34363 q
34364 }
34365 s/.*/./; q'`
34366 { as_dir="$ac_dir"
34367 case $as_dir in #(
34368 -*) as_dir=./$as_dir;;
34369 esac
34370 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034371 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034372 while :; do
34373 case $as_dir in #(
34374 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34375 *) as_qdir=$as_dir;;
34376 esac
34377 as_dirs="'$as_qdir' $as_dirs"
34378 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034380 X"$as_dir" : 'X\(//\)[^/]' \| \
34381 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034383echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34385 s//\1/
34386 q
34387 }
34388 /^X\(\/\/\)[^/].*/{
34389 s//\1/
34390 q
34391 }
34392 /^X\(\/\/\)$/{
34393 s//\1/
34394 q
34395 }
34396 /^X\(\/\).*/{
34397 s//\1/
34398 q
34399 }
34400 s/.*/./; q'`
34401 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034402 done
Reid Spencera773bd52006-08-04 18:18:08 +000034403 test -z "$as_dirs" || eval "mkdir $as_dirs"
34404 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34405echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034406 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034407 ac_builddir=.
34408
Reid Spencera773bd52006-08-04 18:18:08 +000034409case "$ac_dir" in
34410.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34411*)
John Criswell7a73b802003-06-30 21:59:07 +000034412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034413 # A ".." for each directory in $ac_dir_suffix.
34414 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34415 case $ac_top_builddir_sub in
34416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34418 esac ;;
34419esac
34420ac_abs_top_builddir=$ac_pwd
34421ac_abs_builddir=$ac_pwd$ac_dir_suffix
34422# for backward compatibility:
34423ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034424
34425case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034426 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034427 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034428 ac_top_srcdir=$ac_top_builddir_sub
34429 ac_abs_top_srcdir=$ac_pwd ;;
34430 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034431 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034432 ac_top_srcdir=$srcdir
34433 ac_abs_top_srcdir=$srcdir ;;
34434 *) # Relative name.
34435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34436 ac_top_srcdir=$ac_top_build_prefix$srcdir
34437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034438esac
Reid Spencera773bd52006-08-04 18:18:08 +000034439ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034440
John Criswell7a73b802003-06-30 21:59:07 +000034441
Reid Spencera773bd52006-08-04 18:18:08 +000034442 case $ac_mode in
34443 :F)
34444 #
34445 # CONFIG_FILE
34446 #
John Criswell7a73b802003-06-30 21:59:07 +000034447
34448 case $INSTALL in
34449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034451 esac
John Criswell7a73b802003-06-30 21:59:07 +000034452_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034453
34454cat >>$CONFIG_STATUS <<\_ACEOF
34455# If the template does not know about datarootdir, expand it.
34456# FIXME: This hack should be removed a few years after 2.60.
34457ac_datarootdir_hack=; ac_datarootdir_seen=
34458
34459case `sed -n '/datarootdir/ {
34460 p
34461 q
34462}
34463/@datadir@/p
34464/@docdir@/p
34465/@infodir@/p
34466/@localedir@/p
34467/@mandir@/p
34468' $ac_file_inputs` in
34469*datarootdir*) ac_datarootdir_seen=yes;;
34470*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34471 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34472echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34473_ACEOF
34474cat >>$CONFIG_STATUS <<_ACEOF
34475 ac_datarootdir_hack='
34476 s&@datadir@&$datadir&g
34477 s&@docdir@&$docdir&g
34478 s&@infodir@&$infodir&g
34479 s&@localedir@&$localedir&g
34480 s&@mandir@&$mandir&g
34481 s&\\\${datarootdir}&$datarootdir&g' ;;
34482esac
34483_ACEOF
34484
34485# Neutralize VPATH when `$srcdir' = `.'.
34486# Shell code in configure.ac might set extrasub.
34487# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034488cat >>$CONFIG_STATUS <<_ACEOF
34489 sed "$ac_vpsub
34490$extrasub
34491_ACEOF
34492cat >>$CONFIG_STATUS <<\_ACEOF
34493:t
34494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034495s&@configure_input@&$configure_input&;t t
34496s&@top_builddir@&$ac_top_builddir_sub&;t t
34497s&@srcdir@&$ac_srcdir&;t t
34498s&@abs_srcdir@&$ac_abs_srcdir&;t t
34499s&@top_srcdir@&$ac_top_srcdir&;t t
34500s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34501s&@builddir@&$ac_builddir&;t t
34502s&@abs_builddir@&$ac_abs_builddir&;t t
34503s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34504s&@INSTALL@&$ac_INSTALL&;t t
34505$ac_datarootdir_hack
34506" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034507
Reid Spencera773bd52006-08-04 18:18:08 +000034508test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34509 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34510 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34511 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34512which seems to be undefined. Please make sure it is defined." >&5
34513echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34514which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034515
Reid Spencera773bd52006-08-04 18:18:08 +000034516 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034517 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034518 -) cat "$tmp/out"; rm -f "$tmp/out";;
34519 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034520 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034521 ;;
34522 :H)
34523 #
34524 # CONFIG_HEADER
34525 #
John Criswell7a73b802003-06-30 21:59:07 +000034526_ACEOF
34527
Reid Spencera773bd52006-08-04 18:18:08 +000034528# Transform confdefs.h into a sed script `conftest.defines', that
34529# substitutes the proper values into config.h.in to produce config.h.
34530rm -f conftest.defines conftest.tail
34531# First, append a space to every undef/define line, to ease matching.
34532echo 's/$/ /' >conftest.defines
34533# Then, protect against being on the right side of a sed subst, or in
34534# an unquoted here document, in config.status. If some macros were
34535# called several times there might be several #defines for the same
34536# symbol, which is useless. But do not sort them, since the last
34537# AC_DEFINE must be honored.
34538ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34539# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34540# NAME is the cpp macro being defined, VALUE is the value it is being given.
34541# PARAMS is the parameter list in the macro definition--in most cases, it's
34542# just an empty string.
34543ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34544ac_dB='\\)[ (].*,\\1define\\2'
34545ac_dC=' '
34546ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034547
Reid Spencera773bd52006-08-04 18:18:08 +000034548uniq confdefs.h |
34549 sed -n '
34550 t rset
34551 :rset
34552 s/^[ ]*#[ ]*define[ ][ ]*//
34553 t ok
34554 d
34555 :ok
34556 s/[\\&,]/\\&/g
34557 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34558 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34559 ' >>conftest.defines
34560
34561# Remove the space that was appended to ease matching.
34562# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034563# example, in the case of _POSIX_SOURCE, which is predefined and required
34564# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034565# (The regexp can be short, since the line contains either #define or #undef.)
34566echo 's/ $//
34567s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034568
Reid Spencera773bd52006-08-04 18:18:08 +000034569# Break up conftest.defines:
34570ac_max_sed_lines=50
34571
34572# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34573# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34574# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34575# et cetera.
34576ac_in='$ac_file_inputs'
34577ac_out='"$tmp/out1"'
34578ac_nxt='"$tmp/out2"'
34579
34580while :
John Criswell7a73b802003-06-30 21:59:07 +000034581do
Reid Spencera773bd52006-08-04 18:18:08 +000034582 # Write a here document:
34583 cat >>$CONFIG_STATUS <<_ACEOF
34584 # First, check the format of the line:
34585 cat >"\$tmp/defines.sed" <<\\CEOF
34586/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34587/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34588b
34589:def
34590_ACEOF
34591 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034592 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034593 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34594 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34595 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34596 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034597 rm -f conftest.defines
34598 mv conftest.tail conftest.defines
34599done
Reid Spencera773bd52006-08-04 18:18:08 +000034600rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034601
Reid Spencera773bd52006-08-04 18:18:08 +000034602echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034603cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034604 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034605 echo "/* $configure_input */" >"$tmp/config.h"
34606 cat "$ac_result" >>"$tmp/config.h"
34607 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34609echo "$as_me: $ac_file is unchanged" >&6;}
34610 else
John Criswell7a73b802003-06-30 21:59:07 +000034611 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034612 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034613 fi
34614 else
Reid Spencera773bd52006-08-04 18:18:08 +000034615 echo "/* $configure_input */"
34616 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034617 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034618 rm -f "$tmp/out12"
34619 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034620
Reid Spencera773bd52006-08-04 18:18:08 +000034621 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34622echo "$as_me: executing $ac_file commands" >&6;}
34623 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034624 esac
John Criswell7a73b802003-06-30 21:59:07 +000034625
Reid Spencera773bd52006-08-04 18:18:08 +000034626
34627 case $ac_file$ac_mode in
34628 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34629 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34630 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34631 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34632 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34633 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34634 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34635 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34636 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34637 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34638 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34639 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34640 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34641 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34642 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34643 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34644 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34645 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34646 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34647 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34648
34649 esac
34650done # for ac_tag
34651
John Criswell7a73b802003-06-30 21:59:07 +000034652
34653{ (exit 0); exit 0; }
34654_ACEOF
34655chmod +x $CONFIG_STATUS
34656ac_clean_files=$ac_clean_files_save
34657
34658
34659# configure is writing to config.log, and then calls config.status.
34660# config.status does its own redirection, appending to config.log.
34661# Unfortunately, on DOS this fails, as config.log is still kept open
34662# by configure, so config.status won't be able to write to it; its
34663# output is simply discarded. So we exec the FD to /dev/null,
34664# effectively closing config.log, so it can be properly (re)opened and
34665# appended to by config.status. When coming back to configure, we
34666# need to make the FD available again.
34667if test "$no_create" != yes; then
34668 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034669 ac_config_status_args=
34670 test "$silent" = yes &&
34671 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034672 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034674 exec 5>>config.log
34675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34676 # would make configure fail if this is the last instruction.
34677 $ac_cs_success || { (exit 1); exit 1; }
34678fi
34679
John Criswell12399a12003-09-30 15:55:44 +000034680#
34681# CONFIG_SUBDIRS section.
34682#
34683if test "$no_recursion" != yes; then
34684
34685 # Remove --cache-file and --srcdir arguments so they do not pile up.
34686 ac_sub_configure_args=
34687 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034688 eval "set x $ac_configure_args"
34689 shift
34690 for ac_arg
34691 do
John Criswell12399a12003-09-30 15:55:44 +000034692 if test -n "$ac_prev"; then
34693 ac_prev=
34694 continue
34695 fi
34696 case $ac_arg in
34697 -cache-file | --cache-file | --cache-fil | --cache-fi \
34698 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34699 ac_prev=cache_file ;;
34700 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34701 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34702 | --c=*)
34703 ;;
34704 --config-cache | -C)
34705 ;;
34706 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34707 ac_prev=srcdir ;;
34708 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34709 ;;
34710 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34711 ac_prev=prefix ;;
34712 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34713 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034714 *)
34715 case $ac_arg in
34716 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34717 esac
34718 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034719 esac
34720 done
34721
34722 # Always prepend --prefix to ensure using the same prefix
34723 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034724 ac_arg="--prefix=$prefix"
34725 case $ac_arg in
34726 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34727 esac
34728 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034729
34730 ac_popdir=`pwd`
34731 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34732
34733 # Do not complain, so a configure script can configure whichever
34734 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034735 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034736
Reid Spencera773bd52006-08-04 18:18:08 +000034737 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34738 echo "$as_me:$LINENO: $ac_msg" >&5
34739 echo "$ac_msg" >&6
34740 { as_dir="$ac_dir"
34741 case $as_dir in #(
34742 -*) as_dir=./$as_dir;;
34743 esac
34744 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034745 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034746 while :; do
34747 case $as_dir in #(
34748 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34749 *) as_qdir=$as_dir;;
34750 esac
34751 as_dirs="'$as_qdir' $as_dirs"
34752 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034754 X"$as_dir" : 'X\(//\)[^/]' \| \
34755 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034757echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34759 s//\1/
34760 q
34761 }
34762 /^X\(\/\/\)[^/].*/{
34763 s//\1/
34764 q
34765 }
34766 /^X\(\/\/\)$/{
34767 s//\1/
34768 q
34769 }
34770 /^X\(\/\).*/{
34771 s//\1/
34772 q
34773 }
34774 s/.*/./; q'`
34775 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034776 done
Reid Spencera773bd52006-08-04 18:18:08 +000034777 test -z "$as_dirs" || eval "mkdir $as_dirs"
34778 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34779echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034780 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034781 ac_builddir=.
34782
Reid Spencera773bd52006-08-04 18:18:08 +000034783case "$ac_dir" in
34784.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34785*)
John Criswell12399a12003-09-30 15:55:44 +000034786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034787 # A ".." for each directory in $ac_dir_suffix.
34788 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34789 case $ac_top_builddir_sub in
34790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34792 esac ;;
34793esac
34794ac_abs_top_builddir=$ac_pwd
34795ac_abs_builddir=$ac_pwd$ac_dir_suffix
34796# for backward compatibility:
34797ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034798
34799case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034800 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034801 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034802 ac_top_srcdir=$ac_top_builddir_sub
34803 ac_abs_top_srcdir=$ac_pwd ;;
34804 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034805 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034806 ac_top_srcdir=$srcdir
34807 ac_abs_top_srcdir=$srcdir ;;
34808 *) # Relative name.
34809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34810 ac_top_srcdir=$ac_top_build_prefix$srcdir
34811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034812esac
Reid Spencera773bd52006-08-04 18:18:08 +000034813ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034814
34815
Reid Spencera773bd52006-08-04 18:18:08 +000034816 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034817
34818 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034819 if test -f "$ac_srcdir/configure.gnu"; then
34820 ac_sub_configure=$ac_srcdir/configure.gnu
34821 elif test -f "$ac_srcdir/configure"; then
34822 ac_sub_configure=$ac_srcdir/configure
34823 elif test -f "$ac_srcdir/configure.in"; then
34824 # This should be Cygnus configure.
34825 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034826 else
34827 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34828echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34829 ac_sub_configure=
34830 fi
34831
34832 # The recursion is here.
34833 if test -n "$ac_sub_configure"; then
34834 # Make the cache file name correct relative to the subdirectory.
34835 case $cache_file in
34836 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034837 *) # Relative name.
34838 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034839 esac
34840
Reid Spencera773bd52006-08-04 18:18:08 +000034841 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34842echo "$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 +000034843 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034844 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34845 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034846 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034847echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34848 { (exit 1); exit 1; }; }
34849 fi
34850
Reid Spencera773bd52006-08-04 18:18:08 +000034851 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034852 done
34853fi
34854
Brian Gaekef3b24102003-11-16 18:38:14 +000034855
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034856if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000034857 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34858echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000034859 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
34860echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
34861 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34862echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34863 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34864echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34865 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34866echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000034867fi