blob: 77e4cab20ea642704c1b117d27142e4329bb75c2 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner692aa5a2007-05-08 04:32:07 +00003# Generated by GNU Autoconf 2.60 for llvm 2.1cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Reid Spencera773bd52006-08-04 18:18:08 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528else
529 as_executable_p=:
530fi
531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner692aa5a2007-05-08 04:32:07 +0000718PACKAGE_VERSION='2.1cvs'
719PACKAGE_STRING='llvm 2.1cvs'
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
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
899ETAGSFLAGS
900LLVMGCC
901LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000902USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000903HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000904HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000910LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000913LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
925LIBOBJS
926LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000927ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000928 ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934CPPFLAGS
935CPP
936CXX
937CXXFLAGS
938CCC
939YACC
940YFLAGS
941CXXCPP
942F77
943FFLAGS'
944ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000945projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000946projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000947projects/llvm-test
948projects/llvm-reopt
949projects/llvm-gcc
950projects/llvm-java
951projects/llvm-tv
952projects/llvm-poolalloc
953projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000954
955# Initialize some variables set by options.
956ac_init_help=
957ac_init_version=false
958# The variables have the same names as the options, with
959# dashes changed to underlines.
960cache_file=/dev/null
961exec_prefix=NONE
962no_create=
963no_recursion=
964prefix=NONE
965program_prefix=NONE
966program_suffix=NONE
967program_transform_name=s,x,x,
968silent=
969site=
970srcdir=
971verbose=
972x_includes=NONE
973x_libraries=NONE
974
975# Installation directory options.
976# These are left unexpanded so users can "make install exec_prefix=/foo"
977# and all the variables that are supposed to be based on exec_prefix
978# by default will actually change.
979# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000980# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000981bindir='${exec_prefix}/bin'
982sbindir='${exec_prefix}/sbin'
983libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000984datarootdir='${prefix}/share'
985datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000986sysconfdir='${prefix}/etc'
987sharedstatedir='${prefix}/com'
988localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000989includedir='${prefix}/include'
990oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000991docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992infodir='${datarootdir}/info'
993htmldir='${docdir}'
994dvidir='${docdir}'
995pdfdir='${docdir}'
996psdir='${docdir}'
997libdir='${exec_prefix}/lib'
998localedir='${datarootdir}/locale'
999mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001000
1001ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001002ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001003for ac_option
1004do
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001007 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001008 ac_prev=
1009 continue
1010 fi
1011
Reid Spencera773bd52006-08-04 18:18:08 +00001012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
John Criswell7a73b802003-06-30 21:59:07 +00001016
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1018
Reid Spencera773bd52006-08-04 18:18:08 +00001019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1027
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1042
Reid Spencera773bd52006-08-04 18:18:08 +00001043 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001044 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001046 datadir=$ac_optarg ;;
1047
Reid Spencera773bd52006-08-04 18:18:08 +00001048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
John Criswell7a73b802003-06-30 21:59:07 +00001055 -disable-* | --disable-*)
1056 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1059 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001062 eval enable_$ac_feature=no ;;
1063
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1068
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001073
1074 -enable-* | --enable-*)
1075 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001081 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001082
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1091
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1095
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1102
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1107
Reid Spencera773bd52006-08-04 18:18:08 +00001108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1113
John Criswell7a73b802003-06-30 21:59:07 +00001114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1120
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1125
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1130
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1137
Reid Spencera773bd52006-08-04 18:18:08 +00001138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1142
John Criswell7a73b802003-06-30 21:59:07 +00001143 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001144 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001148 localstatedir=$ac_optarg ;;
1149
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1154
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1158
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1162
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1166
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1175
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1180
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1187
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1194
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 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1211
Reid Spencera773bd52006-08-04 18:18:08 +00001212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1216
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1221
John Criswell7a73b802003-06-30 21:59:07 +00001222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1225
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1231
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1242
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1247
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1252
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1259
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1264
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1267
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1270
1271 -with-* | --with-*)
1272 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid package name: $ac_package" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001278 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001279
1280 -without-* | --without-*)
1281 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001287 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001288
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1292
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1299
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1306
1307 -*) { echo "$as_me: error: unrecognized option: $ac_option
1308Try \`$0 --help' for more information." >&2
1309 { (exit 1); exit 1; }; }
1310 ;;
1311
1312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1316 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1317 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001318 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001319 export $ac_envvar ;;
1320
1321 *)
1322 # FIXME: should be removed in autoconf 3.0.
1323 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 ;;
1328
1329 esac
1330done
1331
1332if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 { echo "$as_me: error: missing argument to $ac_option" >&2
1335 { (exit 1); exit 1; }; }
1336fi
1337
Reid Spencera773bd52006-08-04 18:18:08 +00001338# Be sure to have absolute directory names.
1339for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001343do
Reid Spencera773bd52006-08-04 18:18:08 +00001344 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001345 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001348 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001349 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001351done
1352
1353# There might be people who depend on the old broken behavior: `$host'
1354# used to hold the argument of --host etc.
1355# FIXME: To remove some day.
1356build=$build_alias
1357host=$host_alias
1358target=$target_alias
1359
1360# FIXME: To remove some day.
1361if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365 If a cross compiler is detected then cross compile mode will be used." >&2
1366 elif test "x$build_alias" != "x$host_alias"; then
1367 cross_compiling=yes
1368 fi
1369fi
1370
1371ac_tool_prefix=
1372test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373
1374test "$silent" = yes && exec 6>/dev/null
1375
1376
Reid Spencera773bd52006-08-04 18:18:08 +00001377ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378ac_ls_di=`ls -di .` &&
1379ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380 { echo "$as_me: error: Working directory cannot be determined" >&2
1381 { (exit 1); exit 1; }; }
1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 { echo "$as_me: error: pwd does not report name of working directory" >&2
1384 { (exit 1); exit 1; }; }
1385
1386
John Criswell7a73b802003-06-30 21:59:07 +00001387# Find the source files, if location was not specified.
1388if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001392$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001393 X"$0" : 'X\(//\)[^/]' \| \
1394 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001396echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\).*/{
1410 s//\1/
1411 q
1412 }
1413 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001414 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001415 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001416 srcdir=..
1417 fi
1418else
1419 ac_srcdir_defaulted=no
1420fi
Reid Spencera773bd52006-08-04 18:18:08 +00001421if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001424 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001425fi
Reid Spencera773bd52006-08-04 18:18:08 +00001426ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001429 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001430 pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
John Criswell7a73b802003-06-30 21:59:07 +00001447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
Tanya Lattner692aa5a2007-05-08 04:32:07 +00001455\`configure' configures llvm 2.1cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE. See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474
John Criswell7a73b802003-06-30 21:59:07 +00001475Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001477 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001479 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001508_ACEOF
1509
1510 cat <<\_ACEOF
1511
1512System types:
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515 --target=TARGET configure for building compilers for TARGET [HOST]
1516_ACEOF
1517fi
1518
1519if test -n "$ac_init_help"; then
1520 case $ac_init_help in
Tanya Lattner692aa5a2007-05-08 04:32:07 +00001521 short | recursive ) echo "Configuration of llvm 2.1cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001522 esac
1523 cat <<\_ACEOF
1524
1525Optional Features:
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001528 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001529 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001530 --enable-expensive-checks
1531
Reid Spencer8b2e1412006-11-17 03:32:33 +00001532 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001533 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001534 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001535 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001536 --enable-pic Build LLVM with Position Independent Code (default
1537 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001538 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001539 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001540 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1541 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001542 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001543 --enable-shared[=PKGS] build shared libraries
1544 [default=enable_shared_default]
1545 --enable-static[=PKGS] build static libraries
1546 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001547 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001548 optimize for fast installation
1549 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001550 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001551
1552Optional Packages:
1553 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1554 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001555 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1556 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001557 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001558 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560 --with-pic try to use only PIC/non-PIC objects [default=use
1561 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001562 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001563 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001564
1565Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001566 CC C compiler command
1567 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001572 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001573 CXX C++ compiler command
1574 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001575 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1576 the first program found out of: `bison -y', `byacc', `yacc'.
1577 YFLAGS The list of arguments that will be passed by default to $YACC.
1578 This script will default YFLAGS to the empty string to avoid a
1579 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001580 CXXCPP C++ preprocessor
1581 F77 Fortran 77 compiler command
1582 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001583
1584Use these variables to override the choices made by `configure' or to help
1585it to find libraries and programs with nonstandard names/locations.
1586
1587Report bugs to <llvmbugs@cs.uiuc.edu>.
1588_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001589ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001590fi
1591
1592if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001595 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001596 ac_builddir=.
1597
Reid Spencera773bd52006-08-04 18:18:08 +00001598case "$ac_dir" in
1599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600*)
John Criswell7a73b802003-06-30 21:59:07 +00001601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001602 # A ".." for each directory in $ac_dir_suffix.
1603 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1604 case $ac_top_builddir_sub in
1605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 esac ;;
1608esac
1609ac_abs_top_builddir=$ac_pwd
1610ac_abs_builddir=$ac_pwd$ac_dir_suffix
1611# for backward compatibility:
1612ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001613
1614case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001615 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001616 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001617 ac_top_srcdir=$ac_top_builddir_sub
1618 ac_abs_top_srcdir=$ac_pwd ;;
1619 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001620 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001621 ac_top_srcdir=$srcdir
1622 ac_abs_top_srcdir=$srcdir ;;
1623 *) # Relative name.
1624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1625 ac_top_srcdir=$ac_top_build_prefix$srcdir
1626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001627esac
Reid Spencera773bd52006-08-04 18:18:08 +00001628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629
Reid Spencera773bd52006-08-04 18:18:08 +00001630 cd "$ac_dir" || { ac_status=$?; continue; }
1631 # Check for guested configure.
1632 if test -f "$ac_srcdir/configure.gnu"; then
1633 echo &&
1634 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1635 elif test -f "$ac_srcdir/configure"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001638 else
1639 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001640 fi || ac_status=$?
1641 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001642 done
1643fi
1644
Reid Spencera773bd52006-08-04 18:18:08 +00001645test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001646if $ac_init_version; then
1647 cat <<\_ACEOF
Tanya Lattner692aa5a2007-05-08 04:32:07 +00001648llvm configure 2.1cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001649generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001650
Reid Spencera773bd52006-08-04 18:18:08 +00001651Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16522002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001655
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001656Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001657_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001658 exit
John Criswell7a73b802003-06-30 21:59:07 +00001659fi
Reid Spencera773bd52006-08-04 18:18:08 +00001660cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001661This file contains any messages produced by compilers while
1662running configure, to aid debugging if configure makes a mistake.
1663
Tanya Lattner692aa5a2007-05-08 04:32:07 +00001664It was created by llvm $as_me 2.1cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001665generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001666
1667 $ $0 $@
1668
1669_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001670exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001671{
1672cat <<_ASUNAME
1673## --------- ##
1674## Platform. ##
1675## --------- ##
1676
1677hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1678uname -m = `(uname -m) 2>/dev/null || echo unknown`
1679uname -r = `(uname -r) 2>/dev/null || echo unknown`
1680uname -s = `(uname -s) 2>/dev/null || echo unknown`
1681uname -v = `(uname -v) 2>/dev/null || echo unknown`
1682
1683/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1684/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1685
1686/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1687/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1688/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001689/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001690/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1691/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1692/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1693
1694_ASUNAME
1695
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 echo "PATH: $as_dir"
1702done
Reid Spencera773bd52006-08-04 18:18:08 +00001703IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001704
1705} >&5
1706
1707cat >&5 <<_ACEOF
1708
1709
1710## ----------- ##
1711## Core tests. ##
1712## ----------- ##
1713
1714_ACEOF
1715
1716
1717# Keep a trace of the command line.
1718# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001719# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001720# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001721# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001722ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001723ac_configure_args0=
1724ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001725ac_must_keep_next=false
1726for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001727do
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 for ac_arg
1729 do
1730 case $ac_arg in
1731 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1733 | -silent | --silent | --silen | --sile | --sil)
1734 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001735 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1737 esac
1738 case $ac_pass in
1739 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1740 2)
1741 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1742 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001743 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001744 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001745 case $ac_arg in
1746 *=* | --config-cache | -C | -disable-* | --disable-* \
1747 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1748 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1749 | -with-* | --with-* | -without-* | --without-* | --x)
1750 case "$ac_configure_args0 " in
1751 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1752 esac
1753 ;;
1754 -* ) ac_must_keep_next=true ;;
1755 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001756 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001757 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ;;
1759 esac
1760 done
John Criswell7a73b802003-06-30 21:59:07 +00001761done
John Criswell0c38eaf2003-09-10 15:17:25 +00001762$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1763$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 +00001764
1765# When interrupted or exit'd, cleanup temporary files, and complete
1766# config.log. We remove comments because anyway the quotes in there
1767# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001768# WARNING: Use '\'' to represent an apostrophe within the trap.
1769# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001770trap 'exit_status=$?
1771 # Save into config.log some information that might help in debugging.
1772 {
1773 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001774
John Criswell7a73b802003-06-30 21:59:07 +00001775 cat <<\_ASBOX
1776## ---------------- ##
1777## Cache variables. ##
1778## ---------------- ##
1779_ASBOX
1780 echo
1781 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001782(
1783 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in #(
1786 *${as_nl}*)
1787 case $ac_var in #(
1788 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1789echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1790 esac
1791 case $ac_var in #(
1792 _ | IFS | as_nl) ;; #(
1793 *) $as_unset $ac_var ;;
1794 esac ;;
1795 esac
1796 done
John Criswell7a73b802003-06-30 21:59:07 +00001797 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001798 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1799 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001800 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001801 "s/'\''/'\''\\\\'\'''\''/g;
1802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1803 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001804 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001806 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001807 esac |
1808 sort
1809)
John Criswell7a73b802003-06-30 21:59:07 +00001810 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001811
1812 cat <<\_ASBOX
1813## ----------------- ##
1814## Output variables. ##
1815## ----------------- ##
1816_ASBOX
1817 echo
1818 for ac_var in $ac_subst_vars
1819 do
Reid Spencera773bd52006-08-04 18:18:08 +00001820 eval ac_val=\$$ac_var
1821 case $ac_val in
1822 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 esac
1824 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001825 done | sort
1826 echo
1827
1828 if test -n "$ac_subst_files"; then
1829 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001830## ------------------- ##
1831## File substitutions. ##
1832## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001833_ASBOX
1834 echo
1835 for ac_var in $ac_subst_files
1836 do
Reid Spencera773bd52006-08-04 18:18:08 +00001837 eval ac_val=\$$ac_var
1838 case $ac_val in
1839 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 esac
1841 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001842 done | sort
1843 echo
1844 fi
1845
John Criswell7a73b802003-06-30 21:59:07 +00001846 if test -s confdefs.h; then
1847 cat <<\_ASBOX
1848## ----------- ##
1849## confdefs.h. ##
1850## ----------- ##
1851_ASBOX
1852 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001853 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001854 echo
1855 fi
1856 test "$ac_signal" != 0 &&
1857 echo "$as_me: caught signal $ac_signal"
1858 echo "$as_me: exit $exit_status"
1859 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001860 rm -f core *.core core.conftest.* &&
1861 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001862 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001863' 0
John Criswell7a73b802003-06-30 21:59:07 +00001864for ac_signal in 1 2 13 15; do
1865 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1866done
1867ac_signal=0
1868
1869# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001870rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001871
1872# Predefined preprocessor variables.
1873
1874cat >>confdefs.h <<_ACEOF
1875#define PACKAGE_NAME "$PACKAGE_NAME"
1876_ACEOF
1877
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1881_ACEOF
1882
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_VERSION "$PACKAGE_VERSION"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_STRING "$PACKAGE_STRING"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1896_ACEOF
1897
1898
1899# Let the site file select an alternate cache file if it wants to.
1900# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001901if test -n "$CONFIG_SITE"; then
1902 set x "$CONFIG_SITE"
1903elif test "x$prefix" != xNONE; then
1904 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1905else
1906 set x "$ac_default_prefix/share/config.site" \
1907 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001908fi
Reid Spencera773bd52006-08-04 18:18:08 +00001909shift
1910for ac_site_file
1911do
John Criswell7a73b802003-06-30 21:59:07 +00001912 if test -r "$ac_site_file"; then
1913 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1914echo "$as_me: loading site script $ac_site_file" >&6;}
1915 sed 's/^/| /' "$ac_site_file" >&5
1916 . "$ac_site_file"
1917 fi
1918done
1919
1920if test -r "$cache_file"; then
1921 # Some versions of bash will fail to source /dev/null (special
1922 # files actually), so we avoid doing that.
1923 if test -f "$cache_file"; then
1924 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1925echo "$as_me: loading cache $cache_file" >&6;}
1926 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1928 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001929 esac
1930 fi
1931else
1932 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1933echo "$as_me: creating cache $cache_file" >&6;}
1934 >$cache_file
1935fi
1936
1937# Check that the precious variables saved in the cache have kept the same
1938# value.
1939ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001940for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1942 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1944 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001945 case $ac_old_set,$ac_new_set in
1946 set,)
1947 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1948echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1950 ,set)
1951 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1952echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1954 ,);;
1955 *)
1956 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001957 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001958echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001959 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001960echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001961 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001962echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001963 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001964 fi;;
1965 esac
1966 # Pass precious variables to config.status.
1967 if test "$ac_new_set" = set; then
1968 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001969 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001970 *) ac_arg=$ac_var=$ac_new_val ;;
1971 esac
1972 case " $ac_configure_args " in
1973 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1974 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1975 esac
1976 fi
1977done
1978if $ac_cache_corrupted; then
1979 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1980echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1981 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1982echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1983 { (exit 1); exit 1; }; }
1984fi
1985
Reid Spencera773bd52006-08-04 18:18:08 +00001986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
John Criswell7a73b802003-06-30 21:59:07 +00002010ac_ext=c
2011ac_cpp='$CPP $CPPFLAGS'
2012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015
2016
2017
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002018LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002019
2020
2021
2022
2023
2024
2025
John Criswell7a73b802003-06-30 21:59:07 +00002026ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002027for ac_dir in autoconf "$srcdir"/autoconf; do
2028 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002029 ac_aux_dir=$ac_dir
2030 ac_install_sh="$ac_aux_dir/install-sh -c"
2031 break
Reid Spencera773bd52006-08-04 18:18:08 +00002032 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/install.sh -c"
2035 break
Reid Spencera773bd52006-08-04 18:18:08 +00002036 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002037 ac_aux_dir=$ac_dir
2038 ac_install_sh="$ac_aux_dir/shtool install -c"
2039 break
2040 fi
2041done
2042if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002043 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2044echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002045 { (exit 1); exit 1; }; }
2046fi
Reid Spencera773bd52006-08-04 18:18:08 +00002047
2048# These three variables are undocumented and unsupported,
2049# and are intended to be withdrawn in a future Autoconf release.
2050# They can cause serious problems if a builder's source tree is in a directory
2051# whose full name contains unusual characters.
2052ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2053ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2054ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2055
John Criswell7a73b802003-06-30 21:59:07 +00002056
John Criswell392aaa32003-07-22 19:18:09 +00002057
Reid Spencer2706f8c2004-09-19 23:53:36 +00002058if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002059 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2060 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002061echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2062 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 fi
John Criswell93e1c722003-09-15 17:04:06 +00002064fi
2065
John Criswell33a911a2003-11-25 20:36:46 +00002066for i in `ls ${srcdir}/projects`
2067do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002068 if test -d ${srcdir}/projects/${i} ; then
2069 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002070 CVS) ;;
2071 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002072 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002073 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002074 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002075 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002076 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002077 llvm-test) subdirs="$subdirs projects/llvm-test"
2078 ;;
2079 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002080;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002081 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002083 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002084 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002090 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002091 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002092 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2093echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002094 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095 esac
John Criswell33a911a2003-11-25 20:36:46 +00002096 fi
2097done
John Criswell559a6c12003-09-30 16:31:48 +00002098
John Criswell7a73b802003-06-30 21:59:07 +00002099
2100# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002101$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2102 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2103echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002104 { (exit 1); exit 1; }; }
2105
Reid Spencera773bd52006-08-04 18:18:08 +00002106{ echo "$as_me:$LINENO: checking build system type" >&5
2107echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002108if test "${ac_cv_build+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110else
Reid Spencera773bd52006-08-04 18:18:08 +00002111 ac_build_alias=$build_alias
2112test "x$ac_build_alias" = x &&
2113 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2114test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002115 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2116echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2117 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002118ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2120echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002121 { (exit 1); exit 1; }; }
2122
2123fi
Reid Spencera773bd52006-08-04 18:18:08 +00002124{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2125echo "${ECHO_T}$ac_cv_build" >&6; }
2126case $ac_cv_build in
2127*-*-*) ;;
2128*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2129echo "$as_me: error: invalid value of canonical build" >&2;}
2130 { (exit 1); exit 1; }; };;
2131esac
John Criswell7a73b802003-06-30 21:59:07 +00002132build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002133ac_save_IFS=$IFS; IFS='-'
2134set x $ac_cv_build
2135shift
2136build_cpu=$1
2137build_vendor=$2
2138shift; shift
2139# Remember, the first character of IFS is used to create $*,
2140# except with old shells:
2141build_os=$*
2142IFS=$ac_save_IFS
2143case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002144
2145
Reid Spencera773bd52006-08-04 18:18:08 +00002146{ echo "$as_me:$LINENO: checking host system type" >&5
2147echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002148if test "${ac_cv_host+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
Reid Spencera773bd52006-08-04 18:18:08 +00002151 if test "x$host_alias" = x; then
2152 ac_cv_host=$ac_cv_build
2153else
2154 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2155 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2156echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002157 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002158fi
John Criswell7a73b802003-06-30 21:59:07 +00002159
2160fi
Reid Spencera773bd52006-08-04 18:18:08 +00002161{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2162echo "${ECHO_T}$ac_cv_host" >&6; }
2163case $ac_cv_host in
2164*-*-*) ;;
2165*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2166echo "$as_me: error: invalid value of canonical host" >&2;}
2167 { (exit 1); exit 1; }; };;
2168esac
John Criswell7a73b802003-06-30 21:59:07 +00002169host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002170ac_save_IFS=$IFS; IFS='-'
2171set x $ac_cv_host
2172shift
2173host_cpu=$1
2174host_vendor=$2
2175shift; shift
2176# Remember, the first character of IFS is used to create $*,
2177# except with old shells:
2178host_os=$*
2179IFS=$ac_save_IFS
2180case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002181
2182
Reid Spencera773bd52006-08-04 18:18:08 +00002183{ echo "$as_me:$LINENO: checking target system type" >&5
2184echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002185if test "${ac_cv_target+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
Reid Spencera773bd52006-08-04 18:18:08 +00002188 if test "x$target_alias" = x; then
2189 ac_cv_target=$ac_cv_host
2190else
2191 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2192 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2193echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002194 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002195fi
John Criswell7a73b802003-06-30 21:59:07 +00002196
2197fi
Reid Spencera773bd52006-08-04 18:18:08 +00002198{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2199echo "${ECHO_T}$ac_cv_target" >&6; }
2200case $ac_cv_target in
2201*-*-*) ;;
2202*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2203echo "$as_me: error: invalid value of canonical target" >&2;}
2204 { (exit 1); exit 1; }; };;
2205esac
John Criswell7a73b802003-06-30 21:59:07 +00002206target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002207ac_save_IFS=$IFS; IFS='-'
2208set x $ac_cv_target
2209shift
2210target_cpu=$1
2211target_vendor=$2
2212shift; shift
2213# Remember, the first character of IFS is used to create $*,
2214# except with old shells:
2215target_os=$*
2216IFS=$ac_save_IFS
2217case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002218
2219
2220# The aliases save the names the user supplied, while $host etc.
2221# will get canonicalized.
2222test -n "$target_alias" &&
2223 test "$program_prefix$program_suffix$program_transform_name" = \
2224 NONENONEs,x,x, &&
2225 program_prefix=${target_alias}-
2226
Reid Spencera773bd52006-08-04 18:18:08 +00002227{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2228echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002229if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002232 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002233 *-*-aix*)
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="AIX"
2237 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002238 *-*-irix*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="IRIX"
2242 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 *-*-cygwin*)
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"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Cygwin"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,-all_load"
2250 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="Darwin"
2252 llvm_cv_platform_type="Unix" ;;
2253 *-*-freebsd*)
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="FreeBSD"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002258 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002261 llvm_cv_os_type="OpenBSD"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002263 *-*-netbsd*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="NetBSD"
2267 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002268 *-*-hpux*)
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"
Duraid Madina775afa52005-05-16 16:33:34 +00002271 llvm_cv_os_type="HP-UX"
2272 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="Interix"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="Linux"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,-z,allextract"
2285 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="SunOS"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="Win32"
2292 llvm_cv_platform_type="Win32" ;;
2293 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="MingW"
2297 llvm_cv_platform_type="Win32" ;;
2298 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option=""
2300 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 llvm_cv_os_type="Unknown"
2302 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002303esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002304fi
Reid Spencera773bd52006-08-04 18:18:08 +00002305{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2306echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002307
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308if test "$llvm_cv_os_type" = "Unknown" ; then
2309 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2310echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002311 { (exit 1); exit 1; }; }
2312fi
2313
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002315
2316
Reid Spencera773bd52006-08-04 18:18:08 +00002317LINKALL=$llvm_cv_link_all_option
2318
2319NOLINKALL=$llvm_cv_no_link_all_option
2320
2321
Reid Spencer7b3e8512004-12-24 06:29:05 +00002322case $llvm_cv_platform_type in
2323 Unix)
2324
2325cat >>confdefs.h <<\_ACEOF
2326#define LLVM_ON_UNIX 1
2327_ACEOF
2328
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002329 LLVM_ON_UNIX=1
2330
2331 LLVM_ON_WIN32=0
2332
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333 ;;
2334 Win32)
2335
2336cat >>confdefs.h <<\_ACEOF
2337#define LLVM_ON_WIN32 1
2338_ACEOF
2339
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002340 LLVM_ON_UNIX=0
2341
2342 LLVM_ON_WIN32=1
2343
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344 ;;
2345esac
2346
Reid Spencera773bd52006-08-04 18:18:08 +00002347{ echo "$as_me:$LINENO: checking target architecture" >&5
2348echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349if test "${llvm_cv_target_arch+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002353 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002354 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002355 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2356 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002357 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002358 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002359 arm-*) llvm_cv_target_arch="ARM" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002360 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002361esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362fi
Reid Spencera773bd52006-08-04 18:18:08 +00002363{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2364echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002365
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366if test "$llvm_cv_target_arch" = "Unknown" ; then
2367 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2368echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2369fi
John Criswell76595452003-07-01 22:07:39 +00002370
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002372
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002373
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374ac_ext=c
2375ac_cpp='$CPP $CPPFLAGS'
2376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002379if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2381set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386else
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2389else
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002396 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 +00002397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2400 fi
2401done
2402done
Reid Spencera773bd52006-08-04 18:18:08 +00002403IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404
2405fi
2406fi
2407CC=$ac_cv_prog_CC
2408if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002409 { echo "$as_me:$LINENO: result: $CC" >&5
2410echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411else
Reid Spencera773bd52006-08-04 18:18:08 +00002412 { echo "$as_me:$LINENO: result: no" >&5
2413echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414fi
2415
Reid Spencera773bd52006-08-04 18:18:08 +00002416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417fi
2418if test -z "$ac_cv_prog_CC"; then
2419 ac_ct_CC=$CC
2420 # Extract the first word of "gcc", so it can be a program name with args.
2421set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427 if test -n "$ac_ct_CC"; then
2428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429else
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002436 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 +00002437 ac_cv_prog_ac_ct_CC="gcc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441done
2442done
Reid Spencera773bd52006-08-04 18:18:08 +00002443IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444
2445fi
2446fi
2447ac_ct_CC=$ac_cv_prog_ac_ct_CC
2448if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2450echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451else
Reid Spencera773bd52006-08-04 18:18:08 +00002452 { echo "$as_me:$LINENO: result: no" >&5
2453echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454fi
2455
Reid Spencera773bd52006-08-04 18:18:08 +00002456 if test "x$ac_ct_CC" = x; then
2457 CC=""
2458 else
2459 case $cross_compiling:$ac_tool_warned in
2460yes:)
2461{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462whose name does not start with the host triplet. If you think this
2463configuration is useful to you, please write to autoconf@gnu.org." >&5
2464echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465whose name does not start with the host triplet. If you think this
2466configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467ac_tool_warned=yes ;;
2468esac
2469 CC=$ac_ct_CC
2470 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471else
2472 CC="$ac_cv_prog_CC"
2473fi
2474
2475if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002476 if test -n "$ac_tool_prefix"; then
2477 # 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 +00002478set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002493 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 +00002494 ac_cv_prog_CC="${ac_tool_prefix}cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
Reid Spencera773bd52006-08-04 18:18:08 +00002500IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002506 { echo "$as_me:$LINENO: result: $CC" >&5
2507echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508else
Reid Spencera773bd52006-08-04 18:18:08 +00002509 { echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511fi
2512
Reid Spencera773bd52006-08-04 18:18:08 +00002513
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002515fi
2516if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526else
2527 ac_prog_rejected=no
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002534 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 +00002535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2537 continue
2538 fi
2539 ac_cv_prog_CC="cc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543done
2544done
Reid Spencera773bd52006-08-04 18:18:08 +00002545IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546
2547if test $ac_prog_rejected = yes; then
2548 # We found a bogon in the path, so make sure we never use it.
2549 set dummy $ac_cv_prog_CC
2550 shift
2551 if test $# != 0; then
2552 # We chose a different compiler from the bogus one.
2553 # However, it has the same basename, so the bogon will be chosen
2554 # first if we set CC to just the basename; use the full file name.
2555 shift
2556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2557 fi
2558fi
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002563 { echo "$as_me:$LINENO: result: $CC" >&5
2564echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565else
Reid Spencera773bd52006-08-04 18:18:08 +00002566 { echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568fi
2569
Reid Spencera773bd52006-08-04 18:18:08 +00002570
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002574 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002575 do
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002592 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 +00002593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597done
2598done
Reid Spencera773bd52006-08-04 18:18:08 +00002599IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002600
2601fi
2602fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002605 { echo "$as_me:$LINENO: result: $CC" >&5
2606echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002607else
Reid Spencera773bd52006-08-04 18:18:08 +00002608 { echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002610fi
2611
Reid Spencera773bd52006-08-04 18:18:08 +00002612
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002614 done
2615fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616if test -z "$CC"; then
2617 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002618 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002619do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002636 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 +00002637 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641done
2642done
Reid Spencera773bd52006-08-04 18:18:08 +00002643IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002644
2645fi
2646fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002651else
Reid Spencera773bd52006-08-04 18:18:08 +00002652 { echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002654fi
2655
Reid Spencera773bd52006-08-04 18:18:08 +00002656
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002658done
John Criswell7a73b802003-06-30 21:59:07 +00002659
Reid Spencera773bd52006-08-04 18:18:08 +00002660 if test "x$ac_ct_CC" = x; then
2661 CC=""
2662 else
2663 case $cross_compiling:$ac_tool_warned in
2664yes:)
2665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666whose name does not start with the host triplet. If you think this
2667configuration is useful to you, please write to autoconf@gnu.org." >&5
2668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669whose name does not start with the host triplet. If you think this
2670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671ac_tool_warned=yes ;;
2672esac
2673 CC=$ac_ct_CC
2674 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675fi
2676
John Criswell7a73b802003-06-30 21:59:07 +00002677fi
2678
2679
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2681See \`config.log' for more details." >&5
2682echo "$as_me: error: no acceptable C compiler found in \$PATH
2683See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
2685
John Criswell7a73b802003-06-30 21:59:07 +00002686# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002687echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002688ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002689{ (ac_try="$ac_compiler --version >&5"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002699{ (ac_try="$ac_compiler -v >&5"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002709{ (ac_try="$ac_compiler -V >&5"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }
2719
2720cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002721/* confdefs.h. */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002726
John Criswell7a73b802003-06-30 21:59:07 +00002727int
2728main ()
2729{
2730
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002736ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002737# Try to create an executable without -o first, disregard a.out.
2738# It will help us diagnose broken compilers, and finding out an intuition
2739# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002740{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2741echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002742ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002743#
2744# List of possible output files, starting from the most likely.
2745# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2746# only as a last resort. b.out is created by i960 compilers.
2747ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2748#
2749# The IRIX 6 linker writes into existing files which may not be
2750# executable, retaining their permissions. Remove them first so a
2751# subsequent execution test works.
2752ac_rmfiles=
2753for ac_file in $ac_files
2754do
2755 case $ac_file in
2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2757 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2758 esac
2759done
2760rm -f $ac_rmfiles
2761
2762if { (ac_try="$ac_link_default"
2763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002772 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2773# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2774# in a Makefile. We should not override ac_cv_exeext if it was cached,
2775# so that the user can short-circuit this test for compilers unknown to
2776# Autoconf.
2777for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002778do
2779 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002780 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002782 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002783 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002784 # We found the default executable, but exeext='' is most
2785 # certainly right.
2786 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002787 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002788 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2789 then :; else
2790 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791 fi
2792 # We set ac_cv_exeext here because the later test for it is not
2793 # safe: cross compilers may not add the suffix if given an `-o'
2794 # argument, so we may need to know it at that point already.
2795 # Even if this section looks crufty: it has the advantage of
2796 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002798 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002800 esac
2801done
Reid Spencera773bd52006-08-04 18:18:08 +00002802test "$ac_cv_exeext" = no && ac_cv_exeext=
2803
John Criswell7a73b802003-06-30 21:59:07 +00002804else
2805 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002806sed 's/^/| /' conftest.$ac_ext >&5
2807
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002808{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002809See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002810echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002811See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002812 { (exit 77); exit 77; }; }
2813fi
2814
2815ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002816{ echo "$as_me:$LINENO: result: $ac_file" >&5
2817echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002818
Reid Spencera773bd52006-08-04 18:18:08 +00002819# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002820# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002821{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2822echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002823# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2824# If not cross compiling, check that we can run a simple program.
2825if test "$cross_compiling" != yes; then
2826 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002827 { (case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830esac
2831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 cross_compiling=no
2837 else
2838 if test "$cross_compiling" = maybe; then
2839 cross_compiling=yes
2840 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002841 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002842If you meant to cross compile, use \`--host'.
2843See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002844echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002845If you meant to cross compile, use \`--host'.
2846See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002847 { (exit 1); exit 1; }; }
2848 fi
2849 fi
2850fi
Reid Spencera773bd52006-08-04 18:18:08 +00002851{ echo "$as_me:$LINENO: result: yes" >&5
2852echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002853
John Criswell0c38eaf2003-09-10 15:17:25 +00002854rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002855ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002856# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002857# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002858{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2859echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2860{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2861echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002862
Reid Spencera773bd52006-08-04 18:18:08 +00002863{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2864echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2865if { (ac_try="$ac_link"
2866case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869esac
2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; then
2875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2877# work properly (i.e., refer to `conftest.exe'), while it won't with
2878# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002879for ac_file in conftest.exe conftest conftest.*; do
2880 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002881 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002884 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002885 * ) break;;
2886 esac
2887done
2888else
John Criswell0c38eaf2003-09-10 15:17:25 +00002889 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2892See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002893 { (exit 1); exit 1; }; }
2894fi
2895
2896rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002897{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2898echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002899
2900rm -f conftest.$ac_ext
2901EXEEXT=$ac_cv_exeext
2902ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002903{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2904echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002905if test "${ac_cv_objext+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002914
John Criswell7a73b802003-06-30 21:59:07 +00002915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002924if { (ac_try="$ac_compile"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002936 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939 break;;
2940 esac
2941done
2942else
2943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot compute suffix of object files: cannot compile
2949See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002950 { (exit 1); exit 1; }; }
2951fi
2952
2953rm -f conftest.$ac_cv_objext conftest.$ac_ext
2954fi
Reid Spencera773bd52006-08-04 18:18:08 +00002955{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2956echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002957OBJEXT=$ac_cv_objext
2958ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002959{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2960echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002961if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963else
2964 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002970
John Criswell7a73b802003-06-30 21:59:07 +00002971int
2972main ()
2973{
2974#ifndef __GNUC__
2975 choke me
2976#endif
2977
2978 ;
2979 return 0;
2980}
2981_ACEOF
2982rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002983if { (ac_try="$ac_compile"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002990 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997 { (case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; } &&
3006 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003007 { (case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 ac_compiler_gnu=yes
3017else
3018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003019sed 's/^/| /' conftest.$ac_ext >&5
3020
Reid Spencera773bd52006-08-04 18:18:08 +00003021 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003022fi
Reid Spencera773bd52006-08-04 18:18:08 +00003023
3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003025ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003026
3027fi
Reid Spencera773bd52006-08-04 18:18:08 +00003028{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003030GCC=`test $ac_compiler_gnu = yes && echo yes`
3031ac_test_CFLAGS=${CFLAGS+set}
3032ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003033{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003035if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037else
Reid Spencera773bd52006-08-04 18:18:08 +00003038 ac_save_c_werror_flag=$ac_c_werror_flag
3039 ac_c_werror_flag=yes
3040 ac_cv_prog_cc_g=no
3041 CFLAGS="-g"
3042 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003043/* confdefs.h. */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003048
John Criswell7a73b802003-06-30 21:59:07 +00003049int
3050main ()
3051{
3052
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003058if { (ac_try="$ac_compile"
3059case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003065 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003091 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003092else
3093 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003094sed 's/^/| /' conftest.$ac_ext >&5
3095
Reid Spencera773bd52006-08-04 18:18:08 +00003096 CFLAGS=""
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103
3104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 :
3147else
3148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3152 CFLAGS="-g"
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 ac_cv_prog_cc_g=yes
3203else
3204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207
John Criswell7a73b802003-06-30 21:59:07 +00003208fi
Reid Spencera773bd52006-08-04 18:18:08 +00003209
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003211fi
Reid Spencera773bd52006-08-04 18:18:08 +00003212
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214fi
3215
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3218fi
3219{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221if test "$ac_test_CFLAGS" = set; then
3222 CFLAGS=$ac_save_CFLAGS
3223elif test $ac_cv_prog_cc_g = yes; then
3224 if test "$GCC" = yes; then
3225 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003226 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003228 fi
3229else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003230 if test "$GCC" = yes; then
3231 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003232 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003234 fi
3235fi
Reid Spencera773bd52006-08-04 18:18:08 +00003236{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
Reid Spencera773bd52006-08-04 18:18:08 +00003241 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242ac_save_CC=$CC
3243cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
3249#include <stdarg.h>
3250#include <stdio.h>
3251#include <sys/types.h>
3252#include <sys/stat.h>
3253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3254struct buf { int x; };
3255FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256static char *e (p, i)
3257 char **p;
3258 int i;
3259{
3260 return p[i];
3261}
3262static char *f (char * (*g) (char **, int), char **p, ...)
3263{
3264 char *s;
3265 va_list v;
3266 va_start (v,p);
3267 s = g (p, va_arg (v,int));
3268 va_end (v);
3269 return s;
3270}
3271
3272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3273 function prototypes and stuff, but not '\xHH' hex character constants.
3274 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003275 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3277 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003278 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3280
Reid Spencera773bd52006-08-04 18:18:08 +00003281/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282 inside strings and character constants. */
3283#define FOO(x) 'x'
3284int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3285
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286int test (int i, double x);
3287struct s1 {int (*f) (int a);};
3288struct s2 {int (*f) (double a);};
3289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290int argc;
3291char **argv;
3292int
3293main ()
3294{
3295return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3296 ;
3297 return 0;
3298}
3299_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003300for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302do
3303 CC="$ac_save_CC $ac_arg"
3304 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003305if { (ac_try="$ac_compile"
3306case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3319 { (case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003338 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339else
3340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
Reid Spencera773bd52006-08-04 18:18:08 +00003343
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344fi
Reid Spencera773bd52006-08-04 18:18:08 +00003345
3346rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348done
Reid Spencera773bd52006-08-04 18:18:08 +00003349rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350CC=$ac_save_CC
3351
3352fi
Reid Spencera773bd52006-08-04 18:18:08 +00003353# AC_CACHE_VAL
3354case "x$ac_cv_prog_cc_c89" in
3355 x)
3356 { echo "$as_me:$LINENO: result: none needed" >&5
3357echo "${ECHO_T}none needed" >&6; } ;;
3358 xno)
3359 { echo "$as_me:$LINENO: result: unsupported" >&5
3360echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003362 CC="$CC $ac_cv_prog_cc_c89"
3363 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365esac
3366
John Criswell0c38eaf2003-09-10 15:17:25 +00003367
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368ac_ext=c
3369ac_cpp='$CPP $CPPFLAGS'
3370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373
3374
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375ac_ext=c
3376ac_cpp='$CPP $CPPFLAGS'
3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003380{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382# On Suns, sometimes $CPP names a directory.
3383if test -n "$CPP" && test -d "$CPP"; then
3384 CPP=
3385fi
3386if test -z "$CPP"; then
3387 if test "${ac_cv_prog_CPP+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390 # Double quotes because CPP needs to be expanded
3391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3392 do
3393 ac_preproc_ok=false
3394for ac_c_preproc_warn_flag in '' yes
3395do
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h. */
3408#ifdef __STDC__
3409# include <limits.h>
3410#else
3411# include <assert.h>
3412#endif
3413 Syntax error
3414_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003415if { (ac_try="$ac_cpp conftest.$ac_ext"
3416case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419esac
3420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 else
3432 ac_cpp_err=
3433 fi
3434else
3435 ac_cpp_err=yes
3436fi
3437if test -z "$ac_cpp_err"; then
3438 :
3439else
3440 echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 # Broken: fails on valid input.
3444continue
3445fi
Reid Spencera773bd52006-08-04 18:18:08 +00003446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447rm -f conftest.err conftest.$ac_ext
3448
Reid Spencera773bd52006-08-04 18:18:08 +00003449 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003450 # can be detected and how.
3451 cat >conftest.$ac_ext <<_ACEOF
3452/* confdefs.h. */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h. */
3457#include <ac_nonexistent.h>
3458_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003459if { (ac_try="$ac_cpp conftest.$ac_ext"
3460case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463esac
3464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null; then
3472 if test -s conftest.err; then
3473 ac_cpp_err=$ac_c_preproc_warn_flag
3474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3475 else
3476 ac_cpp_err=
3477 fi
3478else
3479 ac_cpp_err=yes
3480fi
3481if test -z "$ac_cpp_err"; then
3482 # Broken: success on invalid input.
3483continue
3484else
3485 echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 # Passes both tests.
3489ac_preproc_ok=:
3490break
3491fi
Reid Spencera773bd52006-08-04 18:18:08 +00003492
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493rm -f conftest.err conftest.$ac_ext
3494
3495done
3496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497rm -f conftest.err conftest.$ac_ext
3498if $ac_preproc_ok; then
3499 break
3500fi
3501
3502 done
3503 ac_cv_prog_CPP=$CPP
3504
3505fi
3506 CPP=$ac_cv_prog_CPP
3507else
3508 ac_cv_prog_CPP=$CPP
3509fi
Reid Spencera773bd52006-08-04 18:18:08 +00003510{ echo "$as_me:$LINENO: result: $CPP" >&5
3511echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512ac_preproc_ok=false
3513for ac_c_preproc_warn_flag in '' yes
3514do
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
3527#ifdef __STDC__
3528# include <limits.h>
3529#else
3530# include <assert.h>
3531#endif
3532 Syntax error
3533_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003534if { (ac_try="$ac_cpp conftest.$ac_ext"
3535case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538esac
3539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null; then
3547 if test -s conftest.err; then
3548 ac_cpp_err=$ac_c_preproc_warn_flag
3549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3550 else
3551 ac_cpp_err=
3552 fi
3553else
3554 ac_cpp_err=yes
3555fi
3556if test -z "$ac_cpp_err"; then
3557 :
3558else
3559 echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 # Broken: fails on valid input.
3563continue
3564fi
Reid Spencera773bd52006-08-04 18:18:08 +00003565
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003566rm -f conftest.err conftest.$ac_ext
3567
Reid Spencera773bd52006-08-04 18:18:08 +00003568 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003569 # can be detected and how.
3570 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
3576#include <ac_nonexistent.h>
3577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003578if { (ac_try="$ac_cpp conftest.$ac_ext"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null; then
3591 if test -s conftest.err; then
3592 ac_cpp_err=$ac_c_preproc_warn_flag
3593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3594 else
3595 ac_cpp_err=
3596 fi
3597else
3598 ac_cpp_err=yes
3599fi
3600if test -z "$ac_cpp_err"; then
3601 # Broken: success on invalid input.
3602continue
3603else
3604 echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 # Passes both tests.
3608ac_preproc_ok=:
3609break
3610fi
Reid Spencera773bd52006-08-04 18:18:08 +00003611
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612rm -f conftest.err conftest.$ac_ext
3613
3614done
3615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616rm -f conftest.err conftest.$ac_ext
3617if $ac_preproc_ok; then
3618 :
3619else
3620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3621See \`config.log' for more details." >&5
3622echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3623See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }
3625fi
3626
John Criswell7a73b802003-06-30 21:59:07 +00003627ac_ext=c
3628ac_cpp='$CPP $CPPFLAGS'
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
John Criswell7a73b802003-06-30 21:59:07 +00003633
Reid Spencera773bd52006-08-04 18:18:08 +00003634{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3635echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003636if test "${ac_cv_path_GREP+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
Reid Spencera773bd52006-08-04 18:18:08 +00003639 # Extract the first word of "grep ggrep" to use in msg output
3640if test -z "$GREP"; then
3641set dummy grep ggrep; ac_prog_name=$2
3642if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
Reid Spencera773bd52006-08-04 18:18:08 +00003645 ac_path_GREP_found=false
3646# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003652 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003653 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3655 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3656 # Check for GNU ac_path_GREP and select it if it is found.
3657 # Check for GNU $ac_path_GREP
3658case `"$ac_path_GREP" --version 2>&1` in
3659*GNU*)
3660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3661*)
3662 ac_count=0
3663 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3664 while :
3665 do
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
3669 echo 'GREP' >> "conftest.nl"
3670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672 ac_count=`expr $ac_count + 1`
3673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_GREP="$ac_path_GREP"
3676 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003677 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3680 done
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682esac
3683
3684
3685 $ac_path_GREP_found && break 3
3686 done
3687done
3688
3689done
3690IFS=$as_save_IFS
3691
3692
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003693fi
Reid Spencera773bd52006-08-04 18:18:08 +00003694
3695GREP="$ac_cv_path_GREP"
3696if test -z "$GREP"; then
3697 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3698echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3699 { (exit 1); exit 1; }; }
3700fi
3701
3702else
3703 ac_cv_path_GREP=$GREP
3704fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003705
John Criswell7a73b802003-06-30 21:59:07 +00003706
Reid Spencera773bd52006-08-04 18:18:08 +00003707fi
3708{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3709echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3710 GREP="$ac_cv_path_GREP"
3711
3712
3713{ echo "$as_me:$LINENO: checking for egrep" >&5
3714echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3715if test "${ac_cv_path_EGREP+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3719 then ac_cv_path_EGREP="$GREP -E"
3720 else
3721 # Extract the first word of "egrep" to use in msg output
3722if test -z "$EGREP"; then
3723set dummy egrep; ac_prog_name=$2
3724if test "${ac_cv_path_EGREP+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727 ac_path_EGREP_found=false
3728# Loop through the user's path and test for each of PROGNAME-LIST
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_prog in egrep; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3737 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3738 # Check for GNU ac_path_EGREP and select it if it is found.
3739 # Check for GNU $ac_path_EGREP
3740case `"$ac_path_EGREP" --version 2>&1` in
3741*GNU*)
3742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3743*)
3744 ac_count=0
3745 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3746 while :
3747 do
3748 cat "conftest.in" "conftest.in" >"conftest.tmp"
3749 mv "conftest.tmp" "conftest.in"
3750 cp "conftest.in" "conftest.nl"
3751 echo 'EGREP' >> "conftest.nl"
3752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754 ac_count=`expr $ac_count + 1`
3755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3756 # Best one so far, save it but keep looking for a better one
3757 ac_cv_path_EGREP="$ac_path_EGREP"
3758 ac_path_EGREP_max=$ac_count
3759 fi
3760 # 10*(2^10) chars as input seems more than enough
3761 test $ac_count -gt 10 && break
3762 done
3763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764esac
3765
3766
3767 $ac_path_EGREP_found && break 3
3768 done
3769done
3770
3771done
3772IFS=$as_save_IFS
3773
3774
3775fi
3776
3777EGREP="$ac_cv_path_EGREP"
3778if test -z "$EGREP"; then
3779 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3780echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3781 { (exit 1); exit 1; }; }
3782fi
3783
3784else
3785 ac_cv_path_EGREP=$EGREP
3786fi
3787
3788
3789 fi
3790fi
3791{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3792echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3793 EGREP="$ac_cv_path_EGREP"
3794
3795
3796{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003798if test "${ac_cv_header_stdc+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003802/* confdefs.h. */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003807#include <stdlib.h>
3808#include <stdarg.h>
3809#include <string.h>
3810#include <float.h>
3811
John Criswell0c38eaf2003-09-10 15:17:25 +00003812int
3813main ()
3814{
3815
3816 ;
3817 return 0;
3818}
John Criswell7a73b802003-06-30 21:59:07 +00003819_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003820rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003821if { (ac_try="$ac_compile"
3822case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003828 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003833 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3835 { (case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003845 { (case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003854 ac_cv_header_stdc=yes
3855else
3856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003857sed 's/^/| /' conftest.$ac_ext >&5
3858
Reid Spencera773bd52006-08-04 18:18:08 +00003859 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003860fi
Reid Spencera773bd52006-08-04 18:18:08 +00003861
3862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003863
3864if test $ac_cv_header_stdc = yes; then
3865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3866 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003867/* confdefs.h. */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003872#include <string.h>
3873
3874_ACEOF
3875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003876 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003877 :
3878else
3879 ac_cv_header_stdc=no
3880fi
3881rm -f conftest*
3882
3883fi
3884
3885if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003893#include <stdlib.h>
3894
3895_ACEOF
3896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003897 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003898 :
3899else
3900 ac_cv_header_stdc=no
3901fi
3902rm -f conftest*
3903
3904fi
3905
3906if test $ac_cv_header_stdc = yes; then
3907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3908 if test "$cross_compiling" = yes; then
3909 :
3910else
3911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003917#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003918#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003919#if ((' ' & 0x0FF) == 0x020)
3920# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3922#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003923# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003927# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3928#endif
3929
3930#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3931int
3932main ()
3933{
3934 int i;
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003937 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003938 return 2;
3939 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003940}
3941_ACEOF
3942rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003943if { (ac_try="$ac_link"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003953 { (case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956esac
3957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 :
3963else
3964 echo "$as_me: program exited with status $ac_status" >&5
3965echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003966sed 's/^/| /' conftest.$ac_ext >&5
3967
John Criswell7a73b802003-06-30 21:59:07 +00003968( exit $ac_status )
3969ac_cv_header_stdc=no
3970fi
Reid Spencera773bd52006-08-04 18:18:08 +00003971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3972fi
3973
3974
John Criswell7a73b802003-06-30 21:59:07 +00003975fi
3976fi
Reid Spencera773bd52006-08-04 18:18:08 +00003977{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3978echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003979if test $ac_cv_header_stdc = yes; then
3980
3981cat >>confdefs.h <<\_ACEOF
3982#define STDC_HEADERS 1
3983_ACEOF
3984
3985fi
3986
Reid Spencera773bd52006-08-04 18:18:08 +00003987# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3998 inttypes.h stdint.h unistd.h
3999do
4000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4001{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006 cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
4012$ac_includes_default
4013
4014#include <$ac_header>
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (ac_try="$ac_compile"
4018case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
4022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031 { (case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_try") 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_try") 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 eval "$as_ac_Header=yes"
4051else
4052 echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 eval "$as_ac_Header=no"
4056fi
4057
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060ac_res=`eval echo '${'$as_ac_Header'}'`
4061 { echo "$as_me:$LINENO: result: $ac_res" >&5
4062echo "${ECHO_T}$ac_res" >&6; }
4063if test `eval echo '${'$as_ac_Header'}'` = yes; then
4064 cat >>confdefs.h <<_ACEOF
4065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066_ACEOF
4067
4068fi
4069
4070done
4071
4072
4073{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4074echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4075if test "${ac_cv_c_bigendian+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077else
4078 # See if sys/param.h defines the BYTE_ORDER macro.
4079cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h. */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h. */
4085#include <sys/types.h>
4086#include <sys/param.h>
4087
4088int
4089main ()
4090{
4091#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4092 bogus endian macros
4093#endif
4094
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext
4100if { (ac_try="$ac_compile"
4101case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4114 { (case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_try") 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 # It does; now see whether it defined to BIG_ENDIAN or not.
4134cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
4140#include <sys/types.h>
4141#include <sys/param.h>
4142
4143int
4144main ()
4145{
4146#if BYTE_ORDER != BIG_ENDIAN
4147 not big endian
4148#endif
4149
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (ac_try="$ac_compile"
4156case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 ac_cv_c_bigendian=yes
4189else
4190 echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193 ac_cv_c_bigendian=no
4194fi
4195
4196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197else
4198 echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 # It does not; compile a test program.
4202if test "$cross_compiling" = yes; then
4203 # try to guess the endianness by grepping values into an object file
4204 ac_cv_c_bigendian=unknown
4205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
4211short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4212short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4213void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4214short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4215short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4217int
4218main ()
4219{
4220 _ascii (); _ebcdic ();
4221 ;
4222 return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext
4226if { (ac_try="$ac_compile"
4227case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_compile") 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4260 ac_cv_c_bigendian=yes
4261fi
4262if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4263 if test "$ac_cv_c_bigendian" = unknown; then
4264 ac_cv_c_bigendian=no
4265 else
4266 # finding both strings is unlikely to happen, but who knows?
4267 ac_cv_c_bigendian=unknown
4268 fi
4269fi
4270else
4271 echo "$as_me: failed program was:" >&5
4272sed 's/^/| /' conftest.$ac_ext >&5
4273
4274
4275fi
4276
4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278else
4279 cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h. */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h. */
4285$ac_includes_default
4286int
4287main ()
4288{
4289
4290 /* Are we little or big endian? From Harbison&Steele. */
4291 union
4292 {
4293 long int l;
4294 char c[sizeof (long int)];
4295 } u;
4296 u.l = 1;
4297 return u.c[sizeof (long int) - 1] == 1;
4298
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest$ac_exeext
4304if { (ac_try="$ac_link"
4305case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_link") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_c_bigendian=no
4324else
4325 echo "$as_me: program exited with status $ac_status" >&5
4326echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329( exit $ac_status )
4330ac_cv_c_bigendian=yes
4331fi
4332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4333fi
4334
4335
4336fi
4337
4338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339fi
4340{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4341echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4342case $ac_cv_c_bigendian in
4343 yes)
4344 ENDIAN=big
4345 ;;
4346 no)
4347 ENDIAN=little
4348 ;;
4349 *)
4350 { { echo "$as_me:$LINENO: error: unknown endianness
4351presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4352echo "$as_me: error: unknown endianness
4353presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4354 { (exit 1); exit 1; }; } ;;
4355esac
4356
4357
4358if test "$cross_compiling" = yes; then
4359 LLVM_CROSS_COMPILING=1
4360
4361
4362{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4363echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4364if test "${ac_cv_build_exeext+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4368 ac_cv_build_exeext=.exe
4369else
4370 ac_build_prefix=${build_alias}-
4371
4372 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4373set dummy ${ac_build_prefix}gcc; ac_word=$2
4374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379 if test -n "$BUILD_CC"; then
4380 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4381else
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393done
4394done
4395IFS=$as_save_IFS
4396
4397fi
4398fi
4399BUILD_CC=$ac_cv_prog_BUILD_CC
4400if test -n "$BUILD_CC"; then
4401 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4402echo "${ECHO_T}$BUILD_CC" >&6; }
4403else
4404 { echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6; }
4406fi
4407
4408
4409 if test -z "$BUILD_CC"; then
4410 # Extract the first word of "gcc", so it can be a program name with args.
4411set dummy gcc; ac_word=$2
4412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417 if test -n "$BUILD_CC"; then
4418 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4419else
4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_BUILD_CC="gcc"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4430 fi
4431done
4432done
4433IFS=$as_save_IFS
4434
4435fi
4436fi
4437BUILD_CC=$ac_cv_prog_BUILD_CC
4438if test -n "$BUILD_CC"; then
4439 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4440echo "${ECHO_T}$BUILD_CC" >&6; }
4441else
4442 { echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6; }
4444fi
4445
4446
4447 if test -z "$BUILD_CC"; then
4448 # Extract the first word of "cc", so it can be a program name with args.
4449set dummy cc; ac_word=$2
4450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455 if test -n "$BUILD_CC"; then
4456 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4457else
4458 ac_prog_rejected=no
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4467 ac_prog_rejected=yes
4468 continue
4469 fi
4470 ac_cv_prog_BUILD_CC="cc"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4473 fi
4474done
4475done
4476IFS=$as_save_IFS
4477
4478if test $ac_prog_rejected = yes; then
4479 # We found a bogon in the path, so make sure we never use it.
4480 set dummy $ac_cv_prog_BUILD_CC
4481 shift
4482 if test $# != 0; then
4483 # We chose a different compiler from the bogus one.
4484 # However, it has the same basename, so the bogon will be chosen
4485 # first if we set BUILD_CC to just the basename; use the full file name.
4486 shift
4487 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4488 fi
4489fi
4490fi
4491fi
4492BUILD_CC=$ac_cv_prog_BUILD_CC
4493if test -n "$BUILD_CC"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495echo "${ECHO_T}$BUILD_CC" >&6; }
4496else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498echo "${ECHO_T}no" >&6; }
4499fi
4500
4501
4502 fi
4503 fi
4504 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4505echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4506 { (exit 1); exit 1; }; }
4507 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4508 rm -f conftest*
4509 echo 'int main () { return 0; }' > conftest.$ac_ext
4510 ac_cv_build_exeext=
4511 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4512 (eval $ac_build_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; then
4516 for file in conftest.*; do
4517 case $file in
4518 *.c | *.o | *.obj) ;;
4519 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4520 esac
4521 done
4522 else
4523 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4524echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4525 { (exit 1); exit 1; }; }
4526 fi
4527 rm -f conftest*
4528 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4529fi
4530fi
4531
4532BUILD_EXEEXT=""
4533test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4534{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4535echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4536ac_build_exeext=$BUILD_EXEEXT
4537
4538else
4539 LLVM_CROSS_COMPILING=0
4540
4541fi
4542
Reid Spencer0b1e4662007-04-02 15:41:39 +00004543if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004544 cvsbuild="yes"
4545 optimize="no"
4546 CVSBUILD=CVSBUILD=1
4547
4548else
4549 cvsbuild="no"
4550 optimize="yes"
4551fi
4552
4553
4554# Check whether --enable-optimized was given.
4555if test "${enable_optimized+set}" = set; then
4556 enableval=$enable_optimized;
4557else
4558 enableval=$optimize
4559fi
4560
4561if test ${enableval} = "no" ; then
4562 ENABLE_OPTIMIZED=
4563
4564else
4565 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4566
4567fi
4568
4569# Check whether --enable-assertions was given.
4570if test "${enable_assertions+set}" = set; then
4571 enableval=$enable_assertions;
4572else
4573 enableval="yes"
4574fi
4575
4576if test ${enableval} = "yes" ; then
4577 DISABLE_ASSERTIONS=
4578
4579else
4580 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4581
4582fi
4583
David Greenea696d242007-06-28 19:36:08 +00004584# Check whether --enable-expensive-checks was given.
4585if test "${enable_expensive_checks+set}" = set; then
4586 enableval=$enable_expensive_checks;
4587else
4588 enableval="no"
4589fi
4590
4591if test ${enableval} = "yes" ; then
4592 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4593
4594 EXPENSIVE_CHECKS=yes
4595
4596else
4597 ENABLE_EXPENSIVE_CHECKS=
4598
4599 EXPENSIVE_CHECKS=no
4600
4601fi
4602
Reid Spencer8b2e1412006-11-17 03:32:33 +00004603# Check whether --enable-debug-runtime was given.
4604if test "${enable_debug_runtime+set}" = set; then
4605 enableval=$enable_debug_runtime;
4606else
4607 enableval=no
4608fi
4609
4610if test ${enableval} = "no" ; then
4611 DEBUG_RUNTIME=
4612
4613else
4614 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4615
4616fi
4617
Reid Spencera773bd52006-08-04 18:18:08 +00004618# Check whether --enable-jit was given.
4619if test "${enable_jit+set}" = set; then
4620 enableval=$enable_jit;
4621else
4622 enableval=default
4623fi
4624
4625if test ${enableval} = "no"
4626then
4627 JIT=
4628
4629else
4630 case "$llvm_cv_target_arch" in
4631 x86) TARGET_HAS_JIT=1
4632 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004633 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004634 ;;
4635 PowerPC) TARGET_HAS_JIT=1
4636 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004637 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004638 ;;
4639 Alpha) TARGET_HAS_JIT=1
4640 ;;
4641 IA64) TARGET_HAS_JIT=0
4642 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004643 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004645 *) TARGET_HAS_JIT=0
4646 ;;
4647 esac
4648fi
4649
4650# Check whether --enable-doxygen was given.
4651if test "${enable_doxygen+set}" = set; then
4652 enableval=$enable_doxygen;
4653else
4654 enableval=default
4655fi
4656
4657case "$enableval" in
4658 yes) ENABLE_DOXYGEN=1
4659 ;;
4660 no) ENABLE_DOXYGEN=0
4661 ;;
4662 default) ENABLE_DOXYGEN=0
4663 ;;
4664 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4665echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4666 { (exit 1); exit 1; }; } ;;
4667esac
4668
4669# Check whether --enable-threads was given.
4670if test "${enable_threads+set}" = set; then
4671 enableval=$enable_threads;
4672else
Reid Spencer65c5d752006-11-05 17:08:18 +00004673 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004674fi
4675
4676case "$enableval" in
4677 yes) ENABLE_THREADS=1
4678 ;;
4679 no) ENABLE_THREADS=0
4680 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004681 default) ENABLE_THREADS=1
4682 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4684echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4686esac
4687
4688cat >>confdefs.h <<_ACEOF
4689#define ENABLE_THREADS $ENABLE_THREADS
4690_ACEOF
4691
4692
Reid Spencer89b0d992006-12-16 22:07:52 +00004693# Check whether --enable-pic was given.
4694if test "${enable_pic+set}" = set; then
4695 enableval=$enable_pic;
4696else
4697 enableval=default
4698fi
4699
4700case "$enableval" in
4701 yes) ENABLE_PIC=1
4702 ;;
4703 no) ENABLE_PIC=0
4704 ;;
4705 default) ENABLE_PIC=0
4706 ;;
4707 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4708echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4709 { (exit 1); exit 1; }; } ;;
4710esac
4711
4712cat >>confdefs.h <<_ACEOF
4713#define ENABLE_PIC $ENABLE_PIC
4714_ACEOF
4715
4716
Reid Spencera773bd52006-08-04 18:18:08 +00004717TARGETS_TO_BUILD=""
4718# Check whether --enable-targets was given.
4719if test "${enable_targets+set}" = set; then
4720 enableval=$enable_targets;
4721else
4722 enableval=all
4723fi
4724
4725case "$enableval" in
4726 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4727 host-only)
4728 case "$llvm_cv_target_arch" in
4729 x86) TARGETS_TO_BUILD="X86" ;;
4730 x86_64) TARGETS_TO_BUILD="X86" ;;
4731 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4732 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4733 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4734 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004735 ARM) TARGETS_TO_BUILD="ARM" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004736 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4737echo "$as_me: error: Can not set target to build" >&2;}
4738 { (exit 1); exit 1; }; } ;;
4739 esac
4740 ;;
4741 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4742 case "$a_target" in
4743 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4744 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4745 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4746 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4747 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4748 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004749 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004750 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4751echo "$as_me: error: Unrecognized target $a_target" >&2;}
4752 { (exit 1); exit 1; }; } ;;
4753 esac
4754 done
4755 ;;
4756esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004757TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004758TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4759
4760
Reid Spencer65c5d752006-11-05 17:08:18 +00004761# Check whether --enable-cbe-printf-a was given.
4762if test "${enable_cbe_printf_a+set}" = set; then
4763 enableval=$enable_cbe_printf_a;
4764else
4765 enableval=default
4766fi
4767
4768case "$enableval" in
4769 yes) ENABLE_CBE_PRINTF_A=1
4770 ;;
4771 no) ENABLE_CBE_PRINTF_A=0
4772 ;;
4773 default) ENABLE_CBE_PRINTF_A=1
4774 ;;
4775 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4776echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4777 { (exit 1); exit 1; }; } ;;
4778esac
4779
4780cat >>confdefs.h <<_ACEOF
4781#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4782_ACEOF
4783
4784
Reid Spencera773bd52006-08-04 18:18:08 +00004785
4786# Check whether --with-llvmgccdir was given.
4787if test "${with_llvmgccdir+set}" = set; then
4788 withval=$with_llvmgccdir;
4789else
4790 withval=default
4791fi
4792
4793case "$withval" in
4794 default) WITH_LLVMGCCDIR=default ;;
4795 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4796 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4797echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4798 { (exit 1); exit 1; }; } ;;
4799esac
4800
4801
4802# Check whether --with-extra-options was given.
4803if test "${with_extra_options+set}" = set; then
4804 withval=$with_extra_options;
4805else
4806 withval=default
4807fi
4808
4809case "$withval" in
4810 default) EXTRA_OPTIONS= ;;
4811 *) EXTRA_OPTIONS=$withval ;;
4812esac
4813EXTRA_OPTIONS=$EXTRA_OPTIONS
4814
4815
4816
4817ac_ext=c
4818ac_cpp='$CPP $CPPFLAGS'
4819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4823echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4824# On Suns, sometimes $CPP names a directory.
4825if test -n "$CPP" && test -d "$CPP"; then
4826 CPP=
4827fi
4828if test -z "$CPP"; then
4829 if test "${ac_cv_prog_CPP+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832 # Double quotes because CPP needs to be expanded
4833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4834 do
4835 ac_preproc_ok=false
4836for ac_c_preproc_warn_flag in '' yes
4837do
4838 # Use a header file that comes with gcc, so configuring glibc
4839 # with a fresh cross-compiler works.
4840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841 # <limits.h> exists even on freestanding compilers.
4842 # On the NeXT, cc -E runs the code through the compiler's parser,
4843 # not just through cpp. "Syntax error" is here to catch this case.
4844 cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h. */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h. */
4850#ifdef __STDC__
4851# include <limits.h>
4852#else
4853# include <assert.h>
4854#endif
4855 Syntax error
4856_ACEOF
4857if { (ac_try="$ac_cpp conftest.$ac_ext"
4858case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861esac
4862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null; then
4870 if test -s conftest.err; then
4871 ac_cpp_err=$ac_c_preproc_warn_flag
4872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4873 else
4874 ac_cpp_err=
4875 fi
4876else
4877 ac_cpp_err=yes
4878fi
4879if test -z "$ac_cpp_err"; then
4880 :
4881else
4882 echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885 # Broken: fails on valid input.
4886continue
4887fi
4888
4889rm -f conftest.err conftest.$ac_ext
4890
4891 # OK, works on sane cases. Now check whether nonexistent headers
4892 # can be detected and how.
4893 cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h. */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h. */
4899#include <ac_nonexistent.h>
4900_ACEOF
4901if { (ac_try="$ac_cpp conftest.$ac_ext"
4902case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905esac
4906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } >/dev/null; then
4914 if test -s conftest.err; then
4915 ac_cpp_err=$ac_c_preproc_warn_flag
4916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4917 else
4918 ac_cpp_err=
4919 fi
4920else
4921 ac_cpp_err=yes
4922fi
4923if test -z "$ac_cpp_err"; then
4924 # Broken: success on invalid input.
4925continue
4926else
4927 echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930 # Passes both tests.
4931ac_preproc_ok=:
4932break
4933fi
4934
4935rm -f conftest.err conftest.$ac_ext
4936
4937done
4938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4939rm -f conftest.err conftest.$ac_ext
4940if $ac_preproc_ok; then
4941 break
4942fi
4943
4944 done
4945 ac_cv_prog_CPP=$CPP
4946
4947fi
4948 CPP=$ac_cv_prog_CPP
4949else
4950 ac_cv_prog_CPP=$CPP
4951fi
4952{ echo "$as_me:$LINENO: result: $CPP" >&5
4953echo "${ECHO_T}$CPP" >&6; }
4954ac_preproc_ok=false
4955for ac_c_preproc_warn_flag in '' yes
4956do
4957 # Use a header file that comes with gcc, so configuring glibc
4958 # with a fresh cross-compiler works.
4959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4960 # <limits.h> exists even on freestanding compilers.
4961 # On the NeXT, cc -E runs the code through the compiler's parser,
4962 # not just through cpp. "Syntax error" is here to catch this case.
4963 cat >conftest.$ac_ext <<_ACEOF
4964/* confdefs.h. */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h. */
4969#ifdef __STDC__
4970# include <limits.h>
4971#else
4972# include <assert.h>
4973#endif
4974 Syntax error
4975_ACEOF
4976if { (ac_try="$ac_cpp conftest.$ac_ext"
4977case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev/null; then
4989 if test -s conftest.err; then
4990 ac_cpp_err=$ac_c_preproc_warn_flag
4991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4992 else
4993 ac_cpp_err=
4994 fi
4995else
4996 ac_cpp_err=yes
4997fi
4998if test -z "$ac_cpp_err"; then
4999 :
5000else
5001 echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 # Broken: fails on valid input.
5005continue
5006fi
5007
5008rm -f conftest.err conftest.$ac_ext
5009
5010 # OK, works on sane cases. Now check whether nonexistent headers
5011 # can be detected and how.
5012 cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018#include <ac_nonexistent.h>
5019_ACEOF
5020if { (ac_try="$ac_cpp conftest.$ac_ext"
5021case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024esac
5025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } >/dev/null; then
5033 if test -s conftest.err; then
5034 ac_cpp_err=$ac_c_preproc_warn_flag
5035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5036 else
5037 ac_cpp_err=
5038 fi
5039else
5040 ac_cpp_err=yes
5041fi
5042if test -z "$ac_cpp_err"; then
5043 # Broken: success on invalid input.
5044continue
5045else
5046 echo "$as_me: failed program was:" >&5
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 # Passes both tests.
5050ac_preproc_ok=:
5051break
5052fi
5053
5054rm -f conftest.err conftest.$ac_ext
5055
5056done
5057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5058rm -f conftest.err conftest.$ac_ext
5059if $ac_preproc_ok; then
5060 :
5061else
5062 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5063See \`config.log' for more details." >&5
5064echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5065See \`config.log' for more details." >&2;}
5066 { (exit 1); exit 1; }; }
5067fi
5068
5069ac_ext=c
5070ac_cpp='$CPP $CPPFLAGS'
5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075ac_ext=c
5076ac_cpp='$CPP $CPPFLAGS'
5077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080if test -n "$ac_tool_prefix"; then
5081 for ac_prog in gcc
5082 do
5083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5087if test "${ac_cv_prog_CC+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090 if test -n "$CC"; then
5091 ac_cv_prog_CC="$CC" # Let the user override the test.
5092else
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104done
5105done
5106IFS=$as_save_IFS
5107
5108fi
5109fi
5110CC=$ac_cv_prog_CC
5111if test -n "$CC"; then
5112 { echo "$as_me:$LINENO: result: $CC" >&5
5113echo "${ECHO_T}$CC" >&6; }
5114else
5115 { echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6; }
5117fi
5118
5119
5120 test -n "$CC" && break
5121 done
5122fi
5123if test -z "$CC"; then
5124 ac_ct_CC=$CC
5125 for ac_prog in gcc
5126do
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128set dummy $ac_prog; ac_word=$2
5129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5131if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134 if test -n "$ac_ct_CC"; then
5135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_ac_ct_CC="$ac_prog"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148done
5149done
5150IFS=$as_save_IFS
5151
5152fi
5153fi
5154ac_ct_CC=$ac_cv_prog_ac_ct_CC
5155if test -n "$ac_ct_CC"; then
5156 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5157echo "${ECHO_T}$ac_ct_CC" >&6; }
5158else
5159 { echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6; }
5161fi
5162
5163
5164 test -n "$ac_ct_CC" && break
5165done
5166
5167 if test "x$ac_ct_CC" = x; then
5168 CC=""
5169 else
5170 case $cross_compiling:$ac_tool_warned in
5171yes:)
5172{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5173whose name does not start with the host triplet. If you think this
5174configuration is useful to you, please write to autoconf@gnu.org." >&5
5175echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5176whose name does not start with the host triplet. If you think this
5177configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5178ac_tool_warned=yes ;;
5179esac
5180 CC=$ac_ct_CC
5181 fi
5182fi
5183
5184
5185test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5186See \`config.log' for more details." >&5
5187echo "$as_me: error: no acceptable C compiler found in \$PATH
5188See \`config.log' for more details." >&2;}
5189 { (exit 1); exit 1; }; }
5190
5191# Provide some information about the compiler.
5192echo "$as_me:$LINENO: checking for C compiler version" >&5
5193ac_compiler=`set X $ac_compile; echo $2`
5194{ (ac_try="$ac_compiler --version >&5"
5195case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198esac
5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compiler --version >&5") 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }
5204{ (ac_try="$ac_compiler -v >&5"
5205case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_compiler -v >&5") 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }
5214{ (ac_try="$ac_compiler -V >&5"
5215case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218esac
5219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compiler -V >&5") 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }
5224
5225{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5226echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5227if test "${ac_cv_c_compiler_gnu+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 cat >conftest.$ac_ext <<_ACEOF
5231/* confdefs.h. */
5232_ACEOF
5233cat confdefs.h >>conftest.$ac_ext
5234cat >>conftest.$ac_ext <<_ACEOF
5235/* end confdefs.h. */
5236
5237int
5238main ()
5239{
5240#ifndef __GNUC__
5241 choke me
5242#endif
5243
5244 ;
5245 return 0;
5246}
5247_ACEOF
5248rm -f conftest.$ac_objext
5249if { (ac_try="$ac_compile"
5250case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253esac
5254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5263 { (case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266esac
5267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_try") 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276esac
5277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_compiler_gnu=yes
5283else
5284 echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_compiler_gnu=no
5288fi
5289
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291ac_cv_c_compiler_gnu=$ac_compiler_gnu
5292
5293fi
5294{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5295echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5296GCC=`test $ac_compiler_gnu = yes && echo yes`
5297ac_test_CFLAGS=${CFLAGS+set}
5298ac_save_CFLAGS=$CFLAGS
5299{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5300echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5301if test "${ac_cv_prog_cc_g+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304 ac_save_c_werror_flag=$ac_c_werror_flag
5305 ac_c_werror_flag=yes
5306 ac_cv_prog_cc_g=no
5307 CFLAGS="-g"
5308 cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h. */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h. */
5314
5315int
5316main ()
5317{
5318
5319 ;
5320 return 0;
5321}
5322_ACEOF
5323rm -f conftest.$ac_objext
5324if { (ac_try="$ac_compile"
5325case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5338 { (case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_try") 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_prog_cc_g=yes
5358else
5359 echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362 CFLAGS=""
5363 cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369
5370int
5371main ()
5372{
5373
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext
5379if { (ac_try="$ac_compile"
5380case "(($ac_try" in
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5383esac
5384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_compile") 2>conftest.er1
5386 ac_status=$?
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5393 { (case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396esac
5397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_try") 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5406esac
5407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_try") 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 :
5413else
5414 echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_c_werror_flag=$ac_save_c_werror_flag
5418 CFLAGS="-g"
5419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425
5426int
5427main ()
5428{
5429
5430 ;
5431 return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext
5435if { (ac_try="$ac_compile"
5436case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5449 { (case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_try") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_try") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_cv_prog_cc_g=yes
5469else
5470 echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
5473
5474fi
5475
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477fi
5478
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480fi
5481
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 ac_c_werror_flag=$ac_save_c_werror_flag
5484fi
5485{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5487if test "$ac_test_CFLAGS" = set; then
5488 CFLAGS=$ac_save_CFLAGS
5489elif test $ac_cv_prog_cc_g = yes; then
5490 if test "$GCC" = yes; then
5491 CFLAGS="-g -O2"
5492 else
5493 CFLAGS="-g"
5494 fi
5495else
5496 if test "$GCC" = yes; then
5497 CFLAGS="-O2"
5498 else
5499 CFLAGS=
5500 fi
5501fi
5502{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5503echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5504if test "${ac_cv_prog_cc_c89+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507 ac_cv_prog_cc_c89=no
5508ac_save_CC=$CC
5509cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515#include <stdarg.h>
5516#include <stdio.h>
5517#include <sys/types.h>
5518#include <sys/stat.h>
5519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5520struct buf { int x; };
5521FILE * (*rcsopen) (struct buf *, struct stat *, int);
5522static char *e (p, i)
5523 char **p;
5524 int i;
5525{
5526 return p[i];
5527}
5528static char *f (char * (*g) (char **, int), char **p, ...)
5529{
5530 char *s;
5531 va_list v;
5532 va_start (v,p);
5533 s = g (p, va_arg (v,int));
5534 va_end (v);
5535 return s;
5536}
5537
5538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5539 function prototypes and stuff, but not '\xHH' hex character constants.
5540 These don't provoke an error unfortunately, instead are silently treated
5541 as 'x'. The following induces an error, until -std is added to get
5542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5543 array size at least. It's necessary to write '\x00'==0 to get something
5544 that's true only with -std. */
5545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5546
5547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5548 inside strings and character constants. */
5549#define FOO(x) 'x'
5550int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5551
5552int test (int i, double x);
5553struct s1 {int (*f) (int a);};
5554struct s2 {int (*f) (double a);};
5555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5556int argc;
5557char **argv;
5558int
5559main ()
5560{
5561return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5568do
5569 CC="$ac_save_CC $ac_arg"
5570 rm -f conftest.$ac_objext
5571if { (ac_try="$ac_compile"
5572case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5585 { (case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588esac
5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_try") 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; } &&
5594 { ac_try='test -s conftest.$ac_objext'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598esac
5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_cv_prog_cc_c89=$ac_arg
5605else
5606 echo "$as_me: failed program was:" >&5
5607sed 's/^/| /' conftest.$ac_ext >&5
5608
5609
5610fi
5611
5612rm -f core conftest.err conftest.$ac_objext
5613 test "x$ac_cv_prog_cc_c89" != "xno" && break
5614done
5615rm -f conftest.$ac_ext
5616CC=$ac_save_CC
5617
5618fi
5619# AC_CACHE_VAL
5620case "x$ac_cv_prog_cc_c89" in
5621 x)
5622 { echo "$as_me:$LINENO: result: none needed" >&5
5623echo "${ECHO_T}none needed" >&6; } ;;
5624 xno)
5625 { echo "$as_me:$LINENO: result: unsupported" >&5
5626echo "${ECHO_T}unsupported" >&6; } ;;
5627 *)
5628 CC="$CC $ac_cv_prog_cc_c89"
5629 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5630echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5631esac
5632
5633
5634ac_ext=c
5635ac_cpp='$CPP $CPPFLAGS'
5636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640ac_ext=cpp
5641ac_cpp='$CXXCPP $CPPFLAGS'
5642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645if test -z "$CXX"; then
5646 if test -n "$CCC"; then
5647 CXX=$CCC
5648 else
5649 if test -n "$ac_tool_prefix"; then
5650 for ac_prog in g++
5651 do
5652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5656if test "${ac_cv_prog_CXX+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659 if test -n "$CXX"; then
5660 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5661else
5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH
5664do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673done
5674done
5675IFS=$as_save_IFS
5676
5677fi
5678fi
5679CXX=$ac_cv_prog_CXX
5680if test -n "$CXX"; then
5681 { echo "$as_me:$LINENO: result: $CXX" >&5
5682echo "${ECHO_T}$CXX" >&6; }
5683else
5684 { echo "$as_me:$LINENO: result: no" >&5
5685echo "${ECHO_T}no" >&6; }
5686fi
5687
5688
5689 test -n "$CXX" && break
5690 done
5691fi
5692if test -z "$CXX"; then
5693 ac_ct_CXX=$CXX
5694 for ac_prog in g++
5695do
5696 # Extract the first word of "$ac_prog", so it can be a program name with args.
5697set dummy $ac_prog; ac_word=$2
5698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703 if test -n "$ac_ct_CXX"; then
5704 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_ac_ct_CXX="$ac_prog"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717done
5718done
5719IFS=$as_save_IFS
5720
5721fi
5722fi
5723ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5724if test -n "$ac_ct_CXX"; then
5725 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5726echo "${ECHO_T}$ac_ct_CXX" >&6; }
5727else
5728 { echo "$as_me:$LINENO: result: no" >&5
5729echo "${ECHO_T}no" >&6; }
5730fi
5731
5732
5733 test -n "$ac_ct_CXX" && break
5734done
5735
5736 if test "x$ac_ct_CXX" = x; then
5737 CXX="g++"
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740yes:)
5741{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5742whose name does not start with the host triplet. If you think this
5743configuration is useful to you, please write to autoconf@gnu.org." >&5
5744echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5745whose name does not start with the host triplet. If you think this
5746configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5747ac_tool_warned=yes ;;
5748esac
5749 CXX=$ac_ct_CXX
5750 fi
5751fi
5752
5753 fi
5754fi
5755# Provide some information about the compiler.
5756echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5757ac_compiler=`set X $ac_compile; echo $2`
5758{ (ac_try="$ac_compiler --version >&5"
5759case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762esac
5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compiler --version >&5") 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }
5768{ (ac_try="$ac_compiler -v >&5"
5769case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772esac
5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler -v >&5") 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5778{ (ac_try="$ac_compiler -V >&5"
5779case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782esac
5783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compiler -V >&5") 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }
5788
5789{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5790echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5791if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794 cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h. */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h. */
5800
5801int
5802main ()
5803{
5804#ifndef __GNUC__
5805 choke me
5806#endif
5807
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812rm -f conftest.$ac_objext
5813if { (ac_try="$ac_compile"
5814case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5827 { (case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_try") 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_compiler_gnu=yes
5847else
5848 echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 ac_compiler_gnu=no
5852fi
5853
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5856
5857fi
5858{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5859echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5860GXX=`test $ac_compiler_gnu = yes && echo yes`
5861ac_test_CXXFLAGS=${CXXFLAGS+set}
5862ac_save_CXXFLAGS=$CXXFLAGS
5863{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5864echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5865if test "${ac_cv_prog_cxx_g+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5869 ac_cxx_werror_flag=yes
5870 ac_cv_prog_cxx_g=no
5871 CXXFLAGS="-g"
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878
5879int
5880main ()
5881{
5882
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext
5888if { (ac_try="$ac_compile"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915esac
5916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_prog_cxx_g=yes
5922else
5923 echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 CXXFLAGS=""
5927 cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h. */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h. */
5933
5934int
5935main ()
5936{
5937
5938 ;
5939 return 0;
5940}
5941_ACEOF
5942rm -f conftest.$ac_objext
5943if { (ac_try="$ac_compile"
5944case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 :
5977else
5978 echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5982 CXXFLAGS="-g"
5983 cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
5989
5990int
5991main ()
5992{
5993
5994 ;
5995 return 0;
5996}
5997_ACEOF
5998rm -f conftest.$ac_objext
5999if { (ac_try="$ac_compile"
6000case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_compile") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_prog_cxx_g=yes
6033else
6034 echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037
6038fi
6039
6040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041fi
6042
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
6045
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6048fi
6049{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6050echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6051if test "$ac_test_CXXFLAGS" = set; then
6052 CXXFLAGS=$ac_save_CXXFLAGS
6053elif test $ac_cv_prog_cxx_g = yes; then
6054 if test "$GXX" = yes; then
6055 CXXFLAGS="-g -O2"
6056 else
6057 CXXFLAGS="-g"
6058 fi
6059else
6060 if test "$GXX" = yes; then
6061 CXXFLAGS="-O2"
6062 else
6063 CXXFLAGS=
6064 fi
6065fi
6066ac_ext=c
6067ac_cpp='$CPP $CPPFLAGS'
6068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071
6072{ echo "$as_me:$LINENO: checking " >&5
6073echo $ECHO_N "checking ... $ECHO_C" >&6; }
6074if test "${ac_cv_has_flex+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077 for ac_prog in flex lex
6078do
6079 # Extract the first word of "$ac_prog", so it can be a program name with args.
6080set dummy $ac_prog; ac_word=$2
6081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083if test "${ac_cv_prog_LEX+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086 if test -n "$LEX"; then
6087 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_LEX="$ac_prog"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100done
6101done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106LEX=$ac_cv_prog_LEX
6107if test -n "$LEX"; then
6108 { echo "$as_me:$LINENO: result: $LEX" >&5
6109echo "${ECHO_T}$LEX" >&6; }
6110else
6111 { echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6; }
6113fi
6114
6115
6116 test -n "$LEX" && break
6117done
6118test -n "$LEX" || LEX=":"
6119
6120if test -z "$LEXLIB"
6121then
6122 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6123echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6124if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
6127 ac_check_lib_save_LIBS=$LIBS
6128LIBS="-lfl $LIBS"
6129cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
6135
6136/* Override any GCC internal prototype to avoid an error.
6137 Use char because int might match the return type of a GCC
6138 builtin and then its argument prototype would still apply. */
6139#ifdef __cplusplus
6140extern "C"
6141#endif
6142char yywrap ();
6143int
6144main ()
6145{
6146return yywrap ();
6147 ;
6148 return 0;
6149}
6150_ACEOF
6151rm -f conftest.$ac_objext conftest$ac_exeext
6152if { (ac_try="$ac_link"
6153case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_link") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6166 { (case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169esac
6170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_try") 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try='test -s conftest$ac_exeext'
6176 { (case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179esac
6180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_try") 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_lib_fl_yywrap=yes
6186else
6187 echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190 ac_cv_lib_fl_yywrap=no
6191fi
6192
6193rm -f core conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6195LIBS=$ac_check_lib_save_LIBS
6196fi
6197{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6198echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6199if test $ac_cv_lib_fl_yywrap = yes; then
6200 LEXLIB="-lfl"
6201else
6202 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6203echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6204if test "${ac_cv_lib_l_yywrap+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
6207 ac_check_lib_save_LIBS=$LIBS
6208LIBS="-ll $LIBS"
6209cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h. */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h. */
6215
6216/* Override any GCC internal prototype to avoid an error.
6217 Use char because int might match the return type of a GCC
6218 builtin and then its argument prototype would still apply. */
6219#ifdef __cplusplus
6220extern "C"
6221#endif
6222char yywrap ();
6223int
6224main ()
6225{
6226return yywrap ();
6227 ;
6228 return 0;
6229}
6230_ACEOF
6231rm -f conftest.$ac_objext conftest$ac_exeext
6232if { (ac_try="$ac_link"
6233case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_link") 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6246 { (case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_try") 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try='test -s conftest$ac_exeext'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_cv_lib_l_yywrap=yes
6266else
6267 echo "$as_me: failed program was:" >&5
6268sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_cv_lib_l_yywrap=no
6271fi
6272
6273rm -f core conftest.err conftest.$ac_objext \
6274 conftest$ac_exeext conftest.$ac_ext
6275LIBS=$ac_check_lib_save_LIBS
6276fi
6277{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6278echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6279if test $ac_cv_lib_l_yywrap = yes; then
6280 LEXLIB="-ll"
6281fi
6282
6283fi
6284
6285fi
6286
6287if test "x$LEX" != "x:"; then
6288 { echo "$as_me:$LINENO: checking lex output file root" >&5
6289echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6290if test "${ac_cv_prog_lex_root+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293 # The minimal lex program is just a single line: %%. But some broken lexes
6294# (Solaris, I think it was) want two %% lines, so accommodate them.
6295cat >conftest.l <<_ACEOF
6296%%
6297%%
6298_ACEOF
6299{ (ac_try="$LEX conftest.l"
6300case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$LEX conftest.l") 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }
6309if test -f lex.yy.c; then
6310 ac_cv_prog_lex_root=lex.yy
6311elif test -f lexyy.c; then
6312 ac_cv_prog_lex_root=lexyy
6313else
6314 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6315echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6316 { (exit 1); exit 1; }; }
6317fi
6318fi
6319{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6320echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6321rm -f conftest.l
6322LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6323
6324{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6325echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6326if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329 # POSIX says lex can declare yytext either as a pointer or an array; the
6330# default is implementation-dependent. Figure out which it is, since
6331# not all implementations provide the %pointer and %array declarations.
6332ac_cv_prog_lex_yytext_pointer=no
6333echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6334ac_save_LIBS=$LIBS
6335LIBS="$LIBS $LEXLIB"
6336cat >conftest.$ac_ext <<_ACEOF
6337`cat $LEX_OUTPUT_ROOT.c`
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (ac_try="$ac_link"
6341case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_link") 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6354 { (case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357esac
6358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_try") 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_prog_lex_yytext_pointer=yes
6374else
6375 echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378
6379fi
6380
6381rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383LIBS=$ac_save_LIBS
6384rm -f "${LEX_OUTPUT_ROOT}.c"
6385
6386fi
6387{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6388echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6389if test $ac_cv_prog_lex_yytext_pointer = yes; then
6390
6391cat >>confdefs.h <<\_ACEOF
6392#define YYTEXT_POINTER 1
6393_ACEOF
6394
6395fi
6396
6397fi
6398
6399fi
6400{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6401echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6402if test "$LEX" != "flex"; then
6403 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6404echo "$as_me: error: flex not found but required" >&2;}
6405 { (exit 1); exit 1; }; }
6406else
6407 FLEX=flex
6408
6409fi
6410
6411{ echo "$as_me:$LINENO: checking " >&5
6412echo $ECHO_N "checking ... $ECHO_C" >&6; }
6413if test "${llvm_cv_has_bison+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416 for ac_prog in 'bison -y' byacc
6417do
6418 # Extract the first word of "$ac_prog", so it can be a program name with args.
6419set dummy $ac_prog; ac_word=$2
6420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422if test "${ac_cv_prog_YACC+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424else
6425 if test -n "$YACC"; then
6426 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_YACC="$ac_prog"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439done
6440done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445YACC=$ac_cv_prog_YACC
6446if test -n "$YACC"; then
6447 { echo "$as_me:$LINENO: result: $YACC" >&5
6448echo "${ECHO_T}$YACC" >&6; }
6449else
6450 { echo "$as_me:$LINENO: result: no" >&5
6451echo "${ECHO_T}no" >&6; }
6452fi
6453
6454
6455 test -n "$YACC" && break
6456done
6457test -n "$YACC" || YACC="yacc"
6458
6459fi
6460{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6461echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6462if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006463
6464 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6465echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006466else
6467 BISON=bison
6468
6469fi
6470
6471{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6472echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6473if test "${lt_cv_path_NM+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 if test -n "$NM"; then
6477 # Let the user override the test.
6478 lt_cv_path_NM="$NM"
6479else
6480 lt_nm_to_check="${ac_tool_prefix}nm"
6481 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6482 lt_nm_to_check="$lt_nm_to_check nm"
6483 fi
6484 for lt_tmp_nm in $lt_nm_to_check; do
6485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6486 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6487 IFS="$lt_save_ifs"
6488 test -z "$ac_dir" && ac_dir=.
6489 tmp_nm="$ac_dir/$lt_tmp_nm"
6490 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6491 # Check to see if the nm accepts a BSD-compat flag.
6492 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6493 # nm: unknown option "B" ignored
6494 # Tru64's nm complains that /dev/null is an invalid object file
6495 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6496 */dev/null* | *'Invalid file or object type'*)
6497 lt_cv_path_NM="$tmp_nm -B"
6498 break
6499 ;;
6500 *)
6501 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6502 */dev/null*)
6503 lt_cv_path_NM="$tmp_nm -p"
6504 break
6505 ;;
6506 *)
6507 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6508 continue # so that we can try to find one that supports BSD flags
6509 ;;
6510 esac
6511 ;;
6512 esac
6513 fi
6514 done
6515 IFS="$lt_save_ifs"
6516 done
6517 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6518fi
6519fi
6520{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6521echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6522NM="$lt_cv_path_NM"
6523
6524
6525
6526{ echo "$as_me:$LINENO: checking for GNU make" >&5
6527echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6528if test "${llvm_cv_gnu_make_command+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531 llvm_cv_gnu_make_command=''
6532 for a in "$MAKE" make gmake gnumake ; do
6533 if test -z "$a" ; then continue ; fi ;
6534 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6535 then
6536 llvm_cv_gnu_make_command=$a ;
6537 break;
6538 fi
6539 done
6540fi
6541{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6542echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6543 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6544 ifGNUmake='' ;
6545 else
6546 ifGNUmake='#' ;
6547 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6548echo "${ECHO_T}\"Not found\"" >&6; };
6549 fi
6550
6551
6552{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6553echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6554LN_S=$as_ln_s
6555if test "$LN_S" = "ln -s"; then
6556 { echo "$as_me:$LINENO: result: yes" >&5
6557echo "${ECHO_T}yes" >&6; }
6558else
6559 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6560echo "${ECHO_T}no, using $LN_S" >&6; }
6561fi
6562
6563# Extract the first word of "cmp", so it can be a program name with args.
6564set dummy cmp; ac_word=$2
6565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567if test "${ac_cv_path_CMP+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570 case $CMP in
6571 [\\/]* | ?:[\\/]*)
6572 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6573 ;;
6574 *)
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6591 ;;
6592esac
6593fi
6594CMP=$ac_cv_path_CMP
6595if test -n "$CMP"; then
6596 { echo "$as_me:$LINENO: result: $CMP" >&5
6597echo "${ECHO_T}$CMP" >&6; }
6598else
6599 { echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6; }
6601fi
6602
6603
6604# Extract the first word of "cp", so it can be a program name with args.
6605set dummy cp; ac_word=$2
6606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608if test "${ac_cv_path_CP+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 case $CP in
6612 [\\/]* | ?:[\\/]*)
6613 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6614 ;;
6615 *)
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627done
6628done
6629IFS=$as_save_IFS
6630
6631 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6632 ;;
6633esac
6634fi
6635CP=$ac_cv_path_CP
6636if test -n "$CP"; then
6637 { echo "$as_me:$LINENO: result: $CP" >&5
6638echo "${ECHO_T}$CP" >&6; }
6639else
6640 { echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6; }
6642fi
6643
6644
6645# Extract the first word of "date", so it can be a program name with args.
6646set dummy date; ac_word=$2
6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649if test "${ac_cv_path_DATE+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652 case $DATE in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669done
6670IFS=$as_save_IFS
6671
6672 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6673 ;;
6674esac
6675fi
6676DATE=$ac_cv_path_DATE
6677if test -n "$DATE"; then
6678 { echo "$as_me:$LINENO: result: $DATE" >&5
6679echo "${ECHO_T}$DATE" >&6; }
6680else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
6683fi
6684
6685
6686# Extract the first word of "find", so it can be a program name with args.
6687set dummy find; ac_word=$2
6688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690if test "${ac_cv_path_FIND+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693 case $FIND in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710done
6711IFS=$as_save_IFS
6712
6713 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6714 ;;
6715esac
6716fi
6717FIND=$ac_cv_path_FIND
6718if test -n "$FIND"; then
6719 { echo "$as_me:$LINENO: result: $FIND" >&5
6720echo "${ECHO_T}$FIND" >&6; }
6721else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6; }
6724fi
6725
6726
6727# Extract the first word of "grep", so it can be a program name with args.
6728set dummy grep; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_GREP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734 case $GREP in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6755 ;;
6756esac
6757fi
6758GREP=$ac_cv_path_GREP
6759if test -n "$GREP"; then
6760 { echo "$as_me:$LINENO: result: $GREP" >&5
6761echo "${ECHO_T}$GREP" >&6; }
6762else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765fi
6766
6767
6768# Extract the first word of "mkdir", so it can be a program name with args.
6769set dummy mkdir; ac_word=$2
6770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772if test "${ac_cv_path_MKDIR+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775 case $MKDIR in
6776 [\\/]* | ?:[\\/]*)
6777 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6778 ;;
6779 *)
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791done
6792done
6793IFS=$as_save_IFS
6794
6795 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6796 ;;
6797esac
6798fi
6799MKDIR=$ac_cv_path_MKDIR
6800if test -n "$MKDIR"; then
6801 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6802echo "${ECHO_T}$MKDIR" >&6; }
6803else
6804 { echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6; }
6806fi
6807
6808
6809# Extract the first word of "mv", so it can be a program name with args.
6810set dummy mv; ac_word=$2
6811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813if test "${ac_cv_path_MV+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 case $MV in
6817 [\\/]* | ?:[\\/]*)
6818 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6819 ;;
6820 *)
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833done
6834IFS=$as_save_IFS
6835
6836 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6837 ;;
6838esac
6839fi
6840MV=$ac_cv_path_MV
6841if test -n "$MV"; then
6842 { echo "$as_me:$LINENO: result: $MV" >&5
6843echo "${ECHO_T}$MV" >&6; }
6844else
6845 { echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6; }
6847fi
6848
6849
6850if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_prog_RANLIB+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 if test -n "$RANLIB"; then
6859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878RANLIB=$ac_cv_prog_RANLIB
6879if test -n "$RANLIB"; then
6880 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6881echo "${ECHO_T}$RANLIB" >&6; }
6882else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
6885fi
6886
6887
6888fi
6889if test -z "$ac_cv_prog_RANLIB"; then
6890 ac_ct_RANLIB=$RANLIB
6891 # Extract the first word of "ranlib", so it can be a program name with args.
6892set dummy ranlib; ac_word=$2
6893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898 if test -n "$ac_ct_RANLIB"; then
6899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_RANLIB="ranlib"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919if test -n "$ac_ct_RANLIB"; then
6920 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6921echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6922else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
6925fi
6926
6927 if test "x$ac_ct_RANLIB" = x; then
6928 RANLIB=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931yes:)
6932{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933whose name does not start with the host triplet. If you think this
6934configuration is useful to you, please write to autoconf@gnu.org." >&5
6935echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936whose name does not start with the host triplet. If you think this
6937configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938ac_tool_warned=yes ;;
6939esac
6940 RANLIB=$ac_ct_RANLIB
6941 fi
6942else
6943 RANLIB="$ac_cv_prog_RANLIB"
6944fi
6945
6946# Extract the first word of "rm", so it can be a program name with args.
6947set dummy rm; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_path_RM+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 case $RM in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6956 ;;
6957 *)
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970done
6971IFS=$as_save_IFS
6972
6973 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6974 ;;
6975esac
6976fi
6977RM=$ac_cv_path_RM
6978if test -n "$RM"; then
6979 { echo "$as_me:$LINENO: result: $RM" >&5
6980echo "${ECHO_T}$RM" >&6; }
6981else
6982 { echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6; }
6984fi
6985
6986
6987# Extract the first word of "sed", so it can be a program name with args.
6988set dummy sed; ac_word=$2
6989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991if test "${ac_cv_path_SED+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994 case $SED in
6995 [\\/]* | ?:[\\/]*)
6996 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6997 ;;
6998 *)
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011done
7012IFS=$as_save_IFS
7013
7014 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7015 ;;
7016esac
7017fi
7018SED=$ac_cv_path_SED
7019if test -n "$SED"; then
7020 { echo "$as_me:$LINENO: result: $SED" >&5
7021echo "${ECHO_T}$SED" >&6; }
7022else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
7025fi
7026
7027
7028# Extract the first word of "tar", so it can be a program name with args.
7029set dummy tar; ac_word=$2
7030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032if test "${ac_cv_path_TAR+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035 case $TAR in
7036 [\\/]* | ?:[\\/]*)
7037 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7038 ;;
7039 *)
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051done
7052done
7053IFS=$as_save_IFS
7054
7055 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7056 ;;
7057esac
7058fi
7059TAR=$ac_cv_path_TAR
7060if test -n "$TAR"; then
7061 { echo "$as_me:$LINENO: result: $TAR" >&5
7062echo "${ECHO_T}$TAR" >&6; }
7063else
7064 { echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6; }
7066fi
7067
7068
7069# Extract the first word of "pwd", so it can be a program name with args.
7070set dummy pwd; ac_word=$2
7071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073if test "${ac_cv_path_BINPWD+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 case $BINPWD in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7079 ;;
7080 *)
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094IFS=$as_save_IFS
7095
7096 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7097 ;;
7098esac
7099fi
7100BINPWD=$ac_cv_path_BINPWD
7101if test -n "$BINPWD"; then
7102 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7103echo "${ECHO_T}$BINPWD" >&6; }
7104else
7105 { echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6; }
7107fi
7108
7109
7110
7111# Extract the first word of "Graphviz", so it can be a program name with args.
7112set dummy Graphviz; ac_word=$2
7113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118 case $GRAPHVIZ in
7119 [\\/]* | ?:[\\/]*)
7120 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7121 ;;
7122 *)
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134done
7135done
7136IFS=$as_save_IFS
7137
7138 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7139 ;;
7140esac
7141fi
7142GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7143if test -n "$GRAPHVIZ"; then
7144 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7145echo "${ECHO_T}$GRAPHVIZ" >&6; }
7146else
7147 { echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6; }
7149fi
7150
7151
7152if test "$GRAPHVIZ" != "echo Graphviz" ; then
7153
7154cat >>confdefs.h <<\_ACEOF
7155#define HAVE_GRAPHVIZ 1
7156_ACEOF
7157
Jeff Cohen28783c32007-01-12 18:22:38 +00007158 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007159 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7160 fi
7161
7162cat >>confdefs.h <<_ACEOF
7163#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7164_ACEOF
7165
7166fi
7167# Extract the first word of "dot", so it can be a program name with args.
7168set dummy dot; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_path_DOT+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 case $DOT in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7177 ;;
7178 *)
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7195 ;;
7196esac
7197fi
7198DOT=$ac_cv_path_DOT
7199if test -n "$DOT"; then
7200 { echo "$as_me:$LINENO: result: $DOT" >&5
7201echo "${ECHO_T}$DOT" >&6; }
7202else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6; }
7205fi
7206
7207
7208if test "$DOT" != "echo dot" ; then
7209
7210cat >>confdefs.h <<\_ACEOF
7211#define HAVE_DOT 1
7212_ACEOF
7213
Jeff Cohen28783c32007-01-12 18:22:38 +00007214 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007215 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7216 fi
7217
7218cat >>confdefs.h <<_ACEOF
7219#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7220_ACEOF
7221
7222fi
7223for ac_prog in gv gsview32
7224do
7225 # Extract the first word of "$ac_prog", so it can be a program name with args.
7226set dummy $ac_prog; ac_word=$2
7227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229if test "${ac_cv_path_GV+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 case $GV in
7233 [\\/]* | ?:[\\/]*)
7234 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7235 ;;
7236 *)
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7247 fi
7248done
7249done
7250IFS=$as_save_IFS
7251
7252 ;;
7253esac
7254fi
7255GV=$ac_cv_path_GV
7256if test -n "$GV"; then
7257 { echo "$as_me:$LINENO: result: $GV" >&5
7258echo "${ECHO_T}$GV" >&6; }
7259else
7260 { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
7262fi
7263
7264
7265 test -n "$GV" && break
7266done
7267test -n "$GV" || GV="echo gv"
7268
7269if test "$GV" != "echo gv" ; then
7270
7271cat >>confdefs.h <<\_ACEOF
7272#define HAVE_GV 1
7273_ACEOF
7274
Jeff Cohen28783c32007-01-12 18:22:38 +00007275 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007276 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7277 fi
7278
7279cat >>confdefs.h <<_ACEOF
7280#define LLVM_PATH_GV "$GV${EXEEXT}"
7281_ACEOF
7282
7283fi
7284# Extract the first word of "dotty", so it can be a program name with args.
7285set dummy dotty; ac_word=$2
7286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288if test "${ac_cv_path_DOTTY+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290else
7291 case $DOTTY in
7292 [\\/]* | ?:[\\/]*)
7293 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7294 ;;
7295 *)
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307done
7308done
7309IFS=$as_save_IFS
7310
7311 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7312 ;;
7313esac
7314fi
7315DOTTY=$ac_cv_path_DOTTY
7316if test -n "$DOTTY"; then
7317 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7318echo "${ECHO_T}$DOTTY" >&6; }
7319else
7320 { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
7322fi
7323
7324
7325if test "$DOTTY" != "echo dotty" ; then
7326
7327cat >>confdefs.h <<\_ACEOF
7328#define HAVE_DOTTY 1
7329_ACEOF
7330
Jeff Cohen28783c32007-01-12 18:22:38 +00007331 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007332 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7333 fi
7334
7335cat >>confdefs.h <<_ACEOF
7336#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7337_ACEOF
7338
7339fi
7340
7341
7342# Extract the first word of "perl", so it can be a program name with args.
7343set dummy perl; ac_word=$2
7344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_path_PERL+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 case $PERL in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7352 ;;
7353 *)
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366done
7367IFS=$as_save_IFS
7368
7369 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7370 ;;
7371esac
7372fi
7373PERL=$ac_cv_path_PERL
7374if test -n "$PERL"; then
7375 { echo "$as_me:$LINENO: result: $PERL" >&5
7376echo "${ECHO_T}$PERL" >&6; }
7377else
7378 { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
7380fi
7381
7382
7383if test "$PERL" != "none"; then
7384 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7385echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7386 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7387 { echo "$as_me:$LINENO: result: yes" >&5
7388echo "${ECHO_T}yes" >&6; }
7389 else
7390 PERL=none
7391 { echo "$as_me:$LINENO: result: not found" >&5
7392echo "${ECHO_T}not found" >&6; }
7393 fi
7394fi
7395
7396
7397if test x"$PERL" = xnone; then
7398 HAVE_PERL=0
7399
Reid Spencer59807fa2007-05-17 18:11:03 +00007400 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7401echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7402 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007403else
7404 HAVE_PERL=1
7405
7406fi
7407
7408# Find a good install program. We prefer a C program (faster),
7409# so one script is as good as another. But avoid the broken or
7410# incompatible versions:
7411# SysV /etc/install, /usr/sbin/install
7412# SunOS /usr/etc/install
7413# IRIX /sbin/install
7414# AIX /bin/install
7415# AmigaOS /C/install, which installs bootblocks on floppy discs
7416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7419# OS/2's system install, which has a completely different semantic
7420# ./install, which can be erroneously created by make from ./install.sh.
7421{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7422echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7423if test -z "$INSTALL"; then
7424if test "${ac_cv_path_install+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 # Account for people who put trailing slashes in PATH elements.
7433case $as_dir/ in
7434 ./ | .// | /cC/* | \
7435 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7436 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7437 /usr/ucb/* ) ;;
7438 *)
7439 # OSF1 and SCO ODT 3.0 have their own names for install.
7440 # Don't use installbsd from OSF since it installs stuff as root
7441 # by default.
7442 for ac_prog in ginstall scoinst install; do
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7445 if test $ac_prog = install &&
7446 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7447 # AIX install. It has an incompatible calling convention.
7448 :
7449 elif test $ac_prog = install &&
7450 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7451 # program-specific install script used by HP pwplus--don't use.
7452 :
7453 else
7454 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7455 break 3
7456 fi
7457 fi
7458 done
7459 done
7460 ;;
7461esac
7462done
7463IFS=$as_save_IFS
7464
7465
7466fi
7467 if test "${ac_cv_path_install+set}" = set; then
7468 INSTALL=$ac_cv_path_install
7469 else
7470 # As a last resort, use the slow shell script. Don't cache a
7471 # value for INSTALL within a source directory, because that will
7472 # break other packages using the cache if that directory is
7473 # removed, or if the value is a relative name.
7474 INSTALL=$ac_install_sh
7475 fi
7476fi
7477{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7478echo "${ECHO_T}$INSTALL" >&6; }
7479
7480# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7481# It thinks the first close brace ends the variable substitution.
7482test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7483
7484test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7485
7486test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7487
7488
7489# Extract the first word of "bzip2", so it can be a program name with args.
7490set dummy bzip2; ac_word=$2
7491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493if test "${ac_cv_path_BZIP2+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495else
7496 case $BZIP2 in
7497 [\\/]* | ?:[\\/]*)
7498 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7499 ;;
7500 *)
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7511 fi
7512done
7513done
7514IFS=$as_save_IFS
7515
7516 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7517 ;;
7518esac
7519fi
7520BZIP2=$ac_cv_path_BZIP2
7521if test -n "$BZIP2"; then
7522 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7523echo "${ECHO_T}$BZIP2" >&6; }
7524else
7525 { echo "$as_me:$LINENO: result: no" >&5
7526echo "${ECHO_T}no" >&6; }
7527fi
7528
7529
7530# Extract the first word of "doxygen", so it can be a program name with args.
7531set dummy doxygen; ac_word=$2
7532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534if test "${ac_cv_path_DOXYGEN+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537 case $DOXYGEN in
7538 [\\/]* | ?:[\\/]*)
7539 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7540 ;;
7541 *)
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553done
7554done
7555IFS=$as_save_IFS
7556
7557 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7558 ;;
7559esac
7560fi
7561DOXYGEN=$ac_cv_path_DOXYGEN
7562if test -n "$DOXYGEN"; then
7563 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7564echo "${ECHO_T}$DOXYGEN" >&6; }
7565else
7566 { echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6; }
7568fi
7569
7570
Reid Spencera773bd52006-08-04 18:18:08 +00007571# Extract the first word of "groff", so it can be a program name with args.
7572set dummy groff; ac_word=$2
7573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575if test "${ac_cv_path_GROFF+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577else
7578 case $GROFF in
7579 [\\/]* | ?:[\\/]*)
7580 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7581 ;;
7582 *)
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594done
7595done
7596IFS=$as_save_IFS
7597
7598 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7599 ;;
7600esac
7601fi
7602GROFF=$ac_cv_path_GROFF
7603if test -n "$GROFF"; then
7604 { echo "$as_me:$LINENO: result: $GROFF" >&5
7605echo "${ECHO_T}$GROFF" >&6; }
7606else
7607 { echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6; }
7609fi
7610
7611
7612# Extract the first word of "gzip", so it can be a program name with args.
7613set dummy gzip; ac_word=$2
7614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616if test "${ac_cv_path_GZIP+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619 case $GZIP in
7620 [\\/]* | ?:[\\/]*)
7621 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7622 ;;
7623 *)
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635done
7636done
7637IFS=$as_save_IFS
7638
7639 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7640 ;;
7641esac
7642fi
7643GZIP=$ac_cv_path_GZIP
7644if test -n "$GZIP"; then
7645 { echo "$as_me:$LINENO: result: $GZIP" >&5
7646echo "${ECHO_T}$GZIP" >&6; }
7647else
7648 { echo "$as_me:$LINENO: result: no" >&5
7649echo "${ECHO_T}no" >&6; }
7650fi
7651
7652
7653# Extract the first word of "pod2html", so it can be a program name with args.
7654set dummy pod2html; ac_word=$2
7655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7657if test "${ac_cv_path_POD2HTML+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 case $POD2HTML in
7661 [\\/]* | ?:[\\/]*)
7662 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7663 ;;
7664 *)
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7675 fi
7676done
7677done
7678IFS=$as_save_IFS
7679
7680 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7681 ;;
7682esac
7683fi
7684POD2HTML=$ac_cv_path_POD2HTML
7685if test -n "$POD2HTML"; then
7686 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7687echo "${ECHO_T}$POD2HTML" >&6; }
7688else
7689 { echo "$as_me:$LINENO: result: no" >&5
7690echo "${ECHO_T}no" >&6; }
7691fi
7692
7693
7694# Extract the first word of "pod2man", so it can be a program name with args.
7695set dummy pod2man; ac_word=$2
7696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7698if test "${ac_cv_path_POD2MAN+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700else
7701 case $POD2MAN in
7702 [\\/]* | ?:[\\/]*)
7703 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7704 ;;
7705 *)
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717done
7718done
7719IFS=$as_save_IFS
7720
7721 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7722 ;;
7723esac
7724fi
7725POD2MAN=$ac_cv_path_POD2MAN
7726if test -n "$POD2MAN"; then
7727 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7728echo "${ECHO_T}$POD2MAN" >&6; }
7729else
7730 { echo "$as_me:$LINENO: result: no" >&5
7731echo "${ECHO_T}no" >&6; }
7732fi
7733
7734
7735# Extract the first word of "runtest", so it can be a program name with args.
7736set dummy runtest; ac_word=$2
7737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739if test "${ac_cv_path_RUNTEST+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742 case $RUNTEST in
7743 [\\/]* | ?:[\\/]*)
7744 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7745 ;;
7746 *)
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759done
7760IFS=$as_save_IFS
7761
7762 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7763 ;;
7764esac
7765fi
7766RUNTEST=$ac_cv_path_RUNTEST
7767if test -n "$RUNTEST"; then
7768 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7769echo "${ECHO_T}$RUNTEST" >&6; }
7770else
7771 { echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6; }
7773fi
7774
7775
7776
7777no_itcl=true
7778{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7779echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7780
7781# Check whether --with-tclinclude was given.
7782if test "${with_tclinclude+set}" = set; then
7783 withval=$with_tclinclude; with_tclinclude=${withval}
7784else
7785 with_tclinclude=''
7786fi
7787
7788if test "${ac_cv_path_tclsh+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791
7792if test x"${with_tclinclude}" != x ; then
7793 if test -f ${with_tclinclude}/tclsh ; then
7794 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7795 elif test -f ${with_tclinclude}/src/tclsh ; then
7796 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7797 else
7798 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7799echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7800 { (exit 1); exit 1; }; }
7801 fi
7802fi
7803
7804if test x"${ac_cv_path_tclsh}" = x ; then
7805 { echo "$as_me:$LINENO: result: none" >&5
7806echo "${ECHO_T}none" >&6; }
7807 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
7808do
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810set dummy $ac_prog; ac_word=$2
7811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813if test "${ac_cv_path_TCLSH+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816 case $TCLSH in
7817 [\\/]* | ?:[\\/]*)
7818 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7819 ;;
7820 *)
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832done
7833done
7834IFS=$as_save_IFS
7835
7836 ;;
7837esac
7838fi
7839TCLSH=$ac_cv_path_TCLSH
7840if test -n "$TCLSH"; then
7841 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7842echo "${ECHO_T}$TCLSH" >&6; }
7843else
7844 { echo "$as_me:$LINENO: result: no" >&5
7845echo "${ECHO_T}no" >&6; }
7846fi
7847
7848
7849 test -n "$TCLSH" && break
7850done
7851
7852 if test x"${TCLSH}" = x ; then
7853 ac_cv_path_tclsh='';
7854 else
7855 ac_cv_path_tclsh="${TCLSH}";
7856 fi
7857else
7858 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7859echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7860 TCLSH="${ac_cv_path_tclsh}"
7861
7862fi
7863
7864fi
7865
7866# Extract the first word of "zip", so it can be a program name with args.
7867set dummy zip; ac_word=$2
7868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870if test "${ac_cv_path_ZIP+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873 case $ZIP in
7874 [\\/]* | ?:[\\/]*)
7875 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7876 ;;
7877 *)
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889done
7890done
7891IFS=$as_save_IFS
7892
7893 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7894 ;;
7895esac
7896fi
7897ZIP=$ac_cv_path_ZIP
7898if test -n "$ZIP"; then
7899 { echo "$as_me:$LINENO: result: $ZIP" >&5
7900echo "${ECHO_T}$ZIP" >&6; }
7901else
7902 { echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6; }
7904fi
7905
7906
7907
7908{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7909echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7910if test "${llvm_cv_link_use_r+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 ac_ext=c
7914ac_cpp='$CPP $CPPFLAGS'
7915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918
7919 oldcflags="$CFLAGS"
7920 CFLAGS="$CFLAGS -Wl,-R."
7921 cat >conftest.$ac_ext <<_ACEOF
7922/* confdefs.h. */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h. */
7927
7928int
7929main ()
7930{
7931int main() { return 0; }
7932 ;
7933 return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext conftest$ac_exeext
7937if { (ac_try="$ac_link"
7938case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_link") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954esac
7955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_try") 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 llvm_cv_link_use_r=yes
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 llvm_cv_link_use_r=no
7976fi
7977
7978rm -f core conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980 CFLAGS="$oldcflags"
7981 ac_ext=c
7982ac_cpp='$CPP $CPPFLAGS'
7983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986
7987
7988fi
7989{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7990echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7991if test "$llvm_cv_link_use_r" = yes ; then
7992
7993cat >>confdefs.h <<\_ACEOF
7994#define HAVE_LINK_R 1
7995_ACEOF
7996
7997 fi
7998
7999
8000
8001
8002{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8003echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8004if test "${ac_cv_c_const+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007 cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h. */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h. */
8013
8014int
8015main ()
8016{
8017/* FIXME: Include the comments suggested by Paul. */
8018#ifndef __cplusplus
8019 /* Ultrix mips cc rejects this. */
8020 typedef int charset[2];
8021 const charset x;
8022 /* SunOS 4.1.1 cc rejects this. */
8023 char const *const *ccp;
8024 char **p;
8025 /* NEC SVR4.0.2 mips cc rejects this. */
8026 struct point {int x, y;};
8027 static struct point const zero = {0,0};
8028 /* AIX XL C 1.02.0.0 rejects this.
8029 It does not let you subtract one const X* pointer from another in
8030 an arm of an if-expression whose if-part is not a constant
8031 expression */
8032 const char *g = "string";
8033 ccp = &g + (g ? g-g : 0);
8034 /* HPUX 7.0 cc rejects these. */
8035 ++ccp;
8036 p = (char**) ccp;
8037 ccp = (char const *const *) p;
8038 { /* SCO 3.2v4 cc rejects this. */
8039 char *t;
8040 char const *s = 0 ? (char *) 0 : (char const *) 0;
8041
8042 *t++ = 0;
8043 if (s) return 0;
8044 }
8045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8046 int x[] = {25, 17};
8047 const int *foo = &x[0];
8048 ++foo;
8049 }
8050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8051 typedef const int *iptr;
8052 iptr p = 0;
8053 ++p;
8054 }
8055 { /* AIX XL C 1.02.0.0 rejects this saying
8056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8057 struct s { int j; const int *ap[3]; };
8058 struct s *b; b->j = 5;
8059 }
8060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8061 const int foo = 10;
8062 if (!foo) return 0;
8063 }
8064 return !x[0] && !zero.x;
8065#endif
8066
8067 ;
8068 return 0;
8069}
8070_ACEOF
8071rm -f conftest.$ac_objext
8072if { (ac_try="$ac_compile"
8073case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_compile") 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest.$ac_objext'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_cv_c_const=yes
8106else
8107 echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_cv_c_const=no
8111fi
8112
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114fi
8115{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8116echo "${ECHO_T}$ac_cv_c_const" >&6; }
8117if test $ac_cv_c_const = no; then
8118
8119cat >>confdefs.h <<\_ACEOF
8120#define const
8121_ACEOF
8122
8123fi
8124
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008125
8126
8127
8128
8129
8130ac_header_dirent=no
8131for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8132 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008133{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8134echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138 cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h. */
8144#include <sys/types.h>
8145#include <$ac_hdr>
8146
8147int
8148main ()
8149{
8150if ((DIR *) 0)
8151return 0;
8152 ;
8153 return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008157if { (ac_try="$ac_compile"
8158case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8161esac
8162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174esac
8175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184esac
8185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 eval "$as_ac_Header=yes"
8191else
8192 echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
Reid Spencera773bd52006-08-04 18:18:08 +00008195 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008196fi
Reid Spencera773bd52006-08-04 18:18:08 +00008197
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008199fi
Reid Spencera773bd52006-08-04 18:18:08 +00008200ac_res=`eval echo '${'$as_ac_Header'}'`
8201 { echo "$as_me:$LINENO: result: $ac_res" >&5
8202echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008203if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8206_ACEOF
8207
8208ac_header_dirent=$ac_hdr; break
8209fi
8210
8211done
8212# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8213if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008214 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8215echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008216if test "${ac_cv_search_opendir+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218else
8219 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008220cat >conftest.$ac_ext <<_ACEOF
8221/* confdefs.h. */
8222_ACEOF
8223cat confdefs.h >>conftest.$ac_ext
8224cat >>conftest.$ac_ext <<_ACEOF
8225/* end confdefs.h. */
8226
Reid Spencera773bd52006-08-04 18:18:08 +00008227/* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008230#ifdef __cplusplus
8231extern "C"
8232#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008233char opendir ();
8234int
8235main ()
8236{
Reid Spencera773bd52006-08-04 18:18:08 +00008237return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008238 ;
8239 return 0;
8240}
8241_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008242for ac_lib in '' dir; do
8243 if test -z "$ac_lib"; then
8244 ac_res="none required"
8245 else
8246 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008248 fi
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250if { (ac_try="$ac_link"
8251case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008283 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008284else
8285 echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008288
8289fi
8290
Reid Spencera773bd52006-08-04 18:18:08 +00008291rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext
8293 if test "${ac_cv_search_opendir+set}" = set; then
8294 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008295fi
John Criswell7a73b802003-06-30 21:59:07 +00008296done
Reid Spencera773bd52006-08-04 18:18:08 +00008297if test "${ac_cv_search_opendir+set}" = set; then
8298 :
8299else
8300 ac_cv_search_opendir=no
8301fi
8302rm conftest.$ac_ext
8303LIBS=$ac_func_search_save_LIBS
8304fi
8305{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8306echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8307ac_res=$ac_cv_search_opendir
8308if test "$ac_res" != no; then
8309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008310
Reid Spencera773bd52006-08-04 18:18:08 +00008311fi
8312
8313else
8314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316if test "${ac_cv_search_opendir+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319 ac_func_search_save_LIBS=$LIBS
8320cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h. */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h. */
8326
8327/* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8330#ifdef __cplusplus
8331extern "C"
8332#endif
8333char opendir ();
8334int
8335main ()
8336{
8337return opendir ();
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342for ac_lib in '' x; do
8343 if test -z "$ac_lib"; then
8344 ac_res="none required"
8345 else
8346 ac_res=-l$ac_lib
8347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8348 fi
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (ac_try="$ac_link"
8351case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest$ac_exeext'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_search_opendir=$ac_res
8384else
8385 echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388
8389fi
8390
8391rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext
8393 if test "${ac_cv_search_opendir+set}" = set; then
8394 break
8395fi
8396done
8397if test "${ac_cv_search_opendir+set}" = set; then
8398 :
8399else
8400 ac_cv_search_opendir=no
8401fi
8402rm conftest.$ac_ext
8403LIBS=$ac_func_search_save_LIBS
8404fi
8405{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8407ac_res=$ac_cv_search_opendir
8408if test "$ac_res" != no; then
8409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8410
8411fi
8412
8413fi
John Criswell7a73b802003-06-30 21:59:07 +00008414
8415
8416for ac_header in dlfcn.h
8417do
8418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008423 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008424fi
Reid Spencera773bd52006-08-04 18:18:08 +00008425ac_res=`eval echo '${'$as_ac_Header'}'`
8426 { echo "$as_me:$LINENO: result: $ac_res" >&5
8427echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008428else
Brian Gaeke0a621332004-09-08 20:38:05 +00008429 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008430{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008432cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008433/* confdefs.h. */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008438$ac_includes_default
8439#include <$ac_header>
8440_ACEOF
8441rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008442if { (ac_try="$ac_compile"
8443case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008449 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008466 { (case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8469esac
8470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008475 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008476else
8477 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008478sed 's/^/| /' conftest.$ac_ext >&5
8479
Reid Spencera773bd52006-08-04 18:18:08 +00008480 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008481fi
Reid Spencera773bd52006-08-04 18:18:08 +00008482
8483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8485echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008486
8487# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008488{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008490cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008491/* confdefs.h. */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h. */
8496#include <$ac_header>
8497_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008498if { (ac_try="$ac_cpp conftest.$ac_ext"
8499case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502esac
8503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } >/dev/null; then
8511 if test -s conftest.err; then
8512 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008514 else
8515 ac_cpp_err=
8516 fi
8517else
8518 ac_cpp_err=yes
8519fi
8520if test -z "$ac_cpp_err"; then
8521 ac_header_preproc=yes
8522else
8523 echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
8526 ac_header_preproc=no
8527fi
Reid Spencera773bd52006-08-04 18:18:08 +00008528
Brian Gaeke0a621332004-09-08 20:38:05 +00008529rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008530{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8531echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008532
8533# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8535 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8540 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008541 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008542 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008555 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008556## ----------------------------------- ##
8557## Report this to llvmbugs@cs.uiuc.edu ##
8558## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008559_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008560 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008561 ;;
8562esac
Reid Spencera773bd52006-08-04 18:18:08 +00008563{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008566 echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008568 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008569fi
Reid Spencera773bd52006-08-04 18:18:08 +00008570ac_res=`eval echo '${'$as_ac_Header'}'`
8571 { echo "$as_me:$LINENO: result: $ac_res" >&5
8572echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008573
8574fi
John Criswell7a73b802003-06-30 21:59:07 +00008575if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576 cat >>confdefs.h <<_ACEOF
8577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578_ACEOF
8579
8580fi
8581
8582done
8583
Reid Spencera773bd52006-08-04 18:18:08 +00008584# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008585if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008586 enableval=$enable_ltdl_install;
8587fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008588
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008589
8590
8591
8592if test x"${enable_ltdl_install-no}" != xno; then
8593 INSTALL_LTDL_TRUE=
8594 INSTALL_LTDL_FALSE='#'
8595else
8596 INSTALL_LTDL_TRUE='#'
8597 INSTALL_LTDL_FALSE=
8598fi
8599
8600
8601
8602if test x"${enable_ltdl_convenience-no}" != xno; then
8603 CONVENIENCE_LTDL_TRUE=
8604 CONVENIENCE_LTDL_FALSE='#'
8605else
8606 CONVENIENCE_LTDL_TRUE='#'
8607 CONVENIENCE_LTDL_FALSE=
8608fi
8609
8610
Reid Spencera773bd52006-08-04 18:18:08 +00008611{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008613library_names_spec=
8614libname_spec='lib$name'
8615soname_spec=
8616shrext_cmds=".so"
8617postinstall_cmds=
8618postuninstall_cmds=
8619finish_cmds=
8620finish_eval=
8621shlibpath_var=
8622shlibpath_overrides_runpath=unknown
8623version_type=none
8624dynamic_linker="$host_os ld.so"
8625sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626if test "$GCC" = yes; then
8627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629 # if the path contains ";" then we assume it to be the separator
8630 # otherwise default to the standard path separator (i.e. ":") - it is
8631 # assumed that no part of a normal pathname contains ";" but that should
8632 # okay in the real world where ";" in dirpaths is itself problematic.
8633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634 else
8635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8636 fi
8637else
8638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8639fi
8640need_lib_prefix=unknown
8641hardcode_into_libs=no
8642
8643# when you set need_version to no, make sure it does not cause -set_version
8644# flags to be left without arguments
8645need_version=unknown
8646
8647case $host_os in
8648aix3*)
8649 version_type=linux
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651 shlibpath_var=LIBPATH
8652
8653 # AIX 3 has no versioning support, so we append a major version to the name.
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 ;;
8656
8657aix4* | aix5*)
8658 version_type=linux
8659 need_lib_prefix=no
8660 need_version=no
8661 hardcode_into_libs=yes
8662 if test "$host_cpu" = ia64; then
8663 # AIX 5 supports IA64
8664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665 shlibpath_var=LD_LIBRARY_PATH
8666 else
8667 # With GCC up to 2.95.x, collect2 would create an import file
8668 # for dependence libraries. The import file would start with
8669 # the line `#! .'. This would cause the generated library to
8670 # depend on `.', always an invalid library. This was fixed in
8671 # development snapshots of GCC prior to 3.0.
8672 case $host_os in
8673 aix4 | aix4.[01] | aix4.[01].*)
8674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675 echo ' yes '
8676 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8677 :
8678 else
8679 can_build_shared=no
8680 fi
8681 ;;
8682 esac
8683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684 # soname into executable. Probably we can add versioning support to
8685 # collect2, so additional links can be useful in future.
8686 if test "$aix_use_runtimelinking" = yes; then
8687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688 # instead of lib<name>.a to let people know that these are not
8689 # typical AIX shared libraries.
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691 else
8692 # We preserve .a as extension for shared libraries through AIX4.2
8693 # and later when we are not doing run time linking.
8694 library_names_spec='${libname}${release}.a $libname.a'
8695 soname_spec='${libname}${release}${shared_ext}$major'
8696 fi
8697 shlibpath_var=LIBPATH
8698 fi
8699 ;;
8700
8701amigaos*)
8702 library_names_spec='$libname.ixlibrary $libname.a'
8703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704 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'
8705 ;;
8706
8707beos*)
8708 library_names_spec='${libname}${shared_ext}'
8709 dynamic_linker="$host_os ld.so"
8710 shlibpath_var=LIBRARY_PATH
8711 ;;
8712
8713bsdi[45]*)
8714 version_type=linux
8715 need_version=no
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717 soname_spec='${libname}${release}${shared_ext}$major'
8718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719 shlibpath_var=LD_LIBRARY_PATH
8720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722 # the default ld.so.conf also contains /usr/contrib/lib and
8723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724 # libtool to hard-code these into programs
8725 ;;
8726
8727cygwin* | mingw* | pw32*)
8728 version_type=windows
8729 shrext_cmds=".dll"
8730 need_version=no
8731 need_lib_prefix=no
8732
8733 case $GCC,$host_os in
8734 yes,cygwin* | yes,mingw* | yes,pw32*)
8735 library_names_spec='$libname.dll.a'
8736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737 postinstall_cmds='base_file=`basename \${file}`~
8738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739 dldir=$destdir/`dirname \$dlpath`~
8740 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008741 $install_prog $dir/$dlname \$dldir/$dlname~
8742 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744 dlpath=$dir/\$dldll~
8745 $rm \$dlpath'
8746 shlibpath_overrides_runpath=yes
8747
8748 case $host_os in
8749 cygwin*)
8750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8753 ;;
8754 mingw*)
8755 # MinGW DLLs use traditional 'lib' prefix
8756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759 # It is most probably a Windows format PATH printed by
8760 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761 # path with ; separators, and with drive letters. We can handle the
8762 # drive letters (cygwin fileutils understands them), so leave them,
8763 # especially as we might pass files found there to a mingw objdump,
8764 # which wouldn't understand a cygwinified path. Ahh.
8765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766 else
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8768 fi
8769 ;;
8770 pw32*)
8771 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008772 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 +00008773 ;;
8774 esac
8775 ;;
8776
8777 *)
8778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8779 ;;
8780 esac
8781 dynamic_linker='Win32 ld.exe'
8782 # FIXME: first we should search . and the directory the executable is in
8783 shlibpath_var=PATH
8784 ;;
8785
8786darwin* | rhapsody*)
8787 dynamic_linker="$host_os dyld"
8788 version_type=darwin
8789 need_lib_prefix=no
8790 need_version=no
8791 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792 soname_spec='${libname}${release}${major}$shared_ext'
8793 shlibpath_overrides_runpath=yes
8794 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008795 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008796 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797 if test "$GCC" = yes; then
8798 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"`
8799 else
8800 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8801 fi
8802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8803 ;;
8804
8805dgux*)
8806 version_type=linux
8807 need_lib_prefix=no
8808 need_version=no
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 ;;
8813
8814freebsd1*)
8815 dynamic_linker=no
8816 ;;
8817
8818kfreebsd*-gnu)
8819 version_type=linux
8820 need_lib_prefix=no
8821 need_version=no
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 shlibpath_overrides_runpath=no
8826 hardcode_into_libs=yes
8827 dynamic_linker='GNU ld.so'
8828 ;;
8829
Reid Spencera773bd52006-08-04 18:18:08 +00008830freebsd* | dragonfly*)
8831 # DragonFly does not have aout. When/if they implement a new
8832 # versioning mechanism, adjust this.
8833 if test -x /usr/bin/objformat; then
8834 objformat=`/usr/bin/objformat`
8835 else
8836 case $host_os in
8837 freebsd[123]*) objformat=aout ;;
8838 *) objformat=elf ;;
8839 esac
8840 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841 version_type=freebsd-$objformat
8842 case $version_type in
8843 freebsd-elf*)
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8845 need_version=no
8846 need_lib_prefix=no
8847 ;;
8848 freebsd-*)
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8850 need_version=yes
8851 ;;
8852 esac
8853 shlibpath_var=LD_LIBRARY_PATH
8854 case $host_os in
8855 freebsd2*)
8856 shlibpath_overrides_runpath=yes
8857 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008858 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8861 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8866 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008867 freebsd*) # from 4.6 on
8868 shlibpath_overrides_runpath=yes
8869 hardcode_into_libs=yes
8870 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008871 esac
8872 ;;
8873
8874gnu*)
8875 version_type=linux
8876 need_lib_prefix=no
8877 need_version=no
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 hardcode_into_libs=yes
8882 ;;
8883
8884hpux9* | hpux10* | hpux11*)
8885 # Give a soname corresponding to the major version so that dld.sl refuses to
8886 # link against other versions.
8887 version_type=sunos
8888 need_lib_prefix=no
8889 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008890 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008891 ia64*)
8892 shrext_cmds='.so'
8893 hardcode_into_libs=yes
8894 dynamic_linker="$host_os dld.so"
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 if test "X$HPUX_IA64_MODE" = X32; then
8900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8901 else
8902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8903 fi
8904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8905 ;;
8906 hppa*64*)
8907 shrext_cmds='.sl'
8908 hardcode_into_libs=yes
8909 dynamic_linker="$host_os dld.sl"
8910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8916 ;;
8917 *)
8918 shrext_cmds='.sl'
8919 dynamic_linker="$host_os dld.sl"
8920 shlibpath_var=SHLIB_PATH
8921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 ;;
8925 esac
8926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8927 postinstall_cmds='chmod 555 $lib'
8928 ;;
8929
Reid Spencera773bd52006-08-04 18:18:08 +00008930interix3*)
8931 version_type=linux
8932 need_lib_prefix=no
8933 need_version=no
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8940 ;;
8941
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008942irix5* | irix6* | nonstopux*)
8943 case $host_os in
8944 nonstopux*) version_type=nonstopux ;;
8945 *)
8946 if test "$lt_cv_prog_gnu_ld" = yes; then
8947 version_type=linux
8948 else
8949 version_type=irix
8950 fi ;;
8951 esac
8952 need_lib_prefix=no
8953 need_version=no
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8956 case $host_os in
8957 irix5* | nonstopux*)
8958 libsuff= shlibsuff=
8959 ;;
8960 *)
8961 case $LD in # libtool.m4 will add one of these switches to LD
8962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8963 libsuff= shlibsuff= libmagic=32-bit;;
8964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8965 libsuff=32 shlibsuff=N32 libmagic=N32;;
8966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8968 *) libsuff= shlibsuff= libmagic=never-match;;
8969 esac
8970 ;;
8971 esac
8972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8973 shlibpath_overrides_runpath=no
8974 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8975 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8976 hardcode_into_libs=yes
8977 ;;
8978
8979# No shared lib support for Linux oldld, aout, or coff.
8980linux*oldld* | linux*aout* | linux*coff*)
8981 dynamic_linker=no
8982 ;;
8983
8984# This must be Linux ELF.
8985linux*)
8986 version_type=linux
8987 need_lib_prefix=no
8988 need_version=no
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=no
8994 # This implies no fast_install, which is unacceptable.
8995 # Some rework will be needed to allow for fast_install
8996 # before this can be enabled.
8997 hardcode_into_libs=yes
8998
8999 # Append ld.so.conf contents to the search path
9000 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009001 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 +00009002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9003 fi
9004
9005 # We used to test for /lib/ld.so.1 and disable shared libraries on
9006 # powerpc, because MkLinux only supported shared libraries with the
9007 # GNU dynamic linker. Since this was broken with cross compilers,
9008 # most powerpc-linux boxes support dynamic linking these days and
9009 # people can always --disable-shared, the test was removed, and we
9010 # assume the GNU/Linux dynamic linker is in use.
9011 dynamic_linker='GNU/Linux ld.so'
9012 ;;
9013
9014knetbsd*-gnu)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=no
9022 hardcode_into_libs=yes
9023 dynamic_linker='GNU ld.so'
9024 ;;
9025
9026netbsd*)
9027 version_type=sunos
9028 need_lib_prefix=no
9029 need_version=no
9030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033 dynamic_linker='NetBSD (a.out) ld.so'
9034 else
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 dynamic_linker='NetBSD ld.elf_so'
9038 fi
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9042 ;;
9043
9044newsos6)
9045 version_type=linux
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 ;;
9050
9051nto-qnx*)
9052 version_type=linux
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 ;;
9060
9061openbsd*)
9062 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009063 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009064 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9066 case $host_os in
9067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9068 *) need_version=no ;;
9069 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074 case $host_os in
9075 openbsd2.[89] | openbsd2.[89].*)
9076 shlibpath_overrides_runpath=no
9077 ;;
9078 *)
9079 shlibpath_overrides_runpath=yes
9080 ;;
9081 esac
9082 else
9083 shlibpath_overrides_runpath=yes
9084 fi
9085 ;;
9086
9087os2*)
9088 libname_spec='$name'
9089 shrext_cmds=".dll"
9090 need_lib_prefix=no
9091 library_names_spec='$libname${shared_ext} $libname.a'
9092 dynamic_linker='OS/2 ld.exe'
9093 shlibpath_var=LIBPATH
9094 ;;
9095
9096osf3* | osf4* | osf5*)
9097 version_type=osf
9098 need_lib_prefix=no
9099 need_version=no
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9105 ;;
9106
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009107solaris*)
9108 version_type=linux
9109 need_lib_prefix=no
9110 need_version=no
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9116 # ldd complains unless libraries are executable
9117 postinstall_cmds='chmod +x $lib'
9118 ;;
9119
9120sunos4*)
9121 version_type=sunos
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 if test "$with_gnu_ld" = yes; then
9127 need_lib_prefix=no
9128 fi
9129 need_version=yes
9130 ;;
9131
Reid Spencera773bd52006-08-04 18:18:08 +00009132sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009133 version_type=linux
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 case $host_vendor in
9138 sni)
9139 shlibpath_overrides_runpath=no
9140 need_lib_prefix=no
9141 export_dynamic_flag_spec='${wl}-Blargedynsym'
9142 runpath_var=LD_RUN_PATH
9143 ;;
9144 siemens)
9145 need_lib_prefix=no
9146 ;;
9147 motorola)
9148 need_lib_prefix=no
9149 need_version=no
9150 shlibpath_overrides_runpath=no
9151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9152 ;;
9153 esac
9154 ;;
9155
9156sysv4*MP*)
9157 if test -d /usr/nec ;then
9158 version_type=linux
9159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9160 soname_spec='$libname${shared_ext}.$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 fi
9163 ;;
9164
Reid Spencera773bd52006-08-04 18:18:08 +00009165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9166 version_type=freebsd-elf
9167 need_lib_prefix=no
9168 need_version=no
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 hardcode_into_libs=yes
9173 if test "$with_gnu_ld" = yes; then
9174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9175 shlibpath_overrides_runpath=no
9176 else
9177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9178 shlibpath_overrides_runpath=yes
9179 case $host_os in
9180 sco3.2v5*)
9181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9182 ;;
9183 esac
9184 fi
9185 sys_lib_dlsearch_path_spec='/usr/lib'
9186 ;;
9187
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009188uts4*)
9189 version_type=linux
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 ;;
9194
9195*)
9196 dynamic_linker=no
9197 ;;
9198esac
Reid Spencera773bd52006-08-04 18:18:08 +00009199{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9200echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009201test "$dynamic_linker" = no && can_build_shared=no
9202
Reid Spencera773bd52006-08-04 18:18:08 +00009203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9204if test "$GCC" = yes; then
9205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9206fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009207
Reid Spencera773bd52006-08-04 18:18:08 +00009208
9209{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9210echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211if test "${libltdl_cv_shlibext+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214
9215module=yes
9216eval libltdl_cv_shlibext=$shrext_cmds
9217
9218fi
Reid Spencera773bd52006-08-04 18:18:08 +00009219{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9220echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009221if test -n "$libltdl_cv_shlibext"; then
9222
9223cat >>confdefs.h <<_ACEOF
9224#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9225_ACEOF
9226
9227fi
9228
9229
Reid Spencera773bd52006-08-04 18:18:08 +00009230{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9231echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009232if test "${libltdl_cv_shlibpath_var+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235 libltdl_cv_shlibpath_var="$shlibpath_var"
9236fi
Reid Spencera773bd52006-08-04 18:18:08 +00009237{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9238echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009239if test -n "$libltdl_cv_shlibpath_var"; then
9240
9241cat >>confdefs.h <<_ACEOF
9242#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9243_ACEOF
9244
9245fi
9246
9247
Reid Spencera773bd52006-08-04 18:18:08 +00009248{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9249echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009250if test "${libltdl_cv_sys_search_path+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252else
9253 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9254fi
Reid Spencera773bd52006-08-04 18:18:08 +00009255{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9256echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257if test -n "$libltdl_cv_sys_search_path"; then
9258 sys_search_path=
9259 for dir in $libltdl_cv_sys_search_path; do
9260 if test -z "$sys_search_path"; then
9261 sys_search_path="$dir"
9262 else
9263 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9264 fi
9265 done
9266
9267cat >>confdefs.h <<_ACEOF
9268#define LTDL_SYSSEARCHPATH "$sys_search_path"
9269_ACEOF
9270
9271fi
9272
Reid Spencera773bd52006-08-04 18:18:08 +00009273{ echo "$as_me:$LINENO: checking for objdir" >&5
9274echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275if test "${libltdl_cv_objdir+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278 libltdl_cv_objdir="$objdir"
9279 if test -n "$objdir"; then
9280 :
9281 else
9282 rm -f .libs 2>/dev/null
9283 mkdir .libs 2>/dev/null
9284 if test -d .libs; then
9285 libltdl_cv_objdir=.libs
9286 else
9287 # MS-DOS does not allow filenames that begin with a dot.
9288 libltdl_cv_objdir=_libs
9289 fi
9290 rmdir .libs 2>/dev/null
9291 fi
9292
9293fi
Reid Spencera773bd52006-08-04 18:18:08 +00009294{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9295echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296
9297cat >>confdefs.h <<_ACEOF
9298#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9299_ACEOF
9300
9301
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009302
9303
9304
9305
9306# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009307{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9308echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009309if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312
9313# These are sane defaults that work on at least a few old systems.
9314# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9315
9316# Character class describing NM global symbol codes.
9317symcode='[BCDEGRST]'
9318
9319# Regexp to match symbols that can be accessed directly from C.
9320sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9321
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009322# Transform an extracted symbol line into a proper C declaration
9323lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9324
9325# Transform an extracted symbol line into symbol name and symbol address
9326lt_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'"
9327
9328# Define system-specific variables.
9329case $host_os in
9330aix*)
9331 symcode='[BCDT]'
9332 ;;
9333cygwin* | mingw* | pw32*)
9334 symcode='[ABCDGISTW]'
9335 ;;
9336hpux*) # Its linker distinguishes data from code symbols
9337 if test "$host_cpu" = ia64; then
9338 symcode='[ABCDEGRST]'
9339 fi
9340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9341 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'"
9342 ;;
9343linux*)
9344 if test "$host_cpu" = ia64; then
9345 symcode='[ABCDGIRSTW]'
9346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9347 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'"
9348 fi
9349 ;;
9350irix* | nonstopux*)
9351 symcode='[BCDEGRST]'
9352 ;;
9353osf*)
9354 symcode='[BCDEGQRST]'
9355 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009356solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357 symcode='[BDRT]'
9358 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009359sco3.2v5*)
9360 symcode='[DT]'
9361 ;;
9362sysv4.2uw2*)
9363 symcode='[DT]'
9364 ;;
9365sysv5* | sco5v6* | unixware* | OpenUNIX*)
9366 symcode='[ABDT]'
9367 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009368sysv4)
9369 symcode='[DFNSTU]'
9370 ;;
9371esac
9372
9373# Handle CRLF in mingw tool chain
9374opt_cr=
9375case $build_os in
9376mingw*)
9377 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9378 ;;
9379esac
9380
9381# If we're using GNU nm, then use its standard symbol codes.
9382case `$NM -V 2>&1` in
9383*GNU* | *'with BFD'*)
9384 symcode='[ABCDGIRSTW]' ;;
9385esac
9386
9387# Try without a prefix undercore, then with it.
9388for ac_symprfx in "" "_"; do
9389
Reid Spencera773bd52006-08-04 18:18:08 +00009390 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9391 symxfrm="\\1 $ac_symprfx\\2 \\2"
9392
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009393 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009394 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 +00009395
9396 # Check to see that the pipe works correctly.
9397 pipe_works=no
9398
9399 rm -f conftest*
9400 cat > conftest.$ac_ext <<EOF
9401#ifdef __cplusplus
9402extern "C" {
9403#endif
9404char nm_test_var;
9405void nm_test_func(){}
9406#ifdef __cplusplus
9407}
9408#endif
9409int main(){nm_test_var='a';nm_test_func();return(0);}
9410EOF
9411
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; then
9417 # Now try to grab the symbols.
9418 nlist=conftest.nm
9419 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9420 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } && test -s "$nlist"; then
9424 # Try sorting and uniquifying the output.
9425 if sort "$nlist" | uniq > "$nlist"T; then
9426 mv -f "$nlist"T "$nlist"
9427 else
9428 rm -f "$nlist"T
9429 fi
9430
9431 # Make sure that we snagged all the symbols we need.
9432 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9433 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9434 cat <<EOF > conftest.$ac_ext
9435#ifdef __cplusplus
9436extern "C" {
9437#endif
9438
9439EOF
9440 # Now generate the symbol file.
9441 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9442
9443 cat <<EOF >> conftest.$ac_ext
9444#if defined (__STDC__) && __STDC__
9445# define lt_ptr_t void *
9446#else
9447# define lt_ptr_t char *
9448# define const
9449#endif
9450
9451/* The mapping between symbol names and symbols. */
9452const struct {
9453 const char *name;
9454 lt_ptr_t address;
9455}
9456lt_preloaded_symbols[] =
9457{
9458EOF
9459 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9460 cat <<\EOF >> conftest.$ac_ext
9461 {0, (lt_ptr_t) 0}
9462};
9463
9464#ifdef __cplusplus
9465}
9466#endif
9467EOF
9468 # Now try linking the two files.
9469 mv conftest.$ac_objext conftstm.$ac_objext
9470 lt_save_LIBS="$LIBS"
9471 lt_save_CFLAGS="$CFLAGS"
9472 LIBS="conftstm.$ac_objext"
9473 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475 (eval $ac_link) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9479 pipe_works=yes
9480 fi
9481 LIBS="$lt_save_LIBS"
9482 CFLAGS="$lt_save_CFLAGS"
9483 else
9484 echo "cannot find nm_test_func in $nlist" >&5
9485 fi
9486 else
9487 echo "cannot find nm_test_var in $nlist" >&5
9488 fi
9489 else
9490 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9491 fi
9492 else
9493 echo "$progname: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9495 fi
9496 rm -f conftest* conftst*
9497
9498 # Do not use the global_symbol_pipe unless it works.
9499 if test "$pipe_works" = yes; then
9500 break
9501 else
9502 lt_cv_sys_global_symbol_pipe=
9503 fi
9504done
9505
9506fi
9507
9508if test -z "$lt_cv_sys_global_symbol_pipe"; then
9509 lt_cv_sys_global_symbol_to_cdecl=
9510fi
9511if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009512 { echo "$as_me:$LINENO: result: failed" >&5
9513echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514else
Reid Spencera773bd52006-08-04 18:18:08 +00009515 { echo "$as_me:$LINENO: result: ok" >&5
9516echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517fi
9518
9519
Reid Spencera773bd52006-08-04 18:18:08 +00009520{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9521echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9526 libltdl_cv_preloaded_symbols=yes
9527 else
9528 libltdl_cv_preloaded_symbols=no
9529 fi
9530
9531fi
Reid Spencera773bd52006-08-04 18:18:08 +00009532{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9533echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009534if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9535
9536cat >>confdefs.h <<\_ACEOF
9537#define HAVE_PRELOADED_SYMBOLS 1
9538_ACEOF
9539
9540fi
9541
9542LIBADD_DL=
9543
9544ac_ext=c
9545ac_cpp='$CPP $CPPFLAGS'
9546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548ac_compiler_gnu=$ac_cv_c_compiler_gnu
9549
9550
Reid Spencera773bd52006-08-04 18:18:08 +00009551{ echo "$as_me:$LINENO: checking for shl_load" >&5
9552echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553if test "${ac_cv_func_shl_load+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9555else
9556 cat >conftest.$ac_ext <<_ACEOF
9557/* confdefs.h. */
9558_ACEOF
9559cat confdefs.h >>conftest.$ac_ext
9560cat >>conftest.$ac_ext <<_ACEOF
9561/* end confdefs.h. */
9562/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9564#define shl_load innocuous_shl_load
9565
9566/* System header to define __stub macros and hopefully few prototypes,
9567 which can conflict with char shl_load (); below.
9568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569 <limits.h> exists even on freestanding compilers. */
9570
9571#ifdef __STDC__
9572# include <limits.h>
9573#else
9574# include <assert.h>
9575#endif
9576
9577#undef shl_load
9578
Reid Spencera773bd52006-08-04 18:18:08 +00009579/* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582#ifdef __cplusplus
9583extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009584#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585char shl_load ();
9586/* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009589#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009590choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009591#endif
9592
9593int
9594main ()
9595{
Reid Spencera773bd52006-08-04 18:18:08 +00009596return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009597 ;
9598 return 0;
9599}
9600_ACEOF
9601rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009602if { (ac_try="$ac_link"
9603case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_func_shl_load=yes
9636else
9637 echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
Reid Spencera773bd52006-08-04 18:18:08 +00009640 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641fi
Reid Spencera773bd52006-08-04 18:18:08 +00009642
9643rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644 conftest$ac_exeext conftest.$ac_ext
9645fi
Reid Spencera773bd52006-08-04 18:18:08 +00009646{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9647echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648if test $ac_cv_func_shl_load = yes; then
9649
9650cat >>confdefs.h <<\_ACEOF
9651#define HAVE_SHL_LOAD 1
9652_ACEOF
9653
9654else
Reid Spencera773bd52006-08-04 18:18:08 +00009655 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9656echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660 ac_check_lib_save_LIBS=$LIBS
9661LIBS="-ldld $LIBS"
9662cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h. */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h. */
9668
Reid Spencera773bd52006-08-04 18:18:08 +00009669/* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009672#ifdef __cplusplus
9673extern "C"
9674#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675char shl_load ();
9676int
9677main ()
9678{
Reid Spencera773bd52006-08-04 18:18:08 +00009679return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680 ;
9681 return 0;
9682}
9683_ACEOF
9684rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009685if { (ac_try="$ac_link"
9686case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699 { (case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702esac
9703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009709 { (case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712esac
9713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_dld_shl_load=yes
9719else
9720 echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
Reid Spencera773bd52006-08-04 18:18:08 +00009723 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724fi
Reid Spencera773bd52006-08-04 18:18:08 +00009725
9726rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009727 conftest$ac_exeext conftest.$ac_ext
9728LIBS=$ac_check_lib_save_LIBS
9729fi
Reid Spencera773bd52006-08-04 18:18:08 +00009730{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9731echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732if test $ac_cv_lib_dld_shl_load = yes; then
9733
9734cat >>confdefs.h <<\_ACEOF
9735#define HAVE_SHL_LOAD 1
9736_ACEOF
9737
9738 LIBADD_DL="$LIBADD_DL -ldld"
9739else
Reid Spencera773bd52006-08-04 18:18:08 +00009740 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9741echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744else
9745 ac_check_lib_save_LIBS=$LIBS
9746LIBS="-ldl $LIBS"
9747cat >conftest.$ac_ext <<_ACEOF
9748/* confdefs.h. */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h. */
9753
Reid Spencera773bd52006-08-04 18:18:08 +00009754/* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757#ifdef __cplusplus
9758extern "C"
9759#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760char dlopen ();
9761int
9762main ()
9763{
Reid Spencera773bd52006-08-04 18:18:08 +00009764return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765 ;
9766 return 0;
9767}
9768_ACEOF
9769rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009770if { (ac_try="$ac_link"
9771case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_lib_dl_dlopen=yes
9804else
9805 echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
Reid Spencera773bd52006-08-04 18:18:08 +00009808 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809fi
Reid Spencera773bd52006-08-04 18:18:08 +00009810
9811rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812 conftest$ac_exeext conftest.$ac_ext
9813LIBS=$ac_check_lib_save_LIBS
9814fi
Reid Spencera773bd52006-08-04 18:18:08 +00009815{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9816echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817if test $ac_cv_lib_dl_dlopen = yes; then
9818
9819cat >>confdefs.h <<\_ACEOF
9820#define HAVE_LIBDL 1
9821_ACEOF
9822
9823 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9824else
9825 cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h. */
9831#if HAVE_DLFCN_H
9832# include <dlfcn.h>
9833#endif
9834
9835int
9836main ()
9837{
9838dlopen(0, 0);
9839 ;
9840 return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009844if { (ac_try="$ac_link"
9845case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9858 { (case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861esac
9862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871esac
9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877
9878cat >>confdefs.h <<\_ACEOF
9879#define HAVE_LIBDL 1
9880_ACEOF
9881 libltdl_cv_func_dlopen="yes"
9882else
9883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
Reid Spencera773bd52006-08-04 18:18:08 +00009886 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9887echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891 ac_check_lib_save_LIBS=$LIBS
9892LIBS="-lsvld $LIBS"
9893cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h. */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h. */
9899
Reid Spencera773bd52006-08-04 18:18:08 +00009900/* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903#ifdef __cplusplus
9904extern "C"
9905#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906char dlopen ();
9907int
9908main ()
9909{
Reid Spencera773bd52006-08-04 18:18:08 +00009910return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911 ;
9912 return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009940 { (case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_svld_dlopen=yes
9950else
9951 echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
Reid Spencera773bd52006-08-04 18:18:08 +00009954 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955fi
Reid Spencera773bd52006-08-04 18:18:08 +00009956
9957rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958 conftest$ac_exeext conftest.$ac_ext
9959LIBS=$ac_check_lib_save_LIBS
9960fi
Reid Spencera773bd52006-08-04 18:18:08 +00009961{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9962echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963if test $ac_cv_lib_svld_dlopen = yes; then
9964
9965cat >>confdefs.h <<\_ACEOF
9966#define HAVE_LIBDL 1
9967_ACEOF
9968
9969 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9970else
Reid Spencera773bd52006-08-04 18:18:08 +00009971 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9972echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975else
9976 ac_check_lib_save_LIBS=$LIBS
9977LIBS="-ldld $LIBS"
9978cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h. */
9984
Reid Spencera773bd52006-08-04 18:18:08 +00009985/* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988#ifdef __cplusplus
9989extern "C"
9990#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991char dld_link ();
9992int
9993main ()
9994{
Reid Spencera773bd52006-08-04 18:18:08 +00009995return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996 ;
9997 return 0;
9998}
9999_ACEOF
10000rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010001if { (ac_try="$ac_link"
10002case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015 { (case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10018esac
10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028esac
10029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_lib_dld_dld_link=yes
10035else
10036 echo "$as_me: failed program was:" >&5
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
Reid Spencera773bd52006-08-04 18:18:08 +000010039 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040fi
Reid Spencera773bd52006-08-04 18:18:08 +000010041
10042rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043 conftest$ac_exeext conftest.$ac_ext
10044LIBS=$ac_check_lib_save_LIBS
10045fi
Reid Spencera773bd52006-08-04 18:18:08 +000010046{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10047echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048if test $ac_cv_lib_dld_dld_link = yes; then
10049
10050cat >>confdefs.h <<\_ACEOF
10051#define HAVE_DLD 1
10052_ACEOF
10053
10054 LIBADD_DL="$LIBADD_DL -ldld"
10055else
Reid Spencera773bd52006-08-04 18:18:08 +000010056 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10057echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 cat >conftest.$ac_ext <<_ACEOF
10062/* confdefs.h. */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h. */
10067/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10069#define _dyld_func_lookup innocuous__dyld_func_lookup
10070
10071/* System header to define __stub macros and hopefully few prototypes,
10072 which can conflict with char _dyld_func_lookup (); below.
10073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074 <limits.h> exists even on freestanding compilers. */
10075
10076#ifdef __STDC__
10077# include <limits.h>
10078#else
10079# include <assert.h>
10080#endif
10081
10082#undef _dyld_func_lookup
10083
Reid Spencera773bd52006-08-04 18:18:08 +000010084/* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087#ifdef __cplusplus
10088extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090char _dyld_func_lookup ();
10091/* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010094#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096#endif
10097
10098int
10099main ()
10100{
Reid Spencera773bd52006-08-04 18:18:08 +000010101return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010102 ;
10103 return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010107if { (ac_try="$ac_link"
10108case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_func__dyld_func_lookup=yes
10141else
10142 echo "$as_me: failed program was:" >&5
10143sed 's/^/| /' conftest.$ac_ext >&5
10144
Reid Spencera773bd52006-08-04 18:18:08 +000010145 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010146fi
Reid Spencera773bd52006-08-04 18:18:08 +000010147
10148rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149 conftest$ac_exeext conftest.$ac_ext
10150fi
Reid Spencera773bd52006-08-04 18:18:08 +000010151{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10152echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153if test $ac_cv_func__dyld_func_lookup = yes; then
10154
10155cat >>confdefs.h <<\_ACEOF
10156#define HAVE_DYLD 1
10157_ACEOF
10158
10159fi
10160
10161
10162fi
10163
10164
10165fi
10166
10167
10168fi
Reid Spencera773bd52006-08-04 18:18:08 +000010169
10170rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010171 conftest$ac_exeext conftest.$ac_ext
10172
10173fi
10174
10175
10176fi
10177
10178
10179fi
10180
10181
10182if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10183then
10184 lt_save_LIBS="$LIBS"
10185 LIBS="$LIBS $LIBADD_DL"
10186
10187for ac_func in dlerror
10188do
10189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010190{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195 cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h. */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h. */
10201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203#define $ac_func innocuous_$ac_func
10204
10205/* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char $ac_func (); below.
10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208 <limits.h> exists even on freestanding compilers. */
10209
10210#ifdef __STDC__
10211# include <limits.h>
10212#else
10213# include <assert.h>
10214#endif
10215
10216#undef $ac_func
10217
Reid Spencera773bd52006-08-04 18:18:08 +000010218/* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221#ifdef __cplusplus
10222extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224char $ac_func ();
10225/* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010228#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010229choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230#endif
10231
10232int
10233main ()
10234{
Reid Spencera773bd52006-08-04 18:18:08 +000010235return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236 ;
10237 return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010241if { (ac_try="$ac_link"
10242case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268esac
10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 eval "$as_ac_var=yes"
10275else
10276 echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
Reid Spencera773bd52006-08-04 18:18:08 +000010279 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010280fi
Reid Spencera773bd52006-08-04 18:18:08 +000010281
10282rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283 conftest$ac_exeext conftest.$ac_ext
10284fi
Reid Spencera773bd52006-08-04 18:18:08 +000010285ac_res=`eval echo '${'$as_ac_var'}'`
10286 { echo "$as_me:$LINENO: result: $ac_res" >&5
10287echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288if test `eval echo '${'$as_ac_var'}'` = yes; then
10289 cat >>confdefs.h <<_ACEOF
10290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10291_ACEOF
10292
10293fi
10294done
10295
10296 LIBS="$lt_save_LIBS"
10297fi
10298ac_ext=c
10299ac_cpp='$CPP $CPPFLAGS'
10300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302ac_compiler_gnu=$ac_cv_c_compiler_gnu
10303
10304
10305
Reid Spencera773bd52006-08-04 18:18:08 +000010306{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10307echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311 ac_cv_sys_symbol_underscore=no
10312 cat > conftest.$ac_ext <<EOF
10313void nm_test_func(){}
10314int main(){nm_test_func;return 0;}
10315EOF
10316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317 (eval $ac_compile) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; then
10321 # Now try to grab the symbols.
10322 ac_nlist=conftest.nm
10323 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10324 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && test -s "$ac_nlist"; then
10328 # See whether the symbols have a leading underscore.
10329 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10330 ac_cv_sys_symbol_underscore=yes
10331 else
10332 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10333 :
10334 else
10335 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10336 fi
10337 fi
10338 else
10339 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10340 fi
10341 else
10342 echo "configure: failed program was:" >&5
10343 cat conftest.c >&5
10344 fi
10345 rm -rf conftest*
10346
10347fi
Reid Spencera773bd52006-08-04 18:18:08 +000010348{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10349echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350
10351
10352if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10353 if test x"$libltdl_cv_func_dlopen" = xyes ||
10354 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010355 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10356echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357if test "${libltdl_cv_need_uscore+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360 libltdl_cv_need_uscore=unknown
10361 save_LIBS="$LIBS"
10362 LIBS="$LIBS $LIBADD_DL"
10363 if test "$cross_compiling" = yes; then :
10364 libltdl_cv_need_uscore=cross
10365else
10366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367 lt_status=$lt_dlunknown
10368 cat > conftest.$ac_ext <<EOF
David Greenea696d242007-06-28 19:36:08 +000010369#line 10369 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370#include "confdefs.h"
10371
10372#if HAVE_DLFCN_H
10373#include <dlfcn.h>
10374#endif
10375
10376#include <stdio.h>
10377
10378#ifdef RTLD_GLOBAL
10379# define LT_DLGLOBAL RTLD_GLOBAL
10380#else
10381# ifdef DL_GLOBAL
10382# define LT_DLGLOBAL DL_GLOBAL
10383# else
10384# define LT_DLGLOBAL 0
10385# endif
10386#endif
10387
10388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389 find out it does not work in some platform. */
10390#ifndef LT_DLLAZY_OR_NOW
10391# ifdef RTLD_LAZY
10392# define LT_DLLAZY_OR_NOW RTLD_LAZY
10393# else
10394# ifdef DL_LAZY
10395# define LT_DLLAZY_OR_NOW DL_LAZY
10396# else
10397# ifdef RTLD_NOW
10398# define LT_DLLAZY_OR_NOW RTLD_NOW
10399# else
10400# ifdef DL_NOW
10401# define LT_DLLAZY_OR_NOW DL_NOW
10402# else
10403# define LT_DLLAZY_OR_NOW 0
10404# endif
10405# endif
10406# endif
10407# endif
10408#endif
10409
10410#ifdef __cplusplus
10411extern "C" void exit (int);
10412#endif
10413
10414void fnord() { int i=42;}
10415int main ()
10416{
10417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418 int status = $lt_dlunknown;
10419
10420 if (self)
10421 {
10422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424 /* dlclose (self); */
10425 }
Reid Spencera773bd52006-08-04 18:18:08 +000010426 else
10427 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428
10429 exit (status);
10430}
10431EOF
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010437 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438 lt_status=$?
10439 case x$lt_status in
10440 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10441 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010442 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443 esac
10444 else :
10445 # compilation failed
10446
10447 fi
10448fi
10449rm -fr conftest*
10450
10451 LIBS="$save_LIBS"
10452
10453fi
Reid Spencera773bd52006-08-04 18:18:08 +000010454{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10455echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456 fi
10457fi
10458
10459if test x"$libltdl_cv_need_uscore" = xyes; then
10460
10461cat >>confdefs.h <<\_ACEOF
10462#define NEED_USCORE 1
10463_ACEOF
10464
10465fi
10466
10467
Reid Spencera773bd52006-08-04 18:18:08 +000010468{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10469echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473 # PORTME does your system automatically load deplibs for dlopen?
10474 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10475 # For now, we just catch OSes we know something about -- in the
10476 # future, we'll try test this programmatically.
10477 libltdl_cv_sys_dlopen_deplibs=unknown
10478 case "$host_os" in
10479 aix3*|aix4.1.*|aix4.2.*)
10480 # Unknown whether this is true for these versions of AIX, but
10481 # we want this `case' here to explicitly catch those versions.
10482 libltdl_cv_sys_dlopen_deplibs=unknown
10483 ;;
10484 aix[45]*)
10485 libltdl_cv_sys_dlopen_deplibs=yes
10486 ;;
10487 darwin*)
10488 # Assuming the user has installed a libdl from somewhere, this is true
10489 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10490 libltdl_cv_sys_dlopen_deplibs=yes
10491 ;;
10492 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10493 # GNU and its variants, using gnu ld.so (Glibc)
10494 libltdl_cv_sys_dlopen_deplibs=yes
10495 ;;
10496 hpux10*|hpux11*)
10497 libltdl_cv_sys_dlopen_deplibs=yes
10498 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010499 interix*)
10500 libltdl_cv_sys_dlopen_deplibs=yes
10501 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502 irix[12345]*|irix6.[01]*)
10503 # Catch all versions of IRIX before 6.2, and indicate that we don't
10504 # know how it worked for any of those versions.
10505 libltdl_cv_sys_dlopen_deplibs=unknown
10506 ;;
10507 irix*)
10508 # The case above catches anything before 6.2, and it's known that
10509 # at 6.2 and later dlopen does load deplibs.
10510 libltdl_cv_sys_dlopen_deplibs=yes
10511 ;;
10512 netbsd*)
10513 libltdl_cv_sys_dlopen_deplibs=yes
10514 ;;
10515 openbsd*)
10516 libltdl_cv_sys_dlopen_deplibs=yes
10517 ;;
10518 osf[1234]*)
10519 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10520 # it did *not* use an RPATH in a shared library to find objects the
10521 # library depends on, so we explictly say `no'.
10522 libltdl_cv_sys_dlopen_deplibs=no
10523 ;;
10524 osf5.0|osf5.0a|osf5.1)
10525 # dlopen *does* load deplibs and with the right loader patch applied
10526 # it even uses RPATH in a shared library to search for shared objects
10527 # that the library depends on, but there's no easy way to know if that
10528 # patch is installed. Since this is the case, all we can really
10529 # say is unknown -- it depends on the patch being installed. If
10530 # it is, this changes to `yes'. Without it, it would be `no'.
10531 libltdl_cv_sys_dlopen_deplibs=unknown
10532 ;;
10533 osf*)
10534 # the two cases above should catch all versions of osf <= 5.1. Read
10535 # the comments above for what we know about them.
10536 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10537 # is used to find them so we can finally say `yes'.
10538 libltdl_cv_sys_dlopen_deplibs=yes
10539 ;;
10540 solaris*)
10541 libltdl_cv_sys_dlopen_deplibs=yes
10542 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10544 libltdl_cv_sys_dlopen_deplibs=yes
10545 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546 esac
10547
10548fi
Reid Spencera773bd52006-08-04 18:18:08 +000010549{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10550echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10552
10553cat >>confdefs.h <<\_ACEOF
10554#define LTDL_DLOPEN_DEPLIBS 1
10555_ACEOF
10556
10557fi
10558
10559
10560for ac_header in argz.h
10561do
10562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568fi
Reid Spencera773bd52006-08-04 18:18:08 +000010569ac_res=`eval echo '${'$as_ac_Header'}'`
10570 { echo "$as_me:$LINENO: result: $ac_res" >&5
10571echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572else
10573 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010574{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h. */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h. */
10582$ac_includes_default
10583#include <$ac_header>
10584_ACEOF
10585rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010586if { (ac_try="$ac_compile"
10587case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 { (case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603esac
10604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010610 { (case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613esac
10614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_header_compiler=yes
10620else
10621 echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
Reid Spencera773bd52006-08-04 18:18:08 +000010624 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625fi
Reid Spencera773bd52006-08-04 18:18:08 +000010626
10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630
10631# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010632{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634cat >conftest.$ac_ext <<_ACEOF
10635/* confdefs.h. */
10636_ACEOF
10637cat confdefs.h >>conftest.$ac_ext
10638cat >>conftest.$ac_ext <<_ACEOF
10639/* end confdefs.h. */
10640#include <$ac_header>
10641_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010642if { (ac_try="$ac_cpp conftest.$ac_ext"
10643case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } >/dev/null; then
10655 if test -s conftest.err; then
10656 ac_cpp_err=$ac_c_preproc_warn_flag
10657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658 else
10659 ac_cpp_err=
10660 fi
10661else
10662 ac_cpp_err=yes
10663fi
10664if test -z "$ac_cpp_err"; then
10665 ac_header_preproc=yes
10666else
10667 echo "$as_me: failed program was:" >&5
10668sed 's/^/| /' conftest.$ac_ext >&5
10669
10670 ac_header_preproc=no
10671fi
Reid Spencera773bd52006-08-04 18:18:08 +000010672
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010674{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676
10677# So? What about this header?
10678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679 yes:no: )
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684 ac_header_preproc=yes
10685 ;;
10686 no:yes:* )
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010699 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700## ----------------------------------- ##
10701## Report this to llvmbugs@cs.uiuc.edu ##
10702## ----------------------------------- ##
10703_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010704 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705 ;;
10706esac
Reid Spencera773bd52006-08-04 18:18:08 +000010707{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711else
10712 eval "$as_ac_Header=\$ac_header_preproc"
10713fi
Reid Spencera773bd52006-08-04 18:18:08 +000010714ac_res=`eval echo '${'$as_ac_Header'}'`
10715 { echo "$as_me:$LINENO: result: $ac_res" >&5
10716echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717
10718fi
10719if test `eval echo '${'$as_ac_Header'}'` = yes; then
10720 cat >>confdefs.h <<_ACEOF
10721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722_ACEOF
10723
10724fi
10725
10726done
10727
10728
Reid Spencera773bd52006-08-04 18:18:08 +000010729{ echo "$as_me:$LINENO: checking for error_t" >&5
10730echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731if test "${ac_cv_type_error_t+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734 cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h. */
10740#if HAVE_ARGZ_H
10741# include <argz.h>
10742#endif
10743
Reid Spencera773bd52006-08-04 18:18:08 +000010744typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745int
10746main ()
10747{
Reid Spencera773bd52006-08-04 18:18:08 +000010748if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010750if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751 return 0;
10752 ;
10753 return 0;
10754}
10755_ACEOF
10756rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010757if { (ac_try="$ac_compile"
10758case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761esac
10762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774esac
10775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010781 { (case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784esac
10785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_type_error_t=yes
10791else
10792 echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
Reid Spencera773bd52006-08-04 18:18:08 +000010795 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010796fi
Reid Spencera773bd52006-08-04 18:18:08 +000010797
10798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799fi
Reid Spencera773bd52006-08-04 18:18:08 +000010800{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10801echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802if test $ac_cv_type_error_t = yes; then
10803
10804cat >>confdefs.h <<_ACEOF
10805#define HAVE_ERROR_T 1
10806_ACEOF
10807
10808
10809else
10810
10811cat >>confdefs.h <<\_ACEOF
10812#define error_t int
10813_ACEOF
10814
10815fi
10816
10817
10818
10819
10820
10821
10822
10823for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10824do
10825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010826{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10828if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
10837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10839#define $ac_func innocuous_$ac_func
10840
10841/* System header to define __stub macros and hopefully few prototypes,
10842 which can conflict with char $ac_func (); below.
10843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844 <limits.h> exists even on freestanding compilers. */
10845
10846#ifdef __STDC__
10847# include <limits.h>
10848#else
10849# include <assert.h>
10850#endif
10851
10852#undef $ac_func
10853
Reid Spencera773bd52006-08-04 18:18:08 +000010854/* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857#ifdef __cplusplus
10858extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010859#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860char $ac_func ();
10861/* The GNU C library defines this for functions which it implements
10862 to always fail with ENOSYS. Some functions are actually named
10863 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010864#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010866#endif
10867
10868int
10869main ()
10870{
Reid Spencera773bd52006-08-04 18:18:08 +000010871return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872 ;
10873 return 0;
10874}
10875_ACEOF
10876rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010877if { (ac_try="$ac_link"
10878case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010901 { (case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904esac
10905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 eval "$as_ac_var=yes"
10911else
10912 echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
Reid Spencera773bd52006-08-04 18:18:08 +000010915 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916fi
Reid Spencera773bd52006-08-04 18:18:08 +000010917
10918rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919 conftest$ac_exeext conftest.$ac_ext
10920fi
Reid Spencera773bd52006-08-04 18:18:08 +000010921ac_res=`eval echo '${'$as_ac_var'}'`
10922 { echo "$as_me:$LINENO: result: $ac_res" >&5
10923echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924if test `eval echo '${'$as_ac_var'}'` = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927_ACEOF
10928
10929fi
10930done
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10960 stdio.h unistd.h
10961do
10962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968fi
Reid Spencera773bd52006-08-04 18:18:08 +000010969ac_res=`eval echo '${'$as_ac_Header'}'`
10970 { echo "$as_me:$LINENO: result: $ac_res" >&5
10971echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010972else
10973 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976cat >conftest.$ac_ext <<_ACEOF
10977/* confdefs.h. */
10978_ACEOF
10979cat confdefs.h >>conftest.$ac_ext
10980cat >>conftest.$ac_ext <<_ACEOF
10981/* end confdefs.h. */
10982$ac_includes_default
10983#include <$ac_header>
10984_ACEOF
10985rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010986if { (ac_try="$ac_compile"
10987case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003esac
11004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; } &&
11009 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013esac
11014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_header_compiler=yes
11020else
11021 echo "$as_me: failed program was:" >&5
11022sed 's/^/| /' conftest.$ac_ext >&5
11023
Reid Spencera773bd52006-08-04 18:18:08 +000011024 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025fi
Reid Spencera773bd52006-08-04 18:18:08 +000011026
11027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011030
11031# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040#include <$ac_header>
11041_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011042if { (ac_try="$ac_cpp conftest.$ac_ext"
11043case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046esac
11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } >/dev/null; then
11055 if test -s conftest.err; then
11056 ac_cpp_err=$ac_c_preproc_warn_flag
11057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11058 else
11059 ac_cpp_err=
11060 fi
11061else
11062 ac_cpp_err=yes
11063fi
11064if test -z "$ac_cpp_err"; then
11065 ac_header_preproc=yes
11066else
11067 echo "$as_me: failed program was:" >&5
11068sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 ac_header_preproc=no
11071fi
Reid Spencera773bd52006-08-04 18:18:08 +000011072
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076
11077# So? What about this header?
11078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079 yes:no: )
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11084 ac_header_preproc=yes
11085 ;;
11086 no:yes:* )
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011099 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100## ----------------------------------- ##
11101## Report this to llvmbugs@cs.uiuc.edu ##
11102## ----------------------------------- ##
11103_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011104 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105 ;;
11106esac
Reid Spencera773bd52006-08-04 18:18:08 +000011107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 eval "$as_ac_Header=\$ac_header_preproc"
11113fi
Reid Spencera773bd52006-08-04 18:18:08 +000011114ac_res=`eval echo '${'$as_ac_Header'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011117
11118fi
11119if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122_ACEOF
11123
11124fi
11125
11126done
11127
11128
11129
11130
11131
11132for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11133do
11134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140fi
Reid Spencera773bd52006-08-04 18:18:08 +000011141ac_res=`eval echo '${'$as_ac_Header'}'`
11142 { echo "$as_me:$LINENO: result: $ac_res" >&5
11143echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144else
11145 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011146{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011148cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h. */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h. */
11154$ac_includes_default
11155#include <$ac_header>
11156_ACEOF
11157rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011158if { (ac_try="$ac_compile"
11159case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162esac
11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175esac
11176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185esac
11186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_header_compiler=yes
11192else
11193 echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
Reid Spencera773bd52006-08-04 18:18:08 +000011196 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197fi
Reid Spencera773bd52006-08-04 18:18:08 +000011198
11199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011202
11203# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011204{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011206cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212#include <$ac_header>
11213_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011214if { (ac_try="$ac_cpp conftest.$ac_ext"
11215case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } >/dev/null; then
11227 if test -s conftest.err; then
11228 ac_cpp_err=$ac_c_preproc_warn_flag
11229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11230 else
11231 ac_cpp_err=
11232 fi
11233else
11234 ac_cpp_err=yes
11235fi
11236if test -z "$ac_cpp_err"; then
11237 ac_header_preproc=yes
11238else
11239 echo "$as_me: failed program was:" >&5
11240sed 's/^/| /' conftest.$ac_ext >&5
11241
11242 ac_header_preproc=no
11243fi
Reid Spencera773bd52006-08-04 18:18:08 +000011244
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248
11249# So? What about this header?
11250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251 yes:no: )
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256 ac_header_preproc=yes
11257 ;;
11258 no:yes:* )
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011271 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011272## ----------------------------------- ##
11273## Report this to llvmbugs@cs.uiuc.edu ##
11274## ----------------------------------- ##
11275_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011276 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277 ;;
11278esac
Reid Spencera773bd52006-08-04 18:18:08 +000011279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 eval "$as_ac_Header=\$ac_header_preproc"
11285fi
Reid Spencera773bd52006-08-04 18:18:08 +000011286ac_res=`eval echo '${'$as_ac_Header'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011289
11290fi
11291if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294_ACEOF
11295
11296fi
11297
11298done
11299
11300
11301
11302for ac_header in string.h strings.h
11303do
11304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310fi
Reid Spencera773bd52006-08-04 18:18:08 +000011311ac_res=`eval echo '${'$as_ac_Header'}'`
11312 { echo "$as_me:$LINENO: result: $ac_res" >&5
11313echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011314else
11315 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318cat >conftest.$ac_ext <<_ACEOF
11319/* confdefs.h. */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
11323/* end confdefs.h. */
11324$ac_includes_default
11325#include <$ac_header>
11326_ACEOF
11327rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011328if { (ac_try="$ac_compile"
11329case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345esac
11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11355esac
11356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_header_compiler=yes
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
Reid Spencera773bd52006-08-04 18:18:08 +000011366 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367fi
Reid Spencera773bd52006-08-04 18:18:08 +000011368
11369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011372
11373# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011374{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h. */
11382#include <$ac_header>
11383_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011384if { (ac_try="$ac_cpp conftest.$ac_ext"
11385case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11388esac
11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400 else
11401 ac_cpp_err=
11402 fi
11403else
11404 ac_cpp_err=yes
11405fi
11406if test -z "$ac_cpp_err"; then
11407 ac_header_preproc=yes
11408else
11409 echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412 ac_header_preproc=no
11413fi
Reid Spencera773bd52006-08-04 18:18:08 +000011414
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011416{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418
11419# So? What about this header?
11420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421 yes:no: )
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc=yes
11427 ;;
11428 no:yes:* )
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011441 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442## ----------------------------------- ##
11443## Report this to llvmbugs@cs.uiuc.edu ##
11444## ----------------------------------- ##
11445_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011446 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011447 ;;
11448esac
Reid Spencera773bd52006-08-04 18:18:08 +000011449{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454 eval "$as_ac_Header=\$ac_header_preproc"
11455fi
Reid Spencera773bd52006-08-04 18:18:08 +000011456ac_res=`eval echo '${'$as_ac_Header'}'`
11457 { echo "$as_me:$LINENO: result: $ac_res" >&5
11458echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459
11460fi
11461if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464_ACEOF
11465 break
11466fi
11467
11468done
11469
11470
11471
11472
11473for ac_func in strchr index
11474do
11475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011476{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11489#define $ac_func innocuous_$ac_func
11490
11491/* System header to define __stub macros and hopefully few prototypes,
11492 which can conflict with char $ac_func (); below.
11493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 <limits.h> exists even on freestanding compilers. */
11495
11496#ifdef __STDC__
11497# include <limits.h>
11498#else
11499# include <assert.h>
11500#endif
11501
11502#undef $ac_func
11503
Reid Spencera773bd52006-08-04 18:18:08 +000011504/* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507#ifdef __cplusplus
11508extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011509#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510char $ac_func ();
11511/* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011514#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011516#endif
11517
11518int
11519main ()
11520{
Reid Spencera773bd52006-08-04 18:18:08 +000011521return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522 ;
11523 return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011527if { (ac_try="$ac_link"
11528case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 eval "$as_ac_var=yes"
11561else
11562 echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
Reid Spencera773bd52006-08-04 18:18:08 +000011565 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566fi
Reid Spencera773bd52006-08-04 18:18:08 +000011567
11568rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569 conftest$ac_exeext conftest.$ac_ext
11570fi
Reid Spencera773bd52006-08-04 18:18:08 +000011571ac_res=`eval echo '${'$as_ac_var'}'`
11572 { echo "$as_me:$LINENO: result: $ac_res" >&5
11573echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011574if test `eval echo '${'$as_ac_var'}'` = yes; then
11575 cat >>confdefs.h <<_ACEOF
11576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11577_ACEOF
11578 break
11579fi
11580done
11581
11582
11583
11584for ac_func in strrchr rindex
11585do
11586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592 cat >conftest.$ac_ext <<_ACEOF
11593/* confdefs.h. */
11594_ACEOF
11595cat confdefs.h >>conftest.$ac_ext
11596cat >>conftest.$ac_ext <<_ACEOF
11597/* end confdefs.h. */
11598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600#define $ac_func innocuous_$ac_func
11601
11602/* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11606
11607#ifdef __STDC__
11608# include <limits.h>
11609#else
11610# include <assert.h>
11611#endif
11612
11613#undef $ac_func
11614
Reid Spencera773bd52006-08-04 18:18:08 +000011615/* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618#ifdef __cplusplus
11619extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621char $ac_func ();
11622/* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011625#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011626choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011627#endif
11628
11629int
11630main ()
11631{
Reid Spencera773bd52006-08-04 18:18:08 +000011632return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011638if { (ac_try="$ac_link"
11639case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11672else
11673 echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
Reid Spencera773bd52006-08-04 18:18:08 +000011676 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677fi
Reid Spencera773bd52006-08-04 18:18:08 +000011678
11679rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680 conftest$ac_exeext conftest.$ac_ext
11681fi
Reid Spencera773bd52006-08-04 18:18:08 +000011682ac_res=`eval echo '${'$as_ac_var'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685if test `eval echo '${'$as_ac_var'}'` = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688_ACEOF
11689 break
11690fi
11691done
11692
11693
11694
11695for ac_func in memcpy bcopy
11696do
11697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703 cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
11709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11711#define $ac_func innocuous_$ac_func
11712
11713/* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char $ac_func (); below.
11715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716 <limits.h> exists even on freestanding compilers. */
11717
11718#ifdef __STDC__
11719# include <limits.h>
11720#else
11721# include <assert.h>
11722#endif
11723
11724#undef $ac_func
11725
Reid Spencera773bd52006-08-04 18:18:08 +000011726/* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729#ifdef __cplusplus
11730extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011731#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732char $ac_func ();
11733/* The GNU C library defines this for functions which it implements
11734 to always fail with ENOSYS. Some functions are actually named
11735 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011736#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011737choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738#endif
11739
11740int
11741main ()
11742{
Reid Spencera773bd52006-08-04 18:18:08 +000011743return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744 ;
11745 return 0;
11746}
11747_ACEOF
11748rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011749if { (ac_try="$ac_link"
11750case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763 { (case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766esac
11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 eval "$as_ac_var=yes"
11783else
11784 echo "$as_me: failed program was:" >&5
11785sed 's/^/| /' conftest.$ac_ext >&5
11786
Reid Spencera773bd52006-08-04 18:18:08 +000011787 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788fi
Reid Spencera773bd52006-08-04 18:18:08 +000011789
11790rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011791 conftest$ac_exeext conftest.$ac_ext
11792fi
Reid Spencera773bd52006-08-04 18:18:08 +000011793ac_res=`eval echo '${'$as_ac_var'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796if test `eval echo '${'$as_ac_var'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799_ACEOF
11800 break
11801fi
11802done
11803
11804
11805
11806for ac_func in memmove strcmp
11807do
11808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814 cat >conftest.$ac_ext <<_ACEOF
11815/* confdefs.h. */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h. */
11820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11822#define $ac_func innocuous_$ac_func
11823
11824/* System header to define __stub macros and hopefully few prototypes,
11825 which can conflict with char $ac_func (); below.
11826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827 <limits.h> exists even on freestanding compilers. */
11828
11829#ifdef __STDC__
11830# include <limits.h>
11831#else
11832# include <assert.h>
11833#endif
11834
11835#undef $ac_func
11836
Reid Spencera773bd52006-08-04 18:18:08 +000011837/* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840#ifdef __cplusplus
11841extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011842#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011843char $ac_func ();
11844/* The GNU C library defines this for functions which it implements
11845 to always fail with ENOSYS. Some functions are actually named
11846 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011847#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011849#endif
11850
11851int
11852main ()
11853{
Reid Spencera773bd52006-08-04 18:18:08 +000011854return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855 ;
11856 return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011860if { (ac_try="$ac_link"
11861case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11874 { (case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 eval "$as_ac_var=yes"
11894else
11895 echo "$as_me: failed program was:" >&5
11896sed 's/^/| /' conftest.$ac_ext >&5
11897
Reid Spencera773bd52006-08-04 18:18:08 +000011898 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899fi
Reid Spencera773bd52006-08-04 18:18:08 +000011900
11901rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011902 conftest$ac_exeext conftest.$ac_ext
11903fi
Reid Spencera773bd52006-08-04 18:18:08 +000011904ac_res=`eval echo '${'$as_ac_var'}'`
11905 { echo "$as_me:$LINENO: result: $ac_res" >&5
11906echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907if test `eval echo '${'$as_ac_var'}'` = yes; then
11908 cat >>confdefs.h <<_ACEOF
11909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11910_ACEOF
11911
11912fi
11913done
11914
11915
11916
11917
11918for ac_func in closedir opendir readdir
11919do
11920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11934#define $ac_func innocuous_$ac_func
11935
11936/* System header to define __stub macros and hopefully few prototypes,
11937 which can conflict with char $ac_func (); below.
11938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11939 <limits.h> exists even on freestanding compilers. */
11940
11941#ifdef __STDC__
11942# include <limits.h>
11943#else
11944# include <assert.h>
11945#endif
11946
11947#undef $ac_func
11948
Reid Spencera773bd52006-08-04 18:18:08 +000011949/* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952#ifdef __cplusplus
11953extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011954#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955char $ac_func ();
11956/* The GNU C library defines this for functions which it implements
11957 to always fail with ENOSYS. Some functions are actually named
11958 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011959#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011961#endif
11962
11963int
11964main ()
11965{
Reid Spencera773bd52006-08-04 18:18:08 +000011966return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011967 ;
11968 return 0;
11969}
11970_ACEOF
11971rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011972if { (ac_try="$ac_link"
11973case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011996 { (case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999esac
12000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 eval "$as_ac_var=yes"
12006else
12007 echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
Reid Spencera773bd52006-08-04 18:18:08 +000012010 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011fi
Reid Spencera773bd52006-08-04 18:18:08 +000012012
12013rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012014 conftest$ac_exeext conftest.$ac_ext
12015fi
Reid Spencera773bd52006-08-04 18:18:08 +000012016ac_res=`eval echo '${'$as_ac_var'}'`
12017 { echo "$as_me:$LINENO: result: $ac_res" >&5
12018echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019if test `eval echo '${'$as_ac_var'}'` = yes; then
12020 cat >>confdefs.h <<_ACEOF
12021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12022_ACEOF
12023
12024fi
12025done
12026
12027
Reid Spencera773bd52006-08-04 18:18:08 +000012028# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012030 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031 case $enableval in
12032 yes) enable_shared=yes ;;
12033 no) enable_shared=no ;;
12034 *)
12035 enable_shared=no
12036 # Look at the argument we got. We use all the common list separators.
12037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12038 for pkg in $enableval; do
12039 IFS="$lt_save_ifs"
12040 if test "X$pkg" = "X$p"; then
12041 enable_shared=yes
12042 fi
12043 done
12044 IFS="$lt_save_ifs"
12045 ;;
12046 esac
12047else
12048 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012049fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012050
Reid Spencera773bd52006-08-04 18:18:08 +000012051
12052# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012054 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012055 case $enableval in
12056 yes) enable_static=yes ;;
12057 no) enable_static=no ;;
12058 *)
12059 enable_static=no
12060 # Look at the argument we got. We use all the common list separators.
12061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12062 for pkg in $enableval; do
12063 IFS="$lt_save_ifs"
12064 if test "X$pkg" = "X$p"; then
12065 enable_static=yes
12066 fi
12067 done
12068 IFS="$lt_save_ifs"
12069 ;;
12070 esac
12071else
12072 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012073fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012074
Reid Spencera773bd52006-08-04 18:18:08 +000012075
12076# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012078 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012079 case $enableval in
12080 yes) enable_fast_install=yes ;;
12081 no) enable_fast_install=no ;;
12082 *)
12083 enable_fast_install=no
12084 # Look at the argument we got. We use all the common list separators.
12085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12086 for pkg in $enableval; do
12087 IFS="$lt_save_ifs"
12088 if test "X$pkg" = "X$p"; then
12089 enable_fast_install=yes
12090 fi
12091 done
12092 IFS="$lt_save_ifs"
12093 ;;
12094 esac
12095else
12096 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012097fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012098
Reid Spencera773bd52006-08-04 18:18:08 +000012099
12100{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12101echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102if test "${lt_cv_path_SED+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105 # Loop through the user's path and test for sed and gsed.
12106# Then use that list of sed's as ones to test for truncation.
12107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12108for as_dir in $PATH
12109do
12110 IFS=$as_save_IFS
12111 test -z "$as_dir" && as_dir=.
12112 for lt_ac_prog in sed gsed; do
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12115 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12116 fi
12117 done
12118 done
12119done
12120lt_ac_max=0
12121lt_ac_count=0
12122# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12123# along with /bin/sed that truncates output.
12124for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012125 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012126 cat /dev/null > conftest.in
12127 lt_ac_count=0
12128 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12129 # Check for GNU sed and select it if it is found.
12130 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12131 lt_cv_path_SED=$lt_ac_sed
12132 break
12133 fi
12134 while true; do
12135 cat conftest.in conftest.in >conftest.tmp
12136 mv conftest.tmp conftest.in
12137 cp conftest.in conftest.nl
12138 echo >>conftest.nl
12139 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12140 cmp -s conftest.out conftest.nl || break
12141 # 10000 chars as input seems more than enough
12142 test $lt_ac_count -gt 10 && break
12143 lt_ac_count=`expr $lt_ac_count + 1`
12144 if test $lt_ac_count -gt $lt_ac_max; then
12145 lt_ac_max=$lt_ac_count
12146 lt_cv_path_SED=$lt_ac_sed
12147 fi
12148 done
12149done
12150
12151fi
12152
12153SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012154{ echo "$as_me:$LINENO: result: $SED" >&5
12155echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012156
12157
Reid Spencera773bd52006-08-04 18:18:08 +000012158# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012159if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012160 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161else
12162 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012163fi
12164
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012165ac_prog=ld
12166if test "$GCC" = yes; then
12167 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012168 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12169echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012170 case $host in
12171 *-*-mingw*)
12172 # gcc leaves a trailing carriage return which upsets mingw
12173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12174 *)
12175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12176 esac
12177 case $ac_prog in
12178 # Accept absolute paths.
12179 [\\/]* | ?:[\\/]*)
12180 re_direlt='/[^/][^/]*/\.\./'
12181 # Canonicalize the pathname of ld
12182 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12183 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12184 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12185 done
12186 test -z "$LD" && LD="$ac_prog"
12187 ;;
12188 "")
12189 # If it fails, then pretend we aren't using GCC.
12190 ac_prog=ld
12191 ;;
12192 *)
12193 # If it is relative, then search for the first ld in PATH.
12194 with_gnu_ld=unknown
12195 ;;
12196 esac
12197elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012198 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12199echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012200else
Reid Spencera773bd52006-08-04 18:18:08 +000012201 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12202echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012203fi
12204if test "${lt_cv_path_LD+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206else
12207 if test -z "$LD"; then
12208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12209 for ac_dir in $PATH; do
12210 IFS="$lt_save_ifs"
12211 test -z "$ac_dir" && ac_dir=.
12212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12213 lt_cv_path_LD="$ac_dir/$ac_prog"
12214 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012215 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012216 # Break only if it was the GNU/non-GNU ld that we prefer.
12217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12218 *GNU* | *'with BFD'*)
12219 test "$with_gnu_ld" != no && break
12220 ;;
12221 *)
12222 test "$with_gnu_ld" != yes && break
12223 ;;
12224 esac
12225 fi
12226 done
12227 IFS="$lt_save_ifs"
12228else
12229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12230fi
12231fi
12232
12233LD="$lt_cv_path_LD"
12234if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012235 { echo "$as_me:$LINENO: result: $LD" >&5
12236echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012237else
Reid Spencera773bd52006-08-04 18:18:08 +000012238 { echo "$as_me:$LINENO: result: no" >&5
12239echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240fi
12241test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12242echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12243 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012244{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12245echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246if test "${lt_cv_prog_gnu_ld+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12248else
Reid Spencera773bd52006-08-04 18:18:08 +000012249 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012250case `$LD -v 2>&1 </dev/null` in
12251*GNU* | *'with BFD'*)
12252 lt_cv_prog_gnu_ld=yes
12253 ;;
12254*)
12255 lt_cv_prog_gnu_ld=no
12256 ;;
12257esac
12258fi
Reid Spencera773bd52006-08-04 18:18:08 +000012259{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12260echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012261with_gnu_ld=$lt_cv_prog_gnu_ld
12262
12263
Reid Spencera773bd52006-08-04 18:18:08 +000012264{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12265echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012266if test "${lt_cv_ld_reload_flag+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 lt_cv_ld_reload_flag='-r'
12270fi
Reid Spencera773bd52006-08-04 18:18:08 +000012271{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12272echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273reload_flag=$lt_cv_ld_reload_flag
12274case $reload_flag in
12275"" | " "*) ;;
12276*) reload_flag=" $reload_flag" ;;
12277esac
12278reload_cmds='$LD$reload_flag -o $output$reload_objs'
12279case $host_os in
12280 darwin*)
12281 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012282 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012283 else
12284 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12285 fi
12286 ;;
12287esac
12288
Reid Spencera773bd52006-08-04 18:18:08 +000012289{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12290echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012291if test "${lt_cv_deplibs_check_method+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293else
12294 lt_cv_file_magic_cmd='$MAGIC_CMD'
12295lt_cv_file_magic_test_file=
12296lt_cv_deplibs_check_method='unknown'
12297# Need to set the preceding variable on all platforms that support
12298# interlibrary dependencies.
12299# 'none' -- dependencies not supported.
12300# `unknown' -- same as none, but documents that we really don't know.
12301# 'pass_all' -- all dependencies passed with no checks.
12302# 'test_compile' -- check by making test program.
12303# 'file_magic [[regex]]' -- check by looking for files in library path
12304# which responds to the $file_magic_cmd with a given extended regex.
12305# If you have `file' or equivalent on your system and you're not sure
12306# whether `pass_all' will *always* work, you probably want this one.
12307
12308case $host_os in
12309aix4* | aix5*)
12310 lt_cv_deplibs_check_method=pass_all
12311 ;;
12312
12313beos*)
12314 lt_cv_deplibs_check_method=pass_all
12315 ;;
12316
12317bsdi[45]*)
12318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12319 lt_cv_file_magic_cmd='/usr/bin/file -L'
12320 lt_cv_file_magic_test_file=/shlib/libc.so
12321 ;;
12322
12323cygwin*)
12324 # func_win32_libid is a shell function defined in ltmain.sh
12325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12326 lt_cv_file_magic_cmd='func_win32_libid'
12327 ;;
12328
12329mingw* | pw32*)
12330 # Base MSYS/MinGW do not provide the 'file' command needed by
12331 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12333 lt_cv_file_magic_cmd='$OBJDUMP -f'
12334 ;;
12335
12336darwin* | rhapsody*)
12337 lt_cv_deplibs_check_method=pass_all
12338 ;;
12339
Reid Spencera773bd52006-08-04 18:18:08 +000012340freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012341 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12342 case $host_cpu in
12343 i*86 )
12344 # Not sure whether the presence of OpenBSD here was a mistake.
12345 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012346 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 +000012347 lt_cv_file_magic_cmd=/usr/bin/file
12348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12349 ;;
12350 esac
12351 else
12352 lt_cv_deplibs_check_method=pass_all
12353 fi
12354 ;;
12355
12356gnu*)
12357 lt_cv_deplibs_check_method=pass_all
12358 ;;
12359
12360hpux10.20* | hpux11*)
12361 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012362 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012363 ia64*)
12364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12366 ;;
12367 hppa*64*)
12368 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]'
12369 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12370 ;;
12371 *)
12372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12373 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12374 ;;
12375 esac
12376 ;;
12377
Reid Spencera773bd52006-08-04 18:18:08 +000012378interix3*)
12379 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12381 ;;
12382
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012383irix5* | irix6* | nonstopux*)
12384 case $LD in
12385 *-32|*"-32 ") libmagic=32-bit;;
12386 *-n32|*"-n32 ") libmagic=N32;;
12387 *-64|*"-64 ") libmagic=64-bit;;
12388 *) libmagic=never-match;;
12389 esac
12390 lt_cv_deplibs_check_method=pass_all
12391 ;;
12392
12393# This must be Linux ELF.
12394linux*)
12395 lt_cv_deplibs_check_method=pass_all
12396 ;;
12397
12398netbsd*)
12399 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12401 else
12402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12403 fi
12404 ;;
12405
12406newos6*)
12407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12408 lt_cv_file_magic_cmd=/usr/bin/file
12409 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12410 ;;
12411
12412nto-qnx*)
12413 lt_cv_deplibs_check_method=unknown
12414 ;;
12415
12416openbsd*)
12417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12419 else
12420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12421 fi
12422 ;;
12423
12424osf3* | osf4* | osf5*)
12425 lt_cv_deplibs_check_method=pass_all
12426 ;;
12427
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428solaris*)
12429 lt_cv_deplibs_check_method=pass_all
12430 ;;
12431
Reid Spencera773bd52006-08-04 18:18:08 +000012432sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012433 case $host_vendor in
12434 motorola)
12435 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]'
12436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12437 ;;
12438 ncr)
12439 lt_cv_deplibs_check_method=pass_all
12440 ;;
12441 sequent)
12442 lt_cv_file_magic_cmd='/bin/file'
12443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12444 ;;
12445 sni)
12446 lt_cv_file_magic_cmd='/bin/file'
12447 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12448 lt_cv_file_magic_test_file=/lib/libc.so
12449 ;;
12450 siemens)
12451 lt_cv_deplibs_check_method=pass_all
12452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012453 pc)
12454 lt_cv_deplibs_check_method=pass_all
12455 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012456 esac
12457 ;;
12458
Reid Spencera773bd52006-08-04 18:18:08 +000012459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012460 lt_cv_deplibs_check_method=pass_all
12461 ;;
12462esac
12463
12464fi
Reid Spencera773bd52006-08-04 18:18:08 +000012465{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12466echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012467file_magic_cmd=$lt_cv_file_magic_cmd
12468deplibs_check_method=$lt_cv_deplibs_check_method
12469test -z "$deplibs_check_method" && deplibs_check_method=unknown
12470
12471
12472
12473# If no C compiler was specified, use CC.
12474LTCC=${LTCC-"$CC"}
12475
Reid Spencera773bd52006-08-04 18:18:08 +000012476# If no C compiler flags were specified, use CFLAGS.
12477LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12478
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012479# Allow CC to be a program name with arguments.
12480compiler=$CC
12481
Reid Spencera773bd52006-08-04 18:18:08 +000012482# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012484 enableval=$enable_libtool_lock;
12485fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012486
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12488
12489# Some flags need to be propagated to the compiler or linker for good
12490# libtool support.
12491case $host in
12492ia64-*-hpux*)
12493 # Find out which ABI we are using.
12494 echo 'int i;' > conftest.$ac_ext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; then
12500 case `/usr/bin/file conftest.$ac_objext` in
12501 *ELF-32*)
12502 HPUX_IA64_MODE="32"
12503 ;;
12504 *ELF-64*)
12505 HPUX_IA64_MODE="64"
12506 ;;
12507 esac
12508 fi
12509 rm -rf conftest*
12510 ;;
12511*-*-irix6*)
12512 # Find out which ABI we are using.
David Greenea696d242007-06-28 19:36:08 +000012513 echo '#line 12513 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; then
12519 if test "$lt_cv_prog_gnu_ld" = yes; then
12520 case `/usr/bin/file conftest.$ac_objext` in
12521 *32-bit*)
12522 LD="${LD-ld} -melf32bsmip"
12523 ;;
12524 *N32*)
12525 LD="${LD-ld} -melf32bmipn32"
12526 ;;
12527 *64-bit*)
12528 LD="${LD-ld} -melf64bmip"
12529 ;;
12530 esac
12531 else
12532 case `/usr/bin/file conftest.$ac_objext` in
12533 *32-bit*)
12534 LD="${LD-ld} -32"
12535 ;;
12536 *N32*)
12537 LD="${LD-ld} -n32"
12538 ;;
12539 *64-bit*)
12540 LD="${LD-ld} -64"
12541 ;;
12542 esac
12543 fi
12544 fi
12545 rm -rf conftest*
12546 ;;
12547
12548x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12549 # Find out which ABI we are using.
12550 echo 'int i;' > conftest.$ac_ext
12551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12552 (eval $ac_compile) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012556 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012557 *32-bit*)
12558 case $host in
12559 x86_64-*linux*)
12560 LD="${LD-ld} -m elf_i386"
12561 ;;
12562 ppc64-*linux*|powerpc64-*linux*)
12563 LD="${LD-ld} -m elf32ppclinux"
12564 ;;
12565 s390x-*linux*)
12566 LD="${LD-ld} -m elf_s390"
12567 ;;
12568 sparc64-*linux*)
12569 LD="${LD-ld} -m elf32_sparc"
12570 ;;
12571 esac
12572 ;;
12573 *64-bit*)
12574 case $host in
12575 x86_64-*linux*)
12576 LD="${LD-ld} -m elf_x86_64"
12577 ;;
12578 ppc*-*linux*|powerpc*-*linux*)
12579 LD="${LD-ld} -m elf64ppc"
12580 ;;
12581 s390*-*linux*)
12582 LD="${LD-ld} -m elf64_s390"
12583 ;;
12584 sparc*-*linux*)
12585 LD="${LD-ld} -m elf64_sparc"
12586 ;;
12587 esac
12588 ;;
12589 esac
12590 fi
12591 rm -rf conftest*
12592 ;;
12593
12594*-*-sco3.2v5*)
12595 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12596 SAVE_CFLAGS="$CFLAGS"
12597 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012598 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12599echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012600if test "${lt_cv_cc_needs_belf+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
12603 ac_ext=c
12604ac_cpp='$CPP $CPPFLAGS'
12605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12607ac_compiler_gnu=$ac_cv_c_compiler_gnu
12608
12609 cat >conftest.$ac_ext <<_ACEOF
12610/* confdefs.h. */
12611_ACEOF
12612cat confdefs.h >>conftest.$ac_ext
12613cat >>conftest.$ac_ext <<_ACEOF
12614/* end confdefs.h. */
12615
Reid Spencera773bd52006-08-04 18:18:08 +000012616int
12617main ()
12618{
12619
12620 ;
12621 return 0;
12622}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012623_ACEOF
12624rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012625if { (ac_try="$ac_link"
12626case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629esac
12630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12642esac
12643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652esac
12653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 lt_cv_cc_needs_belf=yes
12659else
12660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
Reid Spencera773bd52006-08-04 18:18:08 +000012663 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012664fi
Reid Spencera773bd52006-08-04 18:18:08 +000012665
12666rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012667 conftest$ac_exeext conftest.$ac_ext
12668 ac_ext=c
12669ac_cpp='$CPP $CPPFLAGS'
12670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673
12674fi
Reid Spencera773bd52006-08-04 18:18:08 +000012675{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12676echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012677 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12678 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12679 CFLAGS="$SAVE_CFLAGS"
12680 fi
12681 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012682sparc*-*solaris*)
12683 # Find out which ABI we are using.
12684 echo 'int i;' > conftest.$ac_ext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; then
12690 case `/usr/bin/file conftest.o` in
12691 *64-bit*)
12692 case $lt_cv_prog_gnu_ld in
12693 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12694 *) LD="${LD-ld} -64" ;;
12695 esac
12696 ;;
12697 esac
12698 fi
12699 rm -rf conftest*
12700 ;;
12701
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012702
12703esac
12704
12705need_locks="$enable_libtool_lock"
12706
12707
Reid Spencer2706f8c2004-09-19 23:53:36 +000012708
12709
12710if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12711 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12712 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012713 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012714ac_cpp='$CXXCPP $CPPFLAGS'
12715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012718{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12719echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012720if test -z "$CXXCPP"; then
12721 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723else
John Criswell47fdd832003-07-14 16:52:07 +000012724 # Double quotes because CXXCPP needs to be expanded
12725 for CXXCPP in "$CXX -E" "/lib/cpp"
12726 do
12727 ac_preproc_ok=false
12728for ac_cxx_preproc_warn_flag in '' yes
12729do
12730 # Use a header file that comes with gcc, so configuring glibc
12731 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12733 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012734 # On the NeXT, cc -E runs the code through the compiler's parser,
12735 # not just through cpp. "Syntax error" is here to catch this case.
12736 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742#ifdef __STDC__
12743# include <limits.h>
12744#else
12745# include <assert.h>
12746#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012747 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012748_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012749if { (ac_try="$ac_cpp conftest.$ac_ext"
12750case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012756 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012757 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } >/dev/null; then
12762 if test -s conftest.err; then
12763 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012764 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012765 else
John Criswell47fdd832003-07-14 16:52:07 +000012766 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012767 fi
John Criswell47fdd832003-07-14 16:52:07 +000012768else
12769 ac_cpp_err=yes
12770fi
12771if test -z "$ac_cpp_err"; then
12772 :
12773else
12774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012775sed 's/^/| /' conftest.$ac_ext >&5
12776
John Criswell47fdd832003-07-14 16:52:07 +000012777 # Broken: fails on valid input.
12778continue
12779fi
Reid Spencera773bd52006-08-04 18:18:08 +000012780
John Criswell47fdd832003-07-14 16:52:07 +000012781rm -f conftest.err conftest.$ac_ext
12782
Reid Spencera773bd52006-08-04 18:18:08 +000012783 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012784 # can be detected and how.
12785 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012786/* confdefs.h. */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012791#include <ac_nonexistent.h>
12792_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012793if { (ac_try="$ac_cpp conftest.$ac_ext"
12794case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012800 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012801 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } >/dev/null; then
12806 if test -s conftest.err; then
12807 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012808 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012809 else
12810 ac_cpp_err=
12811 fi
12812else
12813 ac_cpp_err=yes
12814fi
12815if test -z "$ac_cpp_err"; then
12816 # Broken: success on invalid input.
12817continue
12818else
12819 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012820sed 's/^/| /' conftest.$ac_ext >&5
12821
John Criswell47fdd832003-07-14 16:52:07 +000012822 # Passes both tests.
12823ac_preproc_ok=:
12824break
12825fi
Reid Spencera773bd52006-08-04 18:18:08 +000012826
John Criswell47fdd832003-07-14 16:52:07 +000012827rm -f conftest.err conftest.$ac_ext
12828
12829done
12830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12831rm -f conftest.err conftest.$ac_ext
12832if $ac_preproc_ok; then
12833 break
John Criswell7a73b802003-06-30 21:59:07 +000012834fi
12835
John Criswell47fdd832003-07-14 16:52:07 +000012836 done
12837 ac_cv_prog_CXXCPP=$CXXCPP
12838
12839fi
12840 CXXCPP=$ac_cv_prog_CXXCPP
12841else
12842 ac_cv_prog_CXXCPP=$CXXCPP
12843fi
Reid Spencera773bd52006-08-04 18:18:08 +000012844{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12845echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012846ac_preproc_ok=false
12847for ac_cxx_preproc_warn_flag in '' yes
12848do
12849 # Use a header file that comes with gcc, so configuring glibc
12850 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012853 # On the NeXT, cc -E runs the code through the compiler's parser,
12854 # not just through cpp. "Syntax error" is here to catch this case.
12855 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012856/* confdefs.h. */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h. */
12861#ifdef __STDC__
12862# include <limits.h>
12863#else
12864# include <assert.h>
12865#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012866 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012867_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012868if { (ac_try="$ac_cpp conftest.$ac_ext"
12869case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012875 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012876 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } >/dev/null; then
12881 if test -s conftest.err; then
12882 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012883 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012884 else
12885 ac_cpp_err=
12886 fi
12887else
12888 ac_cpp_err=yes
12889fi
12890if test -z "$ac_cpp_err"; then
12891 :
12892else
12893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012894sed 's/^/| /' conftest.$ac_ext >&5
12895
John Criswell47fdd832003-07-14 16:52:07 +000012896 # Broken: fails on valid input.
12897continue
12898fi
Reid Spencera773bd52006-08-04 18:18:08 +000012899
John Criswell47fdd832003-07-14 16:52:07 +000012900rm -f conftest.err conftest.$ac_ext
12901
Reid Spencera773bd52006-08-04 18:18:08 +000012902 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012903 # can be detected and how.
12904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012910#include <ac_nonexistent.h>
12911_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012912if { (ac_try="$ac_cpp conftest.$ac_ext"
12913case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916esac
12917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012919 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012920 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } >/dev/null; then
12925 if test -s conftest.err; then
12926 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012927 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012928 else
12929 ac_cpp_err=
12930 fi
12931else
12932 ac_cpp_err=yes
12933fi
12934if test -z "$ac_cpp_err"; then
12935 # Broken: success on invalid input.
12936continue
12937else
12938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012939sed 's/^/| /' conftest.$ac_ext >&5
12940
John Criswell47fdd832003-07-14 16:52:07 +000012941 # Passes both tests.
12942ac_preproc_ok=:
12943break
12944fi
Reid Spencera773bd52006-08-04 18:18:08 +000012945
John Criswell47fdd832003-07-14 16:52:07 +000012946rm -f conftest.err conftest.$ac_ext
12947
12948done
12949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12950rm -f conftest.err conftest.$ac_ext
12951if $ac_preproc_ok; then
12952 :
12953else
John Criswell0c38eaf2003-09-10 15:17:25 +000012954 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12955See \`config.log' for more details." >&5
12956echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12957See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012958 { (exit 1); exit 1; }; }
12959fi
12960
Reid Spencera773bd52006-08-04 18:18:08 +000012961ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012962ac_cpp='$CXXCPP $CPPFLAGS'
12963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12966
Reid Spencer2706f8c2004-09-19 23:53:36 +000012967fi
12968
John Criswell47fdd832003-07-14 16:52:07 +000012969
12970ac_ext=f
12971ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12972ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12974if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012975 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 +000012976 do
12977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012981if test "${ac_cv_prog_F77+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12983else
12984 if test -n "$F77"; then
12985 ac_cv_prog_F77="$F77" # Let the user override the test.
12986else
12987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988for as_dir in $PATH
12989do
12990 IFS=$as_save_IFS
12991 test -z "$as_dir" && as_dir=.
12992 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012993 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 +000012994 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 break 2
12997 fi
12998done
12999done
Reid Spencera773bd52006-08-04 18:18:08 +000013000IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013001
13002fi
13003fi
13004F77=$ac_cv_prog_F77
13005if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013006 { echo "$as_me:$LINENO: result: $F77" >&5
13007echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013008else
Reid Spencera773bd52006-08-04 18:18:08 +000013009 { echo "$as_me:$LINENO: result: no" >&5
13010echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013011fi
13012
Reid Spencera773bd52006-08-04 18:18:08 +000013013
John Criswell47fdd832003-07-14 16:52:07 +000013014 test -n "$F77" && break
13015 done
13016fi
13017if test -z "$F77"; then
13018 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000013019 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 +000013020do
13021 # Extract the first word of "$ac_prog", so it can be a program name with args.
13022set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013025if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027else
13028 if test -n "$ac_ct_F77"; then
13029 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13030else
13031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032for as_dir in $PATH
13033do
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013037 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 +000013038 ac_cv_prog_ac_ct_F77="$ac_prog"
13039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13041 fi
13042done
13043done
Reid Spencera773bd52006-08-04 18:18:08 +000013044IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013045
13046fi
13047fi
13048ac_ct_F77=$ac_cv_prog_ac_ct_F77
13049if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013050 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13051echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013052else
Reid Spencera773bd52006-08-04 18:18:08 +000013053 { echo "$as_me:$LINENO: result: no" >&5
13054echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013055fi
13056
Reid Spencera773bd52006-08-04 18:18:08 +000013057
John Criswell47fdd832003-07-14 16:52:07 +000013058 test -n "$ac_ct_F77" && break
13059done
13060
Reid Spencera773bd52006-08-04 18:18:08 +000013061 if test "x$ac_ct_F77" = x; then
13062 F77=""
13063 else
13064 case $cross_compiling:$ac_tool_warned in
13065yes:)
13066{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13067whose name does not start with the host triplet. If you think this
13068configuration is useful to you, please write to autoconf@gnu.org." >&5
13069echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13070whose name does not start with the host triplet. If you think this
13071configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13072ac_tool_warned=yes ;;
13073esac
13074 F77=$ac_ct_F77
13075 fi
John Criswell47fdd832003-07-14 16:52:07 +000013076fi
13077
13078
13079# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013080echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013081ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013082{ (ac_try="$ac_compiler --version >&5"
13083case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13086esac
13087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013092{ (ac_try="$ac_compiler -v >&5"
13093case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096esac
13097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013102{ (ac_try="$ac_compiler -V >&5"
13103case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013112rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013113
13114# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013115# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013116ac_save_ext=$ac_ext
13117ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013118{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13119echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013120if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122else
13123 cat >conftest.$ac_ext <<_ACEOF
13124 program main
13125#ifndef __GNUC__
13126 choke me
13127#endif
13128
13129 end
13130_ACEOF
13131rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013132if { (ac_try="$ac_compile"
13133case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013139 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013145 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13146 { (case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149esac
13150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_compiler_gnu=yes
13166else
13167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013168sed 's/^/| /' conftest.$ac_ext >&5
13169
Reid Spencera773bd52006-08-04 18:18:08 +000013170 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013171fi
Reid Spencera773bd52006-08-04 18:18:08 +000013172
13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013174ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13175
13176fi
Reid Spencera773bd52006-08-04 18:18:08 +000013177{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13178echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013179ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013180ac_test_FFLAGS=${FFLAGS+set}
13181ac_save_FFLAGS=$FFLAGS
13182FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013183{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13184echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013185if test "${ac_cv_prog_f77_g+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188 FFLAGS=-g
13189cat >conftest.$ac_ext <<_ACEOF
13190 program main
13191
13192 end
13193_ACEOF
13194rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013195if { (ac_try="$ac_compile"
13196case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199esac
13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013202 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013208 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13209 { (case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212esac
13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013219 { (case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_cv_prog_f77_g=yes
13229else
13230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013231sed 's/^/| /' conftest.$ac_ext >&5
13232
Reid Spencera773bd52006-08-04 18:18:08 +000013233 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013234fi
Reid Spencera773bd52006-08-04 18:18:08 +000013235
13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013237
13238fi
Reid Spencera773bd52006-08-04 18:18:08 +000013239{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13240echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013241if test "$ac_test_FFLAGS" = set; then
13242 FFLAGS=$ac_save_FFLAGS
13243elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013244 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013245 FFLAGS="-g -O2"
13246 else
13247 FFLAGS="-g"
13248 fi
13249else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013250 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013251 FFLAGS="-O2"
13252 else
13253 FFLAGS=
13254 fi
13255fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013256
13257G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013258ac_ext=c
13259ac_cpp='$CPP $CPPFLAGS'
13260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13262ac_compiler_gnu=$ac_cv_c_compiler_gnu
13263
13264
13265
13266# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13267
13268# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013269{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13270echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013271if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273else
13274 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013275 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013276
13277 case $build_os in
13278 msdosdjgpp*)
13279 # On DJGPP, this test can blow up pretty badly due to problems in libc
13280 # (any single argument exceeding 2000 bytes causes a buffer overrun
13281 # during glob expansion). Even if it were fixed, the result of this
13282 # check would be larger than it should be.
13283 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13284 ;;
13285
13286 gnu*)
13287 # Under GNU Hurd, this test is not required because there is
13288 # no limit to the length of command line arguments.
13289 # Libtool will interpret -1 as no limit whatsoever
13290 lt_cv_sys_max_cmd_len=-1;
13291 ;;
13292
13293 cygwin* | mingw*)
13294 # On Win9x/ME, this test blows up -- it succeeds, but takes
13295 # about 5 minutes as the teststring grows exponentially.
13296 # Worse, since 9x/ME are not pre-emptively multitasking,
13297 # you end up with a "frozen" computer, even though with patience
13298 # the test eventually succeeds (with a max line length of 256k).
13299 # Instead, let's just punt: use the minimum linelength reported by
13300 # all of the supported platforms: 8192 (on NT/2K/XP).
13301 lt_cv_sys_max_cmd_len=8192;
13302 ;;
13303
Reid Spencer2706f8c2004-09-19 23:53:36 +000013304 amigaos*)
13305 # On AmigaOS with pdksh, this test takes hours, literally.
13306 # So we just punt and use a minimum line length of 8192.
13307 lt_cv_sys_max_cmd_len=8192;
13308 ;;
13309
Reid Spencera773bd52006-08-04 18:18:08 +000013310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013311 # This has been around since 386BSD, at least. Likely further.
13312 if test -x /sbin/sysctl; then
13313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13314 elif test -x /usr/sbin/sysctl; then
13315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13316 else
Reid Spencera773bd52006-08-04 18:18:08 +000013317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013318 fi
13319 # And add a safety zone
13320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013322 ;;
13323
Reid Spencera773bd52006-08-04 18:18:08 +000013324 interix*)
13325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13326 lt_cv_sys_max_cmd_len=196608
13327 ;;
13328
13329 osf*)
13330 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13331 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13332 # nice to cause kernel panics so lets avoid the loop below.
13333 # First set a reasonable default.
13334 lt_cv_sys_max_cmd_len=16384
13335 #
13336 if test -x /sbin/sysconfig; then
13337 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13338 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13339 esac
13340 fi
13341 ;;
13342 sco3.2v5*)
13343 lt_cv_sys_max_cmd_len=102400
13344 ;;
13345 sysv5* | sco5v6* | sysv4.2uw2*)
13346 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13347 if test -n "$kargmax"; then
13348 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13349 else
13350 lt_cv_sys_max_cmd_len=32768
13351 fi
13352 ;;
13353 *)
John Criswell47fdd832003-07-14 16:52:07 +000013354 # If test is not a shell built-in, we'll probably end up computing a
13355 # maximum length that is only half of the actual maximum length, but
13356 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013357 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13358 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13359 = "XX$teststring") >/dev/null 2>&1 &&
13360 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013361 lt_cv_sys_max_cmd_len=$new_result &&
13362 test $i != 17 # 1/2 MB should be enough
13363 do
13364 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013365 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013366 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013367 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013368 # Add a significant safety factor because C++ compilers can tack on massive
13369 # amounts of additional arguments before passing them to the linker.
13370 # It appears as though 1/2 is a usable value.
13371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13372 ;;
13373 esac
13374
13375fi
13376
13377if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013378 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13379echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013380else
Reid Spencera773bd52006-08-04 18:18:08 +000013381 { echo "$as_me:$LINENO: result: none" >&5
13382echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013383fi
13384
13385
13386
13387
13388# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013389{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13390echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013391if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394
13395# These are sane defaults that work on at least a few old systems.
13396# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13397
13398# Character class describing NM global symbol codes.
13399symcode='[BCDEGRST]'
13400
13401# Regexp to match symbols that can be accessed directly from C.
13402sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13403
John Criswell47fdd832003-07-14 16:52:07 +000013404# Transform an extracted symbol line into a proper C declaration
13405lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13406
13407# Transform an extracted symbol line into symbol name and symbol address
13408lt_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'"
13409
13410# Define system-specific variables.
13411case $host_os in
13412aix*)
13413 symcode='[BCDT]'
13414 ;;
13415cygwin* | mingw* | pw32*)
13416 symcode='[ABCDGISTW]'
13417 ;;
13418hpux*) # Its linker distinguishes data from code symbols
13419 if test "$host_cpu" = ia64; then
13420 symcode='[ABCDEGRST]'
13421 fi
13422 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13423 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'"
13424 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013425linux*)
13426 if test "$host_cpu" = ia64; then
13427 symcode='[ABCDGIRSTW]'
13428 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13429 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'"
13430 fi
13431 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013432irix* | nonstopux*)
13433 symcode='[BCDEGRST]'
13434 ;;
13435osf*)
13436 symcode='[BCDEGQRST]'
13437 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013438solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013439 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013441sco3.2v5*)
13442 symcode='[DT]'
13443 ;;
13444sysv4.2uw2*)
13445 symcode='[DT]'
13446 ;;
13447sysv5* | sco5v6* | unixware* | OpenUNIX*)
13448 symcode='[ABDT]'
13449 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013450sysv4)
13451 symcode='[DFNSTU]'
13452 ;;
13453esac
13454
13455# Handle CRLF in mingw tool chain
13456opt_cr=
13457case $build_os in
13458mingw*)
13459 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13460 ;;
13461esac
13462
13463# If we're using GNU nm, then use its standard symbol codes.
13464case `$NM -V 2>&1` in
13465*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013466 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013467esac
13468
13469# Try without a prefix undercore, then with it.
13470for ac_symprfx in "" "_"; do
13471
Reid Spencera773bd52006-08-04 18:18:08 +000013472 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13473 symxfrm="\\1 $ac_symprfx\\2 \\2"
13474
John Criswell47fdd832003-07-14 16:52:07 +000013475 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013476 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 +000013477
13478 # Check to see that the pipe works correctly.
13479 pipe_works=no
13480
13481 rm -f conftest*
13482 cat > conftest.$ac_ext <<EOF
13483#ifdef __cplusplus
13484extern "C" {
13485#endif
13486char nm_test_var;
13487void nm_test_func(){}
13488#ifdef __cplusplus
13489}
13490#endif
13491int main(){nm_test_var='a';nm_test_func();return(0);}
13492EOF
13493
13494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13495 (eval $ac_compile) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; then
13499 # Now try to grab the symbols.
13500 nlist=conftest.nm
13501 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13502 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && test -s "$nlist"; then
13506 # Try sorting and uniquifying the output.
13507 if sort "$nlist" | uniq > "$nlist"T; then
13508 mv -f "$nlist"T "$nlist"
13509 else
13510 rm -f "$nlist"T
13511 fi
13512
13513 # Make sure that we snagged all the symbols we need.
13514 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13515 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13516 cat <<EOF > conftest.$ac_ext
13517#ifdef __cplusplus
13518extern "C" {
13519#endif
13520
13521EOF
13522 # Now generate the symbol file.
13523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13524
13525 cat <<EOF >> conftest.$ac_ext
13526#if defined (__STDC__) && __STDC__
13527# define lt_ptr_t void *
13528#else
13529# define lt_ptr_t char *
13530# define const
13531#endif
13532
13533/* The mapping between symbol names and symbols. */
13534const struct {
13535 const char *name;
13536 lt_ptr_t address;
13537}
13538lt_preloaded_symbols[] =
13539{
13540EOF
13541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13542 cat <<\EOF >> conftest.$ac_ext
13543 {0, (lt_ptr_t) 0}
13544};
13545
13546#ifdef __cplusplus
13547}
13548#endif
13549EOF
13550 # Now try linking the two files.
13551 mv conftest.$ac_objext conftstm.$ac_objext
13552 lt_save_LIBS="$LIBS"
13553 lt_save_CFLAGS="$CFLAGS"
13554 LIBS="conftstm.$ac_objext"
13555 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13561 pipe_works=yes
13562 fi
13563 LIBS="$lt_save_LIBS"
13564 CFLAGS="$lt_save_CFLAGS"
13565 else
13566 echo "cannot find nm_test_func in $nlist" >&5
13567 fi
13568 else
13569 echo "cannot find nm_test_var in $nlist" >&5
13570 fi
13571 else
13572 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13573 fi
13574 else
13575 echo "$progname: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13577 fi
13578 rm -f conftest* conftst*
13579
13580 # Do not use the global_symbol_pipe unless it works.
13581 if test "$pipe_works" = yes; then
13582 break
13583 else
13584 lt_cv_sys_global_symbol_pipe=
13585 fi
13586done
13587
13588fi
13589
13590if test -z "$lt_cv_sys_global_symbol_pipe"; then
13591 lt_cv_sys_global_symbol_to_cdecl=
13592fi
13593if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013594 { echo "$as_me:$LINENO: result: failed" >&5
13595echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013596else
Reid Spencera773bd52006-08-04 18:18:08 +000013597 { echo "$as_me:$LINENO: result: ok" >&5
13598echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013599fi
13600
Reid Spencera773bd52006-08-04 18:18:08 +000013601{ echo "$as_me:$LINENO: checking for objdir" >&5
13602echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013603if test "${lt_cv_objdir+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605else
13606 rm -f .libs 2>/dev/null
13607mkdir .libs 2>/dev/null
13608if test -d .libs; then
13609 lt_cv_objdir=.libs
13610else
13611 # MS-DOS does not allow filenames that begin with a dot.
13612 lt_cv_objdir=_libs
13613fi
13614rmdir .libs 2>/dev/null
13615fi
Reid Spencera773bd52006-08-04 18:18:08 +000013616{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13617echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013618objdir=$lt_cv_objdir
13619
13620
13621
13622
13623
13624case $host_os in
13625aix3*)
13626 # AIX sometimes has problems with the GCC collect2 program. For some
13627 # reason, if we set the COLLECT_NAMES environment variable, the problems
13628 # vanish in a puff of smoke.
13629 if test "X${COLLECT_NAMES+set}" != Xset; then
13630 COLLECT_NAMES=
13631 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013632 fi
13633 ;;
13634esac
13635
John Criswell47fdd832003-07-14 16:52:07 +000013636# Sed substitution that helps us do robust quoting. It backslashifies
13637# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013638Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013639sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13640
13641# Same as above, but do not quote variable references.
13642double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13643
13644# Sed substitution to delay expansion of an escaped shell variable in a
13645# double_quote_subst'ed string.
13646delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13647
13648# Sed substitution to avoid accidental globbing in evaled expressions
13649no_glob_subst='s/\*/\\\*/g'
13650
13651# Constants:
13652rm="rm -f"
13653
13654# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013655default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013656can_build_shared=yes
13657
Reid Spencera773bd52006-08-04 18:18:08 +000013658# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013659# which needs '.lib').
13660libext=a
13661ltmain="$ac_aux_dir/ltmain.sh"
13662ofile="$default_ofile"
13663with_gnu_ld="$lt_cv_prog_gnu_ld"
13664
13665if test -n "$ac_tool_prefix"; then
13666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13667set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013670if test "${ac_cv_prog_AR+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13672else
13673 if test -n "$AR"; then
13674 ac_cv_prog_AR="$AR" # Let the user override the test.
13675else
13676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677for as_dir in $PATH
13678do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013683 ac_cv_prog_AR="${ac_tool_prefix}ar"
13684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13686 fi
13687done
13688done
Reid Spencera773bd52006-08-04 18:18:08 +000013689IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013690
13691fi
13692fi
13693AR=$ac_cv_prog_AR
13694if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013695 { echo "$as_me:$LINENO: result: $AR" >&5
13696echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013697else
Reid Spencera773bd52006-08-04 18:18:08 +000013698 { echo "$as_me:$LINENO: result: no" >&5
13699echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013700fi
13701
Reid Spencera773bd52006-08-04 18:18:08 +000013702
John Criswell47fdd832003-07-14 16:52:07 +000013703fi
13704if test -z "$ac_cv_prog_AR"; then
13705 ac_ct_AR=$AR
13706 # Extract the first word of "ar", so it can be a program name with args.
13707set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013710if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712else
13713 if test -n "$ac_ct_AR"; then
13714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13715else
13716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717for as_dir in $PATH
13718do
13719 IFS=$as_save_IFS
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013722 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 +000013723 ac_cv_prog_ac_ct_AR="ar"
13724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13725 break 2
13726 fi
13727done
13728done
Reid Spencera773bd52006-08-04 18:18:08 +000013729IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013730
John Criswell47fdd832003-07-14 16:52:07 +000013731fi
13732fi
13733ac_ct_AR=$ac_cv_prog_ac_ct_AR
13734if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013735 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13736echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013737else
Reid Spencera773bd52006-08-04 18:18:08 +000013738 { echo "$as_me:$LINENO: result: no" >&5
13739echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013740fi
13741
Reid Spencera773bd52006-08-04 18:18:08 +000013742 if test "x$ac_ct_AR" = x; then
13743 AR="false"
13744 else
13745 case $cross_compiling:$ac_tool_warned in
13746yes:)
13747{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13748whose name does not start with the host triplet. If you think this
13749configuration is useful to you, please write to autoconf@gnu.org." >&5
13750echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13751whose name does not start with the host triplet. If you think this
13752configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13753ac_tool_warned=yes ;;
13754esac
13755 AR=$ac_ct_AR
13756 fi
John Criswell47fdd832003-07-14 16:52:07 +000013757else
13758 AR="$ac_cv_prog_AR"
13759fi
13760
John Criswell7a73b802003-06-30 21:59:07 +000013761if test -n "$ac_tool_prefix"; then
13762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13763set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013766if test "${ac_cv_prog_RANLIB+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768else
13769 if test -n "$RANLIB"; then
13770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13771else
13772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773for as_dir in $PATH
13774do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783done
13784done
Reid Spencera773bd52006-08-04 18:18:08 +000013785IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013786
13787fi
13788fi
13789RANLIB=$ac_cv_prog_RANLIB
13790if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013791 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13792echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013793else
Reid Spencera773bd52006-08-04 18:18:08 +000013794 { echo "$as_me:$LINENO: result: no" >&5
13795echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013796fi
13797
Reid Spencera773bd52006-08-04 18:18:08 +000013798
John Criswell7a73b802003-06-30 21:59:07 +000013799fi
13800if test -z "$ac_cv_prog_RANLIB"; then
13801 ac_ct_RANLIB=$RANLIB
13802 # Extract the first word of "ranlib", so it can be a program name with args.
13803set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013806if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
13809 if test -n "$ac_ct_RANLIB"; then
13810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13811else
13812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813for as_dir in $PATH
13814do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013818 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 +000013819 ac_cv_prog_ac_ct_RANLIB="ranlib"
13820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823done
13824done
Reid Spencera773bd52006-08-04 18:18:08 +000013825IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013826
John Criswell7a73b802003-06-30 21:59:07 +000013827fi
13828fi
13829ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13830if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013831 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13832echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013833else
Reid Spencera773bd52006-08-04 18:18:08 +000013834 { echo "$as_me:$LINENO: result: no" >&5
13835echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013836fi
13837
Reid Spencera773bd52006-08-04 18:18:08 +000013838 if test "x$ac_ct_RANLIB" = x; then
13839 RANLIB=":"
13840 else
13841 case $cross_compiling:$ac_tool_warned in
13842yes:)
13843{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13844whose name does not start with the host triplet. If you think this
13845configuration is useful to you, please write to autoconf@gnu.org." >&5
13846echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13847whose name does not start with the host triplet. If you think this
13848configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13849ac_tool_warned=yes ;;
13850esac
13851 RANLIB=$ac_ct_RANLIB
13852 fi
John Criswell7a73b802003-06-30 21:59:07 +000013853else
13854 RANLIB="$ac_cv_prog_RANLIB"
13855fi
13856
13857if test -n "$ac_tool_prefix"; then
13858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13859set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013862if test "${ac_cv_prog_STRIP+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13864else
13865 if test -n "$STRIP"; then
13866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13867else
13868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869for as_dir in $PATH
13870do
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 break 2
13878 fi
13879done
13880done
Reid Spencera773bd52006-08-04 18:18:08 +000013881IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013882
13883fi
13884fi
13885STRIP=$ac_cv_prog_STRIP
13886if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013887 { echo "$as_me:$LINENO: result: $STRIP" >&5
13888echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013889else
Reid Spencera773bd52006-08-04 18:18:08 +000013890 { echo "$as_me:$LINENO: result: no" >&5
13891echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013892fi
13893
Reid Spencera773bd52006-08-04 18:18:08 +000013894
John Criswell7a73b802003-06-30 21:59:07 +000013895fi
13896if test -z "$ac_cv_prog_STRIP"; then
13897 ac_ct_STRIP=$STRIP
13898 # Extract the first word of "strip", so it can be a program name with args.
13899set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013902if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 if test -n "$ac_ct_STRIP"; then
13906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13907else
13908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13909for as_dir in $PATH
13910do
13911 IFS=$as_save_IFS
13912 test -z "$as_dir" && as_dir=.
13913 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013914 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 +000013915 ac_cv_prog_ac_ct_STRIP="strip"
13916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13917 break 2
13918 fi
13919done
13920done
Reid Spencera773bd52006-08-04 18:18:08 +000013921IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013922
John Criswell7a73b802003-06-30 21:59:07 +000013923fi
13924fi
13925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13926if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013927 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13928echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013929else
Reid Spencera773bd52006-08-04 18:18:08 +000013930 { echo "$as_me:$LINENO: result: no" >&5
13931echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013932fi
13933
Reid Spencera773bd52006-08-04 18:18:08 +000013934 if test "x$ac_ct_STRIP" = x; then
13935 STRIP=":"
13936 else
13937 case $cross_compiling:$ac_tool_warned in
13938yes:)
13939{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13940whose name does not start with the host triplet. If you think this
13941configuration is useful to you, please write to autoconf@gnu.org." >&5
13942echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13943whose name does not start with the host triplet. If you think this
13944configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13945ac_tool_warned=yes ;;
13946esac
13947 STRIP=$ac_ct_STRIP
13948 fi
John Criswell7a73b802003-06-30 21:59:07 +000013949else
13950 STRIP="$ac_cv_prog_STRIP"
13951fi
13952
13953
John Criswell7a73b802003-06-30 21:59:07 +000013954old_CC="$CC"
13955old_CFLAGS="$CFLAGS"
13956
13957# Set sane defaults for various variables
13958test -z "$AR" && AR=ar
13959test -z "$AR_FLAGS" && AR_FLAGS=cru
13960test -z "$AS" && AS=as
13961test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013962test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013963test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013964test -z "$DLLTOOL" && DLLTOOL=dlltool
13965test -z "$LD" && LD=ld
13966test -z "$LN_S" && LN_S="ln -s"
13967test -z "$MAGIC_CMD" && MAGIC_CMD=file
13968test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013969test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013970test -z "$OBJDUMP" && OBJDUMP=objdump
13971test -z "$RANLIB" && RANLIB=:
13972test -z "$STRIP" && STRIP=:
13973test -z "$ac_objext" && ac_objext=o
13974
John Criswell7a73b802003-06-30 21:59:07 +000013975# Determine commands to create old-style static archives.
13976old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13977old_postinstall_cmds='chmod 644 $oldlib'
13978old_postuninstall_cmds=
13979
13980if test -n "$RANLIB"; then
13981 case $host_os in
13982 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013983 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013984 ;;
13985 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013986 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013987 ;;
13988 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013989 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013990fi
13991
Reid Spencera773bd52006-08-04 18:18:08 +000013992for cc_temp in $compiler""; do
13993 case $cc_temp in
13994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13996 \-*) ;;
13997 *) break;;
13998 esac
13999done
14000cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14001
Reid Spencer2706f8c2004-09-19 23:53:36 +000014002
John Criswell47fdd832003-07-14 16:52:07 +000014003# Only perform the check for file, if the check method requires it
14004case $deplibs_check_method in
14005file_magic*)
14006 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014007 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14008echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014009if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014011else
John Criswell47fdd832003-07-14 16:52:07 +000014012 case $MAGIC_CMD in
14013[\\/*] | ?:[\\/]*)
14014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14015 ;;
14016*)
14017 lt_save_MAGIC_CMD="$MAGIC_CMD"
14018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14020 for ac_dir in $ac_dummy; do
14021 IFS="$lt_save_ifs"
14022 test -z "$ac_dir" && ac_dir=.
14023 if test -f $ac_dir/${ac_tool_prefix}file; then
14024 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14025 if test -n "$file_magic_test_file"; then
14026 case $deplibs_check_method in
14027 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14031 $EGREP "$file_magic_regex" > /dev/null; then
14032 :
14033 else
14034 cat <<EOF 1>&2
14035
14036*** Warning: the command libtool uses to detect shared libraries,
14037*** $file_magic_cmd, produces output that libtool cannot recognize.
14038*** The result is that libtool may fail to recognize shared libraries
14039*** as such. This will affect the creation of libtool libraries that
14040*** depend on shared libraries, but programs linked with such libtool
14041*** libraries will work regardless of this problem. Nevertheless, you
14042*** may want to report the problem to your system manager and/or to
14043*** bug-libtool@gnu.org
14044
14045EOF
14046 fi ;;
14047 esac
14048 fi
14049 break
14050 fi
14051 done
14052 IFS="$lt_save_ifs"
14053 MAGIC_CMD="$lt_save_MAGIC_CMD"
14054 ;;
14055esac
John Criswell7a73b802003-06-30 21:59:07 +000014056fi
John Criswell7a73b802003-06-30 21:59:07 +000014057
John Criswell47fdd832003-07-14 16:52:07 +000014058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14059if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014060 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14061echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014062else
Reid Spencera773bd52006-08-04 18:18:08 +000014063 { echo "$as_me:$LINENO: result: no" >&5
14064echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014065fi
John Criswell7a73b802003-06-30 21:59:07 +000014066
John Criswell47fdd832003-07-14 16:52:07 +000014067if test -z "$lt_cv_path_MAGIC_CMD"; then
14068 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014069 { echo "$as_me:$LINENO: checking for file" >&5
14070echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014071if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074 case $MAGIC_CMD in
14075[\\/*] | ?:[\\/]*)
14076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14077 ;;
14078*)
14079 lt_save_MAGIC_CMD="$MAGIC_CMD"
14080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14081 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14082 for ac_dir in $ac_dummy; do
14083 IFS="$lt_save_ifs"
14084 test -z "$ac_dir" && ac_dir=.
14085 if test -f $ac_dir/file; then
14086 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14087 if test -n "$file_magic_test_file"; then
14088 case $deplibs_check_method in
14089 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014090 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14092 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14093 $EGREP "$file_magic_regex" > /dev/null; then
14094 :
14095 else
14096 cat <<EOF 1>&2
14097
14098*** Warning: the command libtool uses to detect shared libraries,
14099*** $file_magic_cmd, produces output that libtool cannot recognize.
14100*** The result is that libtool may fail to recognize shared libraries
14101*** as such. This will affect the creation of libtool libraries that
14102*** depend on shared libraries, but programs linked with such libtool
14103*** libraries will work regardless of this problem. Nevertheless, you
14104*** may want to report the problem to your system manager and/or to
14105*** bug-libtool@gnu.org
14106
14107EOF
14108 fi ;;
14109 esac
14110 fi
14111 break
14112 fi
14113 done
14114 IFS="$lt_save_ifs"
14115 MAGIC_CMD="$lt_save_MAGIC_CMD"
14116 ;;
14117esac
14118fi
14119
14120MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14121if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014122 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14123echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014124else
Reid Spencera773bd52006-08-04 18:18:08 +000014125 { echo "$as_me:$LINENO: result: no" >&5
14126echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014127fi
14128
14129 else
14130 MAGIC_CMD=:
14131 fi
14132fi
14133
14134 fi
14135 ;;
14136esac
14137
Reid Spencer17795972004-11-18 09:47:37 +000014138enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014139enable_win32_dll=no
14140
Reid Spencera773bd52006-08-04 18:18:08 +000014141# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014142if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014143 enableval=$enable_libtool_lock;
14144fi
John Criswell47fdd832003-07-14 16:52:07 +000014145
John Criswell47fdd832003-07-14 16:52:07 +000014146test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14147
John Criswell7a73b802003-06-30 21:59:07 +000014148
Reid Spencera773bd52006-08-04 18:18:08 +000014149# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014150if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014151 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014152else
14153 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014154fi
14155
John Criswell7a73b802003-06-30 21:59:07 +000014156test -z "$pic_mode" && pic_mode=default
14157
John Criswell47fdd832003-07-14 16:52:07 +000014158# Use C for the default configuration in the libtool script
14159tagname=
14160lt_save_CC="$CC"
14161ac_ext=c
14162ac_cpp='$CPP $CPPFLAGS'
14163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14165ac_compiler_gnu=$ac_cv_c_compiler_gnu
14166
14167
14168# Source file extension for C test sources.
14169ac_ext=c
14170
14171# Object file extension for compiled C test sources.
14172objext=o
14173objext=$objext
14174
14175# Code to be used in simple compile tests
14176lt_simple_compile_test_code="int some_variable = 0;\n"
14177
14178# Code to be used in simple link tests
14179lt_simple_link_test_code='int main(){return(0);}\n'
14180
14181
14182# If no C compiler was specified, use CC.
14183LTCC=${LTCC-"$CC"}
14184
Reid Spencera773bd52006-08-04 18:18:08 +000014185# If no C compiler flags were specified, use CFLAGS.
14186LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14187
John Criswell47fdd832003-07-14 16:52:07 +000014188# Allow CC to be a program name with arguments.
14189compiler=$CC
14190
14191
Reid Spencera773bd52006-08-04 18:18:08 +000014192# save warnings/boilerplate of simple test code
14193ac_outfile=conftest.$ac_objext
14194printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14196_lt_compiler_boilerplate=`cat conftest.err`
14197$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014198
Reid Spencera773bd52006-08-04 18:18:08 +000014199ac_outfile=conftest.$ac_objext
14200printf "$lt_simple_link_test_code" >conftest.$ac_ext
14201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14202_lt_linker_boilerplate=`cat conftest.err`
14203$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014204
14205
John Criswell47fdd832003-07-14 16:52:07 +000014206
14207lt_prog_compiler_no_builtin_flag=
14208
14209if test "$GCC" = yes; then
14210 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14211
Reid Spencer2706f8c2004-09-19 23:53:36 +000014212
Reid Spencera773bd52006-08-04 18:18:08 +000014213{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14214echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014215if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217else
14218 lt_cv_prog_compiler_rtti_exceptions=no
14219 ac_outfile=conftest.$ac_objext
14220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14221 lt_compiler_flag="-fno-rtti -fno-exceptions"
14222 # Insert the option either (1) after the last *FLAGS variable, or
14223 # (2) before a word containing "conftest.", or (3) at the end.
14224 # Note that $ac_compile itself does not contain backslashes and begins
14225 # with a dollar sign (not a hyphen), so the echo should work correctly.
14226 # The option is referenced via a variable to avoid confusing sed.
14227 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14230 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000014231 (eval echo "\"\$as_me:14231: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014232 (eval "$lt_compile" 2>conftest.err)
14233 ac_status=$?
14234 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000014235 echo "$as_me:14235: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014236 if (exit $ac_status) && test -s "$ac_outfile"; then
14237 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014238 # So say no if there are warnings other than the usual output.
14239 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014242 lt_cv_prog_compiler_rtti_exceptions=yes
14243 fi
14244 fi
14245 $rm conftest*
14246
14247fi
Reid Spencera773bd52006-08-04 18:18:08 +000014248{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14249echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014250
14251if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14252 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14253else
14254 :
14255fi
14256
14257fi
14258
14259lt_prog_compiler_wl=
14260lt_prog_compiler_pic=
14261lt_prog_compiler_static=
14262
Reid Spencera773bd52006-08-04 18:18:08 +000014263{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14264echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014265
14266 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014267 lt_prog_compiler_wl='-Wl,'
14268 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014269
14270 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014271 aix*)
14272 # All AIX code is PIC.
14273 if test "$host_cpu" = ia64; then
14274 # AIX 5 now supports IA64 processor
14275 lt_prog_compiler_static='-Bstatic'
14276 fi
John Criswell7a73b802003-06-30 21:59:07 +000014277 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014278
John Criswell7a73b802003-06-30 21:59:07 +000014279 amigaos*)
14280 # FIXME: we need at least 68020 code to build shared libraries, but
14281 # adding the `-m68020' flag to GCC prevents building anything better,
14282 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014283 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014284 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014285
14286 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014287 # PIC is the default for these OSes.
14288 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014289
14290 mingw* | pw32* | os2*)
14291 # This hack is so that the source file can tell whether it is being
14292 # built for inclusion in a dll (and should export symbols for example).
14293 lt_prog_compiler_pic='-DDLL_EXPORT'
14294 ;;
14295
John Criswell7a73b802003-06-30 21:59:07 +000014296 darwin* | rhapsody*)
14297 # PIC is the default on this platform
14298 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014299 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014300 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014301
Reid Spencera773bd52006-08-04 18:18:08 +000014302 interix3*)
14303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14304 # Instead, we relocate shared libraries at runtime.
14305 ;;
14306
John Criswell47fdd832003-07-14 16:52:07 +000014307 msdosdjgpp*)
14308 # Just because we use GCC doesn't mean we suddenly get shared libraries
14309 # on systems that don't support them.
14310 lt_prog_compiler_can_build_shared=no
14311 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014312 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014313
John Criswell7a73b802003-06-30 21:59:07 +000014314 sysv4*MP*)
14315 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014316 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014317 fi
14318 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014319
14320 hpux*)
14321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14322 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014323 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014324 hppa*64*|ia64*)
14325 # +Z the default
14326 ;;
14327 *)
14328 lt_prog_compiler_pic='-fPIC'
14329 ;;
14330 esac
14331 ;;
14332
John Criswell7a73b802003-06-30 21:59:07 +000014333 *)
John Criswell47fdd832003-07-14 16:52:07 +000014334 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014335 ;;
14336 esac
14337 else
John Criswell47fdd832003-07-14 16:52:07 +000014338 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014339 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014340 aix*)
14341 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014342 if test "$host_cpu" = ia64; then
14343 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014344 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014345 else
John Criswell47fdd832003-07-14 16:52:07 +000014346 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014347 fi
14348 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014349 darwin*)
14350 # PIC is the default on this platform
14351 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014352 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014353 xlc*)
14354 lt_prog_compiler_pic='-qnocommon'
14355 lt_prog_compiler_wl='-Wl,'
14356 ;;
14357 esac
14358 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014359
John Criswell47fdd832003-07-14 16:52:07 +000014360 mingw* | pw32* | os2*)
14361 # This hack is so that the source file can tell whether it is being
14362 # built for inclusion in a dll (and should export symbols for example).
14363 lt_prog_compiler_pic='-DDLL_EXPORT'
14364 ;;
14365
John Criswell7a73b802003-06-30 21:59:07 +000014366 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014367 lt_prog_compiler_wl='-Wl,'
14368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14369 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014370 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014371 hppa*64*|ia64*)
14372 # +Z the default
14373 ;;
14374 *)
14375 lt_prog_compiler_pic='+Z'
14376 ;;
14377 esac
14378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14379 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014380 ;;
14381
John Criswell47fdd832003-07-14 16:52:07 +000014382 irix5* | irix6* | nonstopux*)
14383 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014384 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014385 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014386 ;;
14387
14388 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014389 lt_prog_compiler_pic='-KPIC'
14390 lt_prog_compiler_static='-Bstatic'
14391 ;;
14392
14393 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014394 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014395 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014396 lt_prog_compiler_wl='-Wl,'
14397 lt_prog_compiler_pic='-KPIC'
14398 lt_prog_compiler_static='-static'
14399 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014400 pgcc* | pgf77* | pgf90* | pgf95*)
14401 # Portland Group compilers (*not* the Pentium gcc compiler,
14402 # which looks to be a dead project)
14403 lt_prog_compiler_wl='-Wl,'
14404 lt_prog_compiler_pic='-fpic'
14405 lt_prog_compiler_static='-Bstatic'
14406 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014407 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014408 lt_prog_compiler_wl='-Wl,'
14409 # All Alpha code is PIC.
14410 lt_prog_compiler_static='-non_shared'
14411 ;;
14412 esac
John Criswell7a73b802003-06-30 21:59:07 +000014413 ;;
14414
14415 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014416 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014417 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014418 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014419 ;;
14420
John Criswell7a73b802003-06-30 21:59:07 +000014421 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014422 lt_prog_compiler_pic='-KPIC'
14423 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014424 case $cc_basename in
14425 f77* | f90* | f95*)
14426 lt_prog_compiler_wl='-Qoption ld ';;
14427 *)
14428 lt_prog_compiler_wl='-Wl,';;
14429 esac
John Criswell7a73b802003-06-30 21:59:07 +000014430 ;;
14431
14432 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014433 lt_prog_compiler_wl='-Qoption ld '
14434 lt_prog_compiler_pic='-PIC'
14435 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014436 ;;
14437
Reid Spencera773bd52006-08-04 18:18:08 +000014438 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014439 lt_prog_compiler_wl='-Wl,'
14440 lt_prog_compiler_pic='-KPIC'
14441 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014442 ;;
14443
14444 sysv4*MP*)
14445 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014446 lt_prog_compiler_pic='-Kconform_pic'
14447 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014448 fi
14449 ;;
14450
Reid Spencera773bd52006-08-04 18:18:08 +000014451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14452 lt_prog_compiler_wl='-Wl,'
14453 lt_prog_compiler_pic='-KPIC'
14454 lt_prog_compiler_static='-Bstatic'
14455 ;;
14456
14457 unicos*)
14458 lt_prog_compiler_wl='-Wl,'
14459 lt_prog_compiler_can_build_shared=no
14460 ;;
14461
John Criswell47fdd832003-07-14 16:52:07 +000014462 uts4*)
14463 lt_prog_compiler_pic='-pic'
14464 lt_prog_compiler_static='-Bstatic'
14465 ;;
14466
John Criswell7a73b802003-06-30 21:59:07 +000014467 *)
John Criswell47fdd832003-07-14 16:52:07 +000014468 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014469 ;;
14470 esac
14471 fi
14472
Reid Spencera773bd52006-08-04 18:18:08 +000014473{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14474echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014475
John Criswell47fdd832003-07-14 16:52:07 +000014476#
14477# Check to make sure the PIC flag actually works.
14478#
14479if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014480
Reid Spencera773bd52006-08-04 18:18:08 +000014481{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14482echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014483if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
John Criswell47fdd832003-07-14 16:52:07 +000014486 lt_prog_compiler_pic_works=no
14487 ac_outfile=conftest.$ac_objext
14488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14489 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14490 # Insert the option either (1) after the last *FLAGS variable, or
14491 # (2) before a word containing "conftest.", or (3) at the end.
14492 # Note that $ac_compile itself does not contain backslashes and begins
14493 # with a dollar sign (not a hyphen), so the echo should work correctly.
14494 # The option is referenced via a variable to avoid confusing sed.
14495 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000014499 (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014500 (eval "$lt_compile" 2>conftest.err)
14501 ac_status=$?
14502 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000014503 echo "$as_me:14503: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014504 if (exit $ac_status) && test -s "$ac_outfile"; then
14505 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014506 # So say no if there are warnings other than the usual output.
14507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014510 lt_prog_compiler_pic_works=yes
14511 fi
14512 fi
14513 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014514
John Criswell47fdd832003-07-14 16:52:07 +000014515fi
Reid Spencera773bd52006-08-04 18:18:08 +000014516{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14517echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014518
John Criswell47fdd832003-07-14 16:52:07 +000014519if test x"$lt_prog_compiler_pic_works" = xyes; then
14520 case $lt_prog_compiler_pic in
14521 "" | " "*) ;;
14522 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14523 esac
John Criswell7a73b802003-06-30 21:59:07 +000014524else
John Criswell47fdd832003-07-14 16:52:07 +000014525 lt_prog_compiler_pic=
14526 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014527fi
14528
John Criswell7a73b802003-06-30 21:59:07 +000014529fi
Reid Spencera773bd52006-08-04 18:18:08 +000014530case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014531 # For platforms which do not support PIC, -DPIC is meaningless:
14532 *djgpp*)
14533 lt_prog_compiler_pic=
14534 ;;
14535 *)
14536 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14537 ;;
14538esac
John Criswell7a73b802003-06-30 21:59:07 +000014539
Reid Spencera773bd52006-08-04 18:18:08 +000014540#
14541# Check to make sure the static flag actually works.
14542#
14543wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14544{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14545echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14546if test "${lt_prog_compiler_static_works+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549 lt_prog_compiler_static_works=no
14550 save_LDFLAGS="$LDFLAGS"
14551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14552 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14554 # The linker can only warn and ignore the option if not recognized
14555 # So say no if there are warnings
14556 if test -s conftest.err; then
14557 # Append any errors to the config.log.
14558 cat conftest.err 1>&5
14559 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14561 if diff conftest.exp conftest.er2 >/dev/null; then
14562 lt_prog_compiler_static_works=yes
14563 fi
14564 else
14565 lt_prog_compiler_static_works=yes
14566 fi
14567 fi
14568 $rm conftest*
14569 LDFLAGS="$save_LDFLAGS"
14570
14571fi
14572{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14573echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14574
14575if test x"$lt_prog_compiler_static_works" = xyes; then
14576 :
14577else
14578 lt_prog_compiler_static=
14579fi
14580
14581
14582{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14583echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014584if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586else
John Criswell47fdd832003-07-14 16:52:07 +000014587 lt_cv_prog_compiler_c_o=no
14588 $rm -r conftest 2>/dev/null
14589 mkdir conftest
14590 cd conftest
14591 mkdir out
14592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014593
John Criswell47fdd832003-07-14 16:52:07 +000014594 lt_compiler_flag="-o out/conftest2.$ac_objext"
14595 # Insert the option either (1) after the last *FLAGS variable, or
14596 # (2) before a word containing "conftest.", or (3) at the end.
14597 # Note that $ac_compile itself does not contain backslashes and begins
14598 # with a dollar sign (not a hyphen), so the echo should work correctly.
14599 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14602 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000014603 (eval echo "\"\$as_me:14603: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014604 (eval "$lt_compile" 2>out/conftest.err)
14605 ac_status=$?
14606 cat out/conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000014607 echo "$as_me:14607: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14609 then
14610 # The compiler can only warn and ignore the option if not recognized
14611 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014612 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014615 lt_cv_prog_compiler_c_o=yes
14616 fi
14617 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014618 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014619 $rm conftest*
14620 # SGI C++ compiler will create directory out/ii_files/ for
14621 # template instantiation
14622 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14623 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014624 cd ..
14625 rmdir conftest
14626 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014627
14628fi
Reid Spencera773bd52006-08-04 18:18:08 +000014629{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14630echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014631
John Criswell7a73b802003-06-30 21:59:07 +000014632
John Criswell7a73b802003-06-30 21:59:07 +000014633hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014634if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014635 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014636 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14637echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014638 hard_links=yes
14639 $rm conftest*
14640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14641 touch conftest.a
14642 ln conftest.a conftest.b 2>&5 || hard_links=no
14643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014644 { echo "$as_me:$LINENO: result: $hard_links" >&5
14645echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014646 if test "$hard_links" = no; then
14647 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14648echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14649 need_locks=warn
14650 fi
14651else
14652 need_locks=no
14653fi
John Criswell7a73b802003-06-30 21:59:07 +000014654
Reid Spencera773bd52006-08-04 18:18:08 +000014655{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014657
14658 runpath_var=
14659 allow_undefined_flag=
14660 enable_shared_with_static_runtimes=no
14661 archive_cmds=
14662 archive_expsym_cmds=
14663 old_archive_From_new_cmds=
14664 old_archive_from_expsyms_cmds=
14665 export_dynamic_flag_spec=
14666 whole_archive_flag_spec=
14667 thread_safe_flag_spec=
14668 hardcode_libdir_flag_spec=
14669 hardcode_libdir_flag_spec_ld=
14670 hardcode_libdir_separator=
14671 hardcode_direct=no
14672 hardcode_minus_L=no
14673 hardcode_shlibpath_var=unsupported
14674 link_all_deplibs=unknown
14675 hardcode_automatic=no
14676 module_cmds=
14677 module_expsym_cmds=
14678 always_export_symbols=no
14679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14680 # include_expsyms should be a list of space-separated symbols to be *always*
14681 # included in the symbol list
14682 include_expsyms=
14683 # exclude_expsyms can be an extended regexp of symbols to exclude
14684 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14685 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14686 # as well as any symbol that contains `d'.
14687 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14689 # platforms (ab)use it in PIC code, but their linkers get confused if
14690 # the symbol is explicitly referenced. Since portable code cannot
14691 # rely on this symbol name, it's probably fine to never include it in
14692 # preloaded symbol tables.
14693 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014694 # Just being paranoid about ensuring that cc_basename is set.
14695 for cc_temp in $compiler""; do
14696 case $cc_temp in
14697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14699 \-*) ;;
14700 *) break;;
14701 esac
14702done
14703cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014704
14705 case $host_os in
14706 cygwin* | mingw* | pw32*)
14707 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14708 # When not using gcc, we currently assume that we are using
14709 # Microsoft Visual C++.
14710 if test "$GCC" != yes; then
14711 with_gnu_ld=no
14712 fi
14713 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014714 interix*)
14715 # we just hope/assume this is gcc and not c89 (= MSVC++)
14716 with_gnu_ld=yes
14717 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014718 openbsd*)
14719 with_gnu_ld=no
14720 ;;
14721 esac
14722
14723 ld_shlibs=yes
14724 if test "$with_gnu_ld" = yes; then
14725 # If archive_cmds runs LD, not CC, wlarc should be empty
14726 wlarc='${wl}'
14727
Reid Spencera773bd52006-08-04 18:18:08 +000014728 # Set some defaults for GNU ld with shared library support. These
14729 # are reset later if shared libraries are not supported. Putting them
14730 # here allows them to be overridden if necessary.
14731 runpath_var=LD_RUN_PATH
14732 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14733 export_dynamic_flag_spec='${wl}--export-dynamic'
14734 # ancient GNU ld didn't support --whole-archive et. al.
14735 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14737 else
14738 whole_archive_flag_spec=
14739 fi
14740 supports_anon_versioning=no
14741 case `$LD -v 2>/dev/null` in
14742 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14743 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14744 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14745 *\ 2.11.*) ;; # other 2.11 versions
14746 *) supports_anon_versioning=yes ;;
14747 esac
14748
John Criswell47fdd832003-07-14 16:52:07 +000014749 # See if GNU ld supports shared libraries.
14750 case $host_os in
14751 aix3* | aix4* | aix5*)
14752 # On AIX/PPC, the GNU linker is very broken
14753 if test "$host_cpu" != ia64; then
14754 ld_shlibs=no
14755 cat <<EOF 1>&2
14756
14757*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14758*** to be unable to reliably create shared libraries on AIX.
14759*** Therefore, libtool is disabling shared libraries support. If you
14760*** really care for shared libraries, you may want to modify your PATH
14761*** so that a non-GNU linker is found, and then restart.
14762
14763EOF
14764 fi
14765 ;;
14766
14767 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014768 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 +000014769 hardcode_libdir_flag_spec='-L$libdir'
14770 hardcode_minus_L=yes
14771
14772 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14773 # that the semantics of dynamic libraries on AmigaOS, at least up
14774 # to version 4, is to share data among multiple programs linked
14775 # with the same dynamic library. Since this doesn't match the
14776 # behavior of shared libraries on other platforms, we can't use
14777 # them.
14778 ld_shlibs=no
14779 ;;
14780
14781 beos*)
14782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14783 allow_undefined_flag=unsupported
14784 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14785 # support --undefined. This deserves some investigation. FIXME
14786 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 else
14788 ld_shlibs=no
14789 fi
14790 ;;
14791
14792 cygwin* | mingw* | pw32*)
14793 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14794 # as there is no search path for DLLs.
14795 hardcode_libdir_flag_spec='-L$libdir'
14796 allow_undefined_flag=unsupported
14797 always_export_symbols=no
14798 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014799 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 +000014800
14801 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014802 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 +000014803 # If the export-symbols file already is a .def file (1st line
14804 # is EXPORTS), use it as is; otherwise, prepend...
14805 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14806 cp $export_symbols $output_objdir/$soname.def;
14807 else
14808 echo EXPORTS > $output_objdir/$soname.def;
14809 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014810 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014811 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14812 else
14813 ld_shlibs=no
14814 fi
14815 ;;
14816
14817 interix3*)
14818 hardcode_direct=no
14819 hardcode_shlibpath_var=no
14820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14821 export_dynamic_flag_spec='${wl}-E'
14822 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14823 # Instead, shared libraries are loaded at an image base (0x10000000 by
14824 # default) and relocated if they conflict, which is a slow very memory
14825 # consuming and fragmenting process. To avoid this, we pick a random,
14826 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14827 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14829 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'
14830 ;;
14831
14832 linux*)
14833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14834 tmp_addflag=
14835 case $cc_basename,$host_cpu in
14836 pgcc*) # Portland Group C compiler
14837 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'
14838 tmp_addflag=' $pic_flag'
14839 ;;
14840 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14841 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'
14842 tmp_addflag=' $pic_flag -Mnomain' ;;
14843 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14844 tmp_addflag=' -i_dynamic' ;;
14845 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14846 tmp_addflag=' -i_dynamic -nofor_main' ;;
14847 ifc* | ifort*) # Intel Fortran compiler
14848 tmp_addflag=' -nofor_main' ;;
14849 esac
14850 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851
14852 if test $supports_anon_versioning = yes; then
14853 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14855 $echo "local: *; };" >> $output_objdir/$libname.ver~
14856 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14857 fi
John Criswell47fdd832003-07-14 16:52:07 +000014858 else
14859 ld_shlibs=no
14860 fi
14861 ;;
14862
14863 netbsd*)
14864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14865 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14866 wlarc=
14867 else
14868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14870 fi
14871 ;;
14872
Reid Spencera773bd52006-08-04 18:18:08 +000014873 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014874 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14875 ld_shlibs=no
14876 cat <<EOF 1>&2
14877
14878*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14879*** create shared libraries on Solaris systems. Therefore, libtool
14880*** is disabling shared libraries support. We urge you to upgrade GNU
14881*** binutils to release 2.9.1 or newer. Another option is to modify
14882*** your PATH or compiler configuration so that the native linker is
14883*** used, and then restart.
14884
14885EOF
14886 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889 else
14890 ld_shlibs=no
14891 fi
14892 ;;
14893
Reid Spencera773bd52006-08-04 18:18:08 +000014894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14895 case `$LD -v 2>&1` in
14896 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14897 ld_shlibs=no
14898 cat <<_LT_EOF 1>&2
14899
14900*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14901*** reliably create shared libraries on SCO systems. Therefore, libtool
14902*** is disabling shared libraries support. We urge you to upgrade GNU
14903*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14904*** your PATH or compiler configuration so that the native linker is
14905*** used, and then restart.
14906
14907_LT_EOF
14908 ;;
14909 *)
14910 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14911 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14914 else
14915 ld_shlibs=no
14916 fi
14917 ;;
14918 esac
14919 ;;
14920
John Criswell47fdd832003-07-14 16:52:07 +000014921 sunos4*)
14922 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14923 wlarc=
14924 hardcode_direct=yes
14925 hardcode_shlibpath_var=no
14926 ;;
14927
14928 *)
14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14932 else
14933 ld_shlibs=no
14934 fi
14935 ;;
14936 esac
14937
Reid Spencera773bd52006-08-04 18:18:08 +000014938 if test "$ld_shlibs" = no; then
14939 runpath_var=
14940 hardcode_libdir_flag_spec=
14941 export_dynamic_flag_spec=
14942 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014943 fi
14944 else
14945 # PORTME fill in a description of your system's linker (not GNU ld)
14946 case $host_os in
14947 aix3*)
14948 allow_undefined_flag=unsupported
14949 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014950 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 +000014951 # Note: this linker hardcodes the directories in LIBPATH if there
14952 # are no directories specified by -L.
14953 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014954 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014955 # Neither direct hardcoding nor static linking is supported with a
14956 # broken collect2.
14957 hardcode_direct=unsupported
14958 fi
14959 ;;
14960
14961 aix4* | aix5*)
14962 if test "$host_cpu" = ia64; then
14963 # On IA64, the linker does run time linking by default, so we don't
14964 # have to do anything special.
14965 aix_use_runtimelinking=no
14966 exp_sym_flag='-Bexport'
14967 no_entry_flag=""
14968 else
14969 # If we're using GNU nm, then we don't want the "-C" option.
14970 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14971 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14972 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'
14973 else
14974 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'
14975 fi
14976 aix_use_runtimelinking=no
14977
14978 # Test if we are trying to use run time linking or normal
14979 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14980 # need to do runtime linking.
14981 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14982 for ld_flag in $LDFLAGS; do
14983 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14984 aix_use_runtimelinking=yes
14985 break
14986 fi
14987 done
Reid Spencera773bd52006-08-04 18:18:08 +000014988 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014989 esac
14990
14991 exp_sym_flag='-bexport'
14992 no_entry_flag='-bnoentry'
14993 fi
14994
14995 # When large executables or shared objects are built, AIX ld can
14996 # have problems creating the table of contents. If linking a library
14997 # or program results in "error TOC overflow" add -mminimal-toc to
14998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15000
15001 archive_cmds=''
15002 hardcode_direct=yes
15003 hardcode_libdir_separator=':'
15004 link_all_deplibs=yes
15005
15006 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015007 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015008 # We only want to do this on AIX 4.2 and lower, the check
15009 # below for broken collect2 doesn't work under 4.3+
15010 collect2name=`${CC} -print-prog-name=collect2`
15011 if test -f "$collect2name" && \
15012 strings "$collect2name" | grep resolve_lib_name >/dev/null
15013 then
15014 # We have reworked collect2
15015 hardcode_direct=yes
15016 else
15017 # We have old collect2
15018 hardcode_direct=unsupported
15019 # It fails to find uninstalled libraries when the uninstalled
15020 # path is not listed in the libpath. Setting hardcode_minus_L
15021 # to unsupported forces relinking
15022 hardcode_minus_L=yes
15023 hardcode_libdir_flag_spec='-L$libdir'
15024 hardcode_libdir_separator=
15025 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015026 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015027 esac
15028 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015029 if test "$aix_use_runtimelinking" = yes; then
15030 shared_flag="$shared_flag "'${wl}-G'
15031 fi
John Criswell47fdd832003-07-14 16:52:07 +000015032 else
15033 # not using gcc
15034 if test "$host_cpu" = ia64; then
15035 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15036 # chokes on -Wl,-G. The following line is correct:
15037 shared_flag='-G'
15038 else
Reid Spencera773bd52006-08-04 18:18:08 +000015039 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015040 shared_flag='${wl}-G'
15041 else
15042 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015043 fi
John Criswell47fdd832003-07-14 16:52:07 +000015044 fi
15045 fi
15046
15047 # It seems that -bexpall does not export symbols beginning with
15048 # underscore (_), so it is better to generate a list of symbols to export.
15049 always_export_symbols=yes
15050 if test "$aix_use_runtimelinking" = yes; then
15051 # Warning - without using the other runtime loading flags (-brtl),
15052 # -berok will link without error, but may produce a broken library.
15053 allow_undefined_flag='-berok'
15054 # Determine the default libpath from the value encoded in an empty executable.
15055 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015056/* confdefs.h. */
15057_ACEOF
15058cat confdefs.h >>conftest.$ac_ext
15059cat >>conftest.$ac_ext <<_ACEOF
15060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015061
John Criswell7a73b802003-06-30 21:59:07 +000015062int
15063main ()
15064{
John Criswell47fdd832003-07-14 16:52:07 +000015065
John Criswell7a73b802003-06-30 21:59:07 +000015066 ;
15067 return 0;
15068}
15069_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015070rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015071if { (ac_try="$ac_link"
15072case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075esac
15076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088esac
15089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098esac
15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015104
John Criswell47fdd832003-07-14 16:52:07 +000015105aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15106}'`
15107# Check for a 64-bit object if we didn't find anything.
15108if 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; }
15109}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015110else
15111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015112sed 's/^/| /' conftest.$ac_ext >&5
15113
Reid Spencera773bd52006-08-04 18:18:08 +000015114
John Criswell7a73b802003-06-30 21:59:07 +000015115fi
Reid Spencera773bd52006-08-04 18:18:08 +000015116
15117rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015118 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015119if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015120
John Criswell47fdd832003-07-14 16:52:07 +000015121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015122 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 +000015123 else
15124 if test "$host_cpu" = ia64; then
15125 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015127 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 +000015128 else
15129 # Determine the default libpath from the value encoded in an empty executable.
15130 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015131/* confdefs.h. */
15132_ACEOF
15133cat confdefs.h >>conftest.$ac_ext
15134cat >>conftest.$ac_ext <<_ACEOF
15135/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015136
John Criswell47fdd832003-07-14 16:52:07 +000015137int
15138main ()
15139{
John Criswell7a73b802003-06-30 21:59:07 +000015140
John Criswell47fdd832003-07-14 16:52:07 +000015141 ;
15142 return 0;
15143}
15144_ACEOF
15145rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015146if { (ac_try="$ac_link"
15147case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150esac
15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015153 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163esac
15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } &&
15169 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173esac
15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015179
John Criswell47fdd832003-07-14 16:52:07 +000015180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15181}'`
15182# Check for a 64-bit object if we didn't find anything.
15183if 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; }
15184}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015185else
John Criswell47fdd832003-07-14 16:52:07 +000015186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015187sed 's/^/| /' conftest.$ac_ext >&5
15188
Reid Spencera773bd52006-08-04 18:18:08 +000015189
John Criswell47fdd832003-07-14 16:52:07 +000015190fi
Reid Spencera773bd52006-08-04 18:18:08 +000015191
15192rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015193 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015194if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015195
John Criswell47fdd832003-07-14 16:52:07 +000015196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15197 # Warning - without using the other run time loading flags,
15198 # -berok will link without error, but may produce a broken library.
15199 no_undefined_flag=' ${wl}-bernotok'
15200 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015201 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015202 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015203 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015204 # This is similar to how AIX traditionally builds its shared libraries.
15205 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 +000015206 fi
15207 fi
John Criswell7a73b802003-06-30 21:59:07 +000015208 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015209
15210 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015211 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 +000015212 hardcode_libdir_flag_spec='-L$libdir'
15213 hardcode_minus_L=yes
15214 # see comment about different semantics on the GNU ld section
15215 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015216 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015217
Reid Spencer2706f8c2004-09-19 23:53:36 +000015218 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015219 export_dynamic_flag_spec=-rdynamic
15220 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015221
John Criswell47fdd832003-07-14 16:52:07 +000015222 cygwin* | mingw* | pw32*)
15223 # When not using gcc, we currently assume that we are using
15224 # Microsoft Visual C++.
15225 # hardcode_libdir_flag_spec is actually meaningless, as there is
15226 # no search path for DLLs.
15227 hardcode_libdir_flag_spec=' '
15228 allow_undefined_flag=unsupported
15229 # Tell ltmain to make .lib files, not .a files.
15230 libext=lib
15231 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015232 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015233 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015234 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015235 # The linker will automatically build a .lib file if we build a DLL.
15236 old_archive_From_new_cmds='true'
15237 # FIXME: Should let the user specify the lib program.
15238 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15239 fix_srcfile_path='`cygpath -w "$srcfile"`'
15240 enable_shared_with_static_runtimes=yes
15241 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015242
John Criswell47fdd832003-07-14 16:52:07 +000015243 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015244 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015245 rhapsody* | darwin1.[012])
15246 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15247 ;;
15248 *) # Darwin 1.3 on
15249 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15250 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15251 else
15252 case ${MACOSX_DEPLOYMENT_TARGET} in
15253 10.[012])
15254 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15255 ;;
15256 10.*)
15257 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15258 ;;
15259 esac
15260 fi
15261 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015262 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015263 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015264 hardcode_direct=no
15265 hardcode_automatic=yes
15266 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015267 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015268 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015269 if test "$GCC" = yes ; then
15270 output_verbose_link_cmd='echo'
15271 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15272 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015273 # 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 +000015274 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}'
15275 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 +000015276 else
Reid Spencera773bd52006-08-04 18:18:08 +000015277 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015278 xlc*)
15279 output_verbose_link_cmd='echo'
15280 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15281 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015282 # 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 +000015283 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}'
15284 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 +000015285 ;;
15286 *)
15287 ld_shlibs=no
15288 ;;
15289 esac
John Criswell7a73b802003-06-30 21:59:07 +000015290 fi
John Criswell47fdd832003-07-14 16:52:07 +000015291 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015292
John Criswell47fdd832003-07-14 16:52:07 +000015293 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015295 hardcode_libdir_flag_spec='-L$libdir'
15296 hardcode_shlibpath_var=no
15297 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015298
John Criswell47fdd832003-07-14 16:52:07 +000015299 freebsd1*)
15300 ld_shlibs=no
15301 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015302
John Criswell47fdd832003-07-14 16:52:07 +000015303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15304 # support. Future versions do this automatically, but an explicit c++rt0.o
15305 # does not break anything, and helps significantly (at the cost of a little
15306 # extra space).
15307 freebsd2.2*)
15308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15309 hardcode_libdir_flag_spec='-R$libdir'
15310 hardcode_direct=yes
15311 hardcode_shlibpath_var=no
15312 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015313
John Criswell47fdd832003-07-14 16:52:07 +000015314 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15315 freebsd2*)
15316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15317 hardcode_direct=yes
15318 hardcode_minus_L=yes
15319 hardcode_shlibpath_var=no
15320 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015321
John Criswell47fdd832003-07-14 16:52:07 +000015322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015323 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015324 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15325 hardcode_libdir_flag_spec='-R$libdir'
15326 hardcode_direct=yes
15327 hardcode_shlibpath_var=no
15328 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015329
John Criswell47fdd832003-07-14 16:52:07 +000015330 hpux9*)
15331 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015332 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 +000015333 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015334 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 +000015335 fi
15336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15337 hardcode_libdir_separator=:
15338 hardcode_direct=yes
15339
15340 # hardcode_minus_L: Not really in the search PATH,
15341 # but as the default location of the library.
15342 hardcode_minus_L=yes
15343 export_dynamic_flag_spec='${wl}-E'
15344 ;;
15345
Reid Spencera773bd52006-08-04 18:18:08 +000015346 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015347 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15349 else
15350 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15351 fi
15352 if test "$with_gnu_ld" = no; then
15353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15354 hardcode_libdir_separator=:
15355
15356 hardcode_direct=yes
15357 export_dynamic_flag_spec='${wl}-E'
15358
15359 # hardcode_minus_L: Not really in the search PATH,
15360 # but as the default location of the library.
15361 hardcode_minus_L=yes
15362 fi
15363 ;;
15364
15365 hpux11*)
15366 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15367 case $host_cpu in
15368 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015369 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15370 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015371 ia64*)
15372 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15373 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015374 *)
15375 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15376 ;;
15377 esac
15378 else
Reid Spencera773bd52006-08-04 18:18:08 +000015379 case $host_cpu in
15380 hppa*64*)
15381 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15382 ;;
15383 ia64*)
15384 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015385 ;;
15386 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015387 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 +000015388 ;;
15389 esac
15390 fi
15391 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015392 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15393 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015394
Reid Spencera773bd52006-08-04 18:18:08 +000015395 case $host_cpu in
15396 hppa*64*|ia64*)
15397 hardcode_libdir_flag_spec_ld='+b $libdir'
15398 hardcode_direct=no
15399 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015400 ;;
15401 *)
John Criswell47fdd832003-07-14 16:52:07 +000015402 hardcode_direct=yes
15403 export_dynamic_flag_spec='${wl}-E'
15404
15405 # hardcode_minus_L: Not really in the search PATH,
15406 # but as the default location of the library.
15407 hardcode_minus_L=yes
15408 ;;
15409 esac
15410 fi
15411 ;;
15412
15413 irix5* | irix6* | nonstopux*)
15414 if test "$GCC" = yes; then
15415 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'
15416 else
15417 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'
15418 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15419 fi
15420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15421 hardcode_libdir_separator=:
15422 link_all_deplibs=yes
15423 ;;
15424
15425 netbsd*)
15426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15428 else
15429 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15430 fi
15431 hardcode_libdir_flag_spec='-R$libdir'
15432 hardcode_direct=yes
15433 hardcode_shlibpath_var=no
15434 ;;
15435
15436 newsos6)
15437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15438 hardcode_direct=yes
15439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15440 hardcode_libdir_separator=:
15441 hardcode_shlibpath_var=no
15442 ;;
15443
15444 openbsd*)
15445 hardcode_direct=yes
15446 hardcode_shlibpath_var=no
15447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15448 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015449 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 +000015450 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15451 export_dynamic_flag_spec='${wl}-E'
15452 else
15453 case $host_os in
15454 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_libdir_flag_spec='-R$libdir'
15457 ;;
15458 *)
15459 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15460 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15461 ;;
15462 esac
15463 fi
15464 ;;
15465
15466 os2*)
15467 hardcode_libdir_flag_spec='-L$libdir'
15468 hardcode_minus_L=yes
15469 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015470 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 +000015471 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15472 ;;
15473
15474 osf3*)
15475 if test "$GCC" = yes; then
15476 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15477 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'
15478 else
15479 allow_undefined_flag=' -expect_unresolved \*'
15480 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'
15481 fi
15482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15483 hardcode_libdir_separator=:
15484 ;;
15485
15486 osf4* | osf5*) # as osf3* with the addition of -msym flag
15487 if test "$GCC" = yes; then
15488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15489 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'
15490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491 else
15492 allow_undefined_flag=' -expect_unresolved \*'
15493 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 +000015494 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 +000015495 $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 +000015496
John Criswell47fdd832003-07-14 16:52:07 +000015497 # Both c and cxx compiler support -rpath directly
15498 hardcode_libdir_flag_spec='-rpath $libdir'
15499 fi
15500 hardcode_libdir_separator=:
15501 ;;
15502
John Criswell47fdd832003-07-14 16:52:07 +000015503 solaris*)
15504 no_undefined_flag=' -z text'
15505 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015506 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015507 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015508 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15509 $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 +000015510 else
Reid Spencera773bd52006-08-04 18:18:08 +000015511 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015512 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015513 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15514 $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 +000015515 fi
15516 hardcode_libdir_flag_spec='-R$libdir'
15517 hardcode_shlibpath_var=no
15518 case $host_os in
15519 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015520 *)
15521 # The compiler driver will combine linker options so we
15522 # cannot just pass the convience library names through
15523 # without $wl, iff we do not link with $LD.
15524 # Luckily, gcc supports the same syntax we need for Sun Studio.
15525 # Supported since Solaris 2.6 (maybe 2.5.1?)
15526 case $wlarc in
15527 '')
15528 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15529 *)
15530 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' ;;
15531 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015532 esac
15533 link_all_deplibs=yes
15534 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015535
John Criswell47fdd832003-07-14 16:52:07 +000015536 sunos4*)
15537 if test "x$host_vendor" = xsequent; then
15538 # Use $CC to link under sequent, because it throws in some extra .o
15539 # files that make .init and .fini sections work.
15540 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15541 else
15542 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15543 fi
15544 hardcode_libdir_flag_spec='-L$libdir'
15545 hardcode_direct=yes
15546 hardcode_minus_L=yes
15547 hardcode_shlibpath_var=no
15548 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015549
John Criswell47fdd832003-07-14 16:52:07 +000015550 sysv4)
15551 case $host_vendor in
15552 sni)
15553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554 hardcode_direct=yes # is this really true???
15555 ;;
15556 siemens)
15557 ## LD is ld it makes a PLAMLIB
15558 ## CC just makes a GrossModule.
15559 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15560 reload_cmds='$CC -r -o $output$reload_objs'
15561 hardcode_direct=no
15562 ;;
15563 motorola)
15564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15566 ;;
15567 esac
15568 runpath_var='LD_RUN_PATH'
15569 hardcode_shlibpath_var=no
15570 ;;
15571
15572 sysv4.3*)
15573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15574 hardcode_shlibpath_var=no
15575 export_dynamic_flag_spec='-Bexport'
15576 ;;
15577
15578 sysv4*MP*)
15579 if test -d /usr/nec; then
15580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_shlibpath_var=no
15582 runpath_var=LD_RUN_PATH
15583 hardcode_runpath_var=yes
15584 ld_shlibs=yes
15585 fi
15586 ;;
15587
Reid Spencera773bd52006-08-04 18:18:08 +000015588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15589 no_undefined_flag='${wl}-z,text'
15590 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015591 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015592 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015593
John Criswell47fdd832003-07-14 16:52:07 +000015594 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015595 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 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 +000015597 else
Reid Spencera773bd52006-08-04 18:18:08 +000015598 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 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 +000015600 fi
John Criswell47fdd832003-07-14 16:52:07 +000015601 ;;
15602
Reid Spencera773bd52006-08-04 18:18:08 +000015603 sysv5* | sco3.2v5* | sco5v6*)
15604 # Note: We can NOT use -z defs as we might desire, because we do not
15605 # link with -lc, and that would cause any symbols used from libc to
15606 # always be unresolved, which means just about no library would
15607 # ever link correctly. If we're not using GNU ld we use -z text
15608 # though, which does catch some bad symbols but isn't as heavy-handed
15609 # as -z defs.
15610 no_undefined_flag='${wl}-z,text'
15611 allow_undefined_flag='${wl}-z,nodefs'
15612 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015613 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015614 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15615 hardcode_libdir_separator=':'
15616 link_all_deplibs=yes
15617 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015618 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015619
15620 if test "$GCC" = yes; then
15621 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623 else
15624 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626 fi
John Criswell47fdd832003-07-14 16:52:07 +000015627 ;;
15628
15629 uts4*)
15630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631 hardcode_libdir_flag_spec='-L$libdir'
15632 hardcode_shlibpath_var=no
15633 ;;
15634
15635 *)
15636 ld_shlibs=no
15637 ;;
15638 esac
15639 fi
15640
Reid Spencera773bd52006-08-04 18:18:08 +000015641{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15642echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015643test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015644
John Criswell47fdd832003-07-14 16:52:07 +000015645#
15646# Do we need to explicitly link libc?
15647#
15648case "x$archive_cmds_need_lc" in
15649x|xyes)
15650 # Assume -lc should be added
15651 archive_cmds_need_lc=yes
15652
15653 if test "$enable_shared" = yes && test "$GCC" = yes; then
15654 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015655 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015656 # FIXME: we may have to deal with multi-command sequences.
15657 ;;
15658 '$CC '*)
15659 # Test whether the compiler implicitly links with -lc since on some
15660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15661 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015662 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15663echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015664 $rm conftest*
15665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15666
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668 (eval $ac_compile) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } 2>conftest.err; then
15672 soname=conftest
15673 lib=conftest
15674 libobjs=conftest.$ac_objext
15675 deplibs=
15676 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015677 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015678 compiler_flags=-v
15679 linker_flags=-v
15680 verstring=
15681 output_objdir=.
15682 libname=conftest
15683 lt_save_allow_undefined_flag=$allow_undefined_flag
15684 allow_undefined_flag=
15685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15686 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }
15690 then
15691 archive_cmds_need_lc=no
15692 else
15693 archive_cmds_need_lc=yes
15694 fi
15695 allow_undefined_flag=$lt_save_allow_undefined_flag
15696 else
15697 cat conftest.err 1>&5
15698 fi
15699 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015700 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15701echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015702 ;;
15703 esac
15704 fi
15705 ;;
15706esac
15707
Reid Spencera773bd52006-08-04 18:18:08 +000015708{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15709echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015710library_names_spec=
15711libname_spec='lib$name'
15712soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015713shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015714postinstall_cmds=
15715postuninstall_cmds=
15716finish_cmds=
15717finish_eval=
15718shlibpath_var=
15719shlibpath_overrides_runpath=unknown
15720version_type=none
15721dynamic_linker="$host_os ld.so"
15722sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015723if test "$GCC" = yes; then
15724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15726 # if the path contains ";" then we assume it to be the separator
15727 # otherwise default to the standard path separator (i.e. ":") - it is
15728 # assumed that no part of a normal pathname contains ";" but that should
15729 # okay in the real world where ";" in dirpaths is itself problematic.
15730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15731 else
15732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15733 fi
15734else
15735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15736fi
15737need_lib_prefix=unknown
15738hardcode_into_libs=no
15739
15740# when you set need_version to no, make sure it does not cause -set_version
15741# flags to be left without arguments
15742need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015743
15744case $host_os in
15745aix3*)
15746 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015748 shlibpath_var=LIBPATH
15749
John Criswell47fdd832003-07-14 16:52:07 +000015750 # AIX 3 has no versioning support, so we append a major version to the name.
15751 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015752 ;;
15753
15754aix4* | aix5*)
15755 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015756 need_lib_prefix=no
15757 need_version=no
15758 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015759 if test "$host_cpu" = ia64; then
15760 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015762 shlibpath_var=LD_LIBRARY_PATH
15763 else
15764 # With GCC up to 2.95.x, collect2 would create an import file
15765 # for dependence libraries. The import file would start with
15766 # the line `#! .'. This would cause the generated library to
15767 # depend on `.', always an invalid library. This was fixed in
15768 # development snapshots of GCC prior to 3.0.
15769 case $host_os in
15770 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15772 echo ' yes '
15773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15774 :
15775 else
15776 can_build_shared=no
15777 fi
15778 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015779 esac
John Criswell47fdd832003-07-14 16:52:07 +000015780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15781 # soname into executable. Probably we can add versioning support to
15782 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015783 if test "$aix_use_runtimelinking" = yes; then
15784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15785 # instead of lib<name>.a to let people know that these are not
15786 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015788 else
15789 # We preserve .a as extension for shared libraries through AIX4.2
15790 # and later when we are not doing run time linking.
15791 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015792 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015793 fi
15794 shlibpath_var=LIBPATH
15795 fi
15796 ;;
15797
15798amigaos*)
15799 library_names_spec='$libname.ixlibrary $libname.a'
15800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015801 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 +000015802 ;;
15803
15804beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015805 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015806 dynamic_linker="$host_os ld.so"
15807 shlibpath_var=LIBRARY_PATH
15808 ;;
15809
Reid Spencer2706f8c2004-09-19 23:53:36 +000015810bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015811 version_type=linux
15812 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15816 shlibpath_var=LD_LIBRARY_PATH
15817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015819 # the default ld.so.conf also contains /usr/contrib/lib and
15820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15821 # libtool to hard-code these into programs
15822 ;;
15823
15824cygwin* | mingw* | pw32*)
15825 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015826 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015827 need_version=no
15828 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015829
John Criswell7a73b802003-06-30 21:59:07 +000015830 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015831 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015832 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015834 postinstall_cmds='base_file=`basename \${file}`~
15835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15836 dldir=$destdir/`dirname \$dlpath`~
15837 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015838 $install_prog $dir/$dlname \$dldir/$dlname~
15839 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15841 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015842 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015843 shlibpath_overrides_runpath=yes
15844
15845 case $host_os in
15846 cygwin*)
15847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15848 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 +000015849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015850 ;;
15851 mingw*)
15852 # MinGW DLLs use traditional 'lib' prefix
15853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15855 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15856 # It is most probably a Windows format PATH printed by
15857 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15858 # path with ; separators, and with drive letters. We can handle the
15859 # drive letters (cygwin fileutils understands them), so leave them,
15860 # especially as we might pass files found there to a mingw objdump,
15861 # which wouldn't understand a cygwinified path. Ahh.
15862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15863 else
15864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15865 fi
15866 ;;
15867 pw32*)
15868 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015869 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 +000015870 ;;
15871 esac
John Criswell7a73b802003-06-30 21:59:07 +000015872 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015873
John Criswell7a73b802003-06-30 21:59:07 +000015874 *)
John Criswell47fdd832003-07-14 16:52:07 +000015875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015876 ;;
15877 esac
15878 dynamic_linker='Win32 ld.exe'
15879 # FIXME: first we should search . and the directory the executable is in
15880 shlibpath_var=PATH
15881 ;;
15882
15883darwin* | rhapsody*)
15884 dynamic_linker="$host_os dyld"
15885 version_type=darwin
15886 need_lib_prefix=no
15887 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015889 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015890 shlibpath_overrides_runpath=yes
15891 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015892 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015894 if test "$GCC" = yes; then
15895 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"`
15896 else
15897 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015898 fi
15899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15900 ;;
15901
15902dgux*)
15903 version_type=linux
15904 need_lib_prefix=no
15905 need_version=no
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15907 soname_spec='${libname}${release}${shared_ext}$major'
15908 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015909 ;;
15910
15911freebsd1*)
15912 dynamic_linker=no
15913 ;;
15914
Reid Spencer2706f8c2004-09-19 23:53:36 +000015915kfreebsd*-gnu)
15916 version_type=linux
15917 need_lib_prefix=no
15918 need_version=no
15919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath=no
15923 hardcode_into_libs=yes
15924 dynamic_linker='GNU ld.so'
15925 ;;
15926
Reid Spencera773bd52006-08-04 18:18:08 +000015927freebsd* | dragonfly*)
15928 # DragonFly does not have aout. When/if they implement a new
15929 # versioning mechanism, adjust this.
15930 if test -x /usr/bin/objformat; then
15931 objformat=`/usr/bin/objformat`
15932 else
15933 case $host_os in
15934 freebsd[123]*) objformat=aout ;;
15935 *) objformat=elf ;;
15936 esac
15937 fi
John Criswell7a73b802003-06-30 21:59:07 +000015938 version_type=freebsd-$objformat
15939 case $version_type in
15940 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015942 need_version=no
15943 need_lib_prefix=no
15944 ;;
15945 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015947 need_version=yes
15948 ;;
15949 esac
15950 shlibpath_var=LD_LIBRARY_PATH
15951 case $host_os in
15952 freebsd2*)
15953 shlibpath_overrides_runpath=yes
15954 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015955 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015956 shlibpath_overrides_runpath=yes
15957 hardcode_into_libs=yes
15958 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015961 shlibpath_overrides_runpath=no
15962 hardcode_into_libs=yes
15963 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015964 freebsd*) # from 4.6 on
15965 shlibpath_overrides_runpath=yes
15966 hardcode_into_libs=yes
15967 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015968 esac
15969 ;;
15970
15971gnu*)
15972 version_type=linux
15973 need_lib_prefix=no
15974 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015977 shlibpath_var=LD_LIBRARY_PATH
15978 hardcode_into_libs=yes
15979 ;;
15980
15981hpux9* | hpux10* | hpux11*)
15982 # Give a soname corresponding to the major version so that dld.sl refuses to
15983 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015984 version_type=sunos
15985 need_lib_prefix=no
15986 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015987 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015988 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015989 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015990 hardcode_into_libs=yes
15991 dynamic_linker="$host_os dld.so"
15992 shlibpath_var=LD_LIBRARY_PATH
15993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 if test "X$HPUX_IA64_MODE" = X32; then
15997 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15998 else
15999 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16000 fi
16001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16002 ;;
16003 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016004 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016005 hardcode_into_libs=yes
16006 dynamic_linker="$host_os dld.sl"
16007 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16013 ;;
16014 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016015 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016016 dynamic_linker="$host_os dld.sl"
16017 shlibpath_var=SHLIB_PATH
16018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 ;;
16022 esac
John Criswell7a73b802003-06-30 21:59:07 +000016023 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16024 postinstall_cmds='chmod 555 $lib'
16025 ;;
16026
Reid Spencera773bd52006-08-04 18:18:08 +000016027interix3*)
16028 version_type=linux
16029 need_lib_prefix=no
16030 need_version=no
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=no
16036 hardcode_into_libs=yes
16037 ;;
16038
John Criswell47fdd832003-07-14 16:52:07 +000016039irix5* | irix6* | nonstopux*)
16040 case $host_os in
16041 nonstopux*) version_type=nonstopux ;;
16042 *)
16043 if test "$lt_cv_prog_gnu_ld" = yes; then
16044 version_type=linux
16045 else
16046 version_type=irix
16047 fi ;;
16048 esac
John Criswell7a73b802003-06-30 21:59:07 +000016049 need_lib_prefix=no
16050 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016051 soname_spec='${libname}${release}${shared_ext}$major'
16052 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 +000016053 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016054 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016055 libsuff= shlibsuff=
16056 ;;
16057 *)
16058 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16060 libsuff= shlibsuff= libmagic=32-bit;;
16061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16062 libsuff=32 shlibsuff=N32 libmagic=N32;;
16063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16064 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016065 *) libsuff= shlibsuff= libmagic=never-match;;
16066 esac
16067 ;;
16068 esac
16069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16070 shlibpath_overrides_runpath=no
16071 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16072 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016073 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016074 ;;
16075
16076# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016077linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016078 dynamic_linker=no
16079 ;;
16080
16081# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016082linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016083 version_type=linux
16084 need_lib_prefix=no
16085 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 shlibpath_overrides_runpath=no
16091 # This implies no fast_install, which is unacceptable.
16092 # Some rework will be needed to allow for fast_install
16093 # before this can be enabled.
16094 hardcode_into_libs=yes
16095
Reid Spencer2706f8c2004-09-19 23:53:36 +000016096 # Append ld.so.conf contents to the search path
16097 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016098 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 +000016099 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16100 fi
16101
John Criswell7a73b802003-06-30 21:59:07 +000016102 # We used to test for /lib/ld.so.1 and disable shared libraries on
16103 # powerpc, because MkLinux only supported shared libraries with the
16104 # GNU dynamic linker. Since this was broken with cross compilers,
16105 # most powerpc-linux boxes support dynamic linking these days and
16106 # people can always --disable-shared, the test was removed, and we
16107 # assume the GNU/Linux dynamic linker is in use.
16108 dynamic_linker='GNU/Linux ld.so'
16109 ;;
16110
Reid Spencer2706f8c2004-09-19 23:53:36 +000016111knetbsd*-gnu)
16112 version_type=linux
16113 need_lib_prefix=no
16114 need_version=no
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=no
16119 hardcode_into_libs=yes
16120 dynamic_linker='GNU ld.so'
16121 ;;
16122
John Criswell7a73b802003-06-30 21:59:07 +000016123netbsd*)
16124 version_type=sunos
16125 need_lib_prefix=no
16126 need_version=no
16127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130 dynamic_linker='NetBSD (a.out) ld.so'
16131 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016133 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016134 dynamic_linker='NetBSD ld.elf_so'
16135 fi
16136 shlibpath_var=LD_LIBRARY_PATH
16137 shlibpath_overrides_runpath=yes
16138 hardcode_into_libs=yes
16139 ;;
16140
16141newsos6)
16142 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 shlibpath_overrides_runpath=yes
16146 ;;
16147
Reid Spencer2706f8c2004-09-19 23:53:36 +000016148nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016149 version_type=linux
16150 need_lib_prefix=no
16151 need_version=no
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016154 shlibpath_var=LD_LIBRARY_PATH
16155 shlibpath_overrides_runpath=yes
16156 ;;
16157
16158openbsd*)
16159 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016160 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016161 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016162 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16163 case $host_os in
16164 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16165 *) need_version=no ;;
16166 esac
John Criswell47fdd832003-07-14 16:52:07 +000016167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16169 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016170 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 +000016171 case $host_os in
16172 openbsd2.[89] | openbsd2.[89].*)
16173 shlibpath_overrides_runpath=no
16174 ;;
16175 *)
16176 shlibpath_overrides_runpath=yes
16177 ;;
16178 esac
John Criswell7a73b802003-06-30 21:59:07 +000016179 else
16180 shlibpath_overrides_runpath=yes
16181 fi
John Criswell7a73b802003-06-30 21:59:07 +000016182 ;;
16183
16184os2*)
16185 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016186 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016187 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016188 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016189 dynamic_linker='OS/2 ld.exe'
16190 shlibpath_var=LIBPATH
16191 ;;
16192
16193osf3* | osf4* | osf5*)
16194 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016195 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016196 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016197 soname_spec='${libname}${release}${shared_ext}$major'
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016199 shlibpath_var=LD_LIBRARY_PATH
16200 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16201 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16202 ;;
16203
John Criswell7a73b802003-06-30 21:59:07 +000016204solaris*)
16205 version_type=linux
16206 need_lib_prefix=no
16207 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes
16212 hardcode_into_libs=yes
16213 # ldd complains unless libraries are executable
16214 postinstall_cmds='chmod +x $lib'
16215 ;;
16216
16217sunos4*)
16218 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 shlibpath_overrides_runpath=yes
16223 if test "$with_gnu_ld" = yes; then
16224 need_lib_prefix=no
16225 fi
16226 need_version=yes
16227 ;;
16228
Reid Spencera773bd52006-08-04 18:18:08 +000016229sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016230 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016233 shlibpath_var=LD_LIBRARY_PATH
16234 case $host_vendor in
16235 sni)
16236 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016237 need_lib_prefix=no
16238 export_dynamic_flag_spec='${wl}-Blargedynsym'
16239 runpath_var=LD_RUN_PATH
16240 ;;
16241 siemens)
16242 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016243 ;;
16244 motorola)
16245 need_lib_prefix=no
16246 need_version=no
16247 shlibpath_overrides_runpath=no
16248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16249 ;;
16250 esac
16251 ;;
16252
John Criswell7a73b802003-06-30 21:59:07 +000016253sysv4*MP*)
16254 if test -d /usr/nec ;then
16255 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016256 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16257 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016258 shlibpath_var=LD_LIBRARY_PATH
16259 fi
16260 ;;
16261
Reid Spencera773bd52006-08-04 18:18:08 +000016262sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16263 version_type=freebsd-elf
16264 need_lib_prefix=no
16265 need_version=no
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16267 soname_spec='${libname}${release}${shared_ext}$major'
16268 shlibpath_var=LD_LIBRARY_PATH
16269 hardcode_into_libs=yes
16270 if test "$with_gnu_ld" = yes; then
16271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16272 shlibpath_overrides_runpath=no
16273 else
16274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16275 shlibpath_overrides_runpath=yes
16276 case $host_os in
16277 sco3.2v5*)
16278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16279 ;;
16280 esac
16281 fi
16282 sys_lib_dlsearch_path_spec='/usr/lib'
16283 ;;
16284
John Criswell47fdd832003-07-14 16:52:07 +000016285uts4*)
16286 version_type=linux
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 ;;
16291
John Criswell7a73b802003-06-30 21:59:07 +000016292*)
16293 dynamic_linker=no
16294 ;;
16295esac
Reid Spencera773bd52006-08-04 18:18:08 +000016296{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16297echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016298test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016299
Reid Spencera773bd52006-08-04 18:18:08 +000016300variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16301if test "$GCC" = yes; then
16302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16303fi
16304
16305{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16306echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016307hardcode_action=
16308if test -n "$hardcode_libdir_flag_spec" || \
16309 test -n "$runpath_var" || \
16310 test "X$hardcode_automatic" = "Xyes" ; then
16311
16312 # We can hardcode non-existant directories.
16313 if test "$hardcode_direct" != no &&
16314 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16315 # have to relink, otherwise we might link with an installed library
16316 # when we should be linking with a yet-to-be-installed one
16317 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16318 test "$hardcode_minus_L" != no; then
16319 # Linking always hardcodes the temporary library directory.
16320 hardcode_action=relink
16321 else
16322 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16323 hardcode_action=immediate
16324 fi
16325else
16326 # We cannot hardcode anything, or else we can only hardcode existing
16327 # directories.
16328 hardcode_action=unsupported
16329fi
Reid Spencera773bd52006-08-04 18:18:08 +000016330{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16331echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016332
16333if test "$hardcode_action" = relink; then
16334 # Fast installation is not supported
16335 enable_fast_install=no
16336elif test "$shlibpath_overrides_runpath" = yes ||
16337 test "$enable_shared" = no; then
16338 # Fast installation is not necessary
16339 enable_fast_install=needless
16340fi
16341
16342striplib=
16343old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016344{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16345echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016346if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16348 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016349 { echo "$as_me:$LINENO: result: yes" >&5
16350echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016351else
16352# FIXME - insert some real tests, host_os isn't really good enough
16353 case $host_os in
16354 darwin*)
16355 if test -n "$STRIP" ; then
16356 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016357 { echo "$as_me:$LINENO: result: yes" >&5
16358echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016359 else
Reid Spencera773bd52006-08-04 18:18:08 +000016360 { echo "$as_me:$LINENO: result: no" >&5
16361echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016362fi
16363 ;;
16364 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016365 { echo "$as_me:$LINENO: result: no" >&5
16366echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016367 ;;
16368 esac
16369fi
16370
John Criswell7a73b802003-06-30 21:59:07 +000016371if test "x$enable_dlopen" != xyes; then
16372 enable_dlopen=unknown
16373 enable_dlopen_self=unknown
16374 enable_dlopen_self_static=unknown
16375else
16376 lt_cv_dlopen=no
16377 lt_cv_dlopen_libs=
16378
16379 case $host_os in
16380 beos*)
16381 lt_cv_dlopen="load_add_on"
16382 lt_cv_dlopen_libs=
16383 lt_cv_dlopen_self=yes
16384 ;;
16385
John Criswell47fdd832003-07-14 16:52:07 +000016386 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016387 lt_cv_dlopen="LoadLibrary"
16388 lt_cv_dlopen_libs=
16389 ;;
16390
John Criswell47fdd832003-07-14 16:52:07 +000016391 cygwin*)
16392 lt_cv_dlopen="dlopen"
16393 lt_cv_dlopen_libs=
16394 ;;
16395
16396 darwin*)
16397 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016398 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16399echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016400if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402else
16403 ac_check_lib_save_LIBS=$LIBS
16404LIBS="-ldl $LIBS"
16405cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016411
Reid Spencera773bd52006-08-04 18:18:08 +000016412/* Override any GCC internal prototype to avoid an error.
16413 Use char because int might match the return type of a GCC
16414 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016415#ifdef __cplusplus
16416extern "C"
16417#endif
John Criswell47fdd832003-07-14 16:52:07 +000016418char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016419int
16420main ()
16421{
Reid Spencera773bd52006-08-04 18:18:08 +000016422return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016423 ;
16424 return 0;
16425}
16426_ACEOF
16427rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016428if { (ac_try="$ac_link"
16429case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432esac
16433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16442 { (case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } &&
16451 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016452 { (case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16455esac
16456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_cv_lib_dl_dlopen=yes
16462else
16463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016464sed 's/^/| /' conftest.$ac_ext >&5
16465
Reid Spencera773bd52006-08-04 18:18:08 +000016466 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016467fi
Reid Spencera773bd52006-08-04 18:18:08 +000016468
16469rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016470 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016471LIBS=$ac_check_lib_save_LIBS
16472fi
Reid Spencera773bd52006-08-04 18:18:08 +000016473{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16474echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016475if test $ac_cv_lib_dl_dlopen = yes; then
16476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16477else
16478
16479 lt_cv_dlopen="dyld"
16480 lt_cv_dlopen_libs=
16481 lt_cv_dlopen_self=yes
16482
16483fi
16484
16485 ;;
16486
John Criswell7a73b802003-06-30 21:59:07 +000016487 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016488 { echo "$as_me:$LINENO: checking for shl_load" >&5
16489echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016490if test "${ac_cv_func_shl_load+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492else
16493 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016494/* confdefs.h. */
16495_ACEOF
16496cat confdefs.h >>conftest.$ac_ext
16497cat >>conftest.$ac_ext <<_ACEOF
16498/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016499/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16501#define shl_load innocuous_shl_load
16502
John Criswell7a73b802003-06-30 21:59:07 +000016503/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016504 which can conflict with char shl_load (); below.
16505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16506 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016507
John Criswell0c38eaf2003-09-10 15:17:25 +000016508#ifdef __STDC__
16509# include <limits.h>
16510#else
16511# include <assert.h>
16512#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016513
16514#undef shl_load
16515
Reid Spencera773bd52006-08-04 18:18:08 +000016516/* Override any GCC internal prototype to avoid an error.
16517 Use char because int might match the return type of a GCC
16518 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016519#ifdef __cplusplus
16520extern "C"
16521#endif
John Criswell7a73b802003-06-30 21:59:07 +000016522char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016523/* The GNU C library defines this for functions which it implements
16524 to always fail with ENOSYS. Some functions are actually named
16525 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016526#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016527choke me
John Criswell7a73b802003-06-30 21:59:07 +000016528#endif
16529
John Criswell0c38eaf2003-09-10 15:17:25 +000016530int
16531main ()
16532{
Reid Spencera773bd52006-08-04 18:18:08 +000016533return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016534 ;
16535 return 0;
16536}
16537_ACEOF
16538rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016539if { (ac_try="$ac_link"
16540case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16543esac
16544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016546 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16556esac
16557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; } &&
16562 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566esac
16567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_func_shl_load=yes
16573else
16574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016575sed 's/^/| /' conftest.$ac_ext >&5
16576
Reid Spencera773bd52006-08-04 18:18:08 +000016577 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016578fi
Reid Spencera773bd52006-08-04 18:18:08 +000016579
16580rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016581 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016582fi
Reid Spencera773bd52006-08-04 18:18:08 +000016583{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16584echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016585if test $ac_cv_func_shl_load = yes; then
16586 lt_cv_dlopen="shl_load"
16587else
Reid Spencera773bd52006-08-04 18:18:08 +000016588 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16589echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016590if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592else
16593 ac_check_lib_save_LIBS=$LIBS
16594LIBS="-ldld $LIBS"
16595cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016596/* confdefs.h. */
16597_ACEOF
16598cat confdefs.h >>conftest.$ac_ext
16599cat >>conftest.$ac_ext <<_ACEOF
16600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016601
Reid Spencera773bd52006-08-04 18:18:08 +000016602/* Override any GCC internal prototype to avoid an error.
16603 Use char because int might match the return type of a GCC
16604 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016605#ifdef __cplusplus
16606extern "C"
16607#endif
John Criswell7a73b802003-06-30 21:59:07 +000016608char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016609int
16610main ()
16611{
Reid Spencera773bd52006-08-04 18:18:08 +000016612return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016613 ;
16614 return 0;
16615}
16616_ACEOF
16617rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016618if { (ac_try="$ac_link"
16619case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016625 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_lib_dld_shl_load=yes
16652else
16653 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016654sed 's/^/| /' conftest.$ac_ext >&5
16655
Reid Spencera773bd52006-08-04 18:18:08 +000016656 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016657fi
Reid Spencera773bd52006-08-04 18:18:08 +000016658
16659rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016660 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016661LIBS=$ac_check_lib_save_LIBS
16662fi
Reid Spencera773bd52006-08-04 18:18:08 +000016663{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16664echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016665if test $ac_cv_lib_dld_shl_load = yes; then
16666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16667else
Reid Spencera773bd52006-08-04 18:18:08 +000016668 { echo "$as_me:$LINENO: checking for dlopen" >&5
16669echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016670if test "${ac_cv_func_dlopen+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672else
16673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016679/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16681#define dlopen innocuous_dlopen
16682
John Criswell7a73b802003-06-30 21:59:07 +000016683/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016684 which can conflict with char dlopen (); below.
16685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16686 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016687
John Criswell0c38eaf2003-09-10 15:17:25 +000016688#ifdef __STDC__
16689# include <limits.h>
16690#else
16691# include <assert.h>
16692#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016693
16694#undef dlopen
16695
Reid Spencera773bd52006-08-04 18:18:08 +000016696/* Override any GCC internal prototype to avoid an error.
16697 Use char because int might match the return type of a GCC
16698 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016699#ifdef __cplusplus
16700extern "C"
16701#endif
John Criswell7a73b802003-06-30 21:59:07 +000016702char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016703/* The GNU C library defines this for functions which it implements
16704 to always fail with ENOSYS. Some functions are actually named
16705 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016706#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016707choke me
John Criswell7a73b802003-06-30 21:59:07 +000016708#endif
16709
John Criswell0c38eaf2003-09-10 15:17:25 +000016710int
16711main ()
16712{
Reid Spencera773bd52006-08-04 18:18:08 +000016713return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016714 ;
16715 return 0;
16716}
16717_ACEOF
16718rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016719if { (ac_try="$ac_link"
16720case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736esac
16737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746esac
16747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_func_dlopen=yes
16753else
16754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016755sed 's/^/| /' conftest.$ac_ext >&5
16756
Reid Spencera773bd52006-08-04 18:18:08 +000016757 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016758fi
Reid Spencera773bd52006-08-04 18:18:08 +000016759
16760rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016761 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016762fi
Reid Spencera773bd52006-08-04 18:18:08 +000016763{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16764echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016765if test $ac_cv_func_dlopen = yes; then
16766 lt_cv_dlopen="dlopen"
16767else
Reid Spencera773bd52006-08-04 18:18:08 +000016768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16769echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016770if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772else
16773 ac_check_lib_save_LIBS=$LIBS
16774LIBS="-ldl $LIBS"
16775cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016776/* confdefs.h. */
16777_ACEOF
16778cat confdefs.h >>conftest.$ac_ext
16779cat >>conftest.$ac_ext <<_ACEOF
16780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016781
Reid Spencera773bd52006-08-04 18:18:08 +000016782/* Override any GCC internal prototype to avoid an error.
16783 Use char because int might match the return type of a GCC
16784 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016785#ifdef __cplusplus
16786extern "C"
16787#endif
John Criswell7a73b802003-06-30 21:59:07 +000016788char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016789int
16790main ()
16791{
Reid Spencera773bd52006-08-04 18:18:08 +000016792return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016793 ;
16794 return 0;
16795}
16796_ACEOF
16797rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016798if { (ac_try="$ac_link"
16799case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802esac
16803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016805 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16812 { (case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825esac
16826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 ac_cv_lib_dl_dlopen=yes
16832else
16833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016834sed 's/^/| /' conftest.$ac_ext >&5
16835
Reid Spencera773bd52006-08-04 18:18:08 +000016836 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016837fi
Reid Spencera773bd52006-08-04 18:18:08 +000016838
16839rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016840 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016841LIBS=$ac_check_lib_save_LIBS
16842fi
Reid Spencera773bd52006-08-04 18:18:08 +000016843{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16844echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016845if test $ac_cv_lib_dl_dlopen = yes; then
16846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16847else
Reid Spencera773bd52006-08-04 18:18:08 +000016848 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16849echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016850if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16852else
16853 ac_check_lib_save_LIBS=$LIBS
16854LIBS="-lsvld $LIBS"
16855cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016856/* confdefs.h. */
16857_ACEOF
16858cat confdefs.h >>conftest.$ac_ext
16859cat >>conftest.$ac_ext <<_ACEOF
16860/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016861
Reid Spencera773bd52006-08-04 18:18:08 +000016862/* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016865#ifdef __cplusplus
16866extern "C"
16867#endif
John Criswell7a73b802003-06-30 21:59:07 +000016868char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016869int
16870main ()
16871{
Reid Spencera773bd52006-08-04 18:18:08 +000016872return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016873 ;
16874 return 0;
16875}
16876_ACEOF
16877rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016878if { (ac_try="$ac_link"
16879case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882esac
16883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016885 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16892 { (case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16895esac
16896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16911 ac_cv_lib_svld_dlopen=yes
16912else
16913 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016914sed 's/^/| /' conftest.$ac_ext >&5
16915
Reid Spencera773bd52006-08-04 18:18:08 +000016916 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016917fi
Reid Spencera773bd52006-08-04 18:18:08 +000016918
16919rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016920 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016921LIBS=$ac_check_lib_save_LIBS
16922fi
Reid Spencera773bd52006-08-04 18:18:08 +000016923{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16924echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016925if test $ac_cv_lib_svld_dlopen = yes; then
16926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16927else
Reid Spencera773bd52006-08-04 18:18:08 +000016928 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16929echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016930if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932else
16933 ac_check_lib_save_LIBS=$LIBS
16934LIBS="-ldld $LIBS"
16935cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016941
Reid Spencera773bd52006-08-04 18:18:08 +000016942/* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016945#ifdef __cplusplus
16946extern "C"
16947#endif
John Criswell7a73b802003-06-30 21:59:07 +000016948char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016949int
16950main ()
16951{
Reid Spencera773bd52006-08-04 18:18:08 +000016952return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016958if { (ac_try="$ac_link"
16959case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962esac
16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016965 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_lib_dld_dld_link=yes
16992else
16993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016994sed 's/^/| /' conftest.$ac_ext >&5
16995
Reid Spencera773bd52006-08-04 18:18:08 +000016996 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016997fi
Reid Spencera773bd52006-08-04 18:18:08 +000016998
16999rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017001LIBS=$ac_check_lib_save_LIBS
17002fi
Reid Spencera773bd52006-08-04 18:18:08 +000017003{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17004echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017005if test $ac_cv_lib_dld_dld_link = yes; then
17006 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17007fi
17008
17009
17010fi
17011
17012
17013fi
17014
17015
17016fi
17017
17018
17019fi
17020
17021
17022fi
17023
17024 ;;
17025 esac
17026
17027 if test "x$lt_cv_dlopen" != xno; then
17028 enable_dlopen=yes
17029 else
17030 enable_dlopen=no
17031 fi
17032
17033 case $lt_cv_dlopen in
17034 dlopen)
17035 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017036 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017037
17038 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017040
17041 save_LIBS="$LIBS"
17042 LIBS="$lt_cv_dlopen_libs $LIBS"
17043
Reid Spencera773bd52006-08-04 18:18:08 +000017044 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17045echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017046if test "${lt_cv_dlopen_self+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048else
17049 if test "$cross_compiling" = yes; then :
17050 lt_cv_dlopen_self=cross
17051else
John Criswell47fdd832003-07-14 16:52:07 +000017052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017053 lt_status=$lt_dlunknown
17054 cat > conftest.$ac_ext <<EOF
David Greenea696d242007-06-28 19:36:08 +000017055#line 17055 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017056#include "confdefs.h"
17057
17058#if HAVE_DLFCN_H
17059#include <dlfcn.h>
17060#endif
17061
17062#include <stdio.h>
17063
17064#ifdef RTLD_GLOBAL
17065# define LT_DLGLOBAL RTLD_GLOBAL
17066#else
17067# ifdef DL_GLOBAL
17068# define LT_DLGLOBAL DL_GLOBAL
17069# else
17070# define LT_DLGLOBAL 0
17071# endif
17072#endif
17073
17074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17075 find out it does not work in some platform. */
17076#ifndef LT_DLLAZY_OR_NOW
17077# ifdef RTLD_LAZY
17078# define LT_DLLAZY_OR_NOW RTLD_LAZY
17079# else
17080# ifdef DL_LAZY
17081# define LT_DLLAZY_OR_NOW DL_LAZY
17082# else
17083# ifdef RTLD_NOW
17084# define LT_DLLAZY_OR_NOW RTLD_NOW
17085# else
17086# ifdef DL_NOW
17087# define LT_DLLAZY_OR_NOW DL_NOW
17088# else
17089# define LT_DLLAZY_OR_NOW 0
17090# endif
17091# endif
17092# endif
17093# endif
17094#endif
17095
17096#ifdef __cplusplus
17097extern "C" void exit (int);
17098#endif
17099
17100void fnord() { int i=42;}
17101int main ()
17102{
17103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17104 int status = $lt_dlunknown;
17105
17106 if (self)
17107 {
17108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17110 /* dlclose (self); */
17111 }
Reid Spencera773bd52006-08-04 18:18:08 +000017112 else
17113 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017114
17115 exit (status);
17116}
17117EOF
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119 (eval $ac_link) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017123 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017124 lt_status=$?
17125 case x$lt_status in
17126 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17127 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017128 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017129 esac
17130 else :
17131 # compilation failed
17132 lt_cv_dlopen_self=no
17133 fi
17134fi
17135rm -fr conftest*
17136
17137
17138fi
Reid Spencera773bd52006-08-04 18:18:08 +000017139{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17140echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017141
17142 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17144 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17145echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017146if test "${lt_cv_dlopen_self_static+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148else
17149 if test "$cross_compiling" = yes; then :
17150 lt_cv_dlopen_self_static=cross
17151else
John Criswell47fdd832003-07-14 16:52:07 +000017152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017153 lt_status=$lt_dlunknown
17154 cat > conftest.$ac_ext <<EOF
David Greenea696d242007-06-28 19:36:08 +000017155#line 17155 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017156#include "confdefs.h"
17157
17158#if HAVE_DLFCN_H
17159#include <dlfcn.h>
17160#endif
17161
17162#include <stdio.h>
17163
17164#ifdef RTLD_GLOBAL
17165# define LT_DLGLOBAL RTLD_GLOBAL
17166#else
17167# ifdef DL_GLOBAL
17168# define LT_DLGLOBAL DL_GLOBAL
17169# else
17170# define LT_DLGLOBAL 0
17171# endif
17172#endif
17173
17174/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17175 find out it does not work in some platform. */
17176#ifndef LT_DLLAZY_OR_NOW
17177# ifdef RTLD_LAZY
17178# define LT_DLLAZY_OR_NOW RTLD_LAZY
17179# else
17180# ifdef DL_LAZY
17181# define LT_DLLAZY_OR_NOW DL_LAZY
17182# else
17183# ifdef RTLD_NOW
17184# define LT_DLLAZY_OR_NOW RTLD_NOW
17185# else
17186# ifdef DL_NOW
17187# define LT_DLLAZY_OR_NOW DL_NOW
17188# else
17189# define LT_DLLAZY_OR_NOW 0
17190# endif
17191# endif
17192# endif
17193# endif
17194#endif
17195
17196#ifdef __cplusplus
17197extern "C" void exit (int);
17198#endif
17199
17200void fnord() { int i=42;}
17201int main ()
17202{
17203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17204 int status = $lt_dlunknown;
17205
17206 if (self)
17207 {
17208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17209 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17210 /* dlclose (self); */
17211 }
Reid Spencera773bd52006-08-04 18:18:08 +000017212 else
17213 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017214
17215 exit (status);
17216}
17217EOF
17218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17219 (eval $ac_link) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017223 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017224 lt_status=$?
17225 case x$lt_status in
17226 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17227 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017228 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017229 esac
17230 else :
17231 # compilation failed
17232 lt_cv_dlopen_self_static=no
17233 fi
17234fi
17235rm -fr conftest*
17236
17237
17238fi
Reid Spencera773bd52006-08-04 18:18:08 +000017239{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17240echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017241 fi
17242
17243 CPPFLAGS="$save_CPPFLAGS"
17244 LDFLAGS="$save_LDFLAGS"
17245 LIBS="$save_LIBS"
17246 ;;
17247 esac
17248
17249 case $lt_cv_dlopen_self in
17250 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17251 *) enable_dlopen_self=unknown ;;
17252 esac
17253
17254 case $lt_cv_dlopen_self_static in
17255 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17256 *) enable_dlopen_self_static=unknown ;;
17257 esac
17258fi
17259
17260
Reid Spencera773bd52006-08-04 18:18:08 +000017261# Report which library types will actually be built
17262{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17263echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17264{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17265echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017266
Reid Spencera773bd52006-08-04 18:18:08 +000017267{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17268echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017269test "$can_build_shared" = "no" && enable_shared=no
17270
17271# On AIX, shared libraries and static libraries use the same namespace, and
17272# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017273case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017274aix3*)
17275 test "$enable_shared" = yes && enable_static=no
17276 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017277 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017278 postinstall_cmds='$RANLIB $lib'
17279 fi
17280 ;;
17281
Reid Spencer2706f8c2004-09-19 23:53:36 +000017282aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17284 test "$enable_shared" = yes && enable_static=no
17285 fi
John Criswell7a73b802003-06-30 21:59:07 +000017286 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017287esac
Reid Spencera773bd52006-08-04 18:18:08 +000017288{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17289echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017290
Reid Spencera773bd52006-08-04 18:18:08 +000017291{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17292echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017293# Make sure either enable_shared or enable_static is yes.
17294test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017295{ echo "$as_me:$LINENO: result: $enable_static" >&5
17296echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017297
17298# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017299# libtool distribution, otherwise you forgot to ship ltmain.sh
17300# with your package, and you will get complaints that there are
17301# no rules to generate ltmain.sh.
17302if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017303 # See if we are running on zsh, and set the options which allow our commands through
17304 # without removal of \ escapes.
17305 if test -n "${ZSH_VERSION+set}" ; then
17306 setopt NO_GLOB_SUBST
17307 fi
John Criswell7a73b802003-06-30 21:59:07 +000017308 # Now quote all the things that may contain metacharacters while being
17309 # careful not to overquote the AC_SUBSTed values. We take copies of the
17310 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017311 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 +000017312 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17315 deplibs_check_method reload_flag reload_cmds need_locks \
17316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17317 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017319 old_postinstall_cmds old_postuninstall_cmds \
17320 compiler \
17321 CC \
17322 LD \
17323 lt_prog_compiler_wl \
17324 lt_prog_compiler_pic \
17325 lt_prog_compiler_static \
17326 lt_prog_compiler_no_builtin_flag \
17327 export_dynamic_flag_spec \
17328 thread_safe_flag_spec \
17329 whole_archive_flag_spec \
17330 enable_shared_with_static_runtimes \
17331 old_archive_cmds \
17332 old_archive_from_new_cmds \
17333 predep_objects \
17334 postdep_objects \
17335 predeps \
17336 postdeps \
17337 compiler_lib_search_path \
17338 archive_cmds \
17339 archive_expsym_cmds \
17340 postinstall_cmds \
17341 postuninstall_cmds \
17342 old_archive_from_expsyms_cmds \
17343 allow_undefined_flag \
17344 no_undefined_flag \
17345 export_symbols_cmds \
17346 hardcode_libdir_flag_spec \
17347 hardcode_libdir_flag_spec_ld \
17348 hardcode_libdir_separator \
17349 hardcode_automatic \
17350 module_cmds \
17351 module_expsym_cmds \
17352 lt_cv_prog_compiler_c_o \
17353 exclude_expsyms \
17354 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017355
17356 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017357 old_archive_cmds | \
17358 old_archive_from_new_cmds | \
17359 archive_cmds | \
17360 archive_expsym_cmds | \
17361 module_cmds | \
17362 module_expsym_cmds | \
17363 old_archive_from_expsyms_cmds | \
17364 export_symbols_cmds | \
17365 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017366 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017367 old_postinstall_cmds | old_postuninstall_cmds | \
17368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017369 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017370 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 +000017371 ;;
17372 *)
17373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17374 ;;
17375 esac
17376 done
17377
John Criswell47fdd832003-07-14 16:52:07 +000017378 case $lt_echo in
17379 *'\$0 --fallback-echo"')
17380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17381 ;;
17382 esac
17383
17384cfgfile="${ofile}T"
17385 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17386 $rm -f "$cfgfile"
17387 { echo "$as_me:$LINENO: creating $ofile" >&5
17388echo "$as_me: creating $ofile" >&6;}
17389
17390 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017391#! $SHELL
17392
John Criswell47fdd832003-07-14 16:52:07 +000017393# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017394# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17395# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17396#
John Criswell47fdd832003-07-14 16:52:07 +000017397# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17398# Free Software Foundation, Inc.
17399#
17400# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017401# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17402#
17403# This program is free software; you can redistribute it and/or modify
17404# it under the terms of the GNU General Public License as published by
17405# the Free Software Foundation; either version 2 of the License, or
17406# (at your option) any later version.
17407#
17408# This program is distributed in the hope that it will be useful, but
17409# WITHOUT ANY WARRANTY; without even the implied warranty of
17410# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17411# General Public License for more details.
17412#
17413# You should have received a copy of the GNU General Public License
17414# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017415# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017416#
17417# As a special exception to the GNU General Public License, if you
17418# distribute this file as part of a program that contains a
17419# configuration script generated by Autoconf, you may include it under
17420# the same distribution terms that you use for the rest of that program.
17421
John Criswell47fdd832003-07-14 16:52:07 +000017422# A sed program that does not truncate output.
17423SED=$lt_SED
17424
John Criswell7a73b802003-06-30 21:59:07 +000017425# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017426Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017427
17428# The HP-UX ksh and POSIX shell print the target directory to stdout
17429# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017431
John Criswell47fdd832003-07-14 16:52:07 +000017432# The names of the tagged configurations supported by this script.
17433available_tags=
17434
John Criswell7a73b802003-06-30 21:59:07 +000017435# ### BEGIN LIBTOOL CONFIG
17436
17437# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17438
17439# Shell to use when invoking shell scripts.
17440SHELL=$lt_SHELL
17441
17442# Whether or not to build shared libraries.
17443build_libtool_libs=$enable_shared
17444
17445# Whether or not to build static libraries.
17446build_old_libs=$enable_static
17447
17448# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017449build_libtool_need_lc=$archive_cmds_need_lc
17450
17451# Whether or not to disallow shared libs when runtime libs are static
17452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017453
17454# Whether or not to optimize for fast installation.
17455fast_install=$enable_fast_install
17456
17457# The host system.
17458host_alias=$host_alias
17459host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017460host_os=$host_os
17461
17462# The build system.
17463build_alias=$build_alias
17464build=$build
17465build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017466
17467# An echo program that does not interpret backslashes.
17468echo=$lt_echo
17469
17470# The archiver.
17471AR=$lt_AR
17472AR_FLAGS=$lt_AR_FLAGS
17473
John Criswell47fdd832003-07-14 16:52:07 +000017474# A C compiler.
17475LTCC=$lt_LTCC
17476
Reid Spencera773bd52006-08-04 18:18:08 +000017477# LTCC compiler flags.
17478LTCFLAGS=$lt_LTCFLAGS
17479
John Criswell47fdd832003-07-14 16:52:07 +000017480# A language-specific compiler.
17481CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017482
17483# Is the compiler the GNU C compiler?
17484with_gcc=$GCC
17485
John Criswell47fdd832003-07-14 16:52:07 +000017486# An ERE matcher.
17487EGREP=$lt_EGREP
17488
John Criswell7a73b802003-06-30 21:59:07 +000017489# The linker used to build libraries.
17490LD=$lt_LD
17491
17492# Whether we need hard or soft links.
17493LN_S=$lt_LN_S
17494
17495# A BSD-compatible nm program.
17496NM=$lt_NM
17497
17498# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017499STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017500
17501# Used to examine libraries when file_magic_cmd begins "file"
17502MAGIC_CMD=$MAGIC_CMD
17503
17504# Used on cygwin: DLL creation program.
17505DLLTOOL="$DLLTOOL"
17506
17507# Used on cygwin: object dumper.
17508OBJDUMP="$OBJDUMP"
17509
17510# Used on cygwin: assembler.
17511AS="$AS"
17512
17513# The name of the directory that contains temporary libtool files.
17514objdir=$objdir
17515
17516# How to create reloadable object files.
17517reload_flag=$lt_reload_flag
17518reload_cmds=$lt_reload_cmds
17519
17520# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017521wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017522
17523# Object file suffix (normally "o").
17524objext="$ac_objext"
17525
17526# Old archive suffix (normally "a").
17527libext="$libext"
17528
John Criswell47fdd832003-07-14 16:52:07 +000017529# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017531
John Criswell7a73b802003-06-30 21:59:07 +000017532# Executable file suffix (normally "").
17533exeext="$exeext"
17534
17535# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017536pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017537pic_mode=$pic_mode
17538
John Criswell47fdd832003-07-14 16:52:07 +000017539# What is the maximum length of a command?
17540max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017541
John Criswell47fdd832003-07-14 16:52:07 +000017542# Does compiler simultaneously support -c and -o options?
17543compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017544
Reid Spencera773bd52006-08-04 18:18:08 +000017545# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017546need_locks=$lt_need_locks
17547
17548# Do we need the lib prefix for modules?
17549need_lib_prefix=$need_lib_prefix
17550
17551# Do we need a version for libraries?
17552need_version=$need_version
17553
17554# Whether dlopen is supported.
17555dlopen_support=$enable_dlopen
17556
17557# Whether dlopen of programs is supported.
17558dlopen_self=$enable_dlopen_self
17559
17560# Whether dlopen of statically linked programs is supported.
17561dlopen_self_static=$enable_dlopen_self_static
17562
17563# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017564link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017565
17566# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017567no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017568
17569# Compiler flag to allow reflexive dlopens.
17570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17571
17572# Compiler flag to generate shared objects directly from archives.
17573whole_archive_flag_spec=$lt_whole_archive_flag_spec
17574
17575# Compiler flag to generate thread-safe objects.
17576thread_safe_flag_spec=$lt_thread_safe_flag_spec
17577
17578# Library versioning type.
17579version_type=$version_type
17580
17581# Format of library name prefix.
17582libname_spec=$lt_libname_spec
17583
17584# List of archive names. First name is the real one, the rest are links.
17585# The last name is the one that the linker finds with -lNAME.
17586library_names_spec=$lt_library_names_spec
17587
17588# The coded name of the library, if different from the real name.
17589soname_spec=$lt_soname_spec
17590
17591# Commands used to build and install an old-style archive.
17592RANLIB=$lt_RANLIB
17593old_archive_cmds=$lt_old_archive_cmds
17594old_postinstall_cmds=$lt_old_postinstall_cmds
17595old_postuninstall_cmds=$lt_old_postuninstall_cmds
17596
17597# Create an old-style archive from a shared archive.
17598old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17599
17600# Create a temporary old-style archive to link instead of a shared archive.
17601old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17602
17603# Commands used to build and install a shared archive.
17604archive_cmds=$lt_archive_cmds
17605archive_expsym_cmds=$lt_archive_expsym_cmds
17606postinstall_cmds=$lt_postinstall_cmds
17607postuninstall_cmds=$lt_postuninstall_cmds
17608
John Criswell47fdd832003-07-14 16:52:07 +000017609# Commands used to build a loadable module (assumed same as above if empty)
17610module_cmds=$lt_module_cmds
17611module_expsym_cmds=$lt_module_expsym_cmds
17612
John Criswell7a73b802003-06-30 21:59:07 +000017613# Commands to strip libraries.
17614old_striplib=$lt_old_striplib
17615striplib=$lt_striplib
17616
John Criswell47fdd832003-07-14 16:52:07 +000017617# Dependencies to place before the objects being linked to create a
17618# shared library.
17619predep_objects=$lt_predep_objects
17620
17621# Dependencies to place after the objects being linked to create a
17622# shared library.
17623postdep_objects=$lt_postdep_objects
17624
17625# Dependencies to place before the objects being linked to create a
17626# shared library.
17627predeps=$lt_predeps
17628
17629# Dependencies to place after the objects being linked to create a
17630# shared library.
17631postdeps=$lt_postdeps
17632
17633# The library search path used internally by the compiler when linking
17634# a shared library.
17635compiler_lib_search_path=$lt_compiler_lib_search_path
17636
John Criswell7a73b802003-06-30 21:59:07 +000017637# Method to check whether dependent libraries are shared objects.
17638deplibs_check_method=$lt_deplibs_check_method
17639
17640# Command to use when deplibs_check_method == file_magic.
17641file_magic_cmd=$lt_file_magic_cmd
17642
17643# Flag that allows shared libraries with undefined symbols to be built.
17644allow_undefined_flag=$lt_allow_undefined_flag
17645
17646# Flag that forces no undefined symbols.
17647no_undefined_flag=$lt_no_undefined_flag
17648
17649# Commands used to finish a libtool library installation in a directory.
17650finish_cmds=$lt_finish_cmds
17651
17652# Same as above, but a single script fragment to be evaled but not shown.
17653finish_eval=$lt_finish_eval
17654
17655# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017656global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017657
17658# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017659global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017660
17661# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017662global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017663
17664# This is the shared library runtime path variable.
17665runpath_var=$runpath_var
17666
17667# This is the shared library path variable.
17668shlibpath_var=$shlibpath_var
17669
17670# Is shlibpath searched before the hard-coded library search path?
17671shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17672
17673# How to hardcode a shared library path into an executable.
17674hardcode_action=$hardcode_action
17675
17676# Whether we should hardcode library paths into libraries.
17677hardcode_into_libs=$hardcode_into_libs
17678
17679# Flag to hardcode \$libdir into a binary during linking.
17680# This must work even if \$libdir does not exist.
17681hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17682
John Criswell47fdd832003-07-14 16:52:07 +000017683# If ld is used when linking, flag to hardcode \$libdir into
17684# a binary during linking. This must work even if \$libdir does
17685# not exist.
17686hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17687
John Criswell7a73b802003-06-30 21:59:07 +000017688# Whether we need a single -rpath flag with a separated argument.
17689hardcode_libdir_separator=$lt_hardcode_libdir_separator
17690
John Criswell47fdd832003-07-14 16:52:07 +000017691# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017692# resulting binary.
17693hardcode_direct=$hardcode_direct
17694
17695# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17696# resulting binary.
17697hardcode_minus_L=$hardcode_minus_L
17698
17699# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17700# the resulting binary.
17701hardcode_shlibpath_var=$hardcode_shlibpath_var
17702
John Criswell47fdd832003-07-14 16:52:07 +000017703# Set to yes if building a shared library automatically hardcodes DIR into the library
17704# and all subsequent libraries and executables linked against it.
17705hardcode_automatic=$hardcode_automatic
17706
John Criswell7a73b802003-06-30 21:59:07 +000017707# Variables whose values should be saved in libtool wrapper scripts and
17708# restored at relink time.
17709variables_saved_for_relink="$variables_saved_for_relink"
17710
17711# Whether libtool must link a program against all its dependency libraries.
17712link_all_deplibs=$link_all_deplibs
17713
17714# Compile-time system search path for libraries
17715sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17716
17717# Run-time system search path for libraries
17718sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17719
17720# Fix the shell variable \$srcfile for the compiler.
17721fix_srcfile_path="$fix_srcfile_path"
17722
17723# Set to yes if exported symbols are required.
17724always_export_symbols=$always_export_symbols
17725
17726# The commands to list exported symbols.
17727export_symbols_cmds=$lt_export_symbols_cmds
17728
17729# The commands to extract the exported symbol list from a shared archive.
17730extract_expsyms_cmds=$lt_extract_expsyms_cmds
17731
17732# Symbols that should not be listed in the preloaded symbols.
17733exclude_expsyms=$lt_exclude_expsyms
17734
17735# Symbols that must always be exported.
17736include_expsyms=$lt_include_expsyms
17737
17738# ### END LIBTOOL CONFIG
17739
17740__EOF__
17741
John Criswell47fdd832003-07-14 16:52:07 +000017742
John Criswell7a73b802003-06-30 21:59:07 +000017743 case $host_os in
17744 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017745 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017746
17747# AIX sometimes has problems with the GCC collect2 program. For some
17748# reason, if we set the COLLECT_NAMES environment variable, the problems
17749# vanish in a puff of smoke.
17750if test "X${COLLECT_NAMES+set}" != Xset; then
17751 COLLECT_NAMES=
17752 export COLLECT_NAMES
17753fi
17754EOF
17755 ;;
17756 esac
17757
John Criswell7a73b802003-06-30 21:59:07 +000017758 # We use sed instead of cat because bash on DJGPP gets confused if
17759 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17760 # text mode, it properly converts lines to CR/LF. This bash problem
17761 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017762 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017763
John Criswell47fdd832003-07-14 16:52:07 +000017764 mv -f "$cfgfile" "$ofile" || \
17765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017766 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017767
17768else
17769 # If there is no Makefile yet, we rely on a make rule to execute
17770 # `config.status --recheck' to rerun these tests and create the
17771 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017772 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17773 if test -f "$ltmain_in"; then
17774 test -f Makefile && make "$ltmain"
17775 fi
John Criswell7a73b802003-06-30 21:59:07 +000017776fi
John Criswell7a73b802003-06-30 21:59:07 +000017777
17778
John Criswell47fdd832003-07-14 16:52:07 +000017779ac_ext=c
17780ac_cpp='$CPP $CPPFLAGS'
17781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783ac_compiler_gnu=$ac_cv_c_compiler_gnu
17784
17785CC="$lt_save_CC"
17786
17787
Reid Spencera773bd52006-08-04 18:18:08 +000017788# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017789if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017790 withval=$with_tags; tagnames="$withval"
17791fi
17792
John Criswell47fdd832003-07-14 16:52:07 +000017793
17794if test -f "$ltmain" && test -n "$tagnames"; then
17795 if test ! -f "${ofile}"; then
17796 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17797echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17798 fi
17799
17800 if test -z "$LTCC"; then
17801 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17802 if test -z "$LTCC"; then
17803 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17804echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17805 else
17806 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17807echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17808 fi
17809 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017810 if test -z "$LTCFLAGS"; then
17811 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17812 fi
John Criswell47fdd832003-07-14 16:52:07 +000017813
17814 # Extract list of available tagged configurations in $ofile.
17815 # Note that this assumes the entire list is on one line.
17816 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17817
17818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17819 for tagname in $tagnames; do
17820 IFS="$lt_save_ifs"
17821 # Check whether tagname contains only valid characters
17822 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17823 "") ;;
17824 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17825echo "$as_me: error: invalid tag name: $tagname" >&2;}
17826 { (exit 1); exit 1; }; }
17827 ;;
17828 esac
17829
17830 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17831 then
17832 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17833echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17834 { (exit 1); exit 1; }; }
17835 fi
17836
17837 # Update the list of available tags.
17838 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017839 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017840
17841 case $tagname in
17842 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017843 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17844 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17845 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017846 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017847ac_cpp='$CXXCPP $CPPFLAGS'
17848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17851
17852
17853
17854
17855archive_cmds_need_lc_CXX=no
17856allow_undefined_flag_CXX=
17857always_export_symbols_CXX=no
17858archive_expsym_cmds_CXX=
17859export_dynamic_flag_spec_CXX=
17860hardcode_direct_CXX=no
17861hardcode_libdir_flag_spec_CXX=
17862hardcode_libdir_flag_spec_ld_CXX=
17863hardcode_libdir_separator_CXX=
17864hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017865hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017866hardcode_automatic_CXX=no
17867module_cmds_CXX=
17868module_expsym_cmds_CXX=
17869link_all_deplibs_CXX=unknown
17870old_archive_cmds_CXX=$old_archive_cmds
17871no_undefined_flag_CXX=
17872whole_archive_flag_spec_CXX=
17873enable_shared_with_static_runtimes_CXX=no
17874
17875# Dependencies to place before and after the object being linked:
17876predep_objects_CXX=
17877postdep_objects_CXX=
17878predeps_CXX=
17879postdeps_CXX=
17880compiler_lib_search_path_CXX=
17881
17882# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017883ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017884
17885# Object file extension for compiled C++ test sources.
17886objext=o
17887objext_CXX=$objext
17888
17889# Code to be used in simple compile tests
17890lt_simple_compile_test_code="int some_variable = 0;\n"
17891
17892# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017893lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017894
17895# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17896
17897# If no C compiler was specified, use CC.
17898LTCC=${LTCC-"$CC"}
17899
Reid Spencera773bd52006-08-04 18:18:08 +000017900# If no C compiler flags were specified, use CFLAGS.
17901LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17902
John Criswell47fdd832003-07-14 16:52:07 +000017903# Allow CC to be a program name with arguments.
17904compiler=$CC
17905
17906
Reid Spencera773bd52006-08-04 18:18:08 +000017907# save warnings/boilerplate of simple test code
17908ac_outfile=conftest.$ac_objext
17909printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17911_lt_compiler_boilerplate=`cat conftest.err`
17912$rm conftest*
17913
17914ac_outfile=conftest.$ac_objext
17915printf "$lt_simple_link_test_code" >conftest.$ac_ext
17916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17917_lt_linker_boilerplate=`cat conftest.err`
17918$rm conftest*
17919
17920
John Criswell47fdd832003-07-14 16:52:07 +000017921# Allow CC to be a program name with arguments.
17922lt_save_CC=$CC
17923lt_save_LD=$LD
17924lt_save_GCC=$GCC
17925GCC=$GXX
17926lt_save_with_gnu_ld=$with_gnu_ld
17927lt_save_path_LD=$lt_cv_path_LD
17928if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17929 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17930else
Reid Spencera773bd52006-08-04 18:18:08 +000017931 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017932fi
17933if test -n "${lt_cv_path_LDCXX+set}"; then
17934 lt_cv_path_LD=$lt_cv_path_LDCXX
17935else
Reid Spencera773bd52006-08-04 18:18:08 +000017936 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017937fi
17938test -z "${LDCXX+set}" || LD=$LDCXX
17939CC=${CXX-"c++"}
17940compiler=$CC
17941compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017942for cc_temp in $compiler""; do
17943 case $cc_temp in
17944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17946 \-*) ;;
17947 *) break;;
17948 esac
17949done
17950cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17951
John Criswell47fdd832003-07-14 16:52:07 +000017952
17953# We don't want -fno-exception wen compiling C++ code, so set the
17954# no_builtin_flag separately
17955if test "$GXX" = yes; then
17956 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17957else
17958 lt_prog_compiler_no_builtin_flag_CXX=
17959fi
17960
17961if test "$GXX" = yes; then
17962 # Set up default GNU C++ configuration
17963
17964
Reid Spencera773bd52006-08-04 18:18:08 +000017965# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017966if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017967 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017968else
17969 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017970fi
17971
John Criswell47fdd832003-07-14 16:52:07 +000017972ac_prog=ld
17973if test "$GCC" = yes; then
17974 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017975 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17976echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017977 case $host in
17978 *-*-mingw*)
17979 # gcc leaves a trailing carriage return which upsets mingw
17980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17981 *)
17982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17983 esac
17984 case $ac_prog in
17985 # Accept absolute paths.
17986 [\\/]* | ?:[\\/]*)
17987 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017988 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017989 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17990 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17991 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17992 done
17993 test -z "$LD" && LD="$ac_prog"
17994 ;;
17995 "")
17996 # If it fails, then pretend we aren't using GCC.
17997 ac_prog=ld
17998 ;;
17999 *)
18000 # If it is relative, then search for the first ld in PATH.
18001 with_gnu_ld=unknown
18002 ;;
18003 esac
18004elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018005 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18006echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018007else
Reid Spencera773bd52006-08-04 18:18:08 +000018008 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18009echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018010fi
18011if test "${lt_cv_path_LD+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013else
18014 if test -z "$LD"; then
18015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18016 for ac_dir in $PATH; do
18017 IFS="$lt_save_ifs"
18018 test -z "$ac_dir" && ac_dir=.
18019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18020 lt_cv_path_LD="$ac_dir/$ac_prog"
18021 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018022 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018023 # Break only if it was the GNU/non-GNU ld that we prefer.
18024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18025 *GNU* | *'with BFD'*)
18026 test "$with_gnu_ld" != no && break
18027 ;;
18028 *)
18029 test "$with_gnu_ld" != yes && break
18030 ;;
18031 esac
18032 fi
18033 done
18034 IFS="$lt_save_ifs"
18035else
18036 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18037fi
18038fi
18039
18040LD="$lt_cv_path_LD"
18041if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018042 { echo "$as_me:$LINENO: result: $LD" >&5
18043echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018044else
Reid Spencera773bd52006-08-04 18:18:08 +000018045 { echo "$as_me:$LINENO: result: no" >&5
18046echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018047fi
18048test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18049echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18050 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018051{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18052echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018053if test "${lt_cv_prog_gnu_ld+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
Reid Spencera773bd52006-08-04 18:18:08 +000018056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018057case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018058*GNU* | *'with BFD'*)
18059 lt_cv_prog_gnu_ld=yes
18060 ;;
18061*)
18062 lt_cv_prog_gnu_ld=no
18063 ;;
18064esac
18065fi
Reid Spencera773bd52006-08-04 18:18:08 +000018066{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18067echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018068with_gnu_ld=$lt_cv_prog_gnu_ld
18069
18070
18071
18072 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18073 # archiving commands below assume that GNU ld is being used.
18074 if test "$with_gnu_ld" = yes; then
18075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18076 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'
18077
18078 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18080
18081 # If archive_cmds runs LD, not CC, wlarc should be empty
18082 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18083 # investigate it a little bit more. (MM)
18084 wlarc='${wl}'
18085
18086 # ancient GNU ld didn't support --whole-archive et. al.
18087 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18088 grep 'no-whole-archive' > /dev/null; then
18089 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18090 else
18091 whole_archive_flag_spec_CXX=
18092 fi
18093 else
18094 with_gnu_ld=no
18095 wlarc=
18096
18097 # A generic and very simple default shared library creation
18098 # command for GNU C++ for the case where it uses the native
18099 # linker, instead of GNU ld. If possible, this setting should
18100 # overridden to take advantage of the native linker features on
18101 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018102 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018103 fi
18104
18105 # Commands to make compiler produce verbose output that lists
18106 # what "hidden" libraries, object files and flags are used when
18107 # linking a shared library.
18108 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18109
18110else
18111 GXX=no
18112 with_gnu_ld=no
18113 wlarc=
18114fi
18115
18116# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018117{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18118echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018119ld_shlibs_CXX=yes
18120case $host_os in
18121 aix3*)
18122 # FIXME: insert proper C++ library support
18123 ld_shlibs_CXX=no
18124 ;;
18125 aix4* | aix5*)
18126 if test "$host_cpu" = ia64; then
18127 # On IA64, the linker does run time linking by default, so we don't
18128 # have to do anything special.
18129 aix_use_runtimelinking=no
18130 exp_sym_flag='-Bexport'
18131 no_entry_flag=""
18132 else
18133 aix_use_runtimelinking=no
18134
18135 # Test if we are trying to use run time linking or normal
18136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18137 # need to do runtime linking.
18138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18139 for ld_flag in $LDFLAGS; do
18140 case $ld_flag in
18141 *-brtl*)
18142 aix_use_runtimelinking=yes
18143 break
18144 ;;
18145 esac
18146 done
Reid Spencera773bd52006-08-04 18:18:08 +000018147 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018148 esac
18149
18150 exp_sym_flag='-bexport'
18151 no_entry_flag='-bnoentry'
18152 fi
18153
18154 # When large executables or shared objects are built, AIX ld can
18155 # have problems creating the table of contents. If linking a library
18156 # or program results in "error TOC overflow" add -mminimal-toc to
18157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18159
18160 archive_cmds_CXX=''
18161 hardcode_direct_CXX=yes
18162 hardcode_libdir_separator_CXX=':'
18163 link_all_deplibs_CXX=yes
18164
18165 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018166 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018167 # We only want to do this on AIX 4.2 and lower, the check
18168 # below for broken collect2 doesn't work under 4.3+
18169 collect2name=`${CC} -print-prog-name=collect2`
18170 if test -f "$collect2name" && \
18171 strings "$collect2name" | grep resolve_lib_name >/dev/null
18172 then
18173 # We have reworked collect2
18174 hardcode_direct_CXX=yes
18175 else
18176 # We have old collect2
18177 hardcode_direct_CXX=unsupported
18178 # It fails to find uninstalled libraries when the uninstalled
18179 # path is not listed in the libpath. Setting hardcode_minus_L
18180 # to unsupported forces relinking
18181 hardcode_minus_L_CXX=yes
18182 hardcode_libdir_flag_spec_CXX='-L$libdir'
18183 hardcode_libdir_separator_CXX=
18184 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018185 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018186 esac
18187 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018188 if test "$aix_use_runtimelinking" = yes; then
18189 shared_flag="$shared_flag "'${wl}-G'
18190 fi
John Criswell47fdd832003-07-14 16:52:07 +000018191 else
18192 # not using gcc
18193 if test "$host_cpu" = ia64; then
18194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18195 # chokes on -Wl,-G. The following line is correct:
18196 shared_flag='-G'
18197 else
18198 if test "$aix_use_runtimelinking" = yes; then
18199 shared_flag='${wl}-G'
18200 else
18201 shared_flag='${wl}-bM:SRE'
18202 fi
18203 fi
18204 fi
18205
18206 # It seems that -bexpall does not export symbols beginning with
18207 # underscore (_), so it is better to generate a list of symbols to export.
18208 always_export_symbols_CXX=yes
18209 if test "$aix_use_runtimelinking" = yes; then
18210 # Warning - without using the other runtime loading flags (-brtl),
18211 # -berok will link without error, but may produce a broken library.
18212 allow_undefined_flag_CXX='-berok'
18213 # Determine the default libpath from the value encoded in an empty executable.
18214 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018215/* confdefs.h. */
18216_ACEOF
18217cat confdefs.h >>conftest.$ac_ext
18218cat >>conftest.$ac_ext <<_ACEOF
18219/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018220
John Criswell47fdd832003-07-14 16:52:07 +000018221int
18222main ()
18223{
18224
18225 ;
18226 return 0;
18227}
18228_ACEOF
18229rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018230if { (ac_try="$ac_link"
18231case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234esac
18235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018237 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18244 { (case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18247esac
18248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018254 { (case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257esac
18258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263
18264aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18265}'`
18266# Check for a 64-bit object if we didn't find anything.
18267if 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; }
18268}'`; fi
18269else
18270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018271sed 's/^/| /' conftest.$ac_ext >&5
18272
Reid Spencera773bd52006-08-04 18:18:08 +000018273
John Criswell47fdd832003-07-14 16:52:07 +000018274fi
Reid Spencera773bd52006-08-04 18:18:08 +000018275
18276rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018277 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18279
18280 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18281
Reid Spencera773bd52006-08-04 18:18:08 +000018282 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 +000018283 else
18284 if test "$host_cpu" = ia64; then
18285 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18286 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018287 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 +000018288 else
18289 # Determine the default libpath from the value encoded in an empty executable.
18290 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018291/* confdefs.h. */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018296
John Criswell47fdd832003-07-14 16:52:07 +000018297int
18298main ()
18299{
18300
18301 ;
18302 return 0;
18303}
18304_ACEOF
18305rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018306if { (ac_try="$ac_link"
18307case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310esac
18311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18320 { (case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323esac
18324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018330 { (case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333esac
18334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339
18340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18341}'`
18342# Check for a 64-bit object if we didn't find anything.
18343if 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; }
18344}'`; fi
18345else
18346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018347sed 's/^/| /' conftest.$ac_ext >&5
18348
Reid Spencera773bd52006-08-04 18:18:08 +000018349
John Criswell47fdd832003-07-14 16:52:07 +000018350fi
Reid Spencera773bd52006-08-04 18:18:08 +000018351
18352rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018353 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18355
18356 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18357 # Warning - without using the other run time loading flags,
18358 # -berok will link without error, but may produce a broken library.
18359 no_undefined_flag_CXX=' ${wl}-bernotok'
18360 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018361 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018362 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018363 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018364 # This is similar to how AIX traditionally builds its shared libraries.
18365 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 +000018366 fi
18367 fi
18368 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018369
18370 beos*)
18371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18372 allow_undefined_flag_CXX=unsupported
18373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18374 # support --undefined. This deserves some investigation. FIXME
18375 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18376 else
18377 ld_shlibs_CXX=no
18378 fi
18379 ;;
18380
John Criswell47fdd832003-07-14 16:52:07 +000018381 chorus*)
18382 case $cc_basename in
18383 *)
18384 # FIXME: insert proper C++ library support
18385 ld_shlibs_CXX=no
18386 ;;
18387 esac
18388 ;;
18389
18390 cygwin* | mingw* | pw32*)
18391 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18392 # as there is no search path for DLLs.
18393 hardcode_libdir_flag_spec_CXX='-L$libdir'
18394 allow_undefined_flag_CXX=unsupported
18395 always_export_symbols_CXX=no
18396 enable_shared_with_static_runtimes_CXX=yes
18397
18398 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018399 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 +000018400 # If the export-symbols file already is a .def file (1st line
18401 # is EXPORTS), use it as is; otherwise, prepend...
18402 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18403 cp $export_symbols $output_objdir/$soname.def;
18404 else
18405 echo EXPORTS > $output_objdir/$soname.def;
18406 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018407 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018408 $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 +000018409 else
18410 ld_shlibs_CXX=no
18411 fi
18412 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018413 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018414 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018415 rhapsody* | darwin1.[012])
18416 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18417 ;;
18418 *) # Darwin 1.3 on
18419 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18420 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18421 else
18422 case ${MACOSX_DEPLOYMENT_TARGET} in
18423 10.[012])
18424 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18425 ;;
18426 10.*)
18427 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18428 ;;
18429 esac
18430 fi
18431 ;;
18432 esac
18433 archive_cmds_need_lc_CXX=no
18434 hardcode_direct_CXX=no
18435 hardcode_automatic_CXX=yes
18436 hardcode_shlibpath_var_CXX=unsupported
18437 whole_archive_flag_spec_CXX=''
18438 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018439
Reid Spencer2706f8c2004-09-19 23:53:36 +000018440 if test "$GXX" = yes ; then
18441 lt_int_apple_cc_single_mod=no
18442 output_verbose_link_cmd='echo'
18443 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18444 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018445 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018446 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018447 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 +000018448 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018449 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 +000018450 fi
18451 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018452 # 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 +000018453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018454 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 +000018455 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018456 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 +000018457 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018458 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 +000018459 else
Reid Spencera773bd52006-08-04 18:18:08 +000018460 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018461 xlc*)
18462 output_verbose_link_cmd='echo'
18463 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'
18464 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018465 # 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 +000018466 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}'
18467 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 +000018468 ;;
18469 *)
18470 ld_shlibs_CXX=no
18471 ;;
18472 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018473 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018474 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018475
18476 dgux*)
18477 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018478 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018479 # FIXME: insert proper C++ library support
18480 ld_shlibs_CXX=no
18481 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018482 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018483 # Green Hills C++ Compiler
18484 # FIXME: insert proper C++ library support
18485 ld_shlibs_CXX=no
18486 ;;
18487 *)
18488 # FIXME: insert proper C++ library support
18489 ld_shlibs_CXX=no
18490 ;;
18491 esac
18492 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018493 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018494 # C++ shared libraries reported to be fairly broken before switch to ELF
18495 ld_shlibs_CXX=no
18496 ;;
18497 freebsd-elf*)
18498 archive_cmds_need_lc_CXX=no
18499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018500 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18502 # conventions
18503 ld_shlibs_CXX=yes
18504 ;;
18505 gnu*)
18506 ;;
18507 hpux9*)
18508 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18509 hardcode_libdir_separator_CXX=:
18510 export_dynamic_flag_spec_CXX='${wl}-E'
18511 hardcode_direct_CXX=yes
18512 hardcode_minus_L_CXX=yes # Not in the search PATH,
18513 # but as the default
18514 # location of the library.
18515
18516 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018517 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018518 # FIXME: insert proper C++ library support
18519 ld_shlibs_CXX=no
18520 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018521 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018522 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 +000018523 # Commands to make compiler produce verbose output that lists
18524 # what "hidden" libraries, object files and flags are used when
18525 # linking a shared library.
18526 #
18527 # There doesn't appear to be a way to prevent this compiler from
18528 # explicitly linking system object files so we need to strip them
18529 # from the output so that they don't get included in the library
18530 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018531 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 +000018532 ;;
18533 *)
18534 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018535 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 +000018536 else
18537 # FIXME: insert proper C++ library support
18538 ld_shlibs_CXX=no
18539 fi
18540 ;;
18541 esac
18542 ;;
18543 hpux10*|hpux11*)
18544 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18546 hardcode_libdir_separator_CXX=:
18547
18548 case $host_cpu in
18549 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018550 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018551 ;;
18552 *)
John Criswell47fdd832003-07-14 16:52:07 +000018553 export_dynamic_flag_spec_CXX='${wl}-E'
18554 ;;
18555 esac
18556 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018557 case $host_cpu in
18558 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018559 hardcode_direct_CXX=no
18560 hardcode_shlibpath_var_CXX=no
18561 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018562 *)
18563 hardcode_direct_CXX=yes
18564 hardcode_minus_L_CXX=yes # Not in the search PATH,
18565 # but as the default
18566 # location of the library.
18567 ;;
18568 esac
18569
18570 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018571 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018572 # FIXME: insert proper C++ library support
18573 ld_shlibs_CXX=no
18574 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018575 aCC*)
18576 case $host_cpu in
18577 hppa*64*)
18578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18579 ;;
18580 ia64*)
18581 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 +000018582 ;;
18583 *)
18584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18585 ;;
18586 esac
18587 # Commands to make compiler produce verbose output that lists
18588 # what "hidden" libraries, object files and flags are used when
18589 # linking a shared library.
18590 #
18591 # There doesn't appear to be a way to prevent this compiler from
18592 # explicitly linking system object files so we need to strip them
18593 # from the output so that they don't get included in the library
18594 # dependencies.
18595 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'
18596 ;;
18597 *)
18598 if test "$GXX" = yes; then
18599 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018600 case $host_cpu in
18601 hppa*64*)
18602 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18603 ;;
18604 ia64*)
18605 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 +000018606 ;;
18607 *)
18608 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'
18609 ;;
18610 esac
18611 fi
18612 else
18613 # FIXME: insert proper C++ library support
18614 ld_shlibs_CXX=no
18615 fi
18616 ;;
18617 esac
18618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018619 interix3*)
18620 hardcode_direct_CXX=no
18621 hardcode_shlibpath_var_CXX=no
18622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18623 export_dynamic_flag_spec_CXX='${wl}-E'
18624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18625 # Instead, shared libraries are loaded at an image base (0x10000000 by
18626 # default) and relocated if they conflict, which is a slow very memory
18627 # consuming and fragmenting process. To avoid this, we pick a random,
18628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18630 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'
18631 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'
18632 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018633 irix5* | irix6*)
18634 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018635 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018636 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018637 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 +000018638
18639 # Archives containing C++ object files must be created using
18640 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18641 # necessary to make sure instantiated templates are included
18642 # in the archive.
18643 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18644 ;;
18645 *)
18646 if test "$GXX" = yes; then
18647 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018648 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 +000018649 else
18650 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'
18651 fi
18652 fi
18653 link_all_deplibs_CXX=yes
18654 ;;
18655 esac
18656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18657 hardcode_libdir_separator_CXX=:
18658 ;;
18659 linux*)
18660 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018661 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018662 # Kuck and Associates, Inc. (KAI) C++ Compiler
18663
18664 # KCC will only create a shared library if the output file
18665 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18666 # to its proper name (with version) after linking.
18667 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'
18668 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'
18669 # Commands to make compiler produce verbose output that lists
18670 # what "hidden" libraries, object files and flags are used when
18671 # linking a shared library.
18672 #
18673 # There doesn't appear to be a way to prevent this compiler from
18674 # explicitly linking system object files so we need to strip them
18675 # from the output so that they don't get included in the library
18676 # dependencies.
18677 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'
18678
18679 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18681
18682 # Archives containing C++ object files must be created using
18683 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18684 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18685 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018686 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018687 # Intel C++
18688 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018689 # version 8.0 and above of icpc choke on multiply defined symbols
18690 # if we add $predep_objects and $postdep_objects, however 7.1 and
18691 # earlier do not add the objects themselves.
18692 case `$CC -V 2>&1` in
18693 *"Version 7."*)
18694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18695 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'
18696 ;;
18697 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018698 tmp_idyn=
18699 case $host_cpu in
18700 ia64*) tmp_idyn=' -i_dynamic';;
18701 esac
18702 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703 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 +000018704 ;;
18705 esac
John Criswell47fdd832003-07-14 16:52:07 +000018706 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18709 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18710 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018711 pgCC*)
18712 # Portland Group C++ compiler
18713 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18714 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'
18715
18716 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18718 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'
18719 ;;
18720 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018721 # Compaq C++
18722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723 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'
18724
18725 runpath_var=LD_RUN_PATH
18726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18727 hardcode_libdir_separator_CXX=:
18728
18729 # Commands to make compiler produce verbose output that lists
18730 # what "hidden" libraries, object files and flags are used when
18731 # linking a shared library.
18732 #
18733 # There doesn't appear to be a way to prevent this compiler from
18734 # explicitly linking system object files so we need to strip them
18735 # from the output so that they don't get included in the library
18736 # dependencies.
18737 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'
18738 ;;
18739 esac
18740 ;;
18741 lynxos*)
18742 # FIXME: insert proper C++ library support
18743 ld_shlibs_CXX=no
18744 ;;
18745 m88k*)
18746 # FIXME: insert proper C++ library support
18747 ld_shlibs_CXX=no
18748 ;;
18749 mvs*)
18750 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018751 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018752 # FIXME: insert proper C++ library support
18753 ld_shlibs_CXX=no
18754 ;;
18755 *)
18756 # FIXME: insert proper C++ library support
18757 ld_shlibs_CXX=no
18758 ;;
18759 esac
18760 ;;
18761 netbsd*)
18762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18763 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18764 wlarc=
18765 hardcode_libdir_flag_spec_CXX='-R$libdir'
18766 hardcode_direct_CXX=yes
18767 hardcode_shlibpath_var_CXX=no
18768 fi
18769 # Workaround some broken pre-1.5 toolchains
18770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18771 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018772 openbsd2*)
18773 # C++ shared libraries are fairly broken
18774 ld_shlibs_CXX=no
18775 ;;
18776 openbsd*)
18777 hardcode_direct_CXX=yes
18778 hardcode_shlibpath_var_CXX=no
18779 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18782 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18783 export_dynamic_flag_spec_CXX='${wl}-E'
18784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18785 fi
18786 output_verbose_link_cmd='echo'
18787 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018788 osf3*)
18789 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018790 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018791 # Kuck and Associates, Inc. (KAI) C++ Compiler
18792
18793 # KCC will only create a shared library if the output file
18794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18795 # to its proper name (with version) after linking.
18796 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'
18797
18798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18799 hardcode_libdir_separator_CXX=:
18800
18801 # Archives containing C++ object files must be created using
18802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18804
18805 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018806 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018807 # Rational C++ 2.4.1
18808 # FIXME: insert proper C++ library support
18809 ld_shlibs_CXX=no
18810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018811 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018813 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 +000018814
18815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18816 hardcode_libdir_separator_CXX=:
18817
18818 # Commands to make compiler produce verbose output that lists
18819 # what "hidden" libraries, object files and flags are used when
18820 # linking a shared library.
18821 #
18822 # There doesn't appear to be a way to prevent this compiler from
18823 # explicitly linking system object files so we need to strip them
18824 # from the output so that they don't get included in the library
18825 # dependencies.
18826 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'
18827 ;;
18828 *)
18829 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018831 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 +000018832
18833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18834 hardcode_libdir_separator_CXX=:
18835
18836 # Commands to make compiler produce verbose output that lists
18837 # what "hidden" libraries, object files and flags are used when
18838 # linking a shared library.
18839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18840
18841 else
18842 # FIXME: insert proper C++ library support
18843 ld_shlibs_CXX=no
18844 fi
18845 ;;
18846 esac
18847 ;;
18848 osf4* | osf5*)
18849 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018850 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018851 # Kuck and Associates, Inc. (KAI) C++ Compiler
18852
18853 # KCC will only create a shared library if the output file
18854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18855 # to its proper name (with version) after linking.
18856 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'
18857
18858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18859 hardcode_libdir_separator_CXX=:
18860
18861 # Archives containing C++ object files must be created using
18862 # the KAI C++ compiler.
18863 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18864 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018865 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018866 # Rational C++ 2.4.1
18867 # FIXME: insert proper C++ library support
18868 ld_shlibs_CXX=no
18869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018870 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018871 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018872 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 +000018873 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18874 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018875 $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 +000018876 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018877
18878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18879 hardcode_libdir_separator_CXX=:
18880
18881 # Commands to make compiler produce verbose output that lists
18882 # what "hidden" libraries, object files and flags are used when
18883 # linking a shared library.
18884 #
18885 # There doesn't appear to be a way to prevent this compiler from
18886 # explicitly linking system object files so we need to strip them
18887 # from the output so that they don't get included in the library
18888 # dependencies.
18889 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'
18890 ;;
18891 *)
18892 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018894 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 +000018895
18896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18897 hardcode_libdir_separator_CXX=:
18898
18899 # Commands to make compiler produce verbose output that lists
18900 # what "hidden" libraries, object files and flags are used when
18901 # linking a shared library.
18902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18903
18904 else
18905 # FIXME: insert proper C++ library support
18906 ld_shlibs_CXX=no
18907 fi
18908 ;;
18909 esac
18910 ;;
18911 psos*)
18912 # FIXME: insert proper C++ library support
18913 ld_shlibs_CXX=no
18914 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018915 sunos4*)
18916 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018917 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018918 # Sun C++ 4.x
18919 # FIXME: insert proper C++ library support
18920 ld_shlibs_CXX=no
18921 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018922 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018923 # Lucid
18924 # FIXME: insert proper C++ library support
18925 ld_shlibs_CXX=no
18926 ;;
18927 *)
18928 # FIXME: insert proper C++ library support
18929 ld_shlibs_CXX=no
18930 ;;
18931 esac
18932 ;;
18933 solaris*)
18934 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018935 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018936 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018937 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018938 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018939 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 +000018940 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 +000018941 $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 +000018942
18943 hardcode_libdir_flag_spec_CXX='-R$libdir'
18944 hardcode_shlibpath_var_CXX=no
18945 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018946 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018947 *)
18948 # The C++ compiler is used as linker so we must use $wl
18949 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018950 # linker. We must also pass each convience library through
18951 # to the system linker between allextract/defaultextract.
18952 # The C++ compiler will combine linker options so we
18953 # cannot just pass the convience library names through
18954 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018955 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018956 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 +000018957 ;;
18958 esac
18959 link_all_deplibs_CXX=yes
18960
Reid Spencera773bd52006-08-04 18:18:08 +000018961 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018962
18963 # Archives containing C++ object files must be created using
18964 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18965 # necessary to make sure instantiated templates are included
18966 # in the archive.
18967 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18968 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018969 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018970 # Green Hills C++ Compiler
18971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18972
18973 # The C++ compiler must be used to create the archive.
18974 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18975 ;;
18976 *)
18977 # GNU C++ compiler with Solaris linker
18978 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18979 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18980 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018981 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 +000018982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18983 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18984
John Criswell47fdd832003-07-14 16:52:07 +000018985 # Commands to make compiler produce verbose output that lists
18986 # what "hidden" libraries, object files and flags are used when
18987 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018988 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018989 else
18990 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18991 # platform.
18992 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 +000018993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18994 $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 +000018995
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19000 fi
19001
19002 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19003 fi
19004 ;;
19005 esac
19006 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019007 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19008 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019009 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019010 hardcode_shlibpath_var_CXX=no
19011 runpath_var='LD_RUN_PATH'
19012
19013 case $cc_basename in
19014 CC*)
19015 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19016 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19017 ;;
19018 *)
19019 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19020 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19021 ;;
19022 esac
19023 ;;
19024 sysv5* | sco3.2v5* | sco5v6*)
19025 # Note: We can NOT use -z defs as we might desire, because we do not
19026 # link with -lc, and that would cause any symbols used from libc to
19027 # always be unresolved, which means just about no library would
19028 # ever link correctly. If we're not using GNU ld we use -z text
19029 # though, which does catch some bad symbols but isn't as heavy-handed
19030 # as -z defs.
19031 # For security reasons, it is highly recommended that you always
19032 # use absolute paths for naming shared libraries, and exclude the
19033 # DT_RUNPATH tag from executables and libraries. But doing so
19034 # requires that you compile everything twice, which is a pain.
19035 # So that behaviour is only enabled if SCOABSPATH is set to a
19036 # non-empty value in the environment. Most likely only useful for
19037 # creating official distributions of packages.
19038 # This is a hack until libtool officially supports absolute path
19039 # names for shared libraries.
19040 no_undefined_flag_CXX='${wl}-z,text'
19041 allow_undefined_flag_CXX='${wl}-z,nodefs'
19042 archive_cmds_need_lc_CXX=no
19043 hardcode_shlibpath_var_CXX=no
19044 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19045 hardcode_libdir_separator_CXX=':'
19046 link_all_deplibs_CXX=yes
19047 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19048 runpath_var='LD_RUN_PATH'
19049
19050 case $cc_basename in
19051 CC*)
19052 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19053 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19054 ;;
19055 *)
19056 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19057 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19058 ;;
19059 esac
John Criswell47fdd832003-07-14 16:52:07 +000019060 ;;
19061 tandem*)
19062 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019063 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019064 # NonStop-UX NCC 3.20
19065 # FIXME: insert proper C++ library support
19066 ld_shlibs_CXX=no
19067 ;;
19068 *)
19069 # FIXME: insert proper C++ library support
19070 ld_shlibs_CXX=no
19071 ;;
19072 esac
19073 ;;
19074 vxworks*)
19075 # FIXME: insert proper C++ library support
19076 ld_shlibs_CXX=no
19077 ;;
19078 *)
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19081 ;;
19082esac
Reid Spencera773bd52006-08-04 18:18:08 +000019083{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19084echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019085test "$ld_shlibs_CXX" = no && can_build_shared=no
19086
19087GCC_CXX="$GXX"
19088LD_CXX="$LD"
19089
John Criswell47fdd832003-07-14 16:52:07 +000019090
19091cat > conftest.$ac_ext <<EOF
19092class Foo
19093{
19094public:
19095 Foo (void) { a = 0; }
19096private:
19097 int a;
19098};
19099EOF
19100
19101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102 (eval $ac_compile) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; then
19106 # Parse the compiler output and extract the necessary
19107 # objects, libraries and library flags.
19108
19109 # Sentinel used to keep track of whether or not we are before
19110 # the conftest object file.
19111 pre_test_object_deps_done=no
19112
19113 # The `*' in the case matches for architectures that use `case' in
19114 # $output_verbose_cmd can trigger glob expansion during the loop
19115 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019116 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019117
19118 for p in `eval $output_verbose_link_cmd`; do
19119 case $p in
19120
19121 -L* | -R* | -l*)
19122 # Some compilers place space between "-{L,R}" and the path.
19123 # Remove the space.
19124 if test $p = "-L" \
19125 || test $p = "-R"; then
19126 prev=$p
19127 continue
19128 else
19129 prev=
19130 fi
19131
19132 if test "$pre_test_object_deps_done" = no; then
19133 case $p in
19134 -L* | -R*)
19135 # Internal compiler library paths should come after those
19136 # provided the user. The postdeps already come after the
19137 # user supplied libs so there is no need to process them.
19138 if test -z "$compiler_lib_search_path_CXX"; then
19139 compiler_lib_search_path_CXX="${prev}${p}"
19140 else
19141 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19142 fi
19143 ;;
19144 # The "-l" case would never come before the object being
19145 # linked, so don't bother handling this case.
19146 esac
19147 else
19148 if test -z "$postdeps_CXX"; then
19149 postdeps_CXX="${prev}${p}"
19150 else
19151 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19152 fi
19153 fi
19154 ;;
19155
19156 *.$objext)
19157 # This assumes that the test object file only shows up
19158 # once in the compiler output.
19159 if test "$p" = "conftest.$objext"; then
19160 pre_test_object_deps_done=yes
19161 continue
19162 fi
19163
19164 if test "$pre_test_object_deps_done" = no; then
19165 if test -z "$predep_objects_CXX"; then
19166 predep_objects_CXX="$p"
19167 else
19168 predep_objects_CXX="$predep_objects_CXX $p"
19169 fi
19170 else
19171 if test -z "$postdep_objects_CXX"; then
19172 postdep_objects_CXX="$p"
19173 else
19174 postdep_objects_CXX="$postdep_objects_CXX $p"
19175 fi
19176 fi
19177 ;;
19178
19179 *) ;; # Ignore the rest.
19180
19181 esac
19182 done
19183
19184 # Clean up.
19185 rm -f a.out a.exe
19186else
19187 echo "libtool.m4: error: problem compiling CXX test program"
19188fi
19189
19190$rm -f confest.$objext
19191
Reid Spencera773bd52006-08-04 18:18:08 +000019192# PORTME: override above test on systems where it is broken
19193case $host_os in
19194interix3*)
19195 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19196 # hack all around it, let's just trust "g++" to DTRT.
19197 predep_objects_CXX=
19198 postdep_objects_CXX=
19199 postdeps_CXX=
19200 ;;
19201
19202solaris*)
19203 case $cc_basename in
19204 CC*)
19205 # Adding this requires a known-good setup of shared libraries for
19206 # Sun compiler versions before 5.6, else PIC objects from an old
19207 # archive will be linked into the output, leading to subtle bugs.
19208 postdeps_CXX='-lCstd -lCrun'
19209 ;;
19210 esac
19211 ;;
19212esac
19213
19214
John Criswell47fdd832003-07-14 16:52:07 +000019215case " $postdeps_CXX " in
19216*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19217esac
19218
19219lt_prog_compiler_wl_CXX=
19220lt_prog_compiler_pic_CXX=
19221lt_prog_compiler_static_CXX=
19222
Reid Spencera773bd52006-08-04 18:18:08 +000019223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019225
19226 # C++ specific cases for pic, static, wl, etc.
19227 if test "$GXX" = yes; then
19228 lt_prog_compiler_wl_CXX='-Wl,'
19229 lt_prog_compiler_static_CXX='-static'
19230
19231 case $host_os in
19232 aix*)
19233 # All AIX code is PIC.
19234 if test "$host_cpu" = ia64; then
19235 # AIX 5 now supports IA64 processor
19236 lt_prog_compiler_static_CXX='-Bstatic'
19237 fi
19238 ;;
19239 amigaos*)
19240 # FIXME: we need at least 68020 code to build shared libraries, but
19241 # adding the `-m68020' flag to GCC prevents building anything better,
19242 # like `-m68040'.
19243 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19244 ;;
19245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19246 # PIC is the default for these OSes.
19247 ;;
19248 mingw* | os2* | pw32*)
19249 # This hack is so that the source file can tell whether it is being
19250 # built for inclusion in a dll (and should export symbols for example).
19251 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19252 ;;
19253 darwin* | rhapsody*)
19254 # PIC is the default on this platform
19255 # Common symbols not allowed in MH_DYLIB files
19256 lt_prog_compiler_pic_CXX='-fno-common'
19257 ;;
19258 *djgpp*)
19259 # DJGPP does not support shared libraries at all
19260 lt_prog_compiler_pic_CXX=
19261 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019262 interix3*)
19263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19264 # Instead, we relocate shared libraries at runtime.
19265 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019266 sysv4*MP*)
19267 if test -d /usr/nec; then
19268 lt_prog_compiler_pic_CXX=-Kconform_pic
19269 fi
19270 ;;
19271 hpux*)
19272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19273 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019274 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019275 hppa*64*|ia64*)
19276 ;;
19277 *)
19278 lt_prog_compiler_pic_CXX='-fPIC'
19279 ;;
19280 esac
19281 ;;
19282 *)
19283 lt_prog_compiler_pic_CXX='-fPIC'
19284 ;;
19285 esac
19286 else
19287 case $host_os in
19288 aix4* | aix5*)
19289 # All AIX code is PIC.
19290 if test "$host_cpu" = ia64; then
19291 # AIX 5 now supports IA64 processor
19292 lt_prog_compiler_static_CXX='-Bstatic'
19293 else
19294 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19295 fi
19296 ;;
19297 chorus*)
19298 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019299 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019300 # Green Hills C++ Compiler
19301 # _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"
19302 ;;
19303 esac
19304 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019305 darwin*)
19306 # PIC is the default on this platform
19307 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019308 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019309 xlc*)
19310 lt_prog_compiler_pic_CXX='-qnocommon'
19311 lt_prog_compiler_wl_CXX='-Wl,'
19312 ;;
19313 esac
19314 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019315 dgux*)
19316 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019317 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019318 lt_prog_compiler_pic_CXX='-KPIC'
19319 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019320 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019321 # Green Hills C++ Compiler
19322 lt_prog_compiler_pic_CXX='-pic'
19323 ;;
19324 *)
19325 ;;
19326 esac
19327 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019328 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019329 # FreeBSD uses GNU C++
19330 ;;
19331 hpux9* | hpux10* | hpux11*)
19332 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019333 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019334 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019335 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019336 if test "$host_cpu" != ia64; then
19337 lt_prog_compiler_pic_CXX='+Z'
19338 fi
19339 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019340 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019341 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019342 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19343 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019344 hppa*64*|ia64*)
19345 # +Z the default
19346 ;;
19347 *)
19348 lt_prog_compiler_pic_CXX='+Z'
19349 ;;
19350 esac
19351 ;;
19352 *)
19353 ;;
19354 esac
19355 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019356 interix*)
19357 # This is c89, which is MS Visual C++ (no shared libs)
19358 # Anyone wants to do a port?
19359 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019360 irix5* | irix6* | nonstopux*)
19361 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019362 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019363 lt_prog_compiler_wl_CXX='-Wl,'
19364 lt_prog_compiler_static_CXX='-non_shared'
19365 # CC pic flag -KPIC is the default.
19366 ;;
19367 *)
19368 ;;
19369 esac
19370 ;;
19371 linux*)
19372 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019373 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019374 # KAI C++ Compiler
19375 lt_prog_compiler_wl_CXX='--backend -Wl,'
19376 lt_prog_compiler_pic_CXX='-fPIC'
19377 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019378 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019379 # Intel C++
19380 lt_prog_compiler_wl_CXX='-Wl,'
19381 lt_prog_compiler_pic_CXX='-KPIC'
19382 lt_prog_compiler_static_CXX='-static'
19383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019384 pgCC*)
19385 # Portland Group C++ compiler.
19386 lt_prog_compiler_wl_CXX='-Wl,'
19387 lt_prog_compiler_pic_CXX='-fpic'
19388 lt_prog_compiler_static_CXX='-Bstatic'
19389 ;;
19390 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019391 # Compaq C++
19392 # Make sure the PIC flag is empty. It appears that all Alpha
19393 # Linux and Compaq Tru64 Unix objects are PIC.
19394 lt_prog_compiler_pic_CXX=
19395 lt_prog_compiler_static_CXX='-non_shared'
19396 ;;
19397 *)
19398 ;;
19399 esac
19400 ;;
19401 lynxos*)
19402 ;;
19403 m88k*)
19404 ;;
19405 mvs*)
19406 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019407 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019408 lt_prog_compiler_pic_CXX='-W c,exportall'
19409 ;;
19410 *)
19411 ;;
19412 esac
19413 ;;
19414 netbsd*)
19415 ;;
19416 osf3* | osf4* | osf5*)
19417 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019418 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019419 lt_prog_compiler_wl_CXX='--backend -Wl,'
19420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019421 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019422 # Rational C++ 2.4.1
19423 lt_prog_compiler_pic_CXX='-pic'
19424 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019425 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019426 # Digital/Compaq C++
19427 lt_prog_compiler_wl_CXX='-Wl,'
19428 # Make sure the PIC flag is empty. It appears that all Alpha
19429 # Linux and Compaq Tru64 Unix objects are PIC.
19430 lt_prog_compiler_pic_CXX=
19431 lt_prog_compiler_static_CXX='-non_shared'
19432 ;;
19433 *)
19434 ;;
19435 esac
19436 ;;
19437 psos*)
19438 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019439 solaris*)
19440 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019441 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019442 # Sun C++ 4.2, 5.x and Centerline C++
19443 lt_prog_compiler_pic_CXX='-KPIC'
19444 lt_prog_compiler_static_CXX='-Bstatic'
19445 lt_prog_compiler_wl_CXX='-Qoption ld '
19446 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019447 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019448 # Green Hills C++ Compiler
19449 lt_prog_compiler_pic_CXX='-PIC'
19450 ;;
19451 *)
19452 ;;
19453 esac
19454 ;;
19455 sunos4*)
19456 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019457 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019458 # Sun C++ 4.x
19459 lt_prog_compiler_pic_CXX='-pic'
19460 lt_prog_compiler_static_CXX='-Bstatic'
19461 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019462 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019463 # Lucid
19464 lt_prog_compiler_pic_CXX='-pic'
19465 ;;
19466 *)
19467 ;;
19468 esac
19469 ;;
19470 tandem*)
19471 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019472 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019473 # NonStop-UX NCC 3.20
19474 lt_prog_compiler_pic_CXX='-KPIC'
19475 ;;
19476 *)
19477 ;;
19478 esac
19479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019480 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19481 case $cc_basename in
19482 CC*)
19483 lt_prog_compiler_wl_CXX='-Wl,'
19484 lt_prog_compiler_pic_CXX='-KPIC'
19485 lt_prog_compiler_static_CXX='-Bstatic'
19486 ;;
19487 esac
John Criswell47fdd832003-07-14 16:52:07 +000019488 ;;
19489 vxworks*)
19490 ;;
19491 *)
19492 lt_prog_compiler_can_build_shared_CXX=no
19493 ;;
19494 esac
19495 fi
19496
Reid Spencera773bd52006-08-04 18:18:08 +000019497{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19498echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019499
19500#
19501# Check to make sure the PIC flag actually works.
19502#
19503if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019504
Reid Spencera773bd52006-08-04 18:18:08 +000019505{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19506echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019507if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510 lt_prog_compiler_pic_works_CXX=no
19511 ac_outfile=conftest.$ac_objext
19512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19513 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19514 # Insert the option either (1) after the last *FLAGS variable, or
19515 # (2) before a word containing "conftest.", or (3) at the end.
19516 # Note that $ac_compile itself does not contain backslashes and begins
19517 # with a dollar sign (not a hyphen), so the echo should work correctly.
19518 # The option is referenced via a variable to avoid confusing sed.
19519 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19522 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000019523 (eval echo "\"\$as_me:19523: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019524 (eval "$lt_compile" 2>conftest.err)
19525 ac_status=$?
19526 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000019527 echo "$as_me:19527: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019528 if (exit $ac_status) && test -s "$ac_outfile"; then
19529 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019530 # So say no if there are warnings other than the usual output.
19531 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019534 lt_prog_compiler_pic_works_CXX=yes
19535 fi
19536 fi
19537 $rm conftest*
19538
19539fi
Reid Spencera773bd52006-08-04 18:18:08 +000019540{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19541echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019542
19543if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19544 case $lt_prog_compiler_pic_CXX in
19545 "" | " "*) ;;
19546 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19547 esac
19548else
19549 lt_prog_compiler_pic_CXX=
19550 lt_prog_compiler_can_build_shared_CXX=no
19551fi
19552
19553fi
Reid Spencera773bd52006-08-04 18:18:08 +000019554case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019555 # For platforms which do not support PIC, -DPIC is meaningless:
19556 *djgpp*)
19557 lt_prog_compiler_pic_CXX=
19558 ;;
19559 *)
19560 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19561 ;;
19562esac
19563
Reid Spencera773bd52006-08-04 18:18:08 +000019564#
19565# Check to make sure the static flag actually works.
19566#
19567wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19568{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19569echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19570if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573 lt_prog_compiler_static_works_CXX=no
19574 save_LDFLAGS="$LDFLAGS"
19575 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19576 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19577 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19578 # The linker can only warn and ignore the option if not recognized
19579 # So say no if there are warnings
19580 if test -s conftest.err; then
19581 # Append any errors to the config.log.
19582 cat conftest.err 1>&5
19583 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19585 if diff conftest.exp conftest.er2 >/dev/null; then
19586 lt_prog_compiler_static_works_CXX=yes
19587 fi
19588 else
19589 lt_prog_compiler_static_works_CXX=yes
19590 fi
19591 fi
19592 $rm conftest*
19593 LDFLAGS="$save_LDFLAGS"
19594
19595fi
19596{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19597echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19598
19599if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19600 :
19601else
19602 lt_prog_compiler_static_CXX=
19603fi
19604
19605
19606{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19607echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019608if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610else
19611 lt_cv_prog_compiler_c_o_CXX=no
19612 $rm -r conftest 2>/dev/null
19613 mkdir conftest
19614 cd conftest
19615 mkdir out
19616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19617
John Criswell47fdd832003-07-14 16:52:07 +000019618 lt_compiler_flag="-o out/conftest2.$ac_objext"
19619 # Insert the option either (1) after the last *FLAGS variable, or
19620 # (2) before a word containing "conftest.", or (3) at the end.
19621 # Note that $ac_compile itself does not contain backslashes and begins
19622 # with a dollar sign (not a hyphen), so the echo should work correctly.
19623 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19626 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000019627 (eval echo "\"\$as_me:19627: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019628 (eval "$lt_compile" 2>out/conftest.err)
19629 ac_status=$?
19630 cat out/conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000019631 echo "$as_me:19631: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19633 then
19634 # The compiler can only warn and ignore the option if not recognized
19635 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019636 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019639 lt_cv_prog_compiler_c_o_CXX=yes
19640 fi
19641 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019642 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019643 $rm conftest*
19644 # SGI C++ compiler will create directory out/ii_files/ for
19645 # template instantiation
19646 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19647 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019648 cd ..
19649 rmdir conftest
19650 $rm conftest*
19651
19652fi
Reid Spencera773bd52006-08-04 18:18:08 +000019653{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19654echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019655
19656
19657hard_links="nottested"
19658if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19659 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019660 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19661echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019662 hard_links=yes
19663 $rm conftest*
19664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19665 touch conftest.a
19666 ln conftest.a conftest.b 2>&5 || hard_links=no
19667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019668 { echo "$as_me:$LINENO: result: $hard_links" >&5
19669echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019670 if test "$hard_links" = no; then
19671 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19672echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19673 need_locks=warn
19674 fi
19675else
19676 need_locks=no
19677fi
19678
Reid Spencera773bd52006-08-04 18:18:08 +000019679{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19680echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019681
19682 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19683 case $host_os in
19684 aix4* | aix5*)
19685 # If we're using GNU nm, then we don't want the "-C" option.
19686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19687 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19688 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'
19689 else
19690 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'
19691 fi
19692 ;;
19693 pw32*)
19694 export_symbols_cmds_CXX="$ltdll_cmds"
19695 ;;
19696 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019697 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 +000019698 ;;
19699 *)
19700 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19701 ;;
19702 esac
19703
Reid Spencera773bd52006-08-04 18:18:08 +000019704{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19705echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019706test "$ld_shlibs_CXX" = no && can_build_shared=no
19707
John Criswell47fdd832003-07-14 16:52:07 +000019708#
19709# Do we need to explicitly link libc?
19710#
19711case "x$archive_cmds_need_lc_CXX" in
19712x|xyes)
19713 # Assume -lc should be added
19714 archive_cmds_need_lc_CXX=yes
19715
19716 if test "$enable_shared" = yes && test "$GCC" = yes; then
19717 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019718 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019719 # FIXME: we may have to deal with multi-command sequences.
19720 ;;
19721 '$CC '*)
19722 # Test whether the compiler implicitly links with -lc since on some
19723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19724 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019725 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19726echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019727 $rm conftest*
19728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19729
19730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19731 (eval $ac_compile) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } 2>conftest.err; then
19735 soname=conftest
19736 lib=conftest
19737 libobjs=conftest.$ac_objext
19738 deplibs=
19739 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019740 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019741 compiler_flags=-v
19742 linker_flags=-v
19743 verstring=
19744 output_objdir=.
19745 libname=conftest
19746 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19747 allow_undefined_flag_CXX=
19748 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19749 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }
19753 then
19754 archive_cmds_need_lc_CXX=no
19755 else
19756 archive_cmds_need_lc_CXX=yes
19757 fi
19758 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19759 else
19760 cat conftest.err 1>&5
19761 fi
19762 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019763 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19764echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019765 ;;
19766 esac
19767 fi
19768 ;;
19769esac
19770
Reid Spencera773bd52006-08-04 18:18:08 +000019771{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19772echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019773library_names_spec=
19774libname_spec='lib$name'
19775soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019776shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019777postinstall_cmds=
19778postuninstall_cmds=
19779finish_cmds=
19780finish_eval=
19781shlibpath_var=
19782shlibpath_overrides_runpath=unknown
19783version_type=none
19784dynamic_linker="$host_os ld.so"
19785sys_lib_dlsearch_path_spec="/lib /usr/lib"
19786if test "$GCC" = yes; then
19787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19789 # if the path contains ";" then we assume it to be the separator
19790 # otherwise default to the standard path separator (i.e. ":") - it is
19791 # assumed that no part of a normal pathname contains ";" but that should
19792 # okay in the real world where ";" in dirpaths is itself problematic.
19793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19794 else
19795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19796 fi
19797else
19798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19799fi
19800need_lib_prefix=unknown
19801hardcode_into_libs=no
19802
19803# when you set need_version to no, make sure it does not cause -set_version
19804# flags to be left without arguments
19805need_version=unknown
19806
19807case $host_os in
19808aix3*)
19809 version_type=linux
19810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19811 shlibpath_var=LIBPATH
19812
19813 # AIX 3 has no versioning support, so we append a major version to the name.
19814 soname_spec='${libname}${release}${shared_ext}$major'
19815 ;;
19816
19817aix4* | aix5*)
19818 version_type=linux
19819 need_lib_prefix=no
19820 need_version=no
19821 hardcode_into_libs=yes
19822 if test "$host_cpu" = ia64; then
19823 # AIX 5 supports IA64
19824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19825 shlibpath_var=LD_LIBRARY_PATH
19826 else
19827 # With GCC up to 2.95.x, collect2 would create an import file
19828 # for dependence libraries. The import file would start with
19829 # the line `#! .'. This would cause the generated library to
19830 # depend on `.', always an invalid library. This was fixed in
19831 # development snapshots of GCC prior to 3.0.
19832 case $host_os in
19833 aix4 | aix4.[01] | aix4.[01].*)
19834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19835 echo ' yes '
19836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19837 :
19838 else
19839 can_build_shared=no
19840 fi
19841 ;;
19842 esac
19843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19844 # soname into executable. Probably we can add versioning support to
19845 # collect2, so additional links can be useful in future.
19846 if test "$aix_use_runtimelinking" = yes; then
19847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19848 # instead of lib<name>.a to let people know that these are not
19849 # typical AIX shared libraries.
19850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851 else
19852 # We preserve .a as extension for shared libraries through AIX4.2
19853 # and later when we are not doing run time linking.
19854 library_names_spec='${libname}${release}.a $libname.a'
19855 soname_spec='${libname}${release}${shared_ext}$major'
19856 fi
19857 shlibpath_var=LIBPATH
19858 fi
19859 ;;
19860
19861amigaos*)
19862 library_names_spec='$libname.ixlibrary $libname.a'
19863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019864 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 +000019865 ;;
19866
19867beos*)
19868 library_names_spec='${libname}${shared_ext}'
19869 dynamic_linker="$host_os ld.so"
19870 shlibpath_var=LIBRARY_PATH
19871 ;;
19872
Reid Spencer2706f8c2004-09-19 23:53:36 +000019873bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019874 version_type=linux
19875 need_version=no
19876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19877 soname_spec='${libname}${release}${shared_ext}$major'
19878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19879 shlibpath_var=LD_LIBRARY_PATH
19880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19882 # the default ld.so.conf also contains /usr/contrib/lib and
19883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19884 # libtool to hard-code these into programs
19885 ;;
19886
19887cygwin* | mingw* | pw32*)
19888 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019889 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019890 need_version=no
19891 need_lib_prefix=no
19892
19893 case $GCC,$host_os in
19894 yes,cygwin* | yes,mingw* | yes,pw32*)
19895 library_names_spec='$libname.dll.a'
19896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019897 postinstall_cmds='base_file=`basename \${file}`~
19898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19899 dldir=$destdir/`dirname \$dlpath`~
19900 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019901 $install_prog $dir/$dlname \$dldir/$dlname~
19902 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19904 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019905 $rm \$dlpath'
19906 shlibpath_overrides_runpath=yes
19907
19908 case $host_os in
19909 cygwin*)
19910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19911 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 +000019912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019913 ;;
19914 mingw*)
19915 # MinGW DLLs use traditional 'lib' prefix
19916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19919 # It is most probably a Windows format PATH printed by
19920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19921 # path with ; separators, and with drive letters. We can handle the
19922 # drive letters (cygwin fileutils understands them), so leave them,
19923 # especially as we might pass files found there to a mingw objdump,
19924 # which wouldn't understand a cygwinified path. Ahh.
19925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19926 else
19927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19928 fi
19929 ;;
19930 pw32*)
19931 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019932 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 +000019933 ;;
19934 esac
19935 ;;
19936
19937 *)
19938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19939 ;;
19940 esac
19941 dynamic_linker='Win32 ld.exe'
19942 # FIXME: first we should search . and the directory the executable is in
19943 shlibpath_var=PATH
19944 ;;
19945
19946darwin* | rhapsody*)
19947 dynamic_linker="$host_os dyld"
19948 version_type=darwin
19949 need_lib_prefix=no
19950 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019952 soname_spec='${libname}${release}${major}$shared_ext'
19953 shlibpath_overrides_runpath=yes
19954 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000019955 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000019956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019957 if test "$GCC" = yes; then
19958 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"`
19959 else
19960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019961 fi
19962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19963 ;;
19964
19965dgux*)
19966 version_type=linux
19967 need_lib_prefix=no
19968 need_version=no
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19970 soname_spec='${libname}${release}${shared_ext}$major'
19971 shlibpath_var=LD_LIBRARY_PATH
19972 ;;
19973
19974freebsd1*)
19975 dynamic_linker=no
19976 ;;
19977
Reid Spencer2706f8c2004-09-19 23:53:36 +000019978kfreebsd*-gnu)
19979 version_type=linux
19980 need_lib_prefix=no
19981 need_version=no
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19983 soname_spec='${libname}${release}${shared_ext}$major'
19984 shlibpath_var=LD_LIBRARY_PATH
19985 shlibpath_overrides_runpath=no
19986 hardcode_into_libs=yes
19987 dynamic_linker='GNU ld.so'
19988 ;;
19989
Reid Spencera773bd52006-08-04 18:18:08 +000019990freebsd* | dragonfly*)
19991 # DragonFly does not have aout. When/if they implement a new
19992 # versioning mechanism, adjust this.
19993 if test -x /usr/bin/objformat; then
19994 objformat=`/usr/bin/objformat`
19995 else
19996 case $host_os in
19997 freebsd[123]*) objformat=aout ;;
19998 *) objformat=elf ;;
19999 esac
20000 fi
John Criswell47fdd832003-07-14 16:52:07 +000020001 version_type=freebsd-$objformat
20002 case $version_type in
20003 freebsd-elf*)
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20005 need_version=no
20006 need_lib_prefix=no
20007 ;;
20008 freebsd-*)
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20010 need_version=yes
20011 ;;
20012 esac
20013 shlibpath_var=LD_LIBRARY_PATH
20014 case $host_os in
20015 freebsd2*)
20016 shlibpath_overrides_runpath=yes
20017 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020018 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020019 shlibpath_overrides_runpath=yes
20020 hardcode_into_libs=yes
20021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020024 shlibpath_overrides_runpath=no
20025 hardcode_into_libs=yes
20026 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020027 freebsd*) # from 4.6 on
20028 shlibpath_overrides_runpath=yes
20029 hardcode_into_libs=yes
20030 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020031 esac
20032 ;;
20033
20034gnu*)
20035 version_type=linux
20036 need_lib_prefix=no
20037 need_version=no
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20039 soname_spec='${libname}${release}${shared_ext}$major'
20040 shlibpath_var=LD_LIBRARY_PATH
20041 hardcode_into_libs=yes
20042 ;;
20043
20044hpux9* | hpux10* | hpux11*)
20045 # Give a soname corresponding to the major version so that dld.sl refuses to
20046 # link against other versions.
20047 version_type=sunos
20048 need_lib_prefix=no
20049 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020050 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020051 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020052 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020053 hardcode_into_libs=yes
20054 dynamic_linker="$host_os dld.so"
20055 shlibpath_var=LD_LIBRARY_PATH
20056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20058 soname_spec='${libname}${release}${shared_ext}$major'
20059 if test "X$HPUX_IA64_MODE" = X32; then
20060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20061 else
20062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20063 fi
20064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20065 ;;
20066 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020067 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020068 hardcode_into_libs=yes
20069 dynamic_linker="$host_os dld.sl"
20070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20073 soname_spec='${libname}${release}${shared_ext}$major'
20074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20076 ;;
20077 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020078 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020079 dynamic_linker="$host_os dld.sl"
20080 shlibpath_var=SHLIB_PATH
20081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083 soname_spec='${libname}${release}${shared_ext}$major'
20084 ;;
20085 esac
20086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20087 postinstall_cmds='chmod 555 $lib'
20088 ;;
20089
Reid Spencera773bd52006-08-04 18:18:08 +000020090interix3*)
20091 version_type=linux
20092 need_lib_prefix=no
20093 need_version=no
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20095 soname_spec='${libname}${release}${shared_ext}$major'
20096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20097 shlibpath_var=LD_LIBRARY_PATH
20098 shlibpath_overrides_runpath=no
20099 hardcode_into_libs=yes
20100 ;;
20101
John Criswell47fdd832003-07-14 16:52:07 +000020102irix5* | irix6* | nonstopux*)
20103 case $host_os in
20104 nonstopux*) version_type=nonstopux ;;
20105 *)
20106 if test "$lt_cv_prog_gnu_ld" = yes; then
20107 version_type=linux
20108 else
20109 version_type=irix
20110 fi ;;
20111 esac
20112 need_lib_prefix=no
20113 need_version=no
20114 soname_spec='${libname}${release}${shared_ext}$major'
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20116 case $host_os in
20117 irix5* | nonstopux*)
20118 libsuff= shlibsuff=
20119 ;;
20120 *)
20121 case $LD in # libtool.m4 will add one of these switches to LD
20122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20123 libsuff= shlibsuff= libmagic=32-bit;;
20124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20125 libsuff=32 shlibsuff=N32 libmagic=N32;;
20126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20128 *) libsuff= shlibsuff= libmagic=never-match;;
20129 esac
20130 ;;
20131 esac
20132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20133 shlibpath_overrides_runpath=no
20134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20136 hardcode_into_libs=yes
20137 ;;
20138
20139# No shared lib support for Linux oldld, aout, or coff.
20140linux*oldld* | linux*aout* | linux*coff*)
20141 dynamic_linker=no
20142 ;;
20143
20144# This must be Linux ELF.
20145linux*)
20146 version_type=linux
20147 need_lib_prefix=no
20148 need_version=no
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20152 shlibpath_var=LD_LIBRARY_PATH
20153 shlibpath_overrides_runpath=no
20154 # This implies no fast_install, which is unacceptable.
20155 # Some rework will be needed to allow for fast_install
20156 # before this can be enabled.
20157 hardcode_into_libs=yes
20158
Reid Spencer2706f8c2004-09-19 23:53:36 +000020159 # Append ld.so.conf contents to the search path
20160 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020161 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 +000020162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20163 fi
20164
John Criswell47fdd832003-07-14 16:52:07 +000020165 # We used to test for /lib/ld.so.1 and disable shared libraries on
20166 # powerpc, because MkLinux only supported shared libraries with the
20167 # GNU dynamic linker. Since this was broken with cross compilers,
20168 # most powerpc-linux boxes support dynamic linking these days and
20169 # people can always --disable-shared, the test was removed, and we
20170 # assume the GNU/Linux dynamic linker is in use.
20171 dynamic_linker='GNU/Linux ld.so'
20172 ;;
20173
Reid Spencer2706f8c2004-09-19 23:53:36 +000020174knetbsd*-gnu)
20175 version_type=linux
20176 need_lib_prefix=no
20177 need_version=no
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath=no
20182 hardcode_into_libs=yes
20183 dynamic_linker='GNU ld.so'
20184 ;;
20185
John Criswell47fdd832003-07-14 16:52:07 +000020186netbsd*)
20187 version_type=sunos
20188 need_lib_prefix=no
20189 need_version=no
20190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20193 dynamic_linker='NetBSD (a.out) ld.so'
20194 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020196 soname_spec='${libname}${release}${shared_ext}$major'
20197 dynamic_linker='NetBSD ld.elf_so'
20198 fi
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=yes
20201 hardcode_into_libs=yes
20202 ;;
20203
20204newsos6)
20205 version_type=linux
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 shlibpath_var=LD_LIBRARY_PATH
20208 shlibpath_overrides_runpath=yes
20209 ;;
20210
Reid Spencer2706f8c2004-09-19 23:53:36 +000020211nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020212 version_type=linux
20213 need_lib_prefix=no
20214 need_version=no
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 shlibpath_overrides_runpath=yes
20219 ;;
20220
20221openbsd*)
20222 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020223 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020224 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20226 case $host_os in
20227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20228 *) need_version=no ;;
20229 esac
John Criswell47fdd832003-07-14 16:52:07 +000020230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20232 shlibpath_var=LD_LIBRARY_PATH
20233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20234 case $host_os in
20235 openbsd2.[89] | openbsd2.[89].*)
20236 shlibpath_overrides_runpath=no
20237 ;;
20238 *)
20239 shlibpath_overrides_runpath=yes
20240 ;;
20241 esac
20242 else
20243 shlibpath_overrides_runpath=yes
20244 fi
20245 ;;
20246
20247os2*)
20248 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020249 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020250 need_lib_prefix=no
20251 library_names_spec='$libname${shared_ext} $libname.a'
20252 dynamic_linker='OS/2 ld.exe'
20253 shlibpath_var=LIBPATH
20254 ;;
20255
20256osf3* | osf4* | osf5*)
20257 version_type=osf
20258 need_lib_prefix=no
20259 need_version=no
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 shlibpath_var=LD_LIBRARY_PATH
20263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20265 ;;
20266
John Criswell47fdd832003-07-14 16:52:07 +000020267solaris*)
20268 version_type=linux
20269 need_lib_prefix=no
20270 need_version=no
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20272 soname_spec='${libname}${release}${shared_ext}$major'
20273 shlibpath_var=LD_LIBRARY_PATH
20274 shlibpath_overrides_runpath=yes
20275 hardcode_into_libs=yes
20276 # ldd complains unless libraries are executable
20277 postinstall_cmds='chmod +x $lib'
20278 ;;
20279
20280sunos4*)
20281 version_type=sunos
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 shlibpath_overrides_runpath=yes
20286 if test "$with_gnu_ld" = yes; then
20287 need_lib_prefix=no
20288 fi
20289 need_version=yes
20290 ;;
20291
Reid Spencera773bd52006-08-04 18:18:08 +000020292sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020293 version_type=linux
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20295 soname_spec='${libname}${release}${shared_ext}$major'
20296 shlibpath_var=LD_LIBRARY_PATH
20297 case $host_vendor in
20298 sni)
20299 shlibpath_overrides_runpath=no
20300 need_lib_prefix=no
20301 export_dynamic_flag_spec='${wl}-Blargedynsym'
20302 runpath_var=LD_RUN_PATH
20303 ;;
20304 siemens)
20305 need_lib_prefix=no
20306 ;;
20307 motorola)
20308 need_lib_prefix=no
20309 need_version=no
20310 shlibpath_overrides_runpath=no
20311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20312 ;;
20313 esac
20314 ;;
20315
20316sysv4*MP*)
20317 if test -d /usr/nec ;then
20318 version_type=linux
20319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20320 soname_spec='$libname${shared_ext}.$major'
20321 shlibpath_var=LD_LIBRARY_PATH
20322 fi
20323 ;;
20324
Reid Spencera773bd52006-08-04 18:18:08 +000020325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20326 version_type=freebsd-elf
20327 need_lib_prefix=no
20328 need_version=no
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20330 soname_spec='${libname}${release}${shared_ext}$major'
20331 shlibpath_var=LD_LIBRARY_PATH
20332 hardcode_into_libs=yes
20333 if test "$with_gnu_ld" = yes; then
20334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20335 shlibpath_overrides_runpath=no
20336 else
20337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20338 shlibpath_overrides_runpath=yes
20339 case $host_os in
20340 sco3.2v5*)
20341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20342 ;;
20343 esac
20344 fi
20345 sys_lib_dlsearch_path_spec='/usr/lib'
20346 ;;
20347
John Criswell47fdd832003-07-14 16:52:07 +000020348uts4*)
20349 version_type=linux
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20351 soname_spec='${libname}${release}${shared_ext}$major'
20352 shlibpath_var=LD_LIBRARY_PATH
20353 ;;
20354
20355*)
20356 dynamic_linker=no
20357 ;;
20358esac
Reid Spencera773bd52006-08-04 18:18:08 +000020359{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20360echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020361test "$dynamic_linker" = no && can_build_shared=no
20362
Reid Spencera773bd52006-08-04 18:18:08 +000020363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20364if test "$GCC" = yes; then
20365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20366fi
20367
20368{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20369echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020370hardcode_action_CXX=
20371if test -n "$hardcode_libdir_flag_spec_CXX" || \
20372 test -n "$runpath_var_CXX" || \
20373 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20374
20375 # We can hardcode non-existant directories.
20376 if test "$hardcode_direct_CXX" != no &&
20377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20378 # have to relink, otherwise we might link with an installed library
20379 # when we should be linking with a yet-to-be-installed one
20380 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20381 test "$hardcode_minus_L_CXX" != no; then
20382 # Linking always hardcodes the temporary library directory.
20383 hardcode_action_CXX=relink
20384 else
20385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20386 hardcode_action_CXX=immediate
20387 fi
20388else
20389 # We cannot hardcode anything, or else we can only hardcode existing
20390 # directories.
20391 hardcode_action_CXX=unsupported
20392fi
Reid Spencera773bd52006-08-04 18:18:08 +000020393{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20394echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020395
20396if test "$hardcode_action_CXX" = relink; then
20397 # Fast installation is not supported
20398 enable_fast_install=no
20399elif test "$shlibpath_overrides_runpath" = yes ||
20400 test "$enable_shared" = no; then
20401 # Fast installation is not necessary
20402 enable_fast_install=needless
20403fi
20404
John Criswell47fdd832003-07-14 16:52:07 +000020405
20406# The else clause should only fire when bootstrapping the
20407# libtool distribution, otherwise you forgot to ship ltmain.sh
20408# with your package, and you will get complaints that there are
20409# no rules to generate ltmain.sh.
20410if test -f "$ltmain"; then
20411 # See if we are running on zsh, and set the options which allow our commands through
20412 # without removal of \ escapes.
20413 if test -n "${ZSH_VERSION+set}" ; then
20414 setopt NO_GLOB_SUBST
20415 fi
20416 # Now quote all the things that may contain metacharacters while being
20417 # careful not to overquote the AC_SUBSTed values. We take copies of the
20418 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020419 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 +000020420 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020421 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20422 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20423 deplibs_check_method reload_flag reload_cmds need_locks \
20424 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20425 lt_cv_sys_global_symbol_to_c_name_address \
20426 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20427 old_postinstall_cmds old_postuninstall_cmds \
20428 compiler_CXX \
20429 CC_CXX \
20430 LD_CXX \
20431 lt_prog_compiler_wl_CXX \
20432 lt_prog_compiler_pic_CXX \
20433 lt_prog_compiler_static_CXX \
20434 lt_prog_compiler_no_builtin_flag_CXX \
20435 export_dynamic_flag_spec_CXX \
20436 thread_safe_flag_spec_CXX \
20437 whole_archive_flag_spec_CXX \
20438 enable_shared_with_static_runtimes_CXX \
20439 old_archive_cmds_CXX \
20440 old_archive_from_new_cmds_CXX \
20441 predep_objects_CXX \
20442 postdep_objects_CXX \
20443 predeps_CXX \
20444 postdeps_CXX \
20445 compiler_lib_search_path_CXX \
20446 archive_cmds_CXX \
20447 archive_expsym_cmds_CXX \
20448 postinstall_cmds_CXX \
20449 postuninstall_cmds_CXX \
20450 old_archive_from_expsyms_cmds_CXX \
20451 allow_undefined_flag_CXX \
20452 no_undefined_flag_CXX \
20453 export_symbols_cmds_CXX \
20454 hardcode_libdir_flag_spec_CXX \
20455 hardcode_libdir_flag_spec_ld_CXX \
20456 hardcode_libdir_separator_CXX \
20457 hardcode_automatic_CXX \
20458 module_cmds_CXX \
20459 module_expsym_cmds_CXX \
20460 lt_cv_prog_compiler_c_o_CXX \
20461 exclude_expsyms_CXX \
20462 include_expsyms_CXX; do
20463
20464 case $var in
20465 old_archive_cmds_CXX | \
20466 old_archive_from_new_cmds_CXX | \
20467 archive_cmds_CXX | \
20468 archive_expsym_cmds_CXX | \
20469 module_cmds_CXX | \
20470 module_expsym_cmds_CXX | \
20471 old_archive_from_expsyms_cmds_CXX | \
20472 export_symbols_cmds_CXX | \
20473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20474 postinstall_cmds | postuninstall_cmds | \
20475 old_postinstall_cmds | old_postuninstall_cmds | \
20476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20477 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020478 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 +000020479 ;;
20480 *)
20481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20482 ;;
20483 esac
20484 done
20485
20486 case $lt_echo in
20487 *'\$0 --fallback-echo"')
20488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20489 ;;
20490 esac
20491
20492cfgfile="$ofile"
20493
20494 cat <<__EOF__ >> "$cfgfile"
20495# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20496
20497# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20498
20499# Shell to use when invoking shell scripts.
20500SHELL=$lt_SHELL
20501
20502# Whether or not to build shared libraries.
20503build_libtool_libs=$enable_shared
20504
20505# Whether or not to build static libraries.
20506build_old_libs=$enable_static
20507
20508# Whether or not to add -lc for building shared libraries.
20509build_libtool_need_lc=$archive_cmds_need_lc_CXX
20510
20511# Whether or not to disallow shared libs when runtime libs are static
20512allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20513
20514# Whether or not to optimize for fast installation.
20515fast_install=$enable_fast_install
20516
20517# The host system.
20518host_alias=$host_alias
20519host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020520host_os=$host_os
20521
20522# The build system.
20523build_alias=$build_alias
20524build=$build
20525build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020526
20527# An echo program that does not interpret backslashes.
20528echo=$lt_echo
20529
20530# The archiver.
20531AR=$lt_AR
20532AR_FLAGS=$lt_AR_FLAGS
20533
20534# A C compiler.
20535LTCC=$lt_LTCC
20536
Reid Spencera773bd52006-08-04 18:18:08 +000020537# LTCC compiler flags.
20538LTCFLAGS=$lt_LTCFLAGS
20539
John Criswell47fdd832003-07-14 16:52:07 +000020540# A language-specific compiler.
20541CC=$lt_compiler_CXX
20542
20543# Is the compiler the GNU C compiler?
20544with_gcc=$GCC_CXX
20545
20546# An ERE matcher.
20547EGREP=$lt_EGREP
20548
20549# The linker used to build libraries.
20550LD=$lt_LD_CXX
20551
20552# Whether we need hard or soft links.
20553LN_S=$lt_LN_S
20554
20555# A BSD-compatible nm program.
20556NM=$lt_NM
20557
20558# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020559STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020560
20561# Used to examine libraries when file_magic_cmd begins "file"
20562MAGIC_CMD=$MAGIC_CMD
20563
20564# Used on cygwin: DLL creation program.
20565DLLTOOL="$DLLTOOL"
20566
20567# Used on cygwin: object dumper.
20568OBJDUMP="$OBJDUMP"
20569
20570# Used on cygwin: assembler.
20571AS="$AS"
20572
20573# The name of the directory that contains temporary libtool files.
20574objdir=$objdir
20575
20576# How to create reloadable object files.
20577reload_flag=$lt_reload_flag
20578reload_cmds=$lt_reload_cmds
20579
20580# How to pass a linker flag through the compiler.
20581wl=$lt_lt_prog_compiler_wl_CXX
20582
20583# Object file suffix (normally "o").
20584objext="$ac_objext"
20585
20586# Old archive suffix (normally "a").
20587libext="$libext"
20588
20589# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020590shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020591
20592# Executable file suffix (normally "").
20593exeext="$exeext"
20594
20595# Additional compiler flags for building library objects.
20596pic_flag=$lt_lt_prog_compiler_pic_CXX
20597pic_mode=$pic_mode
20598
20599# What is the maximum length of a command?
20600max_cmd_len=$lt_cv_sys_max_cmd_len
20601
20602# Does compiler simultaneously support -c and -o options?
20603compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20604
Reid Spencera773bd52006-08-04 18:18:08 +000020605# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020606need_locks=$lt_need_locks
20607
20608# Do we need the lib prefix for modules?
20609need_lib_prefix=$need_lib_prefix
20610
20611# Do we need a version for libraries?
20612need_version=$need_version
20613
20614# Whether dlopen is supported.
20615dlopen_support=$enable_dlopen
20616
20617# Whether dlopen of programs is supported.
20618dlopen_self=$enable_dlopen_self
20619
20620# Whether dlopen of statically linked programs is supported.
20621dlopen_self_static=$enable_dlopen_self_static
20622
20623# Compiler flag to prevent dynamic linking.
20624link_static_flag=$lt_lt_prog_compiler_static_CXX
20625
20626# Compiler flag to turn off builtin functions.
20627no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20628
20629# Compiler flag to allow reflexive dlopens.
20630export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20631
20632# Compiler flag to generate shared objects directly from archives.
20633whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20634
20635# Compiler flag to generate thread-safe objects.
20636thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20637
20638# Library versioning type.
20639version_type=$version_type
20640
20641# Format of library name prefix.
20642libname_spec=$lt_libname_spec
20643
20644# List of archive names. First name is the real one, the rest are links.
20645# The last name is the one that the linker finds with -lNAME.
20646library_names_spec=$lt_library_names_spec
20647
20648# The coded name of the library, if different from the real name.
20649soname_spec=$lt_soname_spec
20650
20651# Commands used to build and install an old-style archive.
20652RANLIB=$lt_RANLIB
20653old_archive_cmds=$lt_old_archive_cmds_CXX
20654old_postinstall_cmds=$lt_old_postinstall_cmds
20655old_postuninstall_cmds=$lt_old_postuninstall_cmds
20656
20657# Create an old-style archive from a shared archive.
20658old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20659
20660# Create a temporary old-style archive to link instead of a shared archive.
20661old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20662
20663# Commands used to build and install a shared archive.
20664archive_cmds=$lt_archive_cmds_CXX
20665archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20666postinstall_cmds=$lt_postinstall_cmds
20667postuninstall_cmds=$lt_postuninstall_cmds
20668
20669# Commands used to build a loadable module (assumed same as above if empty)
20670module_cmds=$lt_module_cmds_CXX
20671module_expsym_cmds=$lt_module_expsym_cmds_CXX
20672
20673# Commands to strip libraries.
20674old_striplib=$lt_old_striplib
20675striplib=$lt_striplib
20676
20677# Dependencies to place before the objects being linked to create a
20678# shared library.
20679predep_objects=$lt_predep_objects_CXX
20680
20681# Dependencies to place after the objects being linked to create a
20682# shared library.
20683postdep_objects=$lt_postdep_objects_CXX
20684
20685# Dependencies to place before the objects being linked to create a
20686# shared library.
20687predeps=$lt_predeps_CXX
20688
20689# Dependencies to place after the objects being linked to create a
20690# shared library.
20691postdeps=$lt_postdeps_CXX
20692
20693# The library search path used internally by the compiler when linking
20694# a shared library.
20695compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20696
20697# Method to check whether dependent libraries are shared objects.
20698deplibs_check_method=$lt_deplibs_check_method
20699
20700# Command to use when deplibs_check_method == file_magic.
20701file_magic_cmd=$lt_file_magic_cmd
20702
20703# Flag that allows shared libraries with undefined symbols to be built.
20704allow_undefined_flag=$lt_allow_undefined_flag_CXX
20705
20706# Flag that forces no undefined symbols.
20707no_undefined_flag=$lt_no_undefined_flag_CXX
20708
20709# Commands used to finish a libtool library installation in a directory.
20710finish_cmds=$lt_finish_cmds
20711
20712# Same as above, but a single script fragment to be evaled but not shown.
20713finish_eval=$lt_finish_eval
20714
20715# Take the output of nm and produce a listing of raw symbols and C names.
20716global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20717
20718# Transform the output of nm in a proper C declaration
20719global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20720
20721# Transform the output of nm in a C name address pair
20722global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20723
20724# This is the shared library runtime path variable.
20725runpath_var=$runpath_var
20726
20727# This is the shared library path variable.
20728shlibpath_var=$shlibpath_var
20729
20730# Is shlibpath searched before the hard-coded library search path?
20731shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20732
20733# How to hardcode a shared library path into an executable.
20734hardcode_action=$hardcode_action_CXX
20735
20736# Whether we should hardcode library paths into libraries.
20737hardcode_into_libs=$hardcode_into_libs
20738
20739# Flag to hardcode \$libdir into a binary during linking.
20740# This must work even if \$libdir does not exist.
20741hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20742
20743# If ld is used when linking, flag to hardcode \$libdir into
20744# a binary during linking. This must work even if \$libdir does
20745# not exist.
20746hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20747
20748# Whether we need a single -rpath flag with a separated argument.
20749hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20750
20751# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20752# resulting binary.
20753hardcode_direct=$hardcode_direct_CXX
20754
20755# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20756# resulting binary.
20757hardcode_minus_L=$hardcode_minus_L_CXX
20758
20759# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20760# the resulting binary.
20761hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20762
20763# Set to yes if building a shared library automatically hardcodes DIR into the library
20764# and all subsequent libraries and executables linked against it.
20765hardcode_automatic=$hardcode_automatic_CXX
20766
20767# Variables whose values should be saved in libtool wrapper scripts and
20768# restored at relink time.
20769variables_saved_for_relink="$variables_saved_for_relink"
20770
20771# Whether libtool must link a program against all its dependency libraries.
20772link_all_deplibs=$link_all_deplibs_CXX
20773
20774# Compile-time system search path for libraries
20775sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20776
20777# Run-time system search path for libraries
20778sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20779
20780# Fix the shell variable \$srcfile for the compiler.
20781fix_srcfile_path="$fix_srcfile_path_CXX"
20782
20783# Set to yes if exported symbols are required.
20784always_export_symbols=$always_export_symbols_CXX
20785
20786# The commands to list exported symbols.
20787export_symbols_cmds=$lt_export_symbols_cmds_CXX
20788
20789# The commands to extract the exported symbol list from a shared archive.
20790extract_expsyms_cmds=$lt_extract_expsyms_cmds
20791
20792# Symbols that should not be listed in the preloaded symbols.
20793exclude_expsyms=$lt_exclude_expsyms_CXX
20794
20795# Symbols that must always be exported.
20796include_expsyms=$lt_include_expsyms_CXX
20797
20798# ### END LIBTOOL TAG CONFIG: $tagname
20799
20800__EOF__
20801
20802
20803else
20804 # If there is no Makefile yet, we rely on a make rule to execute
20805 # `config.status --recheck' to rerun these tests and create the
20806 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020807 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20808 if test -f "$ltmain_in"; then
20809 test -f Makefile && make "$ltmain"
20810 fi
John Criswell47fdd832003-07-14 16:52:07 +000020811fi
20812
20813
20814ac_ext=c
20815ac_cpp='$CPP $CPPFLAGS'
20816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20818ac_compiler_gnu=$ac_cv_c_compiler_gnu
20819
20820CC=$lt_save_CC
20821LDCXX=$LD
20822LD=$lt_save_LD
20823GCC=$lt_save_GCC
20824with_gnu_ldcxx=$with_gnu_ld
20825with_gnu_ld=$lt_save_with_gnu_ld
20826lt_cv_path_LDCXX=$lt_cv_path_LD
20827lt_cv_path_LD=$lt_save_path_LD
20828lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20829lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20830
20831 else
20832 tagname=""
20833 fi
20834 ;;
20835
20836 F77)
20837 if test -n "$F77" && test "X$F77" != "Xno"; then
20838
20839ac_ext=f
20840ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20841ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20843
20844
20845archive_cmds_need_lc_F77=no
20846allow_undefined_flag_F77=
20847always_export_symbols_F77=no
20848archive_expsym_cmds_F77=
20849export_dynamic_flag_spec_F77=
20850hardcode_direct_F77=no
20851hardcode_libdir_flag_spec_F77=
20852hardcode_libdir_flag_spec_ld_F77=
20853hardcode_libdir_separator_F77=
20854hardcode_minus_L_F77=no
20855hardcode_automatic_F77=no
20856module_cmds_F77=
20857module_expsym_cmds_F77=
20858link_all_deplibs_F77=unknown
20859old_archive_cmds_F77=$old_archive_cmds
20860no_undefined_flag_F77=
20861whole_archive_flag_spec_F77=
20862enable_shared_with_static_runtimes_F77=no
20863
20864# Source file extension for f77 test sources.
20865ac_ext=f
20866
20867# Object file extension for compiled f77 test sources.
20868objext=o
20869objext_F77=$objext
20870
20871# Code to be used in simple compile tests
20872lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20873
20874# Code to be used in simple link tests
20875lt_simple_link_test_code=" program t\n end\n"
20876
20877# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20878
20879# If no C compiler was specified, use CC.
20880LTCC=${LTCC-"$CC"}
20881
Reid Spencera773bd52006-08-04 18:18:08 +000020882# If no C compiler flags were specified, use CFLAGS.
20883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20884
John Criswell47fdd832003-07-14 16:52:07 +000020885# Allow CC to be a program name with arguments.
20886compiler=$CC
20887
20888
Reid Spencera773bd52006-08-04 18:18:08 +000020889# save warnings/boilerplate of simple test code
20890ac_outfile=conftest.$ac_objext
20891printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20892eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20893_lt_compiler_boilerplate=`cat conftest.err`
20894$rm conftest*
20895
20896ac_outfile=conftest.$ac_objext
20897printf "$lt_simple_link_test_code" >conftest.$ac_ext
20898eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20899_lt_linker_boilerplate=`cat conftest.err`
20900$rm conftest*
20901
20902
John Criswell47fdd832003-07-14 16:52:07 +000020903# Allow CC to be a program name with arguments.
20904lt_save_CC="$CC"
20905CC=${F77-"f77"}
20906compiler=$CC
20907compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020908for cc_temp in $compiler""; do
20909 case $cc_temp in
20910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20912 \-*) ;;
20913 *) break;;
20914 esac
20915done
20916cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020917
John Criswell47fdd832003-07-14 16:52:07 +000020918
Reid Spencera773bd52006-08-04 18:18:08 +000020919{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20920echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20921{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20922echo "${ECHO_T}$can_build_shared" >&6; }
20923
20924{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20925echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020926test "$can_build_shared" = "no" && enable_shared=no
20927
20928# On AIX, shared libraries and static libraries use the same namespace, and
20929# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020930case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020931aix3*)
20932 test "$enable_shared" = yes && enable_static=no
20933 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020934 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020935 postinstall_cmds='$RANLIB $lib'
20936 fi
20937 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020938aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20940 test "$enable_shared" = yes && enable_static=no
20941 fi
John Criswell47fdd832003-07-14 16:52:07 +000020942 ;;
20943esac
Reid Spencera773bd52006-08-04 18:18:08 +000020944{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20945echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020946
Reid Spencera773bd52006-08-04 18:18:08 +000020947{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20948echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020949# Make sure either enable_shared or enable_static is yes.
20950test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020951{ echo "$as_me:$LINENO: result: $enable_static" >&5
20952echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020953
20954GCC_F77="$G77"
20955LD_F77="$LD"
20956
20957lt_prog_compiler_wl_F77=
20958lt_prog_compiler_pic_F77=
20959lt_prog_compiler_static_F77=
20960
Reid Spencera773bd52006-08-04 18:18:08 +000020961{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20962echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020963
20964 if test "$GCC" = yes; then
20965 lt_prog_compiler_wl_F77='-Wl,'
20966 lt_prog_compiler_static_F77='-static'
20967
20968 case $host_os in
20969 aix*)
20970 # All AIX code is PIC.
20971 if test "$host_cpu" = ia64; then
20972 # AIX 5 now supports IA64 processor
20973 lt_prog_compiler_static_F77='-Bstatic'
20974 fi
20975 ;;
20976
20977 amigaos*)
20978 # FIXME: we need at least 68020 code to build shared libraries, but
20979 # adding the `-m68020' flag to GCC prevents building anything better,
20980 # like `-m68040'.
20981 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20982 ;;
20983
20984 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20985 # PIC is the default for these OSes.
20986 ;;
20987
20988 mingw* | pw32* | os2*)
20989 # This hack is so that the source file can tell whether it is being
20990 # built for inclusion in a dll (and should export symbols for example).
20991 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20992 ;;
20993
20994 darwin* | rhapsody*)
20995 # PIC is the default on this platform
20996 # Common symbols not allowed in MH_DYLIB files
20997 lt_prog_compiler_pic_F77='-fno-common'
20998 ;;
20999
Reid Spencera773bd52006-08-04 18:18:08 +000021000 interix3*)
21001 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21002 # Instead, we relocate shared libraries at runtime.
21003 ;;
21004
John Criswell47fdd832003-07-14 16:52:07 +000021005 msdosdjgpp*)
21006 # Just because we use GCC doesn't mean we suddenly get shared libraries
21007 # on systems that don't support them.
21008 lt_prog_compiler_can_build_shared_F77=no
21009 enable_shared=no
21010 ;;
21011
21012 sysv4*MP*)
21013 if test -d /usr/nec; then
21014 lt_prog_compiler_pic_F77=-Kconform_pic
21015 fi
21016 ;;
21017
21018 hpux*)
21019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21020 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021021 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021022 hppa*64*|ia64*)
21023 # +Z the default
21024 ;;
21025 *)
21026 lt_prog_compiler_pic_F77='-fPIC'
21027 ;;
21028 esac
21029 ;;
21030
21031 *)
21032 lt_prog_compiler_pic_F77='-fPIC'
21033 ;;
21034 esac
21035 else
21036 # PORTME Check for flag to pass linker flags through the system compiler.
21037 case $host_os in
21038 aix*)
21039 lt_prog_compiler_wl_F77='-Wl,'
21040 if test "$host_cpu" = ia64; then
21041 # AIX 5 now supports IA64 processor
21042 lt_prog_compiler_static_F77='-Bstatic'
21043 else
21044 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21045 fi
21046 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021047 darwin*)
21048 # PIC is the default on this platform
21049 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021050 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021051 xlc*)
21052 lt_prog_compiler_pic_F77='-qnocommon'
21053 lt_prog_compiler_wl_F77='-Wl,'
21054 ;;
21055 esac
21056 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021057
21058 mingw* | pw32* | os2*)
21059 # This hack is so that the source file can tell whether it is being
21060 # built for inclusion in a dll (and should export symbols for example).
21061 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21062 ;;
21063
21064 hpux9* | hpux10* | hpux11*)
21065 lt_prog_compiler_wl_F77='-Wl,'
21066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21067 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021068 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021069 hppa*64*|ia64*)
21070 # +Z the default
21071 ;;
21072 *)
21073 lt_prog_compiler_pic_F77='+Z'
21074 ;;
21075 esac
21076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21077 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21078 ;;
21079
21080 irix5* | irix6* | nonstopux*)
21081 lt_prog_compiler_wl_F77='-Wl,'
21082 # PIC (with -KPIC) is the default.
21083 lt_prog_compiler_static_F77='-non_shared'
21084 ;;
21085
21086 newsos6)
21087 lt_prog_compiler_pic_F77='-KPIC'
21088 lt_prog_compiler_static_F77='-Bstatic'
21089 ;;
21090
21091 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021092 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021093 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021094 lt_prog_compiler_wl_F77='-Wl,'
21095 lt_prog_compiler_pic_F77='-KPIC'
21096 lt_prog_compiler_static_F77='-static'
21097 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021098 pgcc* | pgf77* | pgf90* | pgf95*)
21099 # Portland Group compilers (*not* the Pentium gcc compiler,
21100 # which looks to be a dead project)
21101 lt_prog_compiler_wl_F77='-Wl,'
21102 lt_prog_compiler_pic_F77='-fpic'
21103 lt_prog_compiler_static_F77='-Bstatic'
21104 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021105 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021106 lt_prog_compiler_wl_F77='-Wl,'
21107 # All Alpha code is PIC.
21108 lt_prog_compiler_static_F77='-non_shared'
21109 ;;
21110 esac
21111 ;;
21112
21113 osf3* | osf4* | osf5*)
21114 lt_prog_compiler_wl_F77='-Wl,'
21115 # All OSF/1 code is PIC.
21116 lt_prog_compiler_static_F77='-non_shared'
21117 ;;
21118
John Criswell47fdd832003-07-14 16:52:07 +000021119 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021120 lt_prog_compiler_pic_F77='-KPIC'
21121 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021122 case $cc_basename in
21123 f77* | f90* | f95*)
21124 lt_prog_compiler_wl_F77='-Qoption ld ';;
21125 *)
21126 lt_prog_compiler_wl_F77='-Wl,';;
21127 esac
John Criswell47fdd832003-07-14 16:52:07 +000021128 ;;
21129
21130 sunos4*)
21131 lt_prog_compiler_wl_F77='-Qoption ld '
21132 lt_prog_compiler_pic_F77='-PIC'
21133 lt_prog_compiler_static_F77='-Bstatic'
21134 ;;
21135
Reid Spencera773bd52006-08-04 18:18:08 +000021136 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021137 lt_prog_compiler_wl_F77='-Wl,'
21138 lt_prog_compiler_pic_F77='-KPIC'
21139 lt_prog_compiler_static_F77='-Bstatic'
21140 ;;
21141
21142 sysv4*MP*)
21143 if test -d /usr/nec ;then
21144 lt_prog_compiler_pic_F77='-Kconform_pic'
21145 lt_prog_compiler_static_F77='-Bstatic'
21146 fi
21147 ;;
21148
Reid Spencera773bd52006-08-04 18:18:08 +000021149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21150 lt_prog_compiler_wl_F77='-Wl,'
21151 lt_prog_compiler_pic_F77='-KPIC'
21152 lt_prog_compiler_static_F77='-Bstatic'
21153 ;;
21154
21155 unicos*)
21156 lt_prog_compiler_wl_F77='-Wl,'
21157 lt_prog_compiler_can_build_shared_F77=no
21158 ;;
21159
John Criswell47fdd832003-07-14 16:52:07 +000021160 uts4*)
21161 lt_prog_compiler_pic_F77='-pic'
21162 lt_prog_compiler_static_F77='-Bstatic'
21163 ;;
21164
21165 *)
21166 lt_prog_compiler_can_build_shared_F77=no
21167 ;;
21168 esac
21169 fi
21170
Reid Spencera773bd52006-08-04 18:18:08 +000021171{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21172echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021173
21174#
21175# Check to make sure the PIC flag actually works.
21176#
21177if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021178
Reid Spencera773bd52006-08-04 18:18:08 +000021179{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21180echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021181if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21183else
21184 lt_prog_compiler_pic_works_F77=no
21185 ac_outfile=conftest.$ac_objext
21186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21187 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21188 # Insert the option either (1) after the last *FLAGS variable, or
21189 # (2) before a word containing "conftest.", or (3) at the end.
21190 # Note that $ac_compile itself does not contain backslashes and begins
21191 # with a dollar sign (not a hyphen), so the echo should work correctly.
21192 # The option is referenced via a variable to avoid confusing sed.
21193 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21196 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000021197 (eval echo "\"\$as_me:21197: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021198 (eval "$lt_compile" 2>conftest.err)
21199 ac_status=$?
21200 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000021201 echo "$as_me:21201: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021202 if (exit $ac_status) && test -s "$ac_outfile"; then
21203 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021204 # So say no if there are warnings other than the usual output.
21205 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021208 lt_prog_compiler_pic_works_F77=yes
21209 fi
21210 fi
21211 $rm conftest*
21212
21213fi
Reid Spencera773bd52006-08-04 18:18:08 +000021214{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21215echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021216
21217if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21218 case $lt_prog_compiler_pic_F77 in
21219 "" | " "*) ;;
21220 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21221 esac
21222else
21223 lt_prog_compiler_pic_F77=
21224 lt_prog_compiler_can_build_shared_F77=no
21225fi
21226
21227fi
Reid Spencera773bd52006-08-04 18:18:08 +000021228case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021229 # For platforms which do not support PIC, -DPIC is meaningless:
21230 *djgpp*)
21231 lt_prog_compiler_pic_F77=
21232 ;;
21233 *)
21234 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21235 ;;
21236esac
21237
Reid Spencera773bd52006-08-04 18:18:08 +000021238#
21239# Check to make sure the static flag actually works.
21240#
21241wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21242{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21243echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21244if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246else
21247 lt_prog_compiler_static_works_F77=no
21248 save_LDFLAGS="$LDFLAGS"
21249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21250 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21252 # The linker can only warn and ignore the option if not recognized
21253 # So say no if there are warnings
21254 if test -s conftest.err; then
21255 # Append any errors to the config.log.
21256 cat conftest.err 1>&5
21257 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21259 if diff conftest.exp conftest.er2 >/dev/null; then
21260 lt_prog_compiler_static_works_F77=yes
21261 fi
21262 else
21263 lt_prog_compiler_static_works_F77=yes
21264 fi
21265 fi
21266 $rm conftest*
21267 LDFLAGS="$save_LDFLAGS"
21268
21269fi
21270{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21271echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21272
21273if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21274 :
21275else
21276 lt_prog_compiler_static_F77=
21277fi
21278
21279
21280{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21281echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021282if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284else
21285 lt_cv_prog_compiler_c_o_F77=no
21286 $rm -r conftest 2>/dev/null
21287 mkdir conftest
21288 cd conftest
21289 mkdir out
21290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21291
John Criswell47fdd832003-07-14 16:52:07 +000021292 lt_compiler_flag="-o out/conftest2.$ac_objext"
21293 # Insert the option either (1) after the last *FLAGS variable, or
21294 # (2) before a word containing "conftest.", or (3) at the end.
21295 # Note that $ac_compile itself does not contain backslashes and begins
21296 # with a dollar sign (not a hyphen), so the echo should work correctly.
21297 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21300 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000021301 (eval echo "\"\$as_me:21301: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021302 (eval "$lt_compile" 2>out/conftest.err)
21303 ac_status=$?
21304 cat out/conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000021305 echo "$as_me:21305: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21307 then
21308 # The compiler can only warn and ignore the option if not recognized
21309 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021310 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021313 lt_cv_prog_compiler_c_o_F77=yes
21314 fi
21315 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021316 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021317 $rm conftest*
21318 # SGI C++ compiler will create directory out/ii_files/ for
21319 # template instantiation
21320 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21321 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021322 cd ..
21323 rmdir conftest
21324 $rm conftest*
21325
21326fi
Reid Spencera773bd52006-08-04 18:18:08 +000021327{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21328echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021329
21330
21331hard_links="nottested"
21332if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21333 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021334 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21335echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021336 hard_links=yes
21337 $rm conftest*
21338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21339 touch conftest.a
21340 ln conftest.a conftest.b 2>&5 || hard_links=no
21341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021342 { echo "$as_me:$LINENO: result: $hard_links" >&5
21343echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021344 if test "$hard_links" = no; then
21345 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21346echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21347 need_locks=warn
21348 fi
21349else
21350 need_locks=no
21351fi
21352
Reid Spencera773bd52006-08-04 18:18:08 +000021353{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21354echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021355
21356 runpath_var=
21357 allow_undefined_flag_F77=
21358 enable_shared_with_static_runtimes_F77=no
21359 archive_cmds_F77=
21360 archive_expsym_cmds_F77=
21361 old_archive_From_new_cmds_F77=
21362 old_archive_from_expsyms_cmds_F77=
21363 export_dynamic_flag_spec_F77=
21364 whole_archive_flag_spec_F77=
21365 thread_safe_flag_spec_F77=
21366 hardcode_libdir_flag_spec_F77=
21367 hardcode_libdir_flag_spec_ld_F77=
21368 hardcode_libdir_separator_F77=
21369 hardcode_direct_F77=no
21370 hardcode_minus_L_F77=no
21371 hardcode_shlibpath_var_F77=unsupported
21372 link_all_deplibs_F77=unknown
21373 hardcode_automatic_F77=no
21374 module_cmds_F77=
21375 module_expsym_cmds_F77=
21376 always_export_symbols_F77=no
21377 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21378 # include_expsyms should be a list of space-separated symbols to be *always*
21379 # included in the symbol list
21380 include_expsyms_F77=
21381 # exclude_expsyms can be an extended regexp of symbols to exclude
21382 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21383 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21384 # as well as any symbol that contains `d'.
21385 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21386 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21387 # platforms (ab)use it in PIC code, but their linkers get confused if
21388 # the symbol is explicitly referenced. Since portable code cannot
21389 # rely on this symbol name, it's probably fine to never include it in
21390 # preloaded symbol tables.
21391 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021392 # Just being paranoid about ensuring that cc_basename is set.
21393 for cc_temp in $compiler""; do
21394 case $cc_temp in
21395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21397 \-*) ;;
21398 *) break;;
21399 esac
21400done
21401cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021402
21403 case $host_os in
21404 cygwin* | mingw* | pw32*)
21405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21406 # When not using gcc, we currently assume that we are using
21407 # Microsoft Visual C++.
21408 if test "$GCC" != yes; then
21409 with_gnu_ld=no
21410 fi
21411 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021412 interix*)
21413 # we just hope/assume this is gcc and not c89 (= MSVC++)
21414 with_gnu_ld=yes
21415 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021416 openbsd*)
21417 with_gnu_ld=no
21418 ;;
21419 esac
21420
21421 ld_shlibs_F77=yes
21422 if test "$with_gnu_ld" = yes; then
21423 # If archive_cmds runs LD, not CC, wlarc should be empty
21424 wlarc='${wl}'
21425
Reid Spencera773bd52006-08-04 18:18:08 +000021426 # Set some defaults for GNU ld with shared library support. These
21427 # are reset later if shared libraries are not supported. Putting them
21428 # here allows them to be overridden if necessary.
21429 runpath_var=LD_RUN_PATH
21430 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21431 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21432 # ancient GNU ld didn't support --whole-archive et. al.
21433 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21434 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21435 else
21436 whole_archive_flag_spec_F77=
21437 fi
21438 supports_anon_versioning=no
21439 case `$LD -v 2>/dev/null` in
21440 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21441 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21442 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21443 *\ 2.11.*) ;; # other 2.11 versions
21444 *) supports_anon_versioning=yes ;;
21445 esac
21446
John Criswell47fdd832003-07-14 16:52:07 +000021447 # See if GNU ld supports shared libraries.
21448 case $host_os in
21449 aix3* | aix4* | aix5*)
21450 # On AIX/PPC, the GNU linker is very broken
21451 if test "$host_cpu" != ia64; then
21452 ld_shlibs_F77=no
21453 cat <<EOF 1>&2
21454
21455*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21456*** to be unable to reliably create shared libraries on AIX.
21457*** Therefore, libtool is disabling shared libraries support. If you
21458*** really care for shared libraries, you may want to modify your PATH
21459*** so that a non-GNU linker is found, and then restart.
21460
21461EOF
21462 fi
21463 ;;
21464
21465 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021466 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 +000021467 hardcode_libdir_flag_spec_F77='-L$libdir'
21468 hardcode_minus_L_F77=yes
21469
21470 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21471 # that the semantics of dynamic libraries on AmigaOS, at least up
21472 # to version 4, is to share data among multiple programs linked
21473 # with the same dynamic library. Since this doesn't match the
21474 # behavior of shared libraries on other platforms, we can't use
21475 # them.
21476 ld_shlibs_F77=no
21477 ;;
21478
21479 beos*)
21480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21481 allow_undefined_flag_F77=unsupported
21482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21483 # support --undefined. This deserves some investigation. FIXME
21484 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21485 else
21486 ld_shlibs_F77=no
21487 fi
21488 ;;
21489
21490 cygwin* | mingw* | pw32*)
21491 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21492 # as there is no search path for DLLs.
21493 hardcode_libdir_flag_spec_F77='-L$libdir'
21494 allow_undefined_flag_F77=unsupported
21495 always_export_symbols_F77=no
21496 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021497 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 +000021498
21499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021500 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 +000021501 # If the export-symbols file already is a .def file (1st line
21502 # is EXPORTS), use it as is; otherwise, prepend...
21503 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21504 cp $export_symbols $output_objdir/$soname.def;
21505 else
21506 echo EXPORTS > $output_objdir/$soname.def;
21507 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021508 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021509 $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 +000021510 else
Reid Spencera773bd52006-08-04 18:18:08 +000021511 ld_shlibs_F77=no
21512 fi
21513 ;;
21514
21515 interix3*)
21516 hardcode_direct_F77=no
21517 hardcode_shlibpath_var_F77=no
21518 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21519 export_dynamic_flag_spec_F77='${wl}-E'
21520 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21521 # Instead, shared libraries are loaded at an image base (0x10000000 by
21522 # default) and relocated if they conflict, which is a slow very memory
21523 # consuming and fragmenting process. To avoid this, we pick a random,
21524 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21525 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21526 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'
21527 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'
21528 ;;
21529
21530 linux*)
21531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532 tmp_addflag=
21533 case $cc_basename,$host_cpu in
21534 pgcc*) # Portland Group C compiler
21535 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'
21536 tmp_addflag=' $pic_flag'
21537 ;;
21538 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21539 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'
21540 tmp_addflag=' $pic_flag -Mnomain' ;;
21541 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21542 tmp_addflag=' -i_dynamic' ;;
21543 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21544 tmp_addflag=' -i_dynamic -nofor_main' ;;
21545 ifc* | ifort*) # Intel Fortran compiler
21546 tmp_addflag=' -nofor_main' ;;
21547 esac
21548 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21549
21550 if test $supports_anon_versioning = yes; then
21551 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21553 $echo "local: *; };" >> $output_objdir/$libname.ver~
21554 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21555 fi
21556 else
21557 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021558 fi
21559 ;;
21560
21561 netbsd*)
21562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21563 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21564 wlarc=
21565 else
21566 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21567 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21568 fi
21569 ;;
21570
Reid Spencera773bd52006-08-04 18:18:08 +000021571 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021572 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21573 ld_shlibs_F77=no
21574 cat <<EOF 1>&2
21575
21576*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21577*** create shared libraries on Solaris systems. Therefore, libtool
21578*** is disabling shared libraries support. We urge you to upgrade GNU
21579*** binutils to release 2.9.1 or newer. Another option is to modify
21580*** your PATH or compiler configuration so that the native linker is
21581*** used, and then restart.
21582
21583EOF
21584 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21585 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21586 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21587 else
21588 ld_shlibs_F77=no
21589 fi
21590 ;;
21591
Reid Spencera773bd52006-08-04 18:18:08 +000021592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21593 case `$LD -v 2>&1` in
21594 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21595 ld_shlibs_F77=no
21596 cat <<_LT_EOF 1>&2
21597
21598*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21599*** reliably create shared libraries on SCO systems. Therefore, libtool
21600*** is disabling shared libraries support. We urge you to upgrade GNU
21601*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21602*** your PATH or compiler configuration so that the native linker is
21603*** used, and then restart.
21604
21605_LT_EOF
21606 ;;
21607 *)
21608 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21609 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21610 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21611 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21612 else
21613 ld_shlibs_F77=no
21614 fi
21615 ;;
21616 esac
21617 ;;
21618
John Criswell47fdd832003-07-14 16:52:07 +000021619 sunos4*)
21620 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21621 wlarc=
21622 hardcode_direct_F77=yes
21623 hardcode_shlibpath_var_F77=no
21624 ;;
21625
21626 *)
21627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21628 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21629 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21630 else
21631 ld_shlibs_F77=no
21632 fi
21633 ;;
21634 esac
21635
Reid Spencera773bd52006-08-04 18:18:08 +000021636 if test "$ld_shlibs_F77" = no; then
21637 runpath_var=
21638 hardcode_libdir_flag_spec_F77=
21639 export_dynamic_flag_spec_F77=
21640 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021641 fi
21642 else
21643 # PORTME fill in a description of your system's linker (not GNU ld)
21644 case $host_os in
21645 aix3*)
21646 allow_undefined_flag_F77=unsupported
21647 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021648 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 +000021649 # Note: this linker hardcodes the directories in LIBPATH if there
21650 # are no directories specified by -L.
21651 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021652 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021653 # Neither direct hardcoding nor static linking is supported with a
21654 # broken collect2.
21655 hardcode_direct_F77=unsupported
21656 fi
21657 ;;
21658
21659 aix4* | aix5*)
21660 if test "$host_cpu" = ia64; then
21661 # On IA64, the linker does run time linking by default, so we don't
21662 # have to do anything special.
21663 aix_use_runtimelinking=no
21664 exp_sym_flag='-Bexport'
21665 no_entry_flag=""
21666 else
21667 # If we're using GNU nm, then we don't want the "-C" option.
21668 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21669 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21670 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'
21671 else
21672 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'
21673 fi
21674 aix_use_runtimelinking=no
21675
21676 # Test if we are trying to use run time linking or normal
21677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21678 # need to do runtime linking.
21679 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21680 for ld_flag in $LDFLAGS; do
21681 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21682 aix_use_runtimelinking=yes
21683 break
21684 fi
21685 done
Reid Spencera773bd52006-08-04 18:18:08 +000021686 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021687 esac
21688
21689 exp_sym_flag='-bexport'
21690 no_entry_flag='-bnoentry'
21691 fi
21692
21693 # When large executables or shared objects are built, AIX ld can
21694 # have problems creating the table of contents. If linking a library
21695 # or program results in "error TOC overflow" add -mminimal-toc to
21696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21698
21699 archive_cmds_F77=''
21700 hardcode_direct_F77=yes
21701 hardcode_libdir_separator_F77=':'
21702 link_all_deplibs_F77=yes
21703
21704 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021705 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021706 # We only want to do this on AIX 4.2 and lower, the check
21707 # below for broken collect2 doesn't work under 4.3+
21708 collect2name=`${CC} -print-prog-name=collect2`
21709 if test -f "$collect2name" && \
21710 strings "$collect2name" | grep resolve_lib_name >/dev/null
21711 then
21712 # We have reworked collect2
21713 hardcode_direct_F77=yes
21714 else
21715 # We have old collect2
21716 hardcode_direct_F77=unsupported
21717 # It fails to find uninstalled libraries when the uninstalled
21718 # path is not listed in the libpath. Setting hardcode_minus_L
21719 # to unsupported forces relinking
21720 hardcode_minus_L_F77=yes
21721 hardcode_libdir_flag_spec_F77='-L$libdir'
21722 hardcode_libdir_separator_F77=
21723 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021724 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021725 esac
21726 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021727 if test "$aix_use_runtimelinking" = yes; then
21728 shared_flag="$shared_flag "'${wl}-G'
21729 fi
John Criswell47fdd832003-07-14 16:52:07 +000021730 else
21731 # not using gcc
21732 if test "$host_cpu" = ia64; then
21733 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21734 # chokes on -Wl,-G. The following line is correct:
21735 shared_flag='-G'
21736 else
Reid Spencera773bd52006-08-04 18:18:08 +000021737 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021738 shared_flag='${wl}-G'
21739 else
21740 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021741 fi
John Criswell47fdd832003-07-14 16:52:07 +000021742 fi
21743 fi
21744
21745 # It seems that -bexpall does not export symbols beginning with
21746 # underscore (_), so it is better to generate a list of symbols to export.
21747 always_export_symbols_F77=yes
21748 if test "$aix_use_runtimelinking" = yes; then
21749 # Warning - without using the other runtime loading flags (-brtl),
21750 # -berok will link without error, but may produce a broken library.
21751 allow_undefined_flag_F77='-berok'
21752 # Determine the default libpath from the value encoded in an empty executable.
21753 cat >conftest.$ac_ext <<_ACEOF
21754 program main
21755
21756 end
21757_ACEOF
21758rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021759if { (ac_try="$ac_link"
21760case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763esac
21764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021766 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021772 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21773 { (case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776esac
21777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; } &&
21782 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021783 { (case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21786esac
21787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792
21793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21794}'`
21795# Check for a 64-bit object if we didn't find anything.
21796if 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; }
21797}'`; fi
21798else
21799 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021800sed 's/^/| /' conftest.$ac_ext >&5
21801
Reid Spencera773bd52006-08-04 18:18:08 +000021802
John Criswell47fdd832003-07-14 16:52:07 +000021803fi
Reid Spencera773bd52006-08-04 18:18:08 +000021804
21805rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021806 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21808
21809 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021810 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 +000021811 else
21812 if test "$host_cpu" = ia64; then
21813 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21814 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021815 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 +000021816 else
21817 # Determine the default libpath from the value encoded in an empty executable.
21818 cat >conftest.$ac_ext <<_ACEOF
21819 program main
21820
21821 end
21822_ACEOF
21823rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021824if { (ac_try="$ac_link"
21825case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21828esac
21829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021831 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021832 grep -v '^ *+' conftest.er1 >conftest.err
21833 rm -f conftest.er1
21834 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021837 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21838 { (case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841esac
21842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021844 ac_status=$?
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; } &&
21847 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021848 { (case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21851esac
21852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; }; then
21857
21858aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21859}'`
21860# Check for a 64-bit object if we didn't find anything.
21861if 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; }
21862}'`; fi
21863else
21864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021865sed 's/^/| /' conftest.$ac_ext >&5
21866
Reid Spencera773bd52006-08-04 18:18:08 +000021867
John Criswell47fdd832003-07-14 16:52:07 +000021868fi
Reid Spencera773bd52006-08-04 18:18:08 +000021869
21870rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021871 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21873
21874 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21875 # Warning - without using the other run time loading flags,
21876 # -berok will link without error, but may produce a broken library.
21877 no_undefined_flag_F77=' ${wl}-bernotok'
21878 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021879 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021880 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021881 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021882 # This is similar to how AIX traditionally builds its shared libraries.
21883 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 +000021884 fi
21885 fi
21886 ;;
21887
21888 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021889 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 +000021890 hardcode_libdir_flag_spec_F77='-L$libdir'
21891 hardcode_minus_L_F77=yes
21892 # see comment about different semantics on the GNU ld section
21893 ld_shlibs_F77=no
21894 ;;
21895
Reid Spencer2706f8c2004-09-19 23:53:36 +000021896 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021897 export_dynamic_flag_spec_F77=-rdynamic
21898 ;;
21899
21900 cygwin* | mingw* | pw32*)
21901 # When not using gcc, we currently assume that we are using
21902 # Microsoft Visual C++.
21903 # hardcode_libdir_flag_spec is actually meaningless, as there is
21904 # no search path for DLLs.
21905 hardcode_libdir_flag_spec_F77=' '
21906 allow_undefined_flag_F77=unsupported
21907 # Tell ltmain to make .lib files, not .a files.
21908 libext=lib
21909 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021910 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021911 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021912 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 +000021913 # The linker will automatically build a .lib file if we build a DLL.
21914 old_archive_From_new_cmds_F77='true'
21915 # FIXME: Should let the user specify the lib program.
21916 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021917 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021918 enable_shared_with_static_runtimes_F77=yes
21919 ;;
21920
21921 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021922 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021923 rhapsody* | darwin1.[012])
21924 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21925 ;;
21926 *) # Darwin 1.3 on
21927 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21928 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21929 else
21930 case ${MACOSX_DEPLOYMENT_TARGET} in
21931 10.[012])
21932 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21933 ;;
21934 10.*)
21935 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21936 ;;
21937 esac
21938 fi
21939 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021940 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021941 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021942 hardcode_direct_F77=no
21943 hardcode_automatic_F77=yes
21944 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021945 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021946 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021947 if test "$GCC" = yes ; then
21948 output_verbose_link_cmd='echo'
21949 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21950 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021951 # 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 +000021952 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}'
21953 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 +000021954 else
Reid Spencera773bd52006-08-04 18:18:08 +000021955 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021956 xlc*)
21957 output_verbose_link_cmd='echo'
21958 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21959 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021960 # 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 +000021961 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}'
21962 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 +000021963 ;;
21964 *)
21965 ld_shlibs_F77=no
21966 ;;
21967 esac
John Criswell47fdd832003-07-14 16:52:07 +000021968 fi
21969 ;;
21970
21971 dgux*)
21972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21973 hardcode_libdir_flag_spec_F77='-L$libdir'
21974 hardcode_shlibpath_var_F77=no
21975 ;;
21976
21977 freebsd1*)
21978 ld_shlibs_F77=no
21979 ;;
21980
21981 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21982 # support. Future versions do this automatically, but an explicit c++rt0.o
21983 # does not break anything, and helps significantly (at the cost of a little
21984 # extra space).
21985 freebsd2.2*)
21986 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21987 hardcode_libdir_flag_spec_F77='-R$libdir'
21988 hardcode_direct_F77=yes
21989 hardcode_shlibpath_var_F77=no
21990 ;;
21991
21992 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21993 freebsd2*)
21994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21995 hardcode_direct_F77=yes
21996 hardcode_minus_L_F77=yes
21997 hardcode_shlibpath_var_F77=no
21998 ;;
21999
22000 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022001 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022002 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22003 hardcode_libdir_flag_spec_F77='-R$libdir'
22004 hardcode_direct_F77=yes
22005 hardcode_shlibpath_var_F77=no
22006 ;;
22007
22008 hpux9*)
22009 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022010 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 +000022011 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022012 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 +000022013 fi
22014 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22015 hardcode_libdir_separator_F77=:
22016 hardcode_direct_F77=yes
22017
22018 # hardcode_minus_L: Not really in the search PATH,
22019 # but as the default location of the library.
22020 hardcode_minus_L_F77=yes
22021 export_dynamic_flag_spec_F77='${wl}-E'
22022 ;;
22023
Reid Spencera773bd52006-08-04 18:18:08 +000022024 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022025 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022026 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22027 else
22028 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22029 fi
22030 if test "$with_gnu_ld" = no; then
22031 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22032 hardcode_libdir_separator_F77=:
22033
22034 hardcode_direct_F77=yes
22035 export_dynamic_flag_spec_F77='${wl}-E'
22036
22037 # hardcode_minus_L: Not really in the search PATH,
22038 # but as the default location of the library.
22039 hardcode_minus_L_F77=yes
22040 fi
22041 ;;
22042
22043 hpux11*)
22044 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22045 case $host_cpu in
22046 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022047 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022049 ia64*)
22050 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22051 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022052 *)
22053 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22054 ;;
22055 esac
22056 else
Reid Spencera773bd52006-08-04 18:18:08 +000022057 case $host_cpu in
22058 hppa*64*)
22059 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22060 ;;
22061 ia64*)
22062 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022063 ;;
22064 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022065 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 +000022066 ;;
22067 esac
22068 fi
22069 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022070 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22071 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022072
Reid Spencera773bd52006-08-04 18:18:08 +000022073 case $host_cpu in
22074 hppa*64*|ia64*)
22075 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22076 hardcode_direct_F77=no
22077 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022078 ;;
22079 *)
John Criswell47fdd832003-07-14 16:52:07 +000022080 hardcode_direct_F77=yes
22081 export_dynamic_flag_spec_F77='${wl}-E'
22082
22083 # hardcode_minus_L: Not really in the search PATH,
22084 # but as the default location of the library.
22085 hardcode_minus_L_F77=yes
22086 ;;
22087 esac
22088 fi
22089 ;;
22090
22091 irix5* | irix6* | nonstopux*)
22092 if test "$GCC" = yes; then
22093 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'
22094 else
22095 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'
22096 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22097 fi
22098 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22099 hardcode_libdir_separator_F77=:
22100 link_all_deplibs_F77=yes
22101 ;;
22102
22103 netbsd*)
22104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22105 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22106 else
22107 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22108 fi
22109 hardcode_libdir_flag_spec_F77='-R$libdir'
22110 hardcode_direct_F77=yes
22111 hardcode_shlibpath_var_F77=no
22112 ;;
22113
22114 newsos6)
22115 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22116 hardcode_direct_F77=yes
22117 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22118 hardcode_libdir_separator_F77=:
22119 hardcode_shlibpath_var_F77=no
22120 ;;
22121
22122 openbsd*)
22123 hardcode_direct_F77=yes
22124 hardcode_shlibpath_var_F77=no
22125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22126 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022127 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 +000022128 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22129 export_dynamic_flag_spec_F77='${wl}-E'
22130 else
22131 case $host_os in
22132 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22133 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22134 hardcode_libdir_flag_spec_F77='-R$libdir'
22135 ;;
22136 *)
22137 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22138 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22139 ;;
22140 esac
22141 fi
22142 ;;
22143
22144 os2*)
22145 hardcode_libdir_flag_spec_F77='-L$libdir'
22146 hardcode_minus_L_F77=yes
22147 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022148 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 +000022149 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22150 ;;
22151
22152 osf3*)
22153 if test "$GCC" = yes; then
22154 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22155 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'
22156 else
22157 allow_undefined_flag_F77=' -expect_unresolved \*'
22158 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'
22159 fi
22160 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22161 hardcode_libdir_separator_F77=:
22162 ;;
22163
22164 osf4* | osf5*) # as osf3* with the addition of -msym flag
22165 if test "$GCC" = yes; then
22166 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22167 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'
22168 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22169 else
22170 allow_undefined_flag_F77=' -expect_unresolved \*'
22171 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 +000022172 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 +000022173 $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 +000022174
John Criswell47fdd832003-07-14 16:52:07 +000022175 # Both c and cxx compiler support -rpath directly
22176 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22177 fi
22178 hardcode_libdir_separator_F77=:
22179 ;;
22180
John Criswell47fdd832003-07-14 16:52:07 +000022181 solaris*)
22182 no_undefined_flag_F77=' -z text'
22183 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022184 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022185 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022186 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22187 $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 +000022188 else
Reid Spencera773bd52006-08-04 18:18:08 +000022189 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022190 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022191 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22192 $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 +000022193 fi
22194 hardcode_libdir_flag_spec_F77='-R$libdir'
22195 hardcode_shlibpath_var_F77=no
22196 case $host_os in
22197 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022198 *)
22199 # The compiler driver will combine linker options so we
22200 # cannot just pass the convience library names through
22201 # without $wl, iff we do not link with $LD.
22202 # Luckily, gcc supports the same syntax we need for Sun Studio.
22203 # Supported since Solaris 2.6 (maybe 2.5.1?)
22204 case $wlarc in
22205 '')
22206 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22207 *)
22208 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' ;;
22209 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022210 esac
22211 link_all_deplibs_F77=yes
22212 ;;
22213
22214 sunos4*)
22215 if test "x$host_vendor" = xsequent; then
22216 # Use $CC to link under sequent, because it throws in some extra .o
22217 # files that make .init and .fini sections work.
22218 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22219 else
22220 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22221 fi
22222 hardcode_libdir_flag_spec_F77='-L$libdir'
22223 hardcode_direct_F77=yes
22224 hardcode_minus_L_F77=yes
22225 hardcode_shlibpath_var_F77=no
22226 ;;
22227
22228 sysv4)
22229 case $host_vendor in
22230 sni)
22231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22232 hardcode_direct_F77=yes # is this really true???
22233 ;;
22234 siemens)
22235 ## LD is ld it makes a PLAMLIB
22236 ## CC just makes a GrossModule.
22237 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22238 reload_cmds_F77='$CC -r -o $output$reload_objs'
22239 hardcode_direct_F77=no
22240 ;;
22241 motorola)
22242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22244 ;;
22245 esac
22246 runpath_var='LD_RUN_PATH'
22247 hardcode_shlibpath_var_F77=no
22248 ;;
22249
22250 sysv4.3*)
22251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22252 hardcode_shlibpath_var_F77=no
22253 export_dynamic_flag_spec_F77='-Bexport'
22254 ;;
22255
22256 sysv4*MP*)
22257 if test -d /usr/nec; then
22258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22259 hardcode_shlibpath_var_F77=no
22260 runpath_var=LD_RUN_PATH
22261 hardcode_runpath_var=yes
22262 ld_shlibs_F77=yes
22263 fi
22264 ;;
22265
Reid Spencera773bd52006-08-04 18:18:08 +000022266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22267 no_undefined_flag_F77='${wl}-z,text'
22268 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022269 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022270 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022271
John Criswell47fdd832003-07-14 16:52:07 +000022272 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022273 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22274 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 +000022275 else
Reid Spencera773bd52006-08-04 18:18:08 +000022276 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 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 +000022278 fi
John Criswell47fdd832003-07-14 16:52:07 +000022279 ;;
22280
Reid Spencera773bd52006-08-04 18:18:08 +000022281 sysv5* | sco3.2v5* | sco5v6*)
22282 # Note: We can NOT use -z defs as we might desire, because we do not
22283 # link with -lc, and that would cause any symbols used from libc to
22284 # always be unresolved, which means just about no library would
22285 # ever link correctly. If we're not using GNU ld we use -z text
22286 # though, which does catch some bad symbols but isn't as heavy-handed
22287 # as -z defs.
22288 no_undefined_flag_F77='${wl}-z,text'
22289 allow_undefined_flag_F77='${wl}-z,nodefs'
22290 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022291 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022292 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22293 hardcode_libdir_separator_F77=':'
22294 link_all_deplibs_F77=yes
22295 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022296 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022297
22298 if test "$GCC" = yes; then
22299 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22300 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22301 else
22302 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22303 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22304 fi
John Criswell47fdd832003-07-14 16:52:07 +000022305 ;;
22306
22307 uts4*)
22308 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22309 hardcode_libdir_flag_spec_F77='-L$libdir'
22310 hardcode_shlibpath_var_F77=no
22311 ;;
22312
22313 *)
22314 ld_shlibs_F77=no
22315 ;;
22316 esac
22317 fi
22318
Reid Spencera773bd52006-08-04 18:18:08 +000022319{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22320echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022321test "$ld_shlibs_F77" = no && can_build_shared=no
22322
John Criswell47fdd832003-07-14 16:52:07 +000022323#
22324# Do we need to explicitly link libc?
22325#
22326case "x$archive_cmds_need_lc_F77" in
22327x|xyes)
22328 # Assume -lc should be added
22329 archive_cmds_need_lc_F77=yes
22330
22331 if test "$enable_shared" = yes && test "$GCC" = yes; then
22332 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022333 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022334 # FIXME: we may have to deal with multi-command sequences.
22335 ;;
22336 '$CC '*)
22337 # Test whether the compiler implicitly links with -lc since on some
22338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22339 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022340 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22341echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022342 $rm conftest*
22343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22344
22345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346 (eval $ac_compile) 2>&5
22347 ac_status=$?
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } 2>conftest.err; then
22350 soname=conftest
22351 lib=conftest
22352 libobjs=conftest.$ac_objext
22353 deplibs=
22354 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022355 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022356 compiler_flags=-v
22357 linker_flags=-v
22358 verstring=
22359 output_objdir=.
22360 libname=conftest
22361 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22362 allow_undefined_flag_F77=
22363 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22364 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22365 ac_status=$?
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }
22368 then
22369 archive_cmds_need_lc_F77=no
22370 else
22371 archive_cmds_need_lc_F77=yes
22372 fi
22373 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22374 else
22375 cat conftest.err 1>&5
22376 fi
22377 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022378 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22379echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022380 ;;
22381 esac
22382 fi
22383 ;;
22384esac
22385
Reid Spencera773bd52006-08-04 18:18:08 +000022386{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22387echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022388library_names_spec=
22389libname_spec='lib$name'
22390soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022391shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022392postinstall_cmds=
22393postuninstall_cmds=
22394finish_cmds=
22395finish_eval=
22396shlibpath_var=
22397shlibpath_overrides_runpath=unknown
22398version_type=none
22399dynamic_linker="$host_os ld.so"
22400sys_lib_dlsearch_path_spec="/lib /usr/lib"
22401if test "$GCC" = yes; then
22402 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22403 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22404 # if the path contains ";" then we assume it to be the separator
22405 # otherwise default to the standard path separator (i.e. ":") - it is
22406 # assumed that no part of a normal pathname contains ";" but that should
22407 # okay in the real world where ";" in dirpaths is itself problematic.
22408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22409 else
22410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22411 fi
22412else
22413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22414fi
22415need_lib_prefix=unknown
22416hardcode_into_libs=no
22417
22418# when you set need_version to no, make sure it does not cause -set_version
22419# flags to be left without arguments
22420need_version=unknown
22421
22422case $host_os in
22423aix3*)
22424 version_type=linux
22425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22426 shlibpath_var=LIBPATH
22427
22428 # AIX 3 has no versioning support, so we append a major version to the name.
22429 soname_spec='${libname}${release}${shared_ext}$major'
22430 ;;
22431
22432aix4* | aix5*)
22433 version_type=linux
22434 need_lib_prefix=no
22435 need_version=no
22436 hardcode_into_libs=yes
22437 if test "$host_cpu" = ia64; then
22438 # AIX 5 supports IA64
22439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22440 shlibpath_var=LD_LIBRARY_PATH
22441 else
22442 # With GCC up to 2.95.x, collect2 would create an import file
22443 # for dependence libraries. The import file would start with
22444 # the line `#! .'. This would cause the generated library to
22445 # depend on `.', always an invalid library. This was fixed in
22446 # development snapshots of GCC prior to 3.0.
22447 case $host_os in
22448 aix4 | aix4.[01] | aix4.[01].*)
22449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22450 echo ' yes '
22451 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22452 :
22453 else
22454 can_build_shared=no
22455 fi
22456 ;;
22457 esac
22458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22459 # soname into executable. Probably we can add versioning support to
22460 # collect2, so additional links can be useful in future.
22461 if test "$aix_use_runtimelinking" = yes; then
22462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22463 # instead of lib<name>.a to let people know that these are not
22464 # typical AIX shared libraries.
22465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466 else
22467 # We preserve .a as extension for shared libraries through AIX4.2
22468 # and later when we are not doing run time linking.
22469 library_names_spec='${libname}${release}.a $libname.a'
22470 soname_spec='${libname}${release}${shared_ext}$major'
22471 fi
22472 shlibpath_var=LIBPATH
22473 fi
22474 ;;
22475
22476amigaos*)
22477 library_names_spec='$libname.ixlibrary $libname.a'
22478 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022479 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 +000022480 ;;
22481
22482beos*)
22483 library_names_spec='${libname}${shared_ext}'
22484 dynamic_linker="$host_os ld.so"
22485 shlibpath_var=LIBRARY_PATH
22486 ;;
22487
Reid Spencer2706f8c2004-09-19 23:53:36 +000022488bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022489 version_type=linux
22490 need_version=no
22491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22492 soname_spec='${libname}${release}${shared_ext}$major'
22493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22494 shlibpath_var=LD_LIBRARY_PATH
22495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22497 # the default ld.so.conf also contains /usr/contrib/lib and
22498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22499 # libtool to hard-code these into programs
22500 ;;
22501
22502cygwin* | mingw* | pw32*)
22503 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022504 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022505 need_version=no
22506 need_lib_prefix=no
22507
22508 case $GCC,$host_os in
22509 yes,cygwin* | yes,mingw* | yes,pw32*)
22510 library_names_spec='$libname.dll.a'
22511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022512 postinstall_cmds='base_file=`basename \${file}`~
22513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22514 dldir=$destdir/`dirname \$dlpath`~
22515 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022516 $install_prog $dir/$dlname \$dldir/$dlname~
22517 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22519 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022520 $rm \$dlpath'
22521 shlibpath_overrides_runpath=yes
22522
22523 case $host_os in
22524 cygwin*)
22525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22526 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 +000022527 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022528 ;;
22529 mingw*)
22530 # MinGW DLLs use traditional 'lib' prefix
22531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22533 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22534 # It is most probably a Windows format PATH printed by
22535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22536 # path with ; separators, and with drive letters. We can handle the
22537 # drive letters (cygwin fileutils understands them), so leave them,
22538 # especially as we might pass files found there to a mingw objdump,
22539 # which wouldn't understand a cygwinified path. Ahh.
22540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22541 else
22542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22543 fi
22544 ;;
22545 pw32*)
22546 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022547 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 +000022548 ;;
22549 esac
22550 ;;
22551
22552 *)
22553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22554 ;;
22555 esac
22556 dynamic_linker='Win32 ld.exe'
22557 # FIXME: first we should search . and the directory the executable is in
22558 shlibpath_var=PATH
22559 ;;
22560
22561darwin* | rhapsody*)
22562 dynamic_linker="$host_os dyld"
22563 version_type=darwin
22564 need_lib_prefix=no
22565 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022566 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022567 soname_spec='${libname}${release}${major}$shared_ext'
22568 shlibpath_overrides_runpath=yes
22569 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022570 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022571 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022572 if test "$GCC" = yes; then
22573 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"`
22574 else
22575 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022576 fi
22577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22578 ;;
22579
22580dgux*)
22581 version_type=linux
22582 need_lib_prefix=no
22583 need_version=no
22584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22585 soname_spec='${libname}${release}${shared_ext}$major'
22586 shlibpath_var=LD_LIBRARY_PATH
22587 ;;
22588
22589freebsd1*)
22590 dynamic_linker=no
22591 ;;
22592
Reid Spencer2706f8c2004-09-19 23:53:36 +000022593kfreebsd*-gnu)
22594 version_type=linux
22595 need_lib_prefix=no
22596 need_version=no
22597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22598 soname_spec='${libname}${release}${shared_ext}$major'
22599 shlibpath_var=LD_LIBRARY_PATH
22600 shlibpath_overrides_runpath=no
22601 hardcode_into_libs=yes
22602 dynamic_linker='GNU ld.so'
22603 ;;
22604
Reid Spencera773bd52006-08-04 18:18:08 +000022605freebsd* | dragonfly*)
22606 # DragonFly does not have aout. When/if they implement a new
22607 # versioning mechanism, adjust this.
22608 if test -x /usr/bin/objformat; then
22609 objformat=`/usr/bin/objformat`
22610 else
22611 case $host_os in
22612 freebsd[123]*) objformat=aout ;;
22613 *) objformat=elf ;;
22614 esac
22615 fi
John Criswell47fdd832003-07-14 16:52:07 +000022616 version_type=freebsd-$objformat
22617 case $version_type in
22618 freebsd-elf*)
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22620 need_version=no
22621 need_lib_prefix=no
22622 ;;
22623 freebsd-*)
22624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22625 need_version=yes
22626 ;;
22627 esac
22628 shlibpath_var=LD_LIBRARY_PATH
22629 case $host_os in
22630 freebsd2*)
22631 shlibpath_overrides_runpath=yes
22632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022633 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022634 shlibpath_overrides_runpath=yes
22635 hardcode_into_libs=yes
22636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022639 shlibpath_overrides_runpath=no
22640 hardcode_into_libs=yes
22641 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022642 freebsd*) # from 4.6 on
22643 shlibpath_overrides_runpath=yes
22644 hardcode_into_libs=yes
22645 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022646 esac
22647 ;;
22648
22649gnu*)
22650 version_type=linux
22651 need_lib_prefix=no
22652 need_version=no
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22654 soname_spec='${libname}${release}${shared_ext}$major'
22655 shlibpath_var=LD_LIBRARY_PATH
22656 hardcode_into_libs=yes
22657 ;;
22658
22659hpux9* | hpux10* | hpux11*)
22660 # Give a soname corresponding to the major version so that dld.sl refuses to
22661 # link against other versions.
22662 version_type=sunos
22663 need_lib_prefix=no
22664 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022665 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022666 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022667 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022668 hardcode_into_libs=yes
22669 dynamic_linker="$host_os dld.so"
22670 shlibpath_var=LD_LIBRARY_PATH
22671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 if test "X$HPUX_IA64_MODE" = X32; then
22675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22676 else
22677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22678 fi
22679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22680 ;;
22681 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022682 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022683 hardcode_into_libs=yes
22684 dynamic_linker="$host_os dld.sl"
22685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688 soname_spec='${libname}${release}${shared_ext}$major'
22689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22691 ;;
22692 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022693 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022694 dynamic_linker="$host_os dld.sl"
22695 shlibpath_var=SHLIB_PATH
22696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 ;;
22700 esac
22701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22702 postinstall_cmds='chmod 555 $lib'
22703 ;;
22704
Reid Spencera773bd52006-08-04 18:18:08 +000022705interix3*)
22706 version_type=linux
22707 need_lib_prefix=no
22708 need_version=no
22709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22710 soname_spec='${libname}${release}${shared_ext}$major'
22711 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22712 shlibpath_var=LD_LIBRARY_PATH
22713 shlibpath_overrides_runpath=no
22714 hardcode_into_libs=yes
22715 ;;
22716
John Criswell47fdd832003-07-14 16:52:07 +000022717irix5* | irix6* | nonstopux*)
22718 case $host_os in
22719 nonstopux*) version_type=nonstopux ;;
22720 *)
22721 if test "$lt_cv_prog_gnu_ld" = yes; then
22722 version_type=linux
22723 else
22724 version_type=irix
22725 fi ;;
22726 esac
22727 need_lib_prefix=no
22728 need_version=no
22729 soname_spec='${libname}${release}${shared_ext}$major'
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22731 case $host_os in
22732 irix5* | nonstopux*)
22733 libsuff= shlibsuff=
22734 ;;
22735 *)
22736 case $LD in # libtool.m4 will add one of these switches to LD
22737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22738 libsuff= shlibsuff= libmagic=32-bit;;
22739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22740 libsuff=32 shlibsuff=N32 libmagic=N32;;
22741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22743 *) libsuff= shlibsuff= libmagic=never-match;;
22744 esac
22745 ;;
22746 esac
22747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22748 shlibpath_overrides_runpath=no
22749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22751 hardcode_into_libs=yes
22752 ;;
22753
22754# No shared lib support for Linux oldld, aout, or coff.
22755linux*oldld* | linux*aout* | linux*coff*)
22756 dynamic_linker=no
22757 ;;
22758
22759# This must be Linux ELF.
22760linux*)
22761 version_type=linux
22762 need_lib_prefix=no
22763 need_version=no
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765 soname_spec='${libname}${release}${shared_ext}$major'
22766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22767 shlibpath_var=LD_LIBRARY_PATH
22768 shlibpath_overrides_runpath=no
22769 # This implies no fast_install, which is unacceptable.
22770 # Some rework will be needed to allow for fast_install
22771 # before this can be enabled.
22772 hardcode_into_libs=yes
22773
Reid Spencer2706f8c2004-09-19 23:53:36 +000022774 # Append ld.so.conf contents to the search path
22775 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022776 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 +000022777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22778 fi
22779
John Criswell47fdd832003-07-14 16:52:07 +000022780 # We used to test for /lib/ld.so.1 and disable shared libraries on
22781 # powerpc, because MkLinux only supported shared libraries with the
22782 # GNU dynamic linker. Since this was broken with cross compilers,
22783 # most powerpc-linux boxes support dynamic linking these days and
22784 # people can always --disable-shared, the test was removed, and we
22785 # assume the GNU/Linux dynamic linker is in use.
22786 dynamic_linker='GNU/Linux ld.so'
22787 ;;
22788
Reid Spencer2706f8c2004-09-19 23:53:36 +000022789knetbsd*-gnu)
22790 version_type=linux
22791 need_lib_prefix=no
22792 need_version=no
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 shlibpath_overrides_runpath=no
22797 hardcode_into_libs=yes
22798 dynamic_linker='GNU ld.so'
22799 ;;
22800
John Criswell47fdd832003-07-14 16:52:07 +000022801netbsd*)
22802 version_type=sunos
22803 need_lib_prefix=no
22804 need_version=no
22805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22808 dynamic_linker='NetBSD (a.out) ld.so'
22809 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022811 soname_spec='${libname}${release}${shared_ext}$major'
22812 dynamic_linker='NetBSD ld.elf_so'
22813 fi
22814 shlibpath_var=LD_LIBRARY_PATH
22815 shlibpath_overrides_runpath=yes
22816 hardcode_into_libs=yes
22817 ;;
22818
22819newsos6)
22820 version_type=linux
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822 shlibpath_var=LD_LIBRARY_PATH
22823 shlibpath_overrides_runpath=yes
22824 ;;
22825
Reid Spencer2706f8c2004-09-19 23:53:36 +000022826nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022827 version_type=linux
22828 need_lib_prefix=no
22829 need_version=no
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22831 soname_spec='${libname}${release}${shared_ext}$major'
22832 shlibpath_var=LD_LIBRARY_PATH
22833 shlibpath_overrides_runpath=yes
22834 ;;
22835
22836openbsd*)
22837 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022838 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022839 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022840 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22841 case $host_os in
22842 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22843 *) need_version=no ;;
22844 esac
John Criswell47fdd832003-07-14 16:52:07 +000022845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22847 shlibpath_var=LD_LIBRARY_PATH
22848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22849 case $host_os in
22850 openbsd2.[89] | openbsd2.[89].*)
22851 shlibpath_overrides_runpath=no
22852 ;;
22853 *)
22854 shlibpath_overrides_runpath=yes
22855 ;;
22856 esac
22857 else
22858 shlibpath_overrides_runpath=yes
22859 fi
22860 ;;
22861
22862os2*)
22863 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022864 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022865 need_lib_prefix=no
22866 library_names_spec='$libname${shared_ext} $libname.a'
22867 dynamic_linker='OS/2 ld.exe'
22868 shlibpath_var=LIBPATH
22869 ;;
22870
22871osf3* | osf4* | osf5*)
22872 version_type=osf
22873 need_lib_prefix=no
22874 need_version=no
22875 soname_spec='${libname}${release}${shared_ext}$major'
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 shlibpath_var=LD_LIBRARY_PATH
22878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22880 ;;
22881
John Criswell47fdd832003-07-14 16:52:07 +000022882solaris*)
22883 version_type=linux
22884 need_lib_prefix=no
22885 need_version=no
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 soname_spec='${libname}${release}${shared_ext}$major'
22888 shlibpath_var=LD_LIBRARY_PATH
22889 shlibpath_overrides_runpath=yes
22890 hardcode_into_libs=yes
22891 # ldd complains unless libraries are executable
22892 postinstall_cmds='chmod +x $lib'
22893 ;;
22894
22895sunos4*)
22896 version_type=sunos
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22899 shlibpath_var=LD_LIBRARY_PATH
22900 shlibpath_overrides_runpath=yes
22901 if test "$with_gnu_ld" = yes; then
22902 need_lib_prefix=no
22903 fi
22904 need_version=yes
22905 ;;
22906
Reid Spencera773bd52006-08-04 18:18:08 +000022907sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022908 version_type=linux
22909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22910 soname_spec='${libname}${release}${shared_ext}$major'
22911 shlibpath_var=LD_LIBRARY_PATH
22912 case $host_vendor in
22913 sni)
22914 shlibpath_overrides_runpath=no
22915 need_lib_prefix=no
22916 export_dynamic_flag_spec='${wl}-Blargedynsym'
22917 runpath_var=LD_RUN_PATH
22918 ;;
22919 siemens)
22920 need_lib_prefix=no
22921 ;;
22922 motorola)
22923 need_lib_prefix=no
22924 need_version=no
22925 shlibpath_overrides_runpath=no
22926 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22927 ;;
22928 esac
22929 ;;
22930
22931sysv4*MP*)
22932 if test -d /usr/nec ;then
22933 version_type=linux
22934 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22935 soname_spec='$libname${shared_ext}.$major'
22936 shlibpath_var=LD_LIBRARY_PATH
22937 fi
22938 ;;
22939
Reid Spencera773bd52006-08-04 18:18:08 +000022940sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22941 version_type=freebsd-elf
22942 need_lib_prefix=no
22943 need_version=no
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22945 soname_spec='${libname}${release}${shared_ext}$major'
22946 shlibpath_var=LD_LIBRARY_PATH
22947 hardcode_into_libs=yes
22948 if test "$with_gnu_ld" = yes; then
22949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22950 shlibpath_overrides_runpath=no
22951 else
22952 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22953 shlibpath_overrides_runpath=yes
22954 case $host_os in
22955 sco3.2v5*)
22956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22957 ;;
22958 esac
22959 fi
22960 sys_lib_dlsearch_path_spec='/usr/lib'
22961 ;;
22962
John Criswell47fdd832003-07-14 16:52:07 +000022963uts4*)
22964 version_type=linux
22965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22966 soname_spec='${libname}${release}${shared_ext}$major'
22967 shlibpath_var=LD_LIBRARY_PATH
22968 ;;
22969
22970*)
22971 dynamic_linker=no
22972 ;;
22973esac
Reid Spencera773bd52006-08-04 18:18:08 +000022974{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22975echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022976test "$dynamic_linker" = no && can_build_shared=no
22977
Reid Spencera773bd52006-08-04 18:18:08 +000022978variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22979if test "$GCC" = yes; then
22980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22981fi
22982
22983{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22984echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022985hardcode_action_F77=
22986if test -n "$hardcode_libdir_flag_spec_F77" || \
22987 test -n "$runpath_var_F77" || \
22988 test "X$hardcode_automatic_F77" = "Xyes" ; then
22989
22990 # We can hardcode non-existant directories.
22991 if test "$hardcode_direct_F77" != no &&
22992 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22993 # have to relink, otherwise we might link with an installed library
22994 # when we should be linking with a yet-to-be-installed one
22995 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22996 test "$hardcode_minus_L_F77" != no; then
22997 # Linking always hardcodes the temporary library directory.
22998 hardcode_action_F77=relink
22999 else
23000 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23001 hardcode_action_F77=immediate
23002 fi
23003else
23004 # We cannot hardcode anything, or else we can only hardcode existing
23005 # directories.
23006 hardcode_action_F77=unsupported
23007fi
Reid Spencera773bd52006-08-04 18:18:08 +000023008{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23009echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023010
23011if test "$hardcode_action_F77" = relink; then
23012 # Fast installation is not supported
23013 enable_fast_install=no
23014elif test "$shlibpath_overrides_runpath" = yes ||
23015 test "$enable_shared" = no; then
23016 # Fast installation is not necessary
23017 enable_fast_install=needless
23018fi
23019
John Criswell47fdd832003-07-14 16:52:07 +000023020
23021# The else clause should only fire when bootstrapping the
23022# libtool distribution, otherwise you forgot to ship ltmain.sh
23023# with your package, and you will get complaints that there are
23024# no rules to generate ltmain.sh.
23025if test -f "$ltmain"; then
23026 # See if we are running on zsh, and set the options which allow our commands through
23027 # without removal of \ escapes.
23028 if test -n "${ZSH_VERSION+set}" ; then
23029 setopt NO_GLOB_SUBST
23030 fi
23031 # Now quote all the things that may contain metacharacters while being
23032 # careful not to overquote the AC_SUBSTed values. We take copies of the
23033 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023034 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 +000023035 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23038 deplibs_check_method reload_flag reload_cmds need_locks \
23039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23040 lt_cv_sys_global_symbol_to_c_name_address \
23041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23042 old_postinstall_cmds old_postuninstall_cmds \
23043 compiler_F77 \
23044 CC_F77 \
23045 LD_F77 \
23046 lt_prog_compiler_wl_F77 \
23047 lt_prog_compiler_pic_F77 \
23048 lt_prog_compiler_static_F77 \
23049 lt_prog_compiler_no_builtin_flag_F77 \
23050 export_dynamic_flag_spec_F77 \
23051 thread_safe_flag_spec_F77 \
23052 whole_archive_flag_spec_F77 \
23053 enable_shared_with_static_runtimes_F77 \
23054 old_archive_cmds_F77 \
23055 old_archive_from_new_cmds_F77 \
23056 predep_objects_F77 \
23057 postdep_objects_F77 \
23058 predeps_F77 \
23059 postdeps_F77 \
23060 compiler_lib_search_path_F77 \
23061 archive_cmds_F77 \
23062 archive_expsym_cmds_F77 \
23063 postinstall_cmds_F77 \
23064 postuninstall_cmds_F77 \
23065 old_archive_from_expsyms_cmds_F77 \
23066 allow_undefined_flag_F77 \
23067 no_undefined_flag_F77 \
23068 export_symbols_cmds_F77 \
23069 hardcode_libdir_flag_spec_F77 \
23070 hardcode_libdir_flag_spec_ld_F77 \
23071 hardcode_libdir_separator_F77 \
23072 hardcode_automatic_F77 \
23073 module_cmds_F77 \
23074 module_expsym_cmds_F77 \
23075 lt_cv_prog_compiler_c_o_F77 \
23076 exclude_expsyms_F77 \
23077 include_expsyms_F77; do
23078
23079 case $var in
23080 old_archive_cmds_F77 | \
23081 old_archive_from_new_cmds_F77 | \
23082 archive_cmds_F77 | \
23083 archive_expsym_cmds_F77 | \
23084 module_cmds_F77 | \
23085 module_expsym_cmds_F77 | \
23086 old_archive_from_expsyms_cmds_F77 | \
23087 export_symbols_cmds_F77 | \
23088 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23089 postinstall_cmds | postuninstall_cmds | \
23090 old_postinstall_cmds | old_postuninstall_cmds | \
23091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23092 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023093 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 +000023094 ;;
23095 *)
23096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23097 ;;
23098 esac
23099 done
23100
23101 case $lt_echo in
23102 *'\$0 --fallback-echo"')
23103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23104 ;;
23105 esac
23106
23107cfgfile="$ofile"
23108
23109 cat <<__EOF__ >> "$cfgfile"
23110# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23111
23112# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23113
23114# Shell to use when invoking shell scripts.
23115SHELL=$lt_SHELL
23116
23117# Whether or not to build shared libraries.
23118build_libtool_libs=$enable_shared
23119
23120# Whether or not to build static libraries.
23121build_old_libs=$enable_static
23122
23123# Whether or not to add -lc for building shared libraries.
23124build_libtool_need_lc=$archive_cmds_need_lc_F77
23125
23126# Whether or not to disallow shared libs when runtime libs are static
23127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23128
23129# Whether or not to optimize for fast installation.
23130fast_install=$enable_fast_install
23131
23132# The host system.
23133host_alias=$host_alias
23134host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023135host_os=$host_os
23136
23137# The build system.
23138build_alias=$build_alias
23139build=$build
23140build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023141
23142# An echo program that does not interpret backslashes.
23143echo=$lt_echo
23144
23145# The archiver.
23146AR=$lt_AR
23147AR_FLAGS=$lt_AR_FLAGS
23148
23149# A C compiler.
23150LTCC=$lt_LTCC
23151
Reid Spencera773bd52006-08-04 18:18:08 +000023152# LTCC compiler flags.
23153LTCFLAGS=$lt_LTCFLAGS
23154
John Criswell47fdd832003-07-14 16:52:07 +000023155# A language-specific compiler.
23156CC=$lt_compiler_F77
23157
23158# Is the compiler the GNU C compiler?
23159with_gcc=$GCC_F77
23160
23161# An ERE matcher.
23162EGREP=$lt_EGREP
23163
23164# The linker used to build libraries.
23165LD=$lt_LD_F77
23166
23167# Whether we need hard or soft links.
23168LN_S=$lt_LN_S
23169
23170# A BSD-compatible nm program.
23171NM=$lt_NM
23172
23173# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023174STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023175
23176# Used to examine libraries when file_magic_cmd begins "file"
23177MAGIC_CMD=$MAGIC_CMD
23178
23179# Used on cygwin: DLL creation program.
23180DLLTOOL="$DLLTOOL"
23181
23182# Used on cygwin: object dumper.
23183OBJDUMP="$OBJDUMP"
23184
23185# Used on cygwin: assembler.
23186AS="$AS"
23187
23188# The name of the directory that contains temporary libtool files.
23189objdir=$objdir
23190
23191# How to create reloadable object files.
23192reload_flag=$lt_reload_flag
23193reload_cmds=$lt_reload_cmds
23194
23195# How to pass a linker flag through the compiler.
23196wl=$lt_lt_prog_compiler_wl_F77
23197
23198# Object file suffix (normally "o").
23199objext="$ac_objext"
23200
23201# Old archive suffix (normally "a").
23202libext="$libext"
23203
23204# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023205shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023206
23207# Executable file suffix (normally "").
23208exeext="$exeext"
23209
23210# Additional compiler flags for building library objects.
23211pic_flag=$lt_lt_prog_compiler_pic_F77
23212pic_mode=$pic_mode
23213
23214# What is the maximum length of a command?
23215max_cmd_len=$lt_cv_sys_max_cmd_len
23216
23217# Does compiler simultaneously support -c and -o options?
23218compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23219
Reid Spencera773bd52006-08-04 18:18:08 +000023220# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023221need_locks=$lt_need_locks
23222
23223# Do we need the lib prefix for modules?
23224need_lib_prefix=$need_lib_prefix
23225
23226# Do we need a version for libraries?
23227need_version=$need_version
23228
23229# Whether dlopen is supported.
23230dlopen_support=$enable_dlopen
23231
23232# Whether dlopen of programs is supported.
23233dlopen_self=$enable_dlopen_self
23234
23235# Whether dlopen of statically linked programs is supported.
23236dlopen_self_static=$enable_dlopen_self_static
23237
23238# Compiler flag to prevent dynamic linking.
23239link_static_flag=$lt_lt_prog_compiler_static_F77
23240
23241# Compiler flag to turn off builtin functions.
23242no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23243
23244# Compiler flag to allow reflexive dlopens.
23245export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23246
23247# Compiler flag to generate shared objects directly from archives.
23248whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23249
23250# Compiler flag to generate thread-safe objects.
23251thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23252
23253# Library versioning type.
23254version_type=$version_type
23255
23256# Format of library name prefix.
23257libname_spec=$lt_libname_spec
23258
23259# List of archive names. First name is the real one, the rest are links.
23260# The last name is the one that the linker finds with -lNAME.
23261library_names_spec=$lt_library_names_spec
23262
23263# The coded name of the library, if different from the real name.
23264soname_spec=$lt_soname_spec
23265
23266# Commands used to build and install an old-style archive.
23267RANLIB=$lt_RANLIB
23268old_archive_cmds=$lt_old_archive_cmds_F77
23269old_postinstall_cmds=$lt_old_postinstall_cmds
23270old_postuninstall_cmds=$lt_old_postuninstall_cmds
23271
23272# Create an old-style archive from a shared archive.
23273old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23274
23275# Create a temporary old-style archive to link instead of a shared archive.
23276old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23277
23278# Commands used to build and install a shared archive.
23279archive_cmds=$lt_archive_cmds_F77
23280archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23281postinstall_cmds=$lt_postinstall_cmds
23282postuninstall_cmds=$lt_postuninstall_cmds
23283
23284# Commands used to build a loadable module (assumed same as above if empty)
23285module_cmds=$lt_module_cmds_F77
23286module_expsym_cmds=$lt_module_expsym_cmds_F77
23287
23288# Commands to strip libraries.
23289old_striplib=$lt_old_striplib
23290striplib=$lt_striplib
23291
23292# Dependencies to place before the objects being linked to create a
23293# shared library.
23294predep_objects=$lt_predep_objects_F77
23295
23296# Dependencies to place after the objects being linked to create a
23297# shared library.
23298postdep_objects=$lt_postdep_objects_F77
23299
23300# Dependencies to place before the objects being linked to create a
23301# shared library.
23302predeps=$lt_predeps_F77
23303
23304# Dependencies to place after the objects being linked to create a
23305# shared library.
23306postdeps=$lt_postdeps_F77
23307
23308# The library search path used internally by the compiler when linking
23309# a shared library.
23310compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23311
23312# Method to check whether dependent libraries are shared objects.
23313deplibs_check_method=$lt_deplibs_check_method
23314
23315# Command to use when deplibs_check_method == file_magic.
23316file_magic_cmd=$lt_file_magic_cmd
23317
23318# Flag that allows shared libraries with undefined symbols to be built.
23319allow_undefined_flag=$lt_allow_undefined_flag_F77
23320
23321# Flag that forces no undefined symbols.
23322no_undefined_flag=$lt_no_undefined_flag_F77
23323
23324# Commands used to finish a libtool library installation in a directory.
23325finish_cmds=$lt_finish_cmds
23326
23327# Same as above, but a single script fragment to be evaled but not shown.
23328finish_eval=$lt_finish_eval
23329
23330# Take the output of nm and produce a listing of raw symbols and C names.
23331global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23332
23333# Transform the output of nm in a proper C declaration
23334global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23335
23336# Transform the output of nm in a C name address pair
23337global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23338
23339# This is the shared library runtime path variable.
23340runpath_var=$runpath_var
23341
23342# This is the shared library path variable.
23343shlibpath_var=$shlibpath_var
23344
23345# Is shlibpath searched before the hard-coded library search path?
23346shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23347
23348# How to hardcode a shared library path into an executable.
23349hardcode_action=$hardcode_action_F77
23350
23351# Whether we should hardcode library paths into libraries.
23352hardcode_into_libs=$hardcode_into_libs
23353
23354# Flag to hardcode \$libdir into a binary during linking.
23355# This must work even if \$libdir does not exist.
23356hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23357
23358# If ld is used when linking, flag to hardcode \$libdir into
23359# a binary during linking. This must work even if \$libdir does
23360# not exist.
23361hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23362
23363# Whether we need a single -rpath flag with a separated argument.
23364hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23365
23366# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23367# resulting binary.
23368hardcode_direct=$hardcode_direct_F77
23369
23370# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23371# resulting binary.
23372hardcode_minus_L=$hardcode_minus_L_F77
23373
23374# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23375# the resulting binary.
23376hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23377
23378# Set to yes if building a shared library automatically hardcodes DIR into the library
23379# and all subsequent libraries and executables linked against it.
23380hardcode_automatic=$hardcode_automatic_F77
23381
23382# Variables whose values should be saved in libtool wrapper scripts and
23383# restored at relink time.
23384variables_saved_for_relink="$variables_saved_for_relink"
23385
23386# Whether libtool must link a program against all its dependency libraries.
23387link_all_deplibs=$link_all_deplibs_F77
23388
23389# Compile-time system search path for libraries
23390sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23391
23392# Run-time system search path for libraries
23393sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23394
23395# Fix the shell variable \$srcfile for the compiler.
23396fix_srcfile_path="$fix_srcfile_path_F77"
23397
23398# Set to yes if exported symbols are required.
23399always_export_symbols=$always_export_symbols_F77
23400
23401# The commands to list exported symbols.
23402export_symbols_cmds=$lt_export_symbols_cmds_F77
23403
23404# The commands to extract the exported symbol list from a shared archive.
23405extract_expsyms_cmds=$lt_extract_expsyms_cmds
23406
23407# Symbols that should not be listed in the preloaded symbols.
23408exclude_expsyms=$lt_exclude_expsyms_F77
23409
23410# Symbols that must always be exported.
23411include_expsyms=$lt_include_expsyms_F77
23412
23413# ### END LIBTOOL TAG CONFIG: $tagname
23414
23415__EOF__
23416
23417
23418else
23419 # If there is no Makefile yet, we rely on a make rule to execute
23420 # `config.status --recheck' to rerun these tests and create the
23421 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023422 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23423 if test -f "$ltmain_in"; then
23424 test -f Makefile && make "$ltmain"
23425 fi
John Criswell47fdd832003-07-14 16:52:07 +000023426fi
23427
23428
23429ac_ext=c
23430ac_cpp='$CPP $CPPFLAGS'
23431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23433ac_compiler_gnu=$ac_cv_c_compiler_gnu
23434
23435CC="$lt_save_CC"
23436
23437 else
23438 tagname=""
23439 fi
23440 ;;
23441
23442 GCJ)
23443 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023444 ac_ext=c
23445ac_cpp='$CPP $CPPFLAGS'
23446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23448ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023449
23450
23451# Source file extension for Java test sources.
23452ac_ext=java
23453
23454# Object file extension for compiled Java test sources.
23455objext=o
23456objext_GCJ=$objext
23457
23458# Code to be used in simple compile tests
23459lt_simple_compile_test_code="class foo {}\n"
23460
23461# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023462lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023463
23464# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23465
23466# If no C compiler was specified, use CC.
23467LTCC=${LTCC-"$CC"}
23468
Reid Spencera773bd52006-08-04 18:18:08 +000023469# If no C compiler flags were specified, use CFLAGS.
23470LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23471
John Criswell47fdd832003-07-14 16:52:07 +000023472# Allow CC to be a program name with arguments.
23473compiler=$CC
23474
23475
Reid Spencera773bd52006-08-04 18:18:08 +000023476# save warnings/boilerplate of simple test code
23477ac_outfile=conftest.$ac_objext
23478printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23479eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23480_lt_compiler_boilerplate=`cat conftest.err`
23481$rm conftest*
23482
23483ac_outfile=conftest.$ac_objext
23484printf "$lt_simple_link_test_code" >conftest.$ac_ext
23485eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23486_lt_linker_boilerplate=`cat conftest.err`
23487$rm conftest*
23488
23489
John Criswell47fdd832003-07-14 16:52:07 +000023490# Allow CC to be a program name with arguments.
23491lt_save_CC="$CC"
23492CC=${GCJ-"gcj"}
23493compiler=$CC
23494compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023495for cc_temp in $compiler""; do
23496 case $cc_temp in
23497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23499 \-*) ;;
23500 *) break;;
23501 esac
23502done
23503cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23504
John Criswell47fdd832003-07-14 16:52:07 +000023505
23506# GCJ did not exist at the time GCC didn't implicitly link libc in.
23507archive_cmds_need_lc_GCJ=no
23508
Reid Spencera773bd52006-08-04 18:18:08 +000023509old_archive_cmds_GCJ=$old_archive_cmds
23510
John Criswell47fdd832003-07-14 16:52:07 +000023511
23512lt_prog_compiler_no_builtin_flag_GCJ=
23513
23514if test "$GCC" = yes; then
23515 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23516
Reid Spencer2706f8c2004-09-19 23:53:36 +000023517
Reid Spencera773bd52006-08-04 18:18:08 +000023518{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23519echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023520if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23521 echo $ECHO_N "(cached) $ECHO_C" >&6
23522else
23523 lt_cv_prog_compiler_rtti_exceptions=no
23524 ac_outfile=conftest.$ac_objext
23525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23526 lt_compiler_flag="-fno-rtti -fno-exceptions"
23527 # Insert the option either (1) after the last *FLAGS variable, or
23528 # (2) before a word containing "conftest.", or (3) at the end.
23529 # Note that $ac_compile itself does not contain backslashes and begins
23530 # with a dollar sign (not a hyphen), so the echo should work correctly.
23531 # The option is referenced via a variable to avoid confusing sed.
23532 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23535 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000023536 (eval echo "\"\$as_me:23536: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023537 (eval "$lt_compile" 2>conftest.err)
23538 ac_status=$?
23539 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000023540 echo "$as_me:23540: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023541 if (exit $ac_status) && test -s "$ac_outfile"; then
23542 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023543 # So say no if there are warnings other than the usual output.
23544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023547 lt_cv_prog_compiler_rtti_exceptions=yes
23548 fi
23549 fi
23550 $rm conftest*
23551
23552fi
Reid Spencera773bd52006-08-04 18:18:08 +000023553{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23554echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023555
23556if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23557 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23558else
23559 :
23560fi
23561
23562fi
23563
23564lt_prog_compiler_wl_GCJ=
23565lt_prog_compiler_pic_GCJ=
23566lt_prog_compiler_static_GCJ=
23567
Reid Spencera773bd52006-08-04 18:18:08 +000023568{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23569echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023570
23571 if test "$GCC" = yes; then
23572 lt_prog_compiler_wl_GCJ='-Wl,'
23573 lt_prog_compiler_static_GCJ='-static'
23574
23575 case $host_os in
23576 aix*)
23577 # All AIX code is PIC.
23578 if test "$host_cpu" = ia64; then
23579 # AIX 5 now supports IA64 processor
23580 lt_prog_compiler_static_GCJ='-Bstatic'
23581 fi
23582 ;;
23583
23584 amigaos*)
23585 # FIXME: we need at least 68020 code to build shared libraries, but
23586 # adding the `-m68020' flag to GCC prevents building anything better,
23587 # like `-m68040'.
23588 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23589 ;;
23590
23591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23592 # PIC is the default for these OSes.
23593 ;;
23594
23595 mingw* | pw32* | os2*)
23596 # This hack is so that the source file can tell whether it is being
23597 # built for inclusion in a dll (and should export symbols for example).
23598 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23599 ;;
23600
23601 darwin* | rhapsody*)
23602 # PIC is the default on this platform
23603 # Common symbols not allowed in MH_DYLIB files
23604 lt_prog_compiler_pic_GCJ='-fno-common'
23605 ;;
23606
Reid Spencera773bd52006-08-04 18:18:08 +000023607 interix3*)
23608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23609 # Instead, we relocate shared libraries at runtime.
23610 ;;
23611
John Criswell47fdd832003-07-14 16:52:07 +000023612 msdosdjgpp*)
23613 # Just because we use GCC doesn't mean we suddenly get shared libraries
23614 # on systems that don't support them.
23615 lt_prog_compiler_can_build_shared_GCJ=no
23616 enable_shared=no
23617 ;;
23618
23619 sysv4*MP*)
23620 if test -d /usr/nec; then
23621 lt_prog_compiler_pic_GCJ=-Kconform_pic
23622 fi
23623 ;;
23624
23625 hpux*)
23626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23627 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023628 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023629 hppa*64*|ia64*)
23630 # +Z the default
23631 ;;
23632 *)
23633 lt_prog_compiler_pic_GCJ='-fPIC'
23634 ;;
23635 esac
23636 ;;
23637
23638 *)
23639 lt_prog_compiler_pic_GCJ='-fPIC'
23640 ;;
23641 esac
23642 else
23643 # PORTME Check for flag to pass linker flags through the system compiler.
23644 case $host_os in
23645 aix*)
23646 lt_prog_compiler_wl_GCJ='-Wl,'
23647 if test "$host_cpu" = ia64; then
23648 # AIX 5 now supports IA64 processor
23649 lt_prog_compiler_static_GCJ='-Bstatic'
23650 else
23651 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23652 fi
23653 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023654 darwin*)
23655 # PIC is the default on this platform
23656 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023657 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023658 xlc*)
23659 lt_prog_compiler_pic_GCJ='-qnocommon'
23660 lt_prog_compiler_wl_GCJ='-Wl,'
23661 ;;
23662 esac
23663 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023664
23665 mingw* | pw32* | os2*)
23666 # This hack is so that the source file can tell whether it is being
23667 # built for inclusion in a dll (and should export symbols for example).
23668 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23669 ;;
23670
23671 hpux9* | hpux10* | hpux11*)
23672 lt_prog_compiler_wl_GCJ='-Wl,'
23673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23674 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023675 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023676 hppa*64*|ia64*)
23677 # +Z the default
23678 ;;
23679 *)
23680 lt_prog_compiler_pic_GCJ='+Z'
23681 ;;
23682 esac
23683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23684 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23685 ;;
23686
23687 irix5* | irix6* | nonstopux*)
23688 lt_prog_compiler_wl_GCJ='-Wl,'
23689 # PIC (with -KPIC) is the default.
23690 lt_prog_compiler_static_GCJ='-non_shared'
23691 ;;
23692
23693 newsos6)
23694 lt_prog_compiler_pic_GCJ='-KPIC'
23695 lt_prog_compiler_static_GCJ='-Bstatic'
23696 ;;
23697
23698 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023699 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023700 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023701 lt_prog_compiler_wl_GCJ='-Wl,'
23702 lt_prog_compiler_pic_GCJ='-KPIC'
23703 lt_prog_compiler_static_GCJ='-static'
23704 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023705 pgcc* | pgf77* | pgf90* | pgf95*)
23706 # Portland Group compilers (*not* the Pentium gcc compiler,
23707 # which looks to be a dead project)
23708 lt_prog_compiler_wl_GCJ='-Wl,'
23709 lt_prog_compiler_pic_GCJ='-fpic'
23710 lt_prog_compiler_static_GCJ='-Bstatic'
23711 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023712 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023713 lt_prog_compiler_wl_GCJ='-Wl,'
23714 # All Alpha code is PIC.
23715 lt_prog_compiler_static_GCJ='-non_shared'
23716 ;;
23717 esac
23718 ;;
23719
23720 osf3* | osf4* | osf5*)
23721 lt_prog_compiler_wl_GCJ='-Wl,'
23722 # All OSF/1 code is PIC.
23723 lt_prog_compiler_static_GCJ='-non_shared'
23724 ;;
23725
John Criswell47fdd832003-07-14 16:52:07 +000023726 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023727 lt_prog_compiler_pic_GCJ='-KPIC'
23728 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023729 case $cc_basename in
23730 f77* | f90* | f95*)
23731 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23732 *)
23733 lt_prog_compiler_wl_GCJ='-Wl,';;
23734 esac
John Criswell47fdd832003-07-14 16:52:07 +000023735 ;;
23736
23737 sunos4*)
23738 lt_prog_compiler_wl_GCJ='-Qoption ld '
23739 lt_prog_compiler_pic_GCJ='-PIC'
23740 lt_prog_compiler_static_GCJ='-Bstatic'
23741 ;;
23742
Reid Spencera773bd52006-08-04 18:18:08 +000023743 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023744 lt_prog_compiler_wl_GCJ='-Wl,'
23745 lt_prog_compiler_pic_GCJ='-KPIC'
23746 lt_prog_compiler_static_GCJ='-Bstatic'
23747 ;;
23748
23749 sysv4*MP*)
23750 if test -d /usr/nec ;then
23751 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23752 lt_prog_compiler_static_GCJ='-Bstatic'
23753 fi
23754 ;;
23755
Reid Spencera773bd52006-08-04 18:18:08 +000023756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23757 lt_prog_compiler_wl_GCJ='-Wl,'
23758 lt_prog_compiler_pic_GCJ='-KPIC'
23759 lt_prog_compiler_static_GCJ='-Bstatic'
23760 ;;
23761
23762 unicos*)
23763 lt_prog_compiler_wl_GCJ='-Wl,'
23764 lt_prog_compiler_can_build_shared_GCJ=no
23765 ;;
23766
John Criswell47fdd832003-07-14 16:52:07 +000023767 uts4*)
23768 lt_prog_compiler_pic_GCJ='-pic'
23769 lt_prog_compiler_static_GCJ='-Bstatic'
23770 ;;
23771
23772 *)
23773 lt_prog_compiler_can_build_shared_GCJ=no
23774 ;;
23775 esac
23776 fi
23777
Reid Spencera773bd52006-08-04 18:18:08 +000023778{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23779echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023780
23781#
23782# Check to make sure the PIC flag actually works.
23783#
23784if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023785
Reid Spencera773bd52006-08-04 18:18:08 +000023786{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23787echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023788if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23789 echo $ECHO_N "(cached) $ECHO_C" >&6
23790else
23791 lt_prog_compiler_pic_works_GCJ=no
23792 ac_outfile=conftest.$ac_objext
23793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23794 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23795 # Insert the option either (1) after the last *FLAGS variable, or
23796 # (2) before a word containing "conftest.", or (3) at the end.
23797 # Note that $ac_compile itself does not contain backslashes and begins
23798 # with a dollar sign (not a hyphen), so the echo should work correctly.
23799 # The option is referenced via a variable to avoid confusing sed.
23800 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23803 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000023804 (eval echo "\"\$as_me:23804: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023805 (eval "$lt_compile" 2>conftest.err)
23806 ac_status=$?
23807 cat conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000023808 echo "$as_me:23808: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023809 if (exit $ac_status) && test -s "$ac_outfile"; then
23810 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023811 # So say no if there are warnings other than the usual output.
23812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023815 lt_prog_compiler_pic_works_GCJ=yes
23816 fi
23817 fi
23818 $rm conftest*
23819
23820fi
Reid Spencera773bd52006-08-04 18:18:08 +000023821{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23822echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023823
23824if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23825 case $lt_prog_compiler_pic_GCJ in
23826 "" | " "*) ;;
23827 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23828 esac
23829else
23830 lt_prog_compiler_pic_GCJ=
23831 lt_prog_compiler_can_build_shared_GCJ=no
23832fi
23833
23834fi
Reid Spencera773bd52006-08-04 18:18:08 +000023835case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023836 # For platforms which do not support PIC, -DPIC is meaningless:
23837 *djgpp*)
23838 lt_prog_compiler_pic_GCJ=
23839 ;;
23840 *)
23841 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23842 ;;
23843esac
23844
Reid Spencera773bd52006-08-04 18:18:08 +000023845#
23846# Check to make sure the static flag actually works.
23847#
23848wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23849{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23850echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23851if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
23853else
23854 lt_prog_compiler_static_works_GCJ=no
23855 save_LDFLAGS="$LDFLAGS"
23856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23857 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23859 # The linker can only warn and ignore the option if not recognized
23860 # So say no if there are warnings
23861 if test -s conftest.err; then
23862 # Append any errors to the config.log.
23863 cat conftest.err 1>&5
23864 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23866 if diff conftest.exp conftest.er2 >/dev/null; then
23867 lt_prog_compiler_static_works_GCJ=yes
23868 fi
23869 else
23870 lt_prog_compiler_static_works_GCJ=yes
23871 fi
23872 fi
23873 $rm conftest*
23874 LDFLAGS="$save_LDFLAGS"
23875
23876fi
23877{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23878echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23879
23880if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23881 :
23882else
23883 lt_prog_compiler_static_GCJ=
23884fi
23885
23886
23887{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23888echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023889if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23890 echo $ECHO_N "(cached) $ECHO_C" >&6
23891else
23892 lt_cv_prog_compiler_c_o_GCJ=no
23893 $rm -r conftest 2>/dev/null
23894 mkdir conftest
23895 cd conftest
23896 mkdir out
23897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23898
John Criswell47fdd832003-07-14 16:52:07 +000023899 lt_compiler_flag="-o out/conftest2.$ac_objext"
23900 # Insert the option either (1) after the last *FLAGS variable, or
23901 # (2) before a word containing "conftest.", or (3) at the end.
23902 # Note that $ac_compile itself does not contain backslashes and begins
23903 # with a dollar sign (not a hyphen), so the echo should work correctly.
23904 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23907 -e 's:$: $lt_compiler_flag:'`
David Greenea696d242007-06-28 19:36:08 +000023908 (eval echo "\"\$as_me:23908: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023909 (eval "$lt_compile" 2>out/conftest.err)
23910 ac_status=$?
23911 cat out/conftest.err >&5
David Greenea696d242007-06-28 19:36:08 +000023912 echo "$as_me:23912: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23914 then
23915 # The compiler can only warn and ignore the option if not recognized
23916 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023917 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023920 lt_cv_prog_compiler_c_o_GCJ=yes
23921 fi
23922 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023923 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023924 $rm conftest*
23925 # SGI C++ compiler will create directory out/ii_files/ for
23926 # template instantiation
23927 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23928 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023929 cd ..
23930 rmdir conftest
23931 $rm conftest*
23932
23933fi
Reid Spencera773bd52006-08-04 18:18:08 +000023934{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23935echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023936
23937
23938hard_links="nottested"
23939if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23940 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023941 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23942echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023943 hard_links=yes
23944 $rm conftest*
23945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23946 touch conftest.a
23947 ln conftest.a conftest.b 2>&5 || hard_links=no
23948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023949 { echo "$as_me:$LINENO: result: $hard_links" >&5
23950echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023951 if test "$hard_links" = no; then
23952 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23953echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23954 need_locks=warn
23955 fi
23956else
23957 need_locks=no
23958fi
23959
Reid Spencera773bd52006-08-04 18:18:08 +000023960{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23961echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023962
23963 runpath_var=
23964 allow_undefined_flag_GCJ=
23965 enable_shared_with_static_runtimes_GCJ=no
23966 archive_cmds_GCJ=
23967 archive_expsym_cmds_GCJ=
23968 old_archive_From_new_cmds_GCJ=
23969 old_archive_from_expsyms_cmds_GCJ=
23970 export_dynamic_flag_spec_GCJ=
23971 whole_archive_flag_spec_GCJ=
23972 thread_safe_flag_spec_GCJ=
23973 hardcode_libdir_flag_spec_GCJ=
23974 hardcode_libdir_flag_spec_ld_GCJ=
23975 hardcode_libdir_separator_GCJ=
23976 hardcode_direct_GCJ=no
23977 hardcode_minus_L_GCJ=no
23978 hardcode_shlibpath_var_GCJ=unsupported
23979 link_all_deplibs_GCJ=unknown
23980 hardcode_automatic_GCJ=no
23981 module_cmds_GCJ=
23982 module_expsym_cmds_GCJ=
23983 always_export_symbols_GCJ=no
23984 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23985 # include_expsyms should be a list of space-separated symbols to be *always*
23986 # included in the symbol list
23987 include_expsyms_GCJ=
23988 # exclude_expsyms can be an extended regexp of symbols to exclude
23989 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23990 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23991 # as well as any symbol that contains `d'.
23992 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23993 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23994 # platforms (ab)use it in PIC code, but their linkers get confused if
23995 # the symbol is explicitly referenced. Since portable code cannot
23996 # rely on this symbol name, it's probably fine to never include it in
23997 # preloaded symbol tables.
23998 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023999 # Just being paranoid about ensuring that cc_basename is set.
24000 for cc_temp in $compiler""; do
24001 case $cc_temp in
24002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24004 \-*) ;;
24005 *) break;;
24006 esac
24007done
24008cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024009
24010 case $host_os in
24011 cygwin* | mingw* | pw32*)
24012 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24013 # When not using gcc, we currently assume that we are using
24014 # Microsoft Visual C++.
24015 if test "$GCC" != yes; then
24016 with_gnu_ld=no
24017 fi
24018 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024019 interix*)
24020 # we just hope/assume this is gcc and not c89 (= MSVC++)
24021 with_gnu_ld=yes
24022 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024023 openbsd*)
24024 with_gnu_ld=no
24025 ;;
24026 esac
24027
24028 ld_shlibs_GCJ=yes
24029 if test "$with_gnu_ld" = yes; then
24030 # If archive_cmds runs LD, not CC, wlarc should be empty
24031 wlarc='${wl}'
24032
Reid Spencera773bd52006-08-04 18:18:08 +000024033 # Set some defaults for GNU ld with shared library support. These
24034 # are reset later if shared libraries are not supported. Putting them
24035 # here allows them to be overridden if necessary.
24036 runpath_var=LD_RUN_PATH
24037 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24038 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24039 # ancient GNU ld didn't support --whole-archive et. al.
24040 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24041 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24042 else
24043 whole_archive_flag_spec_GCJ=
24044 fi
24045 supports_anon_versioning=no
24046 case `$LD -v 2>/dev/null` in
24047 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24048 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24049 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24050 *\ 2.11.*) ;; # other 2.11 versions
24051 *) supports_anon_versioning=yes ;;
24052 esac
24053
John Criswell47fdd832003-07-14 16:52:07 +000024054 # See if GNU ld supports shared libraries.
24055 case $host_os in
24056 aix3* | aix4* | aix5*)
24057 # On AIX/PPC, the GNU linker is very broken
24058 if test "$host_cpu" != ia64; then
24059 ld_shlibs_GCJ=no
24060 cat <<EOF 1>&2
24061
24062*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24063*** to be unable to reliably create shared libraries on AIX.
24064*** Therefore, libtool is disabling shared libraries support. If you
24065*** really care for shared libraries, you may want to modify your PATH
24066*** so that a non-GNU linker is found, and then restart.
24067
24068EOF
24069 fi
24070 ;;
24071
24072 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024073 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 +000024074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24075 hardcode_minus_L_GCJ=yes
24076
24077 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24078 # that the semantics of dynamic libraries on AmigaOS, at least up
24079 # to version 4, is to share data among multiple programs linked
24080 # with the same dynamic library. Since this doesn't match the
24081 # behavior of shared libraries on other platforms, we can't use
24082 # them.
24083 ld_shlibs_GCJ=no
24084 ;;
24085
24086 beos*)
24087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24088 allow_undefined_flag_GCJ=unsupported
24089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24090 # support --undefined. This deserves some investigation. FIXME
24091 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24092 else
24093 ld_shlibs_GCJ=no
24094 fi
24095 ;;
24096
24097 cygwin* | mingw* | pw32*)
24098 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24099 # as there is no search path for DLLs.
24100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24101 allow_undefined_flag_GCJ=unsupported
24102 always_export_symbols_GCJ=no
24103 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024104 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 +000024105
24106 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024107 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 +000024108 # If the export-symbols file already is a .def file (1st line
24109 # is EXPORTS), use it as is; otherwise, prepend...
24110 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24111 cp $export_symbols $output_objdir/$soname.def;
24112 else
24113 echo EXPORTS > $output_objdir/$soname.def;
24114 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024115 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024116 $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 +000024117 else
Reid Spencera773bd52006-08-04 18:18:08 +000024118 ld_shlibs_GCJ=no
24119 fi
24120 ;;
24121
24122 interix3*)
24123 hardcode_direct_GCJ=no
24124 hardcode_shlibpath_var_GCJ=no
24125 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24126 export_dynamic_flag_spec_GCJ='${wl}-E'
24127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24128 # Instead, shared libraries are loaded at an image base (0x10000000 by
24129 # default) and relocated if they conflict, which is a slow very memory
24130 # consuming and fragmenting process. To avoid this, we pick a random,
24131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24132 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24133 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'
24134 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'
24135 ;;
24136
24137 linux*)
24138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24139 tmp_addflag=
24140 case $cc_basename,$host_cpu in
24141 pgcc*) # Portland Group C compiler
24142 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'
24143 tmp_addflag=' $pic_flag'
24144 ;;
24145 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24146 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'
24147 tmp_addflag=' $pic_flag -Mnomain' ;;
24148 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24149 tmp_addflag=' -i_dynamic' ;;
24150 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24151 tmp_addflag=' -i_dynamic -nofor_main' ;;
24152 ifc* | ifort*) # Intel Fortran compiler
24153 tmp_addflag=' -nofor_main' ;;
24154 esac
24155 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24156
24157 if test $supports_anon_versioning = yes; then
24158 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24160 $echo "local: *; };" >> $output_objdir/$libname.ver~
24161 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24162 fi
24163 else
24164 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024165 fi
24166 ;;
24167
24168 netbsd*)
24169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24170 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24171 wlarc=
24172 else
24173 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24174 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24175 fi
24176 ;;
24177
Reid Spencera773bd52006-08-04 18:18:08 +000024178 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024179 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24180 ld_shlibs_GCJ=no
24181 cat <<EOF 1>&2
24182
24183*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24184*** create shared libraries on Solaris systems. Therefore, libtool
24185*** is disabling shared libraries support. We urge you to upgrade GNU
24186*** binutils to release 2.9.1 or newer. Another option is to modify
24187*** your PATH or compiler configuration so that the native linker is
24188*** used, and then restart.
24189
24190EOF
24191 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24194 else
24195 ld_shlibs_GCJ=no
24196 fi
24197 ;;
24198
Reid Spencera773bd52006-08-04 18:18:08 +000024199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24200 case `$LD -v 2>&1` in
24201 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24202 ld_shlibs_GCJ=no
24203 cat <<_LT_EOF 1>&2
24204
24205*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24206*** reliably create shared libraries on SCO systems. Therefore, libtool
24207*** is disabling shared libraries support. We urge you to upgrade GNU
24208*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24209*** your PATH or compiler configuration so that the native linker is
24210*** used, and then restart.
24211
24212_LT_EOF
24213 ;;
24214 *)
24215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24216 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24217 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24218 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24219 else
24220 ld_shlibs_GCJ=no
24221 fi
24222 ;;
24223 esac
24224 ;;
24225
John Criswell47fdd832003-07-14 16:52:07 +000024226 sunos4*)
24227 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24228 wlarc=
24229 hardcode_direct_GCJ=yes
24230 hardcode_shlibpath_var_GCJ=no
24231 ;;
24232
24233 *)
24234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24235 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24236 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24237 else
24238 ld_shlibs_GCJ=no
24239 fi
24240 ;;
24241 esac
24242
Reid Spencera773bd52006-08-04 18:18:08 +000024243 if test "$ld_shlibs_GCJ" = no; then
24244 runpath_var=
24245 hardcode_libdir_flag_spec_GCJ=
24246 export_dynamic_flag_spec_GCJ=
24247 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024248 fi
24249 else
24250 # PORTME fill in a description of your system's linker (not GNU ld)
24251 case $host_os in
24252 aix3*)
24253 allow_undefined_flag_GCJ=unsupported
24254 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024255 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 +000024256 # Note: this linker hardcodes the directories in LIBPATH if there
24257 # are no directories specified by -L.
24258 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024259 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024260 # Neither direct hardcoding nor static linking is supported with a
24261 # broken collect2.
24262 hardcode_direct_GCJ=unsupported
24263 fi
24264 ;;
24265
24266 aix4* | aix5*)
24267 if test "$host_cpu" = ia64; then
24268 # On IA64, the linker does run time linking by default, so we don't
24269 # have to do anything special.
24270 aix_use_runtimelinking=no
24271 exp_sym_flag='-Bexport'
24272 no_entry_flag=""
24273 else
24274 # If we're using GNU nm, then we don't want the "-C" option.
24275 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24276 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24277 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'
24278 else
24279 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'
24280 fi
24281 aix_use_runtimelinking=no
24282
24283 # Test if we are trying to use run time linking or normal
24284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24285 # need to do runtime linking.
24286 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24287 for ld_flag in $LDFLAGS; do
24288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24289 aix_use_runtimelinking=yes
24290 break
24291 fi
24292 done
Reid Spencera773bd52006-08-04 18:18:08 +000024293 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024294 esac
24295
24296 exp_sym_flag='-bexport'
24297 no_entry_flag='-bnoentry'
24298 fi
24299
24300 # When large executables or shared objects are built, AIX ld can
24301 # have problems creating the table of contents. If linking a library
24302 # or program results in "error TOC overflow" add -mminimal-toc to
24303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24305
24306 archive_cmds_GCJ=''
24307 hardcode_direct_GCJ=yes
24308 hardcode_libdir_separator_GCJ=':'
24309 link_all_deplibs_GCJ=yes
24310
24311 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024312 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024313 # We only want to do this on AIX 4.2 and lower, the check
24314 # below for broken collect2 doesn't work under 4.3+
24315 collect2name=`${CC} -print-prog-name=collect2`
24316 if test -f "$collect2name" && \
24317 strings "$collect2name" | grep resolve_lib_name >/dev/null
24318 then
24319 # We have reworked collect2
24320 hardcode_direct_GCJ=yes
24321 else
24322 # We have old collect2
24323 hardcode_direct_GCJ=unsupported
24324 # It fails to find uninstalled libraries when the uninstalled
24325 # path is not listed in the libpath. Setting hardcode_minus_L
24326 # to unsupported forces relinking
24327 hardcode_minus_L_GCJ=yes
24328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24329 hardcode_libdir_separator_GCJ=
24330 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024331 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024332 esac
24333 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024334 if test "$aix_use_runtimelinking" = yes; then
24335 shared_flag="$shared_flag "'${wl}-G'
24336 fi
John Criswell47fdd832003-07-14 16:52:07 +000024337 else
24338 # not using gcc
24339 if test "$host_cpu" = ia64; then
24340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24341 # chokes on -Wl,-G. The following line is correct:
24342 shared_flag='-G'
24343 else
Reid Spencera773bd52006-08-04 18:18:08 +000024344 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024345 shared_flag='${wl}-G'
24346 else
24347 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024348 fi
John Criswell47fdd832003-07-14 16:52:07 +000024349 fi
24350 fi
24351
24352 # It seems that -bexpall does not export symbols beginning with
24353 # underscore (_), so it is better to generate a list of symbols to export.
24354 always_export_symbols_GCJ=yes
24355 if test "$aix_use_runtimelinking" = yes; then
24356 # Warning - without using the other runtime loading flags (-brtl),
24357 # -berok will link without error, but may produce a broken library.
24358 allow_undefined_flag_GCJ='-berok'
24359 # Determine the default libpath from the value encoded in an empty executable.
24360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024361/* confdefs.h. */
24362_ACEOF
24363cat confdefs.h >>conftest.$ac_ext
24364cat >>conftest.$ac_ext <<_ACEOF
24365/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024366
John Criswell47fdd832003-07-14 16:52:07 +000024367int
24368main ()
24369{
24370
24371 ;
24372 return 0;
24373}
24374_ACEOF
24375rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024376if { (ac_try="$ac_link"
24377case "(($ac_try" in
24378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379 *) ac_try_echo=$ac_try;;
24380esac
24381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024383 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024384 grep -v '^ *+' conftest.er1 >conftest.err
24385 rm -f conftest.er1
24386 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24390 { (case "(($ac_try" in
24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392 *) ac_try_echo=$ac_try;;
24393esac
24394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024396 ac_status=$?
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; } &&
24399 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024400 { (case "(($ac_try" in
24401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24402 *) ac_try_echo=$ac_try;;
24403esac
24404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024406 ac_status=$?
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); }; }; then
24409
24410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24411}'`
24412# Check for a 64-bit object if we didn't find anything.
24413if 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; }
24414}'`; fi
24415else
24416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024417sed 's/^/| /' conftest.$ac_ext >&5
24418
Reid Spencera773bd52006-08-04 18:18:08 +000024419
John Criswell47fdd832003-07-14 16:52:07 +000024420fi
Reid Spencera773bd52006-08-04 18:18:08 +000024421
24422rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024423 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24425
24426 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024427 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 +000024428 else
24429 if test "$host_cpu" = ia64; then
24430 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24431 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024432 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 +000024433 else
24434 # Determine the default libpath from the value encoded in an empty executable.
24435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024436/* confdefs.h. */
24437_ACEOF
24438cat confdefs.h >>conftest.$ac_ext
24439cat >>conftest.$ac_ext <<_ACEOF
24440/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024441
John Criswell47fdd832003-07-14 16:52:07 +000024442int
24443main ()
24444{
24445
24446 ;
24447 return 0;
24448}
24449_ACEOF
24450rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024451if { (ac_try="$ac_link"
24452case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24455esac
24456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024458 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024459 grep -v '^ *+' conftest.er1 >conftest.err
24460 rm -f conftest.er1
24461 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24465 { (case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24468esac
24469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24470 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; } &&
24474 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024475 { (case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24478esac
24479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; }; then
24484
24485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24486}'`
24487# Check for a 64-bit object if we didn't find anything.
24488if 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; }
24489}'`; fi
24490else
24491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024492sed 's/^/| /' conftest.$ac_ext >&5
24493
Reid Spencera773bd52006-08-04 18:18:08 +000024494
John Criswell47fdd832003-07-14 16:52:07 +000024495fi
Reid Spencera773bd52006-08-04 18:18:08 +000024496
24497rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024498 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24500
24501 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24502 # Warning - without using the other run time loading flags,
24503 # -berok will link without error, but may produce a broken library.
24504 no_undefined_flag_GCJ=' ${wl}-bernotok'
24505 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024506 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024507 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024508 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024509 # This is similar to how AIX traditionally builds its shared libraries.
24510 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 +000024511 fi
24512 fi
24513 ;;
24514
24515 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024516 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 +000024517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24518 hardcode_minus_L_GCJ=yes
24519 # see comment about different semantics on the GNU ld section
24520 ld_shlibs_GCJ=no
24521 ;;
24522
Reid Spencer2706f8c2004-09-19 23:53:36 +000024523 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024524 export_dynamic_flag_spec_GCJ=-rdynamic
24525 ;;
24526
24527 cygwin* | mingw* | pw32*)
24528 # When not using gcc, we currently assume that we are using
24529 # Microsoft Visual C++.
24530 # hardcode_libdir_flag_spec is actually meaningless, as there is
24531 # no search path for DLLs.
24532 hardcode_libdir_flag_spec_GCJ=' '
24533 allow_undefined_flag_GCJ=unsupported
24534 # Tell ltmain to make .lib files, not .a files.
24535 libext=lib
24536 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024537 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024538 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024539 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 +000024540 # The linker will automatically build a .lib file if we build a DLL.
24541 old_archive_From_new_cmds_GCJ='true'
24542 # FIXME: Should let the user specify the lib program.
24543 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024544 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024545 enable_shared_with_static_runtimes_GCJ=yes
24546 ;;
24547
24548 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024549 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024550 rhapsody* | darwin1.[012])
24551 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24552 ;;
24553 *) # Darwin 1.3 on
24554 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24555 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24556 else
24557 case ${MACOSX_DEPLOYMENT_TARGET} in
24558 10.[012])
24559 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24560 ;;
24561 10.*)
24562 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24563 ;;
24564 esac
24565 fi
24566 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024567 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024568 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024569 hardcode_direct_GCJ=no
24570 hardcode_automatic_GCJ=yes
24571 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024572 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024573 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024574 if test "$GCC" = yes ; then
24575 output_verbose_link_cmd='echo'
24576 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24577 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024578 # 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 +000024579 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}'
24580 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 +000024581 else
Reid Spencera773bd52006-08-04 18:18:08 +000024582 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024583 xlc*)
24584 output_verbose_link_cmd='echo'
24585 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24586 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024587 # 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 +000024588 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}'
24589 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 +000024590 ;;
24591 *)
24592 ld_shlibs_GCJ=no
24593 ;;
24594 esac
John Criswell47fdd832003-07-14 16:52:07 +000024595 fi
24596 ;;
24597
24598 dgux*)
24599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24601 hardcode_shlibpath_var_GCJ=no
24602 ;;
24603
24604 freebsd1*)
24605 ld_shlibs_GCJ=no
24606 ;;
24607
24608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24609 # support. Future versions do this automatically, but an explicit c++rt0.o
24610 # does not break anything, and helps significantly (at the cost of a little
24611 # extra space).
24612 freebsd2.2*)
24613 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24614 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24615 hardcode_direct_GCJ=yes
24616 hardcode_shlibpath_var_GCJ=no
24617 ;;
24618
24619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24620 freebsd2*)
24621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24622 hardcode_direct_GCJ=yes
24623 hardcode_minus_L_GCJ=yes
24624 hardcode_shlibpath_var_GCJ=no
24625 ;;
24626
24627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024628 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024629 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24630 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24631 hardcode_direct_GCJ=yes
24632 hardcode_shlibpath_var_GCJ=no
24633 ;;
24634
24635 hpux9*)
24636 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024637 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 +000024638 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024639 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 +000024640 fi
24641 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24642 hardcode_libdir_separator_GCJ=:
24643 hardcode_direct_GCJ=yes
24644
24645 # hardcode_minus_L: Not really in the search PATH,
24646 # but as the default location of the library.
24647 hardcode_minus_L_GCJ=yes
24648 export_dynamic_flag_spec_GCJ='${wl}-E'
24649 ;;
24650
Reid Spencera773bd52006-08-04 18:18:08 +000024651 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24654 else
24655 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24656 fi
24657 if test "$with_gnu_ld" = no; then
24658 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24659 hardcode_libdir_separator_GCJ=:
24660
24661 hardcode_direct_GCJ=yes
24662 export_dynamic_flag_spec_GCJ='${wl}-E'
24663
24664 # hardcode_minus_L: Not really in the search PATH,
24665 # but as the default location of the library.
24666 hardcode_minus_L_GCJ=yes
24667 fi
24668 ;;
24669
24670 hpux11*)
24671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24672 case $host_cpu in
24673 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024674 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024676 ia64*)
24677 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24678 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024679 *)
24680 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24681 ;;
24682 esac
24683 else
Reid Spencera773bd52006-08-04 18:18:08 +000024684 case $host_cpu in
24685 hppa*64*)
24686 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24687 ;;
24688 ia64*)
24689 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024690 ;;
24691 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024692 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 +000024693 ;;
24694 esac
24695 fi
24696 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024697 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24698 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024699
Reid Spencera773bd52006-08-04 18:18:08 +000024700 case $host_cpu in
24701 hppa*64*|ia64*)
24702 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24703 hardcode_direct_GCJ=no
24704 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024705 ;;
24706 *)
John Criswell47fdd832003-07-14 16:52:07 +000024707 hardcode_direct_GCJ=yes
24708 export_dynamic_flag_spec_GCJ='${wl}-E'
24709
24710 # hardcode_minus_L: Not really in the search PATH,
24711 # but as the default location of the library.
24712 hardcode_minus_L_GCJ=yes
24713 ;;
24714 esac
24715 fi
24716 ;;
24717
24718 irix5* | irix6* | nonstopux*)
24719 if test "$GCC" = yes; then
24720 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'
24721 else
24722 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'
24723 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24724 fi
24725 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24726 hardcode_libdir_separator_GCJ=:
24727 link_all_deplibs_GCJ=yes
24728 ;;
24729
24730 netbsd*)
24731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24732 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24733 else
24734 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24735 fi
24736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24737 hardcode_direct_GCJ=yes
24738 hardcode_shlibpath_var_GCJ=no
24739 ;;
24740
24741 newsos6)
24742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24743 hardcode_direct_GCJ=yes
24744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24745 hardcode_libdir_separator_GCJ=:
24746 hardcode_shlibpath_var_GCJ=no
24747 ;;
24748
24749 openbsd*)
24750 hardcode_direct_GCJ=yes
24751 hardcode_shlibpath_var_GCJ=no
24752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24753 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024754 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 +000024755 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24756 export_dynamic_flag_spec_GCJ='${wl}-E'
24757 else
24758 case $host_os in
24759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24760 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24761 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24762 ;;
24763 *)
24764 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24765 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24766 ;;
24767 esac
24768 fi
24769 ;;
24770
24771 os2*)
24772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24773 hardcode_minus_L_GCJ=yes
24774 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024775 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 +000024776 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24777 ;;
24778
24779 osf3*)
24780 if test "$GCC" = yes; then
24781 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24782 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'
24783 else
24784 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24785 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'
24786 fi
24787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24788 hardcode_libdir_separator_GCJ=:
24789 ;;
24790
24791 osf4* | osf5*) # as osf3* with the addition of -msym flag
24792 if test "$GCC" = yes; then
24793 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24794 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'
24795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24796 else
24797 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24798 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 +000024799 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 +000024800 $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 +000024801
John Criswell47fdd832003-07-14 16:52:07 +000024802 # Both c and cxx compiler support -rpath directly
24803 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24804 fi
24805 hardcode_libdir_separator_GCJ=:
24806 ;;
24807
John Criswell47fdd832003-07-14 16:52:07 +000024808 solaris*)
24809 no_undefined_flag_GCJ=' -z text'
24810 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024811 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024812 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024813 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24814 $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 +000024815 else
Reid Spencera773bd52006-08-04 18:18:08 +000024816 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024817 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024818 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24819 $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 +000024820 fi
24821 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24822 hardcode_shlibpath_var_GCJ=no
24823 case $host_os in
24824 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024825 *)
24826 # The compiler driver will combine linker options so we
24827 # cannot just pass the convience library names through
24828 # without $wl, iff we do not link with $LD.
24829 # Luckily, gcc supports the same syntax we need for Sun Studio.
24830 # Supported since Solaris 2.6 (maybe 2.5.1?)
24831 case $wlarc in
24832 '')
24833 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24834 *)
24835 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' ;;
24836 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024837 esac
24838 link_all_deplibs_GCJ=yes
24839 ;;
24840
24841 sunos4*)
24842 if test "x$host_vendor" = xsequent; then
24843 # Use $CC to link under sequent, because it throws in some extra .o
24844 # files that make .init and .fini sections work.
24845 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24846 else
24847 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24848 fi
24849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24850 hardcode_direct_GCJ=yes
24851 hardcode_minus_L_GCJ=yes
24852 hardcode_shlibpath_var_GCJ=no
24853 ;;
24854
24855 sysv4)
24856 case $host_vendor in
24857 sni)
24858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24859 hardcode_direct_GCJ=yes # is this really true???
24860 ;;
24861 siemens)
24862 ## LD is ld it makes a PLAMLIB
24863 ## CC just makes a GrossModule.
24864 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24865 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24866 hardcode_direct_GCJ=no
24867 ;;
24868 motorola)
24869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24870 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24871 ;;
24872 esac
24873 runpath_var='LD_RUN_PATH'
24874 hardcode_shlibpath_var_GCJ=no
24875 ;;
24876
24877 sysv4.3*)
24878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24879 hardcode_shlibpath_var_GCJ=no
24880 export_dynamic_flag_spec_GCJ='-Bexport'
24881 ;;
24882
24883 sysv4*MP*)
24884 if test -d /usr/nec; then
24885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24886 hardcode_shlibpath_var_GCJ=no
24887 runpath_var=LD_RUN_PATH
24888 hardcode_runpath_var=yes
24889 ld_shlibs_GCJ=yes
24890 fi
24891 ;;
24892
Reid Spencera773bd52006-08-04 18:18:08 +000024893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24894 no_undefined_flag_GCJ='${wl}-z,text'
24895 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024896 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024897 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024898
John Criswell47fdd832003-07-14 16:52:07 +000024899 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024900 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24901 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 +000024902 else
Reid Spencera773bd52006-08-04 18:18:08 +000024903 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24904 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 +000024905 fi
John Criswell47fdd832003-07-14 16:52:07 +000024906 ;;
24907
Reid Spencera773bd52006-08-04 18:18:08 +000024908 sysv5* | sco3.2v5* | sco5v6*)
24909 # Note: We can NOT use -z defs as we might desire, because we do not
24910 # link with -lc, and that would cause any symbols used from libc to
24911 # always be unresolved, which means just about no library would
24912 # ever link correctly. If we're not using GNU ld we use -z text
24913 # though, which does catch some bad symbols but isn't as heavy-handed
24914 # as -z defs.
24915 no_undefined_flag_GCJ='${wl}-z,text'
24916 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24917 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024918 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024919 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24920 hardcode_libdir_separator_GCJ=':'
24921 link_all_deplibs_GCJ=yes
24922 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024923 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024924
24925 if test "$GCC" = yes; then
24926 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24927 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24928 else
24929 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24930 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24931 fi
John Criswell47fdd832003-07-14 16:52:07 +000024932 ;;
24933
24934 uts4*)
24935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24937 hardcode_shlibpath_var_GCJ=no
24938 ;;
24939
24940 *)
24941 ld_shlibs_GCJ=no
24942 ;;
24943 esac
24944 fi
24945
Reid Spencera773bd52006-08-04 18:18:08 +000024946{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24947echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024948test "$ld_shlibs_GCJ" = no && can_build_shared=no
24949
John Criswell47fdd832003-07-14 16:52:07 +000024950#
24951# Do we need to explicitly link libc?
24952#
24953case "x$archive_cmds_need_lc_GCJ" in
24954x|xyes)
24955 # Assume -lc should be added
24956 archive_cmds_need_lc_GCJ=yes
24957
24958 if test "$enable_shared" = yes && test "$GCC" = yes; then
24959 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024960 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024961 # FIXME: we may have to deal with multi-command sequences.
24962 ;;
24963 '$CC '*)
24964 # Test whether the compiler implicitly links with -lc since on some
24965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24966 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024967 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024969 $rm conftest*
24970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24971
24972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24973 (eval $ac_compile) 2>&5
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } 2>conftest.err; then
24977 soname=conftest
24978 lib=conftest
24979 libobjs=conftest.$ac_objext
24980 deplibs=
24981 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024982 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024983 compiler_flags=-v
24984 linker_flags=-v
24985 verstring=
24986 output_objdir=.
24987 libname=conftest
24988 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24989 allow_undefined_flag_GCJ=
24990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24991 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24992 ac_status=$?
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }
24995 then
24996 archive_cmds_need_lc_GCJ=no
24997 else
24998 archive_cmds_need_lc_GCJ=yes
24999 fi
25000 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25001 else
25002 cat conftest.err 1>&5
25003 fi
25004 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025005 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25006echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025007 ;;
25008 esac
25009 fi
25010 ;;
25011esac
25012
Reid Spencera773bd52006-08-04 18:18:08 +000025013{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25014echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025015library_names_spec=
25016libname_spec='lib$name'
25017soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025018shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025019postinstall_cmds=
25020postuninstall_cmds=
25021finish_cmds=
25022finish_eval=
25023shlibpath_var=
25024shlibpath_overrides_runpath=unknown
25025version_type=none
25026dynamic_linker="$host_os ld.so"
25027sys_lib_dlsearch_path_spec="/lib /usr/lib"
25028if test "$GCC" = yes; then
25029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25031 # if the path contains ";" then we assume it to be the separator
25032 # otherwise default to the standard path separator (i.e. ":") - it is
25033 # assumed that no part of a normal pathname contains ";" but that should
25034 # okay in the real world where ";" in dirpaths is itself problematic.
25035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25036 else
25037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25038 fi
25039else
25040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25041fi
25042need_lib_prefix=unknown
25043hardcode_into_libs=no
25044
25045# when you set need_version to no, make sure it does not cause -set_version
25046# flags to be left without arguments
25047need_version=unknown
25048
25049case $host_os in
25050aix3*)
25051 version_type=linux
25052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25053 shlibpath_var=LIBPATH
25054
25055 # AIX 3 has no versioning support, so we append a major version to the name.
25056 soname_spec='${libname}${release}${shared_ext}$major'
25057 ;;
25058
25059aix4* | aix5*)
25060 version_type=linux
25061 need_lib_prefix=no
25062 need_version=no
25063 hardcode_into_libs=yes
25064 if test "$host_cpu" = ia64; then
25065 # AIX 5 supports IA64
25066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25067 shlibpath_var=LD_LIBRARY_PATH
25068 else
25069 # With GCC up to 2.95.x, collect2 would create an import file
25070 # for dependence libraries. The import file would start with
25071 # the line `#! .'. This would cause the generated library to
25072 # depend on `.', always an invalid library. This was fixed in
25073 # development snapshots of GCC prior to 3.0.
25074 case $host_os in
25075 aix4 | aix4.[01] | aix4.[01].*)
25076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25077 echo ' yes '
25078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25079 :
25080 else
25081 can_build_shared=no
25082 fi
25083 ;;
25084 esac
25085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25086 # soname into executable. Probably we can add versioning support to
25087 # collect2, so additional links can be useful in future.
25088 if test "$aix_use_runtimelinking" = yes; then
25089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25090 # instead of lib<name>.a to let people know that these are not
25091 # typical AIX shared libraries.
25092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25093 else
25094 # We preserve .a as extension for shared libraries through AIX4.2
25095 # and later when we are not doing run time linking.
25096 library_names_spec='${libname}${release}.a $libname.a'
25097 soname_spec='${libname}${release}${shared_ext}$major'
25098 fi
25099 shlibpath_var=LIBPATH
25100 fi
25101 ;;
25102
25103amigaos*)
25104 library_names_spec='$libname.ixlibrary $libname.a'
25105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025106 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 +000025107 ;;
25108
25109beos*)
25110 library_names_spec='${libname}${shared_ext}'
25111 dynamic_linker="$host_os ld.so"
25112 shlibpath_var=LIBRARY_PATH
25113 ;;
25114
Reid Spencer2706f8c2004-09-19 23:53:36 +000025115bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025116 version_type=linux
25117 need_version=no
25118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25119 soname_spec='${libname}${release}${shared_ext}$major'
25120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25121 shlibpath_var=LD_LIBRARY_PATH
25122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25124 # the default ld.so.conf also contains /usr/contrib/lib and
25125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25126 # libtool to hard-code these into programs
25127 ;;
25128
25129cygwin* | mingw* | pw32*)
25130 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025131 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025132 need_version=no
25133 need_lib_prefix=no
25134
25135 case $GCC,$host_os in
25136 yes,cygwin* | yes,mingw* | yes,pw32*)
25137 library_names_spec='$libname.dll.a'
25138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025139 postinstall_cmds='base_file=`basename \${file}`~
25140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25141 dldir=$destdir/`dirname \$dlpath`~
25142 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025143 $install_prog $dir/$dlname \$dldir/$dlname~
25144 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25146 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025147 $rm \$dlpath'
25148 shlibpath_overrides_runpath=yes
25149
25150 case $host_os in
25151 cygwin*)
25152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25153 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 +000025154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025155 ;;
25156 mingw*)
25157 # MinGW DLLs use traditional 'lib' prefix
25158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25161 # It is most probably a Windows format PATH printed by
25162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25163 # path with ; separators, and with drive letters. We can handle the
25164 # drive letters (cygwin fileutils understands them), so leave them,
25165 # especially as we might pass files found there to a mingw objdump,
25166 # which wouldn't understand a cygwinified path. Ahh.
25167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25168 else
25169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25170 fi
25171 ;;
25172 pw32*)
25173 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025174 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 +000025175 ;;
25176 esac
25177 ;;
25178
25179 *)
25180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25181 ;;
25182 esac
25183 dynamic_linker='Win32 ld.exe'
25184 # FIXME: first we should search . and the directory the executable is in
25185 shlibpath_var=PATH
25186 ;;
25187
25188darwin* | rhapsody*)
25189 dynamic_linker="$host_os dyld"
25190 version_type=darwin
25191 need_lib_prefix=no
25192 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025194 soname_spec='${libname}${release}${major}$shared_ext'
25195 shlibpath_overrides_runpath=yes
25196 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025197 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025199 if test "$GCC" = yes; then
25200 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"`
25201 else
25202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025203 fi
25204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25205 ;;
25206
25207dgux*)
25208 version_type=linux
25209 need_lib_prefix=no
25210 need_version=no
25211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25212 soname_spec='${libname}${release}${shared_ext}$major'
25213 shlibpath_var=LD_LIBRARY_PATH
25214 ;;
25215
25216freebsd1*)
25217 dynamic_linker=no
25218 ;;
25219
Reid Spencer2706f8c2004-09-19 23:53:36 +000025220kfreebsd*-gnu)
25221 version_type=linux
25222 need_lib_prefix=no
25223 need_version=no
25224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25225 soname_spec='${libname}${release}${shared_ext}$major'
25226 shlibpath_var=LD_LIBRARY_PATH
25227 shlibpath_overrides_runpath=no
25228 hardcode_into_libs=yes
25229 dynamic_linker='GNU ld.so'
25230 ;;
25231
Reid Spencera773bd52006-08-04 18:18:08 +000025232freebsd* | dragonfly*)
25233 # DragonFly does not have aout. When/if they implement a new
25234 # versioning mechanism, adjust this.
25235 if test -x /usr/bin/objformat; then
25236 objformat=`/usr/bin/objformat`
25237 else
25238 case $host_os in
25239 freebsd[123]*) objformat=aout ;;
25240 *) objformat=elf ;;
25241 esac
25242 fi
John Criswell47fdd832003-07-14 16:52:07 +000025243 version_type=freebsd-$objformat
25244 case $version_type in
25245 freebsd-elf*)
25246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25247 need_version=no
25248 need_lib_prefix=no
25249 ;;
25250 freebsd-*)
25251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25252 need_version=yes
25253 ;;
25254 esac
25255 shlibpath_var=LD_LIBRARY_PATH
25256 case $host_os in
25257 freebsd2*)
25258 shlibpath_overrides_runpath=yes
25259 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025260 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025261 shlibpath_overrides_runpath=yes
25262 hardcode_into_libs=yes
25263 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025266 shlibpath_overrides_runpath=no
25267 hardcode_into_libs=yes
25268 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025269 freebsd*) # from 4.6 on
25270 shlibpath_overrides_runpath=yes
25271 hardcode_into_libs=yes
25272 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025273 esac
25274 ;;
25275
25276gnu*)
25277 version_type=linux
25278 need_lib_prefix=no
25279 need_version=no
25280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25281 soname_spec='${libname}${release}${shared_ext}$major'
25282 shlibpath_var=LD_LIBRARY_PATH
25283 hardcode_into_libs=yes
25284 ;;
25285
25286hpux9* | hpux10* | hpux11*)
25287 # Give a soname corresponding to the major version so that dld.sl refuses to
25288 # link against other versions.
25289 version_type=sunos
25290 need_lib_prefix=no
25291 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025292 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025293 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025294 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025295 hardcode_into_libs=yes
25296 dynamic_linker="$host_os dld.so"
25297 shlibpath_var=LD_LIBRARY_PATH
25298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25300 soname_spec='${libname}${release}${shared_ext}$major'
25301 if test "X$HPUX_IA64_MODE" = X32; then
25302 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25303 else
25304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25305 fi
25306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25307 ;;
25308 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025309 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025310 hardcode_into_libs=yes
25311 dynamic_linker="$host_os dld.sl"
25312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25315 soname_spec='${libname}${release}${shared_ext}$major'
25316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25318 ;;
25319 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025320 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025321 dynamic_linker="$host_os dld.sl"
25322 shlibpath_var=SHLIB_PATH
25323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25325 soname_spec='${libname}${release}${shared_ext}$major'
25326 ;;
25327 esac
25328 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25329 postinstall_cmds='chmod 555 $lib'
25330 ;;
25331
Reid Spencera773bd52006-08-04 18:18:08 +000025332interix3*)
25333 version_type=linux
25334 need_lib_prefix=no
25335 need_version=no
25336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25337 soname_spec='${libname}${release}${shared_ext}$major'
25338 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25339 shlibpath_var=LD_LIBRARY_PATH
25340 shlibpath_overrides_runpath=no
25341 hardcode_into_libs=yes
25342 ;;
25343
John Criswell47fdd832003-07-14 16:52:07 +000025344irix5* | irix6* | nonstopux*)
25345 case $host_os in
25346 nonstopux*) version_type=nonstopux ;;
25347 *)
25348 if test "$lt_cv_prog_gnu_ld" = yes; then
25349 version_type=linux
25350 else
25351 version_type=irix
25352 fi ;;
25353 esac
25354 need_lib_prefix=no
25355 need_version=no
25356 soname_spec='${libname}${release}${shared_ext}$major'
25357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25358 case $host_os in
25359 irix5* | nonstopux*)
25360 libsuff= shlibsuff=
25361 ;;
25362 *)
25363 case $LD in # libtool.m4 will add one of these switches to LD
25364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25365 libsuff= shlibsuff= libmagic=32-bit;;
25366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25367 libsuff=32 shlibsuff=N32 libmagic=N32;;
25368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25370 *) libsuff= shlibsuff= libmagic=never-match;;
25371 esac
25372 ;;
25373 esac
25374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25375 shlibpath_overrides_runpath=no
25376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25378 hardcode_into_libs=yes
25379 ;;
25380
25381# No shared lib support for Linux oldld, aout, or coff.
25382linux*oldld* | linux*aout* | linux*coff*)
25383 dynamic_linker=no
25384 ;;
25385
25386# This must be Linux ELF.
25387linux*)
25388 version_type=linux
25389 need_lib_prefix=no
25390 need_version=no
25391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392 soname_spec='${libname}${release}${shared_ext}$major'
25393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25394 shlibpath_var=LD_LIBRARY_PATH
25395 shlibpath_overrides_runpath=no
25396 # This implies no fast_install, which is unacceptable.
25397 # Some rework will be needed to allow for fast_install
25398 # before this can be enabled.
25399 hardcode_into_libs=yes
25400
Reid Spencer2706f8c2004-09-19 23:53:36 +000025401 # Append ld.so.conf contents to the search path
25402 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025403 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 +000025404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25405 fi
25406
John Criswell47fdd832003-07-14 16:52:07 +000025407 # We used to test for /lib/ld.so.1 and disable shared libraries on
25408 # powerpc, because MkLinux only supported shared libraries with the
25409 # GNU dynamic linker. Since this was broken with cross compilers,
25410 # most powerpc-linux boxes support dynamic linking these days and
25411 # people can always --disable-shared, the test was removed, and we
25412 # assume the GNU/Linux dynamic linker is in use.
25413 dynamic_linker='GNU/Linux ld.so'
25414 ;;
25415
Reid Spencer2706f8c2004-09-19 23:53:36 +000025416knetbsd*-gnu)
25417 version_type=linux
25418 need_lib_prefix=no
25419 need_version=no
25420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25421 soname_spec='${libname}${release}${shared_ext}$major'
25422 shlibpath_var=LD_LIBRARY_PATH
25423 shlibpath_overrides_runpath=no
25424 hardcode_into_libs=yes
25425 dynamic_linker='GNU ld.so'
25426 ;;
25427
John Criswell47fdd832003-07-14 16:52:07 +000025428netbsd*)
25429 version_type=sunos
25430 need_lib_prefix=no
25431 need_version=no
25432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25435 dynamic_linker='NetBSD (a.out) ld.so'
25436 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025438 soname_spec='${libname}${release}${shared_ext}$major'
25439 dynamic_linker='NetBSD ld.elf_so'
25440 fi
25441 shlibpath_var=LD_LIBRARY_PATH
25442 shlibpath_overrides_runpath=yes
25443 hardcode_into_libs=yes
25444 ;;
25445
25446newsos6)
25447 version_type=linux
25448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25449 shlibpath_var=LD_LIBRARY_PATH
25450 shlibpath_overrides_runpath=yes
25451 ;;
25452
Reid Spencer2706f8c2004-09-19 23:53:36 +000025453nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025454 version_type=linux
25455 need_lib_prefix=no
25456 need_version=no
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25458 soname_spec='${libname}${release}${shared_ext}$major'
25459 shlibpath_var=LD_LIBRARY_PATH
25460 shlibpath_overrides_runpath=yes
25461 ;;
25462
25463openbsd*)
25464 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025465 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025466 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25468 case $host_os in
25469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25470 *) need_version=no ;;
25471 esac
John Criswell47fdd832003-07-14 16:52:07 +000025472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25474 shlibpath_var=LD_LIBRARY_PATH
25475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25476 case $host_os in
25477 openbsd2.[89] | openbsd2.[89].*)
25478 shlibpath_overrides_runpath=no
25479 ;;
25480 *)
25481 shlibpath_overrides_runpath=yes
25482 ;;
25483 esac
25484 else
25485 shlibpath_overrides_runpath=yes
25486 fi
25487 ;;
25488
25489os2*)
25490 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025491 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025492 need_lib_prefix=no
25493 library_names_spec='$libname${shared_ext} $libname.a'
25494 dynamic_linker='OS/2 ld.exe'
25495 shlibpath_var=LIBPATH
25496 ;;
25497
25498osf3* | osf4* | osf5*)
25499 version_type=osf
25500 need_lib_prefix=no
25501 need_version=no
25502 soname_spec='${libname}${release}${shared_ext}$major'
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 shlibpath_var=LD_LIBRARY_PATH
25505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25507 ;;
25508
John Criswell47fdd832003-07-14 16:52:07 +000025509solaris*)
25510 version_type=linux
25511 need_lib_prefix=no
25512 need_version=no
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25514 soname_spec='${libname}${release}${shared_ext}$major'
25515 shlibpath_var=LD_LIBRARY_PATH
25516 shlibpath_overrides_runpath=yes
25517 hardcode_into_libs=yes
25518 # ldd complains unless libraries are executable
25519 postinstall_cmds='chmod +x $lib'
25520 ;;
25521
25522sunos4*)
25523 version_type=sunos
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25526 shlibpath_var=LD_LIBRARY_PATH
25527 shlibpath_overrides_runpath=yes
25528 if test "$with_gnu_ld" = yes; then
25529 need_lib_prefix=no
25530 fi
25531 need_version=yes
25532 ;;
25533
Reid Spencera773bd52006-08-04 18:18:08 +000025534sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025535 version_type=linux
25536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25537 soname_spec='${libname}${release}${shared_ext}$major'
25538 shlibpath_var=LD_LIBRARY_PATH
25539 case $host_vendor in
25540 sni)
25541 shlibpath_overrides_runpath=no
25542 need_lib_prefix=no
25543 export_dynamic_flag_spec='${wl}-Blargedynsym'
25544 runpath_var=LD_RUN_PATH
25545 ;;
25546 siemens)
25547 need_lib_prefix=no
25548 ;;
25549 motorola)
25550 need_lib_prefix=no
25551 need_version=no
25552 shlibpath_overrides_runpath=no
25553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25554 ;;
25555 esac
25556 ;;
25557
25558sysv4*MP*)
25559 if test -d /usr/nec ;then
25560 version_type=linux
25561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25562 soname_spec='$libname${shared_ext}.$major'
25563 shlibpath_var=LD_LIBRARY_PATH
25564 fi
25565 ;;
25566
Reid Spencera773bd52006-08-04 18:18:08 +000025567sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25568 version_type=freebsd-elf
25569 need_lib_prefix=no
25570 need_version=no
25571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25572 soname_spec='${libname}${release}${shared_ext}$major'
25573 shlibpath_var=LD_LIBRARY_PATH
25574 hardcode_into_libs=yes
25575 if test "$with_gnu_ld" = yes; then
25576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25577 shlibpath_overrides_runpath=no
25578 else
25579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25580 shlibpath_overrides_runpath=yes
25581 case $host_os in
25582 sco3.2v5*)
25583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25584 ;;
25585 esac
25586 fi
25587 sys_lib_dlsearch_path_spec='/usr/lib'
25588 ;;
25589
John Criswell47fdd832003-07-14 16:52:07 +000025590uts4*)
25591 version_type=linux
25592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25593 soname_spec='${libname}${release}${shared_ext}$major'
25594 shlibpath_var=LD_LIBRARY_PATH
25595 ;;
25596
25597*)
25598 dynamic_linker=no
25599 ;;
25600esac
Reid Spencera773bd52006-08-04 18:18:08 +000025601{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25602echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025603test "$dynamic_linker" = no && can_build_shared=no
25604
Reid Spencera773bd52006-08-04 18:18:08 +000025605variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25606if test "$GCC" = yes; then
25607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25608fi
25609
25610{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25611echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025612hardcode_action_GCJ=
25613if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25614 test -n "$runpath_var_GCJ" || \
25615 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25616
25617 # We can hardcode non-existant directories.
25618 if test "$hardcode_direct_GCJ" != no &&
25619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25620 # have to relink, otherwise we might link with an installed library
25621 # when we should be linking with a yet-to-be-installed one
25622 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25623 test "$hardcode_minus_L_GCJ" != no; then
25624 # Linking always hardcodes the temporary library directory.
25625 hardcode_action_GCJ=relink
25626 else
25627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25628 hardcode_action_GCJ=immediate
25629 fi
25630else
25631 # We cannot hardcode anything, or else we can only hardcode existing
25632 # directories.
25633 hardcode_action_GCJ=unsupported
25634fi
Reid Spencera773bd52006-08-04 18:18:08 +000025635{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25636echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025637
25638if test "$hardcode_action_GCJ" = relink; then
25639 # Fast installation is not supported
25640 enable_fast_install=no
25641elif test "$shlibpath_overrides_runpath" = yes ||
25642 test "$enable_shared" = no; then
25643 # Fast installation is not necessary
25644 enable_fast_install=needless
25645fi
25646
John Criswell47fdd832003-07-14 16:52:07 +000025647
25648# The else clause should only fire when bootstrapping the
25649# libtool distribution, otherwise you forgot to ship ltmain.sh
25650# with your package, and you will get complaints that there are
25651# no rules to generate ltmain.sh.
25652if test -f "$ltmain"; then
25653 # See if we are running on zsh, and set the options which allow our commands through
25654 # without removal of \ escapes.
25655 if test -n "${ZSH_VERSION+set}" ; then
25656 setopt NO_GLOB_SUBST
25657 fi
25658 # Now quote all the things that may contain metacharacters while being
25659 # careful not to overquote the AC_SUBSTed values. We take copies of the
25660 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025661 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 +000025662 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025663 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25664 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25665 deplibs_check_method reload_flag reload_cmds need_locks \
25666 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25667 lt_cv_sys_global_symbol_to_c_name_address \
25668 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25669 old_postinstall_cmds old_postuninstall_cmds \
25670 compiler_GCJ \
25671 CC_GCJ \
25672 LD_GCJ \
25673 lt_prog_compiler_wl_GCJ \
25674 lt_prog_compiler_pic_GCJ \
25675 lt_prog_compiler_static_GCJ \
25676 lt_prog_compiler_no_builtin_flag_GCJ \
25677 export_dynamic_flag_spec_GCJ \
25678 thread_safe_flag_spec_GCJ \
25679 whole_archive_flag_spec_GCJ \
25680 enable_shared_with_static_runtimes_GCJ \
25681 old_archive_cmds_GCJ \
25682 old_archive_from_new_cmds_GCJ \
25683 predep_objects_GCJ \
25684 postdep_objects_GCJ \
25685 predeps_GCJ \
25686 postdeps_GCJ \
25687 compiler_lib_search_path_GCJ \
25688 archive_cmds_GCJ \
25689 archive_expsym_cmds_GCJ \
25690 postinstall_cmds_GCJ \
25691 postuninstall_cmds_GCJ \
25692 old_archive_from_expsyms_cmds_GCJ \
25693 allow_undefined_flag_GCJ \
25694 no_undefined_flag_GCJ \
25695 export_symbols_cmds_GCJ \
25696 hardcode_libdir_flag_spec_GCJ \
25697 hardcode_libdir_flag_spec_ld_GCJ \
25698 hardcode_libdir_separator_GCJ \
25699 hardcode_automatic_GCJ \
25700 module_cmds_GCJ \
25701 module_expsym_cmds_GCJ \
25702 lt_cv_prog_compiler_c_o_GCJ \
25703 exclude_expsyms_GCJ \
25704 include_expsyms_GCJ; do
25705
25706 case $var in
25707 old_archive_cmds_GCJ | \
25708 old_archive_from_new_cmds_GCJ | \
25709 archive_cmds_GCJ | \
25710 archive_expsym_cmds_GCJ | \
25711 module_cmds_GCJ | \
25712 module_expsym_cmds_GCJ | \
25713 old_archive_from_expsyms_cmds_GCJ | \
25714 export_symbols_cmds_GCJ | \
25715 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25716 postinstall_cmds | postuninstall_cmds | \
25717 old_postinstall_cmds | old_postuninstall_cmds | \
25718 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25719 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025720 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 +000025721 ;;
25722 *)
25723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25724 ;;
25725 esac
25726 done
25727
25728 case $lt_echo in
25729 *'\$0 --fallback-echo"')
25730 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25731 ;;
25732 esac
25733
25734cfgfile="$ofile"
25735
25736 cat <<__EOF__ >> "$cfgfile"
25737# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25738
25739# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25740
25741# Shell to use when invoking shell scripts.
25742SHELL=$lt_SHELL
25743
25744# Whether or not to build shared libraries.
25745build_libtool_libs=$enable_shared
25746
25747# Whether or not to build static libraries.
25748build_old_libs=$enable_static
25749
25750# Whether or not to add -lc for building shared libraries.
25751build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25752
25753# Whether or not to disallow shared libs when runtime libs are static
25754allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25755
25756# Whether or not to optimize for fast installation.
25757fast_install=$enable_fast_install
25758
25759# The host system.
25760host_alias=$host_alias
25761host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025762host_os=$host_os
25763
25764# The build system.
25765build_alias=$build_alias
25766build=$build
25767build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025768
25769# An echo program that does not interpret backslashes.
25770echo=$lt_echo
25771
25772# The archiver.
25773AR=$lt_AR
25774AR_FLAGS=$lt_AR_FLAGS
25775
25776# A C compiler.
25777LTCC=$lt_LTCC
25778
Reid Spencera773bd52006-08-04 18:18:08 +000025779# LTCC compiler flags.
25780LTCFLAGS=$lt_LTCFLAGS
25781
John Criswell47fdd832003-07-14 16:52:07 +000025782# A language-specific compiler.
25783CC=$lt_compiler_GCJ
25784
25785# Is the compiler the GNU C compiler?
25786with_gcc=$GCC_GCJ
25787
25788# An ERE matcher.
25789EGREP=$lt_EGREP
25790
25791# The linker used to build libraries.
25792LD=$lt_LD_GCJ
25793
25794# Whether we need hard or soft links.
25795LN_S=$lt_LN_S
25796
25797# A BSD-compatible nm program.
25798NM=$lt_NM
25799
25800# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025801STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025802
25803# Used to examine libraries when file_magic_cmd begins "file"
25804MAGIC_CMD=$MAGIC_CMD
25805
25806# Used on cygwin: DLL creation program.
25807DLLTOOL="$DLLTOOL"
25808
25809# Used on cygwin: object dumper.
25810OBJDUMP="$OBJDUMP"
25811
25812# Used on cygwin: assembler.
25813AS="$AS"
25814
25815# The name of the directory that contains temporary libtool files.
25816objdir=$objdir
25817
25818# How to create reloadable object files.
25819reload_flag=$lt_reload_flag
25820reload_cmds=$lt_reload_cmds
25821
25822# How to pass a linker flag through the compiler.
25823wl=$lt_lt_prog_compiler_wl_GCJ
25824
25825# Object file suffix (normally "o").
25826objext="$ac_objext"
25827
25828# Old archive suffix (normally "a").
25829libext="$libext"
25830
25831# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025832shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025833
25834# Executable file suffix (normally "").
25835exeext="$exeext"
25836
25837# Additional compiler flags for building library objects.
25838pic_flag=$lt_lt_prog_compiler_pic_GCJ
25839pic_mode=$pic_mode
25840
25841# What is the maximum length of a command?
25842max_cmd_len=$lt_cv_sys_max_cmd_len
25843
25844# Does compiler simultaneously support -c and -o options?
25845compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25846
Reid Spencera773bd52006-08-04 18:18:08 +000025847# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025848need_locks=$lt_need_locks
25849
25850# Do we need the lib prefix for modules?
25851need_lib_prefix=$need_lib_prefix
25852
25853# Do we need a version for libraries?
25854need_version=$need_version
25855
25856# Whether dlopen is supported.
25857dlopen_support=$enable_dlopen
25858
25859# Whether dlopen of programs is supported.
25860dlopen_self=$enable_dlopen_self
25861
25862# Whether dlopen of statically linked programs is supported.
25863dlopen_self_static=$enable_dlopen_self_static
25864
25865# Compiler flag to prevent dynamic linking.
25866link_static_flag=$lt_lt_prog_compiler_static_GCJ
25867
25868# Compiler flag to turn off builtin functions.
25869no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25870
25871# Compiler flag to allow reflexive dlopens.
25872export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25873
25874# Compiler flag to generate shared objects directly from archives.
25875whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25876
25877# Compiler flag to generate thread-safe objects.
25878thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25879
25880# Library versioning type.
25881version_type=$version_type
25882
25883# Format of library name prefix.
25884libname_spec=$lt_libname_spec
25885
25886# List of archive names. First name is the real one, the rest are links.
25887# The last name is the one that the linker finds with -lNAME.
25888library_names_spec=$lt_library_names_spec
25889
25890# The coded name of the library, if different from the real name.
25891soname_spec=$lt_soname_spec
25892
25893# Commands used to build and install an old-style archive.
25894RANLIB=$lt_RANLIB
25895old_archive_cmds=$lt_old_archive_cmds_GCJ
25896old_postinstall_cmds=$lt_old_postinstall_cmds
25897old_postuninstall_cmds=$lt_old_postuninstall_cmds
25898
25899# Create an old-style archive from a shared archive.
25900old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25901
25902# Create a temporary old-style archive to link instead of a shared archive.
25903old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25904
25905# Commands used to build and install a shared archive.
25906archive_cmds=$lt_archive_cmds_GCJ
25907archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25908postinstall_cmds=$lt_postinstall_cmds
25909postuninstall_cmds=$lt_postuninstall_cmds
25910
25911# Commands used to build a loadable module (assumed same as above if empty)
25912module_cmds=$lt_module_cmds_GCJ
25913module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25914
25915# Commands to strip libraries.
25916old_striplib=$lt_old_striplib
25917striplib=$lt_striplib
25918
25919# Dependencies to place before the objects being linked to create a
25920# shared library.
25921predep_objects=$lt_predep_objects_GCJ
25922
25923# Dependencies to place after the objects being linked to create a
25924# shared library.
25925postdep_objects=$lt_postdep_objects_GCJ
25926
25927# Dependencies to place before the objects being linked to create a
25928# shared library.
25929predeps=$lt_predeps_GCJ
25930
25931# Dependencies to place after the objects being linked to create a
25932# shared library.
25933postdeps=$lt_postdeps_GCJ
25934
25935# The library search path used internally by the compiler when linking
25936# a shared library.
25937compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25938
25939# Method to check whether dependent libraries are shared objects.
25940deplibs_check_method=$lt_deplibs_check_method
25941
25942# Command to use when deplibs_check_method == file_magic.
25943file_magic_cmd=$lt_file_magic_cmd
25944
25945# Flag that allows shared libraries with undefined symbols to be built.
25946allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25947
25948# Flag that forces no undefined symbols.
25949no_undefined_flag=$lt_no_undefined_flag_GCJ
25950
25951# Commands used to finish a libtool library installation in a directory.
25952finish_cmds=$lt_finish_cmds
25953
25954# Same as above, but a single script fragment to be evaled but not shown.
25955finish_eval=$lt_finish_eval
25956
25957# Take the output of nm and produce a listing of raw symbols and C names.
25958global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25959
25960# Transform the output of nm in a proper C declaration
25961global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25962
25963# Transform the output of nm in a C name address pair
25964global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25965
25966# This is the shared library runtime path variable.
25967runpath_var=$runpath_var
25968
25969# This is the shared library path variable.
25970shlibpath_var=$shlibpath_var
25971
25972# Is shlibpath searched before the hard-coded library search path?
25973shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25974
25975# How to hardcode a shared library path into an executable.
25976hardcode_action=$hardcode_action_GCJ
25977
25978# Whether we should hardcode library paths into libraries.
25979hardcode_into_libs=$hardcode_into_libs
25980
25981# Flag to hardcode \$libdir into a binary during linking.
25982# This must work even if \$libdir does not exist.
25983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25984
25985# If ld is used when linking, flag to hardcode \$libdir into
25986# a binary during linking. This must work even if \$libdir does
25987# not exist.
25988hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25989
25990# Whether we need a single -rpath flag with a separated argument.
25991hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25992
25993# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25994# resulting binary.
25995hardcode_direct=$hardcode_direct_GCJ
25996
25997# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25998# resulting binary.
25999hardcode_minus_L=$hardcode_minus_L_GCJ
26000
26001# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26002# the resulting binary.
26003hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26004
26005# Set to yes if building a shared library automatically hardcodes DIR into the library
26006# and all subsequent libraries and executables linked against it.
26007hardcode_automatic=$hardcode_automatic_GCJ
26008
26009# Variables whose values should be saved in libtool wrapper scripts and
26010# restored at relink time.
26011variables_saved_for_relink="$variables_saved_for_relink"
26012
26013# Whether libtool must link a program against all its dependency libraries.
26014link_all_deplibs=$link_all_deplibs_GCJ
26015
26016# Compile-time system search path for libraries
26017sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26018
26019# Run-time system search path for libraries
26020sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26021
26022# Fix the shell variable \$srcfile for the compiler.
26023fix_srcfile_path="$fix_srcfile_path_GCJ"
26024
26025# Set to yes if exported symbols are required.
26026always_export_symbols=$always_export_symbols_GCJ
26027
26028# The commands to list exported symbols.
26029export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26030
26031# The commands to extract the exported symbol list from a shared archive.
26032extract_expsyms_cmds=$lt_extract_expsyms_cmds
26033
26034# Symbols that should not be listed in the preloaded symbols.
26035exclude_expsyms=$lt_exclude_expsyms_GCJ
26036
26037# Symbols that must always be exported.
26038include_expsyms=$lt_include_expsyms_GCJ
26039
26040# ### END LIBTOOL TAG CONFIG: $tagname
26041
26042__EOF__
26043
26044
26045else
26046 # If there is no Makefile yet, we rely on a make rule to execute
26047 # `config.status --recheck' to rerun these tests and create the
26048 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026049 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26050 if test -f "$ltmain_in"; then
26051 test -f Makefile && make "$ltmain"
26052 fi
John Criswell47fdd832003-07-14 16:52:07 +000026053fi
26054
26055
26056ac_ext=c
26057ac_cpp='$CPP $CPPFLAGS'
26058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26060ac_compiler_gnu=$ac_cv_c_compiler_gnu
26061
26062CC="$lt_save_CC"
26063
26064 else
26065 tagname=""
26066 fi
26067 ;;
26068
26069 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026070 ac_ext=c
26071ac_cpp='$CPP $CPPFLAGS'
26072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26074ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026075
26076
26077# Source file extension for RC test sources.
26078ac_ext=rc
26079
26080# Object file extension for compiled RC test sources.
26081objext=o
26082objext_RC=$objext
26083
26084# Code to be used in simple compile tests
26085lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26086
26087# Code to be used in simple link tests
26088lt_simple_link_test_code="$lt_simple_compile_test_code"
26089
26090# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26091
26092# If no C compiler was specified, use CC.
26093LTCC=${LTCC-"$CC"}
26094
Reid Spencera773bd52006-08-04 18:18:08 +000026095# If no C compiler flags were specified, use CFLAGS.
26096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26097
John Criswell47fdd832003-07-14 16:52:07 +000026098# Allow CC to be a program name with arguments.
26099compiler=$CC
26100
26101
Reid Spencera773bd52006-08-04 18:18:08 +000026102# save warnings/boilerplate of simple test code
26103ac_outfile=conftest.$ac_objext
26104printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26106_lt_compiler_boilerplate=`cat conftest.err`
26107$rm conftest*
26108
26109ac_outfile=conftest.$ac_objext
26110printf "$lt_simple_link_test_code" >conftest.$ac_ext
26111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26112_lt_linker_boilerplate=`cat conftest.err`
26113$rm conftest*
26114
26115
John Criswell47fdd832003-07-14 16:52:07 +000026116# Allow CC to be a program name with arguments.
26117lt_save_CC="$CC"
26118CC=${RC-"windres"}
26119compiler=$CC
26120compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026121for cc_temp in $compiler""; do
26122 case $cc_temp in
26123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26125 \-*) ;;
26126 *) break;;
26127 esac
26128done
26129cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26130
John Criswell47fdd832003-07-14 16:52:07 +000026131lt_cv_prog_compiler_c_o_RC=yes
26132
26133# The else clause should only fire when bootstrapping the
26134# libtool distribution, otherwise you forgot to ship ltmain.sh
26135# with your package, and you will get complaints that there are
26136# no rules to generate ltmain.sh.
26137if test -f "$ltmain"; then
26138 # See if we are running on zsh, and set the options which allow our commands through
26139 # without removal of \ escapes.
26140 if test -n "${ZSH_VERSION+set}" ; then
26141 setopt NO_GLOB_SUBST
26142 fi
26143 # Now quote all the things that may contain metacharacters while being
26144 # careful not to overquote the AC_SUBSTed values. We take copies of the
26145 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026146 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 +000026147 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026148 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26149 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26150 deplibs_check_method reload_flag reload_cmds need_locks \
26151 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26152 lt_cv_sys_global_symbol_to_c_name_address \
26153 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26154 old_postinstall_cmds old_postuninstall_cmds \
26155 compiler_RC \
26156 CC_RC \
26157 LD_RC \
26158 lt_prog_compiler_wl_RC \
26159 lt_prog_compiler_pic_RC \
26160 lt_prog_compiler_static_RC \
26161 lt_prog_compiler_no_builtin_flag_RC \
26162 export_dynamic_flag_spec_RC \
26163 thread_safe_flag_spec_RC \
26164 whole_archive_flag_spec_RC \
26165 enable_shared_with_static_runtimes_RC \
26166 old_archive_cmds_RC \
26167 old_archive_from_new_cmds_RC \
26168 predep_objects_RC \
26169 postdep_objects_RC \
26170 predeps_RC \
26171 postdeps_RC \
26172 compiler_lib_search_path_RC \
26173 archive_cmds_RC \
26174 archive_expsym_cmds_RC \
26175 postinstall_cmds_RC \
26176 postuninstall_cmds_RC \
26177 old_archive_from_expsyms_cmds_RC \
26178 allow_undefined_flag_RC \
26179 no_undefined_flag_RC \
26180 export_symbols_cmds_RC \
26181 hardcode_libdir_flag_spec_RC \
26182 hardcode_libdir_flag_spec_ld_RC \
26183 hardcode_libdir_separator_RC \
26184 hardcode_automatic_RC \
26185 module_cmds_RC \
26186 module_expsym_cmds_RC \
26187 lt_cv_prog_compiler_c_o_RC \
26188 exclude_expsyms_RC \
26189 include_expsyms_RC; do
26190
26191 case $var in
26192 old_archive_cmds_RC | \
26193 old_archive_from_new_cmds_RC | \
26194 archive_cmds_RC | \
26195 archive_expsym_cmds_RC | \
26196 module_cmds_RC | \
26197 module_expsym_cmds_RC | \
26198 old_archive_from_expsyms_cmds_RC | \
26199 export_symbols_cmds_RC | \
26200 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26201 postinstall_cmds | postuninstall_cmds | \
26202 old_postinstall_cmds | old_postuninstall_cmds | \
26203 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26204 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026205 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 +000026206 ;;
26207 *)
26208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26209 ;;
26210 esac
26211 done
26212
26213 case $lt_echo in
26214 *'\$0 --fallback-echo"')
26215 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26216 ;;
26217 esac
26218
26219cfgfile="$ofile"
26220
26221 cat <<__EOF__ >> "$cfgfile"
26222# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26223
26224# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26225
26226# Shell to use when invoking shell scripts.
26227SHELL=$lt_SHELL
26228
26229# Whether or not to build shared libraries.
26230build_libtool_libs=$enable_shared
26231
26232# Whether or not to build static libraries.
26233build_old_libs=$enable_static
26234
26235# Whether or not to add -lc for building shared libraries.
26236build_libtool_need_lc=$archive_cmds_need_lc_RC
26237
26238# Whether or not to disallow shared libs when runtime libs are static
26239allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26240
26241# Whether or not to optimize for fast installation.
26242fast_install=$enable_fast_install
26243
26244# The host system.
26245host_alias=$host_alias
26246host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026247host_os=$host_os
26248
26249# The build system.
26250build_alias=$build_alias
26251build=$build
26252build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026253
26254# An echo program that does not interpret backslashes.
26255echo=$lt_echo
26256
26257# The archiver.
26258AR=$lt_AR
26259AR_FLAGS=$lt_AR_FLAGS
26260
26261# A C compiler.
26262LTCC=$lt_LTCC
26263
Reid Spencera773bd52006-08-04 18:18:08 +000026264# LTCC compiler flags.
26265LTCFLAGS=$lt_LTCFLAGS
26266
John Criswell47fdd832003-07-14 16:52:07 +000026267# A language-specific compiler.
26268CC=$lt_compiler_RC
26269
26270# Is the compiler the GNU C compiler?
26271with_gcc=$GCC_RC
26272
26273# An ERE matcher.
26274EGREP=$lt_EGREP
26275
26276# The linker used to build libraries.
26277LD=$lt_LD_RC
26278
26279# Whether we need hard or soft links.
26280LN_S=$lt_LN_S
26281
26282# A BSD-compatible nm program.
26283NM=$lt_NM
26284
26285# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026286STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026287
26288# Used to examine libraries when file_magic_cmd begins "file"
26289MAGIC_CMD=$MAGIC_CMD
26290
26291# Used on cygwin: DLL creation program.
26292DLLTOOL="$DLLTOOL"
26293
26294# Used on cygwin: object dumper.
26295OBJDUMP="$OBJDUMP"
26296
26297# Used on cygwin: assembler.
26298AS="$AS"
26299
26300# The name of the directory that contains temporary libtool files.
26301objdir=$objdir
26302
26303# How to create reloadable object files.
26304reload_flag=$lt_reload_flag
26305reload_cmds=$lt_reload_cmds
26306
26307# How to pass a linker flag through the compiler.
26308wl=$lt_lt_prog_compiler_wl_RC
26309
26310# Object file suffix (normally "o").
26311objext="$ac_objext"
26312
26313# Old archive suffix (normally "a").
26314libext="$libext"
26315
26316# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026317shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026318
26319# Executable file suffix (normally "").
26320exeext="$exeext"
26321
26322# Additional compiler flags for building library objects.
26323pic_flag=$lt_lt_prog_compiler_pic_RC
26324pic_mode=$pic_mode
26325
26326# What is the maximum length of a command?
26327max_cmd_len=$lt_cv_sys_max_cmd_len
26328
26329# Does compiler simultaneously support -c and -o options?
26330compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26331
Reid Spencera773bd52006-08-04 18:18:08 +000026332# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026333need_locks=$lt_need_locks
26334
26335# Do we need the lib prefix for modules?
26336need_lib_prefix=$need_lib_prefix
26337
26338# Do we need a version for libraries?
26339need_version=$need_version
26340
26341# Whether dlopen is supported.
26342dlopen_support=$enable_dlopen
26343
26344# Whether dlopen of programs is supported.
26345dlopen_self=$enable_dlopen_self
26346
26347# Whether dlopen of statically linked programs is supported.
26348dlopen_self_static=$enable_dlopen_self_static
26349
26350# Compiler flag to prevent dynamic linking.
26351link_static_flag=$lt_lt_prog_compiler_static_RC
26352
26353# Compiler flag to turn off builtin functions.
26354no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26355
26356# Compiler flag to allow reflexive dlopens.
26357export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26358
26359# Compiler flag to generate shared objects directly from archives.
26360whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26361
26362# Compiler flag to generate thread-safe objects.
26363thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26364
26365# Library versioning type.
26366version_type=$version_type
26367
26368# Format of library name prefix.
26369libname_spec=$lt_libname_spec
26370
26371# List of archive names. First name is the real one, the rest are links.
26372# The last name is the one that the linker finds with -lNAME.
26373library_names_spec=$lt_library_names_spec
26374
26375# The coded name of the library, if different from the real name.
26376soname_spec=$lt_soname_spec
26377
26378# Commands used to build and install an old-style archive.
26379RANLIB=$lt_RANLIB
26380old_archive_cmds=$lt_old_archive_cmds_RC
26381old_postinstall_cmds=$lt_old_postinstall_cmds
26382old_postuninstall_cmds=$lt_old_postuninstall_cmds
26383
26384# Create an old-style archive from a shared archive.
26385old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26386
26387# Create a temporary old-style archive to link instead of a shared archive.
26388old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26389
26390# Commands used to build and install a shared archive.
26391archive_cmds=$lt_archive_cmds_RC
26392archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26393postinstall_cmds=$lt_postinstall_cmds
26394postuninstall_cmds=$lt_postuninstall_cmds
26395
26396# Commands used to build a loadable module (assumed same as above if empty)
26397module_cmds=$lt_module_cmds_RC
26398module_expsym_cmds=$lt_module_expsym_cmds_RC
26399
26400# Commands to strip libraries.
26401old_striplib=$lt_old_striplib
26402striplib=$lt_striplib
26403
26404# Dependencies to place before the objects being linked to create a
26405# shared library.
26406predep_objects=$lt_predep_objects_RC
26407
26408# Dependencies to place after the objects being linked to create a
26409# shared library.
26410postdep_objects=$lt_postdep_objects_RC
26411
26412# Dependencies to place before the objects being linked to create a
26413# shared library.
26414predeps=$lt_predeps_RC
26415
26416# Dependencies to place after the objects being linked to create a
26417# shared library.
26418postdeps=$lt_postdeps_RC
26419
26420# The library search path used internally by the compiler when linking
26421# a shared library.
26422compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26423
26424# Method to check whether dependent libraries are shared objects.
26425deplibs_check_method=$lt_deplibs_check_method
26426
26427# Command to use when deplibs_check_method == file_magic.
26428file_magic_cmd=$lt_file_magic_cmd
26429
26430# Flag that allows shared libraries with undefined symbols to be built.
26431allow_undefined_flag=$lt_allow_undefined_flag_RC
26432
26433# Flag that forces no undefined symbols.
26434no_undefined_flag=$lt_no_undefined_flag_RC
26435
26436# Commands used to finish a libtool library installation in a directory.
26437finish_cmds=$lt_finish_cmds
26438
26439# Same as above, but a single script fragment to be evaled but not shown.
26440finish_eval=$lt_finish_eval
26441
26442# Take the output of nm and produce a listing of raw symbols and C names.
26443global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26444
26445# Transform the output of nm in a proper C declaration
26446global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26447
26448# Transform the output of nm in a C name address pair
26449global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26450
26451# This is the shared library runtime path variable.
26452runpath_var=$runpath_var
26453
26454# This is the shared library path variable.
26455shlibpath_var=$shlibpath_var
26456
26457# Is shlibpath searched before the hard-coded library search path?
26458shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26459
26460# How to hardcode a shared library path into an executable.
26461hardcode_action=$hardcode_action_RC
26462
26463# Whether we should hardcode library paths into libraries.
26464hardcode_into_libs=$hardcode_into_libs
26465
26466# Flag to hardcode \$libdir into a binary during linking.
26467# This must work even if \$libdir does not exist.
26468hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26469
26470# If ld is used when linking, flag to hardcode \$libdir into
26471# a binary during linking. This must work even if \$libdir does
26472# not exist.
26473hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26474
26475# Whether we need a single -rpath flag with a separated argument.
26476hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26477
26478# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26479# resulting binary.
26480hardcode_direct=$hardcode_direct_RC
26481
26482# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26483# resulting binary.
26484hardcode_minus_L=$hardcode_minus_L_RC
26485
26486# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26487# the resulting binary.
26488hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26489
26490# Set to yes if building a shared library automatically hardcodes DIR into the library
26491# and all subsequent libraries and executables linked against it.
26492hardcode_automatic=$hardcode_automatic_RC
26493
26494# Variables whose values should be saved in libtool wrapper scripts and
26495# restored at relink time.
26496variables_saved_for_relink="$variables_saved_for_relink"
26497
26498# Whether libtool must link a program against all its dependency libraries.
26499link_all_deplibs=$link_all_deplibs_RC
26500
26501# Compile-time system search path for libraries
26502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26503
26504# Run-time system search path for libraries
26505sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26506
26507# Fix the shell variable \$srcfile for the compiler.
26508fix_srcfile_path="$fix_srcfile_path_RC"
26509
26510# Set to yes if exported symbols are required.
26511always_export_symbols=$always_export_symbols_RC
26512
26513# The commands to list exported symbols.
26514export_symbols_cmds=$lt_export_symbols_cmds_RC
26515
26516# The commands to extract the exported symbol list from a shared archive.
26517extract_expsyms_cmds=$lt_extract_expsyms_cmds
26518
26519# Symbols that should not be listed in the preloaded symbols.
26520exclude_expsyms=$lt_exclude_expsyms_RC
26521
26522# Symbols that must always be exported.
26523include_expsyms=$lt_include_expsyms_RC
26524
26525# ### END LIBTOOL TAG CONFIG: $tagname
26526
26527__EOF__
26528
26529
26530else
26531 # If there is no Makefile yet, we rely on a make rule to execute
26532 # `config.status --recheck' to rerun these tests and create the
26533 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026534 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26535 if test -f "$ltmain_in"; then
26536 test -f Makefile && make "$ltmain"
26537 fi
John Criswell47fdd832003-07-14 16:52:07 +000026538fi
26539
26540
26541ac_ext=c
26542ac_cpp='$CPP $CPPFLAGS'
26543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26545ac_compiler_gnu=$ac_cv_c_compiler_gnu
26546
26547CC="$lt_save_CC"
26548
26549 ;;
26550
26551 *)
26552 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26553echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26554 { (exit 1); exit 1; }; }
26555 ;;
26556 esac
26557
26558 # Append the new tag name to the list of available tags.
26559 if test -n "$tagname" ; then
26560 available_tags="$available_tags $tagname"
26561 fi
26562 fi
26563 done
26564 IFS="$lt_save_ifs"
26565
26566 # Now substitute the updated list of available tags.
26567 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26568 mv "${ofile}T" "$ofile"
26569 chmod +x "$ofile"
26570 else
26571 rm -f "${ofile}T"
26572 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26573echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26574 { (exit 1); exit 1; }; }
26575 fi
26576fi
John Criswell7a73b802003-06-30 21:59:07 +000026577
26578
26579
26580# This can be used to rebuild libtool when needed
26581LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26582
26583# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026584LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026585
26586# Prevent multiple expansion
26587
26588
26589
John Criswell47fdd832003-07-14 16:52:07 +000026590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026607
Reid Spencer582a23c2004-12-29 07:07:57 +000026608if test "$lt_cv_dlopen_self" = "yes" ; then
26609
26610cat >>confdefs.h <<\_ACEOF
26611#define CAN_DLOPEN_SELF 1
26612_ACEOF
26613
26614fi
26615
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026616etags_version=`$ETAGS --version 2>&1`
26617case "$etags_version" in
26618 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26619 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26620 *) ETAGSFLAGS="" ;;
26621esac
26622ETAGSFLAGS=$ETAGSFLAGS
26623
26624
Reid Spencer7931a782004-12-27 06:15:02 +000026625if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026626 LLVMGCC="llvm-gcc${EXEEXT}"
26627 LLVMGXX="llvm-g++${EXEEXT}"
26628 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26629set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026632if test "${ac_cv_path_LLVMGCC+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635 case $LLVMGCC in
26636 [\\/]* | ?:[\\/]*)
26637 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26638 ;;
26639 *)
26640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641for as_dir in $PATH
26642do
26643 IFS=$as_save_IFS
26644 test -z "$as_dir" && as_dir=.
26645 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026647 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26649 break 2
26650 fi
26651done
26652done
Reid Spencera773bd52006-08-04 18:18:08 +000026653IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026654
Reid Spencer59473af2004-12-25 07:31:29 +000026655 ;;
26656esac
26657fi
26658LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026659if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026660 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26661echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026662else
Reid Spencera773bd52006-08-04 18:18:08 +000026663 { echo "$as_me:$LINENO: result: no" >&5
26664echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026665fi
26666
Reid Spencera773bd52006-08-04 18:18:08 +000026667
Reid Spencerc84492c2005-06-02 22:34:49 +000026668 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26669set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026672if test "${ac_cv_path_LLVMGXX+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26674else
26675 case $LLVMGXX in
26676 [\\/]* | ?:[\\/]*)
26677 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26678 ;;
26679 *)
26680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26681for as_dir in $PATH
26682do
26683 IFS=$as_save_IFS
26684 test -z "$as_dir" && as_dir=.
26685 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026686 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 +000026687 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26689 break 2
26690 fi
26691done
26692done
Reid Spencera773bd52006-08-04 18:18:08 +000026693IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026694
Reid Spencer59473af2004-12-25 07:31:29 +000026695 ;;
26696esac
26697fi
26698LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026699if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026700 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26701echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026702else
Reid Spencera773bd52006-08-04 18:18:08 +000026703 { echo "$as_me:$LINENO: result: no" >&5
26704echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026705fi
26706
Reid Spencera773bd52006-08-04 18:18:08 +000026707
Reid Spencer59473af2004-12-25 07:31:29 +000026708else
Reid Spencerc84492c2005-06-02 22:34:49 +000026709 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26710 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026711 LLVMGCC=$LLVMGCC
26712
26713 LLVMGXX=$LLVMGXX
26714
26715fi
26716
Reid Spencera773bd52006-08-04 18:18:08 +000026717{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26718echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026719
Reid Spencer86901802004-12-08 23:07:27 +000026720ICC=no
26721IXX=no
26722case $CC in
26723 icc*|icpc*)
26724 ICC=yes
26725 IXX=yes
26726 ;;
26727 *)
26728 ;;
26729esac
26730
Duraid Madina937c60a2006-02-15 07:57:42 +000026731if test "$GCC" != "yes" && test "$ICC" != "yes"
26732then
26733 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26734echo "$as_me: error: gcc|icc required but not found" >&2;}
26735 { (exit 1); exit 1; }; }
26736fi
26737
26738if test "$GXX" != "yes" && test "$IXX" != "yes"
26739then
26740 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26741echo "$as_me: error: g++|icc required but not found" >&2;}
26742 { (exit 1); exit 1; }; }
26743fi
26744
Reid Spencer86901802004-12-08 23:07:27 +000026745if test "$GCC" = "yes"
26746then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026747 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026748 if test "$gccmajor" -lt "3"
26749 then
26750 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026751echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26752 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026753 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026754fi
26755
26756if test -z "$llvm_cv_gnu_make_command"
26757then
26758 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26759echo "$as_me: error: GNU Make required but not found" >&2;}
26760 { (exit 1); exit 1; }; }
26761fi
26762
Reid Spencera773bd52006-08-04 18:18:08 +000026763{ echo "$as_me:$LINENO: result: ok" >&5
26764echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026765
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026766
John Criswell7a73b802003-06-30 21:59:07 +000026767
Reid Spencera773bd52006-08-04 18:18:08 +000026768{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26769echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026770if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772else
26773 ac_check_lib_save_LIBS=$LIBS
26774LIBS="-lelf $LIBS"
26775cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026776/* confdefs.h. */
26777_ACEOF
26778cat confdefs.h >>conftest.$ac_ext
26779cat >>conftest.$ac_ext <<_ACEOF
26780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026781
Reid Spencera773bd52006-08-04 18:18:08 +000026782/* Override any GCC internal prototype to avoid an error.
26783 Use char because int might match the return type of a GCC
26784 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026785#ifdef __cplusplus
26786extern "C"
26787#endif
John Criswell7a73b802003-06-30 21:59:07 +000026788char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026789int
26790main ()
26791{
Reid Spencera773bd52006-08-04 18:18:08 +000026792return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026793 ;
26794 return 0;
26795}
26796_ACEOF
26797rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026798if { (ac_try="$ac_link"
26799case "(($ac_try" in
26800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801 *) ac_try_echo=$ac_try;;
26802esac
26803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026805 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026806 grep -v '^ *+' conftest.er1 >conftest.err
26807 rm -f conftest.er1
26808 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26812 { (case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26815esac
26816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; } &&
26821 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026822 { (case "(($ac_try" in
26823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824 *) ac_try_echo=$ac_try;;
26825esac
26826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; }; then
26831 ac_cv_lib_elf_elf_begin=yes
26832else
26833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026834sed 's/^/| /' conftest.$ac_ext >&5
26835
Reid Spencera773bd52006-08-04 18:18:08 +000026836 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026837fi
Reid Spencera773bd52006-08-04 18:18:08 +000026838
26839rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026840 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026841LIBS=$ac_check_lib_save_LIBS
26842fi
Reid Spencera773bd52006-08-04 18:18:08 +000026843{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26844echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026845if test $ac_cv_lib_elf_elf_begin = yes; then
26846 cat >>confdefs.h <<_ACEOF
26847#define HAVE_LIBELF 1
26848_ACEOF
26849
26850 LIBS="-lelf $LIBS"
26851
26852fi
26853
26854
Reid Spencera773bd52006-08-04 18:18:08 +000026855{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26856echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026857if test "${ac_cv_lib_m_sin+set}" = set; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26859else
26860 ac_check_lib_save_LIBS=$LIBS
26861LIBS="-lm $LIBS"
26862cat >conftest.$ac_ext <<_ACEOF
26863/* confdefs.h. */
26864_ACEOF
26865cat confdefs.h >>conftest.$ac_ext
26866cat >>conftest.$ac_ext <<_ACEOF
26867/* end confdefs.h. */
26868
Reid Spencera773bd52006-08-04 18:18:08 +000026869/* Override any GCC internal prototype to avoid an error.
26870 Use char because int might match the return type of a GCC
26871 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026872#ifdef __cplusplus
26873extern "C"
26874#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026875char sin ();
26876int
26877main ()
26878{
Reid Spencera773bd52006-08-04 18:18:08 +000026879return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026880 ;
26881 return 0;
26882}
26883_ACEOF
26884rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026885if { (ac_try="$ac_link"
26886case "(($ac_try" in
26887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888 *) ac_try_echo=$ac_try;;
26889esac
26890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026892 ac_status=$?
26893 grep -v '^ *+' conftest.er1 >conftest.err
26894 rm -f conftest.er1
26895 cat conftest.err >&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26899 { (case "(($ac_try" in
26900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26901 *) ac_try_echo=$ac_try;;
26902esac
26903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26904 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026905 ac_status=$?
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); }; } &&
26908 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026909 { (case "(($ac_try" in
26910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26911 *) ac_try_echo=$ac_try;;
26912esac
26913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26914 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026915 ac_status=$?
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26918 ac_cv_lib_m_sin=yes
26919else
26920 echo "$as_me: failed program was:" >&5
26921sed 's/^/| /' conftest.$ac_ext >&5
26922
Reid Spencera773bd52006-08-04 18:18:08 +000026923 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026924fi
Reid Spencera773bd52006-08-04 18:18:08 +000026925
26926rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026927 conftest$ac_exeext conftest.$ac_ext
26928LIBS=$ac_check_lib_save_LIBS
26929fi
Reid Spencera773bd52006-08-04 18:18:08 +000026930{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26931echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026932if test $ac_cv_lib_m_sin = yes; then
26933 cat >>confdefs.h <<_ACEOF
26934#define HAVE_LIBM 1
26935_ACEOF
26936
26937 LIBS="-lm $LIBS"
26938
26939fi
26940
Jeff Cohen28783c32007-01-12 18:22:38 +000026941if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026942
Reid Spencera773bd52006-08-04 18:18:08 +000026943{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26944echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026945if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026946 echo $ECHO_N "(cached) $ECHO_C" >&6
26947else
26948 ac_check_lib_save_LIBS=$LIBS
26949LIBS="-limagehlp $LIBS"
26950cat >conftest.$ac_ext <<_ACEOF
26951/* confdefs.h. */
26952_ACEOF
26953cat confdefs.h >>conftest.$ac_ext
26954cat >>conftest.$ac_ext <<_ACEOF
26955/* end confdefs.h. */
26956
Reid Spencer48fdf912006-06-01 19:03:21 +000026957
Reid Spencer484fc8e2006-06-01 16:55:59 +000026958int
26959main ()
26960{
Reid Spencera773bd52006-08-04 18:18:08 +000026961return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026962 ;
26963 return 0;
26964}
26965_ACEOF
26966rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026967if { (ac_try="$ac_link"
26968case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26971esac
26972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026974 ac_status=$?
26975 grep -v '^ *+' conftest.er1 >conftest.err
26976 rm -f conftest.er1
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26981 { (case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26984esac
26985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026987 ac_status=$?
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; } &&
26990 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026991 { (case "(($ac_try" in
26992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993 *) ac_try_echo=$ac_try;;
26994esac
26995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026997 ac_status=$?
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027000 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027001else
27002 echo "$as_me: failed program was:" >&5
27003sed 's/^/| /' conftest.$ac_ext >&5
27004
Reid Spencera773bd52006-08-04 18:18:08 +000027005 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027006fi
Reid Spencera773bd52006-08-04 18:18:08 +000027007
27008rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027009 conftest$ac_exeext conftest.$ac_ext
27010LIBS=$ac_check_lib_save_LIBS
27011fi
Reid Spencera773bd52006-08-04 18:18:08 +000027012{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27013echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027014if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027015 cat >>confdefs.h <<_ACEOF
27016#define HAVE_LIBIMAGEHLP 1
27017_ACEOF
27018
27019 LIBS="-limagehlp $LIBS"
27020
27021fi
27022
27023
Reid Spencera773bd52006-08-04 18:18:08 +000027024{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27025echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027026if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028else
27029 ac_check_lib_save_LIBS=$LIBS
27030LIBS="-lpsapi $LIBS"
27031cat >conftest.$ac_ext <<_ACEOF
27032/* confdefs.h. */
27033_ACEOF
27034cat confdefs.h >>conftest.$ac_ext
27035cat >>conftest.$ac_ext <<_ACEOF
27036/* end confdefs.h. */
27037
Reid Spencer48fdf912006-06-01 19:03:21 +000027038
Reid Spencer484fc8e2006-06-01 16:55:59 +000027039int
27040main ()
27041{
Reid Spencera773bd52006-08-04 18:18:08 +000027042return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027043 ;
27044 return 0;
27045}
27046_ACEOF
27047rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027048if { (ac_try="$ac_link"
27049case "(($ac_try" in
27050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051 *) ac_try_echo=$ac_try;;
27052esac
27053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027055 ac_status=$?
27056 grep -v '^ *+' conftest.er1 >conftest.err
27057 rm -f conftest.er1
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27062 { (case "(($ac_try" in
27063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27064 *) ac_try_echo=$ac_try;;
27065esac
27066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27067 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027068 ac_status=$?
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); }; } &&
27071 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027072 { (case "(($ac_try" in
27073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074 *) ac_try_echo=$ac_try;;
27075esac
27076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27077 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027078 ac_status=$?
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027081 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027082else
27083 echo "$as_me: failed program was:" >&5
27084sed 's/^/| /' conftest.$ac_ext >&5
27085
Reid Spencera773bd52006-08-04 18:18:08 +000027086 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027087fi
Reid Spencera773bd52006-08-04 18:18:08 +000027088
27089rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027090 conftest$ac_exeext conftest.$ac_ext
27091LIBS=$ac_check_lib_save_LIBS
27092fi
Reid Spencera773bd52006-08-04 18:18:08 +000027093{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27094echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027095if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027096 cat >>confdefs.h <<_ACEOF
27097#define HAVE_LIBPSAPI 1
27098_ACEOF
27099
27100 LIBS="-lpsapi $LIBS"
27101
27102fi
27103
27104fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027105
Reid Spencera773bd52006-08-04 18:18:08 +000027106{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27107echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027108if test "${ac_cv_search_lt_dlopen+set}" = set; then
27109 echo $ECHO_N "(cached) $ECHO_C" >&6
27110else
27111 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027112cat >conftest.$ac_ext <<_ACEOF
27113/* confdefs.h. */
27114_ACEOF
27115cat confdefs.h >>conftest.$ac_ext
27116cat >>conftest.$ac_ext <<_ACEOF
27117/* end confdefs.h. */
27118
Reid Spencera773bd52006-08-04 18:18:08 +000027119/* Override any GCC internal prototype to avoid an error.
27120 Use char because int might match the return type of a GCC
27121 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027122#ifdef __cplusplus
27123extern "C"
27124#endif
Reid Spencer17795972004-11-18 09:47:37 +000027125char lt_dlopen ();
27126int
27127main ()
27128{
Reid Spencera773bd52006-08-04 18:18:08 +000027129return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027130 ;
27131 return 0;
27132}
27133_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027134for ac_lib in '' ltdl; do
27135 if test -z "$ac_lib"; then
27136 ac_res="none required"
27137 else
27138 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027140 fi
27141 rm -f conftest.$ac_objext conftest$ac_exeext
27142if { (ac_try="$ac_link"
27143case "(($ac_try" in
27144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145 *) ac_try_echo=$ac_try;;
27146esac
27147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027149 ac_status=$?
27150 grep -v '^ *+' conftest.er1 >conftest.err
27151 rm -f conftest.er1
27152 cat conftest.err >&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27156 { (case "(($ac_try" in
27157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158 *) ac_try_echo=$ac_try;;
27159esac
27160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; } &&
27165 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027166 { (case "(($ac_try" in
27167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168 *) ac_try_echo=$ac_try;;
27169esac
27170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027175 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027176else
27177 echo "$as_me: failed program was:" >&5
27178sed 's/^/| /' conftest.$ac_ext >&5
27179
Reid Spencera773bd52006-08-04 18:18:08 +000027180
Reid Spencer17795972004-11-18 09:47:37 +000027181fi
Reid Spencera773bd52006-08-04 18:18:08 +000027182
27183rm -f core conftest.err conftest.$ac_objext \
27184 conftest$ac_exeext
27185 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27186 break
Reid Spencer17795972004-11-18 09:47:37 +000027187fi
Reid Spencera773bd52006-08-04 18:18:08 +000027188done
27189if test "${ac_cv_search_lt_dlopen+set}" = set; then
27190 :
27191else
27192 ac_cv_search_lt_dlopen=no
27193fi
27194rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027195LIBS=$ac_func_search_save_LIBS
27196fi
Reid Spencera773bd52006-08-04 18:18:08 +000027197{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27198echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27199ac_res=$ac_cv_search_lt_dlopen
27200if test "$ac_res" != no; then
27201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027202
27203cat >>confdefs.h <<\_ACEOF
27204#define HAVE_LT_DLOPEN 1
27205_ACEOF
27206
27207else
27208 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27209 not be available" >&5
27210echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27211 not be available" >&2;}
27212fi
27213
27214
Reid Spencera773bd52006-08-04 18:18:08 +000027215{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27216echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027217if test "${ac_cv_search_dlopen+set}" = set; then
27218 echo $ECHO_N "(cached) $ECHO_C" >&6
27219else
27220 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027221cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027222/* confdefs.h. */
27223_ACEOF
27224cat confdefs.h >>conftest.$ac_ext
27225cat >>conftest.$ac_ext <<_ACEOF
27226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027227
Reid Spencera773bd52006-08-04 18:18:08 +000027228/* Override any GCC internal prototype to avoid an error.
27229 Use char because int might match the return type of a GCC
27230 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027231#ifdef __cplusplus
27232extern "C"
27233#endif
John Criswell7a73b802003-06-30 21:59:07 +000027234char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027235int
27236main ()
27237{
Reid Spencera773bd52006-08-04 18:18:08 +000027238return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027239 ;
27240 return 0;
27241}
27242_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027243for ac_lib in '' dl; do
27244 if test -z "$ac_lib"; then
27245 ac_res="none required"
27246 else
27247 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027249 fi
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251if { (ac_try="$ac_link"
27252case "(($ac_try" in
27253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254 *) ac_try_echo=$ac_try;;
27255esac
27256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27257 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027258 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027259 grep -v '^ *+' conftest.er1 >conftest.err
27260 rm -f conftest.er1
27261 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27265 { (case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27268esac
27269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027271 ac_status=$?
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; } &&
27274 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027275 { (case "(($ac_try" in
27276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27278esac
27279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027281 ac_status=$?
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027284 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027285else
27286 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027287sed 's/^/| /' conftest.$ac_ext >&5
27288
Reid Spencera773bd52006-08-04 18:18:08 +000027289
John Criswell7a73b802003-06-30 21:59:07 +000027290fi
Reid Spencera773bd52006-08-04 18:18:08 +000027291
27292rm -f core conftest.err conftest.$ac_objext \
27293 conftest$ac_exeext
27294 if test "${ac_cv_search_dlopen+set}" = set; then
27295 break
John Criswell7a73b802003-06-30 21:59:07 +000027296fi
Reid Spencera773bd52006-08-04 18:18:08 +000027297done
27298if test "${ac_cv_search_dlopen+set}" = set; then
27299 :
27300else
27301 ac_cv_search_dlopen=no
27302fi
27303rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027304LIBS=$ac_func_search_save_LIBS
27305fi
Reid Spencera773bd52006-08-04 18:18:08 +000027306{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27307echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27308ac_res=$ac_cv_search_dlopen
27309if test "$ac_res" != no; then
27310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027311
27312cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027313#define HAVE_DLOPEN 1
27314_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027315
27316else
Brian Gaekec45be042003-10-07 06:01:34 +000027317 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27318echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027319fi
27320
27321
Reid Spencera773bd52006-08-04 18:18:08 +000027322{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27323echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027324if test "${ac_cv_search_mallinfo+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27326else
27327 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027328cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027334
Reid Spencera773bd52006-08-04 18:18:08 +000027335/* Override any GCC internal prototype to avoid an error.
27336 Use char because int might match the return type of a GCC
27337 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027338#ifdef __cplusplus
27339extern "C"
27340#endif
John Criswell7a73b802003-06-30 21:59:07 +000027341char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027342int
27343main ()
27344{
Reid Spencera773bd52006-08-04 18:18:08 +000027345return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027346 ;
27347 return 0;
27348}
27349_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027350for ac_lib in '' malloc; do
27351 if test -z "$ac_lib"; then
27352 ac_res="none required"
27353 else
27354 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027356 fi
27357 rm -f conftest.$ac_objext conftest$ac_exeext
27358if { (ac_try="$ac_link"
27359case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27362esac
27363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027366 grep -v '^ *+' conftest.er1 >conftest.err
27367 rm -f conftest.er1
27368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27372 { (case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375esac
27376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027382 { (case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385esac
27386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027391 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027392else
27393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027394sed 's/^/| /' conftest.$ac_ext >&5
27395
Reid Spencera773bd52006-08-04 18:18:08 +000027396
John Criswell7a73b802003-06-30 21:59:07 +000027397fi
Reid Spencera773bd52006-08-04 18:18:08 +000027398
27399rm -f core conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext
27401 if test "${ac_cv_search_mallinfo+set}" = set; then
27402 break
John Criswell7a73b802003-06-30 21:59:07 +000027403fi
Reid Spencera773bd52006-08-04 18:18:08 +000027404done
27405if test "${ac_cv_search_mallinfo+set}" = set; then
27406 :
27407else
27408 ac_cv_search_mallinfo=no
27409fi
27410rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027411LIBS=$ac_func_search_save_LIBS
27412fi
Reid Spencera773bd52006-08-04 18:18:08 +000027413{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27414echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27415ac_res=$ac_cv_search_mallinfo
27416if test "$ac_res" != no; then
27417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027418
27419cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027420#define HAVE_MALLINFO 1
27421_ACEOF
27422
27423fi
27424
27425
Reid Spencer0a262ba2005-08-24 10:07:20 +000027426if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027427
Reid Spencera773bd52006-08-04 18:18:08 +000027428{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27429echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027430if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27432else
27433 ac_check_lib_save_LIBS=$LIBS
27434LIBS="-lpthread $LIBS"
27435cat >conftest.$ac_ext <<_ACEOF
27436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
27441
Reid Spencera773bd52006-08-04 18:18:08 +000027442/* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027445#ifdef __cplusplus
27446extern "C"
27447#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027448char pthread_mutex_init ();
27449int
27450main ()
27451{
Reid Spencera773bd52006-08-04 18:18:08 +000027452return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027453 ;
27454 return 0;
27455}
27456_ACEOF
27457rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027458if { (ac_try="$ac_link"
27459case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27462esac
27463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027465 ac_status=$?
27466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27475esac
27476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027482 { (case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
27491 ac_cv_lib_pthread_pthread_mutex_init=yes
27492else
27493 echo "$as_me: failed program was:" >&5
27494sed 's/^/| /' conftest.$ac_ext >&5
27495
Reid Spencera773bd52006-08-04 18:18:08 +000027496 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027497fi
Reid Spencera773bd52006-08-04 18:18:08 +000027498
27499rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027500 conftest$ac_exeext conftest.$ac_ext
27501LIBS=$ac_check_lib_save_LIBS
27502fi
Reid Spencera773bd52006-08-04 18:18:08 +000027503{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27504echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027505if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27506 cat >>confdefs.h <<_ACEOF
27507#define HAVE_LIBPTHREAD 1
27508_ACEOF
27509
27510 LIBS="-lpthread $LIBS"
27511
27512fi
27513
Reid Spencera773bd52006-08-04 18:18:08 +000027514 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27515echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027516if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27517 echo $ECHO_N "(cached) $ECHO_C" >&6
27518else
27519 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027520cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027521/* confdefs.h. */
27522_ACEOF
27523cat confdefs.h >>conftest.$ac_ext
27524cat >>conftest.$ac_ext <<_ACEOF
27525/* end confdefs.h. */
27526
Reid Spencera773bd52006-08-04 18:18:08 +000027527/* Override any GCC internal prototype to avoid an error.
27528 Use char because int might match the return type of a GCC
27529 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027530#ifdef __cplusplus
27531extern "C"
27532#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027533char pthread_mutex_lock ();
27534int
27535main ()
27536{
Reid Spencera773bd52006-08-04 18:18:08 +000027537return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027538 ;
27539 return 0;
27540}
27541_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027542for ac_lib in '' pthread; do
27543 if test -z "$ac_lib"; then
27544 ac_res="none required"
27545 else
27546 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027548 fi
27549 rm -f conftest.$ac_objext conftest$ac_exeext
27550if { (ac_try="$ac_link"
27551case "(($ac_try" in
27552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553 *) ac_try_echo=$ac_try;;
27554esac
27555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027558 grep -v '^ *+' conftest.er1 >conftest.err
27559 rm -f conftest.er1
27560 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27564 { (case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27567esac
27568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; } &&
27573 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027574 { (case "(($ac_try" in
27575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576 *) ac_try_echo=$ac_try;;
27577esac
27578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027580 ac_status=$?
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027583 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027584else
27585 echo "$as_me: failed program was:" >&5
27586sed 's/^/| /' conftest.$ac_ext >&5
27587
Reid Spencera773bd52006-08-04 18:18:08 +000027588
Brian Gaeke5f268f72003-12-05 19:29:01 +000027589fi
Reid Spencera773bd52006-08-04 18:18:08 +000027590
27591rm -f core conftest.err conftest.$ac_objext \
27592 conftest$ac_exeext
27593 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27594 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027595fi
Reid Spencera773bd52006-08-04 18:18:08 +000027596done
27597if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27598 :
27599else
27600 ac_cv_search_pthread_mutex_lock=no
27601fi
27602rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027603LIBS=$ac_func_search_save_LIBS
27604fi
Reid Spencera773bd52006-08-04 18:18:08 +000027605{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27606echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27607ac_res=$ac_cv_search_pthread_mutex_lock
27608if test "$ac_res" != no; then
27609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027610
John Criswell40468462004-09-24 21:19:06 +000027611cat >>confdefs.h <<\_ACEOF
27612#define HAVE_PTHREAD_MUTEX_LOCK 1
27613_ACEOF
27614
27615fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027616
Reid Spencer0a262ba2005-08-24 10:07:20 +000027617fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027618
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027619
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027620# Check whether --with-udis86 was given.
27621if test "${with_udis86+set}" = set; then
27622 withval=$with_udis86;
27623 USE_UDIS86=1
27624
27625 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027626 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027627 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27628 esac
27629
27630{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27631echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27632if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27633 echo $ECHO_N "(cached) $ECHO_C" >&6
27634else
27635 ac_check_lib_save_LIBS=$LIBS
27636LIBS="-ludis86 $LIBS"
27637cat >conftest.$ac_ext <<_ACEOF
27638/* confdefs.h. */
27639_ACEOF
27640cat confdefs.h >>conftest.$ac_ext
27641cat >>conftest.$ac_ext <<_ACEOF
27642/* end confdefs.h. */
27643
27644/* Override any GCC internal prototype to avoid an error.
27645 Use char because int might match the return type of a GCC
27646 builtin and then its argument prototype would still apply. */
27647#ifdef __cplusplus
27648extern "C"
27649#endif
27650char ud_init ();
27651int
27652main ()
27653{
27654return ud_init ();
27655 ;
27656 return 0;
27657}
27658_ACEOF
27659rm -f conftest.$ac_objext conftest$ac_exeext
27660if { (ac_try="$ac_link"
27661case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27664esac
27665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_link") 2>conftest.er1
27667 ac_status=$?
27668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
27673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27674 { (case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27677esac
27678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_try") 2>&5
27680 ac_status=$?
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; } &&
27683 { ac_try='test -s conftest$ac_exeext'
27684 { (case "(($ac_try" in
27685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686 *) ac_try_echo=$ac_try;;
27687esac
27688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689 (eval "$ac_try") 2>&5
27690 ac_status=$?
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; }; then
27693 ac_cv_lib_udis86_ud_init=yes
27694else
27695 echo "$as_me: failed program was:" >&5
27696sed 's/^/| /' conftest.$ac_ext >&5
27697
27698 ac_cv_lib_udis86_ud_init=no
27699fi
27700
27701rm -f core conftest.err conftest.$ac_objext \
27702 conftest$ac_exeext conftest.$ac_ext
27703LIBS=$ac_check_lib_save_LIBS
27704fi
27705{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27706echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27707if test $ac_cv_lib_udis86_ud_init = yes; then
27708 cat >>confdefs.h <<_ACEOF
27709#define HAVE_LIBUDIS86 1
27710_ACEOF
27711
27712 LIBS="-ludis86 $LIBS"
27713
27714else
27715
27716 echo "Error! You need to have libudis86 around."
27717 exit -1
27718
27719fi
27720
27721
27722else
27723 USE_UDIS86=0
27724
27725fi
27726
27727
27728cat >>confdefs.h <<_ACEOF
27729#define USE_UDIS86 $USE_UDIS86
27730_ACEOF
27731
27732
27733
Reid Spencer59473af2004-12-25 07:31:29 +000027734
27735
27736
27737
27738
27739ac_header_dirent=no
27740for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27741 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027742{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27743echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746else
27747 cat >conftest.$ac_ext <<_ACEOF
27748/* confdefs.h. */
27749_ACEOF
27750cat confdefs.h >>conftest.$ac_ext
27751cat >>conftest.$ac_ext <<_ACEOF
27752/* end confdefs.h. */
27753#include <sys/types.h>
27754#include <$ac_hdr>
27755
27756int
27757main ()
27758{
27759if ((DIR *) 0)
27760return 0;
27761 ;
27762 return 0;
27763}
27764_ACEOF
27765rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027766if { (ac_try="$ac_compile"
27767case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27770esac
27771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027773 ac_status=$?
27774 grep -v '^ *+' conftest.er1 >conftest.err
27775 rm -f conftest.er1
27776 cat conftest.err >&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27780 { (case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27783esac
27784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027786 ac_status=$?
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; } &&
27789 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027790 { (case "(($ac_try" in
27791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792 *) ac_try_echo=$ac_try;;
27793esac
27794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27795 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027796 ac_status=$?
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); }; }; then
27799 eval "$as_ac_Header=yes"
27800else
27801 echo "$as_me: failed program was:" >&5
27802sed 's/^/| /' conftest.$ac_ext >&5
27803
Reid Spencera773bd52006-08-04 18:18:08 +000027804 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027805fi
Reid Spencera773bd52006-08-04 18:18:08 +000027806
27807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027808fi
Reid Spencera773bd52006-08-04 18:18:08 +000027809ac_res=`eval echo '${'$as_ac_Header'}'`
27810 { echo "$as_me:$LINENO: result: $ac_res" >&5
27811echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027812if test `eval echo '${'$as_ac_Header'}'` = yes; then
27813 cat >>confdefs.h <<_ACEOF
27814#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27815_ACEOF
27816
27817ac_header_dirent=$ac_hdr; break
27818fi
27819
27820done
27821# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27822if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027823 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27824echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027825if test "${ac_cv_search_opendir+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
27828 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027829cat >conftest.$ac_ext <<_ACEOF
27830/* confdefs.h. */
27831_ACEOF
27832cat confdefs.h >>conftest.$ac_ext
27833cat >>conftest.$ac_ext <<_ACEOF
27834/* end confdefs.h. */
27835
Reid Spencera773bd52006-08-04 18:18:08 +000027836/* Override any GCC internal prototype to avoid an error.
27837 Use char because int might match the return type of a GCC
27838 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027839#ifdef __cplusplus
27840extern "C"
27841#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027842char opendir ();
27843int
27844main ()
27845{
Reid Spencera773bd52006-08-04 18:18:08 +000027846return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027847 ;
27848 return 0;
27849}
27850_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027851for ac_lib in '' dir; do
27852 if test -z "$ac_lib"; then
27853 ac_res="none required"
27854 else
27855 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027857 fi
27858 rm -f conftest.$ac_objext conftest$ac_exeext
27859if { (ac_try="$ac_link"
27860case "(($ac_try" in
27861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27863esac
27864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027866 ac_status=$?
27867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27873 { (case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027879 ac_status=$?
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; } &&
27882 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27886esac
27887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027892 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027893else
27894 echo "$as_me: failed program was:" >&5
27895sed 's/^/| /' conftest.$ac_ext >&5
27896
Reid Spencera773bd52006-08-04 18:18:08 +000027897
Reid Spencer59473af2004-12-25 07:31:29 +000027898fi
Reid Spencera773bd52006-08-04 18:18:08 +000027899
27900rm -f core conftest.err conftest.$ac_objext \
27901 conftest$ac_exeext
27902 if test "${ac_cv_search_opendir+set}" = set; then
27903 break
Reid Spencer59473af2004-12-25 07:31:29 +000027904fi
Reid Spencera773bd52006-08-04 18:18:08 +000027905done
27906if test "${ac_cv_search_opendir+set}" = set; then
27907 :
27908else
27909 ac_cv_search_opendir=no
27910fi
27911rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027912LIBS=$ac_func_search_save_LIBS
27913fi
Reid Spencera773bd52006-08-04 18:18:08 +000027914{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27915echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27916ac_res=$ac_cv_search_opendir
27917if test "$ac_res" != no; then
27918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027919
27920fi
27921
27922else
Reid Spencera773bd52006-08-04 18:18:08 +000027923 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27924echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027925if test "${ac_cv_search_opendir+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27927else
27928 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027929cat >conftest.$ac_ext <<_ACEOF
27930/* confdefs.h. */
27931_ACEOF
27932cat confdefs.h >>conftest.$ac_ext
27933cat >>conftest.$ac_ext <<_ACEOF
27934/* end confdefs.h. */
27935
Reid Spencera773bd52006-08-04 18:18:08 +000027936/* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027939#ifdef __cplusplus
27940extern "C"
27941#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027942char opendir ();
27943int
27944main ()
27945{
Reid Spencera773bd52006-08-04 18:18:08 +000027946return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027947 ;
27948 return 0;
27949}
27950_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027951for ac_lib in '' x; do
27952 if test -z "$ac_lib"; then
27953 ac_res="none required"
27954 else
27955 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027957 fi
27958 rm -f conftest.$ac_objext conftest$ac_exeext
27959if { (ac_try="$ac_link"
27960case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027966 ac_status=$?
27967 grep -v '^ *+' conftest.er1 >conftest.err
27968 rm -f conftest.er1
27969 cat conftest.err >&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973 { (case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27976esac
27977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986esac
27987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027992 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027993else
27994 echo "$as_me: failed program was:" >&5
27995sed 's/^/| /' conftest.$ac_ext >&5
27996
Reid Spencera773bd52006-08-04 18:18:08 +000027997
Reid Spencer59473af2004-12-25 07:31:29 +000027998fi
Reid Spencera773bd52006-08-04 18:18:08 +000027999
28000rm -f core conftest.err conftest.$ac_objext \
28001 conftest$ac_exeext
28002 if test "${ac_cv_search_opendir+set}" = set; then
28003 break
Reid Spencer59473af2004-12-25 07:31:29 +000028004fi
Reid Spencera773bd52006-08-04 18:18:08 +000028005done
28006if test "${ac_cv_search_opendir+set}" = set; then
28007 :
28008else
28009 ac_cv_search_opendir=no
28010fi
28011rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028012LIBS=$ac_func_search_save_LIBS
28013fi
Reid Spencera773bd52006-08-04 18:18:08 +000028014{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28015echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28016ac_res=$ac_cv_search_opendir
28017if test "$ac_res" != no; then
28018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028019
28020fi
28021
28022fi
28023
Reid Spencera773bd52006-08-04 18:18:08 +000028024{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28025echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028026if test "${ac_cv_header_mmap_anon+set}" = set; then
28027 echo $ECHO_N "(cached) $ECHO_C" >&6
28028else
28029 ac_ext=c
28030ac_cpp='$CPP $CPPFLAGS'
28031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28033ac_compiler_gnu=$ac_cv_c_compiler_gnu
28034
28035 cat >conftest.$ac_ext <<_ACEOF
28036/* confdefs.h. */
28037_ACEOF
28038cat confdefs.h >>conftest.$ac_ext
28039cat >>conftest.$ac_ext <<_ACEOF
28040/* end confdefs.h. */
28041#include <sys/mman.h>
28042#include <unistd.h>
28043#include <fcntl.h>
28044int
28045main ()
28046{
28047mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28048 ;
28049 return 0;
28050}
28051_ACEOF
28052rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028053if { (ac_try="$ac_compile"
28054case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28057esac
28058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028060 ac_status=$?
28061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28070esac
28071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080esac
28081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 ac_cv_header_mmap_anon=yes
28087else
28088 echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
Reid Spencera773bd52006-08-04 18:18:08 +000028091 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028092fi
Reid Spencera773bd52006-08-04 18:18:08 +000028093
28094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028095 ac_ext=c
28096ac_cpp='$CPP $CPPFLAGS'
28097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28099ac_compiler_gnu=$ac_cv_c_compiler_gnu
28100
28101
28102fi
Reid Spencera773bd52006-08-04 18:18:08 +000028103{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28104echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028105if test "$ac_cv_header_mmap_anon" = yes; then
28106
28107cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028108#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028109_ACEOF
28110
28111fi
28112
Reid Spencera773bd52006-08-04 18:18:08 +000028113{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28114echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028115if test "${ac_cv_header_stat_broken+set}" = set; then
28116 echo $ECHO_N "(cached) $ECHO_C" >&6
28117else
28118 cat >conftest.$ac_ext <<_ACEOF
28119/* confdefs.h. */
28120_ACEOF
28121cat confdefs.h >>conftest.$ac_ext
28122cat >>conftest.$ac_ext <<_ACEOF
28123/* end confdefs.h. */
28124#include <sys/types.h>
28125#include <sys/stat.h>
28126
Reid Spencera773bd52006-08-04 18:18:08 +000028127#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028128# if S_ISBLK (S_IFDIR)
28129You lose.
28130# endif
28131#endif
28132
Reid Spencera773bd52006-08-04 18:18:08 +000028133#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028134# if S_ISBLK (S_IFCHR)
28135You lose.
28136# endif
28137#endif
28138
Reid Spencera773bd52006-08-04 18:18:08 +000028139#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028140# if S_ISLNK (S_IFREG)
28141You lose.
28142# endif
28143#endif
28144
Reid Spencera773bd52006-08-04 18:18:08 +000028145#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028146# if S_ISSOCK (S_IFREG)
28147You lose.
28148# endif
28149#endif
28150
28151_ACEOF
28152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28153 $EGREP "You lose" >/dev/null 2>&1; then
28154 ac_cv_header_stat_broken=yes
28155else
28156 ac_cv_header_stat_broken=no
28157fi
28158rm -f conftest*
28159
28160fi
Reid Spencera773bd52006-08-04 18:18:08 +000028161{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28162echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028163if test $ac_cv_header_stat_broken = yes; then
28164
28165cat >>confdefs.h <<\_ACEOF
28166#define STAT_MACROS_BROKEN 1
28167_ACEOF
28168
28169fi
28170
Reid Spencera773bd52006-08-04 18:18:08 +000028171{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28172echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028173if test "${ac_cv_header_stdc+set}" = set; then
28174 echo $ECHO_N "(cached) $ECHO_C" >&6
28175else
28176 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028177/* confdefs.h. */
28178_ACEOF
28179cat confdefs.h >>conftest.$ac_ext
28180cat >>conftest.$ac_ext <<_ACEOF
28181/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028182#include <stdlib.h>
28183#include <stdarg.h>
28184#include <string.h>
28185#include <float.h>
28186
John Criswell0c38eaf2003-09-10 15:17:25 +000028187int
28188main ()
28189{
28190
28191 ;
28192 return 0;
28193}
John Criswell7a73b802003-06-30 21:59:07 +000028194_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028195rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028196if { (ac_try="$ac_compile"
28197case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200esac
28201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028204 grep -v '^ *+' conftest.er1 >conftest.err
28205 rm -f conftest.er1
28206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028208 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28210 { (case "(($ac_try" in
28211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212 *) ac_try_echo=$ac_try;;
28213esac
28214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; } &&
28219 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028220 { (case "(($ac_try" in
28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28223esac
28224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028226 ac_status=$?
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028229 ac_cv_header_stdc=yes
28230else
28231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028232sed 's/^/| /' conftest.$ac_ext >&5
28233
Reid Spencera773bd52006-08-04 18:18:08 +000028234 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028235fi
Reid Spencera773bd52006-08-04 18:18:08 +000028236
28237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028238
28239if test $ac_cv_header_stdc = yes; then
28240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28241 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028242/* confdefs.h. */
28243_ACEOF
28244cat confdefs.h >>conftest.$ac_ext
28245cat >>conftest.$ac_ext <<_ACEOF
28246/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028247#include <string.h>
28248
28249_ACEOF
28250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028251 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028252 :
28253else
28254 ac_cv_header_stdc=no
28255fi
28256rm -f conftest*
28257
28258fi
28259
28260if test $ac_cv_header_stdc = yes; then
28261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28262 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028268#include <stdlib.h>
28269
28270_ACEOF
28271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028272 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028273 :
28274else
28275 ac_cv_header_stdc=no
28276fi
28277rm -f conftest*
28278
28279fi
28280
28281if test $ac_cv_header_stdc = yes; then
28282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28283 if test "$cross_compiling" = yes; then
28284 :
28285else
28286 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028287/* confdefs.h. */
28288_ACEOF
28289cat confdefs.h >>conftest.$ac_ext
28290cat >>conftest.$ac_ext <<_ACEOF
28291/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028292#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028293#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028294#if ((' ' & 0x0FF) == 0x020)
28295# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28296# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28297#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028298# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028299 (('a' <= (c) && (c) <= 'i') \
28300 || ('j' <= (c) && (c) <= 'r') \
28301 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028302# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28303#endif
28304
28305#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28306int
28307main ()
28308{
28309 int i;
28310 for (i = 0; i < 256; i++)
28311 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028312 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028313 return 2;
28314 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028315}
28316_ACEOF
28317rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028318if { (ac_try="$ac_link"
28319case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28322esac
28323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028325 ac_status=$?
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028328 { (case "(($ac_try" in
28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330 *) ac_try_echo=$ac_try;;
28331esac
28332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028334 ac_status=$?
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; }; then
28337 :
28338else
28339 echo "$as_me: program exited with status $ac_status" >&5
28340echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028341sed 's/^/| /' conftest.$ac_ext >&5
28342
John Criswell7a73b802003-06-30 21:59:07 +000028343( exit $ac_status )
28344ac_cv_header_stdc=no
28345fi
Reid Spencera773bd52006-08-04 18:18:08 +000028346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28347fi
28348
28349
John Criswell7a73b802003-06-30 21:59:07 +000028350fi
28351fi
Reid Spencera773bd52006-08-04 18:18:08 +000028352{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28353echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028354if test $ac_cv_header_stdc = yes; then
28355
28356cat >>confdefs.h <<\_ACEOF
28357#define STDC_HEADERS 1
28358_ACEOF
28359
28360fi
28361
Reid Spencera773bd52006-08-04 18:18:08 +000028362{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28363echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028364if test "${ac_cv_header_sys_wait_h+set}" = set; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28366else
28367 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028368/* confdefs.h. */
28369_ACEOF
28370cat confdefs.h >>conftest.$ac_ext
28371cat >>conftest.$ac_ext <<_ACEOF
28372/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028373#include <sys/types.h>
28374#include <sys/wait.h>
28375#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028376# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028377#endif
28378#ifndef WIFEXITED
28379# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28380#endif
28381
John Criswell7a73b802003-06-30 21:59:07 +000028382int
28383main ()
28384{
28385 int s;
28386 wait (&s);
28387 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28388 ;
28389 return 0;
28390}
28391_ACEOF
28392rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028393if { (ac_try="$ac_compile"
28394case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28397esac
28398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028400 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028401 grep -v '^ *+' conftest.er1 >conftest.err
28402 rm -f conftest.er1
28403 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28407 { (case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28410esac
28411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; } &&
28416 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028417 { (case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28420esac
28421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028423 ac_status=$?
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; }; then
28426 ac_cv_header_sys_wait_h=yes
28427else
28428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028429sed 's/^/| /' conftest.$ac_ext >&5
28430
Reid Spencera773bd52006-08-04 18:18:08 +000028431 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028432fi
Reid Spencera773bd52006-08-04 18:18:08 +000028433
28434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028435fi
Reid Spencera773bd52006-08-04 18:18:08 +000028436{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28437echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028438if test $ac_cv_header_sys_wait_h = yes; then
28439
28440cat >>confdefs.h <<\_ACEOF
28441#define HAVE_SYS_WAIT_H 1
28442_ACEOF
28443
28444fi
28445
Reid Spencera773bd52006-08-04 18:18:08 +000028446{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28447echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028448if test "${ac_cv_header_time+set}" = set; then
28449 echo $ECHO_N "(cached) $ECHO_C" >&6
28450else
28451 cat >conftest.$ac_ext <<_ACEOF
28452/* confdefs.h. */
28453_ACEOF
28454cat confdefs.h >>conftest.$ac_ext
28455cat >>conftest.$ac_ext <<_ACEOF
28456/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028457#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028458#include <sys/time.h>
28459#include <time.h>
28460
28461int
28462main ()
28463{
28464if ((struct tm *) 0)
28465return 0;
28466 ;
28467 return 0;
28468}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028469_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028470rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028471if { (ac_try="$ac_compile"
28472case "(($ac_try" in
28473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28474 *) ac_try_echo=$ac_try;;
28475esac
28476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28477 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028478 ac_status=$?
28479 grep -v '^ *+' conftest.er1 >conftest.err
28480 rm -f conftest.er1
28481 cat conftest.err >&5
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028483 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28485 { (case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488esac
28489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028491 ac_status=$?
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; } &&
28494 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028495 { (case "(($ac_try" in
28496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497 *) ac_try_echo=$ac_try;;
28498esac
28499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28504 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028505else
28506 echo "$as_me: failed program was:" >&5
28507sed 's/^/| /' conftest.$ac_ext >&5
28508
Reid Spencera773bd52006-08-04 18:18:08 +000028509 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028510fi
Reid Spencera773bd52006-08-04 18:18:08 +000028511
28512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028513fi
Reid Spencera773bd52006-08-04 18:18:08 +000028514{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28515echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028516if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028517
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028518cat >>confdefs.h <<\_ACEOF
28519#define TIME_WITH_SYS_TIME 1
28520_ACEOF
28521
28522fi
28523
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028524
Reid Spencer59473af2004-12-25 07:31:29 +000028525
28526
28527
28528
28529
28530
28531for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28532do
28533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028538 echo $ECHO_N "(cached) $ECHO_C" >&6
28539fi
Reid Spencera773bd52006-08-04 18:18:08 +000028540ac_res=`eval echo '${'$as_ac_Header'}'`
28541 { echo "$as_me:$LINENO: result: $ac_res" >&5
28542echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028543else
28544 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028545{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028547cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028548/* confdefs.h. */
28549_ACEOF
28550cat confdefs.h >>conftest.$ac_ext
28551cat >>conftest.$ac_ext <<_ACEOF
28552/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028553$ac_includes_default
28554#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028555_ACEOF
28556rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028557if { (ac_try="$ac_compile"
28558case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28561esac
28562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028564 ac_status=$?
28565 grep -v '^ *+' conftest.er1 >conftest.err
28566 rm -f conftest.er1
28567 cat conftest.err >&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28571 { (case "(($ac_try" in
28572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28573 *) ac_try_echo=$ac_try;;
28574esac
28575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28576 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028577 ac_status=$?
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; } &&
28580 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028581 { (case "(($ac_try" in
28582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583 *) ac_try_echo=$ac_try;;
28584esac
28585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028587 ac_status=$?
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028590 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028591else
28592 echo "$as_me: failed program was:" >&5
28593sed 's/^/| /' conftest.$ac_ext >&5
28594
Reid Spencera773bd52006-08-04 18:18:08 +000028595 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028596fi
Reid Spencera773bd52006-08-04 18:18:08 +000028597
28598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28600echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028601
Reid Spencer59473af2004-12-25 07:31:29 +000028602# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028605cat >conftest.$ac_ext <<_ACEOF
28606/* confdefs.h. */
28607_ACEOF
28608cat confdefs.h >>conftest.$ac_ext
28609cat >>conftest.$ac_ext <<_ACEOF
28610/* end confdefs.h. */
28611#include <$ac_header>
28612_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028613if { (ac_try="$ac_cpp conftest.$ac_ext"
28614case "(($ac_try" in
28615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616 *) ac_try_echo=$ac_try;;
28617esac
28618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028620 ac_status=$?
28621 grep -v '^ *+' conftest.er1 >conftest.err
28622 rm -f conftest.er1
28623 cat conftest.err >&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); } >/dev/null; then
28626 if test -s conftest.err; then
28627 ac_cpp_err=$ac_c_preproc_warn_flag
28628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28629 else
28630 ac_cpp_err=
28631 fi
28632else
28633 ac_cpp_err=yes
28634fi
28635if test -z "$ac_cpp_err"; then
28636 ac_header_preproc=yes
28637else
28638 echo "$as_me: failed program was:" >&5
28639sed 's/^/| /' conftest.$ac_ext >&5
28640
28641 ac_header_preproc=no
28642fi
Reid Spencera773bd52006-08-04 18:18:08 +000028643
Reid Spencer59473af2004-12-25 07:31:29 +000028644rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28646echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028647
28648# So? What about this header?
28649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28650 yes:no: )
28651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28655 ac_header_preproc=yes
28656 ;;
28657 no:yes:* )
28658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028670 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028671## ----------------------------------- ##
28672## Report this to llvmbugs@cs.uiuc.edu ##
28673## ----------------------------------- ##
28674_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028675 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028676 ;;
28677esac
Reid Spencera773bd52006-08-04 18:18:08 +000028678{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028681 echo $ECHO_N "(cached) $ECHO_C" >&6
28682else
28683 eval "$as_ac_Header=\$ac_header_preproc"
28684fi
Reid Spencera773bd52006-08-04 18:18:08 +000028685ac_res=`eval echo '${'$as_ac_Header'}'`
28686 { echo "$as_me:$LINENO: result: $ac_res" >&5
28687echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028688
28689fi
Reid Spencer59473af2004-12-25 07:31:29 +000028690if test `eval echo '${'$as_ac_Header'}'` = yes; then
28691 cat >>confdefs.h <<_ACEOF
28692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028693_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028694
28695fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028696
Reid Spencer59473af2004-12-25 07:31:29 +000028697done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028698
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028699
28700
Reid Spencer59473af2004-12-25 07:31:29 +000028701
28702
28703
28704
Reid Spencercdb08a32006-06-05 16:11:07 +000028705for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028706do
28707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028712 echo $ECHO_N "(cached) $ECHO_C" >&6
28713fi
Reid Spencera773bd52006-08-04 18:18:08 +000028714ac_res=`eval echo '${'$as_ac_Header'}'`
28715 { echo "$as_me:$LINENO: result: $ac_res" >&5
28716echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028717else
28718 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028719{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028721cat >conftest.$ac_ext <<_ACEOF
28722/* confdefs.h. */
28723_ACEOF
28724cat confdefs.h >>conftest.$ac_ext
28725cat >>conftest.$ac_ext <<_ACEOF
28726/* end confdefs.h. */
28727$ac_includes_default
28728#include <$ac_header>
28729_ACEOF
28730rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028731if { (ac_try="$ac_compile"
28732case "(($ac_try" in
28733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734 *) ac_try_echo=$ac_try;;
28735esac
28736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028738 ac_status=$?
28739 grep -v '^ *+' conftest.er1 >conftest.err
28740 rm -f conftest.er1
28741 cat conftest.err >&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28745 { (case "(($ac_try" in
28746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747 *) ac_try_echo=$ac_try;;
28748esac
28749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; } &&
28754 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028755 { (case "(($ac_try" in
28756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 *) ac_try_echo=$ac_try;;
28758esac
28759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28764 ac_header_compiler=yes
28765else
28766 echo "$as_me: failed program was:" >&5
28767sed 's/^/| /' conftest.$ac_ext >&5
28768
Reid Spencera773bd52006-08-04 18:18:08 +000028769 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028770fi
Reid Spencera773bd52006-08-04 18:18:08 +000028771
28772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28773{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28774echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028775
28776# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028777{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028779cat >conftest.$ac_ext <<_ACEOF
28780/* confdefs.h. */
28781_ACEOF
28782cat confdefs.h >>conftest.$ac_ext
28783cat >>conftest.$ac_ext <<_ACEOF
28784/* end confdefs.h. */
28785#include <$ac_header>
28786_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028787if { (ac_try="$ac_cpp conftest.$ac_ext"
28788case "(($ac_try" in
28789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790 *) ac_try_echo=$ac_try;;
28791esac
28792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028794 ac_status=$?
28795 grep -v '^ *+' conftest.er1 >conftest.err
28796 rm -f conftest.er1
28797 cat conftest.err >&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); } >/dev/null; then
28800 if test -s conftest.err; then
28801 ac_cpp_err=$ac_c_preproc_warn_flag
28802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28803 else
28804 ac_cpp_err=
28805 fi
28806else
28807 ac_cpp_err=yes
28808fi
28809if test -z "$ac_cpp_err"; then
28810 ac_header_preproc=yes
28811else
28812 echo "$as_me: failed program was:" >&5
28813sed 's/^/| /' conftest.$ac_ext >&5
28814
28815 ac_header_preproc=no
28816fi
Reid Spencera773bd52006-08-04 18:18:08 +000028817
Reid Spencer59473af2004-12-25 07:31:29 +000028818rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28820echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028821
28822# So? What about this header?
28823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28824 yes:no: )
28825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28829 ac_header_preproc=yes
28830 ;;
28831 no:yes:* )
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28835echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28839echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028844 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028845## ----------------------------------- ##
28846## Report this to llvmbugs@cs.uiuc.edu ##
28847## ----------------------------------- ##
28848_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028849 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028850 ;;
28851esac
Reid Spencera773bd52006-08-04 18:18:08 +000028852{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028855 echo $ECHO_N "(cached) $ECHO_C" >&6
28856else
28857 eval "$as_ac_Header=\$ac_header_preproc"
28858fi
Reid Spencera773bd52006-08-04 18:18:08 +000028859ac_res=`eval echo '${'$as_ac_Header'}'`
28860 { echo "$as_me:$LINENO: result: $ac_res" >&5
28861echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028862
28863fi
28864if test `eval echo '${'$as_ac_Header'}'` = yes; then
28865 cat >>confdefs.h <<_ACEOF
28866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28867_ACEOF
28868
28869fi
28870
28871done
28872
28873
28874
28875
28876
28877
Reid Spencercdb08a32006-06-05 16:11:07 +000028878for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028879do
28880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028885 echo $ECHO_N "(cached) $ECHO_C" >&6
28886fi
Reid Spencera773bd52006-08-04 18:18:08 +000028887ac_res=`eval echo '${'$as_ac_Header'}'`
28888 { echo "$as_me:$LINENO: result: $ac_res" >&5
28889echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028890else
28891 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028892{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028894cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028895/* confdefs.h. */
28896_ACEOF
28897cat confdefs.h >>conftest.$ac_ext
28898cat >>conftest.$ac_ext <<_ACEOF
28899/* end confdefs.h. */
28900$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028901#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028902_ACEOF
28903rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028904if { (ac_try="$ac_compile"
28905case "(($ac_try" in
28906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 *) ac_try_echo=$ac_try;;
28908esac
28909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028911 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028912 grep -v '^ *+' conftest.er1 >conftest.err
28913 rm -f conftest.er1
28914 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28918 { (case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28921esac
28922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028924 ac_status=$?
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; } &&
28927 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028928 { (case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28931esac
28932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
28937 ac_header_compiler=yes
28938else
28939 echo "$as_me: failed program was:" >&5
28940sed 's/^/| /' conftest.$ac_ext >&5
28941
Reid Spencera773bd52006-08-04 18:18:08 +000028942 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028943fi
Reid Spencera773bd52006-08-04 18:18:08 +000028944
28945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28947echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028948
28949# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028952cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028953/* confdefs.h. */
28954_ACEOF
28955cat confdefs.h >>conftest.$ac_ext
28956cat >>conftest.$ac_ext <<_ACEOF
28957/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028958#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028959_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028960if { (ac_try="$ac_cpp conftest.$ac_ext"
28961case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28964esac
28965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028967 ac_status=$?
28968 grep -v '^ *+' conftest.er1 >conftest.err
28969 rm -f conftest.er1
28970 cat conftest.err >&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); } >/dev/null; then
28973 if test -s conftest.err; then
28974 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028976 else
28977 ac_cpp_err=
28978 fi
28979else
28980 ac_cpp_err=yes
28981fi
28982if test -z "$ac_cpp_err"; then
28983 ac_header_preproc=yes
28984else
28985 echo "$as_me: failed program was:" >&5
28986sed 's/^/| /' conftest.$ac_ext >&5
28987
28988 ac_header_preproc=no
28989fi
Reid Spencera773bd52006-08-04 18:18:08 +000028990
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028991rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28993echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028994
28995# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28997 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029002 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029003 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029004 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029017 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029018## ----------------------------------- ##
29019## Report this to llvmbugs@cs.uiuc.edu ##
29020## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029021_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029022 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029023 ;;
29024esac
Reid Spencera773bd52006-08-04 18:18:08 +000029025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029028 echo $ECHO_N "(cached) $ECHO_C" >&6
29029else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029030 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029031fi
Reid Spencera773bd52006-08-04 18:18:08 +000029032ac_res=`eval echo '${'$as_ac_Header'}'`
29033 { echo "$as_me:$LINENO: result: $ac_res" >&5
29034echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029035
29036fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029037if test `eval echo '${'$as_ac_Header'}'` = yes; then
29038 cat >>confdefs.h <<_ACEOF
29039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029040_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029041
29042fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029043
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029044done
29045
John Criswell7ed43ad2004-07-19 16:12:29 +000029046
Reid Spencercdb08a32006-06-05 16:11:07 +000029047
Reid Spencera6d990a2006-09-14 06:17:21 +000029048
29049for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029050do
29051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029056 echo $ECHO_N "(cached) $ECHO_C" >&6
29057fi
Reid Spencera773bd52006-08-04 18:18:08 +000029058ac_res=`eval echo '${'$as_ac_Header'}'`
29059 { echo "$as_me:$LINENO: result: $ac_res" >&5
29060echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029061else
29062 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029065cat >conftest.$ac_ext <<_ACEOF
29066/* confdefs.h. */
29067_ACEOF
29068cat confdefs.h >>conftest.$ac_ext
29069cat >>conftest.$ac_ext <<_ACEOF
29070/* end confdefs.h. */
29071$ac_includes_default
29072#include <$ac_header>
29073_ACEOF
29074rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029075if { (ac_try="$ac_compile"
29076case "(($ac_try" in
29077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078 *) ac_try_echo=$ac_try;;
29079esac
29080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029082 ac_status=$?
29083 grep -v '^ *+' conftest.er1 >conftest.err
29084 rm -f conftest.er1
29085 cat conftest.err >&5
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29089 { (case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29092esac
29093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029095 ac_status=$?
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); }; } &&
29098 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029099 { (case "(($ac_try" in
29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29102esac
29103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029105 ac_status=$?
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); }; }; then
29108 ac_header_compiler=yes
29109else
29110 echo "$as_me: failed program was:" >&5
29111sed 's/^/| /' conftest.$ac_ext >&5
29112
Reid Spencera773bd52006-08-04 18:18:08 +000029113 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029114fi
Reid Spencera773bd52006-08-04 18:18:08 +000029115
29116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29118echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029119
29120# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029123cat >conftest.$ac_ext <<_ACEOF
29124/* confdefs.h. */
29125_ACEOF
29126cat confdefs.h >>conftest.$ac_ext
29127cat >>conftest.$ac_ext <<_ACEOF
29128/* end confdefs.h. */
29129#include <$ac_header>
29130_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029131if { (ac_try="$ac_cpp conftest.$ac_ext"
29132case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29135esac
29136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029138 ac_status=$?
29139 grep -v '^ *+' conftest.er1 >conftest.err
29140 rm -f conftest.er1
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } >/dev/null; then
29144 if test -s conftest.err; then
29145 ac_cpp_err=$ac_c_preproc_warn_flag
29146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29147 else
29148 ac_cpp_err=
29149 fi
29150else
29151 ac_cpp_err=yes
29152fi
29153if test -z "$ac_cpp_err"; then
29154 ac_header_preproc=yes
29155else
29156 echo "$as_me: failed program was:" >&5
29157sed 's/^/| /' conftest.$ac_ext >&5
29158
29159 ac_header_preproc=no
29160fi
Reid Spencera773bd52006-08-04 18:18:08 +000029161
Chris Lattner0b142592005-11-14 06:57:34 +000029162rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29164echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029165
29166# So? What about this header?
29167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29168 yes:no: )
29169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29173 ac_header_preproc=yes
29174 ;;
29175 no:yes:* )
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029188 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029189## ----------------------------------- ##
29190## Report this to llvmbugs@cs.uiuc.edu ##
29191## ----------------------------------- ##
29192_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029193 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029194 ;;
29195esac
Reid Spencera773bd52006-08-04 18:18:08 +000029196{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029199 echo $ECHO_N "(cached) $ECHO_C" >&6
29200else
29201 eval "$as_ac_Header=\$ac_header_preproc"
29202fi
Reid Spencera773bd52006-08-04 18:18:08 +000029203ac_res=`eval echo '${'$as_ac_Header'}'`
29204 { echo "$as_me:$LINENO: result: $ac_res" >&5
29205echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029206
29207fi
29208if test `eval echo '${'$as_ac_Header'}'` = yes; then
29209 cat >>confdefs.h <<_ACEOF
29210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29211_ACEOF
29212
29213fi
29214
29215done
29216
Reid Spencer0a262ba2005-08-24 10:07:20 +000029217if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029218 if test "${ac_cv_header_pthread_h+set}" = set; then
29219 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29220echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29221if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029222 echo $ECHO_N "(cached) $ECHO_C" >&6
29223fi
Reid Spencer1000b732006-12-01 00:37:14 +000029224{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29225echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029226else
29227 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029228{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29229echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029230cat >conftest.$ac_ext <<_ACEOF
29231/* confdefs.h. */
29232_ACEOF
29233cat confdefs.h >>conftest.$ac_ext
29234cat >>conftest.$ac_ext <<_ACEOF
29235/* end confdefs.h. */
29236$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029237#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029238_ACEOF
29239rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029240if { (ac_try="$ac_compile"
29241case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29244esac
29245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029247 ac_status=$?
29248 grep -v '^ *+' conftest.er1 >conftest.err
29249 rm -f conftest.er1
29250 cat conftest.err >&5
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29254 { (case "(($ac_try" in
29255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29256 *) ac_try_echo=$ac_try;;
29257esac
29258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29259 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029260 ac_status=$?
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; } &&
29263 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029264 { (case "(($ac_try" in
29265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29266 *) ac_try_echo=$ac_try;;
29267esac
29268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29269 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029270 ac_status=$?
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); }; }; then
29273 ac_header_compiler=yes
29274else
29275 echo "$as_me: failed program was:" >&5
29276sed 's/^/| /' conftest.$ac_ext >&5
29277
Reid Spencera773bd52006-08-04 18:18:08 +000029278 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029279fi
Reid Spencera773bd52006-08-04 18:18:08 +000029280
29281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29282{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29283echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029284
29285# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029286{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29287echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029288cat >conftest.$ac_ext <<_ACEOF
29289/* confdefs.h. */
29290_ACEOF
29291cat confdefs.h >>conftest.$ac_ext
29292cat >>conftest.$ac_ext <<_ACEOF
29293/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029294#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029295_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029296if { (ac_try="$ac_cpp conftest.$ac_ext"
29297case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29300esac
29301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029303 ac_status=$?
29304 grep -v '^ *+' conftest.er1 >conftest.err
29305 rm -f conftest.er1
29306 cat conftest.err >&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } >/dev/null; then
29309 if test -s conftest.err; then
29310 ac_cpp_err=$ac_c_preproc_warn_flag
29311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29312 else
29313 ac_cpp_err=
29314 fi
29315else
29316 ac_cpp_err=yes
29317fi
29318if test -z "$ac_cpp_err"; then
29319 ac_header_preproc=yes
29320else
29321 echo "$as_me: failed program was:" >&5
29322sed 's/^/| /' conftest.$ac_ext >&5
29323
29324 ac_header_preproc=no
29325fi
Reid Spencera773bd52006-08-04 18:18:08 +000029326
Reid Spencer0a262ba2005-08-24 10:07:20 +000029327rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029328{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29329echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029330
29331# So? What about this header?
29332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29333 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029334 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29335echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29336 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29337echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029338 ac_header_preproc=yes
29339 ;;
29340 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029341 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29342echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29343 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29344echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29346echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29348echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29350echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29352echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029353 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029354## ----------------------------------- ##
29355## Report this to llvmbugs@cs.uiuc.edu ##
29356## ----------------------------------- ##
29357_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029358 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029359 ;;
29360esac
Reid Spencer1000b732006-12-01 00:37:14 +000029361{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29362echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29363if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029364 echo $ECHO_N "(cached) $ECHO_C" >&6
29365else
Reid Spencer1000b732006-12-01 00:37:14 +000029366 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029367fi
Reid Spencer1000b732006-12-01 00:37:14 +000029368{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29369echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029370
29371fi
Reid Spencer1000b732006-12-01 00:37:14 +000029372if test $ac_cv_header_pthread_h = yes; then
29373 HAVE_PTHREAD=1
29374
29375else
29376 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029377
29378fi
29379
Reid Spencer1000b732006-12-01 00:37:14 +000029380
29381else
29382 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029383
29384fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029385
29386
Reid Spencerb2ed05262006-11-03 18:04:08 +000029387
29388 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29389echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29390if test "${ac_cv_huge_val_sanity+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29392else
29393
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029394 ac_ext=cpp
29395ac_cpp='$CXXCPP $CPPFLAGS'
29396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029399
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029400 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029401 if test "$cross_compiling" = yes; then
29402 ac_cv_huge_val_sanity=yes
29403else
29404 cat >conftest.$ac_ext <<_ACEOF
29405/* confdefs.h. */
29406_ACEOF
29407cat confdefs.h >>conftest.$ac_ext
29408cat >>conftest.$ac_ext <<_ACEOF
29409/* end confdefs.h. */
29410#include <math.h>
29411int
29412main ()
29413{
29414double x = HUGE_VAL; return x != x;
29415 ;
29416 return 0;
29417}
29418_ACEOF
29419rm -f conftest$ac_exeext
29420if { (ac_try="$ac_link"
29421case "(($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_link") 2>&5
29427 ac_status=$?
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29430 { (case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29433esac
29434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435 (eval "$ac_try") 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; }; then
29439 ac_cv_huge_val_sanity=yes
29440else
29441 echo "$as_me: program exited with status $ac_status" >&5
29442echo "$as_me: failed program was:" >&5
29443sed 's/^/| /' conftest.$ac_ext >&5
29444
29445( exit $ac_status )
29446ac_cv_huge_val_sanity=no
29447fi
29448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29449fi
29450
29451
29452 ac_ext=c
29453ac_cpp='$CPP $CPPFLAGS'
29454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29456ac_compiler_gnu=$ac_cv_c_compiler_gnu
29457
29458
29459fi
29460{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29461echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29462 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29463
29464
Reid Spencera773bd52006-08-04 18:18:08 +000029465{ echo "$as_me:$LINENO: checking for pid_t" >&5
29466echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029467if test "${ac_cv_type_pid_t+set}" = set; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29469else
29470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029471/* confdefs.h. */
29472_ACEOF
29473cat confdefs.h >>conftest.$ac_ext
29474cat >>conftest.$ac_ext <<_ACEOF
29475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029476$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029477typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029478int
29479main ()
29480{
Reid Spencera773bd52006-08-04 18:18:08 +000029481if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029482 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029483if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029484 return 0;
29485 ;
29486 return 0;
29487}
29488_ACEOF
29489rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029490if { (ac_try="$ac_compile"
29491case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29494esac
29495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029497 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029498 grep -v '^ *+' conftest.er1 >conftest.err
29499 rm -f conftest.er1
29500 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29504 { (case "(($ac_try" in
29505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506 *) ac_try_echo=$ac_try;;
29507esac
29508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029514 { (case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29517esac
29518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029520 ac_status=$?
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; }; then
29523 ac_cv_type_pid_t=yes
29524else
29525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029526sed 's/^/| /' conftest.$ac_ext >&5
29527
Reid Spencera773bd52006-08-04 18:18:08 +000029528 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029529fi
Reid Spencera773bd52006-08-04 18:18:08 +000029530
29531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029532fi
Reid Spencera773bd52006-08-04 18:18:08 +000029533{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29534echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029535if test $ac_cv_type_pid_t = yes; then
29536 :
29537else
29538
29539cat >>confdefs.h <<_ACEOF
29540#define pid_t int
29541_ACEOF
29542
29543fi
29544
Reid Spencera773bd52006-08-04 18:18:08 +000029545{ echo "$as_me:$LINENO: checking for size_t" >&5
29546echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029547if test "${ac_cv_type_size_t+set}" = set; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29549else
29550 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029551/* confdefs.h. */
29552_ACEOF
29553cat confdefs.h >>conftest.$ac_ext
29554cat >>conftest.$ac_ext <<_ACEOF
29555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029556$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029557typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029558int
29559main ()
29560{
Reid Spencera773bd52006-08-04 18:18:08 +000029561if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029562 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029563if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029564 return 0;
29565 ;
29566 return 0;
29567}
29568_ACEOF
29569rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029570if { (ac_try="$ac_compile"
29571case "(($ac_try" in
29572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29573 *) ac_try_echo=$ac_try;;
29574esac
29575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29576 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029578 grep -v '^ *+' conftest.er1 >conftest.err
29579 rm -f conftest.er1
29580 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29584 { (case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29587esac
29588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029590 ac_status=$?
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); }; } &&
29593 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029594 { (case "(($ac_try" in
29595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596 *) ac_try_echo=$ac_try;;
29597esac
29598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; }; then
29603 ac_cv_type_size_t=yes
29604else
29605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029606sed 's/^/| /' conftest.$ac_ext >&5
29607
Reid Spencera773bd52006-08-04 18:18:08 +000029608 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029609fi
Reid Spencera773bd52006-08-04 18:18:08 +000029610
29611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029612fi
Reid Spencera773bd52006-08-04 18:18:08 +000029613{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29614echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029615if test $ac_cv_type_size_t = yes; then
29616 :
29617else
29618
29619cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029620#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029621_ACEOF
29622
29623fi
29624
Reid Spencera773bd52006-08-04 18:18:08 +000029625{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29626echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029627if test "${ac_cv_type_signal+set}" = set; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29629else
29630 cat >conftest.$ac_ext <<_ACEOF
29631/* confdefs.h. */
29632_ACEOF
29633cat confdefs.h >>conftest.$ac_ext
29634cat >>conftest.$ac_ext <<_ACEOF
29635/* end confdefs.h. */
29636#include <sys/types.h>
29637#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029638
29639int
29640main ()
29641{
Reid Spencera773bd52006-08-04 18:18:08 +000029642return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029643 ;
29644 return 0;
29645}
29646_ACEOF
29647rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029648if { (ac_try="$ac_compile"
29649case "(($ac_try" in
29650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651 *) ac_try_echo=$ac_try;;
29652esac
29653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029655 ac_status=$?
29656 grep -v '^ *+' conftest.er1 >conftest.err
29657 rm -f conftest.er1
29658 cat conftest.err >&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29665esac
29666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029668 ac_status=$?
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; } &&
29671 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029672 { (case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29675esac
29676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029678 ac_status=$?
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029681 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029682else
29683 echo "$as_me: failed program was:" >&5
29684sed 's/^/| /' conftest.$ac_ext >&5
29685
Reid Spencera773bd52006-08-04 18:18:08 +000029686 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029687fi
Reid Spencera773bd52006-08-04 18:18:08 +000029688
29689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029690fi
Reid Spencera773bd52006-08-04 18:18:08 +000029691{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29692echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029693
29694cat >>confdefs.h <<_ACEOF
29695#define RETSIGTYPE $ac_cv_type_signal
29696_ACEOF
29697
29698
Reid Spencera773bd52006-08-04 18:18:08 +000029699{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29700echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029701if test "${ac_cv_struct_tm+set}" = set; then
29702 echo $ECHO_N "(cached) $ECHO_C" >&6
29703else
29704 cat >conftest.$ac_ext <<_ACEOF
29705/* confdefs.h. */
29706_ACEOF
29707cat confdefs.h >>conftest.$ac_ext
29708cat >>conftest.$ac_ext <<_ACEOF
29709/* end confdefs.h. */
29710#include <sys/types.h>
29711#include <time.h>
29712
29713int
29714main ()
29715{
29716struct tm *tp; tp->tm_sec;
29717 ;
29718 return 0;
29719}
29720_ACEOF
29721rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029722if { (ac_try="$ac_compile"
29723case "(($ac_try" in
29724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725 *) ac_try_echo=$ac_try;;
29726esac
29727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29728 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029729 ac_status=$?
29730 grep -v '^ *+' conftest.er1 >conftest.err
29731 rm -f conftest.er1
29732 cat conftest.err >&5
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29736 { (case "(($ac_try" in
29737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738 *) ac_try_echo=$ac_try;;
29739esac
29740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029742 ac_status=$?
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; } &&
29745 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029746 { (case "(($ac_try" in
29747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29748 *) ac_try_echo=$ac_try;;
29749esac
29750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29751 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029752 ac_status=$?
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); }; }; then
29755 ac_cv_struct_tm=time.h
29756else
29757 echo "$as_me: failed program was:" >&5
29758sed 's/^/| /' conftest.$ac_ext >&5
29759
Reid Spencera773bd52006-08-04 18:18:08 +000029760 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029761fi
Reid Spencera773bd52006-08-04 18:18:08 +000029762
29763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029764fi
Reid Spencera773bd52006-08-04 18:18:08 +000029765{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29766echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029767if test $ac_cv_struct_tm = sys/time.h; then
29768
29769cat >>confdefs.h <<\_ACEOF
29770#define TM_IN_SYS_TIME 1
29771_ACEOF
29772
29773fi
29774
Reid Spencera773bd52006-08-04 18:18:08 +000029775{ echo "$as_me:$LINENO: checking for int64_t" >&5
29776echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029777if test "${ac_cv_type_int64_t+set}" = set; then
29778 echo $ECHO_N "(cached) $ECHO_C" >&6
29779else
29780 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029781/* confdefs.h. */
29782_ACEOF
29783cat confdefs.h >>conftest.$ac_ext
29784cat >>conftest.$ac_ext <<_ACEOF
29785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029786$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029787typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029788int
29789main ()
29790{
Reid Spencera773bd52006-08-04 18:18:08 +000029791if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029792 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029793if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029794 return 0;
29795 ;
29796 return 0;
29797}
29798_ACEOF
29799rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029800if { (ac_try="$ac_compile"
29801case "(($ac_try" in
29802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803 *) ac_try_echo=$ac_try;;
29804esac
29805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029808 grep -v '^ *+' conftest.er1 >conftest.err
29809 rm -f conftest.er1
29810 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29814 { (case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29817esac
29818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029820 ac_status=$?
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; } &&
29823 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029824 { (case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29827esac
29828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029830 ac_status=$?
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833 ac_cv_type_int64_t=yes
29834else
29835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029836sed 's/^/| /' conftest.$ac_ext >&5
29837
Reid Spencera773bd52006-08-04 18:18:08 +000029838 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029839fi
Reid Spencera773bd52006-08-04 18:18:08 +000029840
29841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029842fi
Reid Spencera773bd52006-08-04 18:18:08 +000029843{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29844echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029845if test $ac_cv_type_int64_t = yes; then
29846
29847cat >>confdefs.h <<_ACEOF
29848#define HAVE_INT64_T 1
29849_ACEOF
29850
29851
29852else
29853 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29854echo "$as_me: error: Type int64_t required but not found" >&2;}
29855 { (exit 1); exit 1; }; }
29856fi
29857
Reid Spencera773bd52006-08-04 18:18:08 +000029858{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29859echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029860if test "${ac_cv_type_uint64_t+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29862else
29863 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029864/* confdefs.h. */
29865_ACEOF
29866cat confdefs.h >>conftest.$ac_ext
29867cat >>conftest.$ac_ext <<_ACEOF
29868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029869$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029870typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029871int
29872main ()
29873{
Reid Spencera773bd52006-08-04 18:18:08 +000029874if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029875 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029876if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029877 return 0;
29878 ;
29879 return 0;
29880}
29881_ACEOF
29882rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029883if { (ac_try="$ac_compile"
29884case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29887esac
29888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029890 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029891 grep -v '^ *+' conftest.er1 >conftest.err
29892 rm -f conftest.er1
29893 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29897 { (case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29900esac
29901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029903 ac_status=$?
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; } &&
29906 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029907 { (case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29910esac
29911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029913 ac_status=$?
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); }; }; then
29916 ac_cv_type_uint64_t=yes
29917else
29918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029919sed 's/^/| /' conftest.$ac_ext >&5
29920
Reid Spencera773bd52006-08-04 18:18:08 +000029921 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029922fi
Reid Spencera773bd52006-08-04 18:18:08 +000029923
29924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029925fi
Reid Spencera773bd52006-08-04 18:18:08 +000029926{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29927echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029928if test $ac_cv_type_uint64_t = yes; then
29929
29930cat >>confdefs.h <<_ACEOF
29931#define HAVE_UINT64_T 1
29932_ACEOF
29933
29934
29935else
Reid Spencera773bd52006-08-04 18:18:08 +000029936 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29937echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029938if test "${ac_cv_type_u_int64_t+set}" = set; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29940else
29941 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029942/* confdefs.h. */
29943_ACEOF
29944cat confdefs.h >>conftest.$ac_ext
29945cat >>conftest.$ac_ext <<_ACEOF
29946/* end confdefs.h. */
29947$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029948typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029949int
29950main ()
29951{
Reid Spencera773bd52006-08-04 18:18:08 +000029952if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029953 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029954if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029955 return 0;
29956 ;
29957 return 0;
29958}
29959_ACEOF
29960rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029961if { (ac_try="$ac_compile"
29962case "(($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_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029968 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029969 grep -v '^ *+' conftest.er1 >conftest.err
29970 rm -f conftest.er1
29971 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29975 { (case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29978esac
29979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029981 ac_status=$?
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; } &&
29984 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029985 { (case "(($ac_try" in
29986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29987 *) ac_try_echo=$ac_try;;
29988esac
29989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29990 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029991 ac_status=$?
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; }; then
29994 ac_cv_type_u_int64_t=yes
29995else
29996 echo "$as_me: failed program was:" >&5
29997sed 's/^/| /' conftest.$ac_ext >&5
29998
Reid Spencera773bd52006-08-04 18:18:08 +000029999 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030000fi
Reid Spencera773bd52006-08-04 18:18:08 +000030001
30002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030003fi
Reid Spencera773bd52006-08-04 18:18:08 +000030004{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30005echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030006if test $ac_cv_type_u_int64_t = yes; then
30007
30008cat >>confdefs.h <<_ACEOF
30009#define HAVE_U_INT64_T 1
30010_ACEOF
30011
30012
Misha Brukmanceca9042004-09-02 23:02:30 +000030013else
30014 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30015echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30016 { (exit 1); exit 1; }; }
30017fi
30018
John Criswell679ff312004-09-02 18:44:44 +000030019fi
30020
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030021
30022
30023
30024
30025
30026
30027
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030028
30029
Reid Spencerdf3be822006-01-23 08:15:53 +000030030for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030031do
30032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030036 echo $ECHO_N "(cached) $ECHO_C" >&6
30037else
30038 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030039/* confdefs.h. */
30040_ACEOF
30041cat confdefs.h >>conftest.$ac_ext
30042cat >>conftest.$ac_ext <<_ACEOF
30043/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30046#define $ac_func innocuous_$ac_func
30047
30048/* System header to define __stub macros and hopefully few prototypes,
30049 which can conflict with char $ac_func (); below.
30050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30051 <limits.h> exists even on freestanding compilers. */
30052
30053#ifdef __STDC__
30054# include <limits.h>
30055#else
30056# include <assert.h>
30057#endif
30058
30059#undef $ac_func
30060
Reid Spencera773bd52006-08-04 18:18:08 +000030061/* Override any GCC internal prototype to avoid an error.
30062 Use char because int might match the return type of a GCC
30063 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030064#ifdef __cplusplus
30065extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030066#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030067char $ac_func ();
30068/* The GNU C library defines this for functions which it implements
30069 to always fail with ENOSYS. Some functions are actually named
30070 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030071#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030072choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030073#endif
John Criswell7a73b802003-06-30 21:59:07 +000030074
John Criswell7a73b802003-06-30 21:59:07 +000030075int
30076main ()
30077{
Reid Spencera773bd52006-08-04 18:18:08 +000030078return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030079 ;
30080 return 0;
30081}
30082_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030083rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030084if { (ac_try="$ac_link"
30085case "(($ac_try" in
30086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087 *) ac_try_echo=$ac_try;;
30088esac
30089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030092 grep -v '^ *+' conftest.er1 >conftest.err
30093 rm -f conftest.er1
30094 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30098 { (case "(($ac_try" in
30099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100 *) ac_try_echo=$ac_try;;
30101esac
30102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030104 ac_status=$?
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030107 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030108 { (case "(($ac_try" in
30109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110 *) ac_try_echo=$ac_try;;
30111esac
30112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030117 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030118else
30119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030120sed 's/^/| /' conftest.$ac_ext >&5
30121
Reid Spencera773bd52006-08-04 18:18:08 +000030122 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030123fi
Reid Spencera773bd52006-08-04 18:18:08 +000030124
30125rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030126 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030127fi
Reid Spencera773bd52006-08-04 18:18:08 +000030128ac_res=`eval echo '${'$as_ac_var'}'`
30129 { echo "$as_me:$LINENO: result: $ac_res" >&5
30130echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030131if test `eval echo '${'$as_ac_var'}'` = yes; then
30132 cat >>confdefs.h <<_ACEOF
30133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030134_ACEOF
30135
30136fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030137done
John Criswell7a73b802003-06-30 21:59:07 +000030138
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030139
30140
30141
Reid Spencer6af3d262004-12-15 04:01:48 +000030142
30143
Reid Spencerb90645c2007-02-16 19:17:20 +000030144for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30145do
30146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30151else
30152 cat >conftest.$ac_ext <<_ACEOF
30153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
30158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30160#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030161
Reid Spencerb90645c2007-02-16 19:17:20 +000030162/* System header to define __stub macros and hopefully few prototypes,
30163 which can conflict with char $ac_func (); below.
30164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30165 <limits.h> exists even on freestanding compilers. */
30166
30167#ifdef __STDC__
30168# include <limits.h>
30169#else
30170# include <assert.h>
30171#endif
30172
30173#undef $ac_func
30174
30175/* Override any GCC internal prototype to avoid an error.
30176 Use char because int might match the return type of a GCC
30177 builtin and then its argument prototype would still apply. */
30178#ifdef __cplusplus
30179extern "C"
30180#endif
30181char $ac_func ();
30182/* The GNU C library defines this for functions which it implements
30183 to always fail with ENOSYS. Some functions are actually named
30184 something starting with __ and the normal name is an alias. */
30185#if defined __stub_$ac_func || defined __stub___$ac_func
30186choke me
30187#endif
30188
30189int
30190main ()
30191{
30192return $ac_func ();
30193 ;
30194 return 0;
30195}
30196_ACEOF
30197rm -f conftest.$ac_objext conftest$ac_exeext
30198if { (ac_try="$ac_link"
30199case "(($ac_try" in
30200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201 *) ac_try_echo=$ac_try;;
30202esac
30203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204 (eval "$ac_link") 2>conftest.er1
30205 ac_status=$?
30206 grep -v '^ *+' conftest.er1 >conftest.err
30207 rm -f conftest.er1
30208 cat conftest.err >&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } &&
30211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30212 { (case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30215esac
30216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217 (eval "$ac_try") 2>&5
30218 ac_status=$?
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; } &&
30221 { ac_try='test -s conftest$ac_exeext'
30222 { (case "(($ac_try" in
30223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224 *) ac_try_echo=$ac_try;;
30225esac
30226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227 (eval "$ac_try") 2>&5
30228 ac_status=$?
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); }; }; then
30231 eval "$as_ac_var=yes"
30232else
30233 echo "$as_me: failed program was:" >&5
30234sed 's/^/| /' conftest.$ac_ext >&5
30235
30236 eval "$as_ac_var=no"
30237fi
30238
30239rm -f core conftest.err conftest.$ac_objext \
30240 conftest$ac_exeext conftest.$ac_ext
30241fi
30242ac_res=`eval echo '${'$as_ac_var'}'`
30243 { echo "$as_me:$LINENO: result: $ac_res" >&5
30244echo "${ECHO_T}$ac_res" >&6; }
30245if test `eval echo '${'$as_ac_var'}'` = yes; then
30246 cat >>confdefs.h <<_ACEOF
30247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30248_ACEOF
30249
30250fi
30251done
30252
30253
30254
30255
30256for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030257do
30258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030262 echo $ECHO_N "(cached) $ECHO_C" >&6
30263else
30264 cat >conftest.$ac_ext <<_ACEOF
30265/* confdefs.h. */
30266_ACEOF
30267cat confdefs.h >>conftest.$ac_ext
30268cat >>conftest.$ac_ext <<_ACEOF
30269/* end confdefs.h. */
30270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30272#define $ac_func innocuous_$ac_func
30273
30274/* System header to define __stub macros and hopefully few prototypes,
30275 which can conflict with char $ac_func (); below.
30276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30277 <limits.h> exists even on freestanding compilers. */
30278
30279#ifdef __STDC__
30280# include <limits.h>
30281#else
30282# include <assert.h>
30283#endif
30284
30285#undef $ac_func
30286
Reid Spencera773bd52006-08-04 18:18:08 +000030287/* Override any GCC internal prototype to avoid an error.
30288 Use char because int might match the return type of a GCC
30289 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030290#ifdef __cplusplus
30291extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030292#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030293char $ac_func ();
30294/* The GNU C library defines this for functions which it implements
30295 to always fail with ENOSYS. Some functions are actually named
30296 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030297#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030298choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030299#endif
30300
30301int
30302main ()
30303{
Reid Spencera773bd52006-08-04 18:18:08 +000030304return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030305 ;
30306 return 0;
30307}
30308_ACEOF
30309rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030310if { (ac_try="$ac_link"
30311case "(($ac_try" in
30312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313 *) ac_try_echo=$ac_try;;
30314esac
30315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030317 ac_status=$?
30318 grep -v '^ *+' conftest.er1 >conftest.err
30319 rm -f conftest.er1
30320 cat conftest.err >&5
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30324 { (case "(($ac_try" in
30325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326 *) ac_try_echo=$ac_try;;
30327esac
30328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030330 ac_status=$?
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); }; } &&
30333 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030334 { (case "(($ac_try" in
30335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336 *) ac_try_echo=$ac_try;;
30337esac
30338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030340 ac_status=$?
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); }; }; then
30343 eval "$as_ac_var=yes"
30344else
30345 echo "$as_me: failed program was:" >&5
30346sed 's/^/| /' conftest.$ac_ext >&5
30347
Reid Spencera773bd52006-08-04 18:18:08 +000030348 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030349fi
Reid Spencera773bd52006-08-04 18:18:08 +000030350
30351rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030352 conftest$ac_exeext conftest.$ac_ext
30353fi
Reid Spencera773bd52006-08-04 18:18:08 +000030354ac_res=`eval echo '${'$as_ac_var'}'`
30355 { echo "$as_me:$LINENO: result: $ac_res" >&5
30356echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030357if test `eval echo '${'$as_ac_var'}'` = yes; then
30358 cat >>confdefs.h <<_ACEOF
30359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30360_ACEOF
30361
30362fi
30363done
30364
30365
30366
30367
30368
30369
30370
30371
30372for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030373do
30374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030375{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030378 echo $ECHO_N "(cached) $ECHO_C" >&6
30379else
30380 cat >conftest.$ac_ext <<_ACEOF
30381/* confdefs.h. */
30382_ACEOF
30383cat confdefs.h >>conftest.$ac_ext
30384cat >>conftest.$ac_ext <<_ACEOF
30385/* end confdefs.h. */
30386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30388#define $ac_func innocuous_$ac_func
30389
30390/* System header to define __stub macros and hopefully few prototypes,
30391 which can conflict with char $ac_func (); below.
30392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30393 <limits.h> exists even on freestanding compilers. */
30394
30395#ifdef __STDC__
30396# include <limits.h>
30397#else
30398# include <assert.h>
30399#endif
30400
30401#undef $ac_func
30402
Reid Spencera773bd52006-08-04 18:18:08 +000030403/* Override any GCC internal prototype to avoid an error.
30404 Use char because int might match the return type of a GCC
30405 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030406#ifdef __cplusplus
30407extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030408#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030409char $ac_func ();
30410/* The GNU C library defines this for functions which it implements
30411 to always fail with ENOSYS. Some functions are actually named
30412 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030413#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030414choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030415#endif
30416
30417int
30418main ()
30419{
Reid Spencera773bd52006-08-04 18:18:08 +000030420return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030421 ;
30422 return 0;
30423}
30424_ACEOF
30425rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030426if { (ac_try="$ac_link"
30427case "(($ac_try" in
30428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429 *) ac_try_echo=$ac_try;;
30430esac
30431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030433 ac_status=$?
30434 grep -v '^ *+' conftest.er1 >conftest.err
30435 rm -f conftest.er1
30436 cat conftest.err >&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30440 { (case "(($ac_try" in
30441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442 *) ac_try_echo=$ac_try;;
30443esac
30444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30445 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030446 ac_status=$?
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; } &&
30449 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030450 { (case "(($ac_try" in
30451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30452 *) ac_try_echo=$ac_try;;
30453esac
30454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30455 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; }; then
30459 eval "$as_ac_var=yes"
30460else
30461 echo "$as_me: failed program was:" >&5
30462sed 's/^/| /' conftest.$ac_ext >&5
30463
Reid Spencera773bd52006-08-04 18:18:08 +000030464 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030465fi
Reid Spencera773bd52006-08-04 18:18:08 +000030466
30467rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030468 conftest$ac_exeext conftest.$ac_ext
30469fi
Reid Spencera773bd52006-08-04 18:18:08 +000030470ac_res=`eval echo '${'$as_ac_var'}'`
30471 { echo "$as_me:$LINENO: result: $ac_res" >&5
30472echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030473if test `eval echo '${'$as_ac_var'}'` = yes; then
30474 cat >>confdefs.h <<_ACEOF
30475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30476_ACEOF
30477
30478fi
30479done
30480
30481
Reid Spencerba46ca32004-12-31 05:49:15 +000030482
30483
Chris Lattner0b142592005-11-14 06:57:34 +000030484
Chris Lattner511f11d2005-11-14 07:25:50 +000030485for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030486do
30487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030488{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30490if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030491 echo $ECHO_N "(cached) $ECHO_C" >&6
30492else
30493 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030494/* confdefs.h. */
30495_ACEOF
30496cat confdefs.h >>conftest.$ac_ext
30497cat >>conftest.$ac_ext <<_ACEOF
30498/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030499/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30501#define $ac_func innocuous_$ac_func
30502
30503/* System header to define __stub macros and hopefully few prototypes,
30504 which can conflict with char $ac_func (); below.
30505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30506 <limits.h> exists even on freestanding compilers. */
30507
30508#ifdef __STDC__
30509# include <limits.h>
30510#else
30511# include <assert.h>
30512#endif
30513
30514#undef $ac_func
30515
Reid Spencera773bd52006-08-04 18:18:08 +000030516/* Override any GCC internal prototype to avoid an error.
30517 Use char because int might match the return type of a GCC
30518 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030519#ifdef __cplusplus
30520extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030521#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030522char $ac_func ();
30523/* The GNU C library defines this for functions which it implements
30524 to always fail with ENOSYS. Some functions are actually named
30525 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030526#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030527choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030528#endif
John Criswell7a73b802003-06-30 21:59:07 +000030529
John Criswell7a73b802003-06-30 21:59:07 +000030530int
30531main ()
30532{
Reid Spencera773bd52006-08-04 18:18:08 +000030533return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030534 ;
30535 return 0;
30536}
30537_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030538rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030539if { (ac_try="$ac_link"
30540case "(($ac_try" in
30541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542 *) ac_try_echo=$ac_try;;
30543esac
30544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030546 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030547 grep -v '^ *+' conftest.er1 >conftest.err
30548 rm -f conftest.er1
30549 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30553 { (case "(($ac_try" in
30554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30555 *) ac_try_echo=$ac_try;;
30556esac
30557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30558 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030562 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030563 { (case "(($ac_try" in
30564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565 *) ac_try_echo=$ac_try;;
30566esac
30567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030572 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030573else
30574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030575sed 's/^/| /' conftest.$ac_ext >&5
30576
Reid Spencera773bd52006-08-04 18:18:08 +000030577 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030578fi
Reid Spencera773bd52006-08-04 18:18:08 +000030579
30580rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030581 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030582fi
Reid Spencera773bd52006-08-04 18:18:08 +000030583ac_res=`eval echo '${'$as_ac_var'}'`
30584 { echo "$as_me:$LINENO: result: $ac_res" >&5
30585echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030586if test `eval echo '${'$as_ac_var'}'` = yes; then
30587 cat >>confdefs.h <<_ACEOF
30588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030589_ACEOF
30590
30591fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030592done
John Criswell7a73b802003-06-30 21:59:07 +000030593
Reid Spencercdb08a32006-06-05 16:11:07 +000030594
30595
30596
30597
Reid Spencerafa22e22006-12-10 23:29:19 +000030598for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030599do
30600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030601{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030604 echo $ECHO_N "(cached) $ECHO_C" >&6
30605else
30606 cat >conftest.$ac_ext <<_ACEOF
30607/* confdefs.h. */
30608_ACEOF
30609cat confdefs.h >>conftest.$ac_ext
30610cat >>conftest.$ac_ext <<_ACEOF
30611/* end confdefs.h. */
30612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30614#define $ac_func innocuous_$ac_func
30615
30616/* System header to define __stub macros and hopefully few prototypes,
30617 which can conflict with char $ac_func (); below.
30618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30619 <limits.h> exists even on freestanding compilers. */
30620
30621#ifdef __STDC__
30622# include <limits.h>
30623#else
30624# include <assert.h>
30625#endif
30626
30627#undef $ac_func
30628
Reid Spencera773bd52006-08-04 18:18:08 +000030629/* Override any GCC internal prototype to avoid an error.
30630 Use char because int might match the return type of a GCC
30631 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030632#ifdef __cplusplus
30633extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030634#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030635char $ac_func ();
30636/* The GNU C library defines this for functions which it implements
30637 to always fail with ENOSYS. Some functions are actually named
30638 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030639#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030640choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030641#endif
30642
30643int
30644main ()
30645{
Reid Spencera773bd52006-08-04 18:18:08 +000030646return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030647 ;
30648 return 0;
30649}
30650_ACEOF
30651rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030652if { (ac_try="$ac_link"
30653case "(($ac_try" in
30654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655 *) ac_try_echo=$ac_try;;
30656esac
30657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030659 ac_status=$?
30660 grep -v '^ *+' conftest.er1 >conftest.err
30661 rm -f conftest.er1
30662 cat conftest.err >&5
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30666 { (case "(($ac_try" in
30667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668 *) ac_try_echo=$ac_try;;
30669esac
30670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030672 ac_status=$?
30673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674 (exit $ac_status); }; } &&
30675 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030676 { (case "(($ac_try" in
30677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678 *) ac_try_echo=$ac_try;;
30679esac
30680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030682 ac_status=$?
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); }; }; then
30685 eval "$as_ac_var=yes"
30686else
30687 echo "$as_me: failed program was:" >&5
30688sed 's/^/| /' conftest.$ac_ext >&5
30689
Reid Spencera773bd52006-08-04 18:18:08 +000030690 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030691fi
Reid Spencera773bd52006-08-04 18:18:08 +000030692
30693rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030694 conftest$ac_exeext conftest.$ac_ext
30695fi
Reid Spencera773bd52006-08-04 18:18:08 +000030696ac_res=`eval echo '${'$as_ac_var'}'`
30697 { echo "$as_me:$LINENO: result: $ac_res" >&5
30698echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030699if test `eval echo '${'$as_ac_var'}'` = yes; then
30700 cat >>confdefs.h <<_ACEOF
30701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30702_ACEOF
30703
30704fi
30705done
30706
Reid Spencera773bd52006-08-04 18:18:08 +000030707{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30708echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030709if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030710 echo $ECHO_N "(cached) $ECHO_C" >&6
30711else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030712 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030713ac_cpp='$CPP $CPPFLAGS'
30714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30716ac_compiler_gnu=$ac_cv_c_compiler_gnu
30717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030718 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030719 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030720else
30721 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030722
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030723 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030724_ACEOF
30725cat confdefs.h >>conftest.$ac_ext
30726cat >>conftest.$ac_ext <<_ACEOF
30727/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030728
John Criswella0137d32003-10-13 16:22:01 +000030729#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030730#include <stdlib.h>
30731
John Criswella0137d32003-10-13 16:22:01 +000030732int
30733main ()
30734{
30735
Reid Spencer2706f8c2004-09-19 23:53:36 +000030736volatile double A, B;
30737char Buffer[100];
30738A = 1;
30739A /= 10.0;
30740sprintf(Buffer, "%a", A);
30741B = atof(Buffer);
30742if (A != B)
30743 return (1);
30744if (A != 0x1.999999999999ap-4)
30745 return (1);
30746return (0);
John Criswella0137d32003-10-13 16:22:01 +000030747 ;
30748 return 0;
30749}
30750_ACEOF
30751rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030752if { (ac_try="$ac_link"
30753case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30756esac
30757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030759 ac_status=$?
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030762 { (case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30765esac
30766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030768 ac_status=$?
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030771 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030772else
30773 echo "$as_me: program exited with status $ac_status" >&5
30774echo "$as_me: failed program was:" >&5
30775sed 's/^/| /' conftest.$ac_ext >&5
30776
30777( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030778llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030779fi
Reid Spencera773bd52006-08-04 18:18:08 +000030780rm -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 +000030781fi
Reid Spencera773bd52006-08-04 18:18:08 +000030782
30783
Reid Spencer2706f8c2004-09-19 23:53:36 +000030784 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030785ac_cpp='$CPP $CPPFLAGS'
30786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30788ac_compiler_gnu=$ac_cv_c_compiler_gnu
30789
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030790fi
Reid Spencera773bd52006-08-04 18:18:08 +000030791{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30792echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030793 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030794
30795cat >>confdefs.h <<\_ACEOF
30796#define HAVE_PRINTF_A 1
30797_ACEOF
30798
Reid Spencer2706f8c2004-09-19 23:53:36 +000030799 fi
John Criswella0137d32003-10-13 16:22:01 +000030800
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030801# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30802# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030803{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30804echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030805if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030806 echo $ECHO_N "(cached) $ECHO_C" >&6
30807else
John Criswell0021c312004-02-13 21:57:29 +000030808 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030809/* confdefs.h. */
30810_ACEOF
30811cat confdefs.h >>conftest.$ac_ext
30812cat >>conftest.$ac_ext <<_ACEOF
30813/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030814#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030815int
30816main ()
30817{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030818char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030819 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030820 ;
30821 return 0;
30822}
30823_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030824rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030825if { (ac_try="$ac_link"
30826case "(($ac_try" in
30827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828 *) ac_try_echo=$ac_try;;
30829esac
30830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030833 grep -v '^ *+' conftest.er1 >conftest.err
30834 rm -f conftest.er1
30835 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30839 { (case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30842esac
30843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030845 ac_status=$?
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030848 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030849 { (case "(($ac_try" in
30850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851 *) ac_try_echo=$ac_try;;
30852esac
30853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30854 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030855 ac_status=$?
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030858 ac_cv_working_alloca_h=yes
30859else
30860 echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
Reid Spencera773bd52006-08-04 18:18:08 +000030863 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030864fi
Reid Spencera773bd52006-08-04 18:18:08 +000030865
30866rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030867 conftest$ac_exeext conftest.$ac_ext
30868fi
Reid Spencera773bd52006-08-04 18:18:08 +000030869{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30870echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030871if test $ac_cv_working_alloca_h = yes; then
30872
30873cat >>confdefs.h <<\_ACEOF
30874#define HAVE_ALLOCA_H 1
30875_ACEOF
30876
30877fi
30878
Reid Spencera773bd52006-08-04 18:18:08 +000030879{ echo "$as_me:$LINENO: checking for alloca" >&5
30880echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030881if test "${ac_cv_func_alloca_works+set}" = set; then
30882 echo $ECHO_N "(cached) $ECHO_C" >&6
30883else
30884 cat >conftest.$ac_ext <<_ACEOF
30885/* confdefs.h. */
30886_ACEOF
30887cat confdefs.h >>conftest.$ac_ext
30888cat >>conftest.$ac_ext <<_ACEOF
30889/* end confdefs.h. */
30890#ifdef __GNUC__
30891# define alloca __builtin_alloca
30892#else
30893# ifdef _MSC_VER
30894# include <malloc.h>
30895# define alloca _alloca
30896# else
30897# if HAVE_ALLOCA_H
30898# include <alloca.h>
30899# else
30900# ifdef _AIX
30901 #pragma alloca
30902# else
30903# ifndef alloca /* predefined by HP cc +Olibcalls */
30904char *alloca ();
30905# endif
30906# endif
30907# endif
30908# endif
30909#endif
30910
30911int
30912main ()
30913{
30914char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030915 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030916 ;
30917 return 0;
30918}
30919_ACEOF
30920rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030921if { (ac_try="$ac_link"
30922case "(($ac_try" in
30923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30924 *) ac_try_echo=$ac_try;;
30925esac
30926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30927 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030928 ac_status=$?
30929 grep -v '^ *+' conftest.er1 >conftest.err
30930 rm -f conftest.er1
30931 cat conftest.err >&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30935 { (case "(($ac_try" in
30936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937 *) ac_try_echo=$ac_try;;
30938esac
30939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030941 ac_status=$?
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; } &&
30944 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030945 { (case "(($ac_try" in
30946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947 *) ac_try_echo=$ac_try;;
30948esac
30949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030951 ac_status=$?
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; }; then
30954 ac_cv_func_alloca_works=yes
30955else
30956 echo "$as_me: failed program was:" >&5
30957sed 's/^/| /' conftest.$ac_ext >&5
30958
Reid Spencera773bd52006-08-04 18:18:08 +000030959 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030960fi
Reid Spencera773bd52006-08-04 18:18:08 +000030961
30962rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030963 conftest$ac_exeext conftest.$ac_ext
30964fi
Reid Spencera773bd52006-08-04 18:18:08 +000030965{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30966echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030967
30968if test $ac_cv_func_alloca_works = yes; then
30969
30970cat >>confdefs.h <<\_ACEOF
30971#define HAVE_ALLOCA 1
30972_ACEOF
30973
30974else
30975 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30976# that cause trouble. Some versions do not even contain alloca or
30977# contain a buggy version. If you still want to use their alloca,
30978# use ar to extract alloca.o from them instead of compiling alloca.c.
30979
Reid Spencera773bd52006-08-04 18:18:08 +000030980ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030981
30982cat >>confdefs.h <<\_ACEOF
30983#define C_ALLOCA 1
30984_ACEOF
30985
30986
Reid Spencera773bd52006-08-04 18:18:08 +000030987{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30988echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030989if test "${ac_cv_os_cray+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30991else
30992 cat >conftest.$ac_ext <<_ACEOF
30993/* confdefs.h. */
30994_ACEOF
30995cat confdefs.h >>conftest.$ac_ext
30996cat >>conftest.$ac_ext <<_ACEOF
30997/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030998#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030999webecray
31000#else
31001wenotbecray
31002#endif
31003
31004_ACEOF
31005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31006 $EGREP "webecray" >/dev/null 2>&1; then
31007 ac_cv_os_cray=yes
31008else
31009 ac_cv_os_cray=no
31010fi
31011rm -f conftest*
31012
31013fi
Reid Spencera773bd52006-08-04 18:18:08 +000031014{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31015echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031016if test $ac_cv_os_cray = yes; then
31017 for ac_func in _getb67 GETB67 getb67; do
31018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031019{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031022 echo $ECHO_N "(cached) $ECHO_C" >&6
31023else
31024 cat >conftest.$ac_ext <<_ACEOF
31025/* confdefs.h. */
31026_ACEOF
31027cat confdefs.h >>conftest.$ac_ext
31028cat >>conftest.$ac_ext <<_ACEOF
31029/* end confdefs.h. */
31030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31032#define $ac_func innocuous_$ac_func
31033
31034/* System header to define __stub macros and hopefully few prototypes,
31035 which can conflict with char $ac_func (); below.
31036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31037 <limits.h> exists even on freestanding compilers. */
31038
31039#ifdef __STDC__
31040# include <limits.h>
31041#else
31042# include <assert.h>
31043#endif
31044
31045#undef $ac_func
31046
Reid Spencera773bd52006-08-04 18:18:08 +000031047/* Override any GCC internal prototype to avoid an error.
31048 Use char because int might match the return type of a GCC
31049 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031050#ifdef __cplusplus
31051extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031052#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031053char $ac_func ();
31054/* The GNU C library defines this for functions which it implements
31055 to always fail with ENOSYS. Some functions are actually named
31056 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031057#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031058choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031059#endif
31060
31061int
31062main ()
31063{
Reid Spencera773bd52006-08-04 18:18:08 +000031064return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031065 ;
31066 return 0;
31067}
31068_ACEOF
31069rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031070if { (ac_try="$ac_link"
31071case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31074esac
31075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031077 ac_status=$?
31078 grep -v '^ *+' conftest.er1 >conftest.err
31079 rm -f conftest.er1
31080 cat conftest.err >&5
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31084 { (case "(($ac_try" in
31085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086 *) ac_try_echo=$ac_try;;
31087esac
31088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; } &&
31093 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031094 { (case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31097esac
31098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031100 ac_status=$?
31101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); }; }; then
31103 eval "$as_ac_var=yes"
31104else
31105 echo "$as_me: failed program was:" >&5
31106sed 's/^/| /' conftest.$ac_ext >&5
31107
Reid Spencera773bd52006-08-04 18:18:08 +000031108 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031109fi
Reid Spencera773bd52006-08-04 18:18:08 +000031110
31111rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031112 conftest$ac_exeext conftest.$ac_ext
31113fi
Reid Spencera773bd52006-08-04 18:18:08 +000031114ac_res=`eval echo '${'$as_ac_var'}'`
31115 { echo "$as_me:$LINENO: result: $ac_res" >&5
31116echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031117if test `eval echo '${'$as_ac_var'}'` = yes; then
31118
31119cat >>confdefs.h <<_ACEOF
31120#define CRAY_STACKSEG_END $ac_func
31121_ACEOF
31122
31123 break
31124fi
31125
31126 done
31127fi
31128
Reid Spencera773bd52006-08-04 18:18:08 +000031129{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31130echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031131if test "${ac_cv_c_stack_direction+set}" = set; then
31132 echo $ECHO_N "(cached) $ECHO_C" >&6
31133else
31134 if test "$cross_compiling" = yes; then
31135 ac_cv_c_stack_direction=0
31136else
31137 cat >conftest.$ac_ext <<_ACEOF
31138/* confdefs.h. */
31139_ACEOF
31140cat confdefs.h >>conftest.$ac_ext
31141cat >>conftest.$ac_ext <<_ACEOF
31142/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031143$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031144int
31145find_stack_direction ()
31146{
31147 static char *addr = 0;
31148 auto char dummy;
31149 if (addr == 0)
31150 {
31151 addr = &dummy;
31152 return find_stack_direction ();
31153 }
John Criswell0021c312004-02-13 21:57:29 +000031154 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031155 return (&dummy > addr) ? 1 : -1;
31156}
John Criswell0021c312004-02-13 21:57:29 +000031157
John Criswell0021c312004-02-13 21:57:29 +000031158int
31159main ()
31160{
Reid Spencera773bd52006-08-04 18:18:08 +000031161 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031162}
31163_ACEOF
31164rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031165if { (ac_try="$ac_link"
31166case "(($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_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31178esac
31179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031181 ac_status=$?
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031184 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031185else
31186 echo "$as_me: program exited with status $ac_status" >&5
31187echo "$as_me: failed program was:" >&5
31188sed 's/^/| /' conftest.$ac_ext >&5
31189
31190( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031191ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031192fi
Reid Spencera773bd52006-08-04 18:18:08 +000031193rm -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 +000031194fi
Reid Spencera773bd52006-08-04 18:18:08 +000031195
31196
John Criswell0021c312004-02-13 21:57:29 +000031197fi
Reid Spencera773bd52006-08-04 18:18:08 +000031198{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31199echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031200
31201cat >>confdefs.h <<_ACEOF
31202#define STACK_DIRECTION $ac_cv_c_stack_direction
31203_ACEOF
31204
31205
John Criswell0021c312004-02-13 21:57:29 +000031206fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031207
31208
Reid Spencera773bd52006-08-04 18:18:08 +000031209{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31210echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031211if test "${ac_cv_func_rand48+set}" = set; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31213else
Reid Spencera773bd52006-08-04 18:18:08 +000031214 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215ac_cpp='$CXXCPP $CPPFLAGS'
31216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31219
31220 cat >conftest.$ac_ext <<_ACEOF
31221/* confdefs.h. */
31222_ACEOF
31223cat confdefs.h >>conftest.$ac_ext
31224cat >>conftest.$ac_ext <<_ACEOF
31225/* end confdefs.h. */
31226#include <stdlib.h>
31227int
31228main ()
31229{
31230srand48(0);lrand48();drand48();
31231 ;
31232 return 0;
31233}
31234_ACEOF
31235rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031236if { (ac_try="$ac_compile"
31237case "(($ac_try" in
31238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239 *) ac_try_echo=$ac_try;;
31240esac
31241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31242 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031243 ac_status=$?
31244 grep -v '^ *+' conftest.er1 >conftest.err
31245 rm -f conftest.er1
31246 cat conftest.err >&5
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31250 { (case "(($ac_try" in
31251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252 *) ac_try_echo=$ac_try;;
31253esac
31254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031256 ac_status=$?
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); }; } &&
31259 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031260 { (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 Spencer5e1d9a52004-11-25 04:51:04 +000031266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; }; then
31269 ac_cv_func_rand48=yes
31270else
31271 echo "$as_me: failed program was:" >&5
31272sed 's/^/| /' conftest.$ac_ext >&5
31273
Reid Spencera773bd52006-08-04 18:18:08 +000031274 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031275fi
Reid Spencera773bd52006-08-04 18:18:08 +000031276
31277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031278 ac_ext=c
31279ac_cpp='$CPP $CPPFLAGS'
31280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282ac_compiler_gnu=$ac_cv_c_compiler_gnu
31283
31284fi
Reid Spencera773bd52006-08-04 18:18:08 +000031285{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31286echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031287
31288if test "$ac_cv_func_rand48" = "yes" ; then
31289
31290cat >>confdefs.h <<\_ACEOF
31291#define HAVE_RAND48 1
31292_ACEOF
31293
31294fi
John Criswell0021c312004-02-13 21:57:29 +000031295
31296
Reid Spencera773bd52006-08-04 18:18:08 +000031297{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31298echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031299if test "${ac_cv_cxx_namespaces+set}" = set; then
31300 echo $ECHO_N "(cached) $ECHO_C" >&6
31301else
Reid Spencera773bd52006-08-04 18:18:08 +000031302 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031303ac_cpp='$CXXCPP $CPPFLAGS'
31304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31307
31308 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031309/* confdefs.h. */
31310_ACEOF
31311cat confdefs.h >>conftest.$ac_ext
31312cat >>conftest.$ac_ext <<_ACEOF
31313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031314namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031315int
31316main ()
31317{
31318using namespace Outer::Inner; return i;
31319 ;
31320 return 0;
31321}
31322_ACEOF
31323rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031324if { (ac_try="$ac_compile"
31325case "(($ac_try" in
31326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327 *) ac_try_echo=$ac_try;;
31328esac
31329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031331 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031332 grep -v '^ *+' conftest.er1 >conftest.err
31333 rm -f conftest.er1
31334 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31338 { (case "(($ac_try" in
31339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340 *) ac_try_echo=$ac_try;;
31341esac
31342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; } &&
31347 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031348 { (case "(($ac_try" in
31349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350 *) ac_try_echo=$ac_try;;
31351esac
31352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031354 ac_status=$?
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); }; }; then
31357 ac_cv_cxx_namespaces=yes
31358else
31359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031360sed 's/^/| /' conftest.$ac_ext >&5
31361
Reid Spencera773bd52006-08-04 18:18:08 +000031362 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031363fi
Reid Spencera773bd52006-08-04 18:18:08 +000031364
31365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031366 ac_ext=c
31367ac_cpp='$CPP $CPPFLAGS'
31368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31370ac_compiler_gnu=$ac_cv_c_compiler_gnu
31371
31372
31373fi
Reid Spencera773bd52006-08-04 18:18:08 +000031374{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31375echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031376if test "$ac_cv_cxx_namespaces" = yes; then
31377
31378cat >>confdefs.h <<\_ACEOF
31379#define HAVE_NAMESPACES
31380_ACEOF
31381
31382fi
31383
Reid Spencera773bd52006-08-04 18:18:08 +000031384{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31385echo $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 +000031386if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031387 echo $ECHO_N "(cached) $ECHO_C" >&6
31388else
31389
Reid Spencera773bd52006-08-04 18:18:08 +000031390 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031391ac_cpp='$CXXCPP $CPPFLAGS'
31392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31395
31396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031397/* confdefs.h. */
31398_ACEOF
31399cat confdefs.h >>conftest.$ac_ext
31400cat >>conftest.$ac_ext <<_ACEOF
31401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031402#include <ext/hash_map>
31403#ifdef HAVE_NAMESPACES
31404using namespace std;
31405#endif
John Criswell7a73b802003-06-30 21:59:07 +000031406int
31407main ()
31408{
Brian Gaeke90583492003-11-10 03:06:28 +000031409hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031410 ;
31411 return 0;
31412}
31413_ACEOF
31414rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031415if { (ac_try="$ac_compile"
31416case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31419esac
31420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031423 grep -v '^ *+' conftest.er1 >conftest.err
31424 rm -f conftest.er1
31425 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432esac
31433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031439 { (case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31442esac
31443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031445 ac_status=$?
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031448 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031449else
31450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031451sed 's/^/| /' conftest.$ac_ext >&5
31452
Reid Spencera773bd52006-08-04 18:18:08 +000031453 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031454fi
Reid Spencera773bd52006-08-04 18:18:08 +000031455
31456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031457 ac_ext=c
31458ac_cpp='$CPP $CPPFLAGS'
31459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31461ac_compiler_gnu=$ac_cv_c_compiler_gnu
31462
John Criswell7a73b802003-06-30 21:59:07 +000031463fi
Reid Spencera773bd52006-08-04 18:18:08 +000031464{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31465echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031466 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31467 then
John Criswell9f011862004-09-24 18:28:00 +000031468
31469cat >>confdefs.h <<\_ACEOF
31470#define HAVE_STD_EXT_HASH_MAP 1
31471_ACEOF
31472
31473 else
31474
31475cat >>confdefs.h <<\_ACEOF
31476#define HAVE_STD_EXT_HASH_MAP 0
31477_ACEOF
31478
Brian Gaeke90583492003-11-10 03:06:28 +000031479 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031480
Reid Spencera773bd52006-08-04 18:18:08 +000031481 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31482echo $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 +000031483if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31485else
31486
Reid Spencera773bd52006-08-04 18:18:08 +000031487 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031488ac_cpp='$CXXCPP $CPPFLAGS'
31489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31492
31493 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031494/* confdefs.h. */
31495_ACEOF
31496cat confdefs.h >>conftest.$ac_ext
31497cat >>conftest.$ac_ext <<_ACEOF
31498/* end confdefs.h. */
31499#include <ext/hash_map>
31500#ifdef HAVE_NAMESPACES
31501using namespace __gnu_cxx;
31502#endif
31503int
31504main ()
31505{
31506hash_map<int,int> t;
31507 ;
31508 return 0;
31509}
31510_ACEOF
31511rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031512if { (ac_try="$ac_compile"
31513case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516esac
31517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_cxx_have_gnu_ext_hash_map=yes
31546else
31547 echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
Reid Spencera773bd52006-08-04 18:18:08 +000031550 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031551fi
Reid Spencera773bd52006-08-04 18:18:08 +000031552
31553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031554 ac_ext=c
31555ac_cpp='$CPP $CPPFLAGS'
31556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558ac_compiler_gnu=$ac_cv_c_compiler_gnu
31559
31560fi
Reid Spencera773bd52006-08-04 18:18:08 +000031561{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31562echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031563 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31564 then
John Criswell9f011862004-09-24 18:28:00 +000031565
31566cat >>confdefs.h <<\_ACEOF
31567#define HAVE_GNU_EXT_HASH_MAP 1
31568_ACEOF
31569
31570 else
31571
31572cat >>confdefs.h <<\_ACEOF
31573#define HAVE_GNU_EXT_HASH_MAP 0
31574_ACEOF
31575
Brian Gaeke90583492003-11-10 03:06:28 +000031576 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031577
Reid Spencera773bd52006-08-04 18:18:08 +000031578 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31579echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031580if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31582else
John Criswell7a73b802003-06-30 21:59:07 +000031583
Reid Spencera773bd52006-08-04 18:18:08 +000031584 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031585ac_cpp='$CXXCPP $CPPFLAGS'
31586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31589
31590 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031591/* confdefs.h. */
31592_ACEOF
31593cat confdefs.h >>conftest.$ac_ext
31594cat >>conftest.$ac_ext <<_ACEOF
31595/* end confdefs.h. */
31596#include <hash_map>
31597int
31598main ()
31599{
31600hash_map<int,int> t;
31601 ;
31602 return 0;
31603}
31604_ACEOF
31605rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031606if { (ac_try="$ac_compile"
31607case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31610esac
31611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031614 grep -v '^ *+' conftest.er1 >conftest.err
31615 rm -f conftest.er1
31616 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31623esac
31624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031626 ac_status=$?
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; } &&
31629 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031630 { (case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31633esac
31634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31639 ac_cv_cxx_have_global_hash_map=yes
31640else
31641 echo "$as_me: failed program was:" >&5
31642sed 's/^/| /' conftest.$ac_ext >&5
31643
Reid Spencera773bd52006-08-04 18:18:08 +000031644 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031645fi
Reid Spencera773bd52006-08-04 18:18:08 +000031646
31647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031648 ac_ext=c
31649ac_cpp='$CPP $CPPFLAGS'
31650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31652ac_compiler_gnu=$ac_cv_c_compiler_gnu
31653
31654fi
Reid Spencera773bd52006-08-04 18:18:08 +000031655{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31656echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031657 if test "$ac_cv_cxx_have_global_hash_map" = yes
31658 then
John Criswell9f011862004-09-24 18:28:00 +000031659
31660cat >>confdefs.h <<\_ACEOF
31661#define HAVE_GLOBAL_HASH_MAP 1
31662_ACEOF
31663
31664 else
31665
31666cat >>confdefs.h <<\_ACEOF
31667#define HAVE_GLOBAL_HASH_MAP 0
31668_ACEOF
31669
Brian Gaeke90583492003-11-10 03:06:28 +000031670 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031671
Reid Spencera773bd52006-08-04 18:18:08 +000031672{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31673echo $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 +000031674if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031675 echo $ECHO_N "(cached) $ECHO_C" >&6
31676else
31677
Reid Spencera773bd52006-08-04 18:18:08 +000031678 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031679ac_cpp='$CXXCPP $CPPFLAGS'
31680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31683
31684 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031685/* confdefs.h. */
31686_ACEOF
31687cat confdefs.h >>conftest.$ac_ext
31688cat >>conftest.$ac_ext <<_ACEOF
31689/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031690#include <ext/hash_set>
31691#ifdef HAVE_NAMESPACES
31692using namespace std;
31693#endif
John Criswell7a73b802003-06-30 21:59:07 +000031694int
31695main ()
31696{
Brian Gaeke90583492003-11-10 03:06:28 +000031697hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031698 ;
31699 return 0;
31700}
31701_ACEOF
31702rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031703if { (ac_try="$ac_compile"
31704case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31707esac
31708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031711 grep -v '^ *+' conftest.er1 >conftest.err
31712 rm -f conftest.er1
31713 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31717 { (case "(($ac_try" in
31718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719 *) ac_try_echo=$ac_try;;
31720esac
31721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031723 ac_status=$?
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); }; } &&
31726 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031727 { (case "(($ac_try" in
31728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729 *) ac_try_echo=$ac_try;;
31730esac
31731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031736 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031737else
31738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031739sed 's/^/| /' conftest.$ac_ext >&5
31740
Reid Spencera773bd52006-08-04 18:18:08 +000031741 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031742fi
Reid Spencera773bd52006-08-04 18:18:08 +000031743
31744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031745 ac_ext=c
31746ac_cpp='$CPP $CPPFLAGS'
31747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31749ac_compiler_gnu=$ac_cv_c_compiler_gnu
31750
31751fi
Reid Spencera773bd52006-08-04 18:18:08 +000031752{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31753echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031754 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31755 then
John Criswell9f011862004-09-24 18:28:00 +000031756
31757cat >>confdefs.h <<\_ACEOF
31758#define HAVE_STD_EXT_HASH_SET 1
31759_ACEOF
31760
31761 else
31762
31763cat >>confdefs.h <<\_ACEOF
31764#define HAVE_STD_EXT_HASH_SET 0
31765_ACEOF
31766
Brian Gaeke90583492003-11-10 03:06:28 +000031767 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031768
Reid Spencera773bd52006-08-04 18:18:08 +000031769 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31770echo $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 +000031771if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31773else
31774
Reid Spencera773bd52006-08-04 18:18:08 +000031775 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031776ac_cpp='$CXXCPP $CPPFLAGS'
31777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31780
John Criswell7a73b802003-06-30 21:59:07 +000031781 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031782/* confdefs.h. */
31783_ACEOF
31784cat confdefs.h >>conftest.$ac_ext
31785cat >>conftest.$ac_ext <<_ACEOF
31786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031787#include <ext/hash_set>
31788#ifdef HAVE_NAMESPACES
31789using namespace __gnu_cxx;
31790#endif
John Criswell7a73b802003-06-30 21:59:07 +000031791int
31792main ()
31793{
Brian Gaeke90583492003-11-10 03:06:28 +000031794hash_set<int> t;
31795 ;
31796 return 0;
31797}
31798_ACEOF
31799rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031800if { (ac_try="$ac_compile"
31801case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31804esac
31805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031808 grep -v '^ *+' conftest.er1 >conftest.err
31809 rm -f conftest.er1
31810 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817esac
31818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031824 { (case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31827esac
31828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 ac_cv_cxx_have_gnu_ext_hash_set=yes
31834else
31835 echo "$as_me: failed program was:" >&5
31836sed 's/^/| /' conftest.$ac_ext >&5
31837
Reid Spencera773bd52006-08-04 18:18:08 +000031838 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031839fi
Reid Spencera773bd52006-08-04 18:18:08 +000031840
31841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031842 ac_ext=c
31843ac_cpp='$CPP $CPPFLAGS'
31844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31846ac_compiler_gnu=$ac_cv_c_compiler_gnu
31847
31848fi
Reid Spencera773bd52006-08-04 18:18:08 +000031849{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31850echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031851 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31852 then
John Criswell9f011862004-09-24 18:28:00 +000031853
31854cat >>confdefs.h <<\_ACEOF
31855#define HAVE_GNU_EXT_HASH_SET 1
31856_ACEOF
31857
31858 else
31859
31860cat >>confdefs.h <<\_ACEOF
31861#define HAVE_GNU_EXT_HASH_SET 0
31862_ACEOF
31863
Brian Gaeke90583492003-11-10 03:06:28 +000031864 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031865
Reid Spencera773bd52006-08-04 18:18:08 +000031866 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31867echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031868if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31869 echo $ECHO_N "(cached) $ECHO_C" >&6
31870else
31871
Reid Spencera773bd52006-08-04 18:18:08 +000031872 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031873ac_cpp='$CXXCPP $CPPFLAGS'
31874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31877
31878 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031879/* confdefs.h. */
31880_ACEOF
31881cat confdefs.h >>conftest.$ac_ext
31882cat >>conftest.$ac_ext <<_ACEOF
31883/* end confdefs.h. */
31884#include <hash_set>
31885int
31886main ()
31887{
John Criswell7a73b802003-06-30 21:59:07 +000031888hash_set<int> t; return 0;
31889 ;
31890 return 0;
31891}
31892_ACEOF
31893rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031894if { (ac_try="$ac_compile"
31895case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31898esac
31899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031901 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031902 grep -v '^ *+' conftest.er1 >conftest.err
31903 rm -f conftest.er1
31904 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31908 { (case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31911esac
31912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; } &&
31917 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031918 { (case "(($ac_try" in
31919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920 *) ac_try_echo=$ac_try;;
31921esac
31922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31923 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031924 ac_status=$?
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031927 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031928else
31929 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031930sed 's/^/| /' conftest.$ac_ext >&5
31931
Reid Spencera773bd52006-08-04 18:18:08 +000031932 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031933fi
Reid Spencera773bd52006-08-04 18:18:08 +000031934
31935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031936 ac_ext=c
31937ac_cpp='$CPP $CPPFLAGS'
31938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31940ac_compiler_gnu=$ac_cv_c_compiler_gnu
31941
John Criswell7a73b802003-06-30 21:59:07 +000031942fi
Reid Spencera773bd52006-08-04 18:18:08 +000031943{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31944echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031945 if test "$ac_cv_cxx_have_global_hash_set" = yes
31946 then
John Criswell9f011862004-09-24 18:28:00 +000031947
31948cat >>confdefs.h <<\_ACEOF
31949#define HAVE_GLOBAL_HASH_SET 1
31950_ACEOF
31951
31952 else
31953
31954cat >>confdefs.h <<\_ACEOF
31955#define HAVE_GLOBAL_HASH_SET 0
31956_ACEOF
31957
Brian Gaeke90583492003-11-10 03:06:28 +000031958 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031959
Reid Spencera773bd52006-08-04 18:18:08 +000031960{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31961echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031962if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31963 echo $ECHO_N "(cached) $ECHO_C" >&6
31964else
31965
Reid Spencera773bd52006-08-04 18:18:08 +000031966 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031967ac_cpp='$CXXCPP $CPPFLAGS'
31968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31971
31972 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031973/* confdefs.h. */
31974_ACEOF
31975cat confdefs.h >>conftest.$ac_ext
31976cat >>conftest.$ac_ext <<_ACEOF
31977/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031978#include <iterator>
31979#ifdef HAVE_NAMESPACES
31980using namespace std;
31981#endif
John Criswell7a73b802003-06-30 21:59:07 +000031982int
31983main ()
31984{
31985iterator<int,int,int> t; return 0;
31986 ;
31987 return 0;
31988}
31989_ACEOF
31990rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031991if { (ac_try="$ac_compile"
31992case "(($ac_try" in
31993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31994 *) ac_try_echo=$ac_try;;
31995esac
31996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31997 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031998 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031999 grep -v '^ *+' conftest.er1 >conftest.err
32000 rm -f conftest.er1
32001 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32005 { (case "(($ac_try" in
32006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32007 *) ac_try_echo=$ac_try;;
32008esac
32009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32010 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032011 ac_status=$?
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); }; } &&
32014 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032015 { (case "(($ac_try" in
32016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017 *) ac_try_echo=$ac_try;;
32018esac
32019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032021 ac_status=$?
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); }; }; then
32024 ac_cv_cxx_have_std_iterator=yes
32025else
32026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032027sed 's/^/| /' conftest.$ac_ext >&5
32028
Reid Spencera773bd52006-08-04 18:18:08 +000032029 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032030fi
Reid Spencera773bd52006-08-04 18:18:08 +000032031
32032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032033 ac_ext=c
32034ac_cpp='$CPP $CPPFLAGS'
32035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32037ac_compiler_gnu=$ac_cv_c_compiler_gnu
32038
32039
32040fi
Reid Spencera773bd52006-08-04 18:18:08 +000032041{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32042echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032043if test "$ac_cv_cxx_have_std_iterator" = yes
32044then
John Criswell40468462004-09-24 21:19:06 +000032045
32046cat >>confdefs.h <<\_ACEOF
32047#define HAVE_STD_ITERATOR 1
32048_ACEOF
32049
32050else
32051
32052cat >>confdefs.h <<\_ACEOF
32053#define HAVE_STD_ITERATOR 0
32054_ACEOF
32055
John Criswell7a73b802003-06-30 21:59:07 +000032056fi
32057
Reid Spencera773bd52006-08-04 18:18:08 +000032058{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32059echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032060if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32061 echo $ECHO_N "(cached) $ECHO_C" >&6
32062else
32063
Reid Spencera773bd52006-08-04 18:18:08 +000032064 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032065ac_cpp='$CXXCPP $CPPFLAGS'
32066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32069
32070 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032071/* confdefs.h. */
32072_ACEOF
32073cat confdefs.h >>conftest.$ac_ext
32074cat >>conftest.$ac_ext <<_ACEOF
32075/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032076#include <iterator>
32077#ifdef HAVE_NAMESPACES
32078using namespace std;
32079#endif
John Criswell7a73b802003-06-30 21:59:07 +000032080int
32081main ()
32082{
John Criswellc78022e2003-07-29 19:11:58 +000032083bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032084 ;
32085 return 0;
32086}
32087_ACEOF
32088rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032089if { (ac_try="$ac_compile"
32090case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32093esac
32094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032097 grep -v '^ *+' conftest.er1 >conftest.err
32098 rm -f conftest.er1
32099 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32103 { (case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32106esac
32107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032109 ac_status=$?
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; } &&
32112 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032113 { (case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32116esac
32117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032119 ac_status=$?
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; }; then
32122 ac_cv_cxx_have_bi_iterator=yes
32123else
32124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032125sed 's/^/| /' conftest.$ac_ext >&5
32126
Reid Spencera773bd52006-08-04 18:18:08 +000032127 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032128fi
Reid Spencera773bd52006-08-04 18:18:08 +000032129
32130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032131 ac_ext=c
32132ac_cpp='$CPP $CPPFLAGS'
32133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32135ac_compiler_gnu=$ac_cv_c_compiler_gnu
32136
32137
32138fi
Reid Spencera773bd52006-08-04 18:18:08 +000032139{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32140echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032141if test "$ac_cv_cxx_have_bi_iterator" = yes
32142then
John Criswell40468462004-09-24 21:19:06 +000032143
32144cat >>confdefs.h <<\_ACEOF
32145#define HAVE_BI_ITERATOR 1
32146_ACEOF
32147
32148else
32149
32150cat >>confdefs.h <<\_ACEOF
32151#define HAVE_BI_ITERATOR 0
32152_ACEOF
32153
John Criswell7a73b802003-06-30 21:59:07 +000032154fi
32155
Reid Spencera773bd52006-08-04 18:18:08 +000032156{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32157echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032158if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32159 echo $ECHO_N "(cached) $ECHO_C" >&6
32160else
32161
Reid Spencera773bd52006-08-04 18:18:08 +000032162 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032163ac_cpp='$CXXCPP $CPPFLAGS'
32164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32167
32168 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032169/* confdefs.h. */
32170_ACEOF
32171cat confdefs.h >>conftest.$ac_ext
32172cat >>conftest.$ac_ext <<_ACEOF
32173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032174#include <iterator>
32175#ifdef HAVE_NAMESPACES
32176using namespace std;
32177#endif
John Criswell7a73b802003-06-30 21:59:07 +000032178int
32179main ()
32180{
John Criswellc78022e2003-07-29 19:11:58 +000032181forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032182 ;
32183 return 0;
32184}
32185_ACEOF
32186rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032187if { (ac_try="$ac_compile"
32188case "(($ac_try" in
32189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190 *) ac_try_echo=$ac_try;;
32191esac
32192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032194 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032195 grep -v '^ *+' conftest.er1 >conftest.err
32196 rm -f conftest.er1
32197 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32201 { (case "(($ac_try" in
32202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32204esac
32205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032207 ac_status=$?
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); }; } &&
32210 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032211 { (case "(($ac_try" in
32212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213 *) ac_try_echo=$ac_try;;
32214esac
32215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032217 ac_status=$?
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; }; then
32220 ac_cv_cxx_have_fwd_iterator=yes
32221else
32222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032223sed 's/^/| /' conftest.$ac_ext >&5
32224
Reid Spencera773bd52006-08-04 18:18:08 +000032225 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032226fi
Reid Spencera773bd52006-08-04 18:18:08 +000032227
32228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032229 ac_ext=c
32230ac_cpp='$CPP $CPPFLAGS'
32231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32233ac_compiler_gnu=$ac_cv_c_compiler_gnu
32234
32235
32236fi
Reid Spencera773bd52006-08-04 18:18:08 +000032237{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32238echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032239if test "$ac_cv_cxx_have_fwd_iterator" = yes
32240then
John Criswell40468462004-09-24 21:19:06 +000032241
32242cat >>confdefs.h <<\_ACEOF
32243#define HAVE_FWD_ITERATOR 1
32244_ACEOF
32245
32246else
32247
32248cat >>confdefs.h <<\_ACEOF
32249#define HAVE_FWD_ITERATOR 0
32250_ACEOF
32251
John Criswell7a73b802003-06-30 21:59:07 +000032252fi
32253
32254
Reid Spencera773bd52006-08-04 18:18:08 +000032255{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32256echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032257if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32258 echo $ECHO_N "(cached) $ECHO_C" >&6
32259else
Reid Spencera773bd52006-08-04 18:18:08 +000032260 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032261ac_cpp='$CXXCPP $CPPFLAGS'
32262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32265
Reid Spencerabec8f92004-10-27 23:03:44 +000032266 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032267/* confdefs.h. */
32268_ACEOF
32269cat confdefs.h >>conftest.$ac_ext
32270cat >>conftest.$ac_ext <<_ACEOF
32271/* end confdefs.h. */
32272#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032273int
32274main ()
32275{
32276float f; isnan(f);
32277 ;
32278 return 0;
32279}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032280_ACEOF
32281rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032282if { (ac_try="$ac_compile"
32283case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32286esac
32287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032290 grep -v '^ *+' conftest.er1 >conftest.err
32291 rm -f conftest.er1
32292 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32296 { (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
Reid Spencer2706f8c2004-09-19 23:53:36 +000032302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; } &&
32305 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032306 { (case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32309esac
32310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032312 ac_status=$?
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); }; }; then
32315 ac_cv_func_isnan_in_math_h=yes
32316else
32317 echo "$as_me: failed program was:" >&5
32318sed 's/^/| /' conftest.$ac_ext >&5
32319
Reid Spencera773bd52006-08-04 18:18:08 +000032320 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032321fi
Reid Spencera773bd52006-08-04 18:18:08 +000032322
32323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032324 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032325ac_cpp='$CPP $CPPFLAGS'
32326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32328ac_compiler_gnu=$ac_cv_c_compiler_gnu
32329
32330fi
Reid Spencera773bd52006-08-04 18:18:08 +000032331{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32332echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032333
32334
32335if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032336
32337cat >>confdefs.h <<\_ACEOF
32338#define HAVE_ISNAN_IN_MATH_H 1
32339_ACEOF
32340
Reid Spencerabec8f92004-10-27 23:03:44 +000032341fi
32342
Reid Spencera773bd52006-08-04 18:18:08 +000032343{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32344echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032345if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32347else
Reid Spencera773bd52006-08-04 18:18:08 +000032348 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032349ac_cpp='$CXXCPP $CPPFLAGS'
32350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32353
Reid Spencerabec8f92004-10-27 23:03:44 +000032354 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032355/* confdefs.h. */
32356_ACEOF
32357cat confdefs.h >>conftest.$ac_ext
32358cat >>conftest.$ac_ext <<_ACEOF
32359/* end confdefs.h. */
32360#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032361int
32362main ()
32363{
32364float f; isnan(f);
32365 ;
32366 return 0;
32367}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032368_ACEOF
32369rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032370if { (ac_try="$ac_compile"
32371case "(($ac_try" in
32372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32373 *) ac_try_echo=$ac_try;;
32374esac
32375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32376 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032377 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032378 grep -v '^ *+' conftest.er1 >conftest.err
32379 rm -f conftest.er1
32380 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32384 { (case "(($ac_try" in
32385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386 *) ac_try_echo=$ac_try;;
32387esac
32388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032390 ac_status=$?
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); }; } &&
32393 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032394 { (case "(($ac_try" in
32395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396 *) ac_try_echo=$ac_try;;
32397esac
32398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032400 ac_status=$?
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); }; }; then
32403 ac_cv_func_isnan_in_cmath=yes
32404else
32405 echo "$as_me: failed program was:" >&5
32406sed 's/^/| /' conftest.$ac_ext >&5
32407
Reid Spencera773bd52006-08-04 18:18:08 +000032408 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032409fi
Reid Spencera773bd52006-08-04 18:18:08 +000032410
32411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032412 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032413ac_cpp='$CPP $CPPFLAGS'
32414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32416ac_compiler_gnu=$ac_cv_c_compiler_gnu
32417
32418fi
Reid Spencera773bd52006-08-04 18:18:08 +000032419{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32420echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032421
32422if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032423
32424cat >>confdefs.h <<\_ACEOF
32425#define HAVE_ISNAN_IN_CMATH 1
32426_ACEOF
32427
Reid Spencerabec8f92004-10-27 23:03:44 +000032428fi
32429
Reid Spencera773bd52006-08-04 18:18:08 +000032430{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32431echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032432if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32434else
Reid Spencera773bd52006-08-04 18:18:08 +000032435 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032436ac_cpp='$CXXCPP $CPPFLAGS'
32437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32440
Reid Spencerabec8f92004-10-27 23:03:44 +000032441 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032442/* confdefs.h. */
32443_ACEOF
32444cat confdefs.h >>conftest.$ac_ext
32445cat >>conftest.$ac_ext <<_ACEOF
32446/* end confdefs.h. */
32447#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032448int
32449main ()
32450{
32451float f; std::isnan(f);
32452 ;
32453 return 0;
32454}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032455_ACEOF
32456rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032457if { (ac_try="$ac_compile"
32458case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32461esac
32462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032465 grep -v '^ *+' conftest.er1 >conftest.err
32466 rm -f conftest.er1
32467 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32471 { (case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32474esac
32475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032477 ac_status=$?
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; } &&
32480 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032481 { (case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32484esac
32485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; }; then
32490 ac_cv_func_std_isnan_in_cmath=yes
32491else
32492 echo "$as_me: failed program was:" >&5
32493sed 's/^/| /' conftest.$ac_ext >&5
32494
Reid Spencera773bd52006-08-04 18:18:08 +000032495 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032496fi
Reid Spencera773bd52006-08-04 18:18:08 +000032497
32498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032499 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032500ac_cpp='$CPP $CPPFLAGS'
32501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32503ac_compiler_gnu=$ac_cv_c_compiler_gnu
32504
32505fi
Reid Spencera773bd52006-08-04 18:18:08 +000032506{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32507echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032508
32509if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032510
32511cat >>confdefs.h <<\_ACEOF
32512#define HAVE_STD_ISNAN_IN_CMATH 1
32513_ACEOF
32514
Reid Spencerabec8f92004-10-27 23:03:44 +000032515fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032516
32517
Reid Spencera773bd52006-08-04 18:18:08 +000032518{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32519echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032520if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32521 echo $ECHO_N "(cached) $ECHO_C" >&6
32522else
Reid Spencera773bd52006-08-04 18:18:08 +000032523 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032524ac_cpp='$CXXCPP $CPPFLAGS'
32525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32528
Reid Spencerabec8f92004-10-27 23:03:44 +000032529 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032530/* confdefs.h. */
32531_ACEOF
32532cat confdefs.h >>conftest.$ac_ext
32533cat >>conftest.$ac_ext <<_ACEOF
32534/* end confdefs.h. */
32535#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032536int
32537main ()
32538{
32539float f; isinf(f);
32540 ;
32541 return 0;
32542}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032543_ACEOF
32544rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032545if { (ac_try="$ac_compile"
32546case "(($ac_try" in
32547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32548 *) ac_try_echo=$ac_try;;
32549esac
32550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32551 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032552 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032553 grep -v '^ *+' conftest.er1 >conftest.err
32554 rm -f conftest.er1
32555 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32559 { (case "(($ac_try" in
32560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32561 *) ac_try_echo=$ac_try;;
32562esac
32563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32564 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032565 ac_status=$?
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); }; } &&
32568 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032569 { (case "(($ac_try" in
32570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571 *) ac_try_echo=$ac_try;;
32572esac
32573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032575 ac_status=$?
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); }; }; then
32578 ac_cv_func_isinf_in_math_h=yes
32579else
32580 echo "$as_me: failed program was:" >&5
32581sed 's/^/| /' conftest.$ac_ext >&5
32582
Reid Spencera773bd52006-08-04 18:18:08 +000032583 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032584fi
Reid Spencera773bd52006-08-04 18:18:08 +000032585
32586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032587 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032588ac_cpp='$CPP $CPPFLAGS'
32589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591ac_compiler_gnu=$ac_cv_c_compiler_gnu
32592
32593fi
Reid Spencera773bd52006-08-04 18:18:08 +000032594{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32595echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032596
32597if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032598
32599cat >>confdefs.h <<\_ACEOF
32600#define HAVE_ISINF_IN_MATH_H 1
32601_ACEOF
32602
Reid Spencerabec8f92004-10-27 23:03:44 +000032603fi
32604
Reid Spencera773bd52006-08-04 18:18:08 +000032605{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32606echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032607if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32608 echo $ECHO_N "(cached) $ECHO_C" >&6
32609else
Reid Spencera773bd52006-08-04 18:18:08 +000032610 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032611ac_cpp='$CXXCPP $CPPFLAGS'
32612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32615
Reid Spencerabec8f92004-10-27 23:03:44 +000032616 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032617/* confdefs.h. */
32618_ACEOF
32619cat confdefs.h >>conftest.$ac_ext
32620cat >>conftest.$ac_ext <<_ACEOF
32621/* end confdefs.h. */
32622#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032623int
32624main ()
32625{
32626float f; isinf(f);
32627 ;
32628 return 0;
32629}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032630_ACEOF
32631rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032632if { (ac_try="$ac_compile"
32633case "(($ac_try" in
32634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32635 *) ac_try_echo=$ac_try;;
32636esac
32637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32638 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032639 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032640 grep -v '^ *+' conftest.er1 >conftest.err
32641 rm -f conftest.er1
32642 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32646 { (case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649esac
32650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032652 ac_status=$?
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; } &&
32655 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032656 { (case "(($ac_try" in
32657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658 *) ac_try_echo=$ac_try;;
32659esac
32660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); }; }; then
32665 ac_cv_func_isinf_in_cmath=yes
32666else
32667 echo "$as_me: failed program was:" >&5
32668sed 's/^/| /' conftest.$ac_ext >&5
32669
Reid Spencera773bd52006-08-04 18:18:08 +000032670 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032671fi
Reid Spencera773bd52006-08-04 18:18:08 +000032672
32673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032674 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032675ac_cpp='$CPP $CPPFLAGS'
32676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32678ac_compiler_gnu=$ac_cv_c_compiler_gnu
32679
32680fi
Reid Spencera773bd52006-08-04 18:18:08 +000032681{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32682echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032683
32684if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032685
32686cat >>confdefs.h <<\_ACEOF
32687#define HAVE_ISINF_IN_CMATH 1
32688_ACEOF
32689
Reid Spencerabec8f92004-10-27 23:03:44 +000032690fi
32691
Reid Spencera773bd52006-08-04 18:18:08 +000032692{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32693echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032694if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32695 echo $ECHO_N "(cached) $ECHO_C" >&6
32696else
Reid Spencera773bd52006-08-04 18:18:08 +000032697 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032698ac_cpp='$CXXCPP $CPPFLAGS'
32699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32702
Reid Spencerabec8f92004-10-27 23:03:44 +000032703 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032704/* confdefs.h. */
32705_ACEOF
32706cat confdefs.h >>conftest.$ac_ext
32707cat >>conftest.$ac_ext <<_ACEOF
32708/* end confdefs.h. */
32709#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032710int
32711main ()
32712{
32713float f; std::isinf(f)}
32714 ;
32715 return 0;
32716}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032717_ACEOF
32718rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032719if { (ac_try="$ac_compile"
32720case "(($ac_try" in
32721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722 *) ac_try_echo=$ac_try;;
32723esac
32724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032727 grep -v '^ *+' conftest.er1 >conftest.err
32728 rm -f conftest.er1
32729 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32733 { (case "(($ac_try" in
32734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735 *) ac_try_echo=$ac_try;;
32736esac
32737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032739 ac_status=$?
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); }; } &&
32742 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032743 { (case "(($ac_try" in
32744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745 *) ac_try_echo=$ac_try;;
32746esac
32747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32748 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032749 ac_status=$?
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); }; }; then
32752 ac_cv_func_std_isinf_in_cmath=yes
32753else
32754 echo "$as_me: failed program was:" >&5
32755sed 's/^/| /' conftest.$ac_ext >&5
32756
Reid Spencera773bd52006-08-04 18:18:08 +000032757 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032758fi
Reid Spencera773bd52006-08-04 18:18:08 +000032759
32760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032761 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032762ac_cpp='$CPP $CPPFLAGS'
32763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32765ac_compiler_gnu=$ac_cv_c_compiler_gnu
32766
32767fi
Reid Spencera773bd52006-08-04 18:18:08 +000032768{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32769echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032770
32771if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032772
32773cat >>confdefs.h <<\_ACEOF
32774#define HAVE_STD_ISINF_IN_CMATH 1
32775_ACEOF
32776
Reid Spencerabec8f92004-10-27 23:03:44 +000032777fi
32778
Reid Spencera773bd52006-08-04 18:18:08 +000032779{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32780echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032781if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32782 echo $ECHO_N "(cached) $ECHO_C" >&6
32783else
Reid Spencera773bd52006-08-04 18:18:08 +000032784 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032785ac_cpp='$CXXCPP $CPPFLAGS'
32786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32789
Reid Spencerabec8f92004-10-27 23:03:44 +000032790 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032791/* confdefs.h. */
32792_ACEOF
32793cat confdefs.h >>conftest.$ac_ext
32794cat >>conftest.$ac_ext <<_ACEOF
32795/* end confdefs.h. */
32796#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032797int
32798main ()
32799{
32800float f; finite(f);
32801 ;
32802 return 0;
32803}
Brian Gaeked59a6472004-07-21 03:33:58 +000032804_ACEOF
32805rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032806if { (ac_try="$ac_compile"
32807case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32810esac
32811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032813 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032814 grep -v '^ *+' conftest.er1 >conftest.err
32815 rm -f conftest.er1
32816 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32820 { (case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32823esac
32824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; } &&
32829 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032830 { (case "(($ac_try" in
32831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832 *) ac_try_echo=$ac_try;;
32833esac
32834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032836 ac_status=$?
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); }; }; then
32839 ac_cv_func_finite_in_ieeefp_h=yes
32840else
32841 echo "$as_me: failed program was:" >&5
32842sed 's/^/| /' conftest.$ac_ext >&5
32843
Reid Spencera773bd52006-08-04 18:18:08 +000032844 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032845fi
Reid Spencera773bd52006-08-04 18:18:08 +000032846
32847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032848 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032849ac_cpp='$CPP $CPPFLAGS'
32850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32852ac_compiler_gnu=$ac_cv_c_compiler_gnu
32853
32854fi
Reid Spencera773bd52006-08-04 18:18:08 +000032855{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32856echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032857
Brian Gaeke6802b552004-10-28 05:06:45 +000032858if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032859
32860cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032861#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032862_ACEOF
32863
Reid Spencerabec8f92004-10-27 23:03:44 +000032864fi
32865
32866
32867
Reid Spencer30fe5262007-01-20 07:48:49 +000032868if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032869
32870
32871for ac_header in stdlib.h unistd.h
32872do
32873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032878 echo $ECHO_N "(cached) $ECHO_C" >&6
32879fi
Reid Spencera773bd52006-08-04 18:18:08 +000032880ac_res=`eval echo '${'$as_ac_Header'}'`
32881 { echo "$as_me:$LINENO: result: $ac_res" >&5
32882echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032883else
32884 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032887cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032888/* confdefs.h. */
32889_ACEOF
32890cat confdefs.h >>conftest.$ac_ext
32891cat >>conftest.$ac_ext <<_ACEOF
32892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032893$ac_includes_default
32894#include <$ac_header>
32895_ACEOF
32896rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032897if { (ac_try="$ac_compile"
32898case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32901esac
32902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032904 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032905 grep -v '^ *+' conftest.er1 >conftest.err
32906 rm -f conftest.er1
32907 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32911 { (case "(($ac_try" in
32912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913 *) ac_try_echo=$ac_try;;
32914esac
32915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032917 ac_status=$?
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); }; } &&
32920 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032921 { (case "(($ac_try" in
32922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923 *) ac_try_echo=$ac_try;;
32924esac
32925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032927 ac_status=$?
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; }; then
32930 ac_header_compiler=yes
32931else
32932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032933sed 's/^/| /' conftest.$ac_ext >&5
32934
Reid Spencera773bd52006-08-04 18:18:08 +000032935 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032936fi
Reid Spencera773bd52006-08-04 18:18:08 +000032937
32938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32940echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032941
32942# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032945cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032946/* confdefs.h. */
32947_ACEOF
32948cat confdefs.h >>conftest.$ac_ext
32949cat >>conftest.$ac_ext <<_ACEOF
32950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032951#include <$ac_header>
32952_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032953if { (ac_try="$ac_cpp conftest.$ac_ext"
32954case "(($ac_try" in
32955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956 *) ac_try_echo=$ac_try;;
32957esac
32958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032960 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032961 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032962 rm -f conftest.er1
32963 cat conftest.err >&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); } >/dev/null; then
32966 if test -s conftest.err; then
32967 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032969 else
32970 ac_cpp_err=
32971 fi
32972else
32973 ac_cpp_err=yes
32974fi
32975if test -z "$ac_cpp_err"; then
32976 ac_header_preproc=yes
32977else
32978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032979sed 's/^/| /' conftest.$ac_ext >&5
32980
John Criswell7a73b802003-06-30 21:59:07 +000032981 ac_header_preproc=no
32982fi
Reid Spencera773bd52006-08-04 18:18:08 +000032983
John Criswell7a73b802003-06-30 21:59:07 +000032984rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32986echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032987
32988# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32990 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32995 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032996 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032997 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33001echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33005echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033010 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033011## ----------------------------------- ##
33012## Report this to llvmbugs@cs.uiuc.edu ##
33013## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033014_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033015 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033016 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033017esac
Reid Spencera773bd52006-08-04 18:18:08 +000033018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033021 echo $ECHO_N "(cached) $ECHO_C" >&6
33022else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033023 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033024fi
Reid Spencera773bd52006-08-04 18:18:08 +000033025ac_res=`eval echo '${'$as_ac_Header'}'`
33026 { echo "$as_me:$LINENO: result: $ac_res" >&5
33027echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033028
33029fi
33030if test `eval echo '${'$as_ac_Header'}'` = yes; then
33031 cat >>confdefs.h <<_ACEOF
33032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33033_ACEOF
33034
33035fi
33036
33037done
33038
33039
33040for ac_func in getpagesize
33041do
33042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033043{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33045if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033046 echo $ECHO_N "(cached) $ECHO_C" >&6
33047else
33048 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033049/* confdefs.h. */
33050_ACEOF
33051cat confdefs.h >>conftest.$ac_ext
33052cat >>conftest.$ac_ext <<_ACEOF
33053/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33056#define $ac_func innocuous_$ac_func
33057
John Criswell7a73b802003-06-30 21:59:07 +000033058/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033059 which can conflict with char $ac_func (); below.
33060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33061 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033062
John Criswell0c38eaf2003-09-10 15:17:25 +000033063#ifdef __STDC__
33064# include <limits.h>
33065#else
33066# include <assert.h>
33067#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033068
33069#undef $ac_func
33070
Reid Spencera773bd52006-08-04 18:18:08 +000033071/* Override any GCC internal prototype to avoid an error.
33072 Use char because int might match the return type of a GCC
33073 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033074#ifdef __cplusplus
33075extern "C"
33076#endif
John Criswell7a73b802003-06-30 21:59:07 +000033077char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033078/* The GNU C library defines this for functions which it implements
33079 to always fail with ENOSYS. Some functions are actually named
33080 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033081#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033082choke me
John Criswell7a73b802003-06-30 21:59:07 +000033083#endif
33084
John Criswell0c38eaf2003-09-10 15:17:25 +000033085int
33086main ()
33087{
Reid Spencera773bd52006-08-04 18:18:08 +000033088return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033089 ;
33090 return 0;
33091}
33092_ACEOF
33093rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033094if { (ac_try="$ac_link"
33095case "(($ac_try" in
33096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097 *) ac_try_echo=$ac_try;;
33098esac
33099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033101 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033102 grep -v '^ *+' conftest.er1 >conftest.err
33103 rm -f conftest.er1
33104 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33108 { (case "(($ac_try" in
33109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33110 *) ac_try_echo=$ac_try;;
33111esac
33112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33113 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033114 ac_status=$?
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; } &&
33117 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033118 { (case "(($ac_try" in
33119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120 *) ac_try_echo=$ac_try;;
33121esac
33122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033124 ac_status=$?
33125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126 (exit $ac_status); }; }; then
33127 eval "$as_ac_var=yes"
33128else
33129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033130sed 's/^/| /' conftest.$ac_ext >&5
33131
Reid Spencera773bd52006-08-04 18:18:08 +000033132 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033133fi
Reid Spencera773bd52006-08-04 18:18:08 +000033134
33135rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033136 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033137fi
Reid Spencera773bd52006-08-04 18:18:08 +000033138ac_res=`eval echo '${'$as_ac_var'}'`
33139 { echo "$as_me:$LINENO: result: $ac_res" >&5
33140echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033141if test `eval echo '${'$as_ac_var'}'` = yes; then
33142 cat >>confdefs.h <<_ACEOF
33143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33144_ACEOF
33145
33146fi
33147done
33148
Reid Spencera773bd52006-08-04 18:18:08 +000033149{ echo "$as_me:$LINENO: checking for working mmap" >&5
33150echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033151if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33152 echo $ECHO_N "(cached) $ECHO_C" >&6
33153else
33154 if test "$cross_compiling" = yes; then
33155 ac_cv_func_mmap_fixed_mapped=no
33156else
33157 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033158/* confdefs.h. */
33159_ACEOF
33160cat confdefs.h >>conftest.$ac_ext
33161cat >>conftest.$ac_ext <<_ACEOF
33162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033163$ac_includes_default
33164/* malloc might have been renamed as rpl_malloc. */
33165#undef malloc
33166
33167/* Thanks to Mike Haertel and Jim Avera for this test.
33168 Here is a matrix of mmap possibilities:
33169 mmap private not fixed
33170 mmap private fixed at somewhere currently unmapped
33171 mmap private fixed at somewhere already mapped
33172 mmap shared not fixed
33173 mmap shared fixed at somewhere currently unmapped
33174 mmap shared fixed at somewhere already mapped
33175 For private mappings, we should verify that changes cannot be read()
33176 back from the file, nor mmap's back from the file at a different
33177 address. (There have been systems where private was not correctly
33178 implemented like the infamous i386 svr4.0, and systems where the
33179 VM page cache was not coherent with the file system buffer cache
33180 like early versions of FreeBSD and possibly contemporary NetBSD.)
33181 For shared mappings, we should conversely verify that changes get
33182 propagated back to all the places they're supposed to be.
33183
33184 Grep wants private fixed already mapped.
33185 The main things grep needs to know about mmap are:
33186 * does it exist and is it safe to write into the mmap'd area
33187 * how to use it (BSD variants) */
33188
33189#include <fcntl.h>
33190#include <sys/mman.h>
33191
33192#if !STDC_HEADERS && !HAVE_STDLIB_H
33193char *malloc ();
33194#endif
33195
33196/* This mess was copied from the GNU getpagesize.h. */
33197#if !HAVE_GETPAGESIZE
33198/* Assume that all systems that can run configure have sys/param.h. */
33199# if !HAVE_SYS_PARAM_H
33200# define HAVE_SYS_PARAM_H 1
33201# endif
33202
33203# ifdef _SC_PAGESIZE
33204# define getpagesize() sysconf(_SC_PAGESIZE)
33205# else /* no _SC_PAGESIZE */
33206# if HAVE_SYS_PARAM_H
33207# include <sys/param.h>
33208# ifdef EXEC_PAGESIZE
33209# define getpagesize() EXEC_PAGESIZE
33210# else /* no EXEC_PAGESIZE */
33211# ifdef NBPG
33212# define getpagesize() NBPG * CLSIZE
33213# ifndef CLSIZE
33214# define CLSIZE 1
33215# endif /* no CLSIZE */
33216# else /* no NBPG */
33217# ifdef NBPC
33218# define getpagesize() NBPC
33219# else /* no NBPC */
33220# ifdef PAGESIZE
33221# define getpagesize() PAGESIZE
33222# endif /* PAGESIZE */
33223# endif /* no NBPC */
33224# endif /* no NBPG */
33225# endif /* no EXEC_PAGESIZE */
33226# else /* no HAVE_SYS_PARAM_H */
33227# define getpagesize() 8192 /* punt totally */
33228# endif /* no HAVE_SYS_PARAM_H */
33229# endif /* no _SC_PAGESIZE */
33230
33231#endif /* no HAVE_GETPAGESIZE */
33232
33233int
33234main ()
33235{
33236 char *data, *data2, *data3;
33237 int i, pagesize;
33238 int fd;
33239
33240 pagesize = getpagesize ();
33241
33242 /* First, make a file with some known garbage in it. */
33243 data = (char *) malloc (pagesize);
33244 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033245 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033246 for (i = 0; i < pagesize; ++i)
33247 *(data + i) = rand ();
33248 umask (0);
33249 fd = creat ("conftest.mmap", 0600);
33250 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033251 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033252 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033253 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033254 close (fd);
33255
33256 /* Next, try to mmap the file at a fixed address which already has
33257 something else allocated at it. If we can, also make sure that
33258 we see the same garbage. */
33259 fd = open ("conftest.mmap", O_RDWR);
33260 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033261 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033262 data2 = (char *) malloc (2 * pagesize);
33263 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033264 return 1;
33265 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033266 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033267 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033268 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033269 for (i = 0; i < pagesize; ++i)
33270 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033271 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033272
33273 /* Finally, make sure that changes to the mapped area do not
33274 percolate back to the file as seen by read(). (This is a bug on
33275 some variants of i386 svr4.0.) */
33276 for (i = 0; i < pagesize; ++i)
33277 *(data2 + i) = *(data2 + i) + 1;
33278 data3 = (char *) malloc (pagesize);
33279 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033280 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033281 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033282 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033283 for (i = 0; i < pagesize; ++i)
33284 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033285 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033286 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033287 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033288}
33289_ACEOF
33290rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033291if { (ac_try="$ac_link"
33292case "(($ac_try" in
33293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294 *) ac_try_echo=$ac_try;;
33295esac
33296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033298 ac_status=$?
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033301 { (case "(($ac_try" in
33302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303 *) ac_try_echo=$ac_try;;
33304esac
33305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033307 ac_status=$?
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); }; }; then
33310 ac_cv_func_mmap_fixed_mapped=yes
33311else
33312 echo "$as_me: program exited with status $ac_status" >&5
33313echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033314sed 's/^/| /' conftest.$ac_ext >&5
33315
John Criswell7a73b802003-06-30 21:59:07 +000033316( exit $ac_status )
33317ac_cv_func_mmap_fixed_mapped=no
33318fi
Reid Spencera773bd52006-08-04 18:18:08 +000033319rm -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 +000033320fi
Reid Spencera773bd52006-08-04 18:18:08 +000033321
33322
John Criswell7a73b802003-06-30 21:59:07 +000033323fi
Reid Spencera773bd52006-08-04 18:18:08 +000033324{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33325echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033326if test $ac_cv_func_mmap_fixed_mapped = yes; then
33327
33328cat >>confdefs.h <<\_ACEOF
33329#define HAVE_MMAP 1
33330_ACEOF
33331
33332fi
33333rm -f conftest.mmap
33334
Reid Spencer30fe5262007-01-20 07:48:49 +000033335 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033336echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033337if test "${ac_cv_func_mmap_file+set}" = set; then
33338 echo $ECHO_N "(cached) $ECHO_C" >&6
33339else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033340 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033341ac_cpp='$CPP $CPPFLAGS'
33342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33344ac_compiler_gnu=$ac_cv_c_compiler_gnu
33345
33346 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033347 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033348else
33349 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033350
Reid Spencer777ce172004-09-20 04:09:56 +000033351 /* confdefs.h. */
33352_ACEOF
33353cat confdefs.h >>conftest.$ac_ext
33354cat >>conftest.$ac_ext <<_ACEOF
33355/* end confdefs.h. */
33356
John Criswell7a73b802003-06-30 21:59:07 +000033357#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033358#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033359#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033360
33361int
33362main ()
33363{
John Criswell7a73b802003-06-30 21:59:07 +000033364
33365 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033366 fd = creat ("foo",0777);
33367 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33368 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033369 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033370 ;
33371 return 0;
33372}
John Criswell7a73b802003-06-30 21:59:07 +000033373_ACEOF
33374rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033375if { (ac_try="$ac_link"
33376case "(($ac_try" in
33377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33378 *) ac_try_echo=$ac_try;;
33379esac
33380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33381 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033382 ac_status=$?
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033385 { (case "(($ac_try" in
33386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387 *) ac_try_echo=$ac_try;;
33388esac
33389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033391 ac_status=$?
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; }; then
33394 ac_cv_func_mmap_file=yes
33395else
33396 echo "$as_me: program exited with status $ac_status" >&5
33397echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033398sed 's/^/| /' conftest.$ac_ext >&5
33399
John Criswell7a73b802003-06-30 21:59:07 +000033400( exit $ac_status )
33401ac_cv_func_mmap_file=no
33402fi
Reid Spencera773bd52006-08-04 18:18:08 +000033403rm -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 +000033404fi
Reid Spencera773bd52006-08-04 18:18:08 +000033405
33406
John Criswell7a73b802003-06-30 21:59:07 +000033407 ac_ext=c
33408ac_cpp='$CPP $CPPFLAGS'
33409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33411ac_compiler_gnu=$ac_cv_c_compiler_gnu
33412
33413
33414fi
Reid Spencera773bd52006-08-04 18:18:08 +000033415{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33416echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033417if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033418
33419cat >>confdefs.h <<\_ACEOF
33420#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033421_ACEOF
33422
33423 MMAP_FILE=yes
33424
33425fi
33426
Reid Spencer30fe5262007-01-20 07:48:49 +000033427 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033428echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033429if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431else
Reid Spencer582a23c2004-12-29 07:07:57 +000033432 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033433 ac_cv_need_dev_zero_for_mmap=yes
33434 else
33435 ac_cv_need_dev_zero_for_mmap=no
33436 fi
33437
33438fi
Reid Spencera773bd52006-08-04 18:18:08 +000033439{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33440echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033441if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33442
33443cat >>confdefs.h <<\_ACEOF
33444#define NEED_DEV_ZERO_FOR_MMAP 1
33445_ACEOF
33446
33447fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033448
Reid Spencer30fe5262007-01-20 07:48:49 +000033449 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33450 then
33451 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033452echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033453 fi
33454 if test "$ac_cv_func_mmap_file" = "no"
33455 then
33456 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033457echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033458 fi
John Criswellb13092b2003-07-22 21:00:24 +000033459fi
John Criswell7a73b802003-06-30 21:59:07 +000033460
33461
Reid Spencera773bd52006-08-04 18:18:08 +000033462{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33463echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033464if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33465 echo $ECHO_N "(cached) $ECHO_C" >&6
33466else
33467 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033468if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033469 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033470 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33471 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033472 if test $? -eq 0 ; then
33473 llvm_cv_llvmgcc_sanity="yes"
33474 fi
33475 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033477fi
Reid Spencera773bd52006-08-04 18:18:08 +000033478{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33479echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033480
33481if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033482 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33483echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033484 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033485 LLVMCC1=$llvmcc1path
33486
Reid Spencer502935f2004-12-22 05:56:56 +000033487 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033488 LLVMCC1PLUS=$llvmcc1pluspath
33489
Reid Spencer502935f2004-12-22 05:56:56 +000033490 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33491 LLVMGCCDIR=$llvmgccdir
33492
Reid Spencer282d8c12006-12-21 22:55:41 +000033493 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33494 LLVMGCCLIBEXEC=$llvmgcclibexec
33495
Reid Spencerb5d75b82006-05-09 00:31:01 +000033496 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033497 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33498 LLVMGCC_VERSION=$llvmgccversion
33499
33500 LLVMGCC_MAJVERS=$llvmgccmajvers
33501
Reid Spencer0d238182007-04-21 21:28:52 +000033502 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33503 LLVMGCC_LANGS=$llvmgcclangs
33504
33505 { echo "$as_me:$LINENO: result: ok" >&5
33506echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033507fi
33508
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033509SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033510
33511
Reid Spencere9de0912004-08-20 09:03:57 +000033512# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033513# information into substitutions that will end up in Makefile.config.in
33514# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033515if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033516 prefix="/usr/local"
33517fi
Reid Spencere9de0912004-08-20 09:03:57 +000033518eval LLVM_PREFIX="${prefix}";
33519eval LLVM_BINDIR="${prefix}/bin";
33520eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033521eval LLVM_DATADIR="${prefix}/share/llvm";
33522eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33523eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033524eval LLVM_INCLUDEDIR="${prefix}/include";
33525eval LLVM_INFODIR="${prefix}/info";
33526eval LLVM_MANDIR="${prefix}/man";
33527LLVM_CONFIGTIME=`date`
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033539# Place the various directores into the config.h file as #defines so that we
33540# can know about the installation paths within LLVM.
33541
Reid Spencere9de0912004-08-20 09:03:57 +000033542cat >>confdefs.h <<_ACEOF
33543#define LLVM_PREFIX "$LLVM_PREFIX"
33544_ACEOF
33545
33546
33547cat >>confdefs.h <<_ACEOF
33548#define LLVM_BINDIR "$LLVM_BINDIR"
33549_ACEOF
33550
33551
33552cat >>confdefs.h <<_ACEOF
33553#define LLVM_LIBDIR "$LLVM_LIBDIR"
33554_ACEOF
33555
33556
33557cat >>confdefs.h <<_ACEOF
33558#define LLVM_DATADIR "$LLVM_DATADIR"
33559_ACEOF
33560
33561
33562cat >>confdefs.h <<_ACEOF
33563#define LLVM_DATADIR "$LLVM_DOCSDIR"
33564_ACEOF
33565
33566
33567cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033568#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033569_ACEOF
33570
33571
33572cat >>confdefs.h <<_ACEOF
33573#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33574_ACEOF
33575
33576
33577cat >>confdefs.h <<_ACEOF
33578#define LLVM_INFODIR "$LLVM_INFODIR"
33579_ACEOF
33580
33581
33582cat >>confdefs.h <<_ACEOF
33583#define LLVM_MANDIR "$LLVM_MANDIR"
33584_ACEOF
33585
33586
33587cat >>confdefs.h <<_ACEOF
33588#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33589_ACEOF
33590
33591
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033592
Reid Spencera773bd52006-08-04 18:18:08 +000033593ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033594
Reid Spencera773bd52006-08-04 18:18:08 +000033595ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033596
Reid Spencera773bd52006-08-04 18:18:08 +000033597ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033598
Reid Spencera773bd52006-08-04 18:18:08 +000033599ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033600
Reid Spencera773bd52006-08-04 18:18:08 +000033601ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033602
33603
Reid Spencera773bd52006-08-04 18:18:08 +000033604ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033605
33606
Reid Spencerea949cf2006-08-16 00:45:38 +000033607ac_config_files="$ac_config_files llvm.spec"
33608
33609
Reid Spencera773bd52006-08-04 18:18:08 +000033610ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033611
33612
Reid Spencera773bd52006-08-04 18:18:08 +000033613ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033614
33615
Reid Spencera773bd52006-08-04 18:18:08 +000033616ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033617
Reid Spencera773bd52006-08-04 18:18:08 +000033618ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033619
33620
Reid Spencera773bd52006-08-04 18:18:08 +000033621ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033622
33623
Reid Spencera773bd52006-08-04 18:18:08 +000033624ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033625
33626
Reid Spencera773bd52006-08-04 18:18:08 +000033627ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033628
33629
Reid Spencer8b2e1412006-11-17 03:32:33 +000033630ac_config_commands="$ac_config_commands runtime/Makefile"
33631
33632
Reid Spencera773bd52006-08-04 18:18:08 +000033633ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033634
33635
Reid Spencera773bd52006-08-04 18:18:08 +000033636ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033637
33638
Reid Spencera773bd52006-08-04 18:18:08 +000033639ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033640
33641
Reid Spencera773bd52006-08-04 18:18:08 +000033642ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033643
33644
Reid Spencera773bd52006-08-04 18:18:08 +000033645ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033646
33647
33648
John Criswell7a73b802003-06-30 21:59:07 +000033649cat >confcache <<\_ACEOF
33650# This file is a shell script that caches the results of configure
33651# tests run on this system so they can be shared between configure
33652# scripts and configure runs, see configure's option --config-cache.
33653# It is not useful on other systems. If it contains results you don't
33654# want to keep, you may remove or edit it.
33655#
33656# config.status only pays attention to the cache file if you give it
33657# the --recheck option to rerun configure.
33658#
John Criswell0c38eaf2003-09-10 15:17:25 +000033659# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033660# loading this file, other *unset* `ac_cv_foo' will be assigned the
33661# following values.
33662
33663_ACEOF
33664
33665# The following way of writing the cache mishandles newlines in values,
33666# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033667# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033668# Ultrix sh set writes to stderr and can't be redirected directly,
33669# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033670(
33671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33672 eval ac_val=\$$ac_var
33673 case $ac_val in #(
33674 *${as_nl}*)
33675 case $ac_var in #(
33676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33678 esac
33679 case $ac_var in #(
33680 _ | IFS | as_nl) ;; #(
33681 *) $as_unset $ac_var ;;
33682 esac ;;
33683 esac
33684 done
33685
John Criswell7a73b802003-06-30 21:59:07 +000033686 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33688 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033689 # `set' does not quote correctly, so add quotes (double-quote
33690 # substitution turns \\\\ into \\, and sed turns \\ into \).
33691 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033692 "s/'/'\\\\''/g;
33693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033694 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033695 *)
33696 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033698 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033699 esac |
33700 sort
33701) |
John Criswell7a73b802003-06-30 21:59:07 +000033702 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033703 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033704 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033705 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33707 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33709 :end' >>confcache
33710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33711 if test -w "$cache_file"; then
33712 test "x$cache_file" != "x/dev/null" &&
33713 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33714echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033715 cat confcache >$cache_file
33716 else
Reid Spencera773bd52006-08-04 18:18:08 +000033717 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33718echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033719 fi
33720fi
33721rm -f confcache
33722
33723test "x$prefix" = xNONE && prefix=$ac_default_prefix
33724# Let make expand exec_prefix.
33725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33726
John Criswell7a73b802003-06-30 21:59:07 +000033727DEFS=-DHAVE_CONFIG_H
33728
John Criswell0c38eaf2003-09-10 15:17:25 +000033729ac_libobjs=
33730ac_ltlibobjs=
33731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33732 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33734 ac_i=`echo "$ac_i" | sed "$ac_script"`
33735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33736 # will be set to the directory where LIBOBJS objects are built.
33737 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33738 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033739done
33740LIBOBJS=$ac_libobjs
33741
33742LTLIBOBJS=$ac_ltlibobjs
33743
33744
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033745if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33746 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33747Usually this means the macro was only invoked conditionally." >&5
33748echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33749Usually this means the macro was only invoked conditionally." >&2;}
33750 { (exit 1); exit 1; }; }
33751fi
33752if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33753 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33754Usually this means the macro was only invoked conditionally." >&5
33755echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33756Usually this means the macro was only invoked conditionally." >&2;}
33757 { (exit 1); exit 1; }; }
33758fi
John Criswell7a73b802003-06-30 21:59:07 +000033759
33760: ${CONFIG_STATUS=./config.status}
33761ac_clean_files_save=$ac_clean_files
33762ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33763{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33764echo "$as_me: creating $CONFIG_STATUS" >&6;}
33765cat >$CONFIG_STATUS <<_ACEOF
33766#! $SHELL
33767# Generated by $as_me.
33768# Run this file to recreate the current configuration.
33769# Compiler output produced by configure, useful for debugging
33770# configure, is in config.log if it exists.
33771
33772debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033773ac_cs_recheck=false
33774ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033775SHELL=\${CONFIG_SHELL-$SHELL}
33776_ACEOF
33777
33778cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033779## --------------------- ##
33780## M4sh Initialization. ##
33781## --------------------- ##
33782
33783# Be Bourne compatible
33784if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33785 emulate sh
33786 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033787 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33788 # is contrary to our usage. Disable this feature.
33789 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033790 setopt NO_GLOB_SUBST
33791else
33792 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033793fi
Reid Spencera773bd52006-08-04 18:18:08 +000033794BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033795DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033796
John Criswell7a73b802003-06-30 21:59:07 +000033797
Reid Spencera773bd52006-08-04 18:18:08 +000033798# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033799# Avoid depending upon Character Ranges.
33800as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33801as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33802as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33803as_cr_digits='0123456789'
33804as_cr_alnum=$as_cr_Letters$as_cr_digits
33805
33806# The user is always right.
33807if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033808 echo "#! /bin/sh" >conf$$.sh
33809 echo "exit 0" >>conf$$.sh
33810 chmod +x conf$$.sh
33811 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033812 PATH_SEPARATOR=';'
33813 else
33814 PATH_SEPARATOR=:
33815 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033816 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033817fi
33818
Reid Spencera773bd52006-08-04 18:18:08 +000033819# Support unset when possible.
33820if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33821 as_unset=unset
33822else
33823 as_unset=false
33824fi
John Criswell7a73b802003-06-30 21:59:07 +000033825
Reid Spencera773bd52006-08-04 18:18:08 +000033826
33827# IFS
33828# We need space, tab and new line, in precisely that order. Quoting is
33829# there to prevent editors from complaining about space-tab.
33830# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33831# splitting by setting IFS to empty value.)
33832as_nl='
33833'
33834IFS=" "" $as_nl"
33835
33836# Find who we are. Look in the path if we contain no directory separator.
33837case $0 in
33838 *[\\/]* ) as_myself=$0 ;;
33839 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033840for as_dir in $PATH
33841do
33842 IFS=$as_save_IFS
33843 test -z "$as_dir" && as_dir=.
33844 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33845done
Reid Spencera773bd52006-08-04 18:18:08 +000033846IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033847
Reid Spencera773bd52006-08-04 18:18:08 +000033848 ;;
33849esac
33850# We did not find ourselves, most probably we were run as `sh COMMAND'
33851# in which case we are not to be found in the path.
33852if test "x$as_myself" = x; then
33853 as_myself=$0
33854fi
33855if test ! -f "$as_myself"; then
33856 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33857 { (exit 1); exit 1; }
33858fi
33859
33860# Work around bugs in pre-3.0 UWIN ksh.
33861for as_var in ENV MAIL MAILPATH
33862do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33863done
33864PS1='$ '
33865PS2='> '
33866PS4='+ '
33867
33868# NLS nuisances.
33869for as_var in \
33870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33872 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033873do
Reid Spencera773bd52006-08-04 18:18:08 +000033874 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33875 eval $as_var=C; export $as_var
33876 else
33877 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33878 fi
33879done
33880
33881# Required to use basename.
33882if expr a : '\(a\)' >/dev/null 2>&1 &&
33883 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33884 as_expr=expr
33885else
33886 as_expr=false
33887fi
33888
33889if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33890 as_basename=basename
33891else
33892 as_basename=false
33893fi
33894
33895
33896# Name of the executable.
33897as_me=`$as_basename -- "$0" ||
33898$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33899 X"$0" : 'X\(//\)$' \| \
33900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33901echo X/"$0" |
33902 sed '/^.*\/\([^/][^/]*\)\/*$/{
33903 s//\1/
33904 q
33905 }
33906 /^X\/\(\/\/\)$/{
33907 s//\1/
33908 q
33909 }
33910 /^X\/\(\/\).*/{
33911 s//\1/
33912 q
33913 }
33914 s/.*/./; q'`
33915
33916# CDPATH.
33917$as_unset CDPATH
33918
33919
33920
John Criswell7a73b802003-06-30 21:59:07 +000033921 as_lineno_1=$LINENO
33922 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033923 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033924 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033925
33926 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33927 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033928 # line-number line after each line using $LINENO; the second 'sed'
33929 # does the real work. The second script uses 'N' to pair each
33930 # line-number line with the line containing $LINENO, and appends
33931 # trailing '-' during substitution so that $LINENO is not a special
33932 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033933 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033934 # scripts with optimization help from Paolo Bonzini. Blame Lee
33935 # E. McMahon (1931-1989) for sed's syntax. :-)
33936 sed -n '
33937 p
33938 /[$]LINENO/=
33939 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033940 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033941 s/[$]LINENO.*/&-/
33942 t lineno
33943 b
33944 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033945 N
Reid Spencera773bd52006-08-04 18:18:08 +000033946 :loop
33947 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033948 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033949 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033950 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033951 chmod +x "$as_me.lineno" ||
33952 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033953 { (exit 1); exit 1; }; }
33954
33955 # Don't try to exec as it changes $[0], causing all sort of problems
33956 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033957 # original and so on. Autoconf is especially sensitive to this).
33958 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033959 # Exit status is that of the last command.
33960 exit
33961}
33962
33963
Reid Spencera773bd52006-08-04 18:18:08 +000033964if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33965 as_dirname=dirname
33966else
33967 as_dirname=false
33968fi
33969
33970ECHO_C= ECHO_N= ECHO_T=
33971case `echo -n x` in
33972-n*)
33973 case `echo 'x\c'` in
33974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33975 *) ECHO_C='\c';;
33976 esac;;
33977*)
33978 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033979esac
33980
Reid Spencera773bd52006-08-04 18:18:08 +000033981if expr a : '\(a\)' >/dev/null 2>&1 &&
33982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033983 as_expr=expr
33984else
33985 as_expr=false
33986fi
33987
33988rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033989if test -d conf$$.dir; then
33990 rm -f conf$$.dir/conf$$.file
33991else
33992 rm -f conf$$.dir
33993 mkdir conf$$.dir
33994fi
John Criswell7a73b802003-06-30 21:59:07 +000033995echo >conf$$.file
33996if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033997 as_ln_s='ln -s'
33998 # ... but there are two gotchas:
33999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34001 # In both cases, we have to default to `cp -p'.
34002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034003 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034004elif ln conf$$.file conf$$ 2>/dev/null; then
34005 as_ln_s=ln
34006else
34007 as_ln_s='cp -p'
34008fi
Reid Spencera773bd52006-08-04 18:18:08 +000034009rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34010rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034011
John Criswell0c38eaf2003-09-10 15:17:25 +000034012if mkdir -p . 2>/dev/null; then
34013 as_mkdir_p=:
34014else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034015 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034016 as_mkdir_p=false
34017fi
34018
Reid Spencera773bd52006-08-04 18:18:08 +000034019# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34020# systems may use methods other than mode bits to determine executability.
34021cat >conf$$.file <<_ASEOF
34022#! /bin/sh
34023exit 0
34024_ASEOF
34025chmod +x conf$$.file
34026if test -x conf$$.file >/dev/null 2>&1; then
34027 as_executable_p="test -x"
34028else
34029 as_executable_p=:
34030fi
34031rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034032
34033# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034034as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034035
34036# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034037as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034038
34039
John Criswell7a73b802003-06-30 21:59:07 +000034040exec 6>&1
34041
Reid Spencera773bd52006-08-04 18:18:08 +000034042# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034043# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034044# values after options handling.
34045ac_log="
Tanya Lattner692aa5a2007-05-08 04:32:07 +000034046This file was extended by llvm $as_me 2.1cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034047generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034048
34049 CONFIG_FILES = $CONFIG_FILES
34050 CONFIG_HEADERS = $CONFIG_HEADERS
34051 CONFIG_LINKS = $CONFIG_LINKS
34052 CONFIG_COMMANDS = $CONFIG_COMMANDS
34053 $ $0 $@
34054
Reid Spencera773bd52006-08-04 18:18:08 +000034055on `(hostname || uname -n) 2>/dev/null | sed 1q`
34056"
34057
John Criswell7a73b802003-06-30 21:59:07 +000034058_ACEOF
34059
Reid Spencera773bd52006-08-04 18:18:08 +000034060cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034061# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034062config_files="$ac_config_files"
34063config_headers="$ac_config_headers"
34064config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034065
Reid Spencera773bd52006-08-04 18:18:08 +000034066_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034067
34068cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034069ac_cs_usage="\
34070\`$as_me' instantiates files from templates according to the
34071current configuration.
34072
34073Usage: $0 [OPTIONS] [FILE]...
34074
34075 -h, --help print this help, then exit
34076 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034077 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034078 -d, --debug don't remove temporary files
34079 --recheck update $as_me by reconfiguring in the same conditions
34080 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034081 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034082 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034083 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034084
34085Configuration files:
34086$config_files
34087
34088Configuration headers:
34089$config_headers
34090
John Criswellc764fbc2003-09-06 15:17:13 +000034091Configuration commands:
34092$config_commands
34093
John Criswell7a73b802003-06-30 21:59:07 +000034094Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034095
Reid Spencera773bd52006-08-04 18:18:08 +000034096_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034097cat >>$CONFIG_STATUS <<_ACEOF
34098ac_cs_version="\\
Tanya Lattner692aa5a2007-05-08 04:32:07 +000034099llvm config.status 2.1cvs
Reid Spencera773bd52006-08-04 18:18:08 +000034100configured by $0, generated by GNU Autoconf 2.60,
34101 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034102
Reid Spencera773bd52006-08-04 18:18:08 +000034103Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034104This config.status script is free software; the Free Software Foundation
34105gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034106
34107ac_pwd='$ac_pwd'
34108srcdir='$srcdir'
34109INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034110_ACEOF
34111
34112cat >>$CONFIG_STATUS <<\_ACEOF
34113# If no file are specified by the user, then we need to provide default
34114# value. By we need to know if files were specified by the user.
34115ac_need_defaults=:
34116while test $# != 0
34117do
34118 case $1 in
34119 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034122 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034123 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034124 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034125 ac_option=$1
34126 ac_optarg=$2
34127 ac_shift=shift
34128 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034129 esac
34130
John Criswell0c38eaf2003-09-10 15:17:25 +000034131 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034132 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34134 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34136 echo "$ac_cs_version"; exit ;;
34137 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034138 debug=: ;;
34139 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034140 $ac_shift
34141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034142 ac_need_defaults=false;;
34143 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034144 $ac_shift
34145 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034146 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034147 --he | --h)
34148 # Conflict between --help and --header
34149 { echo "$as_me: error: ambiguous option: $1
34150Try \`$0 --help' for more information." >&2
34151 { (exit 1); exit 1; }; };;
34152 --help | --hel | -h )
34153 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34156 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034157
34158 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034159 -*) { echo "$as_me: error: unrecognized option: $1
34160Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034161 { (exit 1); exit 1; }; } ;;
34162
Reid Spencera773bd52006-08-04 18:18:08 +000034163 *) ac_config_targets="$ac_config_targets $1"
34164 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034165
34166 esac
34167 shift
34168done
34169
John Criswell0c38eaf2003-09-10 15:17:25 +000034170ac_configure_extra_args=
34171
34172if $ac_cs_silent; then
34173 exec 6>/dev/null
34174 ac_configure_extra_args="$ac_configure_extra_args --silent"
34175fi
34176
34177_ACEOF
34178cat >>$CONFIG_STATUS <<_ACEOF
34179if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034180 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34181 CONFIG_SHELL=$SHELL
34182 export CONFIG_SHELL
34183 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034184fi
34185
John Criswell7a73b802003-06-30 21:59:07 +000034186_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034187cat >>$CONFIG_STATUS <<\_ACEOF
34188exec 5>>config.log
34189{
34190 echo
34191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34192## Running $as_me. ##
34193_ASBOX
34194 echo "$ac_log"
34195} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034196
Reid Spencera773bd52006-08-04 18:18:08 +000034197_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034198cat >>$CONFIG_STATUS <<_ACEOF
34199#
Reid Spencera773bd52006-08-04 18:18:08 +000034200# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034201#
Reid Spencerc0682832005-02-24 19:05:19 +000034202llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034203
34204_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034205
John Criswell7a73b802003-06-30 21:59:07 +000034206cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034207
34208# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034209for ac_config_target in $ac_config_targets
34210do
Reid Spencera773bd52006-08-04 18:18:08 +000034211 case $ac_config_target in
34212 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34213 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34214 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34215 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34216 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34217 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034218 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034219 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34220 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34221 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34222 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34223 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34224 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34225 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034226 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034227 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34228 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34229 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34230 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34231 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34232
John Criswell7a73b802003-06-30 21:59:07 +000034233 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34234echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34235 { (exit 1); exit 1; }; };;
34236 esac
34237done
34238
Reid Spencera773bd52006-08-04 18:18:08 +000034239
John Criswell7a73b802003-06-30 21:59:07 +000034240# If the user did not use the arguments to specify the items to instantiate,
34241# then the envvar interface is used. Set only those that are not.
34242# We use the long form for the default assignment because of an extremely
34243# bizarre bug on SunOS 4.1.3.
34244if $ac_need_defaults; then
34245 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34246 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034248fi
34249
John Criswell0c38eaf2003-09-10 15:17:25 +000034250# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034251# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034252# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034253# Hook for its removal unless debugging.
34254# Note that there is a small window in which the directory will not be cleaned:
34255# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034256$debug ||
34257{
Reid Spencera773bd52006-08-04 18:18:08 +000034258 tmp=
34259 trap 'exit_status=$?
34260 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34261' 0
John Criswell7a73b802003-06-30 21:59:07 +000034262 trap '{ (exit 1); exit 1; }' 1 2 13 15
34263}
John Criswell7a73b802003-06-30 21:59:07 +000034264# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034265
John Criswell7a73b802003-06-30 21:59:07 +000034266{
Reid Spencera773bd52006-08-04 18:18:08 +000034267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034268 test -n "$tmp" && test -d "$tmp"
34269} ||
34270{
Reid Spencera773bd52006-08-04 18:18:08 +000034271 tmp=./conf$$-$RANDOM
34272 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034273} ||
34274{
John Criswell0c38eaf2003-09-10 15:17:25 +000034275 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034276 { (exit 1); exit 1; }
34277}
34278
John Criswell7a73b802003-06-30 21:59:07 +000034279#
Reid Spencera773bd52006-08-04 18:18:08 +000034280# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034281#
34282
34283# No need to generate the scripts if there are no CONFIG_FILES.
34284# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034285if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034286
34287_ACEOF
34288
Reid Spencera773bd52006-08-04 18:18:08 +000034289
34290
34291ac_delim='%!_!# '
34292for ac_last_try in false false false false false :; do
34293 cat >conf$$subs.sed <<_ACEOF
34294SHELL!$SHELL$ac_delim
34295PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34296PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34297PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34298PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34299PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34300PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34301exec_prefix!$exec_prefix$ac_delim
34302prefix!$prefix$ac_delim
34303program_transform_name!$program_transform_name$ac_delim
34304bindir!$bindir$ac_delim
34305sbindir!$sbindir$ac_delim
34306libexecdir!$libexecdir$ac_delim
34307datarootdir!$datarootdir$ac_delim
34308datadir!$datadir$ac_delim
34309sysconfdir!$sysconfdir$ac_delim
34310sharedstatedir!$sharedstatedir$ac_delim
34311localstatedir!$localstatedir$ac_delim
34312includedir!$includedir$ac_delim
34313oldincludedir!$oldincludedir$ac_delim
34314docdir!$docdir$ac_delim
34315infodir!$infodir$ac_delim
34316htmldir!$htmldir$ac_delim
34317dvidir!$dvidir$ac_delim
34318pdfdir!$pdfdir$ac_delim
34319psdir!$psdir$ac_delim
34320libdir!$libdir$ac_delim
34321localedir!$localedir$ac_delim
34322mandir!$mandir$ac_delim
34323DEFS!$DEFS$ac_delim
34324ECHO_C!$ECHO_C$ac_delim
34325ECHO_N!$ECHO_N$ac_delim
34326ECHO_T!$ECHO_T$ac_delim
34327LIBS!$LIBS$ac_delim
34328build_alias!$build_alias$ac_delim
34329host_alias!$host_alias$ac_delim
34330target_alias!$target_alias$ac_delim
34331LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34332subdirs!$subdirs$ac_delim
34333build!$build$ac_delim
34334build_cpu!$build_cpu$ac_delim
34335build_vendor!$build_vendor$ac_delim
34336build_os!$build_os$ac_delim
34337host!$host$ac_delim
34338host_cpu!$host_cpu$ac_delim
34339host_vendor!$host_vendor$ac_delim
34340host_os!$host_os$ac_delim
34341target!$target$ac_delim
34342target_cpu!$target_cpu$ac_delim
34343target_vendor!$target_vendor$ac_delim
34344target_os!$target_os$ac_delim
34345OS!$OS$ac_delim
34346LINKALL!$LINKALL$ac_delim
34347NOLINKALL!$NOLINKALL$ac_delim
34348LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34349LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34350ARCH!$ARCH$ac_delim
34351ENDIAN!$ENDIAN$ac_delim
34352CC!$CC$ac_delim
34353CFLAGS!$CFLAGS$ac_delim
34354LDFLAGS!$LDFLAGS$ac_delim
34355CPPFLAGS!$CPPFLAGS$ac_delim
34356ac_ct_CC!$ac_ct_CC$ac_delim
34357EXEEXT!$EXEEXT$ac_delim
34358OBJEXT!$OBJEXT$ac_delim
34359CPP!$CPP$ac_delim
34360GREP!$GREP$ac_delim
34361EGREP!$EGREP$ac_delim
34362LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34363BUILD_CC!$BUILD_CC$ac_delim
34364BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34365CVSBUILD!$CVSBUILD$ac_delim
34366ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34367DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034368ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34369EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034370DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034371JIT!$JIT$ac_delim
34372TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34373ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34374ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034375ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034376TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034377ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034378EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34379CXX!$CXX$ac_delim
34380CXXFLAGS!$CXXFLAGS$ac_delim
34381ac_ct_CXX!$ac_ct_CXX$ac_delim
34382LEX!$LEX$ac_delim
34383LEXLIB!$LEXLIB$ac_delim
34384LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34385FLEX!$FLEX$ac_delim
34386YACC!$YACC$ac_delim
34387YFLAGS!$YFLAGS$ac_delim
34388BISON!$BISON$ac_delim
34389NM!$NM$ac_delim
34390ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034391_ACEOF
34392
34393 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34394 break
34395 elif $ac_last_try; then
34396 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34397echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34398 { (exit 1); exit 1; }; }
34399 else
34400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034401 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034402done
34403
34404ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34405if test -n "$ac_eof"; then
34406 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34407 ac_eof=`expr $ac_eof + 1`
34408fi
34409
34410cat >>$CONFIG_STATUS <<_ACEOF
34411cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34413_ACEOF
34414sed '
34415s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34416s/^/s,@/; s/!/@,|#_!!_#|/
34417:n
34418t n
34419s/'"$ac_delim"'$/,g/; t
34420s/$/\\/; p
34421N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34422' >>$CONFIG_STATUS <conf$$subs.sed
34423rm -f conf$$subs.sed
34424cat >>$CONFIG_STATUS <<_ACEOF
34425CEOF$ac_eof
34426_ACEOF
34427
34428
34429ac_delim='%!_!# '
34430for ac_last_try in false false false false false :; do
34431 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000034432LN_S!$LN_S$ac_delim
34433CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034434CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034435DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034436FIND!$FIND$ac_delim
34437MKDIR!$MKDIR$ac_delim
34438MV!$MV$ac_delim
34439RANLIB!$RANLIB$ac_delim
34440RM!$RM$ac_delim
34441SED!$SED$ac_delim
34442TAR!$TAR$ac_delim
34443BINPWD!$BINPWD$ac_delim
34444GRAPHVIZ!$GRAPHVIZ$ac_delim
34445DOT!$DOT$ac_delim
34446GV!$GV$ac_delim
34447DOTTY!$DOTTY$ac_delim
34448PERL!$PERL$ac_delim
34449HAVE_PERL!$HAVE_PERL$ac_delim
34450INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34451INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34452INSTALL_DATA!$INSTALL_DATA$ac_delim
34453BZIP2!$BZIP2$ac_delim
34454DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034455GROFF!$GROFF$ac_delim
34456GZIP!$GZIP$ac_delim
34457POD2HTML!$POD2HTML$ac_delim
34458POD2MAN!$POD2MAN$ac_delim
34459RUNTEST!$RUNTEST$ac_delim
34460TCLSH!$TCLSH$ac_delim
34461ZIP!$ZIP$ac_delim
34462INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34463INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34464CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34465CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34466LIBADD_DL!$LIBADD_DL$ac_delim
34467ECHO!$ECHO$ac_delim
34468AR!$AR$ac_delim
34469STRIP!$STRIP$ac_delim
34470CXXCPP!$CXXCPP$ac_delim
34471F77!$F77$ac_delim
34472FFLAGS!$FFLAGS$ac_delim
34473ac_ct_F77!$ac_ct_F77$ac_delim
34474LIBTOOL!$LIBTOOL$ac_delim
34475ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34476LLVMGCC!$LLVMGCC$ac_delim
34477LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034478USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034479HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034480HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034481ALLOCA!$ALLOCA$ac_delim
34482MMAP_FILE!$MMAP_FILE$ac_delim
34483LLVMCC1!$LLVMCC1$ac_delim
34484LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34485LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034486LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034487LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34488LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034489LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034490SHLIBEXT!$SHLIBEXT$ac_delim
34491LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34492LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34493LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34494LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34495LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34496LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34497LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34498LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34499LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34500LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34501LIBOBJS!$LIBOBJS$ac_delim
34502LTLIBOBJS!$LTLIBOBJS$ac_delim
34503_ACEOF
34504
David Greenea696d242007-06-28 19:36:08 +000034505 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
Reid Spencera773bd52006-08-04 18:18:08 +000034506 break
34507 elif $ac_last_try; then
34508 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34509echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34510 { (exit 1); exit 1; }; }
34511 else
34512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34513 fi
34514done
34515
34516ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34517if test -n "$ac_eof"; then
34518 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34519 ac_eof=`expr $ac_eof + 1`
34520fi
34521
34522cat >>$CONFIG_STATUS <<_ACEOF
34523cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34524/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34525_ACEOF
34526sed '
34527s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34528s/^/s,@/; s/!/@,|#_!!_#|/
34529:n
34530t n
34531s/'"$ac_delim"'$/,g/; t
34532s/$/\\/; p
34533N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34534' >>$CONFIG_STATUS <conf$$subs.sed
34535rm -f conf$$subs.sed
34536cat >>$CONFIG_STATUS <<_ACEOF
34537:end
34538s/|#_!!_#|//g
34539CEOF$ac_eof
34540_ACEOF
34541
34542
34543# VPATH may cause trouble with some makes, so we remove $(srcdir),
34544# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34545# trailing colons and then remove the whole line if VPATH becomes empty
34546# (actually we leave an empty line to preserve line numbers).
34547if test "x$srcdir" = x.; then
34548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34549s/:*\$(srcdir):*/:/
34550s/:*\${srcdir}:*/:/
34551s/:*@srcdir@:*/:/
34552s/^\([^=]*=[ ]*\):*/\1/
34553s/:*$//
34554s/^[^=]*=[ ]*$//
34555}'
34556fi
34557
34558cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034559fi # test -n "$CONFIG_FILES"
34560
Reid Spencera773bd52006-08-04 18:18:08 +000034561
34562for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34563do
34564 case $ac_tag in
34565 :[FHLC]) ac_mode=$ac_tag; continue;;
34566 esac
34567 case $ac_mode$ac_tag in
34568 :[FHL]*:*);;
34569 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34570echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34571 { (exit 1); exit 1; }; };;
34572 :[FH]-) ac_tag=-:-;;
34573 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34574 esac
34575 ac_save_IFS=$IFS
34576 IFS=:
34577 set x $ac_tag
34578 IFS=$ac_save_IFS
34579 shift
34580 ac_file=$1
34581 shift
34582
34583 case $ac_mode in
34584 :L) ac_source=$1;;
34585 :[FH])
34586 ac_file_inputs=
34587 for ac_f
34588 do
34589 case $ac_f in
34590 -) ac_f="$tmp/stdin";;
34591 *) # Look for the file first in the build tree, then in the source tree
34592 # (if the path is not absolute). The absolute path cannot be DOS-style,
34593 # because $ac_f cannot contain `:'.
34594 test -f "$ac_f" ||
34595 case $ac_f in
34596 [\\/$]*) false;;
34597 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34598 esac ||
34599 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34600echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34601 { (exit 1); exit 1; }; };;
34602 esac
34603 ac_file_inputs="$ac_file_inputs $ac_f"
34604 done
34605
34606 # Let's still pretend it is `configure' which instantiates (i.e., don't
34607 # use $as_me), people would be surprised to read:
34608 # /* config.h. Generated by config.status. */
34609 configure_input="Generated from "`IFS=:
34610 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34611 if test x"$ac_file" != x-; then
34612 configure_input="$ac_file. $configure_input"
34613 { echo "$as_me:$LINENO: creating $ac_file" >&5
34614echo "$as_me: creating $ac_file" >&6;}
34615 fi
34616
34617 case $ac_tag in
34618 *:-:* | *:-) cat >"$tmp/stdin";;
34619 esac
34620 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034621 esac
34622
Reid Spencera773bd52006-08-04 18:18:08 +000034623 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034625 X"$ac_file" : 'X\(//\)[^/]' \| \
34626 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034627 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034628echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34630 s//\1/
34631 q
34632 }
34633 /^X\(\/\/\)[^/].*/{
34634 s//\1/
34635 q
34636 }
34637 /^X\(\/\/\)$/{
34638 s//\1/
34639 q
34640 }
34641 /^X\(\/\).*/{
34642 s//\1/
34643 q
34644 }
34645 s/.*/./; q'`
34646 { as_dir="$ac_dir"
34647 case $as_dir in #(
34648 -*) as_dir=./$as_dir;;
34649 esac
34650 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034651 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034652 while :; do
34653 case $as_dir in #(
34654 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34655 *) as_qdir=$as_dir;;
34656 esac
34657 as_dirs="'$as_qdir' $as_dirs"
34658 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034659$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034660 X"$as_dir" : 'X\(//\)[^/]' \| \
34661 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034663echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34665 s//\1/
34666 q
34667 }
34668 /^X\(\/\/\)[^/].*/{
34669 s//\1/
34670 q
34671 }
34672 /^X\(\/\/\)$/{
34673 s//\1/
34674 q
34675 }
34676 /^X\(\/\).*/{
34677 s//\1/
34678 q
34679 }
34680 s/.*/./; q'`
34681 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034682 done
Reid Spencera773bd52006-08-04 18:18:08 +000034683 test -z "$as_dirs" || eval "mkdir $as_dirs"
34684 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34685echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034686 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034687 ac_builddir=.
34688
Reid Spencera773bd52006-08-04 18:18:08 +000034689case "$ac_dir" in
34690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34691*)
John Criswell7a73b802003-06-30 21:59:07 +000034692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034693 # A ".." for each directory in $ac_dir_suffix.
34694 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34695 case $ac_top_builddir_sub in
34696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34698 esac ;;
34699esac
34700ac_abs_top_builddir=$ac_pwd
34701ac_abs_builddir=$ac_pwd$ac_dir_suffix
34702# for backward compatibility:
34703ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034704
34705case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034706 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034707 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034708 ac_top_srcdir=$ac_top_builddir_sub
34709 ac_abs_top_srcdir=$ac_pwd ;;
34710 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034711 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034712 ac_top_srcdir=$srcdir
34713 ac_abs_top_srcdir=$srcdir ;;
34714 *) # Relative name.
34715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34716 ac_top_srcdir=$ac_top_build_prefix$srcdir
34717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034718esac
Reid Spencera773bd52006-08-04 18:18:08 +000034719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034720
John Criswell7a73b802003-06-30 21:59:07 +000034721
Reid Spencera773bd52006-08-04 18:18:08 +000034722 case $ac_mode in
34723 :F)
34724 #
34725 # CONFIG_FILE
34726 #
John Criswell7a73b802003-06-30 21:59:07 +000034727
34728 case $INSTALL in
34729 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034730 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034731 esac
John Criswell7a73b802003-06-30 21:59:07 +000034732_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034733
34734cat >>$CONFIG_STATUS <<\_ACEOF
34735# If the template does not know about datarootdir, expand it.
34736# FIXME: This hack should be removed a few years after 2.60.
34737ac_datarootdir_hack=; ac_datarootdir_seen=
34738
34739case `sed -n '/datarootdir/ {
34740 p
34741 q
34742}
34743/@datadir@/p
34744/@docdir@/p
34745/@infodir@/p
34746/@localedir@/p
34747/@mandir@/p
34748' $ac_file_inputs` in
34749*datarootdir*) ac_datarootdir_seen=yes;;
34750*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34751 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34752echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34753_ACEOF
34754cat >>$CONFIG_STATUS <<_ACEOF
34755 ac_datarootdir_hack='
34756 s&@datadir@&$datadir&g
34757 s&@docdir@&$docdir&g
34758 s&@infodir@&$infodir&g
34759 s&@localedir@&$localedir&g
34760 s&@mandir@&$mandir&g
34761 s&\\\${datarootdir}&$datarootdir&g' ;;
34762esac
34763_ACEOF
34764
34765# Neutralize VPATH when `$srcdir' = `.'.
34766# Shell code in configure.ac might set extrasub.
34767# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034768cat >>$CONFIG_STATUS <<_ACEOF
34769 sed "$ac_vpsub
34770$extrasub
34771_ACEOF
34772cat >>$CONFIG_STATUS <<\_ACEOF
34773:t
34774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034775s&@configure_input@&$configure_input&;t t
34776s&@top_builddir@&$ac_top_builddir_sub&;t t
34777s&@srcdir@&$ac_srcdir&;t t
34778s&@abs_srcdir@&$ac_abs_srcdir&;t t
34779s&@top_srcdir@&$ac_top_srcdir&;t t
34780s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34781s&@builddir@&$ac_builddir&;t t
34782s&@abs_builddir@&$ac_abs_builddir&;t t
34783s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34784s&@INSTALL@&$ac_INSTALL&;t t
34785$ac_datarootdir_hack
34786" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034787
Reid Spencera773bd52006-08-04 18:18:08 +000034788test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34791 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34792which seems to be undefined. Please make sure it is defined." >&5
34793echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34794which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034795
Reid Spencera773bd52006-08-04 18:18:08 +000034796 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034797 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034798 -) cat "$tmp/out"; rm -f "$tmp/out";;
34799 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034800 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034801 ;;
34802 :H)
34803 #
34804 # CONFIG_HEADER
34805 #
John Criswell7a73b802003-06-30 21:59:07 +000034806_ACEOF
34807
Reid Spencera773bd52006-08-04 18:18:08 +000034808# Transform confdefs.h into a sed script `conftest.defines', that
34809# substitutes the proper values into config.h.in to produce config.h.
34810rm -f conftest.defines conftest.tail
34811# First, append a space to every undef/define line, to ease matching.
34812echo 's/$/ /' >conftest.defines
34813# Then, protect against being on the right side of a sed subst, or in
34814# an unquoted here document, in config.status. If some macros were
34815# called several times there might be several #defines for the same
34816# symbol, which is useless. But do not sort them, since the last
34817# AC_DEFINE must be honored.
34818ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34819# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34820# NAME is the cpp macro being defined, VALUE is the value it is being given.
34821# PARAMS is the parameter list in the macro definition--in most cases, it's
34822# just an empty string.
34823ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34824ac_dB='\\)[ (].*,\\1define\\2'
34825ac_dC=' '
34826ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034827
Reid Spencera773bd52006-08-04 18:18:08 +000034828uniq confdefs.h |
34829 sed -n '
34830 t rset
34831 :rset
34832 s/^[ ]*#[ ]*define[ ][ ]*//
34833 t ok
34834 d
34835 :ok
34836 s/[\\&,]/\\&/g
34837 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34838 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34839 ' >>conftest.defines
34840
34841# Remove the space that was appended to ease matching.
34842# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034843# example, in the case of _POSIX_SOURCE, which is predefined and required
34844# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034845# (The regexp can be short, since the line contains either #define or #undef.)
34846echo 's/ $//
34847s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034848
Reid Spencera773bd52006-08-04 18:18:08 +000034849# Break up conftest.defines:
34850ac_max_sed_lines=50
34851
34852# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34853# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34854# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34855# et cetera.
34856ac_in='$ac_file_inputs'
34857ac_out='"$tmp/out1"'
34858ac_nxt='"$tmp/out2"'
34859
34860while :
John Criswell7a73b802003-06-30 21:59:07 +000034861do
Reid Spencera773bd52006-08-04 18:18:08 +000034862 # Write a here document:
34863 cat >>$CONFIG_STATUS <<_ACEOF
34864 # First, check the format of the line:
34865 cat >"\$tmp/defines.sed" <<\\CEOF
34866/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34867/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34868b
34869:def
34870_ACEOF
34871 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034872 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034873 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34874 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34875 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34876 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034877 rm -f conftest.defines
34878 mv conftest.tail conftest.defines
34879done
Reid Spencera773bd52006-08-04 18:18:08 +000034880rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034881
Reid Spencera773bd52006-08-04 18:18:08 +000034882echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034883cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034884 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034885 echo "/* $configure_input */" >"$tmp/config.h"
34886 cat "$ac_result" >>"$tmp/config.h"
34887 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034888 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34889echo "$as_me: $ac_file is unchanged" >&6;}
34890 else
John Criswell7a73b802003-06-30 21:59:07 +000034891 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034892 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034893 fi
34894 else
Reid Spencera773bd52006-08-04 18:18:08 +000034895 echo "/* $configure_input */"
34896 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034897 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034898 rm -f "$tmp/out12"
34899 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034900
Reid Spencera773bd52006-08-04 18:18:08 +000034901 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34902echo "$as_me: executing $ac_file commands" >&6;}
34903 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034904 esac
John Criswell7a73b802003-06-30 21:59:07 +000034905
Reid Spencera773bd52006-08-04 18:18:08 +000034906
34907 case $ac_file$ac_mode in
34908 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34909 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34910 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34911 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34912 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34913 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34914 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34915 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034916 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34917 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034918 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34919 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34920 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34921 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34922 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34923 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34924 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34925 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34926 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34927 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34928
34929 esac
34930done # for ac_tag
34931
John Criswell7a73b802003-06-30 21:59:07 +000034932
34933{ (exit 0); exit 0; }
34934_ACEOF
34935chmod +x $CONFIG_STATUS
34936ac_clean_files=$ac_clean_files_save
34937
34938
34939# configure is writing to config.log, and then calls config.status.
34940# config.status does its own redirection, appending to config.log.
34941# Unfortunately, on DOS this fails, as config.log is still kept open
34942# by configure, so config.status won't be able to write to it; its
34943# output is simply discarded. So we exec the FD to /dev/null,
34944# effectively closing config.log, so it can be properly (re)opened and
34945# appended to by config.status. When coming back to configure, we
34946# need to make the FD available again.
34947if test "$no_create" != yes; then
34948 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034949 ac_config_status_args=
34950 test "$silent" = yes &&
34951 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034952 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034954 exec 5>>config.log
34955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34956 # would make configure fail if this is the last instruction.
34957 $ac_cs_success || { (exit 1); exit 1; }
34958fi
34959
John Criswell12399a12003-09-30 15:55:44 +000034960#
34961# CONFIG_SUBDIRS section.
34962#
34963if test "$no_recursion" != yes; then
34964
34965 # Remove --cache-file and --srcdir arguments so they do not pile up.
34966 ac_sub_configure_args=
34967 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034968 eval "set x $ac_configure_args"
34969 shift
34970 for ac_arg
34971 do
John Criswell12399a12003-09-30 15:55:44 +000034972 if test -n "$ac_prev"; then
34973 ac_prev=
34974 continue
34975 fi
34976 case $ac_arg in
34977 -cache-file | --cache-file | --cache-fil | --cache-fi \
34978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34979 ac_prev=cache_file ;;
34980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34982 | --c=*)
34983 ;;
34984 --config-cache | -C)
34985 ;;
34986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34987 ac_prev=srcdir ;;
34988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34989 ;;
34990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34991 ac_prev=prefix ;;
34992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034994 *)
34995 case $ac_arg in
34996 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34997 esac
34998 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034999 esac
35000 done
35001
35002 # Always prepend --prefix to ensure using the same prefix
35003 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035004 ac_arg="--prefix=$prefix"
35005 case $ac_arg in
35006 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35007 esac
35008 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035009
35010 ac_popdir=`pwd`
35011 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35012
35013 # Do not complain, so a configure script can configure whichever
35014 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035015 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035016
Reid Spencera773bd52006-08-04 18:18:08 +000035017 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35018 echo "$as_me:$LINENO: $ac_msg" >&5
35019 echo "$ac_msg" >&6
35020 { as_dir="$ac_dir"
35021 case $as_dir in #(
35022 -*) as_dir=./$as_dir;;
35023 esac
35024 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035025 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035026 while :; do
35027 case $as_dir in #(
35028 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35029 *) as_qdir=$as_dir;;
35030 esac
35031 as_dirs="'$as_qdir' $as_dirs"
35032 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035034 X"$as_dir" : 'X\(//\)[^/]' \| \
35035 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035037echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35039 s//\1/
35040 q
35041 }
35042 /^X\(\/\/\)[^/].*/{
35043 s//\1/
35044 q
35045 }
35046 /^X\(\/\/\)$/{
35047 s//\1/
35048 q
35049 }
35050 /^X\(\/\).*/{
35051 s//\1/
35052 q
35053 }
35054 s/.*/./; q'`
35055 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035056 done
Reid Spencera773bd52006-08-04 18:18:08 +000035057 test -z "$as_dirs" || eval "mkdir $as_dirs"
35058 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35059echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035060 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035061 ac_builddir=.
35062
Reid Spencera773bd52006-08-04 18:18:08 +000035063case "$ac_dir" in
35064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35065*)
John Criswell12399a12003-09-30 15:55:44 +000035066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035067 # A ".." for each directory in $ac_dir_suffix.
35068 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35069 case $ac_top_builddir_sub in
35070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35072 esac ;;
35073esac
35074ac_abs_top_builddir=$ac_pwd
35075ac_abs_builddir=$ac_pwd$ac_dir_suffix
35076# for backward compatibility:
35077ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035078
35079case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035080 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035081 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035082 ac_top_srcdir=$ac_top_builddir_sub
35083 ac_abs_top_srcdir=$ac_pwd ;;
35084 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035085 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035086 ac_top_srcdir=$srcdir
35087 ac_abs_top_srcdir=$srcdir ;;
35088 *) # Relative name.
35089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35090 ac_top_srcdir=$ac_top_build_prefix$srcdir
35091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035092esac
Reid Spencera773bd52006-08-04 18:18:08 +000035093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035094
35095
Reid Spencera773bd52006-08-04 18:18:08 +000035096 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035097
35098 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035099 if test -f "$ac_srcdir/configure.gnu"; then
35100 ac_sub_configure=$ac_srcdir/configure.gnu
35101 elif test -f "$ac_srcdir/configure"; then
35102 ac_sub_configure=$ac_srcdir/configure
35103 elif test -f "$ac_srcdir/configure.in"; then
35104 # This should be Cygnus configure.
35105 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035106 else
35107 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35108echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35109 ac_sub_configure=
35110 fi
35111
35112 # The recursion is here.
35113 if test -n "$ac_sub_configure"; then
35114 # Make the cache file name correct relative to the subdirectory.
35115 case $cache_file in
35116 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035117 *) # Relative name.
35118 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035119 esac
35120
Reid Spencera773bd52006-08-04 18:18:08 +000035121 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35122echo "$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 +000035123 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035124 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35125 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035126 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035127echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35128 { (exit 1); exit 1; }; }
35129 fi
35130
Reid Spencera773bd52006-08-04 18:18:08 +000035131 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035132 done
35133fi
35134
Brian Gaekef3b24102003-11-16 18:38:14 +000035135