blob: b9eafdff21160bc46147522d1bac14592a858580 [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
Reid Spencer8b2e1412006-11-17 03:32:33 +0000833DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000838ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000839TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000840ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000841EXTRA_OPTIONS
842CXX
843CXXFLAGS
844ac_ct_CXX
845LEX
846LEXLIB
847LEX_OUTPUT_ROOT
848FLEX
849YACC
850YFLAGS
851BISON
852NM
853ifGNUmake
854LN_S
855CMP
856CP
857DATE
858FIND
859MKDIR
860MV
861RANLIB
862RM
863SED
864TAR
865BINPWD
866GRAPHVIZ
867DOT
868GV
869DOTTY
870PERL
871HAVE_PERL
872INSTALL_PROGRAM
873INSTALL_SCRIPT
874INSTALL_DATA
875BZIP2
876DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000877GROFF
878GZIP
879POD2HTML
880POD2MAN
881RUNTEST
882TCLSH
883ZIP
884INSTALL_LTDL_TRUE
885INSTALL_LTDL_FALSE
886CONVENIENCE_LTDL_TRUE
887CONVENIENCE_LTDL_FALSE
888LIBADD_DL
889ECHO
890AR
891STRIP
892CXXCPP
893F77
894FFLAGS
895ac_ct_F77
896LIBTOOL
897ETAGSFLAGS
898LLVMGCC
899LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000900USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000901HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000902HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000903ALLOCA
904MMAP_FILE
905LLVMCC1
906LLVMCC1PLUS
907LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000908LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000909LLVMGCC_VERSION
910LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000911LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000912SHLIBEXT
913LLVM_PREFIX
914LLVM_BINDIR
915LLVM_LIBDIR
916LLVM_DATADIR
917LLVM_DOCSDIR
918LLVM_ETCDIR
919LLVM_INCLUDEDIR
920LLVM_INFODIR
921LLVM_MANDIR
922LLVM_CONFIGTIME
923LIBOBJS
924LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000925ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000926 ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932CPPFLAGS
933CPP
934CXX
935CXXFLAGS
936CCC
937YACC
938YFLAGS
939CXXCPP
940F77
941FFLAGS'
942ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000943projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000944projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000945projects/llvm-test
946projects/llvm-reopt
947projects/llvm-gcc
948projects/llvm-java
949projects/llvm-tv
950projects/llvm-poolalloc
951projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000952
953# Initialize some variables set by options.
954ac_init_help=
955ac_init_version=false
956# The variables have the same names as the options, with
957# dashes changed to underlines.
958cache_file=/dev/null
959exec_prefix=NONE
960no_create=
961no_recursion=
962prefix=NONE
963program_prefix=NONE
964program_suffix=NONE
965program_transform_name=s,x,x,
966silent=
967site=
968srcdir=
969verbose=
970x_includes=NONE
971x_libraries=NONE
972
973# Installation directory options.
974# These are left unexpanded so users can "make install exec_prefix=/foo"
975# and all the variables that are supposed to be based on exec_prefix
976# by default will actually change.
977# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000978# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000979bindir='${exec_prefix}/bin'
980sbindir='${exec_prefix}/sbin'
981libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000982datarootdir='${prefix}/share'
983datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000984sysconfdir='${prefix}/etc'
985sharedstatedir='${prefix}/com'
986localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000987includedir='${prefix}/include'
988oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000989docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990infodir='${datarootdir}/info'
991htmldir='${docdir}'
992dvidir='${docdir}'
993pdfdir='${docdir}'
994psdir='${docdir}'
995libdir='${exec_prefix}/lib'
996localedir='${datarootdir}/locale'
997mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000998
999ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001000ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001001for ac_option
1002do
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001005 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001006 ac_prev=
1007 continue
1008 fi
1009
Reid Spencera773bd52006-08-04 18:18:08 +00001010 case $ac_option in
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 *) ac_optarg=yes ;;
1013 esac
John Criswell7a73b802003-06-30 21:59:07 +00001014
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1016
Reid Spencera773bd52006-08-04 18:18:08 +00001017 case $ac_dashdash$ac_option in
1018 --)
1019 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001020
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1025
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1030
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1037
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1040
Reid Spencera773bd52006-08-04 18:18:08 +00001041 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001042 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001044 datadir=$ac_optarg ;;
1045
Reid Spencera773bd52006-08-04 18:18:08 +00001046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1052
John Criswell7a73b802003-06-30 21:59:07 +00001053 -disable-* | --disable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001060 eval enable_$ac_feature=no ;;
1061
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1066
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001071
1072 -enable-* | --enable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001079 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001080
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1089
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1093
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1100
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1105
Reid Spencera773bd52006-08-04 18:18:08 +00001106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1111
John Criswell7a73b802003-06-30 21:59:07 +00001112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1118
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1123
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1128
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1135
Reid Spencera773bd52006-08-04 18:18:08 +00001136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1140
John Criswell7a73b802003-06-30 21:59:07 +00001141 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001142 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001146 localstatedir=$ac_optarg ;;
1147
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1152
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1156
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1160
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1164
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1173
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1178
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1185
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1192
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1209
Reid Spencera773bd52006-08-04 18:18:08 +00001210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1214
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1219
John Criswell7a73b802003-06-30 21:59:07 +00001220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1223
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1229
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1240
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1245
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1250
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1257
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1262
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1265
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1268
1269 -with-* | --with-*)
1270 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1273 { echo "$as_me: error: invalid package name: $ac_package" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001276 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001277
1278 -without-* | --without-*)
1279 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001285 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001286
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1290
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1297
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1304
1305 -*) { echo "$as_me: error: unrecognized option: $ac_option
1306Try \`$0 --help' for more information." >&2
1307 { (exit 1); exit 1; }; }
1308 ;;
1309
1310 *=*)
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001316 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001317 export $ac_envvar ;;
1318
1319 *)
1320 # FIXME: should be removed in autoconf 3.0.
1321 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325 ;;
1326
1327 esac
1328done
1329
1330if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 { echo "$as_me: error: missing argument to $ac_option" >&2
1333 { (exit 1); exit 1; }; }
1334fi
1335
Reid Spencera773bd52006-08-04 18:18:08 +00001336# Be sure to have absolute directory names.
1337for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001341do
Reid Spencera773bd52006-08-04 18:18:08 +00001342 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001343 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001346 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001347 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001349done
1350
1351# There might be people who depend on the old broken behavior: `$host'
1352# used to hold the argument of --host etc.
1353# FIXME: To remove some day.
1354build=$build_alias
1355host=$host_alias
1356target=$target_alias
1357
1358# FIXME: To remove some day.
1359if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used." >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367fi
1368
1369ac_tool_prefix=
1370test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372test "$silent" = yes && exec 6>/dev/null
1373
1374
Reid Spencera773bd52006-08-04 18:18:08 +00001375ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376ac_ls_di=`ls -di .` &&
1377ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 { echo "$as_me: error: Working directory cannot be determined" >&2
1379 { (exit 1); exit 1; }; }
1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 { echo "$as_me: error: pwd does not report name of working directory" >&2
1382 { (exit 1); exit 1; }; }
1383
1384
John Criswell7a73b802003-06-30 21:59:07 +00001385# Find the source files, if location was not specified.
1386if test -z "$srcdir"; then
1387 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001390$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001391 X"$0" : 'X\(//\)[^/]' \| \
1392 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001394echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)[^/].*/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\).*/{
1408 s//\1/
1409 q
1410 }
1411 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001412 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001413 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001414 srcdir=..
1415 fi
1416else
1417 ac_srcdir_defaulted=no
1418fi
Reid Spencera773bd52006-08-04 18:18:08 +00001419if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001422 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001423fi
Reid Spencera773bd52006-08-04 18:18:08 +00001424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001427 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001428 pwd)`
1429# When building in place, set srcdir=.
1430if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432fi
1433# Remove unnecessary trailing slashes from srcdir.
1434# Double slashes in file names in object file debugging info
1435# mess up M-x gdb in Emacs.
1436case $srcdir in
1437*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438esac
1439for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444done
John Criswell7a73b802003-06-30 21:59:07 +00001445
1446#
1447# Report the --help message.
1448#
1449if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
Tanya Lattner692aa5a2007-05-08 04:32:07 +00001453\`configure' configures llvm 2.1cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001454
1455Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460Defaults for the options are specified in brackets.
1461
1462Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472
John Criswell7a73b802003-06-30 21:59:07 +00001473Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001477 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001478
1479By default, \`make install' will install all the files in
1480\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482for instance \`--prefix=\$HOME'.
1483
1484For better control, use the options below.
1485
1486Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001506_ACEOF
1507
1508 cat <<\_ACEOF
1509
1510System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514_ACEOF
1515fi
1516
1517if test -n "$ac_init_help"; then
1518 case $ac_init_help in
Tanya Lattner692aa5a2007-05-08 04:32:07 +00001519 short | recursive ) echo "Configuration of llvm 2.1cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001520 esac
1521 cat <<\_ACEOF
1522
1523Optional Features:
1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001526 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001527 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001528 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001530 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001531 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001532 --enable-pic Build LLVM with Position Independent Code (default
1533 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001534 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001535 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001536 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1537 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001538 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001539 --enable-shared[=PKGS] build shared libraries
1540 [default=enable_shared_default]
1541 --enable-static[=PKGS] build static libraries
1542 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001543 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001544 optimize for fast installation
1545 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001546 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001547
1548Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001551 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1552 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001553 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001554 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-pic try to use only PIC/non-PIC objects [default=use
1557 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001558 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001559 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001560
1561Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001562 CC C compiler command
1563 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001568 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001571 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1572 the first program found out of: `bison -y', `byacc', `yacc'.
1573 YFLAGS The list of arguments that will be passed by default to $YACC.
1574 This script will default YFLAGS to the empty string to avoid a
1575 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001576 CXXCPP C++ preprocessor
1577 F77 Fortran 77 compiler command
1578 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to <llvmbugs@cs.uiuc.edu>.
1584_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001585ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001591 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001592 ac_builddir=.
1593
Reid Spencera773bd52006-08-04 18:18:08 +00001594case "$ac_dir" in
1595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596*)
John Criswell7a73b802003-06-30 21:59:07 +00001597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 esac ;;
1604esac
1605ac_abs_top_builddir=$ac_pwd
1606ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607# for backward compatibility:
1608ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001609
1610case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001611 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001612 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001613 ac_top_srcdir=$ac_top_builddir_sub
1614 ac_abs_top_srcdir=$ac_pwd ;;
1615 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001616 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001617 ac_top_srcdir=$srcdir
1618 ac_abs_top_srcdir=$srcdir ;;
1619 *) # Relative name.
1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001623esac
Reid Spencera773bd52006-08-04 18:18:08 +00001624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001625
Reid Spencera773bd52006-08-04 18:18:08 +00001626 cd "$ac_dir" || { ac_status=$?; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001634 else
1635 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001638 done
1639fi
1640
Reid Spencera773bd52006-08-04 18:18:08 +00001641test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001642if $ac_init_version; then
1643 cat <<\_ACEOF
Tanya Lattner692aa5a2007-05-08 04:32:07 +00001644llvm configure 2.1cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001645generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001646
Reid Spencera773bd52006-08-04 18:18:08 +00001647Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001649This configure script is free software; the Free Software Foundation
1650gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001651
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001652Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001653_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001654 exit
John Criswell7a73b802003-06-30 21:59:07 +00001655fi
Reid Spencera773bd52006-08-04 18:18:08 +00001656cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001657This file contains any messages produced by compilers while
1658running configure, to aid debugging if configure makes a mistake.
1659
Tanya Lattner692aa5a2007-05-08 04:32:07 +00001660It was created by llvm $as_me 2.1cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001661generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001662
1663 $ $0 $@
1664
1665_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001666exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001667{
1668cat <<_ASUNAME
1669## --------- ##
1670## Platform. ##
1671## --------- ##
1672
1673hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
1679/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1681
1682/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1683/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1684/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001685/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001686/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1687/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1688/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1689
1690_ASUNAME
1691
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 echo "PATH: $as_dir"
1698done
Reid Spencera773bd52006-08-04 18:18:08 +00001699IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001700
1701} >&5
1702
1703cat >&5 <<_ACEOF
1704
1705
1706## ----------- ##
1707## Core tests. ##
1708## ----------- ##
1709
1710_ACEOF
1711
1712
1713# Keep a trace of the command line.
1714# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001715# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001716# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001717# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001718ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001719ac_configure_args0=
1720ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001721ac_must_keep_next=false
1722for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001723do
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 for ac_arg
1725 do
1726 case $ac_arg in
1727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1729 | -silent | --silent | --silen | --sile | --sil)
1730 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001731 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001732 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733 esac
1734 case $ac_pass in
1735 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736 2)
1737 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1738 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001739 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001741 case $ac_arg in
1742 *=* | --config-cache | -C | -disable-* | --disable-* \
1743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1745 | -with-* | --with-* | -without-* | --without-* | --x)
1746 case "$ac_configure_args0 " in
1747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1748 esac
1749 ;;
1750 -* ) ac_must_keep_next=true ;;
1751 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001753 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ;;
1755 esac
1756 done
John Criswell7a73b802003-06-30 21:59:07 +00001757done
John Criswell0c38eaf2003-09-10 15:17:25 +00001758$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1759$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 +00001760
1761# When interrupted or exit'd, cleanup temporary files, and complete
1762# config.log. We remove comments because anyway the quotes in there
1763# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001764# WARNING: Use '\'' to represent an apostrophe within the trap.
1765# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001766trap 'exit_status=$?
1767 # Save into config.log some information that might help in debugging.
1768 {
1769 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001770
John Criswell7a73b802003-06-30 21:59:07 +00001771 cat <<\_ASBOX
1772## ---------------- ##
1773## Cache variables. ##
1774## ---------------- ##
1775_ASBOX
1776 echo
1777 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001778(
1779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780 eval ac_val=\$$ac_var
1781 case $ac_val in #(
1782 *${as_nl}*)
1783 case $ac_var in #(
1784 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1785echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1786 esac
1787 case $ac_var in #(
1788 _ | IFS | as_nl) ;; #(
1789 *) $as_unset $ac_var ;;
1790 esac ;;
1791 esac
1792 done
John Criswell7a73b802003-06-30 21:59:07 +00001793 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1795 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001796 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001797 "s/'\''/'\''\\\\'\'''\''/g;
1798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1799 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001800 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001802 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001803 esac |
1804 sort
1805)
John Criswell7a73b802003-06-30 21:59:07 +00001806 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001807
1808 cat <<\_ASBOX
1809## ----------------- ##
1810## Output variables. ##
1811## ----------------- ##
1812_ASBOX
1813 echo
1814 for ac_var in $ac_subst_vars
1815 do
Reid Spencera773bd52006-08-04 18:18:08 +00001816 eval ac_val=\$$ac_var
1817 case $ac_val in
1818 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 esac
1820 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001821 done | sort
1822 echo
1823
1824 if test -n "$ac_subst_files"; then
1825 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001826## ------------------- ##
1827## File substitutions. ##
1828## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001829_ASBOX
1830 echo
1831 for ac_var in $ac_subst_files
1832 do
Reid Spencera773bd52006-08-04 18:18:08 +00001833 eval ac_val=\$$ac_var
1834 case $ac_val in
1835 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 esac
1837 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001838 done | sort
1839 echo
1840 fi
1841
John Criswell7a73b802003-06-30 21:59:07 +00001842 if test -s confdefs.h; then
1843 cat <<\_ASBOX
1844## ----------- ##
1845## confdefs.h. ##
1846## ----------- ##
1847_ASBOX
1848 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001849 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001850 echo
1851 fi
1852 test "$ac_signal" != 0 &&
1853 echo "$as_me: caught signal $ac_signal"
1854 echo "$as_me: exit $exit_status"
1855 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001856 rm -f core *.core core.conftest.* &&
1857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001858 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001859' 0
John Criswell7a73b802003-06-30 21:59:07 +00001860for ac_signal in 1 2 13 15; do
1861 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862done
1863ac_signal=0
1864
1865# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001866rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001867
1868# Predefined preprocessor variables.
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_NAME "$PACKAGE_NAME"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_VERSION "$PACKAGE_VERSION"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_STRING "$PACKAGE_STRING"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892_ACEOF
1893
1894
1895# Let the site file select an alternate cache file if it wants to.
1896# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001897if test -n "$CONFIG_SITE"; then
1898 set x "$CONFIG_SITE"
1899elif test "x$prefix" != xNONE; then
1900 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901else
1902 set x "$ac_default_prefix/share/config.site" \
1903 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001904fi
Reid Spencera773bd52006-08-04 18:18:08 +00001905shift
1906for ac_site_file
1907do
John Criswell7a73b802003-06-30 21:59:07 +00001908 if test -r "$ac_site_file"; then
1909 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1912 . "$ac_site_file"
1913 fi
1914done
1915
1916if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921echo "$as_me: loading cache $cache_file" >&6;}
1922 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001923 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001925 esac
1926 fi
1927else
1928 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929echo "$as_me: creating cache $cache_file" >&6;}
1930 >$cache_file
1931fi
1932
1933# Check that the precious variables saved in the cache have kept the same
1934# value.
1935ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001936for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001941 case $ac_old_set,$ac_new_set in
1942 set,)
1943 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1946 ,set)
1947 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1950 ,);;
1951 *)
1952 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001953 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001954echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001955 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001956echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001957 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001958echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001959 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001960 fi;;
1961 esac
1962 # Pass precious variables to config.status.
1963 if test "$ac_new_set" = set; then
1964 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001965 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001966 *) ac_arg=$ac_var=$ac_new_val ;;
1967 esac
1968 case " $ac_configure_args " in
1969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1970 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971 esac
1972 fi
1973done
1974if $ac_cache_corrupted; then
1975 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979 { (exit 1); exit 1; }; }
1980fi
1981
Reid Spencera773bd52006-08-04 18:18:08 +00001982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
John Criswell7a73b802003-06-30 21:59:07 +00002006ac_ext=c
2007ac_cpp='$CPP $CPPFLAGS'
2008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011
2012
2013
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002014LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002015
2016
2017
2018
2019
2020
2021
John Criswell7a73b802003-06-30 21:59:07 +00002022ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002023for ac_dir in autoconf "$srcdir"/autoconf; do
2024 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/install-sh -c"
2027 break
Reid Spencera773bd52006-08-04 18:18:08 +00002028 elif test -f "$ac_dir/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/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/shtool install -c"
2035 break
2036 fi
2037done
2038if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002039 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2040echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002041 { (exit 1); exit 1; }; }
2042fi
Reid Spencera773bd52006-08-04 18:18:08 +00002043
2044# These three variables are undocumented and unsupported,
2045# and are intended to be withdrawn in a future Autoconf release.
2046# They can cause serious problems if a builder's source tree is in a directory
2047# whose full name contains unusual characters.
2048ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2049ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2050ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2051
John Criswell7a73b802003-06-30 21:59:07 +00002052
John Criswell392aaa32003-07-22 19:18:09 +00002053
Reid Spencer2706f8c2004-09-19 23:53:36 +00002054if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2056 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002057echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2058 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002059 fi
John Criswell93e1c722003-09-15 17:04:06 +00002060fi
2061
John Criswell33a911a2003-11-25 20:36:46 +00002062for i in `ls ${srcdir}/projects`
2063do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002064 if test -d ${srcdir}/projects/${i} ; then
2065 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002066 CVS) ;;
2067 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002068 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002069 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002070 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002071 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002072 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002073 llvm-test) subdirs="$subdirs projects/llvm-test"
2074 ;;
2075 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002076;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002077 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002078 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002079 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002080 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002081 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002083 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002084 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002086 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002088 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2089echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002090 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002091 esac
John Criswell33a911a2003-11-25 20:36:46 +00002092 fi
2093done
John Criswell559a6c12003-09-30 16:31:48 +00002094
John Criswell7a73b802003-06-30 21:59:07 +00002095
2096# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002097$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002100 { (exit 1); exit 1; }; }
2101
Reid Spencera773bd52006-08-04 18:18:08 +00002102{ echo "$as_me:$LINENO: checking build system type" >&5
2103echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002104if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
Reid Spencera773bd52006-08-04 18:18:08 +00002107 ac_build_alias=$build_alias
2108test "x$ac_build_alias" = x &&
2109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002114ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002117 { (exit 1); exit 1; }; }
2118
2119fi
Reid Spencera773bd52006-08-04 18:18:08 +00002120{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121echo "${ECHO_T}$ac_cv_build" >&6; }
2122case $ac_cv_build in
2123*-*-*) ;;
2124*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2127esac
John Criswell7a73b802003-06-30 21:59:07 +00002128build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002129ac_save_IFS=$IFS; IFS='-'
2130set x $ac_cv_build
2131shift
2132build_cpu=$1
2133build_vendor=$2
2134shift; shift
2135# Remember, the first character of IFS is used to create $*,
2136# except with old shells:
2137build_os=$*
2138IFS=$ac_save_IFS
2139case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002140
2141
Reid Spencera773bd52006-08-04 18:18:08 +00002142{ echo "$as_me:$LINENO: checking host system type" >&5
2143echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002144if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
Reid Spencera773bd52006-08-04 18:18:08 +00002147 if test "x$host_alias" = x; then
2148 ac_cv_host=$ac_cv_build
2149else
2150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002153 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002154fi
John Criswell7a73b802003-06-30 21:59:07 +00002155
2156fi
Reid Spencera773bd52006-08-04 18:18:08 +00002157{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158echo "${ECHO_T}$ac_cv_host" >&6; }
2159case $ac_cv_host in
2160*-*-*) ;;
2161*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2164esac
John Criswell7a73b802003-06-30 21:59:07 +00002165host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002166ac_save_IFS=$IFS; IFS='-'
2167set x $ac_cv_host
2168shift
2169host_cpu=$1
2170host_vendor=$2
2171shift; shift
2172# Remember, the first character of IFS is used to create $*,
2173# except with old shells:
2174host_os=$*
2175IFS=$ac_save_IFS
2176case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002177
2178
Reid Spencera773bd52006-08-04 18:18:08 +00002179{ echo "$as_me:$LINENO: checking target system type" >&5
2180echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002181if test "${ac_cv_target+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
Reid Spencera773bd52006-08-04 18:18:08 +00002184 if test "x$target_alias" = x; then
2185 ac_cv_target=$ac_cv_host
2186else
2187 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002190 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002191fi
John Criswell7a73b802003-06-30 21:59:07 +00002192
2193fi
Reid Spencera773bd52006-08-04 18:18:08 +00002194{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195echo "${ECHO_T}$ac_cv_target" >&6; }
2196case $ac_cv_target in
2197*-*-*) ;;
2198*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199echo "$as_me: error: invalid value of canonical target" >&2;}
2200 { (exit 1); exit 1; }; };;
2201esac
John Criswell7a73b802003-06-30 21:59:07 +00002202target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002203ac_save_IFS=$IFS; IFS='-'
2204set x $ac_cv_target
2205shift
2206target_cpu=$1
2207target_vendor=$2
2208shift; shift
2209# Remember, the first character of IFS is used to create $*,
2210# except with old shells:
2211target_os=$*
2212IFS=$ac_save_IFS
2213case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002214
2215
2216# The aliases save the names the user supplied, while $host etc.
2217# will get canonicalized.
2218test -n "$target_alias" &&
2219 test "$program_prefix$program_suffix$program_transform_name" = \
2220 NONENONEs,x,x, &&
2221 program_prefix=${target_alias}-
2222
Reid Spencera773bd52006-08-04 18:18:08 +00002223{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2224echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002228 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002229 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002232 llvm_cv_os_type="AIX"
2233 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002234 *-*-irix*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="IRIX"
2238 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002242 llvm_cv_os_type="Cygwin"
2243 llvm_cv_platform_type="Unix" ;;
2244 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002245 llvm_cv_link_all_option="-Wl,-all_load"
2246 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 llvm_cv_os_type="Darwin"
2248 llvm_cv_platform_type="Unix" ;;
2249 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 llvm_cv_os_type="FreeBSD"
2253 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002254 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002257 llvm_cv_os_type="OpenBSD"
2258 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002259 *-*-netbsd*)
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="NetBSD"
2263 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002264 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002267 llvm_cv_os_type="HP-UX"
2268 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="Interix"
2273 llvm_cv_platform_type="Unix" ;;
2274 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277 llvm_cv_os_type="Linux"
2278 llvm_cv_platform_type="Unix" ;;
2279 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002280 llvm_cv_link_all_option="-Wl,-z,allextract"
2281 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 llvm_cv_os_type="SunOS"
2283 llvm_cv_platform_type="Unix" ;;
2284 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002287 llvm_cv_os_type="Win32"
2288 llvm_cv_platform_type="Win32" ;;
2289 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 llvm_cv_os_type="MingW"
2293 llvm_cv_platform_type="Win32" ;;
2294 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option=""
2296 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="Unknown"
2298 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002299esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002300fi
Reid Spencera773bd52006-08-04 18:18:08 +00002301{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2302echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002303
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304if test "$llvm_cv_os_type" = "Unknown" ; then
2305 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002307 { (exit 1); exit 1; }; }
2308fi
2309
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002311
2312
Reid Spencera773bd52006-08-04 18:18:08 +00002313LINKALL=$llvm_cv_link_all_option
2314
2315NOLINKALL=$llvm_cv_no_link_all_option
2316
2317
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318case $llvm_cv_platform_type in
2319 Unix)
2320
2321cat >>confdefs.h <<\_ACEOF
2322#define LLVM_ON_UNIX 1
2323_ACEOF
2324
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002325 LLVM_ON_UNIX=1
2326
2327 LLVM_ON_WIN32=0
2328
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 ;;
2330 Win32)
2331
2332cat >>confdefs.h <<\_ACEOF
2333#define LLVM_ON_WIN32 1
2334_ACEOF
2335
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002336 LLVM_ON_UNIX=0
2337
2338 LLVM_ON_WIN32=1
2339
Reid Spencer7b3e8512004-12-24 06:29:05 +00002340 ;;
2341esac
2342
Reid Spencera773bd52006-08-04 18:18:08 +00002343{ echo "$as_me:$LINENO: checking target architecture" >&5
2344echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345if test "${llvm_cv_target_arch+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002349 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002350 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002351 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2352 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002353 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002354 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002355 arm-*) llvm_cv_target_arch="ARM" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002356 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002357esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358fi
Reid Spencera773bd52006-08-04 18:18:08 +00002359{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2360echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002361
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362if test "$llvm_cv_target_arch" = "Unknown" ; then
2363 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2364echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2365fi
John Criswell76595452003-07-01 22:07:39 +00002366
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002368
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002375if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380if test "${ac_cv_prog_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002392 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 +00002393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397done
2398done
Reid Spencera773bd52006-08-04 18:18:08 +00002399IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400
2401fi
2402fi
2403CC=$ac_cv_prog_CC
2404if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002405 { echo "$as_me:$LINENO: result: $CC" >&5
2406echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407else
Reid Spencera773bd52006-08-04 18:18:08 +00002408 { echo "$as_me:$LINENO: result: no" >&5
2409echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410fi
2411
Reid Spencera773bd52006-08-04 18:18:08 +00002412
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413fi
2414if test -z "$ac_cv_prog_CC"; then
2415 ac_ct_CC=$CC
2416 # Extract the first word of "gcc", so it can be a program name with args.
2417set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002432 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 +00002433 ac_cv_prog_ac_ct_CC="gcc"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437done
2438done
Reid Spencera773bd52006-08-04 18:18:08 +00002439IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440
2441fi
2442fi
2443ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002445 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447else
Reid Spencera773bd52006-08-04 18:18:08 +00002448 { echo "$as_me:$LINENO: result: no" >&5
2449echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450fi
2451
Reid Spencera773bd52006-08-04 18:18:08 +00002452 if test "x$ac_ct_CC" = x; then
2453 CC=""
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456yes:)
2457{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2458whose name does not start with the host triplet. If you think this
2459configuration is useful to you, please write to autoconf@gnu.org." >&5
2460echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2461whose name does not start with the host triplet. If you think this
2462configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2463ac_tool_warned=yes ;;
2464esac
2465 CC=$ac_ct_CC
2466 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467else
2468 CC="$ac_cv_prog_CC"
2469fi
2470
2471if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002472 if test -n "$ac_tool_prefix"; then
2473 # 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 +00002474set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477if test "${ac_cv_prog_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002489 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 +00002490 ac_cv_prog_CC="${ac_tool_prefix}cc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494done
2495done
Reid Spencera773bd52006-08-04 18:18:08 +00002496IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002502 { echo "$as_me:$LINENO: result: $CC" >&5
2503echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504else
Reid Spencera773bd52006-08-04 18:18:08 +00002505 { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507fi
2508
Reid Spencera773bd52006-08-04 18:18:08 +00002509
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511fi
2512if test -z "$CC"; then
2513 # Extract the first word of "cc", so it can be a program name with args.
2514set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002517if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523 ac_prog_rejected=no
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002530 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 +00002531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2532 ac_prog_rejected=yes
2533 continue
2534 fi
2535 ac_cv_prog_CC="cc"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539done
2540done
Reid Spencera773bd52006-08-04 18:18:08 +00002541IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542
2543if test $ac_prog_rejected = yes; then
2544 # We found a bogon in the path, so make sure we never use it.
2545 set dummy $ac_cv_prog_CC
2546 shift
2547 if test $# != 0; then
2548 # We chose a different compiler from the bogus one.
2549 # However, it has the same basename, so the bogon will be chosen
2550 # first if we set CC to just the basename; use the full file name.
2551 shift
2552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2553 fi
2554fi
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002559 { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561else
Reid Spencera773bd52006-08-04 18:18:08 +00002562 { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564fi
2565
Reid Spencera773bd52006-08-04 18:18:08 +00002566
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567fi
2568if test -z "$CC"; then
2569 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002570 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002571 do
2572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002588 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 +00002589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593done
2594done
Reid Spencera773bd52006-08-04 18:18:08 +00002595IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002596
2597fi
2598fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002601 { echo "$as_me:$LINENO: result: $CC" >&5
2602echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002603else
Reid Spencera773bd52006-08-04 18:18:08 +00002604 { echo "$as_me:$LINENO: result: no" >&5
2605echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002606fi
2607
Reid Spencera773bd52006-08-04 18:18:08 +00002608
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002610 done
2611fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612if test -z "$CC"; then
2613 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002614 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002615do
2616 # Extract the first word of "$ac_prog", so it can be a program name with args.
2617set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623 if test -n "$ac_ct_CC"; then
2624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002632 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 +00002633 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637done
2638done
Reid Spencera773bd52006-08-04 18:18:08 +00002639IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002640
2641fi
2642fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643ac_ct_CC=$ac_cv_prog_ac_ct_CC
2644if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002645 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2646echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002647else
Reid Spencera773bd52006-08-04 18:18:08 +00002648 { echo "$as_me:$LINENO: result: no" >&5
2649echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002650fi
2651
Reid Spencera773bd52006-08-04 18:18:08 +00002652
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002654done
John Criswell7a73b802003-06-30 21:59:07 +00002655
Reid Spencera773bd52006-08-04 18:18:08 +00002656 if test "x$ac_ct_CC" = x; then
2657 CC=""
2658 else
2659 case $cross_compiling:$ac_tool_warned in
2660yes:)
2661{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662whose name does not start with the host triplet. If you think this
2663configuration is useful to you, please write to autoconf@gnu.org." >&5
2664echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665whose name does not start with the host triplet. If you think this
2666configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667ac_tool_warned=yes ;;
2668esac
2669 CC=$ac_ct_CC
2670 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671fi
2672
John Criswell7a73b802003-06-30 21:59:07 +00002673fi
2674
2675
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2677See \`config.log' for more details." >&5
2678echo "$as_me: error: no acceptable C compiler found in \$PATH
2679See \`config.log' for more details." >&2;}
2680 { (exit 1); exit 1; }; }
2681
John Criswell7a73b802003-06-30 21:59:07 +00002682# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002683echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002684ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002685{ (ac_try="$ac_compiler --version >&5"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002695{ (ac_try="$ac_compiler -v >&5"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002705{ (ac_try="$ac_compiler -V >&5"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715
2716cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002722
John Criswell7a73b802003-06-30 21:59:07 +00002723int
2724main ()
2725{
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002732ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002733# Try to create an executable without -o first, disregard a.out.
2734# It will help us diagnose broken compilers, and finding out an intuition
2735# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002736{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2737echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002738ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002739#
2740# List of possible output files, starting from the most likely.
2741# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2742# only as a last resort. b.out is created by i960 compilers.
2743ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2744#
2745# The IRIX 6 linker writes into existing files which may not be
2746# executable, retaining their permissions. Remove them first so a
2747# subsequent execution test works.
2748ac_rmfiles=
2749for ac_file in $ac_files
2750do
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2753 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754 esac
2755done
2756rm -f $ac_rmfiles
2757
2758if { (ac_try="$ac_link_default"
2759case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002768 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2769# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2770# in a Makefile. We should not override ac_cv_exeext if it was cached,
2771# so that the user can short-circuit this test for compilers unknown to
2772# Autoconf.
2773for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002774do
2775 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002776 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002778 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002779 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002780 # We found the default executable, but exeext='' is most
2781 # certainly right.
2782 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002783 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002784 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2785 then :; else
2786 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2787 fi
2788 # We set ac_cv_exeext here because the later test for it is not
2789 # safe: cross compilers may not add the suffix if given an `-o'
2790 # argument, so we may need to know it at that point already.
2791 # Even if this section looks crufty: it has the advantage of
2792 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002793 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002796 esac
2797done
Reid Spencera773bd52006-08-04 18:18:08 +00002798test "$ac_cv_exeext" = no && ac_cv_exeext=
2799
John Criswell7a73b802003-06-30 21:59:07 +00002800else
2801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002802sed 's/^/| /' conftest.$ac_ext >&5
2803
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002804{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002805See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002806echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002807See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002808 { (exit 77); exit 77; }; }
2809fi
2810
2811ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002812{ echo "$as_me:$LINENO: result: $ac_file" >&5
2813echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002814
Reid Spencera773bd52006-08-04 18:18:08 +00002815# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002816# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002817{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2818echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002819# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2820# If not cross compiling, check that we can run a simple program.
2821if test "$cross_compiling" != yes; then
2822 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002823 { (case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 cross_compiling=no
2833 else
2834 if test "$cross_compiling" = maybe; then
2835 cross_compiling=yes
2836 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002837 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002838If you meant to cross compile, use \`--host'.
2839See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002840echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002841If you meant to cross compile, use \`--host'.
2842See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002843 { (exit 1); exit 1; }; }
2844 fi
2845 fi
2846fi
Reid Spencera773bd52006-08-04 18:18:08 +00002847{ echo "$as_me:$LINENO: result: yes" >&5
2848echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002849
John Criswell0c38eaf2003-09-10 15:17:25 +00002850rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002851ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002852# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002853# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002854{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2855echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2856{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2857echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002858
Reid Spencera773bd52006-08-04 18:18:08 +00002859{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2860echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2861if { (ac_try="$ac_link"
2862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
2866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; then
2871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2872# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2873# work properly (i.e., refer to `conftest.exe'), while it won't with
2874# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002875for ac_file in conftest.exe conftest conftest.*; do
2876 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002877 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002880 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002881 * ) break;;
2882 esac
2883done
2884else
John Criswell0c38eaf2003-09-10 15:17:25 +00002885 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2886See \`config.log' for more details." >&5
2887echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2888See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002889 { (exit 1); exit 1; }; }
2890fi
2891
2892rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002893{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002895
2896rm -f conftest.$ac_ext
2897EXEEXT=$ac_cv_exeext
2898ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002899{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002901if test "${ac_cv_objext+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903else
2904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002910
John Criswell7a73b802003-06-30 21:59:07 +00002911int
2912main ()
2913{
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002920if { (ac_try="$ac_compile"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002930 for ac_file in conftest.o conftest.obj conftest.*; do
2931 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002932 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935 break;;
2936 esac
2937done
2938else
2939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2943See \`config.log' for more details." >&5
2944echo "$as_me: error: cannot compute suffix of object files: cannot compile
2945See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002946 { (exit 1); exit 1; }; }
2947fi
2948
2949rm -f conftest.$ac_cv_objext conftest.$ac_ext
2950fi
Reid Spencera773bd52006-08-04 18:18:08 +00002951{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2952echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002953OBJEXT=$ac_cv_objext
2954ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002955{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2956echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002957if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002961/* confdefs.h. */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002966
John Criswell7a73b802003-06-30 21:59:07 +00002967int
2968main ()
2969{
2970#ifndef __GNUC__
2971 choke me
2972#endif
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002979if { (ac_try="$ac_compile"
2980case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002986 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006esac
3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_compiler_gnu=yes
3013else
3014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003015sed 's/^/| /' conftest.$ac_ext >&5
3016
Reid Spencera773bd52006-08-04 18:18:08 +00003017 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003018fi
Reid Spencera773bd52006-08-04 18:18:08 +00003019
3020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003021ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003022
3023fi
Reid Spencera773bd52006-08-04 18:18:08 +00003024{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003026GCC=`test $ac_compiler_gnu = yes && echo yes`
3027ac_test_CFLAGS=${CFLAGS+set}
3028ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003029{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3030echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003031if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
Reid Spencera773bd52006-08-04 18:18:08 +00003034 ac_save_c_werror_flag=$ac_c_werror_flag
3035 ac_c_werror_flag=yes
3036 ac_cv_prog_cc_g=no
3037 CFLAGS="-g"
3038 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003039/* confdefs.h. */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003044
John Criswell7a73b802003-06-30 21:59:07 +00003045int
3046main ()
3047{
3048
3049 ;
3050 return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003054if { (ac_try="$ac_compile"
3055case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003061 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003087 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003088else
3089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003090sed 's/^/| /' conftest.$ac_ext >&5
3091
Reid Spencera773bd52006-08-04 18:18:08 +00003092 CFLAGS=""
3093 cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h. */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h. */
3099
3100int
3101main ()
3102{
3103
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (ac_try="$ac_compile"
3110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 :
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_cv_prog_cc_g=yes
3199else
3200 echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203
John Criswell7a73b802003-06-30 21:59:07 +00003204fi
Reid Spencera773bd52006-08-04 18:18:08 +00003205
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003207fi
Reid Spencera773bd52006-08-04 18:18:08 +00003208
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210fi
3211
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3214fi
3215{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3216echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003217if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3221 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003222 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003223 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003224 fi
3225else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003226 if test "$GCC" = yes; then
3227 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003228 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003230 fi
3231fi
Reid Spencera773bd52006-08-04 18:18:08 +00003232{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3233echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3234if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
Reid Spencera773bd52006-08-04 18:18:08 +00003237 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238ac_save_CC=$CC
3239cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245#include <stdarg.h>
3246#include <stdio.h>
3247#include <sys/types.h>
3248#include <sys/stat.h>
3249/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3250struct buf { int x; };
3251FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252static char *e (p, i)
3253 char **p;
3254 int i;
3255{
3256 return p[i];
3257}
3258static char *f (char * (*g) (char **, int), char **p, ...)
3259{
3260 char *s;
3261 va_list v;
3262 va_start (v,p);
3263 s = g (p, va_arg (v,int));
3264 va_end (v);
3265 return s;
3266}
3267
3268/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3269 function prototypes and stuff, but not '\xHH' hex character constants.
3270 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003271 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3273 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003274 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276
Reid Spencera773bd52006-08-04 18:18:08 +00003277/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278 inside strings and character constants. */
3279#define FOO(x) 'x'
3280int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282int test (int i, double x);
3283struct s1 {int (*f) (int a);};
3284struct s2 {int (*f) (double a);};
3285int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286int argc;
3287char **argv;
3288int
3289main ()
3290{
3291return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3292 ;
3293 return 0;
3294}
3295_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003296for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298do
3299 CC="$ac_save_CC $ac_arg"
3300 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003301if { (ac_try="$ac_compile"
3302case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; } &&
3324 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003334 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335else
3336 echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
Reid Spencera773bd52006-08-04 18:18:08 +00003339
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003340fi
Reid Spencera773bd52006-08-04 18:18:08 +00003341
3342rm -f core conftest.err conftest.$ac_objext
3343 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344done
Reid Spencera773bd52006-08-04 18:18:08 +00003345rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346CC=$ac_save_CC
3347
3348fi
Reid Spencera773bd52006-08-04 18:18:08 +00003349# AC_CACHE_VAL
3350case "x$ac_cv_prog_cc_c89" in
3351 x)
3352 { echo "$as_me:$LINENO: result: none needed" >&5
3353echo "${ECHO_T}none needed" >&6; } ;;
3354 xno)
3355 { echo "$as_me:$LINENO: result: unsupported" >&5
3356echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003358 CC="$CC $ac_cv_prog_cc_c89"
3359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361esac
3362
John Criswell0c38eaf2003-09-10 15:17:25 +00003363
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
3370
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003376{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378# On Suns, sometimes $CPP names a directory.
3379if test -n "$CPP" && test -d "$CPP"; then
3380 CPP=
3381fi
3382if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 do
3389 ac_preproc_ok=false
3390for ac_c_preproc_warn_flag in '' yes
3391do
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h. */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h. */
3404#ifdef __STDC__
3405# include <limits.h>
3406#else
3407# include <assert.h>
3408#endif
3409 Syntax error
3410_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003411if { (ac_try="$ac_cpp conftest.$ac_ext"
3412case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415esac
3416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427 else
3428 ac_cpp_err=
3429 fi
3430else
3431 ac_cpp_err=yes
3432fi
3433if test -z "$ac_cpp_err"; then
3434 :
3435else
3436 echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 # Broken: fails on valid input.
3440continue
3441fi
Reid Spencera773bd52006-08-04 18:18:08 +00003442
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003443rm -f conftest.err conftest.$ac_ext
3444
Reid Spencera773bd52006-08-04 18:18:08 +00003445 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446 # can be detected and how.
3447 cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h. */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h. */
3453#include <ac_nonexistent.h>
3454_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003455if { (ac_try="$ac_cpp conftest.$ac_ext"
3456case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459esac
3460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } >/dev/null; then
3468 if test -s conftest.err; then
3469 ac_cpp_err=$ac_c_preproc_warn_flag
3470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471 else
3472 ac_cpp_err=
3473 fi
3474else
3475 ac_cpp_err=yes
3476fi
3477if test -z "$ac_cpp_err"; then
3478 # Broken: success on invalid input.
3479continue
3480else
3481 echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 # Passes both tests.
3485ac_preproc_ok=:
3486break
3487fi
Reid Spencera773bd52006-08-04 18:18:08 +00003488
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489rm -f conftest.err conftest.$ac_ext
3490
3491done
3492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493rm -f conftest.err conftest.$ac_ext
3494if $ac_preproc_ok; then
3495 break
3496fi
3497
3498 done
3499 ac_cv_prog_CPP=$CPP
3500
3501fi
3502 CPP=$ac_cv_prog_CPP
3503else
3504 ac_cv_prog_CPP=$CPP
3505fi
Reid Spencera773bd52006-08-04 18:18:08 +00003506{ echo "$as_me:$LINENO: result: $CPP" >&5
3507echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508ac_preproc_ok=false
3509for ac_c_preproc_warn_flag in '' yes
3510do
3511 # Use a header file that comes with gcc, so configuring glibc
3512 # with a fresh cross-compiler works.
3513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514 # <limits.h> exists even on freestanding compilers.
3515 # On the NeXT, cc -E runs the code through the compiler's parser,
3516 # not just through cpp. "Syntax error" is here to catch this case.
3517 cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
3523#ifdef __STDC__
3524# include <limits.h>
3525#else
3526# include <assert.h>
3527#endif
3528 Syntax error
3529_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003530if { (ac_try="$ac_cpp conftest.$ac_ext"
3531case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534esac
3535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null; then
3543 if test -s conftest.err; then
3544 ac_cpp_err=$ac_c_preproc_warn_flag
3545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3546 else
3547 ac_cpp_err=
3548 fi
3549else
3550 ac_cpp_err=yes
3551fi
3552if test -z "$ac_cpp_err"; then
3553 :
3554else
3555 echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 # Broken: fails on valid input.
3559continue
3560fi
Reid Spencera773bd52006-08-04 18:18:08 +00003561
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003562rm -f conftest.err conftest.$ac_ext
3563
Reid Spencera773bd52006-08-04 18:18:08 +00003564 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003565 # can be detected and how.
3566 cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h. */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h. */
3572#include <ac_nonexistent.h>
3573_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003574if { (ac_try="$ac_cpp conftest.$ac_ext"
3575case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578esac
3579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } >/dev/null; then
3587 if test -s conftest.err; then
3588 ac_cpp_err=$ac_c_preproc_warn_flag
3589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3590 else
3591 ac_cpp_err=
3592 fi
3593else
3594 ac_cpp_err=yes
3595fi
3596if test -z "$ac_cpp_err"; then
3597 # Broken: success on invalid input.
3598continue
3599else
3600 echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603 # Passes both tests.
3604ac_preproc_ok=:
3605break
3606fi
Reid Spencera773bd52006-08-04 18:18:08 +00003607
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003608rm -f conftest.err conftest.$ac_ext
3609
3610done
3611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612rm -f conftest.err conftest.$ac_ext
3613if $ac_preproc_ok; then
3614 :
3615else
3616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3617See \`config.log' for more details." >&5
3618echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3619See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }
3621fi
3622
John Criswell7a73b802003-06-30 21:59:07 +00003623ac_ext=c
3624ac_cpp='$CPP $CPPFLAGS'
3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
John Criswell7a73b802003-06-30 21:59:07 +00003629
Reid Spencera773bd52006-08-04 18:18:08 +00003630{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3631echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003632if test "${ac_cv_path_GREP+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
Reid Spencera773bd52006-08-04 18:18:08 +00003635 # Extract the first word of "grep ggrep" to use in msg output
3636if test -z "$GREP"; then
3637set dummy grep ggrep; ac_prog_name=$2
3638if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
Reid Spencera773bd52006-08-04 18:18:08 +00003641 ac_path_GREP_found=false
3642# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003645do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003648 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3651 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3652 # Check for GNU ac_path_GREP and select it if it is found.
3653 # Check for GNU $ac_path_GREP
3654case `"$ac_path_GREP" --version 2>&1` in
3655*GNU*)
3656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3657*)
3658 ac_count=0
3659 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3660 while :
3661 do
3662 cat "conftest.in" "conftest.in" >"conftest.tmp"
3663 mv "conftest.tmp" "conftest.in"
3664 cp "conftest.in" "conftest.nl"
3665 echo 'GREP' >> "conftest.nl"
3666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3668 ac_count=`expr $ac_count + 1`
3669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3670 # Best one so far, save it but keep looking for a better one
3671 ac_cv_path_GREP="$ac_path_GREP"
3672 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003673 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003674 # 10*(2^10) chars as input seems more than enough
3675 test $ac_count -gt 10 && break
3676 done
3677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3678esac
3679
3680
3681 $ac_path_GREP_found && break 3
3682 done
3683done
3684
3685done
3686IFS=$as_save_IFS
3687
3688
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689fi
Reid Spencera773bd52006-08-04 18:18:08 +00003690
3691GREP="$ac_cv_path_GREP"
3692if test -z "$GREP"; then
3693 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3694echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3695 { (exit 1); exit 1; }; }
3696fi
3697
3698else
3699 ac_cv_path_GREP=$GREP
3700fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003701
John Criswell7a73b802003-06-30 21:59:07 +00003702
Reid Spencera773bd52006-08-04 18:18:08 +00003703fi
3704{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3705echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3706 GREP="$ac_cv_path_GREP"
3707
3708
3709{ echo "$as_me:$LINENO: checking for egrep" >&5
3710echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3711if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3715 then ac_cv_path_EGREP="$GREP -E"
3716 else
3717 # Extract the first word of "egrep" to use in msg output
3718if test -z "$EGREP"; then
3719set dummy egrep; ac_prog_name=$2
3720if test "${ac_cv_path_EGREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723 ac_path_EGREP_found=false
3724# Loop through the user's path and test for each of PROGNAME-LIST
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_prog in egrep; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3733 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3734 # Check for GNU ac_path_EGREP and select it if it is found.
3735 # Check for GNU $ac_path_EGREP
3736case `"$ac_path_EGREP" --version 2>&1` in
3737*GNU*)
3738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3739*)
3740 ac_count=0
3741 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3742 while :
3743 do
3744 cat "conftest.in" "conftest.in" >"conftest.tmp"
3745 mv "conftest.tmp" "conftest.in"
3746 cp "conftest.in" "conftest.nl"
3747 echo 'EGREP' >> "conftest.nl"
3748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750 ac_count=`expr $ac_count + 1`
3751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3752 # Best one so far, save it but keep looking for a better one
3753 ac_cv_path_EGREP="$ac_path_EGREP"
3754 ac_path_EGREP_max=$ac_count
3755 fi
3756 # 10*(2^10) chars as input seems more than enough
3757 test $ac_count -gt 10 && break
3758 done
3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760esac
3761
3762
3763 $ac_path_EGREP_found && break 3
3764 done
3765done
3766
3767done
3768IFS=$as_save_IFS
3769
3770
3771fi
3772
3773EGREP="$ac_cv_path_EGREP"
3774if test -z "$EGREP"; then
3775 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3776echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3777 { (exit 1); exit 1; }; }
3778fi
3779
3780else
3781 ac_cv_path_EGREP=$EGREP
3782fi
3783
3784
3785 fi
3786fi
3787{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3788echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3789 EGREP="$ac_cv_path_EGREP"
3790
3791
3792{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3793echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003794if test "${ac_cv_header_stdc+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003803#include <stdlib.h>
3804#include <stdarg.h>
3805#include <string.h>
3806#include <float.h>
3807
John Criswell0c38eaf2003-09-10 15:17:25 +00003808int
3809main ()
3810{
3811
3812 ;
3813 return 0;
3814}
John Criswell7a73b802003-06-30 21:59:07 +00003815_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003816rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003817if { (ac_try="$ac_compile"
3818case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821esac
3822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003824 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003829 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3831 { (case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834esac
3835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003841 { (case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003850 ac_cv_header_stdc=yes
3851else
3852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003853sed 's/^/| /' conftest.$ac_ext >&5
3854
Reid Spencera773bd52006-08-04 18:18:08 +00003855 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003856fi
Reid Spencera773bd52006-08-04 18:18:08 +00003857
3858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003859
3860if test $ac_cv_header_stdc = yes; then
3861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3862 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003868#include <string.h>
3869
3870_ACEOF
3871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003872 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003873 :
3874else
3875 ac_cv_header_stdc=no
3876fi
3877rm -f conftest*
3878
3879fi
3880
3881if test $ac_cv_header_stdc = yes; then
3882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003889#include <stdlib.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003893 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003894 :
3895else
3896 ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904 if test "$cross_compiling" = yes; then
3905 :
3906else
3907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003908/* confdefs.h. */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003913#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003914#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003915#if ((' ' & 0x0FF) == 0x020)
3916# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3918#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003919# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003920 (('a' <= (c) && (c) <= 'i') \
3921 || ('j' <= (c) && (c) <= 'r') \
3922 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924#endif
3925
3926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3927int
3928main ()
3929{
3930 int i;
3931 for (i = 0; i < 256; i++)
3932 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003933 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003934 return 2;
3935 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003936}
3937_ACEOF
3938rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003939if { (ac_try="$ac_link"
3940case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943esac
3944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003949 { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952esac
3953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 :
3959else
3960 echo "$as_me: program exited with status $ac_status" >&5
3961echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003962sed 's/^/| /' conftest.$ac_ext >&5
3963
John Criswell7a73b802003-06-30 21:59:07 +00003964( exit $ac_status )
3965ac_cv_header_stdc=no
3966fi
Reid Spencera773bd52006-08-04 18:18:08 +00003967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3968fi
3969
3970
John Criswell7a73b802003-06-30 21:59:07 +00003971fi
3972fi
Reid Spencera773bd52006-08-04 18:18:08 +00003973{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3974echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003975if test $ac_cv_header_stdc = yes; then
3976
3977cat >>confdefs.h <<\_ACEOF
3978#define STDC_HEADERS 1
3979_ACEOF
3980
3981fi
3982
Reid Spencera773bd52006-08-04 18:18:08 +00003983# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3994 inttypes.h stdint.h unistd.h
3995do
3996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3997{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
4008$ac_includes_default
4009
4010#include <$ac_header>
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (ac_try="$ac_compile"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030esac
4031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040esac
4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 eval "$as_ac_Header=yes"
4047else
4048 echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 eval "$as_ac_Header=no"
4052fi
4053
4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055fi
4056ac_res=`eval echo '${'$as_ac_Header'}'`
4057 { echo "$as_me:$LINENO: result: $ac_res" >&5
4058echo "${ECHO_T}$ac_res" >&6; }
4059if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060 cat >>confdefs.h <<_ACEOF
4061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4062_ACEOF
4063
4064fi
4065
4066done
4067
4068
4069{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4070echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4071if test "${ac_cv_c_bigendian+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 # See if sys/param.h defines the BYTE_ORDER macro.
4075cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081#include <sys/types.h>
4082#include <sys/param.h>
4083
4084int
4085main ()
4086{
4087#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4088 bogus endian macros
4089#endif
4090
4091 ;
4092 return 0;
4093}
4094_ACEOF
4095rm -f conftest.$ac_objext
4096if { (ac_try="$ac_compile"
4097case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4103 ac_status=$?
4104 grep -v '^ *+' conftest.er1 >conftest.err
4105 rm -f conftest.er1
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 # It does; now see whether it defined to BIG_ENDIAN or not.
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h. */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h. */
4136#include <sys/types.h>
4137#include <sys/param.h>
4138
4139int
4140main ()
4141{
4142#if BYTE_ORDER != BIG_ENDIAN
4143 not big endian
4144#endif
4145
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150rm -f conftest.$ac_objext
4151if { (ac_try="$ac_compile"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_c_bigendian=yes
4185else
4186 echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ac_cv_c_bigendian=no
4190fi
4191
4192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193else
4194 echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 # It does not; compile a test program.
4198if test "$cross_compiling" = yes; then
4199 # try to guess the endianness by grepping values into an object file
4200 ac_cv_c_bigendian=unknown
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4208short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4210short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4211short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4212void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4213int
4214main ()
4215{
4216 _ascii (); _ebcdic ();
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (ac_try="$ac_compile"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4256 ac_cv_c_bigendian=yes
4257fi
4258if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4259 if test "$ac_cv_c_bigendian" = unknown; then
4260 ac_cv_c_bigendian=no
4261 else
4262 # finding both strings is unlikely to happen, but who knows?
4263 ac_cv_c_bigendian=unknown
4264 fi
4265fi
4266else
4267 echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
4270
4271fi
4272
4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274else
4275 cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281$ac_includes_default
4282int
4283main ()
4284{
4285
4286 /* Are we little or big endian? From Harbison&Steele. */
4287 union
4288 {
4289 long int l;
4290 char c[sizeof (long int)];
4291 } u;
4292 u.l = 1;
4293 return u.c[sizeof (long int) - 1] == 1;
4294
4295 ;
4296 return 0;
4297}
4298_ACEOF
4299rm -f conftest$ac_exeext
4300if { (ac_try="$ac_link"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_c_bigendian=no
4320else
4321 echo "$as_me: program exited with status $ac_status" >&5
4322echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325( exit $ac_status )
4326ac_cv_c_bigendian=yes
4327fi
4328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4329fi
4330
4331
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4337echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4338case $ac_cv_c_bigendian in
4339 yes)
4340 ENDIAN=big
4341 ;;
4342 no)
4343 ENDIAN=little
4344 ;;
4345 *)
4346 { { echo "$as_me:$LINENO: error: unknown endianness
4347presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4348echo "$as_me: error: unknown endianness
4349presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4350 { (exit 1); exit 1; }; } ;;
4351esac
4352
4353
4354if test "$cross_compiling" = yes; then
4355 LLVM_CROSS_COMPILING=1
4356
4357
4358{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4359echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4360if test "${ac_cv_build_exeext+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4364 ac_cv_build_exeext=.exe
4365else
4366 ac_build_prefix=${build_alias}-
4367
4368 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4369set dummy ${ac_build_prefix}gcc; ac_word=$2
4370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 if test -n "$BUILD_CC"; then
4376 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4377else
4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389done
4390done
4391IFS=$as_save_IFS
4392
4393fi
4394fi
4395BUILD_CC=$ac_cv_prog_BUILD_CC
4396if test -n "$BUILD_CC"; then
4397 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4398echo "${ECHO_T}$BUILD_CC" >&6; }
4399else
4400 { echo "$as_me:$LINENO: result: no" >&5
4401echo "${ECHO_T}no" >&6; }
4402fi
4403
4404
4405 if test -z "$BUILD_CC"; then
4406 # Extract the first word of "gcc", so it can be a program name with args.
4407set dummy gcc; ac_word=$2
4408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413 if test -n "$BUILD_CC"; then
4414 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4415else
4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_BUILD_CC="gcc"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427done
4428done
4429IFS=$as_save_IFS
4430
4431fi
4432fi
4433BUILD_CC=$ac_cv_prog_BUILD_CC
4434if test -n "$BUILD_CC"; then
4435 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4436echo "${ECHO_T}$BUILD_CC" >&6; }
4437else
4438 { echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6; }
4440fi
4441
4442
4443 if test -z "$BUILD_CC"; then
4444 # Extract the first word of "cc", so it can be a program name with args.
4445set dummy cc; ac_word=$2
4446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451 if test -n "$BUILD_CC"; then
4452 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4453else
4454 ac_prog_rejected=no
4455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4463 ac_prog_rejected=yes
4464 continue
4465 fi
4466 ac_cv_prog_BUILD_CC="cc"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470done
4471done
4472IFS=$as_save_IFS
4473
4474if test $ac_prog_rejected = yes; then
4475 # We found a bogon in the path, so make sure we never use it.
4476 set dummy $ac_cv_prog_BUILD_CC
4477 shift
4478 if test $# != 0; then
4479 # We chose a different compiler from the bogus one.
4480 # However, it has the same basename, so the bogon will be chosen
4481 # first if we set BUILD_CC to just the basename; use the full file name.
4482 shift
4483 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4484 fi
4485fi
4486fi
4487fi
4488BUILD_CC=$ac_cv_prog_BUILD_CC
4489if test -n "$BUILD_CC"; then
4490 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491echo "${ECHO_T}$BUILD_CC" >&6; }
4492else
4493 { echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6; }
4495fi
4496
4497
4498 fi
4499 fi
4500 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4501echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4502 { (exit 1); exit 1; }; }
4503 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4504 rm -f conftest*
4505 echo 'int main () { return 0; }' > conftest.$ac_ext
4506 ac_cv_build_exeext=
4507 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4508 (eval $ac_build_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 for file in conftest.*; do
4513 case $file in
4514 *.c | *.o | *.obj) ;;
4515 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4516 esac
4517 done
4518 else
4519 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4520echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4521 { (exit 1); exit 1; }; }
4522 fi
4523 rm -f conftest*
4524 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4525fi
4526fi
4527
4528BUILD_EXEEXT=""
4529test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4530{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4531echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4532ac_build_exeext=$BUILD_EXEEXT
4533
4534else
4535 LLVM_CROSS_COMPILING=0
4536
4537fi
4538
Reid Spencer0b1e4662007-04-02 15:41:39 +00004539if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004540 cvsbuild="yes"
4541 optimize="no"
4542 CVSBUILD=CVSBUILD=1
4543
4544else
4545 cvsbuild="no"
4546 optimize="yes"
4547fi
4548
4549
4550# Check whether --enable-optimized was given.
4551if test "${enable_optimized+set}" = set; then
4552 enableval=$enable_optimized;
4553else
4554 enableval=$optimize
4555fi
4556
4557if test ${enableval} = "no" ; then
4558 ENABLE_OPTIMIZED=
4559
4560else
4561 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4562
4563fi
4564
4565# Check whether --enable-assertions was given.
4566if test "${enable_assertions+set}" = set; then
4567 enableval=$enable_assertions;
4568else
4569 enableval="yes"
4570fi
4571
4572if test ${enableval} = "yes" ; then
4573 DISABLE_ASSERTIONS=
4574
4575else
4576 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4577
4578fi
4579
Reid Spencer8b2e1412006-11-17 03:32:33 +00004580# Check whether --enable-debug-runtime was given.
4581if test "${enable_debug_runtime+set}" = set; then
4582 enableval=$enable_debug_runtime;
4583else
4584 enableval=no
4585fi
4586
4587if test ${enableval} = "no" ; then
4588 DEBUG_RUNTIME=
4589
4590else
4591 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4592
4593fi
4594
Reid Spencera773bd52006-08-04 18:18:08 +00004595# Check whether --enable-jit was given.
4596if test "${enable_jit+set}" = set; then
4597 enableval=$enable_jit;
4598else
4599 enableval=default
4600fi
4601
4602if test ${enableval} = "no"
4603then
4604 JIT=
4605
4606else
4607 case "$llvm_cv_target_arch" in
4608 x86) TARGET_HAS_JIT=1
4609 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004610 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004611 ;;
4612 PowerPC) TARGET_HAS_JIT=1
4613 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004614 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004615 ;;
4616 Alpha) TARGET_HAS_JIT=1
4617 ;;
4618 IA64) TARGET_HAS_JIT=0
4619 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004620 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004621 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004622 *) TARGET_HAS_JIT=0
4623 ;;
4624 esac
4625fi
4626
4627# Check whether --enable-doxygen was given.
4628if test "${enable_doxygen+set}" = set; then
4629 enableval=$enable_doxygen;
4630else
4631 enableval=default
4632fi
4633
4634case "$enableval" in
4635 yes) ENABLE_DOXYGEN=1
4636 ;;
4637 no) ENABLE_DOXYGEN=0
4638 ;;
4639 default) ENABLE_DOXYGEN=0
4640 ;;
4641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4642echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4643 { (exit 1); exit 1; }; } ;;
4644esac
4645
4646# Check whether --enable-threads was given.
4647if test "${enable_threads+set}" = set; then
4648 enableval=$enable_threads;
4649else
Reid Spencer65c5d752006-11-05 17:08:18 +00004650 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004651fi
4652
4653case "$enableval" in
4654 yes) ENABLE_THREADS=1
4655 ;;
4656 no) ENABLE_THREADS=0
4657 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004658 default) ENABLE_THREADS=1
4659 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4661echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4663esac
4664
4665cat >>confdefs.h <<_ACEOF
4666#define ENABLE_THREADS $ENABLE_THREADS
4667_ACEOF
4668
4669
Reid Spencer89b0d992006-12-16 22:07:52 +00004670# Check whether --enable-pic was given.
4671if test "${enable_pic+set}" = set; then
4672 enableval=$enable_pic;
4673else
4674 enableval=default
4675fi
4676
4677case "$enableval" in
4678 yes) ENABLE_PIC=1
4679 ;;
4680 no) ENABLE_PIC=0
4681 ;;
4682 default) ENABLE_PIC=0
4683 ;;
4684 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4685echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4686 { (exit 1); exit 1; }; } ;;
4687esac
4688
4689cat >>confdefs.h <<_ACEOF
4690#define ENABLE_PIC $ENABLE_PIC
4691_ACEOF
4692
4693
Reid Spencera773bd52006-08-04 18:18:08 +00004694TARGETS_TO_BUILD=""
4695# Check whether --enable-targets was given.
4696if test "${enable_targets+set}" = set; then
4697 enableval=$enable_targets;
4698else
4699 enableval=all
4700fi
4701
4702case "$enableval" in
4703 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4704 host-only)
4705 case "$llvm_cv_target_arch" in
4706 x86) TARGETS_TO_BUILD="X86" ;;
4707 x86_64) TARGETS_TO_BUILD="X86" ;;
4708 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4709 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4710 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4711 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004712 ARM) TARGETS_TO_BUILD="ARM" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004713 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4714echo "$as_me: error: Can not set target to build" >&2;}
4715 { (exit 1); exit 1; }; } ;;
4716 esac
4717 ;;
4718 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4719 case "$a_target" in
4720 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4721 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4722 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4723 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4724 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4725 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004726 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004727 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4728echo "$as_me: error: Unrecognized target $a_target" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4730 esac
4731 done
4732 ;;
4733esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004734TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004735TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4736
4737
Reid Spencer65c5d752006-11-05 17:08:18 +00004738# Check whether --enable-cbe-printf-a was given.
4739if test "${enable_cbe_printf_a+set}" = set; then
4740 enableval=$enable_cbe_printf_a;
4741else
4742 enableval=default
4743fi
4744
4745case "$enableval" in
4746 yes) ENABLE_CBE_PRINTF_A=1
4747 ;;
4748 no) ENABLE_CBE_PRINTF_A=0
4749 ;;
4750 default) ENABLE_CBE_PRINTF_A=1
4751 ;;
4752 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4753echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4755esac
4756
4757cat >>confdefs.h <<_ACEOF
4758#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4759_ACEOF
4760
4761
Reid Spencera773bd52006-08-04 18:18:08 +00004762
4763# Check whether --with-llvmgccdir was given.
4764if test "${with_llvmgccdir+set}" = set; then
4765 withval=$with_llvmgccdir;
4766else
4767 withval=default
4768fi
4769
4770case "$withval" in
4771 default) WITH_LLVMGCCDIR=default ;;
4772 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4773 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4774echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4775 { (exit 1); exit 1; }; } ;;
4776esac
4777
4778
4779# Check whether --with-extra-options was given.
4780if test "${with_extra_options+set}" = set; then
4781 withval=$with_extra_options;
4782else
4783 withval=default
4784fi
4785
4786case "$withval" in
4787 default) EXTRA_OPTIONS= ;;
4788 *) EXTRA_OPTIONS=$withval ;;
4789esac
4790EXTRA_OPTIONS=$EXTRA_OPTIONS
4791
4792
4793
4794ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4800echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4801# On Suns, sometimes $CPP names a directory.
4802if test -n "$CPP" && test -d "$CPP"; then
4803 CPP=
4804fi
4805if test -z "$CPP"; then
4806 if test "${ac_cv_prog_CPP+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809 # Double quotes because CPP needs to be expanded
4810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4811 do
4812 ac_preproc_ok=false
4813for ac_c_preproc_warn_flag in '' yes
4814do
4815 # Use a header file that comes with gcc, so configuring glibc
4816 # with a fresh cross-compiler works.
4817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818 # <limits.h> exists even on freestanding compilers.
4819 # On the NeXT, cc -E runs the code through the compiler's parser,
4820 # not just through cpp. "Syntax error" is here to catch this case.
4821 cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
4827#ifdef __STDC__
4828# include <limits.h>
4829#else
4830# include <assert.h>
4831#endif
4832 Syntax error
4833_ACEOF
4834if { (ac_try="$ac_cpp conftest.$ac_ext"
4835case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838esac
4839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_c_preproc_warn_flag
4849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4850 else
4851 ac_cpp_err=
4852 fi
4853else
4854 ac_cpp_err=yes
4855fi
4856if test -z "$ac_cpp_err"; then
4857 :
4858else
4859 echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 # Broken: fails on valid input.
4863continue
4864fi
4865
4866rm -f conftest.err conftest.$ac_ext
4867
4868 # OK, works on sane cases. Now check whether nonexistent headers
4869 # can be detected and how.
4870 cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876#include <ac_nonexistent.h>
4877_ACEOF
4878if { (ac_try="$ac_cpp conftest.$ac_ext"
4879case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882esac
4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null; then
4891 if test -s conftest.err; then
4892 ac_cpp_err=$ac_c_preproc_warn_flag
4893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4894 else
4895 ac_cpp_err=
4896 fi
4897else
4898 ac_cpp_err=yes
4899fi
4900if test -z "$ac_cpp_err"; then
4901 # Broken: success on invalid input.
4902continue
4903else
4904 echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 # Passes both tests.
4908ac_preproc_ok=:
4909break
4910fi
4911
4912rm -f conftest.err conftest.$ac_ext
4913
4914done
4915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916rm -f conftest.err conftest.$ac_ext
4917if $ac_preproc_ok; then
4918 break
4919fi
4920
4921 done
4922 ac_cv_prog_CPP=$CPP
4923
4924fi
4925 CPP=$ac_cv_prog_CPP
4926else
4927 ac_cv_prog_CPP=$CPP
4928fi
4929{ echo "$as_me:$LINENO: result: $CPP" >&5
4930echo "${ECHO_T}$CPP" >&6; }
4931ac_preproc_ok=false
4932for ac_c_preproc_warn_flag in '' yes
4933do
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946#ifdef __STDC__
4947# include <limits.h>
4948#else
4949# include <assert.h>
4950#endif
4951 Syntax error
4952_ACEOF
4953if { (ac_try="$ac_cpp conftest.$ac_ext"
4954case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957esac
4958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null; then
4966 if test -s conftest.err; then
4967 ac_cpp_err=$ac_c_preproc_warn_flag
4968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4969 else
4970 ac_cpp_err=
4971 fi
4972else
4973 ac_cpp_err=yes
4974fi
4975if test -z "$ac_cpp_err"; then
4976 :
4977else
4978 echo "$as_me: failed program was:" >&5
4979sed 's/^/| /' conftest.$ac_ext >&5
4980
4981 # Broken: fails on valid input.
4982continue
4983fi
4984
4985rm -f conftest.err conftest.$ac_ext
4986
4987 # OK, works on sane cases. Now check whether nonexistent headers
4988 # can be detected and how.
4989 cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
4995#include <ac_nonexistent.h>
4996_ACEOF
4997if { (ac_try="$ac_cpp conftest.$ac_ext"
4998case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001esac
5002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } >/dev/null; then
5010 if test -s conftest.err; then
5011 ac_cpp_err=$ac_c_preproc_warn_flag
5012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013 else
5014 ac_cpp_err=
5015 fi
5016else
5017 ac_cpp_err=yes
5018fi
5019if test -z "$ac_cpp_err"; then
5020 # Broken: success on invalid input.
5021continue
5022else
5023 echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 # Passes both tests.
5027ac_preproc_ok=:
5028break
5029fi
5030
5031rm -f conftest.err conftest.$ac_ext
5032
5033done
5034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035rm -f conftest.err conftest.$ac_ext
5036if $ac_preproc_ok; then
5037 :
5038else
5039 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5040See \`config.log' for more details." >&5
5041echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5042See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5044fi
5045
5046ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052ac_ext=c
5053ac_cpp='$CPP $CPPFLAGS'
5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057if test -n "$ac_tool_prefix"; then
5058 for ac_prog in gcc
5059 do
5060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064if test "${ac_cv_prog_CC+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067 if test -n "$CC"; then
5068 ac_cv_prog_CC="$CC" # Let the user override the test.
5069else
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081done
5082done
5083IFS=$as_save_IFS
5084
5085fi
5086fi
5087CC=$ac_cv_prog_CC
5088if test -n "$CC"; then
5089 { echo "$as_me:$LINENO: result: $CC" >&5
5090echo "${ECHO_T}$CC" >&6; }
5091else
5092 { echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6; }
5094fi
5095
5096
5097 test -n "$CC" && break
5098 done
5099fi
5100if test -z "$CC"; then
5101 ac_ct_CC=$CC
5102 for ac_prog in gcc
5103do
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105set dummy $ac_prog; ac_word=$2
5106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113else
5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115for as_dir in $PATH
5116do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_CC="$ac_prog"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125done
5126done
5127IFS=$as_save_IFS
5128
5129fi
5130fi
5131ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132if test -n "$ac_ct_CC"; then
5133 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5134echo "${ECHO_T}$ac_ct_CC" >&6; }
5135else
5136 { echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6; }
5138fi
5139
5140
5141 test -n "$ac_ct_CC" && break
5142done
5143
5144 if test "x$ac_ct_CC" = x; then
5145 CC=""
5146 else
5147 case $cross_compiling:$ac_tool_warned in
5148yes:)
5149{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5150whose name does not start with the host triplet. If you think this
5151configuration is useful to you, please write to autoconf@gnu.org." >&5
5152echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5153whose name does not start with the host triplet. If you think this
5154configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5155ac_tool_warned=yes ;;
5156esac
5157 CC=$ac_ct_CC
5158 fi
5159fi
5160
5161
5162test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5163See \`config.log' for more details." >&5
5164echo "$as_me: error: no acceptable C compiler found in \$PATH
5165See \`config.log' for more details." >&2;}
5166 { (exit 1); exit 1; }; }
5167
5168# Provide some information about the compiler.
5169echo "$as_me:$LINENO: checking for C compiler version" >&5
5170ac_compiler=`set X $ac_compile; echo $2`
5171{ (ac_try="$ac_compiler --version >&5"
5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_compiler --version >&5") 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }
5181{ (ac_try="$ac_compiler -v >&5"
5182case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5185esac
5186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_compiler -v >&5") 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }
5191{ (ac_try="$ac_compiler -V >&5"
5192case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compiler -V >&5") 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }
5201
5202{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5203echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5204if test "${ac_cv_c_compiler_gnu+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207 cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h. */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h. */
5213
5214int
5215main ()
5216{
5217#ifndef __GNUC__
5218 choke me
5219#endif
5220
5221 ;
5222 return 0;
5223}
5224_ACEOF
5225rm -f conftest.$ac_objext
5226if { (ac_try="$ac_compile"
5227case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230esac
5231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240 { (case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243esac
5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_try") 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest.$ac_objext'
5250 { (case "(($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_try") 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 ac_compiler_gnu=yes
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 ac_compiler_gnu=no
5265fi
5266
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268ac_cv_c_compiler_gnu=$ac_compiler_gnu
5269
5270fi
5271{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5272echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5273GCC=`test $ac_compiler_gnu = yes && echo yes`
5274ac_test_CFLAGS=${CFLAGS+set}
5275ac_save_CFLAGS=$CFLAGS
5276{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5277echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5278if test "${ac_cv_prog_cc_g+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281 ac_save_c_werror_flag=$ac_c_werror_flag
5282 ac_c_werror_flag=yes
5283 ac_cv_prog_cc_g=no
5284 CFLAGS="-g"
5285 cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h. */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h. */
5291
5292int
5293main ()
5294{
5295
5296 ;
5297 return 0;
5298}
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (ac_try="$ac_compile"
5302case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305esac
5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5315 { (case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318esac
5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_try") 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (case "(($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_try") 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_cv_prog_cc_g=yes
5335else
5336 echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 CFLAGS=""
5340 cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h. */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h. */
5346
5347int
5348main ()
5349{
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (ac_try="$ac_compile"
5357case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360esac
5361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5370 { (case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_try") 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (case "(($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_try") 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 :
5390else
5391 echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 ac_c_werror_flag=$ac_save_c_werror_flag
5395 CFLAGS="-g"
5396 cat >conftest.$ac_ext <<_ACEOF
5397/* confdefs.h. */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h. */
5402
5403int
5404main ()
5405{
5406
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411rm -f conftest.$ac_objext
5412if { (ac_try="$ac_compile"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_compile") 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (case "(($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_try") 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_prog_cc_g=yes
5446else
5447 echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450
5451fi
5452
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454fi
5455
5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5461fi
5462{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5468 CFLAGS="-g -O2"
5469 else
5470 CFLAGS="-g"
5471 fi
5472else
5473 if test "$GCC" = yes; then
5474 CFLAGS="-O2"
5475 else
5476 CFLAGS=
5477 fi
5478fi
5479{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481if test "${ac_cv_prog_cc_c89+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 ac_cv_prog_cc_c89=no
5485ac_save_CC=$CC
5486cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492#include <stdarg.h>
5493#include <stdio.h>
5494#include <sys/types.h>
5495#include <sys/stat.h>
5496/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5497struct buf { int x; };
5498FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499static char *e (p, i)
5500 char **p;
5501 int i;
5502{
5503 return p[i];
5504}
5505static char *f (char * (*g) (char **, int), char **p, ...)
5506{
5507 char *s;
5508 va_list v;
5509 va_start (v,p);
5510 s = g (p, va_arg (v,int));
5511 va_end (v);
5512 return s;
5513}
5514
5515/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5516 function prototypes and stuff, but not '\xHH' hex character constants.
5517 These don't provoke an error unfortunately, instead are silently treated
5518 as 'x'. The following induces an error, until -std is added to get
5519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5520 array size at least. It's necessary to write '\x00'==0 to get something
5521 that's true only with -std. */
5522int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5523
5524/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525 inside strings and character constants. */
5526#define FOO(x) 'x'
5527int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5528
5529int test (int i, double x);
5530struct s1 {int (*f) (int a);};
5531struct s2 {int (*f) (double a);};
5532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533int argc;
5534char **argv;
5535int
5536main ()
5537{
5538return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5539 ;
5540 return 0;
5541}
5542_ACEOF
5543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5545do
5546 CC="$ac_save_CC $ac_arg"
5547 rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5562 { (case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_try") 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (case "(($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_try") 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_prog_cc_c89=$ac_arg
5582else
5583 echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586
5587fi
5588
5589rm -f core conftest.err conftest.$ac_objext
5590 test "x$ac_cv_prog_cc_c89" != "xno" && break
5591done
5592rm -f conftest.$ac_ext
5593CC=$ac_save_CC
5594
5595fi
5596# AC_CACHE_VAL
5597case "x$ac_cv_prog_cc_c89" in
5598 x)
5599 { echo "$as_me:$LINENO: result: none needed" >&5
5600echo "${ECHO_T}none needed" >&6; } ;;
5601 xno)
5602 { echo "$as_me:$LINENO: result: unsupported" >&5
5603echo "${ECHO_T}unsupported" >&6; } ;;
5604 *)
5605 CC="$CC $ac_cv_prog_cc_c89"
5606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5607echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5608esac
5609
5610
5611ac_ext=c
5612ac_cpp='$CPP $CPPFLAGS'
5613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616
5617ac_ext=cpp
5618ac_cpp='$CXXCPP $CPPFLAGS'
5619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622if test -z "$CXX"; then
5623 if test -n "$CCC"; then
5624 CXX=$CCC
5625 else
5626 if test -n "$ac_tool_prefix"; then
5627 for ac_prog in g++
5628 do
5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633if test "${ac_cv_prog_CXX+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 if test -n "$CXX"; then
5637 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650done
5651done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656CXX=$ac_cv_prog_CXX
5657if test -n "$CXX"; then
5658 { echo "$as_me:$LINENO: result: $CXX" >&5
5659echo "${ECHO_T}$CXX" >&6; }
5660else
5661 { echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6; }
5663fi
5664
5665
5666 test -n "$CXX" && break
5667 done
5668fi
5669if test -z "$CXX"; then
5670 ac_ct_CXX=$CXX
5671 for ac_prog in g++
5672do
5673 # Extract the first word of "$ac_prog", so it can be a program name with args.
5674set dummy $ac_prog; ac_word=$2
5675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5677if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 if test -n "$ac_ct_CXX"; then
5681 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_ac_ct_CXX="$ac_prog"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5701if test -n "$ac_ct_CXX"; then
5702 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5703echo "${ECHO_T}$ac_ct_CXX" >&6; }
5704else
5705 { echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6; }
5707fi
5708
5709
5710 test -n "$ac_ct_CXX" && break
5711done
5712
5713 if test "x$ac_ct_CXX" = x; then
5714 CXX="g++"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717yes:)
5718{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5719whose name does not start with the host triplet. If you think this
5720configuration is useful to you, please write to autoconf@gnu.org." >&5
5721echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5722whose name does not start with the host triplet. If you think this
5723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5724ac_tool_warned=yes ;;
5725esac
5726 CXX=$ac_ct_CXX
5727 fi
5728fi
5729
5730 fi
5731fi
5732# Provide some information about the compiler.
5733echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5734ac_compiler=`set X $ac_compile; echo $2`
5735{ (ac_try="$ac_compiler --version >&5"
5736case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compiler --version >&5") 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }
5745{ (ac_try="$ac_compiler -v >&5"
5746case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749esac
5750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compiler -v >&5") 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }
5755{ (ac_try="$ac_compiler -V >&5"
5756case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_compiler -V >&5") 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }
5765
5766{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5767echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5768if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771 cat >conftest.$ac_ext <<_ACEOF
5772/* confdefs.h. */
5773_ACEOF
5774cat confdefs.h >>conftest.$ac_ext
5775cat >>conftest.$ac_ext <<_ACEOF
5776/* end confdefs.h. */
5777
5778int
5779main ()
5780{
5781#ifndef __GNUC__
5782 choke me
5783#endif
5784
5785 ;
5786 return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext
5790if { (ac_try="$ac_compile"
5791case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_compile") 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (case "(($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_try") 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_compiler_gnu=yes
5824else
5825 echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_compiler_gnu=no
5829fi
5830
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5833
5834fi
5835{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837GXX=`test $ac_compiler_gnu = yes && echo yes`
5838ac_test_CXXFLAGS=${CXXFLAGS+set}
5839ac_save_CXXFLAGS=$CXXFLAGS
5840{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842if test "${ac_cv_prog_cxx_g+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846 ac_cxx_werror_flag=yes
5847 ac_cv_prog_cxx_g=no
5848 CXXFLAGS="-g"
5849 cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855
5856int
5857main ()
5858{
5859
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (ac_try="$ac_compile"
5866case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869esac
5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5879 { (case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_try") 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (case "(($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_try") 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_prog_cxx_g=yes
5899else
5900 echo "$as_me: failed program was:" >&5
5901sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 CXXFLAGS=""
5904 cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h. */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h. */
5910
5911int
5912main ()
5913{
5914
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (ac_try="$ac_compile"
5921case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924esac
5925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5934 { (case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_try") 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (case "(($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_try") 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 :
5954else
5955 echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5959 CXXFLAGS="-g"
5960 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
5966
5967int
5968main ()
5969{
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (ac_try="$ac_compile"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($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_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_prog_cxx_g=yes
6010else
6011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014
6015fi
6016
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021fi
6022
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6025fi
6026{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6027echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6028if test "$ac_test_CXXFLAGS" = set; then
6029 CXXFLAGS=$ac_save_CXXFLAGS
6030elif test $ac_cv_prog_cxx_g = yes; then
6031 if test "$GXX" = yes; then
6032 CXXFLAGS="-g -O2"
6033 else
6034 CXXFLAGS="-g"
6035 fi
6036else
6037 if test "$GXX" = yes; then
6038 CXXFLAGS="-O2"
6039 else
6040 CXXFLAGS=
6041 fi
6042fi
6043ac_ext=c
6044ac_cpp='$CPP $CPPFLAGS'
6045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048
6049{ echo "$as_me:$LINENO: checking " >&5
6050echo $ECHO_N "checking ... $ECHO_C" >&6; }
6051if test "${ac_cv_has_flex+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054 for ac_prog in flex lex
6055do
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057set dummy $ac_prog; ac_word=$2
6058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060if test "${ac_cv_prog_LEX+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063 if test -n "$LEX"; then
6064 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_LEX="$ac_prog"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077done
6078done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083LEX=$ac_cv_prog_LEX
6084if test -n "$LEX"; then
6085 { echo "$as_me:$LINENO: result: $LEX" >&5
6086echo "${ECHO_T}$LEX" >&6; }
6087else
6088 { echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
6090fi
6091
6092
6093 test -n "$LEX" && break
6094done
6095test -n "$LEX" || LEX=":"
6096
6097if test -z "$LEXLIB"
6098then
6099 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6100echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6101if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 ac_check_lib_save_LIBS=$LIBS
6105LIBS="-lfl $LIBS"
6106cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h. */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h. */
6112
6113/* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6116#ifdef __cplusplus
6117extern "C"
6118#endif
6119char yywrap ();
6120int
6121main ()
6122{
6123return yywrap ();
6124 ;
6125 return 0;
6126}
6127_ACEOF
6128rm -f conftest.$ac_objext conftest$ac_exeext
6129if { (ac_try="$ac_link"
6130case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_link") 2>conftest.er1
6136 ac_status=$?
6137 grep -v '^ *+' conftest.er1 >conftest.err
6138 rm -f conftest.er1
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143 { (case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_try") 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (case "(($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_try") 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_lib_fl_yywrap=yes
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_cv_lib_fl_yywrap=no
6168fi
6169
6170rm -f core conftest.err conftest.$ac_objext \
6171 conftest$ac_exeext conftest.$ac_ext
6172LIBS=$ac_check_lib_save_LIBS
6173fi
6174{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6175echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6176if test $ac_cv_lib_fl_yywrap = yes; then
6177 LEXLIB="-lfl"
6178else
6179 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6180echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6181if test "${ac_cv_lib_l_yywrap+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184 ac_check_lib_save_LIBS=$LIBS
6185LIBS="-ll $LIBS"
6186cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h. */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h. */
6192
6193/* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199char yywrap ();
6200int
6201main ()
6202{
6203return yywrap ();
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext conftest$ac_exeext
6209if { (ac_try="$ac_link"
6210case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_link") 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (case "(($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_try") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_lib_l_yywrap=yes
6243else
6244 echo "$as_me: failed program was:" >&5
6245sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 ac_cv_lib_l_yywrap=no
6248fi
6249
6250rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6252LIBS=$ac_check_lib_save_LIBS
6253fi
6254{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6255echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6256if test $ac_cv_lib_l_yywrap = yes; then
6257 LEXLIB="-ll"
6258fi
6259
6260fi
6261
6262fi
6263
6264if test "x$LEX" != "x:"; then
6265 { echo "$as_me:$LINENO: checking lex output file root" >&5
6266echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6267if test "${ac_cv_prog_lex_root+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270 # The minimal lex program is just a single line: %%. But some broken lexes
6271# (Solaris, I think it was) want two %% lines, so accommodate them.
6272cat >conftest.l <<_ACEOF
6273%%
6274%%
6275_ACEOF
6276{ (ac_try="$LEX conftest.l"
6277case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$LEX conftest.l") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286if test -f lex.yy.c; then
6287 ac_cv_prog_lex_root=lex.yy
6288elif test -f lexyy.c; then
6289 ac_cv_prog_lex_root=lexyy
6290else
6291 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6292echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6293 { (exit 1); exit 1; }; }
6294fi
6295fi
6296{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6297echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6298rm -f conftest.l
6299LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6300
6301{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6302echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6303if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306 # POSIX says lex can declare yytext either as a pointer or an array; the
6307# default is implementation-dependent. Figure out which it is, since
6308# not all implementations provide the %pointer and %array declarations.
6309ac_cv_prog_lex_yytext_pointer=no
6310echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6311ac_save_LIBS=$LIBS
6312LIBS="$LIBS $LEXLIB"
6313cat >conftest.$ac_ext <<_ACEOF
6314`cat $LEX_OUTPUT_ROOT.c`
6315_ACEOF
6316rm -f conftest.$ac_objext conftest$ac_exeext
6317if { (ac_try="$ac_link"
6318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_link") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6331 { (case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334esac
6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_try") 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; } &&
6340 { ac_try='test -s conftest$ac_exeext'
6341 { (case "(($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_try") 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_prog_lex_yytext_pointer=yes
6351else
6352 echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355
6356fi
6357
6358rm -f core conftest.err conftest.$ac_objext \
6359 conftest$ac_exeext conftest.$ac_ext
6360LIBS=$ac_save_LIBS
6361rm -f "${LEX_OUTPUT_ROOT}.c"
6362
6363fi
6364{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6365echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6366if test $ac_cv_prog_lex_yytext_pointer = yes; then
6367
6368cat >>confdefs.h <<\_ACEOF
6369#define YYTEXT_POINTER 1
6370_ACEOF
6371
6372fi
6373
6374fi
6375
6376fi
6377{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6378echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6379if test "$LEX" != "flex"; then
6380 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6381echo "$as_me: error: flex not found but required" >&2;}
6382 { (exit 1); exit 1; }; }
6383else
6384 FLEX=flex
6385
6386fi
6387
6388{ echo "$as_me:$LINENO: checking " >&5
6389echo $ECHO_N "checking ... $ECHO_C" >&6; }
6390if test "${llvm_cv_has_bison+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393 for ac_prog in 'bison -y' byacc
6394do
6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
6396set dummy $ac_prog; ac_word=$2
6397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399if test "${ac_cv_prog_YACC+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402 if test -n "$YACC"; then
6403 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_YACC="$ac_prog"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416done
6417done
6418IFS=$as_save_IFS
6419
6420fi
6421fi
6422YACC=$ac_cv_prog_YACC
6423if test -n "$YACC"; then
6424 { echo "$as_me:$LINENO: result: $YACC" >&5
6425echo "${ECHO_T}$YACC" >&6; }
6426else
6427 { echo "$as_me:$LINENO: result: no" >&5
6428echo "${ECHO_T}no" >&6; }
6429fi
6430
6431
6432 test -n "$YACC" && break
6433done
6434test -n "$YACC" || YACC="yacc"
6435
6436fi
6437{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6438echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6439if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006440
6441 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6442echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006443else
6444 BISON=bison
6445
6446fi
6447
6448{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6449echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6450if test "${lt_cv_path_NM+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452else
6453 if test -n "$NM"; then
6454 # Let the user override the test.
6455 lt_cv_path_NM="$NM"
6456else
6457 lt_nm_to_check="${ac_tool_prefix}nm"
6458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6459 lt_nm_to_check="$lt_nm_to_check nm"
6460 fi
6461 for lt_tmp_nm in $lt_nm_to_check; do
6462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6464 IFS="$lt_save_ifs"
6465 test -z "$ac_dir" && ac_dir=.
6466 tmp_nm="$ac_dir/$lt_tmp_nm"
6467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6468 # Check to see if the nm accepts a BSD-compat flag.
6469 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6470 # nm: unknown option "B" ignored
6471 # Tru64's nm complains that /dev/null is an invalid object file
6472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6473 */dev/null* | *'Invalid file or object type'*)
6474 lt_cv_path_NM="$tmp_nm -B"
6475 break
6476 ;;
6477 *)
6478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6479 */dev/null*)
6480 lt_cv_path_NM="$tmp_nm -p"
6481 break
6482 ;;
6483 *)
6484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6485 continue # so that we can try to find one that supports BSD flags
6486 ;;
6487 esac
6488 ;;
6489 esac
6490 fi
6491 done
6492 IFS="$lt_save_ifs"
6493 done
6494 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6495fi
6496fi
6497{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6498echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6499NM="$lt_cv_path_NM"
6500
6501
6502
6503{ echo "$as_me:$LINENO: checking for GNU make" >&5
6504echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6505if test "${llvm_cv_gnu_make_command+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 llvm_cv_gnu_make_command=''
6509 for a in "$MAKE" make gmake gnumake ; do
6510 if test -z "$a" ; then continue ; fi ;
6511 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6512 then
6513 llvm_cv_gnu_make_command=$a ;
6514 break;
6515 fi
6516 done
6517fi
6518{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6519echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6520 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6521 ifGNUmake='' ;
6522 else
6523 ifGNUmake='#' ;
6524 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6525echo "${ECHO_T}\"Not found\"" >&6; };
6526 fi
6527
6528
6529{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6530echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6531LN_S=$as_ln_s
6532if test "$LN_S" = "ln -s"; then
6533 { echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6; }
6535else
6536 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6537echo "${ECHO_T}no, using $LN_S" >&6; }
6538fi
6539
6540# Extract the first word of "cmp", so it can be a program name with args.
6541set dummy cmp; ac_word=$2
6542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544if test "${ac_cv_path_CMP+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 case $CMP in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6550 ;;
6551 *)
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564done
6565IFS=$as_save_IFS
6566
6567 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6568 ;;
6569esac
6570fi
6571CMP=$ac_cv_path_CMP
6572if test -n "$CMP"; then
6573 { echo "$as_me:$LINENO: result: $CMP" >&5
6574echo "${ECHO_T}$CMP" >&6; }
6575else
6576 { echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6; }
6578fi
6579
6580
6581# Extract the first word of "cp", so it can be a program name with args.
6582set dummy cp; ac_word=$2
6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_path_CP+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 case $CP in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604done
6605done
6606IFS=$as_save_IFS
6607
6608 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6609 ;;
6610esac
6611fi
6612CP=$ac_cv_path_CP
6613if test -n "$CP"; then
6614 { echo "$as_me:$LINENO: result: $CP" >&5
6615echo "${ECHO_T}$CP" >&6; }
6616else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6; }
6619fi
6620
6621
6622# Extract the first word of "date", so it can be a program name with args.
6623set dummy date; ac_word=$2
6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_DATE+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 case $DATE in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6632 ;;
6633 *)
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645done
6646done
6647IFS=$as_save_IFS
6648
6649 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6650 ;;
6651esac
6652fi
6653DATE=$ac_cv_path_DATE
6654if test -n "$DATE"; then
6655 { echo "$as_me:$LINENO: result: $DATE" >&5
6656echo "${ECHO_T}$DATE" >&6; }
6657else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663# Extract the first word of "find", so it can be a program name with args.
6664set dummy find; ac_word=$2
6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667if test "${ac_cv_path_FIND+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670 case $FIND in
6671 [\\/]* | ?:[\\/]*)
6672 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6673 ;;
6674 *)
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687done
6688IFS=$as_save_IFS
6689
6690 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6691 ;;
6692esac
6693fi
6694FIND=$ac_cv_path_FIND
6695if test -n "$FIND"; then
6696 { echo "$as_me:$LINENO: result: $FIND" >&5
6697echo "${ECHO_T}$FIND" >&6; }
6698else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704# Extract the first word of "grep", so it can be a program name with args.
6705set dummy grep; ac_word=$2
6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_GREP+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 case $GREP in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727done
6728done
6729IFS=$as_save_IFS
6730
6731 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6732 ;;
6733esac
6734fi
6735GREP=$ac_cv_path_GREP
6736if test -n "$GREP"; then
6737 { echo "$as_me:$LINENO: result: $GREP" >&5
6738echo "${ECHO_T}$GREP" >&6; }
6739else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
6742fi
6743
6744
6745# Extract the first word of "mkdir", so it can be a program name with args.
6746set dummy mkdir; ac_word=$2
6747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749if test "${ac_cv_path_MKDIR+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752 case $MKDIR in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768done
6769done
6770IFS=$as_save_IFS
6771
6772 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6773 ;;
6774esac
6775fi
6776MKDIR=$ac_cv_path_MKDIR
6777if test -n "$MKDIR"; then
6778 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6779echo "${ECHO_T}$MKDIR" >&6; }
6780else
6781 { echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6; }
6783fi
6784
6785
6786# Extract the first word of "mv", so it can be a program name with args.
6787set dummy mv; ac_word=$2
6788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_path_MV+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793 case $MV in
6794 [\\/]* | ?:[\\/]*)
6795 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6796 ;;
6797 *)
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809done
6810done
6811IFS=$as_save_IFS
6812
6813 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6814 ;;
6815esac
6816fi
6817MV=$ac_cv_path_MV
6818if test -n "$MV"; then
6819 { echo "$as_me:$LINENO: result: $MV" >&5
6820echo "${ECHO_T}$MV" >&6; }
6821else
6822 { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
6824fi
6825
6826
6827if test -n "$ac_tool_prefix"; then
6828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6829set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_prog_RANLIB+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835 if test -n "$RANLIB"; then
6836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849done
6850done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855RANLIB=$ac_cv_prog_RANLIB
6856if test -n "$RANLIB"; then
6857 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6858echo "${ECHO_T}$RANLIB" >&6; }
6859else
6860 { echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6; }
6862fi
6863
6864
6865fi
6866if test -z "$ac_cv_prog_RANLIB"; then
6867 ac_ct_RANLIB=$RANLIB
6868 # Extract the first word of "ranlib", so it can be a program name with args.
6869set dummy ranlib; ac_word=$2
6870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874else
6875 if test -n "$ac_ct_RANLIB"; then
6876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_ac_ct_RANLIB="ranlib"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893fi
6894fi
6895ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6896if test -n "$ac_ct_RANLIB"; then
6897 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6898echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6899else
6900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
6902fi
6903
6904 if test "x$ac_ct_RANLIB" = x; then
6905 RANLIB=":"
6906 else
6907 case $cross_compiling:$ac_tool_warned in
6908yes:)
6909{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6910whose name does not start with the host triplet. If you think this
6911configuration is useful to you, please write to autoconf@gnu.org." >&5
6912echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6913whose name does not start with the host triplet. If you think this
6914configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917 RANLIB=$ac_ct_RANLIB
6918 fi
6919else
6920 RANLIB="$ac_cv_prog_RANLIB"
6921fi
6922
6923# Extract the first word of "rm", so it can be a program name with args.
6924set dummy rm; ac_word=$2
6925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927if test "${ac_cv_path_RM+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 case $RM in
6931 [\\/]* | ?:[\\/]*)
6932 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948IFS=$as_save_IFS
6949
6950 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6951 ;;
6952esac
6953fi
6954RM=$ac_cv_path_RM
6955if test -n "$RM"; then
6956 { echo "$as_me:$LINENO: result: $RM" >&5
6957echo "${ECHO_T}$RM" >&6; }
6958else
6959 { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
6961fi
6962
6963
6964# Extract the first word of "sed", so it can be a program name with args.
6965set dummy sed; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_SED+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 case $SED in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987done
6988done
6989IFS=$as_save_IFS
6990
6991 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6992 ;;
6993esac
6994fi
6995SED=$ac_cv_path_SED
6996if test -n "$SED"; then
6997 { echo "$as_me:$LINENO: result: $SED" >&5
6998echo "${ECHO_T}$SED" >&6; }
6999else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005# Extract the first word of "tar", so it can be a program name with args.
7006set dummy tar; ac_word=$2
7007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009if test "${ac_cv_path_TAR+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 case $TAR in
7013 [\\/]* | ?:[\\/]*)
7014 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7015 ;;
7016 *)
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028done
7029done
7030IFS=$as_save_IFS
7031
7032 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7033 ;;
7034esac
7035fi
7036TAR=$ac_cv_path_TAR
7037if test -n "$TAR"; then
7038 { echo "$as_me:$LINENO: result: $TAR" >&5
7039echo "${ECHO_T}$TAR" >&6; }
7040else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
7043fi
7044
7045
7046# Extract the first word of "pwd", so it can be a program name with args.
7047set dummy pwd; ac_word=$2
7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050if test "${ac_cv_path_BINPWD+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 case $BINPWD in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7056 ;;
7057 *)
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7074 ;;
7075esac
7076fi
7077BINPWD=$ac_cv_path_BINPWD
7078if test -n "$BINPWD"; then
7079 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7080echo "${ECHO_T}$BINPWD" >&6; }
7081else
7082 { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
7084fi
7085
7086
7087
7088# Extract the first word of "Graphviz", so it can be a program name with args.
7089set dummy Graphviz; ac_word=$2
7090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095 case $GRAPHVIZ in
7096 [\\/]* | ?:[\\/]*)
7097 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7098 ;;
7099 *)
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111done
7112done
7113IFS=$as_save_IFS
7114
7115 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7116 ;;
7117esac
7118fi
7119GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7120if test -n "$GRAPHVIZ"; then
7121 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7122echo "${ECHO_T}$GRAPHVIZ" >&6; }
7123else
7124 { echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6; }
7126fi
7127
7128
7129if test "$GRAPHVIZ" != "echo Graphviz" ; then
7130
7131cat >>confdefs.h <<\_ACEOF
7132#define HAVE_GRAPHVIZ 1
7133_ACEOF
7134
Jeff Cohen28783c32007-01-12 18:22:38 +00007135 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007136 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7137 fi
7138
7139cat >>confdefs.h <<_ACEOF
7140#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7141_ACEOF
7142
7143fi
7144# Extract the first word of "dot", so it can be a program name with args.
7145set dummy dot; ac_word=$2
7146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148if test "${ac_cv_path_DOT+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151 case $DOT in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7154 ;;
7155 *)
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168done
7169IFS=$as_save_IFS
7170
7171 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7172 ;;
7173esac
7174fi
7175DOT=$ac_cv_path_DOT
7176if test -n "$DOT"; then
7177 { echo "$as_me:$LINENO: result: $DOT" >&5
7178echo "${ECHO_T}$DOT" >&6; }
7179else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
7182fi
7183
7184
7185if test "$DOT" != "echo dot" ; then
7186
7187cat >>confdefs.h <<\_ACEOF
7188#define HAVE_DOT 1
7189_ACEOF
7190
Jeff Cohen28783c32007-01-12 18:22:38 +00007191 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007192 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7193 fi
7194
7195cat >>confdefs.h <<_ACEOF
7196#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7197_ACEOF
7198
7199fi
7200for ac_prog in gv gsview32
7201do
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203set dummy $ac_prog; ac_word=$2
7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_GV+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 case $GV in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229 ;;
7230esac
7231fi
7232GV=$ac_cv_path_GV
7233if test -n "$GV"; then
7234 { echo "$as_me:$LINENO: result: $GV" >&5
7235echo "${ECHO_T}$GV" >&6; }
7236else
7237 { echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6; }
7239fi
7240
7241
7242 test -n "$GV" && break
7243done
7244test -n "$GV" || GV="echo gv"
7245
7246if test "$GV" != "echo gv" ; then
7247
7248cat >>confdefs.h <<\_ACEOF
7249#define HAVE_GV 1
7250_ACEOF
7251
Jeff Cohen28783c32007-01-12 18:22:38 +00007252 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007253 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7254 fi
7255
7256cat >>confdefs.h <<_ACEOF
7257#define LLVM_PATH_GV "$GV${EXEEXT}"
7258_ACEOF
7259
7260fi
7261# Extract the first word of "dotty", so it can be a program name with args.
7262set dummy dotty; ac_word=$2
7263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265if test "${ac_cv_path_DOTTY+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268 case $DOTTY in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7271 ;;
7272 *)
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7289 ;;
7290esac
7291fi
7292DOTTY=$ac_cv_path_DOTTY
7293if test -n "$DOTTY"; then
7294 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7295echo "${ECHO_T}$DOTTY" >&6; }
7296else
7297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
7299fi
7300
7301
7302if test "$DOTTY" != "echo dotty" ; then
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define HAVE_DOTTY 1
7306_ACEOF
7307
Jeff Cohen28783c32007-01-12 18:22:38 +00007308 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007309 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7310 fi
7311
7312cat >>confdefs.h <<_ACEOF
7313#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7314_ACEOF
7315
7316fi
7317
7318
7319# Extract the first word of "perl", so it can be a program name with args.
7320set dummy perl; ac_word=$2
7321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323if test "${ac_cv_path_PERL+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 case $PERL in
7327 [\\/]* | ?:[\\/]*)
7328 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7329 ;;
7330 *)
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342done
7343done
7344IFS=$as_save_IFS
7345
7346 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7347 ;;
7348esac
7349fi
7350PERL=$ac_cv_path_PERL
7351if test -n "$PERL"; then
7352 { echo "$as_me:$LINENO: result: $PERL" >&5
7353echo "${ECHO_T}$PERL" >&6; }
7354else
7355 { echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6; }
7357fi
7358
7359
7360if test "$PERL" != "none"; then
7361 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7362echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7363 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7364 { echo "$as_me:$LINENO: result: yes" >&5
7365echo "${ECHO_T}yes" >&6; }
7366 else
7367 PERL=none
7368 { echo "$as_me:$LINENO: result: not found" >&5
7369echo "${ECHO_T}not found" >&6; }
7370 fi
7371fi
7372
7373
7374if test x"$PERL" = xnone; then
7375 HAVE_PERL=0
7376
Reid Spencer59807fa2007-05-17 18:11:03 +00007377 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7378echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7379 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007380else
7381 HAVE_PERL=1
7382
7383fi
7384
7385# Find a good install program. We prefer a C program (faster),
7386# so one script is as good as another. But avoid the broken or
7387# incompatible versions:
7388# SysV /etc/install, /usr/sbin/install
7389# SunOS /usr/etc/install
7390# IRIX /sbin/install
7391# AIX /bin/install
7392# AmigaOS /C/install, which installs bootblocks on floppy discs
7393# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7394# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7395# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7396# OS/2's system install, which has a completely different semantic
7397# ./install, which can be erroneously created by make from ./install.sh.
7398{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7399echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7400if test -z "$INSTALL"; then
7401if test "${ac_cv_path_install+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 # Account for people who put trailing slashes in PATH elements.
7410case $as_dir/ in
7411 ./ | .// | /cC/* | \
7412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7413 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7414 /usr/ucb/* ) ;;
7415 *)
7416 # OSF1 and SCO ODT 3.0 have their own names for install.
7417 # Don't use installbsd from OSF since it installs stuff as root
7418 # by default.
7419 for ac_prog in ginstall scoinst install; do
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7422 if test $ac_prog = install &&
7423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7424 # AIX install. It has an incompatible calling convention.
7425 :
7426 elif test $ac_prog = install &&
7427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7428 # program-specific install script used by HP pwplus--don't use.
7429 :
7430 else
7431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7432 break 3
7433 fi
7434 fi
7435 done
7436 done
7437 ;;
7438esac
7439done
7440IFS=$as_save_IFS
7441
7442
7443fi
7444 if test "${ac_cv_path_install+set}" = set; then
7445 INSTALL=$ac_cv_path_install
7446 else
7447 # As a last resort, use the slow shell script. Don't cache a
7448 # value for INSTALL within a source directory, because that will
7449 # break other packages using the cache if that directory is
7450 # removed, or if the value is a relative name.
7451 INSTALL=$ac_install_sh
7452 fi
7453fi
7454{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7455echo "${ECHO_T}$INSTALL" >&6; }
7456
7457# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7458# It thinks the first close brace ends the variable substitution.
7459test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7460
7461test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7462
7463test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7464
7465
7466# Extract the first word of "bzip2", so it can be a program name with args.
7467set dummy bzip2; ac_word=$2
7468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470if test "${ac_cv_path_BZIP2+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473 case $BZIP2 in
7474 [\\/]* | ?:[\\/]*)
7475 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7476 ;;
7477 *)
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489done
7490done
7491IFS=$as_save_IFS
7492
7493 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7494 ;;
7495esac
7496fi
7497BZIP2=$ac_cv_path_BZIP2
7498if test -n "$BZIP2"; then
7499 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7500echo "${ECHO_T}$BZIP2" >&6; }
7501else
7502 { echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6; }
7504fi
7505
7506
7507# Extract the first word of "doxygen", so it can be a program name with args.
7508set dummy doxygen; ac_word=$2
7509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511if test "${ac_cv_path_DOXYGEN+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514 case $DOXYGEN in
7515 [\\/]* | ?:[\\/]*)
7516 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7517 ;;
7518 *)
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530done
7531done
7532IFS=$as_save_IFS
7533
7534 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7535 ;;
7536esac
7537fi
7538DOXYGEN=$ac_cv_path_DOXYGEN
7539if test -n "$DOXYGEN"; then
7540 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7541echo "${ECHO_T}$DOXYGEN" >&6; }
7542else
7543 { echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6; }
7545fi
7546
7547
Reid Spencera773bd52006-08-04 18:18:08 +00007548# Extract the first word of "groff", so it can be a program name with args.
7549set dummy groff; ac_word=$2
7550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552if test "${ac_cv_path_GROFF+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 case $GROFF in
7556 [\\/]* | ?:[\\/]*)
7557 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7558 ;;
7559 *)
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7570 fi
7571done
7572done
7573IFS=$as_save_IFS
7574
7575 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7576 ;;
7577esac
7578fi
7579GROFF=$ac_cv_path_GROFF
7580if test -n "$GROFF"; then
7581 { echo "$as_me:$LINENO: result: $GROFF" >&5
7582echo "${ECHO_T}$GROFF" >&6; }
7583else
7584 { echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6; }
7586fi
7587
7588
7589# Extract the first word of "gzip", so it can be a program name with args.
7590set dummy gzip; ac_word=$2
7591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593if test "${ac_cv_path_GZIP+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596 case $GZIP in
7597 [\\/]* | ?:[\\/]*)
7598 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7599 ;;
7600 *)
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614IFS=$as_save_IFS
7615
7616 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7617 ;;
7618esac
7619fi
7620GZIP=$ac_cv_path_GZIP
7621if test -n "$GZIP"; then
7622 { echo "$as_me:$LINENO: result: $GZIP" >&5
7623echo "${ECHO_T}$GZIP" >&6; }
7624else
7625 { echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6; }
7627fi
7628
7629
7630# Extract the first word of "pod2html", so it can be a program name with args.
7631set dummy pod2html; ac_word=$2
7632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634if test "${ac_cv_path_POD2HTML+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637 case $POD2HTML in
7638 [\\/]* | ?:[\\/]*)
7639 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7640 ;;
7641 *)
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643for as_dir in $PATH
7644do
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7652 fi
7653done
7654done
7655IFS=$as_save_IFS
7656
7657 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7658 ;;
7659esac
7660fi
7661POD2HTML=$ac_cv_path_POD2HTML
7662if test -n "$POD2HTML"; then
7663 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7664echo "${ECHO_T}$POD2HTML" >&6; }
7665else
7666 { echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6; }
7668fi
7669
7670
7671# Extract the first word of "pod2man", so it can be a program name with args.
7672set dummy pod2man; ac_word=$2
7673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675if test "${ac_cv_path_POD2MAN+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678 case $POD2MAN in
7679 [\\/]* | ?:[\\/]*)
7680 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7681 ;;
7682 *)
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694done
7695done
7696IFS=$as_save_IFS
7697
7698 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7699 ;;
7700esac
7701fi
7702POD2MAN=$ac_cv_path_POD2MAN
7703if test -n "$POD2MAN"; then
7704 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7705echo "${ECHO_T}$POD2MAN" >&6; }
7706else
7707 { echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6; }
7709fi
7710
7711
7712# Extract the first word of "runtest", so it can be a program name with args.
7713set dummy runtest; ac_word=$2
7714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716if test "${ac_cv_path_RUNTEST+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 case $RUNTEST in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7722 ;;
7723 *)
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735done
7736done
7737IFS=$as_save_IFS
7738
7739 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7740 ;;
7741esac
7742fi
7743RUNTEST=$ac_cv_path_RUNTEST
7744if test -n "$RUNTEST"; then
7745 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7746echo "${ECHO_T}$RUNTEST" >&6; }
7747else
7748 { echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6; }
7750fi
7751
7752
7753
7754no_itcl=true
7755{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7756echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7757
7758# Check whether --with-tclinclude was given.
7759if test "${with_tclinclude+set}" = set; then
7760 withval=$with_tclinclude; with_tclinclude=${withval}
7761else
7762 with_tclinclude=''
7763fi
7764
7765if test "${ac_cv_path_tclsh+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else
7768
7769if test x"${with_tclinclude}" != x ; then
7770 if test -f ${with_tclinclude}/tclsh ; then
7771 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7772 elif test -f ${with_tclinclude}/src/tclsh ; then
7773 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7774 else
7775 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7776echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7777 { (exit 1); exit 1; }; }
7778 fi
7779fi
7780
7781if test x"${ac_cv_path_tclsh}" = x ; then
7782 { echo "$as_me:$LINENO: result: none" >&5
7783echo "${ECHO_T}none" >&6; }
7784 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
7785do
7786 # Extract the first word of "$ac_prog", so it can be a program name with args.
7787set dummy $ac_prog; ac_word=$2
7788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790if test "${ac_cv_path_TCLSH+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793 case $TCLSH in
7794 [\\/]* | ?:[\\/]*)
7795 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7796 ;;
7797 *)
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809done
7810done
7811IFS=$as_save_IFS
7812
7813 ;;
7814esac
7815fi
7816TCLSH=$ac_cv_path_TCLSH
7817if test -n "$TCLSH"; then
7818 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7819echo "${ECHO_T}$TCLSH" >&6; }
7820else
7821 { echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6; }
7823fi
7824
7825
7826 test -n "$TCLSH" && break
7827done
7828
7829 if test x"${TCLSH}" = x ; then
7830 ac_cv_path_tclsh='';
7831 else
7832 ac_cv_path_tclsh="${TCLSH}";
7833 fi
7834else
7835 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7836echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7837 TCLSH="${ac_cv_path_tclsh}"
7838
7839fi
7840
7841fi
7842
7843# Extract the first word of "zip", so it can be a program name with args.
7844set dummy zip; ac_word=$2
7845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847if test "${ac_cv_path_ZIP+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849else
7850 case $ZIP in
7851 [\\/]* | ?:[\\/]*)
7852 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7853 ;;
7854 *)
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866done
7867done
7868IFS=$as_save_IFS
7869
7870 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7871 ;;
7872esac
7873fi
7874ZIP=$ac_cv_path_ZIP
7875if test -n "$ZIP"; then
7876 { echo "$as_me:$LINENO: result: $ZIP" >&5
7877echo "${ECHO_T}$ZIP" >&6; }
7878else
7879 { echo "$as_me:$LINENO: result: no" >&5
7880echo "${ECHO_T}no" >&6; }
7881fi
7882
7883
7884
7885{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7886echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7887if test "${llvm_cv_link_use_r+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889else
7890 ac_ext=c
7891ac_cpp='$CPP $CPPFLAGS'
7892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896 oldcflags="$CFLAGS"
7897 CFLAGS="$CFLAGS -Wl,-R."
7898 cat >conftest.$ac_ext <<_ACEOF
7899/* confdefs.h. */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h. */
7904
7905int
7906main ()
7907{
7908int main() { return 0; }
7909 ;
7910 return 0;
7911}
7912_ACEOF
7913rm -f conftest.$ac_objext conftest$ac_exeext
7914if { (ac_try="$ac_link"
7915case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918esac
7919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_link") 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7928 { (case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7931esac
7932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_try") 2>&5
7934 ac_status=$?
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; } &&
7937 { ac_try='test -s conftest$ac_exeext'
7938 { (case "(($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_try") 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 llvm_cv_link_use_r=yes
7948else
7949 echo "$as_me: failed program was:" >&5
7950sed 's/^/| /' conftest.$ac_ext >&5
7951
7952 llvm_cv_link_use_r=no
7953fi
7954
7955rm -f core conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7957 CFLAGS="$oldcflags"
7958 ac_ext=c
7959ac_cpp='$CPP $CPPFLAGS'
7960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
7964
7965fi
7966{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7967echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7968if test "$llvm_cv_link_use_r" = yes ; then
7969
7970cat >>confdefs.h <<\_ACEOF
7971#define HAVE_LINK_R 1
7972_ACEOF
7973
7974 fi
7975
7976
7977
7978
7979{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7980echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7981if test "${ac_cv_c_const+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984 cat >conftest.$ac_ext <<_ACEOF
7985/* confdefs.h. */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h. */
7990
7991int
7992main ()
7993{
7994/* FIXME: Include the comments suggested by Paul. */
7995#ifndef __cplusplus
7996 /* Ultrix mips cc rejects this. */
7997 typedef int charset[2];
7998 const charset x;
7999 /* SunOS 4.1.1 cc rejects this. */
8000 char const *const *ccp;
8001 char **p;
8002 /* NEC SVR4.0.2 mips cc rejects this. */
8003 struct point {int x, y;};
8004 static struct point const zero = {0,0};
8005 /* AIX XL C 1.02.0.0 rejects this.
8006 It does not let you subtract one const X* pointer from another in
8007 an arm of an if-expression whose if-part is not a constant
8008 expression */
8009 const char *g = "string";
8010 ccp = &g + (g ? g-g : 0);
8011 /* HPUX 7.0 cc rejects these. */
8012 ++ccp;
8013 p = (char**) ccp;
8014 ccp = (char const *const *) p;
8015 { /* SCO 3.2v4 cc rejects this. */
8016 char *t;
8017 char const *s = 0 ? (char *) 0 : (char const *) 0;
8018
8019 *t++ = 0;
8020 if (s) return 0;
8021 }
8022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8023 int x[] = {25, 17};
8024 const int *foo = &x[0];
8025 ++foo;
8026 }
8027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8028 typedef const int *iptr;
8029 iptr p = 0;
8030 ++p;
8031 }
8032 { /* AIX XL C 1.02.0.0 rejects this saying
8033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8034 struct s { int j; const int *ap[3]; };
8035 struct s *b; b->j = 5;
8036 }
8037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8038 const int foo = 10;
8039 if (!foo) return 0;
8040 }
8041 return !x[0] && !zero.x;
8042#endif
8043
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext
8049if { (ac_try="$ac_compile"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (case "(($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_try") 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_c_const=yes
8083else
8084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 ac_cv_c_const=no
8088fi
8089
8090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091fi
8092{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8093echo "${ECHO_T}$ac_cv_c_const" >&6; }
8094if test $ac_cv_c_const = no; then
8095
8096cat >>confdefs.h <<\_ACEOF
8097#define const
8098_ACEOF
8099
8100fi
8101
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008102
8103
8104
8105
8106
8107ac_header_dirent=no
8108for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8109 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008110{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8111echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
8121#include <sys/types.h>
8122#include <$ac_hdr>
8123
8124int
8125main ()
8126{
8127if ((DIR *) 0)
8128return 0;
8129 ;
8130 return 0;
8131}
8132_ACEOF
8133rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008134if { (ac_try="$ac_compile"
8135case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138esac
8139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8148 { (case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151esac
8152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008158 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 eval "$as_ac_Header=yes"
8168else
8169 echo "$as_me: failed program was:" >&5
8170sed 's/^/| /' conftest.$ac_ext >&5
8171
Reid Spencera773bd52006-08-04 18:18:08 +00008172 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008173fi
Reid Spencera773bd52006-08-04 18:18:08 +00008174
8175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008176fi
Reid Spencera773bd52006-08-04 18:18:08 +00008177ac_res=`eval echo '${'$as_ac_Header'}'`
8178 { echo "$as_me:$LINENO: result: $ac_res" >&5
8179echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008180if test `eval echo '${'$as_ac_Header'}'` = yes; then
8181 cat >>confdefs.h <<_ACEOF
8182#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8183_ACEOF
8184
8185ac_header_dirent=$ac_hdr; break
8186fi
8187
8188done
8189# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8190if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008191 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8192echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008193if test "${ac_cv_search_opendir+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008197cat >conftest.$ac_ext <<_ACEOF
8198/* confdefs.h. */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h. */
8203
Reid Spencera773bd52006-08-04 18:18:08 +00008204/* Override any GCC internal prototype to avoid an error.
8205 Use char because int might match the return type of a GCC
8206 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008207#ifdef __cplusplus
8208extern "C"
8209#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008210char opendir ();
8211int
8212main ()
8213{
Reid Spencera773bd52006-08-04 18:18:08 +00008214return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008215 ;
8216 return 0;
8217}
8218_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008219for ac_lib in '' dir; do
8220 if test -z "$ac_lib"; then
8221 ac_res="none required"
8222 else
8223 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008225 fi
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227if { (ac_try="$ac_link"
8228case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231esac
8232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8241 { (case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244esac
8245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008251 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008260 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008261else
8262 echo "$as_me: failed program was:" >&5
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008265
8266fi
8267
Reid Spencera773bd52006-08-04 18:18:08 +00008268rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext
8270 if test "${ac_cv_search_opendir+set}" = set; then
8271 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008272fi
John Criswell7a73b802003-06-30 21:59:07 +00008273done
Reid Spencera773bd52006-08-04 18:18:08 +00008274if test "${ac_cv_search_opendir+set}" = set; then
8275 :
8276else
8277 ac_cv_search_opendir=no
8278fi
8279rm conftest.$ac_ext
8280LIBS=$ac_func_search_save_LIBS
8281fi
8282{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8283echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8284ac_res=$ac_cv_search_opendir
8285if test "$ac_res" != no; then
8286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008287
Reid Spencera773bd52006-08-04 18:18:08 +00008288fi
8289
8290else
8291 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8292echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8293if test "${ac_cv_search_opendir+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296 ac_func_search_save_LIBS=$LIBS
8297cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
8303
8304/* Override any GCC internal prototype to avoid an error.
8305 Use char because int might match the return type of a GCC
8306 builtin and then its argument prototype would still apply. */
8307#ifdef __cplusplus
8308extern "C"
8309#endif
8310char opendir ();
8311int
8312main ()
8313{
8314return opendir ();
8315 ;
8316 return 0;
8317}
8318_ACEOF
8319for ac_lib in '' x; do
8320 if test -z "$ac_lib"; then
8321 ac_res="none required"
8322 else
8323 ac_res=-l$ac_lib
8324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8325 fi
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327if { (ac_try="$ac_link"
8328case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_link") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8344esac
8345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (case "(($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_try") 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_cv_search_opendir=$ac_res
8361else
8362 echo "$as_me: failed program was:" >&5
8363sed 's/^/| /' conftest.$ac_ext >&5
8364
8365
8366fi
8367
8368rm -f core conftest.err conftest.$ac_objext \
8369 conftest$ac_exeext
8370 if test "${ac_cv_search_opendir+set}" = set; then
8371 break
8372fi
8373done
8374if test "${ac_cv_search_opendir+set}" = set; then
8375 :
8376else
8377 ac_cv_search_opendir=no
8378fi
8379rm conftest.$ac_ext
8380LIBS=$ac_func_search_save_LIBS
8381fi
8382{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8383echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8384ac_res=$ac_cv_search_opendir
8385if test "$ac_res" != no; then
8386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8387
8388fi
8389
8390fi
John Criswell7a73b802003-06-30 21:59:07 +00008391
8392
8393for ac_header in dlfcn.h
8394do
8395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008400 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008401fi
Reid Spencera773bd52006-08-04 18:18:08 +00008402ac_res=`eval echo '${'$as_ac_Header'}'`
8403 { echo "$as_me:$LINENO: result: $ac_res" >&5
8404echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008405else
Brian Gaeke0a621332004-09-08 20:38:05 +00008406 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008407{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008409cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008410/* confdefs.h. */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008415$ac_includes_default
8416#include <$ac_header>
8417_ACEOF
8418rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008419if { (ac_try="$ac_compile"
8420case "(($ac_try" in
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8423esac
8424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008443 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008452 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008453else
8454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008455sed 's/^/| /' conftest.$ac_ext >&5
8456
Reid Spencera773bd52006-08-04 18:18:08 +00008457 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008458fi
Reid Spencera773bd52006-08-04 18:18:08 +00008459
8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008463
8464# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008465{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008467cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008468/* confdefs.h. */
8469_ACEOF
8470cat confdefs.h >>conftest.$ac_ext
8471cat >>conftest.$ac_ext <<_ACEOF
8472/* end confdefs.h. */
8473#include <$ac_header>
8474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008475if { (ac_try="$ac_cpp conftest.$ac_ext"
8476case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } >/dev/null; then
8488 if test -s conftest.err; then
8489 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008491 else
8492 ac_cpp_err=
8493 fi
8494else
8495 ac_cpp_err=yes
8496fi
8497if test -z "$ac_cpp_err"; then
8498 ac_header_preproc=yes
8499else
8500 echo "$as_me: failed program was:" >&5
8501sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_header_preproc=no
8504fi
Reid Spencera773bd52006-08-04 18:18:08 +00008505
Brian Gaeke0a621332004-09-08 20:38:05 +00008506rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008507{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8508echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008509
8510# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8512 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8517 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008518 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008519 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8523echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8527echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008532 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008533## ----------------------------------- ##
8534## Report this to llvmbugs@cs.uiuc.edu ##
8535## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008536_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008537 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008538 ;;
8539esac
Reid Spencera773bd52006-08-04 18:18:08 +00008540{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008545 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008546fi
Reid Spencera773bd52006-08-04 18:18:08 +00008547ac_res=`eval echo '${'$as_ac_Header'}'`
8548 { echo "$as_me:$LINENO: result: $ac_res" >&5
8549echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008550
8551fi
John Criswell7a73b802003-06-30 21:59:07 +00008552if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555_ACEOF
8556
8557fi
8558
8559done
8560
Reid Spencera773bd52006-08-04 18:18:08 +00008561# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008562if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008563 enableval=$enable_ltdl_install;
8564fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008565
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008566
8567
8568
8569if test x"${enable_ltdl_install-no}" != xno; then
8570 INSTALL_LTDL_TRUE=
8571 INSTALL_LTDL_FALSE='#'
8572else
8573 INSTALL_LTDL_TRUE='#'
8574 INSTALL_LTDL_FALSE=
8575fi
8576
8577
8578
8579if test x"${enable_ltdl_convenience-no}" != xno; then
8580 CONVENIENCE_LTDL_TRUE=
8581 CONVENIENCE_LTDL_FALSE='#'
8582else
8583 CONVENIENCE_LTDL_TRUE='#'
8584 CONVENIENCE_LTDL_FALSE=
8585fi
8586
8587
Reid Spencera773bd52006-08-04 18:18:08 +00008588{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8589echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008590library_names_spec=
8591libname_spec='lib$name'
8592soname_spec=
8593shrext_cmds=".so"
8594postinstall_cmds=
8595postuninstall_cmds=
8596finish_cmds=
8597finish_eval=
8598shlibpath_var=
8599shlibpath_overrides_runpath=unknown
8600version_type=none
8601dynamic_linker="$host_os ld.so"
8602sys_lib_dlsearch_path_spec="/lib /usr/lib"
8603if test "$GCC" = yes; then
8604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8605 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8606 # if the path contains ";" then we assume it to be the separator
8607 # otherwise default to the standard path separator (i.e. ":") - it is
8608 # assumed that no part of a normal pathname contains ";" but that should
8609 # okay in the real world where ";" in dirpaths is itself problematic.
8610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8611 else
8612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8613 fi
8614else
8615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8616fi
8617need_lib_prefix=unknown
8618hardcode_into_libs=no
8619
8620# when you set need_version to no, make sure it does not cause -set_version
8621# flags to be left without arguments
8622need_version=unknown
8623
8624case $host_os in
8625aix3*)
8626 version_type=linux
8627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8628 shlibpath_var=LIBPATH
8629
8630 # AIX 3 has no versioning support, so we append a major version to the name.
8631 soname_spec='${libname}${release}${shared_ext}$major'
8632 ;;
8633
8634aix4* | aix5*)
8635 version_type=linux
8636 need_lib_prefix=no
8637 need_version=no
8638 hardcode_into_libs=yes
8639 if test "$host_cpu" = ia64; then
8640 # AIX 5 supports IA64
8641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8642 shlibpath_var=LD_LIBRARY_PATH
8643 else
8644 # With GCC up to 2.95.x, collect2 would create an import file
8645 # for dependence libraries. The import file would start with
8646 # the line `#! .'. This would cause the generated library to
8647 # depend on `.', always an invalid library. This was fixed in
8648 # development snapshots of GCC prior to 3.0.
8649 case $host_os in
8650 aix4 | aix4.[01] | aix4.[01].*)
8651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8652 echo ' yes '
8653 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8654 :
8655 else
8656 can_build_shared=no
8657 fi
8658 ;;
8659 esac
8660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8661 # soname into executable. Probably we can add versioning support to
8662 # collect2, so additional links can be useful in future.
8663 if test "$aix_use_runtimelinking" = yes; then
8664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8665 # instead of lib<name>.a to let people know that these are not
8666 # typical AIX shared libraries.
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668 else
8669 # We preserve .a as extension for shared libraries through AIX4.2
8670 # and later when we are not doing run time linking.
8671 library_names_spec='${libname}${release}.a $libname.a'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 fi
8674 shlibpath_var=LIBPATH
8675 fi
8676 ;;
8677
8678amigaos*)
8679 library_names_spec='$libname.ixlibrary $libname.a'
8680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8681 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'
8682 ;;
8683
8684beos*)
8685 library_names_spec='${libname}${shared_ext}'
8686 dynamic_linker="$host_os ld.so"
8687 shlibpath_var=LIBRARY_PATH
8688 ;;
8689
8690bsdi[45]*)
8691 version_type=linux
8692 need_version=no
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694 soname_spec='${libname}${release}${shared_ext}$major'
8695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8696 shlibpath_var=LD_LIBRARY_PATH
8697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8699 # the default ld.so.conf also contains /usr/contrib/lib and
8700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8701 # libtool to hard-code these into programs
8702 ;;
8703
8704cygwin* | mingw* | pw32*)
8705 version_type=windows
8706 shrext_cmds=".dll"
8707 need_version=no
8708 need_lib_prefix=no
8709
8710 case $GCC,$host_os in
8711 yes,cygwin* | yes,mingw* | yes,pw32*)
8712 library_names_spec='$libname.dll.a'
8713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8714 postinstall_cmds='base_file=`basename \${file}`~
8715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8716 dldir=$destdir/`dirname \$dlpath`~
8717 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008718 $install_prog $dir/$dlname \$dldir/$dlname~
8719 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8721 dlpath=$dir/\$dldll~
8722 $rm \$dlpath'
8723 shlibpath_overrides_runpath=yes
8724
8725 case $host_os in
8726 cygwin*)
8727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8730 ;;
8731 mingw*)
8732 # MinGW DLLs use traditional 'lib' prefix
8733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8735 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8736 # It is most probably a Windows format PATH printed by
8737 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8738 # path with ; separators, and with drive letters. We can handle the
8739 # drive letters (cygwin fileutils understands them), so leave them,
8740 # especially as we might pass files found there to a mingw objdump,
8741 # which wouldn't understand a cygwinified path. Ahh.
8742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8743 else
8744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8745 fi
8746 ;;
8747 pw32*)
8748 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008749 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 +00008750 ;;
8751 esac
8752 ;;
8753
8754 *)
8755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8756 ;;
8757 esac
8758 dynamic_linker='Win32 ld.exe'
8759 # FIXME: first we should search . and the directory the executable is in
8760 shlibpath_var=PATH
8761 ;;
8762
8763darwin* | rhapsody*)
8764 dynamic_linker="$host_os dyld"
8765 version_type=darwin
8766 need_lib_prefix=no
8767 need_version=no
8768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8769 soname_spec='${libname}${release}${major}$shared_ext'
8770 shlibpath_overrides_runpath=yes
8771 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008772 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8774 if test "$GCC" = yes; then
8775 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"`
8776 else
8777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8778 fi
8779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8780 ;;
8781
8782dgux*)
8783 version_type=linux
8784 need_lib_prefix=no
8785 need_version=no
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 shlibpath_var=LD_LIBRARY_PATH
8789 ;;
8790
8791freebsd1*)
8792 dynamic_linker=no
8793 ;;
8794
8795kfreebsd*-gnu)
8796 version_type=linux
8797 need_lib_prefix=no
8798 need_version=no
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 shlibpath_var=LD_LIBRARY_PATH
8802 shlibpath_overrides_runpath=no
8803 hardcode_into_libs=yes
8804 dynamic_linker='GNU ld.so'
8805 ;;
8806
Reid Spencera773bd52006-08-04 18:18:08 +00008807freebsd* | dragonfly*)
8808 # DragonFly does not have aout. When/if they implement a new
8809 # versioning mechanism, adjust this.
8810 if test -x /usr/bin/objformat; then
8811 objformat=`/usr/bin/objformat`
8812 else
8813 case $host_os in
8814 freebsd[123]*) objformat=aout ;;
8815 *) objformat=elf ;;
8816 esac
8817 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008818 version_type=freebsd-$objformat
8819 case $version_type in
8820 freebsd-elf*)
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8822 need_version=no
8823 need_lib_prefix=no
8824 ;;
8825 freebsd-*)
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8827 need_version=yes
8828 ;;
8829 esac
8830 shlibpath_var=LD_LIBRARY_PATH
8831 case $host_os in
8832 freebsd2*)
8833 shlibpath_overrides_runpath=yes
8834 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008835 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8838 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8843 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008844 freebsd*) # from 4.6 on
8845 shlibpath_overrides_runpath=yes
8846 hardcode_into_libs=yes
8847 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008848 esac
8849 ;;
8850
8851gnu*)
8852 version_type=linux
8853 need_lib_prefix=no
8854 need_version=no
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 hardcode_into_libs=yes
8859 ;;
8860
8861hpux9* | hpux10* | hpux11*)
8862 # Give a soname corresponding to the major version so that dld.sl refuses to
8863 # link against other versions.
8864 version_type=sunos
8865 need_lib_prefix=no
8866 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008867 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008868 ia64*)
8869 shrext_cmds='.so'
8870 hardcode_into_libs=yes
8871 dynamic_linker="$host_os dld.so"
8872 shlibpath_var=LD_LIBRARY_PATH
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 if test "X$HPUX_IA64_MODE" = X32; then
8877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8878 else
8879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8880 fi
8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882 ;;
8883 hppa*64*)
8884 shrext_cmds='.sl'
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.sl"
8887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893 ;;
8894 *)
8895 shrext_cmds='.sl'
8896 dynamic_linker="$host_os dld.sl"
8897 shlibpath_var=SHLIB_PATH
8898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 ;;
8902 esac
8903 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8904 postinstall_cmds='chmod 555 $lib'
8905 ;;
8906
Reid Spencera773bd52006-08-04 18:18:08 +00008907interix3*)
8908 version_type=linux
8909 need_lib_prefix=no
8910 need_version=no
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8917 ;;
8918
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008919irix5* | irix6* | nonstopux*)
8920 case $host_os in
8921 nonstopux*) version_type=nonstopux ;;
8922 *)
8923 if test "$lt_cv_prog_gnu_ld" = yes; then
8924 version_type=linux
8925 else
8926 version_type=irix
8927 fi ;;
8928 esac
8929 need_lib_prefix=no
8930 need_version=no
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8933 case $host_os in
8934 irix5* | nonstopux*)
8935 libsuff= shlibsuff=
8936 ;;
8937 *)
8938 case $LD in # libtool.m4 will add one of these switches to LD
8939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8940 libsuff= shlibsuff= libmagic=32-bit;;
8941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8942 libsuff=32 shlibsuff=N32 libmagic=N32;;
8943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8945 *) libsuff= shlibsuff= libmagic=never-match;;
8946 esac
8947 ;;
8948 esac
8949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8950 shlibpath_overrides_runpath=no
8951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8953 hardcode_into_libs=yes
8954 ;;
8955
8956# No shared lib support for Linux oldld, aout, or coff.
8957linux*oldld* | linux*aout* | linux*coff*)
8958 dynamic_linker=no
8959 ;;
8960
8961# This must be Linux ELF.
8962linux*)
8963 version_type=linux
8964 need_lib_prefix=no
8965 need_version=no
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=no
8971 # This implies no fast_install, which is unacceptable.
8972 # Some rework will be needed to allow for fast_install
8973 # before this can be enabled.
8974 hardcode_into_libs=yes
8975
8976 # Append ld.so.conf contents to the search path
8977 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008978 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 +00008979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8980 fi
8981
8982 # We used to test for /lib/ld.so.1 and disable shared libraries on
8983 # powerpc, because MkLinux only supported shared libraries with the
8984 # GNU dynamic linker. Since this was broken with cross compilers,
8985 # most powerpc-linux boxes support dynamic linking these days and
8986 # people can always --disable-shared, the test was removed, and we
8987 # assume the GNU/Linux dynamic linker is in use.
8988 dynamic_linker='GNU/Linux ld.so'
8989 ;;
8990
8991knetbsd*-gnu)
8992 version_type=linux
8993 need_lib_prefix=no
8994 need_version=no
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 shlibpath_var=LD_LIBRARY_PATH
8998 shlibpath_overrides_runpath=no
8999 hardcode_into_libs=yes
9000 dynamic_linker='GNU ld.so'
9001 ;;
9002
9003netbsd*)
9004 version_type=sunos
9005 need_lib_prefix=no
9006 need_version=no
9007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9010 dynamic_linker='NetBSD (a.out) ld.so'
9011 else
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 dynamic_linker='NetBSD ld.elf_so'
9015 fi
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9019 ;;
9020
9021newsos6)
9022 version_type=linux
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes
9026 ;;
9027
9028nto-qnx*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9036 ;;
9037
9038openbsd*)
9039 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009040 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009041 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9043 case $host_os in
9044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9045 *) need_version=no ;;
9046 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9051 case $host_os in
9052 openbsd2.[89] | openbsd2.[89].*)
9053 shlibpath_overrides_runpath=no
9054 ;;
9055 *)
9056 shlibpath_overrides_runpath=yes
9057 ;;
9058 esac
9059 else
9060 shlibpath_overrides_runpath=yes
9061 fi
9062 ;;
9063
9064os2*)
9065 libname_spec='$name'
9066 shrext_cmds=".dll"
9067 need_lib_prefix=no
9068 library_names_spec='$libname${shared_ext} $libname.a'
9069 dynamic_linker='OS/2 ld.exe'
9070 shlibpath_var=LIBPATH
9071 ;;
9072
9073osf3* | osf4* | osf5*)
9074 version_type=osf
9075 need_lib_prefix=no
9076 need_version=no
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9082 ;;
9083
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084solaris*)
9085 version_type=linux
9086 need_lib_prefix=no
9087 need_version=no
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=yes
9092 hardcode_into_libs=yes
9093 # ldd complains unless libraries are executable
9094 postinstall_cmds='chmod +x $lib'
9095 ;;
9096
9097sunos4*)
9098 version_type=sunos
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=yes
9103 if test "$with_gnu_ld" = yes; then
9104 need_lib_prefix=no
9105 fi
9106 need_version=yes
9107 ;;
9108
Reid Spencera773bd52006-08-04 18:18:08 +00009109sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009110 version_type=linux
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 case $host_vendor in
9115 sni)
9116 shlibpath_overrides_runpath=no
9117 need_lib_prefix=no
9118 export_dynamic_flag_spec='${wl}-Blargedynsym'
9119 runpath_var=LD_RUN_PATH
9120 ;;
9121 siemens)
9122 need_lib_prefix=no
9123 ;;
9124 motorola)
9125 need_lib_prefix=no
9126 need_version=no
9127 shlibpath_overrides_runpath=no
9128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9129 ;;
9130 esac
9131 ;;
9132
9133sysv4*MP*)
9134 if test -d /usr/nec ;then
9135 version_type=linux
9136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9137 soname_spec='$libname${shared_ext}.$major'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 fi
9140 ;;
9141
Reid Spencera773bd52006-08-04 18:18:08 +00009142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9143 version_type=freebsd-elf
9144 need_lib_prefix=no
9145 need_version=no
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 hardcode_into_libs=yes
9150 if test "$with_gnu_ld" = yes; then
9151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9152 shlibpath_overrides_runpath=no
9153 else
9154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9155 shlibpath_overrides_runpath=yes
9156 case $host_os in
9157 sco3.2v5*)
9158 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9159 ;;
9160 esac
9161 fi
9162 sys_lib_dlsearch_path_spec='/usr/lib'
9163 ;;
9164
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165uts4*)
9166 version_type=linux
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 ;;
9171
9172*)
9173 dynamic_linker=no
9174 ;;
9175esac
Reid Spencera773bd52006-08-04 18:18:08 +00009176{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9177echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009178test "$dynamic_linker" = no && can_build_shared=no
9179
Reid Spencera773bd52006-08-04 18:18:08 +00009180variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9181if test "$GCC" = yes; then
9182 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9183fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009184
Reid Spencera773bd52006-08-04 18:18:08 +00009185
9186{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9187echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009188if test "${libltdl_cv_shlibext+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
9191
9192module=yes
9193eval libltdl_cv_shlibext=$shrext_cmds
9194
9195fi
Reid Spencera773bd52006-08-04 18:18:08 +00009196{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9197echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198if test -n "$libltdl_cv_shlibext"; then
9199
9200cat >>confdefs.h <<_ACEOF
9201#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9202_ACEOF
9203
9204fi
9205
9206
Reid Spencera773bd52006-08-04 18:18:08 +00009207{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9208echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009209if test "${libltdl_cv_shlibpath_var+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
9212 libltdl_cv_shlibpath_var="$shlibpath_var"
9213fi
Reid Spencera773bd52006-08-04 18:18:08 +00009214{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9215echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009216if test -n "$libltdl_cv_shlibpath_var"; then
9217
9218cat >>confdefs.h <<_ACEOF
9219#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9220_ACEOF
9221
9222fi
9223
9224
Reid Spencera773bd52006-08-04 18:18:08 +00009225{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9226echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227if test "${libltdl_cv_sys_search_path+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9229else
9230 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9231fi
Reid Spencera773bd52006-08-04 18:18:08 +00009232{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9233echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009234if test -n "$libltdl_cv_sys_search_path"; then
9235 sys_search_path=
9236 for dir in $libltdl_cv_sys_search_path; do
9237 if test -z "$sys_search_path"; then
9238 sys_search_path="$dir"
9239 else
9240 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9241 fi
9242 done
9243
9244cat >>confdefs.h <<_ACEOF
9245#define LTDL_SYSSEARCHPATH "$sys_search_path"
9246_ACEOF
9247
9248fi
9249
Reid Spencera773bd52006-08-04 18:18:08 +00009250{ echo "$as_me:$LINENO: checking for objdir" >&5
9251echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009252if test "${libltdl_cv_objdir+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254else
9255 libltdl_cv_objdir="$objdir"
9256 if test -n "$objdir"; then
9257 :
9258 else
9259 rm -f .libs 2>/dev/null
9260 mkdir .libs 2>/dev/null
9261 if test -d .libs; then
9262 libltdl_cv_objdir=.libs
9263 else
9264 # MS-DOS does not allow filenames that begin with a dot.
9265 libltdl_cv_objdir=_libs
9266 fi
9267 rmdir .libs 2>/dev/null
9268 fi
9269
9270fi
Reid Spencera773bd52006-08-04 18:18:08 +00009271{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9272echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009273
9274cat >>confdefs.h <<_ACEOF
9275#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9276_ACEOF
9277
9278
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279
9280
9281
9282
9283# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009284{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9285echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289
9290# These are sane defaults that work on at least a few old systems.
9291# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9292
9293# Character class describing NM global symbol codes.
9294symcode='[BCDEGRST]'
9295
9296# Regexp to match symbols that can be accessed directly from C.
9297sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9298
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299# Transform an extracted symbol line into a proper C declaration
9300lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9301
9302# Transform an extracted symbol line into symbol name and symbol address
9303lt_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'"
9304
9305# Define system-specific variables.
9306case $host_os in
9307aix*)
9308 symcode='[BCDT]'
9309 ;;
9310cygwin* | mingw* | pw32*)
9311 symcode='[ABCDGISTW]'
9312 ;;
9313hpux*) # Its linker distinguishes data from code symbols
9314 if test "$host_cpu" = ia64; then
9315 symcode='[ABCDEGRST]'
9316 fi
9317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9318 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'"
9319 ;;
9320linux*)
9321 if test "$host_cpu" = ia64; then
9322 symcode='[ABCDGIRSTW]'
9323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9324 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'"
9325 fi
9326 ;;
9327irix* | nonstopux*)
9328 symcode='[BCDEGRST]'
9329 ;;
9330osf*)
9331 symcode='[BCDEGQRST]'
9332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009333solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334 symcode='[BDRT]'
9335 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009336sco3.2v5*)
9337 symcode='[DT]'
9338 ;;
9339sysv4.2uw2*)
9340 symcode='[DT]'
9341 ;;
9342sysv5* | sco5v6* | unixware* | OpenUNIX*)
9343 symcode='[ABDT]'
9344 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009345sysv4)
9346 symcode='[DFNSTU]'
9347 ;;
9348esac
9349
9350# Handle CRLF in mingw tool chain
9351opt_cr=
9352case $build_os in
9353mingw*)
9354 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9355 ;;
9356esac
9357
9358# If we're using GNU nm, then use its standard symbol codes.
9359case `$NM -V 2>&1` in
9360*GNU* | *'with BFD'*)
9361 symcode='[ABCDGIRSTW]' ;;
9362esac
9363
9364# Try without a prefix undercore, then with it.
9365for ac_symprfx in "" "_"; do
9366
Reid Spencera773bd52006-08-04 18:18:08 +00009367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9368 symxfrm="\\1 $ac_symprfx\\2 \\2"
9369
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009371 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 +00009372
9373 # Check to see that the pipe works correctly.
9374 pipe_works=no
9375
9376 rm -f conftest*
9377 cat > conftest.$ac_ext <<EOF
9378#ifdef __cplusplus
9379extern "C" {
9380#endif
9381char nm_test_var;
9382void nm_test_func(){}
9383#ifdef __cplusplus
9384}
9385#endif
9386int main(){nm_test_var='a';nm_test_func();return(0);}
9387EOF
9388
9389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390 (eval $ac_compile) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; then
9394 # Now try to grab the symbols.
9395 nlist=conftest.nm
9396 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && test -s "$nlist"; then
9401 # Try sorting and uniquifying the output.
9402 if sort "$nlist" | uniq > "$nlist"T; then
9403 mv -f "$nlist"T "$nlist"
9404 else
9405 rm -f "$nlist"T
9406 fi
9407
9408 # Make sure that we snagged all the symbols we need.
9409 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9410 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9411 cat <<EOF > conftest.$ac_ext
9412#ifdef __cplusplus
9413extern "C" {
9414#endif
9415
9416EOF
9417 # Now generate the symbol file.
9418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9419
9420 cat <<EOF >> conftest.$ac_ext
9421#if defined (__STDC__) && __STDC__
9422# define lt_ptr_t void *
9423#else
9424# define lt_ptr_t char *
9425# define const
9426#endif
9427
9428/* The mapping between symbol names and symbols. */
9429const struct {
9430 const char *name;
9431 lt_ptr_t address;
9432}
9433lt_preloaded_symbols[] =
9434{
9435EOF
9436 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9437 cat <<\EOF >> conftest.$ac_ext
9438 {0, (lt_ptr_t) 0}
9439};
9440
9441#ifdef __cplusplus
9442}
9443#endif
9444EOF
9445 # Now try linking the two files.
9446 mv conftest.$ac_objext conftstm.$ac_objext
9447 lt_save_LIBS="$LIBS"
9448 lt_save_CFLAGS="$CFLAGS"
9449 LIBS="conftstm.$ac_objext"
9450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452 (eval $ac_link) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9456 pipe_works=yes
9457 fi
9458 LIBS="$lt_save_LIBS"
9459 CFLAGS="$lt_save_CFLAGS"
9460 else
9461 echo "cannot find nm_test_func in $nlist" >&5
9462 fi
9463 else
9464 echo "cannot find nm_test_var in $nlist" >&5
9465 fi
9466 else
9467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9468 fi
9469 else
9470 echo "$progname: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9472 fi
9473 rm -f conftest* conftst*
9474
9475 # Do not use the global_symbol_pipe unless it works.
9476 if test "$pipe_works" = yes; then
9477 break
9478 else
9479 lt_cv_sys_global_symbol_pipe=
9480 fi
9481done
9482
9483fi
9484
9485if test -z "$lt_cv_sys_global_symbol_pipe"; then
9486 lt_cv_sys_global_symbol_to_cdecl=
9487fi
9488if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009489 { echo "$as_me:$LINENO: result: failed" >&5
9490echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491else
Reid Spencera773bd52006-08-04 18:18:08 +00009492 { echo "$as_me:$LINENO: result: ok" >&5
9493echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494fi
9495
9496
Reid Spencera773bd52006-08-04 18:18:08 +00009497{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9498echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501else
9502 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9503 libltdl_cv_preloaded_symbols=yes
9504 else
9505 libltdl_cv_preloaded_symbols=no
9506 fi
9507
9508fi
Reid Spencera773bd52006-08-04 18:18:08 +00009509{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9510echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9512
9513cat >>confdefs.h <<\_ACEOF
9514#define HAVE_PRELOADED_SYMBOLS 1
9515_ACEOF
9516
9517fi
9518
9519LIBADD_DL=
9520
9521ac_ext=c
9522ac_cpp='$CPP $CPPFLAGS'
9523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9525ac_compiler_gnu=$ac_cv_c_compiler_gnu
9526
9527
Reid Spencera773bd52006-08-04 18:18:08 +00009528{ echo "$as_me:$LINENO: checking for shl_load" >&5
9529echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530if test "${ac_cv_func_shl_load+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533 cat >conftest.$ac_ext <<_ACEOF
9534/* confdefs.h. */
9535_ACEOF
9536cat confdefs.h >>conftest.$ac_ext
9537cat >>conftest.$ac_ext <<_ACEOF
9538/* end confdefs.h. */
9539/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9541#define shl_load innocuous_shl_load
9542
9543/* System header to define __stub macros and hopefully few prototypes,
9544 which can conflict with char shl_load (); below.
9545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9546 <limits.h> exists even on freestanding compilers. */
9547
9548#ifdef __STDC__
9549# include <limits.h>
9550#else
9551# include <assert.h>
9552#endif
9553
9554#undef shl_load
9555
Reid Spencera773bd52006-08-04 18:18:08 +00009556/* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559#ifdef __cplusplus
9560extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009561#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562char shl_load ();
9563/* The GNU C library defines this for functions which it implements
9564 to always fail with ENOSYS. Some functions are actually named
9565 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009566#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009567choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009568#endif
9569
9570int
9571main ()
9572{
Reid Spencera773bd52006-08-04 18:18:08 +00009573return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009574 ;
9575 return 0;
9576}
9577_ACEOF
9578rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009579if { (ac_try="$ac_link"
9580case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9593 { (case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009603 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_func_shl_load=yes
9613else
9614 echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
Reid Spencera773bd52006-08-04 18:18:08 +00009617 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618fi
Reid Spencera773bd52006-08-04 18:18:08 +00009619
9620rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621 conftest$ac_exeext conftest.$ac_ext
9622fi
Reid Spencera773bd52006-08-04 18:18:08 +00009623{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9624echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625if test $ac_cv_func_shl_load = yes; then
9626
9627cat >>confdefs.h <<\_ACEOF
9628#define HAVE_SHL_LOAD 1
9629_ACEOF
9630
9631else
Reid Spencera773bd52006-08-04 18:18:08 +00009632 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9633echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637 ac_check_lib_save_LIBS=$LIBS
9638LIBS="-ldld $LIBS"
9639cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h. */
9645
Reid Spencera773bd52006-08-04 18:18:08 +00009646/* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649#ifdef __cplusplus
9650extern "C"
9651#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009652char shl_load ();
9653int
9654main ()
9655{
Reid Spencera773bd52006-08-04 18:18:08 +00009656return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657 ;
9658 return 0;
9659}
9660_ACEOF
9661rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009662if { (ac_try="$ac_link"
9663case "(($ac_try" in
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9666esac
9667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679esac
9680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009686 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_dld_shl_load=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
Reid Spencera773bd52006-08-04 18:18:08 +00009700 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701fi
Reid Spencera773bd52006-08-04 18:18:08 +00009702
9703rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009704 conftest$ac_exeext conftest.$ac_ext
9705LIBS=$ac_check_lib_save_LIBS
9706fi
Reid Spencera773bd52006-08-04 18:18:08 +00009707{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9708echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009709if test $ac_cv_lib_dld_shl_load = yes; then
9710
9711cat >>confdefs.h <<\_ACEOF
9712#define HAVE_SHL_LOAD 1
9713_ACEOF
9714
9715 LIBADD_DL="$LIBADD_DL -ldld"
9716else
Reid Spencera773bd52006-08-04 18:18:08 +00009717 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009719if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721else
9722 ac_check_lib_save_LIBS=$LIBS
9723LIBS="-ldl $LIBS"
9724cat >conftest.$ac_ext <<_ACEOF
9725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
9730
Reid Spencera773bd52006-08-04 18:18:08 +00009731/* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009734#ifdef __cplusplus
9735extern "C"
9736#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009737char dlopen ();
9738int
9739main ()
9740{
Reid Spencera773bd52006-08-04 18:18:08 +00009741return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742 ;
9743 return 0;
9744}
9745_ACEOF
9746rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009747if { (ac_try="$ac_link"
9748case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764esac
9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009771 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_lib_dl_dlopen=yes
9781else
9782 echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
Reid Spencera773bd52006-08-04 18:18:08 +00009785 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786fi
Reid Spencera773bd52006-08-04 18:18:08 +00009787
9788rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789 conftest$ac_exeext conftest.$ac_ext
9790LIBS=$ac_check_lib_save_LIBS
9791fi
Reid Spencera773bd52006-08-04 18:18:08 +00009792{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794if test $ac_cv_lib_dl_dlopen = yes; then
9795
9796cat >>confdefs.h <<\_ACEOF
9797#define HAVE_LIBDL 1
9798_ACEOF
9799
9800 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9801else
9802 cat >conftest.$ac_ext <<_ACEOF
9803/* confdefs.h. */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
9807/* end confdefs.h. */
9808#if HAVE_DLFCN_H
9809# include <dlfcn.h>
9810#endif
9811
9812int
9813main ()
9814{
9815dlopen(0, 0);
9816 ;
9817 return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009821if { (ac_try="$ac_link"
9822case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009845 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854
9855cat >>confdefs.h <<\_ACEOF
9856#define HAVE_LIBDL 1
9857_ACEOF
9858 libltdl_cv_func_dlopen="yes"
9859else
9860 echo "$as_me: failed program was:" >&5
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
Reid Spencera773bd52006-08-04 18:18:08 +00009863 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9864echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867else
9868 ac_check_lib_save_LIBS=$LIBS
9869LIBS="-lsvld $LIBS"
9870cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h. */
9876
Reid Spencera773bd52006-08-04 18:18:08 +00009877/* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880#ifdef __cplusplus
9881extern "C"
9882#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883char dlopen ();
9884int
9885main ()
9886{
Reid Spencera773bd52006-08-04 18:18:08 +00009887return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888 ;
9889 return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009917 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_lib_svld_dlopen=yes
9927else
9928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
Reid Spencera773bd52006-08-04 18:18:08 +00009931 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932fi
Reid Spencera773bd52006-08-04 18:18:08 +00009933
9934rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935 conftest$ac_exeext conftest.$ac_ext
9936LIBS=$ac_check_lib_save_LIBS
9937fi
Reid Spencera773bd52006-08-04 18:18:08 +00009938{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9939echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940if test $ac_cv_lib_svld_dlopen = yes; then
9941
9942cat >>confdefs.h <<\_ACEOF
9943#define HAVE_LIBDL 1
9944_ACEOF
9945
9946 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9947else
Reid Spencera773bd52006-08-04 18:18:08 +00009948 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9949echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952else
9953 ac_check_lib_save_LIBS=$LIBS
9954LIBS="-ldld $LIBS"
9955cat >conftest.$ac_ext <<_ACEOF
9956/* confdefs.h. */
9957_ACEOF
9958cat confdefs.h >>conftest.$ac_ext
9959cat >>conftest.$ac_ext <<_ACEOF
9960/* end confdefs.h. */
9961
Reid Spencera773bd52006-08-04 18:18:08 +00009962/* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965#ifdef __cplusplus
9966extern "C"
9967#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968char dld_link ();
9969int
9970main ()
9971{
Reid Spencera773bd52006-08-04 18:18:08 +00009972return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973 ;
9974 return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010002 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_cv_lib_dld_dld_link=yes
10012else
10013 echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
Reid Spencera773bd52006-08-04 18:18:08 +000010016 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017fi
Reid Spencera773bd52006-08-04 18:18:08 +000010018
10019rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020 conftest$ac_exeext conftest.$ac_ext
10021LIBS=$ac_check_lib_save_LIBS
10022fi
Reid Spencera773bd52006-08-04 18:18:08 +000010023{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10024echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010025if test $ac_cv_lib_dld_dld_link = yes; then
10026
10027cat >>confdefs.h <<\_ACEOF
10028#define HAVE_DLD 1
10029_ACEOF
10030
10031 LIBADD_DL="$LIBADD_DL -ldld"
10032else
Reid Spencera773bd52006-08-04 18:18:08 +000010033 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10034echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037else
10038 cat >conftest.$ac_ext <<_ACEOF
10039/* confdefs.h. */
10040_ACEOF
10041cat confdefs.h >>conftest.$ac_ext
10042cat >>conftest.$ac_ext <<_ACEOF
10043/* end confdefs.h. */
10044/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10046#define _dyld_func_lookup innocuous__dyld_func_lookup
10047
10048/* System header to define __stub macros and hopefully few prototypes,
10049 which can conflict with char _dyld_func_lookup (); below.
10050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10051 <limits.h> exists even on freestanding compilers. */
10052
10053#ifdef __STDC__
10054# include <limits.h>
10055#else
10056# include <assert.h>
10057#endif
10058
10059#undef _dyld_func_lookup
10060
Reid Spencera773bd52006-08-04 18:18:08 +000010061/* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064#ifdef __cplusplus
10065extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010067char _dyld_func_lookup ();
10068/* The GNU C library defines this for functions which it implements
10069 to always fail with ENOSYS. Some functions are actually named
10070 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010071#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073#endif
10074
10075int
10076main ()
10077{
Reid Spencera773bd52006-08-04 18:18:08 +000010078return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079 ;
10080 return 0;
10081}
10082_ACEOF
10083rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010084if { (ac_try="$ac_link"
10085case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10088esac
10089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098 { (case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010108 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_func__dyld_func_lookup=yes
10118else
10119 echo "$as_me: failed program was:" >&5
10120sed 's/^/| /' conftest.$ac_ext >&5
10121
Reid Spencera773bd52006-08-04 18:18:08 +000010122 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123fi
Reid Spencera773bd52006-08-04 18:18:08 +000010124
10125rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126 conftest$ac_exeext conftest.$ac_ext
10127fi
Reid Spencera773bd52006-08-04 18:18:08 +000010128{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10129echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130if test $ac_cv_func__dyld_func_lookup = yes; then
10131
10132cat >>confdefs.h <<\_ACEOF
10133#define HAVE_DYLD 1
10134_ACEOF
10135
10136fi
10137
10138
10139fi
10140
10141
10142fi
10143
10144
10145fi
Reid Spencera773bd52006-08-04 18:18:08 +000010146
10147rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010148 conftest$ac_exeext conftest.$ac_ext
10149
10150fi
10151
10152
10153fi
10154
10155
10156fi
10157
10158
10159if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10160then
10161 lt_save_LIBS="$LIBS"
10162 LIBS="$LIBS $LIBADD_DL"
10163
10164for ac_func in dlerror
10165do
10166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171else
10172 cat >conftest.$ac_ext <<_ACEOF
10173/* confdefs.h. */
10174_ACEOF
10175cat confdefs.h >>conftest.$ac_ext
10176cat >>conftest.$ac_ext <<_ACEOF
10177/* end confdefs.h. */
10178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10180#define $ac_func innocuous_$ac_func
10181
10182/* System header to define __stub macros and hopefully few prototypes,
10183 which can conflict with char $ac_func (); below.
10184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185 <limits.h> exists even on freestanding compilers. */
10186
10187#ifdef __STDC__
10188# include <limits.h>
10189#else
10190# include <assert.h>
10191#endif
10192
10193#undef $ac_func
10194
Reid Spencera773bd52006-08-04 18:18:08 +000010195/* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198#ifdef __cplusplus
10199extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201char $ac_func ();
10202/* The GNU C library defines this for functions which it implements
10203 to always fail with ENOSYS. Some functions are actually named
10204 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010205#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010206choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010207#endif
10208
10209int
10210main ()
10211{
Reid Spencera773bd52006-08-04 18:18:08 +000010212return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213 ;
10214 return 0;
10215}
10216_ACEOF
10217rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010218if { (ac_try="$ac_link"
10219case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10232 { (case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010242 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 eval "$as_ac_var=yes"
10252else
10253 echo "$as_me: failed program was:" >&5
10254sed 's/^/| /' conftest.$ac_ext >&5
10255
Reid Spencera773bd52006-08-04 18:18:08 +000010256 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010257fi
Reid Spencera773bd52006-08-04 18:18:08 +000010258
10259rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260 conftest$ac_exeext conftest.$ac_ext
10261fi
Reid Spencera773bd52006-08-04 18:18:08 +000010262ac_res=`eval echo '${'$as_ac_var'}'`
10263 { echo "$as_me:$LINENO: result: $ac_res" >&5
10264echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265if test `eval echo '${'$as_ac_var'}'` = yes; then
10266 cat >>confdefs.h <<_ACEOF
10267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10268_ACEOF
10269
10270fi
10271done
10272
10273 LIBS="$lt_save_LIBS"
10274fi
10275ac_ext=c
10276ac_cpp='$CPP $CPPFLAGS'
10277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10279ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280
10281
10282
Reid Spencera773bd52006-08-04 18:18:08 +000010283{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10284echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288 ac_cv_sys_symbol_underscore=no
10289 cat > conftest.$ac_ext <<EOF
10290void nm_test_func(){}
10291int main(){nm_test_func;return 0;}
10292EOF
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; then
10298 # Now try to grab the symbols.
10299 ac_nlist=conftest.nm
10300 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10301 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && test -s "$ac_nlist"; then
10305 # See whether the symbols have a leading underscore.
10306 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10307 ac_cv_sys_symbol_underscore=yes
10308 else
10309 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10310 :
10311 else
10312 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10313 fi
10314 fi
10315 else
10316 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10317 fi
10318 else
10319 echo "configure: failed program was:" >&5
10320 cat conftest.c >&5
10321 fi
10322 rm -rf conftest*
10323
10324fi
Reid Spencera773bd52006-08-04 18:18:08 +000010325{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10326echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327
10328
10329if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10330 if test x"$libltdl_cv_func_dlopen" = xyes ||
10331 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010332 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10333echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334if test "${libltdl_cv_need_uscore+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337 libltdl_cv_need_uscore=unknown
10338 save_LIBS="$LIBS"
10339 LIBS="$LIBS $LIBADD_DL"
10340 if test "$cross_compiling" = yes; then :
10341 libltdl_cv_need_uscore=cross
10342else
10343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344 lt_status=$lt_dlunknown
10345 cat > conftest.$ac_ext <<EOF
Reid Spencer59807fa2007-05-17 18:11:03 +000010346#line 10346 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010347#include "confdefs.h"
10348
10349#if HAVE_DLFCN_H
10350#include <dlfcn.h>
10351#endif
10352
10353#include <stdio.h>
10354
10355#ifdef RTLD_GLOBAL
10356# define LT_DLGLOBAL RTLD_GLOBAL
10357#else
10358# ifdef DL_GLOBAL
10359# define LT_DLGLOBAL DL_GLOBAL
10360# else
10361# define LT_DLGLOBAL 0
10362# endif
10363#endif
10364
10365/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366 find out it does not work in some platform. */
10367#ifndef LT_DLLAZY_OR_NOW
10368# ifdef RTLD_LAZY
10369# define LT_DLLAZY_OR_NOW RTLD_LAZY
10370# else
10371# ifdef DL_LAZY
10372# define LT_DLLAZY_OR_NOW DL_LAZY
10373# else
10374# ifdef RTLD_NOW
10375# define LT_DLLAZY_OR_NOW RTLD_NOW
10376# else
10377# ifdef DL_NOW
10378# define LT_DLLAZY_OR_NOW DL_NOW
10379# else
10380# define LT_DLLAZY_OR_NOW 0
10381# endif
10382# endif
10383# endif
10384# endif
10385#endif
10386
10387#ifdef __cplusplus
10388extern "C" void exit (int);
10389#endif
10390
10391void fnord() { int i=42;}
10392int main ()
10393{
10394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395 int status = $lt_dlunknown;
10396
10397 if (self)
10398 {
10399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401 /* dlclose (self); */
10402 }
Reid Spencera773bd52006-08-04 18:18:08 +000010403 else
10404 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405
10406 exit (status);
10407}
10408EOF
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010414 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 lt_status=$?
10416 case x$lt_status in
10417 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10418 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010419 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420 esac
10421 else :
10422 # compilation failed
10423
10424 fi
10425fi
10426rm -fr conftest*
10427
10428 LIBS="$save_LIBS"
10429
10430fi
Reid Spencera773bd52006-08-04 18:18:08 +000010431{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10432echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433 fi
10434fi
10435
10436if test x"$libltdl_cv_need_uscore" = xyes; then
10437
10438cat >>confdefs.h <<\_ACEOF
10439#define NEED_USCORE 1
10440_ACEOF
10441
10442fi
10443
10444
Reid Spencera773bd52006-08-04 18:18:08 +000010445{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10446echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450 # PORTME does your system automatically load deplibs for dlopen?
10451 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10452 # For now, we just catch OSes we know something about -- in the
10453 # future, we'll try test this programmatically.
10454 libltdl_cv_sys_dlopen_deplibs=unknown
10455 case "$host_os" in
10456 aix3*|aix4.1.*|aix4.2.*)
10457 # Unknown whether this is true for these versions of AIX, but
10458 # we want this `case' here to explicitly catch those versions.
10459 libltdl_cv_sys_dlopen_deplibs=unknown
10460 ;;
10461 aix[45]*)
10462 libltdl_cv_sys_dlopen_deplibs=yes
10463 ;;
10464 darwin*)
10465 # Assuming the user has installed a libdl from somewhere, this is true
10466 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10467 libltdl_cv_sys_dlopen_deplibs=yes
10468 ;;
10469 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10470 # GNU and its variants, using gnu ld.so (Glibc)
10471 libltdl_cv_sys_dlopen_deplibs=yes
10472 ;;
10473 hpux10*|hpux11*)
10474 libltdl_cv_sys_dlopen_deplibs=yes
10475 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010476 interix*)
10477 libltdl_cv_sys_dlopen_deplibs=yes
10478 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479 irix[12345]*|irix6.[01]*)
10480 # Catch all versions of IRIX before 6.2, and indicate that we don't
10481 # know how it worked for any of those versions.
10482 libltdl_cv_sys_dlopen_deplibs=unknown
10483 ;;
10484 irix*)
10485 # The case above catches anything before 6.2, and it's known that
10486 # at 6.2 and later dlopen does load deplibs.
10487 libltdl_cv_sys_dlopen_deplibs=yes
10488 ;;
10489 netbsd*)
10490 libltdl_cv_sys_dlopen_deplibs=yes
10491 ;;
10492 openbsd*)
10493 libltdl_cv_sys_dlopen_deplibs=yes
10494 ;;
10495 osf[1234]*)
10496 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10497 # it did *not* use an RPATH in a shared library to find objects the
10498 # library depends on, so we explictly say `no'.
10499 libltdl_cv_sys_dlopen_deplibs=no
10500 ;;
10501 osf5.0|osf5.0a|osf5.1)
10502 # dlopen *does* load deplibs and with the right loader patch applied
10503 # it even uses RPATH in a shared library to search for shared objects
10504 # that the library depends on, but there's no easy way to know if that
10505 # patch is installed. Since this is the case, all we can really
10506 # say is unknown -- it depends on the patch being installed. If
10507 # it is, this changes to `yes'. Without it, it would be `no'.
10508 libltdl_cv_sys_dlopen_deplibs=unknown
10509 ;;
10510 osf*)
10511 # the two cases above should catch all versions of osf <= 5.1. Read
10512 # the comments above for what we know about them.
10513 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10514 # is used to find them so we can finally say `yes'.
10515 libltdl_cv_sys_dlopen_deplibs=yes
10516 ;;
10517 solaris*)
10518 libltdl_cv_sys_dlopen_deplibs=yes
10519 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10521 libltdl_cv_sys_dlopen_deplibs=yes
10522 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523 esac
10524
10525fi
Reid Spencera773bd52006-08-04 18:18:08 +000010526{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10527echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10529
10530cat >>confdefs.h <<\_ACEOF
10531#define LTDL_DLOPEN_DEPLIBS 1
10532_ACEOF
10533
10534fi
10535
10536
10537for ac_header in argz.h
10538do
10539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545fi
Reid Spencera773bd52006-08-04 18:18:08 +000010546ac_res=`eval echo '${'$as_ac_Header'}'`
10547 { echo "$as_me:$LINENO: result: $ac_res" >&5
10548echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549else
10550 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010551{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h. */
10559$ac_includes_default
10560#include <$ac_header>
10561_ACEOF
10562rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010563if { (ac_try="$ac_compile"
10564case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10567esac
10568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10577 { (case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10580esac
10581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010587 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 ac_header_compiler=yes
10597else
10598 echo "$as_me: failed program was:" >&5
10599sed 's/^/| /' conftest.$ac_ext >&5
10600
Reid Spencera773bd52006-08-04 18:18:08 +000010601 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602fi
Reid Spencera773bd52006-08-04 18:18:08 +000010603
10604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607
10608# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010609{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010611cat >conftest.$ac_ext <<_ACEOF
10612/* confdefs.h. */
10613_ACEOF
10614cat confdefs.h >>conftest.$ac_ext
10615cat >>conftest.$ac_ext <<_ACEOF
10616/* end confdefs.h. */
10617#include <$ac_header>
10618_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010619if { (ac_try="$ac_cpp conftest.$ac_ext"
10620case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623esac
10624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } >/dev/null; then
10632 if test -s conftest.err; then
10633 ac_cpp_err=$ac_c_preproc_warn_flag
10634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10635 else
10636 ac_cpp_err=
10637 fi
10638else
10639 ac_cpp_err=yes
10640fi
10641if test -z "$ac_cpp_err"; then
10642 ac_header_preproc=yes
10643else
10644 echo "$as_me: failed program was:" >&5
10645sed 's/^/| /' conftest.$ac_ext >&5
10646
10647 ac_header_preproc=no
10648fi
Reid Spencera773bd52006-08-04 18:18:08 +000010649
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10652echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010653
10654# So? What about this header?
10655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10656 yes:no: )
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10661 ac_header_preproc=yes
10662 ;;
10663 no:yes:* )
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10667echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10671echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010676 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677## ----------------------------------- ##
10678## Report this to llvmbugs@cs.uiuc.edu ##
10679## ----------------------------------- ##
10680_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010681 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682 ;;
10683esac
Reid Spencera773bd52006-08-04 18:18:08 +000010684{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688else
10689 eval "$as_ac_Header=\$ac_header_preproc"
10690fi
Reid Spencera773bd52006-08-04 18:18:08 +000010691ac_res=`eval echo '${'$as_ac_Header'}'`
10692 { echo "$as_me:$LINENO: result: $ac_res" >&5
10693echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694
10695fi
10696if test `eval echo '${'$as_ac_Header'}'` = yes; then
10697 cat >>confdefs.h <<_ACEOF
10698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10699_ACEOF
10700
10701fi
10702
10703done
10704
10705
Reid Spencera773bd52006-08-04 18:18:08 +000010706{ echo "$as_me:$LINENO: checking for error_t" >&5
10707echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708if test "${ac_cv_type_error_t+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 cat >conftest.$ac_ext <<_ACEOF
10712/* confdefs.h. */
10713_ACEOF
10714cat confdefs.h >>conftest.$ac_ext
10715cat >>conftest.$ac_ext <<_ACEOF
10716/* end confdefs.h. */
10717#if HAVE_ARGZ_H
10718# include <argz.h>
10719#endif
10720
Reid Spencera773bd52006-08-04 18:18:08 +000010721typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010722int
10723main ()
10724{
Reid Spencera773bd52006-08-04 18:18:08 +000010725if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010727if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010728 return 0;
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010734if { (ac_try="$ac_compile"
10735case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10738esac
10739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748 { (case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751esac
10752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010758 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_type_error_t=yes
10768else
10769 echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
Reid Spencera773bd52006-08-04 18:18:08 +000010772 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773fi
Reid Spencera773bd52006-08-04 18:18:08 +000010774
10775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776fi
Reid Spencera773bd52006-08-04 18:18:08 +000010777{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10778echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010779if test $ac_cv_type_error_t = yes; then
10780
10781cat >>confdefs.h <<_ACEOF
10782#define HAVE_ERROR_T 1
10783_ACEOF
10784
10785
10786else
10787
10788cat >>confdefs.h <<\_ACEOF
10789#define error_t int
10790_ACEOF
10791
10792fi
10793
10794
10795
10796
10797
10798
10799
10800for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10801do
10802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010803{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807else
10808 cat >conftest.$ac_ext <<_ACEOF
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10816#define $ac_func innocuous_$ac_func
10817
10818/* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char $ac_func (); below.
10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821 <limits.h> exists even on freestanding compilers. */
10822
10823#ifdef __STDC__
10824# include <limits.h>
10825#else
10826# include <assert.h>
10827#endif
10828
10829#undef $ac_func
10830
Reid Spencera773bd52006-08-04 18:18:08 +000010831/* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834#ifdef __cplusplus
10835extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837char $ac_func ();
10838/* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010841#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843#endif
10844
10845int
10846main ()
10847{
Reid Spencera773bd52006-08-04 18:18:08 +000010848return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849 ;
10850 return 0;
10851}
10852_ACEOF
10853rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010854if { (ac_try="$ac_link"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010878 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 eval "$as_ac_var=yes"
10888else
10889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
Reid Spencera773bd52006-08-04 18:18:08 +000010892 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893fi
Reid Spencera773bd52006-08-04 18:18:08 +000010894
10895rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010896 conftest$ac_exeext conftest.$ac_ext
10897fi
Reid Spencera773bd52006-08-04 18:18:08 +000010898ac_res=`eval echo '${'$as_ac_var'}'`
10899 { echo "$as_me:$LINENO: result: $ac_res" >&5
10900echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901if test `eval echo '${'$as_ac_var'}'` = yes; then
10902 cat >>confdefs.h <<_ACEOF
10903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10904_ACEOF
10905
10906fi
10907done
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10937 stdio.h unistd.h
10938do
10939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945fi
Reid Spencera773bd52006-08-04 18:18:08 +000010946ac_res=`eval echo '${'$as_ac_Header'}'`
10947 { echo "$as_me:$LINENO: result: $ac_res" >&5
10948echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949else
10950 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010951{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h. */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h. */
10959$ac_includes_default
10960#include <$ac_header>
10961_ACEOF
10962rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010963if { (ac_try="$ac_compile"
10964case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967esac
10968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10980esac
10981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010987 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 ac_header_compiler=yes
10997else
10998 echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
11000
Reid Spencera773bd52006-08-04 18:18:08 +000011001 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011002fi
Reid Spencera773bd52006-08-04 18:18:08 +000011003
11004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11006echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007
11008# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011009{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011cat >conftest.$ac_ext <<_ACEOF
11012/* confdefs.h. */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h. */
11017#include <$ac_header>
11018_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011019if { (ac_try="$ac_cpp conftest.$ac_ext"
11020case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023esac
11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } >/dev/null; then
11032 if test -s conftest.err; then
11033 ac_cpp_err=$ac_c_preproc_warn_flag
11034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11035 else
11036 ac_cpp_err=
11037 fi
11038else
11039 ac_cpp_err=yes
11040fi
11041if test -z "$ac_cpp_err"; then
11042 ac_header_preproc=yes
11043else
11044 echo "$as_me: failed program was:" >&5
11045sed 's/^/| /' conftest.$ac_ext >&5
11046
11047 ac_header_preproc=no
11048fi
Reid Spencera773bd52006-08-04 18:18:08 +000011049
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053
11054# So? What about this header?
11055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11056 yes:no: )
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11061 ac_header_preproc=yes
11062 ;;
11063 no:yes:* )
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011076 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077## ----------------------------------- ##
11078## Report this to llvmbugs@cs.uiuc.edu ##
11079## ----------------------------------- ##
11080_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011081 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082 ;;
11083esac
Reid Spencera773bd52006-08-04 18:18:08 +000011084{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088else
11089 eval "$as_ac_Header=\$ac_header_preproc"
11090fi
Reid Spencera773bd52006-08-04 18:18:08 +000011091ac_res=`eval echo '${'$as_ac_Header'}'`
11092 { echo "$as_me:$LINENO: result: $ac_res" >&5
11093echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011094
11095fi
11096if test `eval echo '${'$as_ac_Header'}'` = yes; then
11097 cat >>confdefs.h <<_ACEOF
11098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11099_ACEOF
11100
11101fi
11102
11103done
11104
11105
11106
11107
11108
11109for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11110do
11111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117fi
Reid Spencera773bd52006-08-04 18:18:08 +000011118ac_res=`eval echo '${'$as_ac_Header'}'`
11119 { echo "$as_me:$LINENO: result: $ac_res" >&5
11120echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011121else
11122 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011123{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125cat >conftest.$ac_ext <<_ACEOF
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h. */
11131$ac_includes_default
11132#include <$ac_header>
11133_ACEOF
11134rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011135if { (ac_try="$ac_compile"
11136case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152esac
11153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011159 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_header_compiler=yes
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
Reid Spencera773bd52006-08-04 18:18:08 +000011173 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011174fi
Reid Spencera773bd52006-08-04 18:18:08 +000011175
11176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11178echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179
11180# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189#include <$ac_header>
11190_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011191if { (ac_try="$ac_cpp conftest.$ac_ext"
11192case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } >/dev/null; then
11204 if test -s conftest.err; then
11205 ac_cpp_err=$ac_c_preproc_warn_flag
11206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11207 else
11208 ac_cpp_err=
11209 fi
11210else
11211 ac_cpp_err=yes
11212fi
11213if test -z "$ac_cpp_err"; then
11214 ac_header_preproc=yes
11215else
11216 echo "$as_me: failed program was:" >&5
11217sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_header_preproc=no
11220fi
Reid Spencera773bd52006-08-04 18:18:08 +000011221
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225
11226# So? What about this header?
11227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228 yes:no: )
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233 ac_header_preproc=yes
11234 ;;
11235 no:yes:* )
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011248 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011249## ----------------------------------- ##
11250## Report this to llvmbugs@cs.uiuc.edu ##
11251## ----------------------------------- ##
11252_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011253 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011254 ;;
11255esac
Reid Spencera773bd52006-08-04 18:18:08 +000011256{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260else
11261 eval "$as_ac_Header=\$ac_header_preproc"
11262fi
Reid Spencera773bd52006-08-04 18:18:08 +000011263ac_res=`eval echo '${'$as_ac_Header'}'`
11264 { echo "$as_me:$LINENO: result: $ac_res" >&5
11265echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011266
11267fi
11268if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11271_ACEOF
11272
11273fi
11274
11275done
11276
11277
11278
11279for ac_header in string.h strings.h
11280do
11281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287fi
Reid Spencera773bd52006-08-04 18:18:08 +000011288ac_res=`eval echo '${'$as_ac_Header'}'`
11289 { echo "$as_me:$LINENO: result: $ac_res" >&5
11290echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291else
11292 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011293{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295cat >conftest.$ac_ext <<_ACEOF
11296/* confdefs.h. */
11297_ACEOF
11298cat confdefs.h >>conftest.$ac_ext
11299cat >>conftest.$ac_ext <<_ACEOF
11300/* end confdefs.h. */
11301$ac_includes_default
11302#include <$ac_header>
11303_ACEOF
11304rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011305if { (ac_try="$ac_compile"
11306case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 ac_status=$?
11313 grep -v '^ *+' conftest.er1 >conftest.err
11314 rm -f conftest.er1
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319 { (case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322esac
11323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011329 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_header_compiler=yes
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
Reid Spencera773bd52006-08-04 18:18:08 +000011343 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011344fi
Reid Spencera773bd52006-08-04 18:18:08 +000011345
11346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349
11350# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011351{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353cat >conftest.$ac_ext <<_ACEOF
11354/* confdefs.h. */
11355_ACEOF
11356cat confdefs.h >>conftest.$ac_ext
11357cat >>conftest.$ac_ext <<_ACEOF
11358/* end confdefs.h. */
11359#include <$ac_header>
11360_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011361if { (ac_try="$ac_cpp conftest.$ac_ext"
11362case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
11366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } >/dev/null; then
11374 if test -s conftest.err; then
11375 ac_cpp_err=$ac_c_preproc_warn_flag
11376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11377 else
11378 ac_cpp_err=
11379 fi
11380else
11381 ac_cpp_err=yes
11382fi
11383if test -z "$ac_cpp_err"; then
11384 ac_header_preproc=yes
11385else
11386 echo "$as_me: failed program was:" >&5
11387sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 ac_header_preproc=no
11390fi
Reid Spencera773bd52006-08-04 18:18:08 +000011391
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011393{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011395
11396# So? What about this header?
11397case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398 yes:no: )
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403 ac_header_preproc=yes
11404 ;;
11405 no:yes:* )
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11409echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11413echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011418 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419## ----------------------------------- ##
11420## Report this to llvmbugs@cs.uiuc.edu ##
11421## ----------------------------------- ##
11422_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011423 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424 ;;
11425esac
Reid Spencera773bd52006-08-04 18:18:08 +000011426{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430else
11431 eval "$as_ac_Header=\$ac_header_preproc"
11432fi
Reid Spencera773bd52006-08-04 18:18:08 +000011433ac_res=`eval echo '${'$as_ac_Header'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011436
11437fi
11438if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439 cat >>confdefs.h <<_ACEOF
11440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441_ACEOF
11442 break
11443fi
11444
11445done
11446
11447
11448
11449
11450for ac_func in strchr index
11451do
11452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011453{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11455if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11466#define $ac_func innocuous_$ac_func
11467
11468/* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func (); below.
11470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471 <limits.h> exists even on freestanding compilers. */
11472
11473#ifdef __STDC__
11474# include <limits.h>
11475#else
11476# include <assert.h>
11477#endif
11478
11479#undef $ac_func
11480
Reid Spencera773bd52006-08-04 18:18:08 +000011481/* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484#ifdef __cplusplus
11485extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487char $ac_func ();
11488/* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011491#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493#endif
11494
11495int
11496main ()
11497{
Reid Spencera773bd52006-08-04 18:18:08 +000011498return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011504if { (ac_try="$ac_link"
11505case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508esac
11509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11518 { (case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521esac
11522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011528 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
11537 eval "$as_ac_var=yes"
11538else
11539 echo "$as_me: failed program was:" >&5
11540sed 's/^/| /' conftest.$ac_ext >&5
11541
Reid Spencera773bd52006-08-04 18:18:08 +000011542 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543fi
Reid Spencera773bd52006-08-04 18:18:08 +000011544
11545rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546 conftest$ac_exeext conftest.$ac_ext
11547fi
Reid Spencera773bd52006-08-04 18:18:08 +000011548ac_res=`eval echo '${'$as_ac_var'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551if test `eval echo '${'$as_ac_var'}'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11554_ACEOF
11555 break
11556fi
11557done
11558
11559
11560
11561for ac_func in strrchr rindex
11562do
11563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011564{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11566if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568else
11569 cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
11575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11577#define $ac_func innocuous_$ac_func
11578
11579/* System header to define __stub macros and hopefully few prototypes,
11580 which can conflict with char $ac_func (); below.
11581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582 <limits.h> exists even on freestanding compilers. */
11583
11584#ifdef __STDC__
11585# include <limits.h>
11586#else
11587# include <assert.h>
11588#endif
11589
11590#undef $ac_func
11591
Reid Spencera773bd52006-08-04 18:18:08 +000011592/* Override any GCC internal prototype to avoid an error.
11593 Use char because int might match the return type of a GCC
11594 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595#ifdef __cplusplus
11596extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011597#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011598char $ac_func ();
11599/* The GNU C library defines this for functions which it implements
11600 to always fail with ENOSYS. Some functions are actually named
11601 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011602#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011603choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604#endif
11605
11606int
11607main ()
11608{
Reid Spencera773bd52006-08-04 18:18:08 +000011609return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011610 ;
11611 return 0;
11612}
11613_ACEOF
11614rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011615if { (ac_try="$ac_link"
11616case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619esac
11620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629 { (case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632esac
11633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011639 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 eval "$as_ac_var=yes"
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
Reid Spencera773bd52006-08-04 18:18:08 +000011653 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011654fi
Reid Spencera773bd52006-08-04 18:18:08 +000011655
11656rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011657 conftest$ac_exeext conftest.$ac_ext
11658fi
Reid Spencera773bd52006-08-04 18:18:08 +000011659ac_res=`eval echo '${'$as_ac_var'}'`
11660 { echo "$as_me:$LINENO: result: $ac_res" >&5
11661echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662if test `eval echo '${'$as_ac_var'}'` = yes; then
11663 cat >>confdefs.h <<_ACEOF
11664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11665_ACEOF
11666 break
11667fi
11668done
11669
11670
11671
11672for ac_func in memcpy bcopy
11673do
11674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011675{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11677if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679else
11680 cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h. */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h. */
11686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11688#define $ac_func innocuous_$ac_func
11689
11690/* System header to define __stub macros and hopefully few prototypes,
11691 which can conflict with char $ac_func (); below.
11692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11693 <limits.h> exists even on freestanding compilers. */
11694
11695#ifdef __STDC__
11696# include <limits.h>
11697#else
11698# include <assert.h>
11699#endif
11700
11701#undef $ac_func
11702
Reid Spencera773bd52006-08-04 18:18:08 +000011703/* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706#ifdef __cplusplus
11707extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011709char $ac_func ();
11710/* The GNU C library defines this for functions which it implements
11711 to always fail with ENOSYS. Some functions are actually named
11712 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011713#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011714choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715#endif
11716
11717int
11718main ()
11719{
Reid Spencera773bd52006-08-04 18:18:08 +000011720return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011721 ;
11722 return 0;
11723}
11724_ACEOF
11725rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011726if { (ac_try="$ac_link"
11727case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730esac
11731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740 { (case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11743esac
11744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011750 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 eval "$as_ac_var=yes"
11760else
11761 echo "$as_me: failed program was:" >&5
11762sed 's/^/| /' conftest.$ac_ext >&5
11763
Reid Spencera773bd52006-08-04 18:18:08 +000011764 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011765fi
Reid Spencera773bd52006-08-04 18:18:08 +000011766
11767rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768 conftest$ac_exeext conftest.$ac_ext
11769fi
Reid Spencera773bd52006-08-04 18:18:08 +000011770ac_res=`eval echo '${'$as_ac_var'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773if test `eval echo '${'$as_ac_var'}'` = yes; then
11774 cat >>confdefs.h <<_ACEOF
11775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11776_ACEOF
11777 break
11778fi
11779done
11780
11781
11782
11783for ac_func in memmove strcmp
11784do
11785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 cat >conftest.$ac_ext <<_ACEOF
11792/* confdefs.h. */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */
11797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799#define $ac_func innocuous_$ac_func
11800
11801/* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11805
11806#ifdef __STDC__
11807# include <limits.h>
11808#else
11809# include <assert.h>
11810#endif
11811
11812#undef $ac_func
11813
Reid Spencera773bd52006-08-04 18:18:08 +000011814/* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817#ifdef __cplusplus
11818extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011820char $ac_func ();
11821/* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011824#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011825choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826#endif
11827
11828int
11829main ()
11830{
Reid Spencera773bd52006-08-04 18:18:08 +000011831return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011832 ;
11833 return 0;
11834}
11835_ACEOF
11836rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011837if { (ac_try="$ac_link"
11838case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854esac
11855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011861 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 eval "$as_ac_var=yes"
11871else
11872 echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
Reid Spencera773bd52006-08-04 18:18:08 +000011875 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876fi
Reid Spencera773bd52006-08-04 18:18:08 +000011877
11878rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879 conftest$ac_exeext conftest.$ac_ext
11880fi
Reid Spencera773bd52006-08-04 18:18:08 +000011881ac_res=`eval echo '${'$as_ac_var'}'`
11882 { echo "$as_me:$LINENO: result: $ac_res" >&5
11883echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011884if test `eval echo '${'$as_ac_var'}'` = yes; then
11885 cat >>confdefs.h <<_ACEOF
11886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11887_ACEOF
11888
11889fi
11890done
11891
11892
11893
11894
11895for ac_func in closedir opendir readdir
11896do
11897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011898{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902else
11903 cat >conftest.$ac_ext <<_ACEOF
11904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11911#define $ac_func innocuous_$ac_func
11912
11913/* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func (); below.
11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 <limits.h> exists even on freestanding compilers. */
11917
11918#ifdef __STDC__
11919# include <limits.h>
11920#else
11921# include <assert.h>
11922#endif
11923
11924#undef $ac_func
11925
Reid Spencera773bd52006-08-04 18:18:08 +000011926/* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929#ifdef __cplusplus
11930extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932char $ac_func ();
11933/* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011936#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938#endif
11939
11940int
11941main ()
11942{
Reid Spencera773bd52006-08-04 18:18:08 +000011943return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944 ;
11945 return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011949if { (ac_try="$ac_link"
11950case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953esac
11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963 { (case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011973 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 eval "$as_ac_var=yes"
11983else
11984 echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
Reid Spencera773bd52006-08-04 18:18:08 +000011987 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011988fi
Reid Spencera773bd52006-08-04 18:18:08 +000011989
11990rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011991 conftest$ac_exeext conftest.$ac_ext
11992fi
Reid Spencera773bd52006-08-04 18:18:08 +000011993ac_res=`eval echo '${'$as_ac_var'}'`
11994 { echo "$as_me:$LINENO: result: $ac_res" >&5
11995echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011996if test `eval echo '${'$as_ac_var'}'` = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999_ACEOF
12000
12001fi
12002done
12003
12004
Reid Spencera773bd52006-08-04 18:18:08 +000012005# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012007 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008 case $enableval in
12009 yes) enable_shared=yes ;;
12010 no) enable_shared=no ;;
12011 *)
12012 enable_shared=no
12013 # Look at the argument we got. We use all the common list separators.
12014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12015 for pkg in $enableval; do
12016 IFS="$lt_save_ifs"
12017 if test "X$pkg" = "X$p"; then
12018 enable_shared=yes
12019 fi
12020 done
12021 IFS="$lt_save_ifs"
12022 ;;
12023 esac
12024else
12025 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012026fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027
Reid Spencera773bd52006-08-04 18:18:08 +000012028
12029# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012030if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012031 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012032 case $enableval in
12033 yes) enable_static=yes ;;
12034 no) enable_static=no ;;
12035 *)
12036 enable_static=no
12037 # Look at the argument we got. We use all the common list separators.
12038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12039 for pkg in $enableval; do
12040 IFS="$lt_save_ifs"
12041 if test "X$pkg" = "X$p"; then
12042 enable_static=yes
12043 fi
12044 done
12045 IFS="$lt_save_ifs"
12046 ;;
12047 esac
12048else
12049 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012050fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051
Reid Spencera773bd52006-08-04 18:18:08 +000012052
12053# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012054if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012055 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012056 case $enableval in
12057 yes) enable_fast_install=yes ;;
12058 no) enable_fast_install=no ;;
12059 *)
12060 enable_fast_install=no
12061 # Look at the argument we got. We use all the common list separators.
12062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12063 for pkg in $enableval; do
12064 IFS="$lt_save_ifs"
12065 if test "X$pkg" = "X$p"; then
12066 enable_fast_install=yes
12067 fi
12068 done
12069 IFS="$lt_save_ifs"
12070 ;;
12071 esac
12072else
12073 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012074fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012075
Reid Spencera773bd52006-08-04 18:18:08 +000012076
12077{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12078echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012079if test "${lt_cv_path_SED+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082 # Loop through the user's path and test for sed and gsed.
12083# Then use that list of sed's as ones to test for truncation.
12084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085for as_dir in $PATH
12086do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for lt_ac_prog in sed gsed; do
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12092 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12093 fi
12094 done
12095 done
12096done
12097lt_ac_max=0
12098lt_ac_count=0
12099# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12100# along with /bin/sed that truncates output.
12101for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012102 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012103 cat /dev/null > conftest.in
12104 lt_ac_count=0
12105 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12106 # Check for GNU sed and select it if it is found.
12107 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12108 lt_cv_path_SED=$lt_ac_sed
12109 break
12110 fi
12111 while true; do
12112 cat conftest.in conftest.in >conftest.tmp
12113 mv conftest.tmp conftest.in
12114 cp conftest.in conftest.nl
12115 echo >>conftest.nl
12116 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12117 cmp -s conftest.out conftest.nl || break
12118 # 10000 chars as input seems more than enough
12119 test $lt_ac_count -gt 10 && break
12120 lt_ac_count=`expr $lt_ac_count + 1`
12121 if test $lt_ac_count -gt $lt_ac_max; then
12122 lt_ac_max=$lt_ac_count
12123 lt_cv_path_SED=$lt_ac_sed
12124 fi
12125 done
12126done
12127
12128fi
12129
12130SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012131{ echo "$as_me:$LINENO: result: $SED" >&5
12132echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133
12134
Reid Spencera773bd52006-08-04 18:18:08 +000012135# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012136if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012137 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138else
12139 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012140fi
12141
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012142ac_prog=ld
12143if test "$GCC" = yes; then
12144 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012145 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12146echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012147 case $host in
12148 *-*-mingw*)
12149 # gcc leaves a trailing carriage return which upsets mingw
12150 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12151 *)
12152 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12153 esac
12154 case $ac_prog in
12155 # Accept absolute paths.
12156 [\\/]* | ?:[\\/]*)
12157 re_direlt='/[^/][^/]*/\.\./'
12158 # Canonicalize the pathname of ld
12159 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12160 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12161 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12162 done
12163 test -z "$LD" && LD="$ac_prog"
12164 ;;
12165 "")
12166 # If it fails, then pretend we aren't using GCC.
12167 ac_prog=ld
12168 ;;
12169 *)
12170 # If it is relative, then search for the first ld in PATH.
12171 with_gnu_ld=unknown
12172 ;;
12173 esac
12174elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012175 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12176echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012177else
Reid Spencera773bd52006-08-04 18:18:08 +000012178 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12179echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180fi
12181if test "${lt_cv_path_LD+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 if test -z "$LD"; then
12185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12186 for ac_dir in $PATH; do
12187 IFS="$lt_save_ifs"
12188 test -z "$ac_dir" && ac_dir=.
12189 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12190 lt_cv_path_LD="$ac_dir/$ac_prog"
12191 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012192 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012193 # Break only if it was the GNU/non-GNU ld that we prefer.
12194 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12195 *GNU* | *'with BFD'*)
12196 test "$with_gnu_ld" != no && break
12197 ;;
12198 *)
12199 test "$with_gnu_ld" != yes && break
12200 ;;
12201 esac
12202 fi
12203 done
12204 IFS="$lt_save_ifs"
12205else
12206 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12207fi
12208fi
12209
12210LD="$lt_cv_path_LD"
12211if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012212 { echo "$as_me:$LINENO: result: $LD" >&5
12213echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012214else
Reid Spencera773bd52006-08-04 18:18:08 +000012215 { echo "$as_me:$LINENO: result: no" >&5
12216echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012217fi
12218test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12219echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12220 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012221{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12222echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223if test "${lt_cv_prog_gnu_ld+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
Reid Spencera773bd52006-08-04 18:18:08 +000012226 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227case `$LD -v 2>&1 </dev/null` in
12228*GNU* | *'with BFD'*)
12229 lt_cv_prog_gnu_ld=yes
12230 ;;
12231*)
12232 lt_cv_prog_gnu_ld=no
12233 ;;
12234esac
12235fi
Reid Spencera773bd52006-08-04 18:18:08 +000012236{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12237echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012238with_gnu_ld=$lt_cv_prog_gnu_ld
12239
12240
Reid Spencera773bd52006-08-04 18:18:08 +000012241{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12242echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243if test "${lt_cv_ld_reload_flag+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245else
12246 lt_cv_ld_reload_flag='-r'
12247fi
Reid Spencera773bd52006-08-04 18:18:08 +000012248{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12249echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012250reload_flag=$lt_cv_ld_reload_flag
12251case $reload_flag in
12252"" | " "*) ;;
12253*) reload_flag=" $reload_flag" ;;
12254esac
12255reload_cmds='$LD$reload_flag -o $output$reload_objs'
12256case $host_os in
12257 darwin*)
12258 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012260 else
12261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12262 fi
12263 ;;
12264esac
12265
Reid Spencera773bd52006-08-04 18:18:08 +000012266{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12267echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012268if test "${lt_cv_deplibs_check_method+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271 lt_cv_file_magic_cmd='$MAGIC_CMD'
12272lt_cv_file_magic_test_file=
12273lt_cv_deplibs_check_method='unknown'
12274# Need to set the preceding variable on all platforms that support
12275# interlibrary dependencies.
12276# 'none' -- dependencies not supported.
12277# `unknown' -- same as none, but documents that we really don't know.
12278# 'pass_all' -- all dependencies passed with no checks.
12279# 'test_compile' -- check by making test program.
12280# 'file_magic [[regex]]' -- check by looking for files in library path
12281# which responds to the $file_magic_cmd with a given extended regex.
12282# If you have `file' or equivalent on your system and you're not sure
12283# whether `pass_all' will *always* work, you probably want this one.
12284
12285case $host_os in
12286aix4* | aix5*)
12287 lt_cv_deplibs_check_method=pass_all
12288 ;;
12289
12290beos*)
12291 lt_cv_deplibs_check_method=pass_all
12292 ;;
12293
12294bsdi[45]*)
12295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12296 lt_cv_file_magic_cmd='/usr/bin/file -L'
12297 lt_cv_file_magic_test_file=/shlib/libc.so
12298 ;;
12299
12300cygwin*)
12301 # func_win32_libid is a shell function defined in ltmain.sh
12302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12303 lt_cv_file_magic_cmd='func_win32_libid'
12304 ;;
12305
12306mingw* | pw32*)
12307 # Base MSYS/MinGW do not provide the 'file' command needed by
12308 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12309 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12310 lt_cv_file_magic_cmd='$OBJDUMP -f'
12311 ;;
12312
12313darwin* | rhapsody*)
12314 lt_cv_deplibs_check_method=pass_all
12315 ;;
12316
Reid Spencera773bd52006-08-04 18:18:08 +000012317freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012318 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12319 case $host_cpu in
12320 i*86 )
12321 # Not sure whether the presence of OpenBSD here was a mistake.
12322 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012323 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 +000012324 lt_cv_file_magic_cmd=/usr/bin/file
12325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12326 ;;
12327 esac
12328 else
12329 lt_cv_deplibs_check_method=pass_all
12330 fi
12331 ;;
12332
12333gnu*)
12334 lt_cv_deplibs_check_method=pass_all
12335 ;;
12336
12337hpux10.20* | hpux11*)
12338 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012339 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012340 ia64*)
12341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12342 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12343 ;;
12344 hppa*64*)
12345 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]'
12346 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12347 ;;
12348 *)
12349 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12350 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12351 ;;
12352 esac
12353 ;;
12354
Reid Spencera773bd52006-08-04 18:18:08 +000012355interix3*)
12356 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12358 ;;
12359
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360irix5* | irix6* | nonstopux*)
12361 case $LD in
12362 *-32|*"-32 ") libmagic=32-bit;;
12363 *-n32|*"-n32 ") libmagic=N32;;
12364 *-64|*"-64 ") libmagic=64-bit;;
12365 *) libmagic=never-match;;
12366 esac
12367 lt_cv_deplibs_check_method=pass_all
12368 ;;
12369
12370# This must be Linux ELF.
12371linux*)
12372 lt_cv_deplibs_check_method=pass_all
12373 ;;
12374
12375netbsd*)
12376 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12378 else
12379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12380 fi
12381 ;;
12382
12383newos6*)
12384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12385 lt_cv_file_magic_cmd=/usr/bin/file
12386 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12387 ;;
12388
12389nto-qnx*)
12390 lt_cv_deplibs_check_method=unknown
12391 ;;
12392
12393openbsd*)
12394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12396 else
12397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12398 fi
12399 ;;
12400
12401osf3* | osf4* | osf5*)
12402 lt_cv_deplibs_check_method=pass_all
12403 ;;
12404
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012405solaris*)
12406 lt_cv_deplibs_check_method=pass_all
12407 ;;
12408
Reid Spencera773bd52006-08-04 18:18:08 +000012409sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012410 case $host_vendor in
12411 motorola)
12412 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]'
12413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12414 ;;
12415 ncr)
12416 lt_cv_deplibs_check_method=pass_all
12417 ;;
12418 sequent)
12419 lt_cv_file_magic_cmd='/bin/file'
12420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12421 ;;
12422 sni)
12423 lt_cv_file_magic_cmd='/bin/file'
12424 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12425 lt_cv_file_magic_test_file=/lib/libc.so
12426 ;;
12427 siemens)
12428 lt_cv_deplibs_check_method=pass_all
12429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012430 pc)
12431 lt_cv_deplibs_check_method=pass_all
12432 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012433 esac
12434 ;;
12435
Reid Spencera773bd52006-08-04 18:18:08 +000012436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012437 lt_cv_deplibs_check_method=pass_all
12438 ;;
12439esac
12440
12441fi
Reid Spencera773bd52006-08-04 18:18:08 +000012442{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12443echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444file_magic_cmd=$lt_cv_file_magic_cmd
12445deplibs_check_method=$lt_cv_deplibs_check_method
12446test -z "$deplibs_check_method" && deplibs_check_method=unknown
12447
12448
12449
12450# If no C compiler was specified, use CC.
12451LTCC=${LTCC-"$CC"}
12452
Reid Spencera773bd52006-08-04 18:18:08 +000012453# If no C compiler flags were specified, use CFLAGS.
12454LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12455
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012456# Allow CC to be a program name with arguments.
12457compiler=$CC
12458
Reid Spencera773bd52006-08-04 18:18:08 +000012459# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012460if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012461 enableval=$enable_libtool_lock;
12462fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012463
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012464test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12465
12466# Some flags need to be propagated to the compiler or linker for good
12467# libtool support.
12468case $host in
12469ia64-*-hpux*)
12470 # Find out which ABI we are using.
12471 echo 'int i;' > conftest.$ac_ext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473 (eval $ac_compile) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; then
12477 case `/usr/bin/file conftest.$ac_objext` in
12478 *ELF-32*)
12479 HPUX_IA64_MODE="32"
12480 ;;
12481 *ELF-64*)
12482 HPUX_IA64_MODE="64"
12483 ;;
12484 esac
12485 fi
12486 rm -rf conftest*
12487 ;;
12488*-*-irix6*)
12489 # Find out which ABI we are using.
Reid Spencer59807fa2007-05-17 18:11:03 +000012490 echo '#line 12490 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492 (eval $ac_compile) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; then
12496 if test "$lt_cv_prog_gnu_ld" = yes; then
12497 case `/usr/bin/file conftest.$ac_objext` in
12498 *32-bit*)
12499 LD="${LD-ld} -melf32bsmip"
12500 ;;
12501 *N32*)
12502 LD="${LD-ld} -melf32bmipn32"
12503 ;;
12504 *64-bit*)
12505 LD="${LD-ld} -melf64bmip"
12506 ;;
12507 esac
12508 else
12509 case `/usr/bin/file conftest.$ac_objext` in
12510 *32-bit*)
12511 LD="${LD-ld} -32"
12512 ;;
12513 *N32*)
12514 LD="${LD-ld} -n32"
12515 ;;
12516 *64-bit*)
12517 LD="${LD-ld} -64"
12518 ;;
12519 esac
12520 fi
12521 fi
12522 rm -rf conftest*
12523 ;;
12524
12525x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12526 # Find out which ABI we are using.
12527 echo 'int i;' > conftest.$ac_ext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529 (eval $ac_compile) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012533 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012534 *32-bit*)
12535 case $host in
12536 x86_64-*linux*)
12537 LD="${LD-ld} -m elf_i386"
12538 ;;
12539 ppc64-*linux*|powerpc64-*linux*)
12540 LD="${LD-ld} -m elf32ppclinux"
12541 ;;
12542 s390x-*linux*)
12543 LD="${LD-ld} -m elf_s390"
12544 ;;
12545 sparc64-*linux*)
12546 LD="${LD-ld} -m elf32_sparc"
12547 ;;
12548 esac
12549 ;;
12550 *64-bit*)
12551 case $host in
12552 x86_64-*linux*)
12553 LD="${LD-ld} -m elf_x86_64"
12554 ;;
12555 ppc*-*linux*|powerpc*-*linux*)
12556 LD="${LD-ld} -m elf64ppc"
12557 ;;
12558 s390*-*linux*)
12559 LD="${LD-ld} -m elf64_s390"
12560 ;;
12561 sparc*-*linux*)
12562 LD="${LD-ld} -m elf64_sparc"
12563 ;;
12564 esac
12565 ;;
12566 esac
12567 fi
12568 rm -rf conftest*
12569 ;;
12570
12571*-*-sco3.2v5*)
12572 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12573 SAVE_CFLAGS="$CFLAGS"
12574 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012575 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12576echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012577if test "${lt_cv_cc_needs_belf+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579else
12580 ac_ext=c
12581ac_cpp='$CPP $CPPFLAGS'
12582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584ac_compiler_gnu=$ac_cv_c_compiler_gnu
12585
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
12592
Reid Spencera773bd52006-08-04 18:18:08 +000012593int
12594main ()
12595{
12596
12597 ;
12598 return 0;
12599}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012600_ACEOF
12601rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012602if { (ac_try="$ac_link"
12603case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606esac
12607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012609 ac_status=$?
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12616 { (case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12619esac
12620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } &&
12625 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012626 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 lt_cv_cc_needs_belf=yes
12636else
12637 echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
Reid Spencera773bd52006-08-04 18:18:08 +000012640 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012641fi
Reid Spencera773bd52006-08-04 18:18:08 +000012642
12643rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012644 conftest$ac_exeext conftest.$ac_ext
12645 ac_ext=c
12646ac_cpp='$CPP $CPPFLAGS'
12647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649ac_compiler_gnu=$ac_cv_c_compiler_gnu
12650
12651fi
Reid Spencera773bd52006-08-04 18:18:08 +000012652{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12653echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012654 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12656 CFLAGS="$SAVE_CFLAGS"
12657 fi
12658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012659sparc*-*solaris*)
12660 # Find out which ABI we are using.
12661 echo 'int i;' > conftest.$ac_ext
12662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; then
12667 case `/usr/bin/file conftest.o` in
12668 *64-bit*)
12669 case $lt_cv_prog_gnu_ld in
12670 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12671 *) LD="${LD-ld} -64" ;;
12672 esac
12673 ;;
12674 esac
12675 fi
12676 rm -rf conftest*
12677 ;;
12678
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012679
12680esac
12681
12682need_locks="$enable_libtool_lock"
12683
12684
Reid Spencer2706f8c2004-09-19 23:53:36 +000012685
12686
12687if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12688 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12689 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012690 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012691ac_cpp='$CXXCPP $CPPFLAGS'
12692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012695{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12696echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012697if test -z "$CXXCPP"; then
12698 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700else
John Criswell47fdd832003-07-14 16:52:07 +000012701 # Double quotes because CXXCPP needs to be expanded
12702 for CXXCPP in "$CXX -E" "/lib/cpp"
12703 do
12704 ac_preproc_ok=false
12705for ac_cxx_preproc_warn_flag in '' yes
12706do
12707 # Use a header file that comes with gcc, so configuring glibc
12708 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12710 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012711 # On the NeXT, cc -E runs the code through the compiler's parser,
12712 # not just through cpp. "Syntax error" is here to catch this case.
12713 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719#ifdef __STDC__
12720# include <limits.h>
12721#else
12722# include <assert.h>
12723#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012724 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012725_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012726if { (ac_try="$ac_cpp conftest.$ac_ext"
12727case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730esac
12731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012733 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012734 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } >/dev/null; then
12739 if test -s conftest.err; then
12740 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012742 else
John Criswell47fdd832003-07-14 16:52:07 +000012743 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012744 fi
John Criswell47fdd832003-07-14 16:52:07 +000012745else
12746 ac_cpp_err=yes
12747fi
12748if test -z "$ac_cpp_err"; then
12749 :
12750else
12751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012752sed 's/^/| /' conftest.$ac_ext >&5
12753
John Criswell47fdd832003-07-14 16:52:07 +000012754 # Broken: fails on valid input.
12755continue
12756fi
Reid Spencera773bd52006-08-04 18:18:08 +000012757
John Criswell47fdd832003-07-14 16:52:07 +000012758rm -f conftest.err conftest.$ac_ext
12759
Reid Spencera773bd52006-08-04 18:18:08 +000012760 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012761 # can be detected and how.
12762 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012763/* confdefs.h. */
12764_ACEOF
12765cat confdefs.h >>conftest.$ac_ext
12766cat >>conftest.$ac_ext <<_ACEOF
12767/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012768#include <ac_nonexistent.h>
12769_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012770if { (ac_try="$ac_cpp conftest.$ac_ext"
12771case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012777 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012778 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } >/dev/null; then
12783 if test -s conftest.err; then
12784 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012786 else
12787 ac_cpp_err=
12788 fi
12789else
12790 ac_cpp_err=yes
12791fi
12792if test -z "$ac_cpp_err"; then
12793 # Broken: success on invalid input.
12794continue
12795else
12796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012797sed 's/^/| /' conftest.$ac_ext >&5
12798
John Criswell47fdd832003-07-14 16:52:07 +000012799 # Passes both tests.
12800ac_preproc_ok=:
12801break
12802fi
Reid Spencera773bd52006-08-04 18:18:08 +000012803
John Criswell47fdd832003-07-14 16:52:07 +000012804rm -f conftest.err conftest.$ac_ext
12805
12806done
12807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12808rm -f conftest.err conftest.$ac_ext
12809if $ac_preproc_ok; then
12810 break
John Criswell7a73b802003-06-30 21:59:07 +000012811fi
12812
John Criswell47fdd832003-07-14 16:52:07 +000012813 done
12814 ac_cv_prog_CXXCPP=$CXXCPP
12815
12816fi
12817 CXXCPP=$ac_cv_prog_CXXCPP
12818else
12819 ac_cv_prog_CXXCPP=$CXXCPP
12820fi
Reid Spencera773bd52006-08-04 18:18:08 +000012821{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12822echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012823ac_preproc_ok=false
12824for ac_cxx_preproc_warn_flag in '' yes
12825do
12826 # Use a header file that comes with gcc, so configuring glibc
12827 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012830 # On the NeXT, cc -E runs the code through the compiler's parser,
12831 # not just through cpp. "Syntax error" is here to catch this case.
12832 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012833/* confdefs.h. */
12834_ACEOF
12835cat confdefs.h >>conftest.$ac_ext
12836cat >>conftest.$ac_ext <<_ACEOF
12837/* end confdefs.h. */
12838#ifdef __STDC__
12839# include <limits.h>
12840#else
12841# include <assert.h>
12842#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012843 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012844_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012845if { (ac_try="$ac_cpp conftest.$ac_ext"
12846case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849esac
12850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012852 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012853 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } >/dev/null; then
12858 if test -s conftest.err; then
12859 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012861 else
12862 ac_cpp_err=
12863 fi
12864else
12865 ac_cpp_err=yes
12866fi
12867if test -z "$ac_cpp_err"; then
12868 :
12869else
12870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012871sed 's/^/| /' conftest.$ac_ext >&5
12872
John Criswell47fdd832003-07-14 16:52:07 +000012873 # Broken: fails on valid input.
12874continue
12875fi
Reid Spencera773bd52006-08-04 18:18:08 +000012876
John Criswell47fdd832003-07-14 16:52:07 +000012877rm -f conftest.err conftest.$ac_ext
12878
Reid Spencera773bd52006-08-04 18:18:08 +000012879 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012880 # can be detected and how.
12881 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012882/* confdefs.h. */
12883_ACEOF
12884cat confdefs.h >>conftest.$ac_ext
12885cat >>conftest.$ac_ext <<_ACEOF
12886/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012887#include <ac_nonexistent.h>
12888_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012889if { (ac_try="$ac_cpp conftest.$ac_ext"
12890case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893esac
12894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012896 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012897 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } >/dev/null; then
12902 if test -s conftest.err; then
12903 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012905 else
12906 ac_cpp_err=
12907 fi
12908else
12909 ac_cpp_err=yes
12910fi
12911if test -z "$ac_cpp_err"; then
12912 # Broken: success on invalid input.
12913continue
12914else
12915 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012916sed 's/^/| /' conftest.$ac_ext >&5
12917
John Criswell47fdd832003-07-14 16:52:07 +000012918 # Passes both tests.
12919ac_preproc_ok=:
12920break
12921fi
Reid Spencera773bd52006-08-04 18:18:08 +000012922
John Criswell47fdd832003-07-14 16:52:07 +000012923rm -f conftest.err conftest.$ac_ext
12924
12925done
12926# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12927rm -f conftest.err conftest.$ac_ext
12928if $ac_preproc_ok; then
12929 :
12930else
John Criswell0c38eaf2003-09-10 15:17:25 +000012931 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12932See \`config.log' for more details." >&5
12933echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12934See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012935 { (exit 1); exit 1; }; }
12936fi
12937
Reid Spencera773bd52006-08-04 18:18:08 +000012938ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012939ac_cpp='$CXXCPP $CPPFLAGS'
12940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12943
Reid Spencer2706f8c2004-09-19 23:53:36 +000012944fi
12945
John Criswell47fdd832003-07-14 16:52:07 +000012946
12947ac_ext=f
12948ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12949ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12950ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12951if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012952 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 +000012953 do
12954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012958if test "${ac_cv_prog_F77+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 if test -n "$F77"; then
12962 ac_cv_prog_F77="$F77" # Let the user override the test.
12963else
12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012970 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 +000012971 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12974 fi
12975done
12976done
Reid Spencera773bd52006-08-04 18:18:08 +000012977IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012978
12979fi
12980fi
12981F77=$ac_cv_prog_F77
12982if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012983 { echo "$as_me:$LINENO: result: $F77" >&5
12984echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012985else
Reid Spencera773bd52006-08-04 18:18:08 +000012986 { echo "$as_me:$LINENO: result: no" >&5
12987echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012988fi
12989
Reid Spencera773bd52006-08-04 18:18:08 +000012990
John Criswell47fdd832003-07-14 16:52:07 +000012991 test -n "$F77" && break
12992 done
12993fi
12994if test -z "$F77"; then
12995 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012996 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 +000012997do
12998 # Extract the first word of "$ac_prog", so it can be a program name with args.
12999set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013002if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
13005 if test -n "$ac_ct_F77"; then
13006 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13007else
13008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009for as_dir in $PATH
13010do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013014 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 +000013015 ac_cv_prog_ac_ct_F77="$ac_prog"
13016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 break 2
13018 fi
13019done
13020done
Reid Spencera773bd52006-08-04 18:18:08 +000013021IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013022
13023fi
13024fi
13025ac_ct_F77=$ac_cv_prog_ac_ct_F77
13026if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013027 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13028echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013029else
Reid Spencera773bd52006-08-04 18:18:08 +000013030 { echo "$as_me:$LINENO: result: no" >&5
13031echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013032fi
13033
Reid Spencera773bd52006-08-04 18:18:08 +000013034
John Criswell47fdd832003-07-14 16:52:07 +000013035 test -n "$ac_ct_F77" && break
13036done
13037
Reid Spencera773bd52006-08-04 18:18:08 +000013038 if test "x$ac_ct_F77" = x; then
13039 F77=""
13040 else
13041 case $cross_compiling:$ac_tool_warned in
13042yes:)
13043{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13044whose name does not start with the host triplet. If you think this
13045configuration is useful to you, please write to autoconf@gnu.org." >&5
13046echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13047whose name does not start with the host triplet. If you think this
13048configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13049ac_tool_warned=yes ;;
13050esac
13051 F77=$ac_ct_F77
13052 fi
John Criswell47fdd832003-07-14 16:52:07 +000013053fi
13054
13055
13056# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013057echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013058ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013059{ (ac_try="$ac_compiler --version >&5"
13060case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063esac
13064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013069{ (ac_try="$ac_compiler -v >&5"
13070case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073esac
13074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013079{ (ac_try="$ac_compiler -V >&5"
13080case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013089rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013090
13091# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013092# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013093ac_save_ext=$ac_ext
13094ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013095{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13096echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013097if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13099else
13100 cat >conftest.$ac_ext <<_ACEOF
13101 program main
13102#ifndef __GNUC__
13103 choke me
13104#endif
13105
13106 end
13107_ACEOF
13108rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013109if { (ac_try="$ac_compile"
13110case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113esac
13114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013116 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013122 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13123 { (case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13126esac
13127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013133 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; }; then
13142 ac_compiler_gnu=yes
13143else
13144 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013145sed 's/^/| /' conftest.$ac_ext >&5
13146
Reid Spencera773bd52006-08-04 18:18:08 +000013147 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013148fi
Reid Spencera773bd52006-08-04 18:18:08 +000013149
13150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013151ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13152
13153fi
Reid Spencera773bd52006-08-04 18:18:08 +000013154{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13155echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013156ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013157ac_test_FFLAGS=${FFLAGS+set}
13158ac_save_FFLAGS=$FFLAGS
13159FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013160{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13161echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013162if test "${ac_cv_prog_f77_g+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164else
13165 FFLAGS=-g
13166cat >conftest.$ac_ext <<_ACEOF
13167 program main
13168
13169 end
13170_ACEOF
13171rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013172if { (ac_try="$ac_compile"
13173case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176esac
13177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013185 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189esac
13190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013196 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13205 ac_cv_prog_f77_g=yes
13206else
13207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013208sed 's/^/| /' conftest.$ac_ext >&5
13209
Reid Spencera773bd52006-08-04 18:18:08 +000013210 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013211fi
Reid Spencera773bd52006-08-04 18:18:08 +000013212
13213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013214
13215fi
Reid Spencera773bd52006-08-04 18:18:08 +000013216{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13217echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013218if test "$ac_test_FFLAGS" = set; then
13219 FFLAGS=$ac_save_FFLAGS
13220elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013221 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013222 FFLAGS="-g -O2"
13223 else
13224 FFLAGS="-g"
13225 fi
13226else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013227 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013228 FFLAGS="-O2"
13229 else
13230 FFLAGS=
13231 fi
13232fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013233
13234G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013235ac_ext=c
13236ac_cpp='$CPP $CPPFLAGS'
13237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13239ac_compiler_gnu=$ac_cv_c_compiler_gnu
13240
13241
13242
13243# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13244
13245# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013246{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13247echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013248if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
13251 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013252 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013253
13254 case $build_os in
13255 msdosdjgpp*)
13256 # On DJGPP, this test can blow up pretty badly due to problems in libc
13257 # (any single argument exceeding 2000 bytes causes a buffer overrun
13258 # during glob expansion). Even if it were fixed, the result of this
13259 # check would be larger than it should be.
13260 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13261 ;;
13262
13263 gnu*)
13264 # Under GNU Hurd, this test is not required because there is
13265 # no limit to the length of command line arguments.
13266 # Libtool will interpret -1 as no limit whatsoever
13267 lt_cv_sys_max_cmd_len=-1;
13268 ;;
13269
13270 cygwin* | mingw*)
13271 # On Win9x/ME, this test blows up -- it succeeds, but takes
13272 # about 5 minutes as the teststring grows exponentially.
13273 # Worse, since 9x/ME are not pre-emptively multitasking,
13274 # you end up with a "frozen" computer, even though with patience
13275 # the test eventually succeeds (with a max line length of 256k).
13276 # Instead, let's just punt: use the minimum linelength reported by
13277 # all of the supported platforms: 8192 (on NT/2K/XP).
13278 lt_cv_sys_max_cmd_len=8192;
13279 ;;
13280
Reid Spencer2706f8c2004-09-19 23:53:36 +000013281 amigaos*)
13282 # On AmigaOS with pdksh, this test takes hours, literally.
13283 # So we just punt and use a minimum line length of 8192.
13284 lt_cv_sys_max_cmd_len=8192;
13285 ;;
13286
Reid Spencera773bd52006-08-04 18:18:08 +000013287 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013288 # This has been around since 386BSD, at least. Likely further.
13289 if test -x /sbin/sysctl; then
13290 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13291 elif test -x /usr/sbin/sysctl; then
13292 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13293 else
Reid Spencera773bd52006-08-04 18:18:08 +000013294 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013295 fi
13296 # And add a safety zone
13297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013299 ;;
13300
Reid Spencera773bd52006-08-04 18:18:08 +000013301 interix*)
13302 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13303 lt_cv_sys_max_cmd_len=196608
13304 ;;
13305
13306 osf*)
13307 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13308 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13309 # nice to cause kernel panics so lets avoid the loop below.
13310 # First set a reasonable default.
13311 lt_cv_sys_max_cmd_len=16384
13312 #
13313 if test -x /sbin/sysconfig; then
13314 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13315 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13316 esac
13317 fi
13318 ;;
13319 sco3.2v5*)
13320 lt_cv_sys_max_cmd_len=102400
13321 ;;
13322 sysv5* | sco5v6* | sysv4.2uw2*)
13323 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13324 if test -n "$kargmax"; then
13325 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13326 else
13327 lt_cv_sys_max_cmd_len=32768
13328 fi
13329 ;;
13330 *)
John Criswell47fdd832003-07-14 16:52:07 +000013331 # If test is not a shell built-in, we'll probably end up computing a
13332 # maximum length that is only half of the actual maximum length, but
13333 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013334 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13335 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13336 = "XX$teststring") >/dev/null 2>&1 &&
13337 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013338 lt_cv_sys_max_cmd_len=$new_result &&
13339 test $i != 17 # 1/2 MB should be enough
13340 do
13341 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013342 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013343 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013344 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013345 # Add a significant safety factor because C++ compilers can tack on massive
13346 # amounts of additional arguments before passing them to the linker.
13347 # It appears as though 1/2 is a usable value.
13348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13349 ;;
13350 esac
13351
13352fi
13353
13354if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013355 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13356echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013357else
Reid Spencera773bd52006-08-04 18:18:08 +000013358 { echo "$as_me:$LINENO: result: none" >&5
13359echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013360fi
13361
13362
13363
13364
13365# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013366{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13367echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013368if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13370else
13371
13372# These are sane defaults that work on at least a few old systems.
13373# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13374
13375# Character class describing NM global symbol codes.
13376symcode='[BCDEGRST]'
13377
13378# Regexp to match symbols that can be accessed directly from C.
13379sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13380
John Criswell47fdd832003-07-14 16:52:07 +000013381# Transform an extracted symbol line into a proper C declaration
13382lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13383
13384# Transform an extracted symbol line into symbol name and symbol address
13385lt_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'"
13386
13387# Define system-specific variables.
13388case $host_os in
13389aix*)
13390 symcode='[BCDT]'
13391 ;;
13392cygwin* | mingw* | pw32*)
13393 symcode='[ABCDGISTW]'
13394 ;;
13395hpux*) # Its linker distinguishes data from code symbols
13396 if test "$host_cpu" = ia64; then
13397 symcode='[ABCDEGRST]'
13398 fi
13399 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13400 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'"
13401 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013402linux*)
13403 if test "$host_cpu" = ia64; then
13404 symcode='[ABCDGIRSTW]'
13405 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13406 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'"
13407 fi
13408 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013409irix* | nonstopux*)
13410 symcode='[BCDEGRST]'
13411 ;;
13412osf*)
13413 symcode='[BCDEGQRST]'
13414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013415solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013416 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013417 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013418sco3.2v5*)
13419 symcode='[DT]'
13420 ;;
13421sysv4.2uw2*)
13422 symcode='[DT]'
13423 ;;
13424sysv5* | sco5v6* | unixware* | OpenUNIX*)
13425 symcode='[ABDT]'
13426 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013427sysv4)
13428 symcode='[DFNSTU]'
13429 ;;
13430esac
13431
13432# Handle CRLF in mingw tool chain
13433opt_cr=
13434case $build_os in
13435mingw*)
13436 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13437 ;;
13438esac
13439
13440# If we're using GNU nm, then use its standard symbol codes.
13441case `$NM -V 2>&1` in
13442*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013443 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013444esac
13445
13446# Try without a prefix undercore, then with it.
13447for ac_symprfx in "" "_"; do
13448
Reid Spencera773bd52006-08-04 18:18:08 +000013449 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13450 symxfrm="\\1 $ac_symprfx\\2 \\2"
13451
John Criswell47fdd832003-07-14 16:52:07 +000013452 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013453 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 +000013454
13455 # Check to see that the pipe works correctly.
13456 pipe_works=no
13457
13458 rm -f conftest*
13459 cat > conftest.$ac_ext <<EOF
13460#ifdef __cplusplus
13461extern "C" {
13462#endif
13463char nm_test_var;
13464void nm_test_func(){}
13465#ifdef __cplusplus
13466}
13467#endif
13468int main(){nm_test_var='a';nm_test_func();return(0);}
13469EOF
13470
13471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13472 (eval $ac_compile) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; then
13476 # Now try to grab the symbols.
13477 nlist=conftest.nm
13478 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13479 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } && test -s "$nlist"; then
13483 # Try sorting and uniquifying the output.
13484 if sort "$nlist" | uniq > "$nlist"T; then
13485 mv -f "$nlist"T "$nlist"
13486 else
13487 rm -f "$nlist"T
13488 fi
13489
13490 # Make sure that we snagged all the symbols we need.
13491 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13492 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13493 cat <<EOF > conftest.$ac_ext
13494#ifdef __cplusplus
13495extern "C" {
13496#endif
13497
13498EOF
13499 # Now generate the symbol file.
13500 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13501
13502 cat <<EOF >> conftest.$ac_ext
13503#if defined (__STDC__) && __STDC__
13504# define lt_ptr_t void *
13505#else
13506# define lt_ptr_t char *
13507# define const
13508#endif
13509
13510/* The mapping between symbol names and symbols. */
13511const struct {
13512 const char *name;
13513 lt_ptr_t address;
13514}
13515lt_preloaded_symbols[] =
13516{
13517EOF
13518 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13519 cat <<\EOF >> conftest.$ac_ext
13520 {0, (lt_ptr_t) 0}
13521};
13522
13523#ifdef __cplusplus
13524}
13525#endif
13526EOF
13527 # Now try linking the two files.
13528 mv conftest.$ac_objext conftstm.$ac_objext
13529 lt_save_LIBS="$LIBS"
13530 lt_save_CFLAGS="$CFLAGS"
13531 LIBS="conftstm.$ac_objext"
13532 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534 (eval $ac_link) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13538 pipe_works=yes
13539 fi
13540 LIBS="$lt_save_LIBS"
13541 CFLAGS="$lt_save_CFLAGS"
13542 else
13543 echo "cannot find nm_test_func in $nlist" >&5
13544 fi
13545 else
13546 echo "cannot find nm_test_var in $nlist" >&5
13547 fi
13548 else
13549 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13550 fi
13551 else
13552 echo "$progname: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13554 fi
13555 rm -f conftest* conftst*
13556
13557 # Do not use the global_symbol_pipe unless it works.
13558 if test "$pipe_works" = yes; then
13559 break
13560 else
13561 lt_cv_sys_global_symbol_pipe=
13562 fi
13563done
13564
13565fi
13566
13567if test -z "$lt_cv_sys_global_symbol_pipe"; then
13568 lt_cv_sys_global_symbol_to_cdecl=
13569fi
13570if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013571 { echo "$as_me:$LINENO: result: failed" >&5
13572echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013573else
Reid Spencera773bd52006-08-04 18:18:08 +000013574 { echo "$as_me:$LINENO: result: ok" >&5
13575echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013576fi
13577
Reid Spencera773bd52006-08-04 18:18:08 +000013578{ echo "$as_me:$LINENO: checking for objdir" >&5
13579echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013580if test "${lt_cv_objdir+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582else
13583 rm -f .libs 2>/dev/null
13584mkdir .libs 2>/dev/null
13585if test -d .libs; then
13586 lt_cv_objdir=.libs
13587else
13588 # MS-DOS does not allow filenames that begin with a dot.
13589 lt_cv_objdir=_libs
13590fi
13591rmdir .libs 2>/dev/null
13592fi
Reid Spencera773bd52006-08-04 18:18:08 +000013593{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13594echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013595objdir=$lt_cv_objdir
13596
13597
13598
13599
13600
13601case $host_os in
13602aix3*)
13603 # AIX sometimes has problems with the GCC collect2 program. For some
13604 # reason, if we set the COLLECT_NAMES environment variable, the problems
13605 # vanish in a puff of smoke.
13606 if test "X${COLLECT_NAMES+set}" != Xset; then
13607 COLLECT_NAMES=
13608 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013609 fi
13610 ;;
13611esac
13612
John Criswell47fdd832003-07-14 16:52:07 +000013613# Sed substitution that helps us do robust quoting. It backslashifies
13614# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013615Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013616sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13617
13618# Same as above, but do not quote variable references.
13619double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13620
13621# Sed substitution to delay expansion of an escaped shell variable in a
13622# double_quote_subst'ed string.
13623delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13624
13625# Sed substitution to avoid accidental globbing in evaled expressions
13626no_glob_subst='s/\*/\\\*/g'
13627
13628# Constants:
13629rm="rm -f"
13630
13631# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013632default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013633can_build_shared=yes
13634
Reid Spencera773bd52006-08-04 18:18:08 +000013635# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013636# which needs '.lib').
13637libext=a
13638ltmain="$ac_aux_dir/ltmain.sh"
13639ofile="$default_ofile"
13640with_gnu_ld="$lt_cv_prog_gnu_ld"
13641
13642if test -n "$ac_tool_prefix"; then
13643 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13644set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013647if test "${ac_cv_prog_AR+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649else
13650 if test -n "$AR"; then
13651 ac_cv_prog_AR="$AR" # Let the user override the test.
13652else
13653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654for as_dir in $PATH
13655do
13656 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013659 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 +000013660 ac_cv_prog_AR="${ac_tool_prefix}ar"
13661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 break 2
13663 fi
13664done
13665done
Reid Spencera773bd52006-08-04 18:18:08 +000013666IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013667
13668fi
13669fi
13670AR=$ac_cv_prog_AR
13671if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013672 { echo "$as_me:$LINENO: result: $AR" >&5
13673echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013674else
Reid Spencera773bd52006-08-04 18:18:08 +000013675 { echo "$as_me:$LINENO: result: no" >&5
13676echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013677fi
13678
Reid Spencera773bd52006-08-04 18:18:08 +000013679
John Criswell47fdd832003-07-14 16:52:07 +000013680fi
13681if test -z "$ac_cv_prog_AR"; then
13682 ac_ct_AR=$AR
13683 # Extract the first word of "ar", so it can be a program name with args.
13684set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013687if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689else
13690 if test -n "$ac_ct_AR"; then
13691 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13692else
13693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694for as_dir in $PATH
13695do
13696 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=.
13698 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013699 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 +000013700 ac_cv_prog_ac_ct_AR="ar"
13701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 break 2
13703 fi
13704done
13705done
Reid Spencera773bd52006-08-04 18:18:08 +000013706IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013707
John Criswell47fdd832003-07-14 16:52:07 +000013708fi
13709fi
13710ac_ct_AR=$ac_cv_prog_ac_ct_AR
13711if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013712 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13713echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013714else
Reid Spencera773bd52006-08-04 18:18:08 +000013715 { echo "$as_me:$LINENO: result: no" >&5
13716echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013717fi
13718
Reid Spencera773bd52006-08-04 18:18:08 +000013719 if test "x$ac_ct_AR" = x; then
13720 AR="false"
13721 else
13722 case $cross_compiling:$ac_tool_warned in
13723yes:)
13724{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13725whose name does not start with the host triplet. If you think this
13726configuration is useful to you, please write to autoconf@gnu.org." >&5
13727echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13728whose name does not start with the host triplet. If you think this
13729configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13730ac_tool_warned=yes ;;
13731esac
13732 AR=$ac_ct_AR
13733 fi
John Criswell47fdd832003-07-14 16:52:07 +000013734else
13735 AR="$ac_cv_prog_AR"
13736fi
13737
John Criswell7a73b802003-06-30 21:59:07 +000013738if test -n "$ac_tool_prefix"; then
13739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13740set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013743if test "${ac_cv_prog_RANLIB+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13745else
13746 if test -n "$RANLIB"; then
13747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13748else
13749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13750for as_dir in $PATH
13751do
13752 IFS=$as_save_IFS
13753 test -z "$as_dir" && as_dir=.
13754 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013755 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 +000013756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13758 break 2
13759 fi
13760done
13761done
Reid Spencera773bd52006-08-04 18:18:08 +000013762IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013763
13764fi
13765fi
13766RANLIB=$ac_cv_prog_RANLIB
13767if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013768 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13769echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013770else
Reid Spencera773bd52006-08-04 18:18:08 +000013771 { echo "$as_me:$LINENO: result: no" >&5
13772echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013773fi
13774
Reid Spencera773bd52006-08-04 18:18:08 +000013775
John Criswell7a73b802003-06-30 21:59:07 +000013776fi
13777if test -z "$ac_cv_prog_RANLIB"; then
13778 ac_ct_RANLIB=$RANLIB
13779 # Extract the first word of "ranlib", so it can be a program name with args.
13780set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013783if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785else
13786 if test -n "$ac_ct_RANLIB"; then
13787 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13788else
13789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790for as_dir in $PATH
13791do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013795 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 +000013796 ac_cv_prog_ac_ct_RANLIB="ranlib"
13797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13798 break 2
13799 fi
13800done
13801done
Reid Spencera773bd52006-08-04 18:18:08 +000013802IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013803
John Criswell7a73b802003-06-30 21:59:07 +000013804fi
13805fi
13806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13807if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013808 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13809echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013810else
Reid Spencera773bd52006-08-04 18:18:08 +000013811 { echo "$as_me:$LINENO: result: no" >&5
13812echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013813fi
13814
Reid Spencera773bd52006-08-04 18:18:08 +000013815 if test "x$ac_ct_RANLIB" = x; then
13816 RANLIB=":"
13817 else
13818 case $cross_compiling:$ac_tool_warned in
13819yes:)
13820{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13821whose name does not start with the host triplet. If you think this
13822configuration is useful to you, please write to autoconf@gnu.org." >&5
13823echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13824whose name does not start with the host triplet. If you think this
13825configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13826ac_tool_warned=yes ;;
13827esac
13828 RANLIB=$ac_ct_RANLIB
13829 fi
John Criswell7a73b802003-06-30 21:59:07 +000013830else
13831 RANLIB="$ac_cv_prog_RANLIB"
13832fi
13833
13834if test -n "$ac_tool_prefix"; then
13835 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13836set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013839if test "${ac_cv_prog_STRIP+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841else
13842 if test -n "$STRIP"; then
13843 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13844else
13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013851 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 +000013852 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 break 2
13855 fi
13856done
13857done
Reid Spencera773bd52006-08-04 18:18:08 +000013858IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013859
13860fi
13861fi
13862STRIP=$ac_cv_prog_STRIP
13863if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013864 { echo "$as_me:$LINENO: result: $STRIP" >&5
13865echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013866else
Reid Spencera773bd52006-08-04 18:18:08 +000013867 { echo "$as_me:$LINENO: result: no" >&5
13868echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013869fi
13870
Reid Spencera773bd52006-08-04 18:18:08 +000013871
John Criswell7a73b802003-06-30 21:59:07 +000013872fi
13873if test -z "$ac_cv_prog_STRIP"; then
13874 ac_ct_STRIP=$STRIP
13875 # Extract the first word of "strip", so it can be a program name with args.
13876set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013879if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13881else
13882 if test -n "$ac_ct_STRIP"; then
13883 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13884else
13885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886for as_dir in $PATH
13887do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013891 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 +000013892 ac_cv_prog_ac_ct_STRIP="strip"
13893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13895 fi
13896done
13897done
Reid Spencera773bd52006-08-04 18:18:08 +000013898IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013899
John Criswell7a73b802003-06-30 21:59:07 +000013900fi
13901fi
13902ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13903if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013904 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13905echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013906else
Reid Spencera773bd52006-08-04 18:18:08 +000013907 { echo "$as_me:$LINENO: result: no" >&5
13908echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013909fi
13910
Reid Spencera773bd52006-08-04 18:18:08 +000013911 if test "x$ac_ct_STRIP" = x; then
13912 STRIP=":"
13913 else
13914 case $cross_compiling:$ac_tool_warned in
13915yes:)
13916{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13917whose name does not start with the host triplet. If you think this
13918configuration is useful to you, please write to autoconf@gnu.org." >&5
13919echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13920whose name does not start with the host triplet. If you think this
13921configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13922ac_tool_warned=yes ;;
13923esac
13924 STRIP=$ac_ct_STRIP
13925 fi
John Criswell7a73b802003-06-30 21:59:07 +000013926else
13927 STRIP="$ac_cv_prog_STRIP"
13928fi
13929
13930
John Criswell7a73b802003-06-30 21:59:07 +000013931old_CC="$CC"
13932old_CFLAGS="$CFLAGS"
13933
13934# Set sane defaults for various variables
13935test -z "$AR" && AR=ar
13936test -z "$AR_FLAGS" && AR_FLAGS=cru
13937test -z "$AS" && AS=as
13938test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013939test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013940test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013941test -z "$DLLTOOL" && DLLTOOL=dlltool
13942test -z "$LD" && LD=ld
13943test -z "$LN_S" && LN_S="ln -s"
13944test -z "$MAGIC_CMD" && MAGIC_CMD=file
13945test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013946test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013947test -z "$OBJDUMP" && OBJDUMP=objdump
13948test -z "$RANLIB" && RANLIB=:
13949test -z "$STRIP" && STRIP=:
13950test -z "$ac_objext" && ac_objext=o
13951
John Criswell7a73b802003-06-30 21:59:07 +000013952# Determine commands to create old-style static archives.
13953old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13954old_postinstall_cmds='chmod 644 $oldlib'
13955old_postuninstall_cmds=
13956
13957if test -n "$RANLIB"; then
13958 case $host_os in
13959 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013961 ;;
13962 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013964 ;;
13965 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013967fi
13968
Reid Spencera773bd52006-08-04 18:18:08 +000013969for cc_temp in $compiler""; do
13970 case $cc_temp in
13971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13973 \-*) ;;
13974 *) break;;
13975 esac
13976done
13977cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13978
Reid Spencer2706f8c2004-09-19 23:53:36 +000013979
John Criswell47fdd832003-07-14 16:52:07 +000013980# Only perform the check for file, if the check method requires it
13981case $deplibs_check_method in
13982file_magic*)
13983 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013984 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13985echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013986if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013988else
John Criswell47fdd832003-07-14 16:52:07 +000013989 case $MAGIC_CMD in
13990[\\/*] | ?:[\\/]*)
13991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13992 ;;
13993*)
13994 lt_save_MAGIC_CMD="$MAGIC_CMD"
13995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13997 for ac_dir in $ac_dummy; do
13998 IFS="$lt_save_ifs"
13999 test -z "$ac_dir" && ac_dir=.
14000 if test -f $ac_dir/${ac_tool_prefix}file; then
14001 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14002 if test -n "$file_magic_test_file"; then
14003 case $deplibs_check_method in
14004 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14008 $EGREP "$file_magic_regex" > /dev/null; then
14009 :
14010 else
14011 cat <<EOF 1>&2
14012
14013*** Warning: the command libtool uses to detect shared libraries,
14014*** $file_magic_cmd, produces output that libtool cannot recognize.
14015*** The result is that libtool may fail to recognize shared libraries
14016*** as such. This will affect the creation of libtool libraries that
14017*** depend on shared libraries, but programs linked with such libtool
14018*** libraries will work regardless of this problem. Nevertheless, you
14019*** may want to report the problem to your system manager and/or to
14020*** bug-libtool@gnu.org
14021
14022EOF
14023 fi ;;
14024 esac
14025 fi
14026 break
14027 fi
14028 done
14029 IFS="$lt_save_ifs"
14030 MAGIC_CMD="$lt_save_MAGIC_CMD"
14031 ;;
14032esac
John Criswell7a73b802003-06-30 21:59:07 +000014033fi
John Criswell7a73b802003-06-30 21:59:07 +000014034
John Criswell47fdd832003-07-14 16:52:07 +000014035MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14036if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014037 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14038echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014039else
Reid Spencera773bd52006-08-04 18:18:08 +000014040 { echo "$as_me:$LINENO: result: no" >&5
14041echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014042fi
John Criswell7a73b802003-06-30 21:59:07 +000014043
John Criswell47fdd832003-07-14 16:52:07 +000014044if test -z "$lt_cv_path_MAGIC_CMD"; then
14045 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014046 { echo "$as_me:$LINENO: checking for file" >&5
14047echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014048if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050else
14051 case $MAGIC_CMD in
14052[\\/*] | ?:[\\/]*)
14053 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14054 ;;
14055*)
14056 lt_save_MAGIC_CMD="$MAGIC_CMD"
14057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14059 for ac_dir in $ac_dummy; do
14060 IFS="$lt_save_ifs"
14061 test -z "$ac_dir" && ac_dir=.
14062 if test -f $ac_dir/file; then
14063 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14064 if test -n "$file_magic_test_file"; then
14065 case $deplibs_check_method in
14066 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14070 $EGREP "$file_magic_regex" > /dev/null; then
14071 :
14072 else
14073 cat <<EOF 1>&2
14074
14075*** Warning: the command libtool uses to detect shared libraries,
14076*** $file_magic_cmd, produces output that libtool cannot recognize.
14077*** The result is that libtool may fail to recognize shared libraries
14078*** as such. This will affect the creation of libtool libraries that
14079*** depend on shared libraries, but programs linked with such libtool
14080*** libraries will work regardless of this problem. Nevertheless, you
14081*** may want to report the problem to your system manager and/or to
14082*** bug-libtool@gnu.org
14083
14084EOF
14085 fi ;;
14086 esac
14087 fi
14088 break
14089 fi
14090 done
14091 IFS="$lt_save_ifs"
14092 MAGIC_CMD="$lt_save_MAGIC_CMD"
14093 ;;
14094esac
14095fi
14096
14097MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14098if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014099 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14100echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014101else
Reid Spencera773bd52006-08-04 18:18:08 +000014102 { echo "$as_me:$LINENO: result: no" >&5
14103echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014104fi
14105
14106 else
14107 MAGIC_CMD=:
14108 fi
14109fi
14110
14111 fi
14112 ;;
14113esac
14114
Reid Spencer17795972004-11-18 09:47:37 +000014115enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014116enable_win32_dll=no
14117
Reid Spencera773bd52006-08-04 18:18:08 +000014118# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014119if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014120 enableval=$enable_libtool_lock;
14121fi
John Criswell47fdd832003-07-14 16:52:07 +000014122
John Criswell47fdd832003-07-14 16:52:07 +000014123test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14124
John Criswell7a73b802003-06-30 21:59:07 +000014125
Reid Spencera773bd52006-08-04 18:18:08 +000014126# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014127if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014128 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014129else
14130 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014131fi
14132
John Criswell7a73b802003-06-30 21:59:07 +000014133test -z "$pic_mode" && pic_mode=default
14134
John Criswell47fdd832003-07-14 16:52:07 +000014135# Use C for the default configuration in the libtool script
14136tagname=
14137lt_save_CC="$CC"
14138ac_ext=c
14139ac_cpp='$CPP $CPPFLAGS'
14140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14142ac_compiler_gnu=$ac_cv_c_compiler_gnu
14143
14144
14145# Source file extension for C test sources.
14146ac_ext=c
14147
14148# Object file extension for compiled C test sources.
14149objext=o
14150objext=$objext
14151
14152# Code to be used in simple compile tests
14153lt_simple_compile_test_code="int some_variable = 0;\n"
14154
14155# Code to be used in simple link tests
14156lt_simple_link_test_code='int main(){return(0);}\n'
14157
14158
14159# If no C compiler was specified, use CC.
14160LTCC=${LTCC-"$CC"}
14161
Reid Spencera773bd52006-08-04 18:18:08 +000014162# If no C compiler flags were specified, use CFLAGS.
14163LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14164
John Criswell47fdd832003-07-14 16:52:07 +000014165# Allow CC to be a program name with arguments.
14166compiler=$CC
14167
14168
Reid Spencera773bd52006-08-04 18:18:08 +000014169# save warnings/boilerplate of simple test code
14170ac_outfile=conftest.$ac_objext
14171printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14172eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14173_lt_compiler_boilerplate=`cat conftest.err`
14174$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014175
Reid Spencera773bd52006-08-04 18:18:08 +000014176ac_outfile=conftest.$ac_objext
14177printf "$lt_simple_link_test_code" >conftest.$ac_ext
14178eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14179_lt_linker_boilerplate=`cat conftest.err`
14180$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014181
14182
John Criswell47fdd832003-07-14 16:52:07 +000014183
14184lt_prog_compiler_no_builtin_flag=
14185
14186if test "$GCC" = yes; then
14187 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14188
Reid Spencer2706f8c2004-09-19 23:53:36 +000014189
Reid Spencera773bd52006-08-04 18:18:08 +000014190{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14191echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014192if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14194else
14195 lt_cv_prog_compiler_rtti_exceptions=no
14196 ac_outfile=conftest.$ac_objext
14197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14198 lt_compiler_flag="-fno-rtti -fno-exceptions"
14199 # Insert the option either (1) after the last *FLAGS variable, or
14200 # (2) before a word containing "conftest.", or (3) at the end.
14201 # Note that $ac_compile itself does not contain backslashes and begins
14202 # with a dollar sign (not a hyphen), so the echo should work correctly.
14203 # The option is referenced via a variable to avoid confusing sed.
14204 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14207 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000014208 (eval echo "\"\$as_me:14208: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014209 (eval "$lt_compile" 2>conftest.err)
14210 ac_status=$?
14211 cat conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000014212 echo "$as_me:14212: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014213 if (exit $ac_status) && test -s "$ac_outfile"; then
14214 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014215 # So say no if there are warnings other than the usual output.
14216 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14218 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014219 lt_cv_prog_compiler_rtti_exceptions=yes
14220 fi
14221 fi
14222 $rm conftest*
14223
14224fi
Reid Spencera773bd52006-08-04 18:18:08 +000014225{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14226echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014227
14228if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14229 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14230else
14231 :
14232fi
14233
14234fi
14235
14236lt_prog_compiler_wl=
14237lt_prog_compiler_pic=
14238lt_prog_compiler_static=
14239
Reid Spencera773bd52006-08-04 18:18:08 +000014240{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14241echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014242
14243 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014244 lt_prog_compiler_wl='-Wl,'
14245 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014246
14247 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014248 aix*)
14249 # All AIX code is PIC.
14250 if test "$host_cpu" = ia64; then
14251 # AIX 5 now supports IA64 processor
14252 lt_prog_compiler_static='-Bstatic'
14253 fi
John Criswell7a73b802003-06-30 21:59:07 +000014254 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014255
John Criswell7a73b802003-06-30 21:59:07 +000014256 amigaos*)
14257 # FIXME: we need at least 68020 code to build shared libraries, but
14258 # adding the `-m68020' flag to GCC prevents building anything better,
14259 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014260 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014261 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014262
14263 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014264 # PIC is the default for these OSes.
14265 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014266
14267 mingw* | pw32* | os2*)
14268 # This hack is so that the source file can tell whether it is being
14269 # built for inclusion in a dll (and should export symbols for example).
14270 lt_prog_compiler_pic='-DDLL_EXPORT'
14271 ;;
14272
John Criswell7a73b802003-06-30 21:59:07 +000014273 darwin* | rhapsody*)
14274 # PIC is the default on this platform
14275 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014276 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014277 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014278
Reid Spencera773bd52006-08-04 18:18:08 +000014279 interix3*)
14280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14281 # Instead, we relocate shared libraries at runtime.
14282 ;;
14283
John Criswell47fdd832003-07-14 16:52:07 +000014284 msdosdjgpp*)
14285 # Just because we use GCC doesn't mean we suddenly get shared libraries
14286 # on systems that don't support them.
14287 lt_prog_compiler_can_build_shared=no
14288 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014289 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014290
John Criswell7a73b802003-06-30 21:59:07 +000014291 sysv4*MP*)
14292 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014293 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014294 fi
14295 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014296
14297 hpux*)
14298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14299 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014300 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014301 hppa*64*|ia64*)
14302 # +Z the default
14303 ;;
14304 *)
14305 lt_prog_compiler_pic='-fPIC'
14306 ;;
14307 esac
14308 ;;
14309
John Criswell7a73b802003-06-30 21:59:07 +000014310 *)
John Criswell47fdd832003-07-14 16:52:07 +000014311 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014312 ;;
14313 esac
14314 else
John Criswell47fdd832003-07-14 16:52:07 +000014315 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014316 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014317 aix*)
14318 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014319 if test "$host_cpu" = ia64; then
14320 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014321 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014322 else
John Criswell47fdd832003-07-14 16:52:07 +000014323 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014324 fi
14325 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014326 darwin*)
14327 # PIC is the default on this platform
14328 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014329 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014330 xlc*)
14331 lt_prog_compiler_pic='-qnocommon'
14332 lt_prog_compiler_wl='-Wl,'
14333 ;;
14334 esac
14335 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014336
John Criswell47fdd832003-07-14 16:52:07 +000014337 mingw* | pw32* | os2*)
14338 # This hack is so that the source file can tell whether it is being
14339 # built for inclusion in a dll (and should export symbols for example).
14340 lt_prog_compiler_pic='-DDLL_EXPORT'
14341 ;;
14342
John Criswell7a73b802003-06-30 21:59:07 +000014343 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014344 lt_prog_compiler_wl='-Wl,'
14345 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14346 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014347 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014348 hppa*64*|ia64*)
14349 # +Z the default
14350 ;;
14351 *)
14352 lt_prog_compiler_pic='+Z'
14353 ;;
14354 esac
14355 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14356 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014357 ;;
14358
John Criswell47fdd832003-07-14 16:52:07 +000014359 irix5* | irix6* | nonstopux*)
14360 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014361 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014362 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014363 ;;
14364
14365 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014366 lt_prog_compiler_pic='-KPIC'
14367 lt_prog_compiler_static='-Bstatic'
14368 ;;
14369
14370 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014371 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014372 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014373 lt_prog_compiler_wl='-Wl,'
14374 lt_prog_compiler_pic='-KPIC'
14375 lt_prog_compiler_static='-static'
14376 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014377 pgcc* | pgf77* | pgf90* | pgf95*)
14378 # Portland Group compilers (*not* the Pentium gcc compiler,
14379 # which looks to be a dead project)
14380 lt_prog_compiler_wl='-Wl,'
14381 lt_prog_compiler_pic='-fpic'
14382 lt_prog_compiler_static='-Bstatic'
14383 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014384 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014385 lt_prog_compiler_wl='-Wl,'
14386 # All Alpha code is PIC.
14387 lt_prog_compiler_static='-non_shared'
14388 ;;
14389 esac
John Criswell7a73b802003-06-30 21:59:07 +000014390 ;;
14391
14392 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014393 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014394 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014395 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014396 ;;
14397
John Criswell7a73b802003-06-30 21:59:07 +000014398 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014399 lt_prog_compiler_pic='-KPIC'
14400 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014401 case $cc_basename in
14402 f77* | f90* | f95*)
14403 lt_prog_compiler_wl='-Qoption ld ';;
14404 *)
14405 lt_prog_compiler_wl='-Wl,';;
14406 esac
John Criswell7a73b802003-06-30 21:59:07 +000014407 ;;
14408
14409 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014410 lt_prog_compiler_wl='-Qoption ld '
14411 lt_prog_compiler_pic='-PIC'
14412 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014413 ;;
14414
Reid Spencera773bd52006-08-04 18:18:08 +000014415 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014416 lt_prog_compiler_wl='-Wl,'
14417 lt_prog_compiler_pic='-KPIC'
14418 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014419 ;;
14420
14421 sysv4*MP*)
14422 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014423 lt_prog_compiler_pic='-Kconform_pic'
14424 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014425 fi
14426 ;;
14427
Reid Spencera773bd52006-08-04 18:18:08 +000014428 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14429 lt_prog_compiler_wl='-Wl,'
14430 lt_prog_compiler_pic='-KPIC'
14431 lt_prog_compiler_static='-Bstatic'
14432 ;;
14433
14434 unicos*)
14435 lt_prog_compiler_wl='-Wl,'
14436 lt_prog_compiler_can_build_shared=no
14437 ;;
14438
John Criswell47fdd832003-07-14 16:52:07 +000014439 uts4*)
14440 lt_prog_compiler_pic='-pic'
14441 lt_prog_compiler_static='-Bstatic'
14442 ;;
14443
John Criswell7a73b802003-06-30 21:59:07 +000014444 *)
John Criswell47fdd832003-07-14 16:52:07 +000014445 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014446 ;;
14447 esac
14448 fi
14449
Reid Spencera773bd52006-08-04 18:18:08 +000014450{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14451echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014452
John Criswell47fdd832003-07-14 16:52:07 +000014453#
14454# Check to make sure the PIC flag actually works.
14455#
14456if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014457
Reid Spencera773bd52006-08-04 18:18:08 +000014458{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14459echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014460if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462else
John Criswell47fdd832003-07-14 16:52:07 +000014463 lt_prog_compiler_pic_works=no
14464 ac_outfile=conftest.$ac_objext
14465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14467 # Insert the option either (1) after the last *FLAGS variable, or
14468 # (2) before a word containing "conftest.", or (3) at the end.
14469 # Note that $ac_compile itself does not contain backslashes and begins
14470 # with a dollar sign (not a hyphen), so the echo should work correctly.
14471 # The option is referenced via a variable to avoid confusing sed.
14472 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14475 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000014476 (eval echo "\"\$as_me:14476: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014477 (eval "$lt_compile" 2>conftest.err)
14478 ac_status=$?
14479 cat conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000014480 echo "$as_me:14480: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014481 if (exit $ac_status) && test -s "$ac_outfile"; then
14482 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014483 # So say no if there are warnings other than the usual output.
14484 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014487 lt_prog_compiler_pic_works=yes
14488 fi
14489 fi
14490 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014491
John Criswell47fdd832003-07-14 16:52:07 +000014492fi
Reid Spencera773bd52006-08-04 18:18:08 +000014493{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14494echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014495
John Criswell47fdd832003-07-14 16:52:07 +000014496if test x"$lt_prog_compiler_pic_works" = xyes; then
14497 case $lt_prog_compiler_pic in
14498 "" | " "*) ;;
14499 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14500 esac
John Criswell7a73b802003-06-30 21:59:07 +000014501else
John Criswell47fdd832003-07-14 16:52:07 +000014502 lt_prog_compiler_pic=
14503 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014504fi
14505
John Criswell7a73b802003-06-30 21:59:07 +000014506fi
Reid Spencera773bd52006-08-04 18:18:08 +000014507case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014508 # For platforms which do not support PIC, -DPIC is meaningless:
14509 *djgpp*)
14510 lt_prog_compiler_pic=
14511 ;;
14512 *)
14513 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14514 ;;
14515esac
John Criswell7a73b802003-06-30 21:59:07 +000014516
Reid Spencera773bd52006-08-04 18:18:08 +000014517#
14518# Check to make sure the static flag actually works.
14519#
14520wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14521{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14522echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14523if test "${lt_prog_compiler_static_works+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
14526 lt_prog_compiler_static_works=no
14527 save_LDFLAGS="$LDFLAGS"
14528 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14529 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14530 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14531 # The linker can only warn and ignore the option if not recognized
14532 # So say no if there are warnings
14533 if test -s conftest.err; then
14534 # Append any errors to the config.log.
14535 cat conftest.err 1>&5
14536 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538 if diff conftest.exp conftest.er2 >/dev/null; then
14539 lt_prog_compiler_static_works=yes
14540 fi
14541 else
14542 lt_prog_compiler_static_works=yes
14543 fi
14544 fi
14545 $rm conftest*
14546 LDFLAGS="$save_LDFLAGS"
14547
14548fi
14549{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14550echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14551
14552if test x"$lt_prog_compiler_static_works" = xyes; then
14553 :
14554else
14555 lt_prog_compiler_static=
14556fi
14557
14558
14559{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14560echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014561if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014562 echo $ECHO_N "(cached) $ECHO_C" >&6
14563else
John Criswell47fdd832003-07-14 16:52:07 +000014564 lt_cv_prog_compiler_c_o=no
14565 $rm -r conftest 2>/dev/null
14566 mkdir conftest
14567 cd conftest
14568 mkdir out
14569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014570
John Criswell47fdd832003-07-14 16:52:07 +000014571 lt_compiler_flag="-o out/conftest2.$ac_objext"
14572 # Insert the option either (1) after the last *FLAGS variable, or
14573 # (2) before a word containing "conftest.", or (3) at the end.
14574 # Note that $ac_compile itself does not contain backslashes and begins
14575 # with a dollar sign (not a hyphen), so the echo should work correctly.
14576 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14579 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000014580 (eval echo "\"\$as_me:14580: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014581 (eval "$lt_compile" 2>out/conftest.err)
14582 ac_status=$?
14583 cat out/conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000014584 echo "$as_me:14584: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14586 then
14587 # The compiler can only warn and ignore the option if not recognized
14588 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014589 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014592 lt_cv_prog_compiler_c_o=yes
14593 fi
14594 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014595 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014596 $rm conftest*
14597 # SGI C++ compiler will create directory out/ii_files/ for
14598 # template instantiation
14599 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14600 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014601 cd ..
14602 rmdir conftest
14603 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014604
14605fi
Reid Spencera773bd52006-08-04 18:18:08 +000014606{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14607echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014608
John Criswell7a73b802003-06-30 21:59:07 +000014609
John Criswell7a73b802003-06-30 21:59:07 +000014610hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014611if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014612 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014613 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14614echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014615 hard_links=yes
14616 $rm conftest*
14617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618 touch conftest.a
14619 ln conftest.a conftest.b 2>&5 || hard_links=no
14620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014621 { echo "$as_me:$LINENO: result: $hard_links" >&5
14622echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014623 if test "$hard_links" = no; then
14624 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14625echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14626 need_locks=warn
14627 fi
14628else
14629 need_locks=no
14630fi
John Criswell7a73b802003-06-30 21:59:07 +000014631
Reid Spencera773bd52006-08-04 18:18:08 +000014632{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14633echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014634
14635 runpath_var=
14636 allow_undefined_flag=
14637 enable_shared_with_static_runtimes=no
14638 archive_cmds=
14639 archive_expsym_cmds=
14640 old_archive_From_new_cmds=
14641 old_archive_from_expsyms_cmds=
14642 export_dynamic_flag_spec=
14643 whole_archive_flag_spec=
14644 thread_safe_flag_spec=
14645 hardcode_libdir_flag_spec=
14646 hardcode_libdir_flag_spec_ld=
14647 hardcode_libdir_separator=
14648 hardcode_direct=no
14649 hardcode_minus_L=no
14650 hardcode_shlibpath_var=unsupported
14651 link_all_deplibs=unknown
14652 hardcode_automatic=no
14653 module_cmds=
14654 module_expsym_cmds=
14655 always_export_symbols=no
14656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14657 # include_expsyms should be a list of space-separated symbols to be *always*
14658 # included in the symbol list
14659 include_expsyms=
14660 # exclude_expsyms can be an extended regexp of symbols to exclude
14661 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14662 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14663 # as well as any symbol that contains `d'.
14664 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14666 # platforms (ab)use it in PIC code, but their linkers get confused if
14667 # the symbol is explicitly referenced. Since portable code cannot
14668 # rely on this symbol name, it's probably fine to never include it in
14669 # preloaded symbol tables.
14670 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014671 # Just being paranoid about ensuring that cc_basename is set.
14672 for cc_temp in $compiler""; do
14673 case $cc_temp in
14674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14676 \-*) ;;
14677 *) break;;
14678 esac
14679done
14680cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014681
14682 case $host_os in
14683 cygwin* | mingw* | pw32*)
14684 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14685 # When not using gcc, we currently assume that we are using
14686 # Microsoft Visual C++.
14687 if test "$GCC" != yes; then
14688 with_gnu_ld=no
14689 fi
14690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014691 interix*)
14692 # we just hope/assume this is gcc and not c89 (= MSVC++)
14693 with_gnu_ld=yes
14694 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014695 openbsd*)
14696 with_gnu_ld=no
14697 ;;
14698 esac
14699
14700 ld_shlibs=yes
14701 if test "$with_gnu_ld" = yes; then
14702 # If archive_cmds runs LD, not CC, wlarc should be empty
14703 wlarc='${wl}'
14704
Reid Spencera773bd52006-08-04 18:18:08 +000014705 # Set some defaults for GNU ld with shared library support. These
14706 # are reset later if shared libraries are not supported. Putting them
14707 # here allows them to be overridden if necessary.
14708 runpath_var=LD_RUN_PATH
14709 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14710 export_dynamic_flag_spec='${wl}--export-dynamic'
14711 # ancient GNU ld didn't support --whole-archive et. al.
14712 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14713 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14714 else
14715 whole_archive_flag_spec=
14716 fi
14717 supports_anon_versioning=no
14718 case `$LD -v 2>/dev/null` in
14719 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14720 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14721 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14722 *\ 2.11.*) ;; # other 2.11 versions
14723 *) supports_anon_versioning=yes ;;
14724 esac
14725
John Criswell47fdd832003-07-14 16:52:07 +000014726 # See if GNU ld supports shared libraries.
14727 case $host_os in
14728 aix3* | aix4* | aix5*)
14729 # On AIX/PPC, the GNU linker is very broken
14730 if test "$host_cpu" != ia64; then
14731 ld_shlibs=no
14732 cat <<EOF 1>&2
14733
14734*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14735*** to be unable to reliably create shared libraries on AIX.
14736*** Therefore, libtool is disabling shared libraries support. If you
14737*** really care for shared libraries, you may want to modify your PATH
14738*** so that a non-GNU linker is found, and then restart.
14739
14740EOF
14741 fi
14742 ;;
14743
14744 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014745 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 +000014746 hardcode_libdir_flag_spec='-L$libdir'
14747 hardcode_minus_L=yes
14748
14749 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14750 # that the semantics of dynamic libraries on AmigaOS, at least up
14751 # to version 4, is to share data among multiple programs linked
14752 # with the same dynamic library. Since this doesn't match the
14753 # behavior of shared libraries on other platforms, we can't use
14754 # them.
14755 ld_shlibs=no
14756 ;;
14757
14758 beos*)
14759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14760 allow_undefined_flag=unsupported
14761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14762 # support --undefined. This deserves some investigation. FIXME
14763 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14764 else
14765 ld_shlibs=no
14766 fi
14767 ;;
14768
14769 cygwin* | mingw* | pw32*)
14770 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14771 # as there is no search path for DLLs.
14772 hardcode_libdir_flag_spec='-L$libdir'
14773 allow_undefined_flag=unsupported
14774 always_export_symbols=no
14775 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014776 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 +000014777
14778 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014779 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 +000014780 # If the export-symbols file already is a .def file (1st line
14781 # is EXPORTS), use it as is; otherwise, prepend...
14782 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14783 cp $export_symbols $output_objdir/$soname.def;
14784 else
14785 echo EXPORTS > $output_objdir/$soname.def;
14786 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014787 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014788 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14789 else
14790 ld_shlibs=no
14791 fi
14792 ;;
14793
14794 interix3*)
14795 hardcode_direct=no
14796 hardcode_shlibpath_var=no
14797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14798 export_dynamic_flag_spec='${wl}-E'
14799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14800 # Instead, shared libraries are loaded at an image base (0x10000000 by
14801 # default) and relocated if they conflict, which is a slow very memory
14802 # consuming and fragmenting process. To avoid this, we pick a random,
14803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14804 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14805 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14806 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'
14807 ;;
14808
14809 linux*)
14810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14811 tmp_addflag=
14812 case $cc_basename,$host_cpu in
14813 pgcc*) # Portland Group C compiler
14814 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'
14815 tmp_addflag=' $pic_flag'
14816 ;;
14817 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14818 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'
14819 tmp_addflag=' $pic_flag -Mnomain' ;;
14820 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14821 tmp_addflag=' -i_dynamic' ;;
14822 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14823 tmp_addflag=' -i_dynamic -nofor_main' ;;
14824 ifc* | ifort*) # Intel Fortran compiler
14825 tmp_addflag=' -nofor_main' ;;
14826 esac
14827 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14828
14829 if test $supports_anon_versioning = yes; then
14830 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14831 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14832 $echo "local: *; };" >> $output_objdir/$libname.ver~
14833 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14834 fi
John Criswell47fdd832003-07-14 16:52:07 +000014835 else
14836 ld_shlibs=no
14837 fi
14838 ;;
14839
14840 netbsd*)
14841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14842 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14843 wlarc=
14844 else
14845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14847 fi
14848 ;;
14849
Reid Spencera773bd52006-08-04 18:18:08 +000014850 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014851 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14852 ld_shlibs=no
14853 cat <<EOF 1>&2
14854
14855*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14856*** create shared libraries on Solaris systems. Therefore, libtool
14857*** is disabling shared libraries support. We urge you to upgrade GNU
14858*** binutils to release 2.9.1 or newer. Another option is to modify
14859*** your PATH or compiler configuration so that the native linker is
14860*** used, and then restart.
14861
14862EOF
14863 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14866 else
14867 ld_shlibs=no
14868 fi
14869 ;;
14870
Reid Spencera773bd52006-08-04 18:18:08 +000014871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14872 case `$LD -v 2>&1` in
14873 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14874 ld_shlibs=no
14875 cat <<_LT_EOF 1>&2
14876
14877*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14878*** reliably create shared libraries on SCO systems. Therefore, libtool
14879*** is disabling shared libraries support. We urge you to upgrade GNU
14880*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14881*** your PATH or compiler configuration so that the native linker is
14882*** used, and then restart.
14883
14884_LT_EOF
14885 ;;
14886 *)
14887 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14888 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14891 else
14892 ld_shlibs=no
14893 fi
14894 ;;
14895 esac
14896 ;;
14897
John Criswell47fdd832003-07-14 16:52:07 +000014898 sunos4*)
14899 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14900 wlarc=
14901 hardcode_direct=yes
14902 hardcode_shlibpath_var=no
14903 ;;
14904
14905 *)
14906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14909 else
14910 ld_shlibs=no
14911 fi
14912 ;;
14913 esac
14914
Reid Spencera773bd52006-08-04 18:18:08 +000014915 if test "$ld_shlibs" = no; then
14916 runpath_var=
14917 hardcode_libdir_flag_spec=
14918 export_dynamic_flag_spec=
14919 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014920 fi
14921 else
14922 # PORTME fill in a description of your system's linker (not GNU ld)
14923 case $host_os in
14924 aix3*)
14925 allow_undefined_flag=unsupported
14926 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014927 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 +000014928 # Note: this linker hardcodes the directories in LIBPATH if there
14929 # are no directories specified by -L.
14930 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014931 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014932 # Neither direct hardcoding nor static linking is supported with a
14933 # broken collect2.
14934 hardcode_direct=unsupported
14935 fi
14936 ;;
14937
14938 aix4* | aix5*)
14939 if test "$host_cpu" = ia64; then
14940 # On IA64, the linker does run time linking by default, so we don't
14941 # have to do anything special.
14942 aix_use_runtimelinking=no
14943 exp_sym_flag='-Bexport'
14944 no_entry_flag=""
14945 else
14946 # If we're using GNU nm, then we don't want the "-C" option.
14947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14948 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14949 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'
14950 else
14951 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'
14952 fi
14953 aix_use_runtimelinking=no
14954
14955 # Test if we are trying to use run time linking or normal
14956 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14957 # need to do runtime linking.
14958 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14959 for ld_flag in $LDFLAGS; do
14960 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14961 aix_use_runtimelinking=yes
14962 break
14963 fi
14964 done
Reid Spencera773bd52006-08-04 18:18:08 +000014965 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014966 esac
14967
14968 exp_sym_flag='-bexport'
14969 no_entry_flag='-bnoentry'
14970 fi
14971
14972 # When large executables or shared objects are built, AIX ld can
14973 # have problems creating the table of contents. If linking a library
14974 # or program results in "error TOC overflow" add -mminimal-toc to
14975 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14976 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14977
14978 archive_cmds=''
14979 hardcode_direct=yes
14980 hardcode_libdir_separator=':'
14981 link_all_deplibs=yes
14982
14983 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014984 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014985 # We only want to do this on AIX 4.2 and lower, the check
14986 # below for broken collect2 doesn't work under 4.3+
14987 collect2name=`${CC} -print-prog-name=collect2`
14988 if test -f "$collect2name" && \
14989 strings "$collect2name" | grep resolve_lib_name >/dev/null
14990 then
14991 # We have reworked collect2
14992 hardcode_direct=yes
14993 else
14994 # We have old collect2
14995 hardcode_direct=unsupported
14996 # It fails to find uninstalled libraries when the uninstalled
14997 # path is not listed in the libpath. Setting hardcode_minus_L
14998 # to unsupported forces relinking
14999 hardcode_minus_L=yes
15000 hardcode_libdir_flag_spec='-L$libdir'
15001 hardcode_libdir_separator=
15002 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015003 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015004 esac
15005 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015006 if test "$aix_use_runtimelinking" = yes; then
15007 shared_flag="$shared_flag "'${wl}-G'
15008 fi
John Criswell47fdd832003-07-14 16:52:07 +000015009 else
15010 # not using gcc
15011 if test "$host_cpu" = ia64; then
15012 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15013 # chokes on -Wl,-G. The following line is correct:
15014 shared_flag='-G'
15015 else
Reid Spencera773bd52006-08-04 18:18:08 +000015016 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015017 shared_flag='${wl}-G'
15018 else
15019 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015020 fi
John Criswell47fdd832003-07-14 16:52:07 +000015021 fi
15022 fi
15023
15024 # It seems that -bexpall does not export symbols beginning with
15025 # underscore (_), so it is better to generate a list of symbols to export.
15026 always_export_symbols=yes
15027 if test "$aix_use_runtimelinking" = yes; then
15028 # Warning - without using the other runtime loading flags (-brtl),
15029 # -berok will link without error, but may produce a broken library.
15030 allow_undefined_flag='-berok'
15031 # Determine the default libpath from the value encoded in an empty executable.
15032 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015033/* confdefs.h. */
15034_ACEOF
15035cat confdefs.h >>conftest.$ac_ext
15036cat >>conftest.$ac_ext <<_ACEOF
15037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015038
John Criswell7a73b802003-06-30 21:59:07 +000015039int
15040main ()
15041{
John Criswell47fdd832003-07-14 16:52:07 +000015042
John Criswell7a73b802003-06-30 21:59:07 +000015043 ;
15044 return 0;
15045}
15046_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015047rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015048if { (ac_try="$ac_link"
15049case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015055 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015072 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015081
John Criswell47fdd832003-07-14 16:52:07 +000015082aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15083}'`
15084# Check for a 64-bit object if we didn't find anything.
15085if 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; }
15086}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015087else
15088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015089sed 's/^/| /' conftest.$ac_ext >&5
15090
Reid Spencera773bd52006-08-04 18:18:08 +000015091
John Criswell7a73b802003-06-30 21:59:07 +000015092fi
Reid Spencera773bd52006-08-04 18:18:08 +000015093
15094rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015095 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015097
John Criswell47fdd832003-07-14 16:52:07 +000015098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015099 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 +000015100 else
15101 if test "$host_cpu" = ia64; then
15102 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15103 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015104 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 +000015105 else
15106 # Determine the default libpath from the value encoded in an empty executable.
15107 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015113
John Criswell47fdd832003-07-14 16:52:07 +000015114int
15115main ()
15116{
John Criswell7a73b802003-06-30 21:59:07 +000015117
John Criswell47fdd832003-07-14 16:52:07 +000015118 ;
15119 return 0;
15120}
15121_ACEOF
15122rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015123if { (ac_try="$ac_link"
15124case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127esac
15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015130 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15137 { (case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140esac
15141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015147 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015156
John Criswell47fdd832003-07-14 16:52:07 +000015157aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15158}'`
15159# Check for a 64-bit object if we didn't find anything.
15160if 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; }
15161}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015162else
John Criswell47fdd832003-07-14 16:52:07 +000015163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015164sed 's/^/| /' conftest.$ac_ext >&5
15165
Reid Spencera773bd52006-08-04 18:18:08 +000015166
John Criswell47fdd832003-07-14 16:52:07 +000015167fi
Reid Spencera773bd52006-08-04 18:18:08 +000015168
15169rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015170 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015171if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015172
John Criswell47fdd832003-07-14 16:52:07 +000015173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15174 # Warning - without using the other run time loading flags,
15175 # -berok will link without error, but may produce a broken library.
15176 no_undefined_flag=' ${wl}-bernotok'
15177 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015178 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015179 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015180 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015181 # This is similar to how AIX traditionally builds its shared libraries.
15182 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 +000015183 fi
15184 fi
John Criswell7a73b802003-06-30 21:59:07 +000015185 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015186
15187 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015188 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 +000015189 hardcode_libdir_flag_spec='-L$libdir'
15190 hardcode_minus_L=yes
15191 # see comment about different semantics on the GNU ld section
15192 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015193 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015194
Reid Spencer2706f8c2004-09-19 23:53:36 +000015195 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015196 export_dynamic_flag_spec=-rdynamic
15197 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015198
John Criswell47fdd832003-07-14 16:52:07 +000015199 cygwin* | mingw* | pw32*)
15200 # When not using gcc, we currently assume that we are using
15201 # Microsoft Visual C++.
15202 # hardcode_libdir_flag_spec is actually meaningless, as there is
15203 # no search path for DLLs.
15204 hardcode_libdir_flag_spec=' '
15205 allow_undefined_flag=unsupported
15206 # Tell ltmain to make .lib files, not .a files.
15207 libext=lib
15208 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015209 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015210 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015212 # The linker will automatically build a .lib file if we build a DLL.
15213 old_archive_From_new_cmds='true'
15214 # FIXME: Should let the user specify the lib program.
15215 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15216 fix_srcfile_path='`cygpath -w "$srcfile"`'
15217 enable_shared_with_static_runtimes=yes
15218 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015219
John Criswell47fdd832003-07-14 16:52:07 +000015220 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015221 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015222 rhapsody* | darwin1.[012])
15223 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15224 ;;
15225 *) # Darwin 1.3 on
15226 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15227 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15228 else
15229 case ${MACOSX_DEPLOYMENT_TARGET} in
15230 10.[012])
15231 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15232 ;;
15233 10.*)
15234 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15235 ;;
15236 esac
15237 fi
15238 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015239 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015240 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015241 hardcode_direct=no
15242 hardcode_automatic=yes
15243 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015244 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015245 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015246 if test "$GCC" = yes ; then
15247 output_verbose_link_cmd='echo'
15248 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15249 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015250 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000015251 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15252 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015253 else
Reid Spencera773bd52006-08-04 18:18:08 +000015254 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015255 xlc*)
15256 output_verbose_link_cmd='echo'
15257 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15258 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015259 # 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 +000015260 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}'
15261 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 +000015262 ;;
15263 *)
15264 ld_shlibs=no
15265 ;;
15266 esac
John Criswell7a73b802003-06-30 21:59:07 +000015267 fi
John Criswell47fdd832003-07-14 16:52:07 +000015268 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015269
John Criswell47fdd832003-07-14 16:52:07 +000015270 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015272 hardcode_libdir_flag_spec='-L$libdir'
15273 hardcode_shlibpath_var=no
15274 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015275
John Criswell47fdd832003-07-14 16:52:07 +000015276 freebsd1*)
15277 ld_shlibs=no
15278 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015279
John Criswell47fdd832003-07-14 16:52:07 +000015280 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15281 # support. Future versions do this automatically, but an explicit c++rt0.o
15282 # does not break anything, and helps significantly (at the cost of a little
15283 # extra space).
15284 freebsd2.2*)
15285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15286 hardcode_libdir_flag_spec='-R$libdir'
15287 hardcode_direct=yes
15288 hardcode_shlibpath_var=no
15289 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015290
John Criswell47fdd832003-07-14 16:52:07 +000015291 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15292 freebsd2*)
15293 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15294 hardcode_direct=yes
15295 hardcode_minus_L=yes
15296 hardcode_shlibpath_var=no
15297 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015298
John Criswell47fdd832003-07-14 16:52:07 +000015299 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015300 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015301 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15302 hardcode_libdir_flag_spec='-R$libdir'
15303 hardcode_direct=yes
15304 hardcode_shlibpath_var=no
15305 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015306
John Criswell47fdd832003-07-14 16:52:07 +000015307 hpux9*)
15308 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015309 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 +000015310 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015311 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 +000015312 fi
15313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15314 hardcode_libdir_separator=:
15315 hardcode_direct=yes
15316
15317 # hardcode_minus_L: Not really in the search PATH,
15318 # but as the default location of the library.
15319 hardcode_minus_L=yes
15320 export_dynamic_flag_spec='${wl}-E'
15321 ;;
15322
Reid Spencera773bd52006-08-04 18:18:08 +000015323 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015324 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015325 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15326 else
15327 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15328 fi
15329 if test "$with_gnu_ld" = no; then
15330 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15331 hardcode_libdir_separator=:
15332
15333 hardcode_direct=yes
15334 export_dynamic_flag_spec='${wl}-E'
15335
15336 # hardcode_minus_L: Not really in the search PATH,
15337 # but as the default location of the library.
15338 hardcode_minus_L=yes
15339 fi
15340 ;;
15341
15342 hpux11*)
15343 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15344 case $host_cpu in
15345 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015346 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15347 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015348 ia64*)
15349 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15350 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015351 *)
15352 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15353 ;;
15354 esac
15355 else
Reid Spencera773bd52006-08-04 18:18:08 +000015356 case $host_cpu in
15357 hppa*64*)
15358 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15359 ;;
15360 ia64*)
15361 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015362 ;;
15363 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015364 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 +000015365 ;;
15366 esac
15367 fi
15368 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15370 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015371
Reid Spencera773bd52006-08-04 18:18:08 +000015372 case $host_cpu in
15373 hppa*64*|ia64*)
15374 hardcode_libdir_flag_spec_ld='+b $libdir'
15375 hardcode_direct=no
15376 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015377 ;;
15378 *)
John Criswell47fdd832003-07-14 16:52:07 +000015379 hardcode_direct=yes
15380 export_dynamic_flag_spec='${wl}-E'
15381
15382 # hardcode_minus_L: Not really in the search PATH,
15383 # but as the default location of the library.
15384 hardcode_minus_L=yes
15385 ;;
15386 esac
15387 fi
15388 ;;
15389
15390 irix5* | irix6* | nonstopux*)
15391 if test "$GCC" = yes; then
15392 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'
15393 else
15394 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'
15395 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15396 fi
15397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15398 hardcode_libdir_separator=:
15399 link_all_deplibs=yes
15400 ;;
15401
15402 netbsd*)
15403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15405 else
15406 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15407 fi
15408 hardcode_libdir_flag_spec='-R$libdir'
15409 hardcode_direct=yes
15410 hardcode_shlibpath_var=no
15411 ;;
15412
15413 newsos6)
15414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415 hardcode_direct=yes
15416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15417 hardcode_libdir_separator=:
15418 hardcode_shlibpath_var=no
15419 ;;
15420
15421 openbsd*)
15422 hardcode_direct=yes
15423 hardcode_shlibpath_var=no
15424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015426 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 +000015427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15428 export_dynamic_flag_spec='${wl}-E'
15429 else
15430 case $host_os in
15431 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_libdir_flag_spec='-R$libdir'
15434 ;;
15435 *)
15436 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15437 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15438 ;;
15439 esac
15440 fi
15441 ;;
15442
15443 os2*)
15444 hardcode_libdir_flag_spec='-L$libdir'
15445 hardcode_minus_L=yes
15446 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015447 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 +000015448 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15449 ;;
15450
15451 osf3*)
15452 if test "$GCC" = yes; then
15453 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15454 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'
15455 else
15456 allow_undefined_flag=' -expect_unresolved \*'
15457 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'
15458 fi
15459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15460 hardcode_libdir_separator=:
15461 ;;
15462
15463 osf4* | osf5*) # as osf3* with the addition of -msym flag
15464 if test "$GCC" = yes; then
15465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15466 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'
15467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15468 else
15469 allow_undefined_flag=' -expect_unresolved \*'
15470 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 +000015471 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 +000015472 $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 +000015473
John Criswell47fdd832003-07-14 16:52:07 +000015474 # Both c and cxx compiler support -rpath directly
15475 hardcode_libdir_flag_spec='-rpath $libdir'
15476 fi
15477 hardcode_libdir_separator=:
15478 ;;
15479
John Criswell47fdd832003-07-14 16:52:07 +000015480 solaris*)
15481 no_undefined_flag=' -z text'
15482 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015483 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015484 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015485 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15486 $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 +000015487 else
Reid Spencera773bd52006-08-04 18:18:08 +000015488 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015489 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015490 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15491 $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 +000015492 fi
15493 hardcode_libdir_flag_spec='-R$libdir'
15494 hardcode_shlibpath_var=no
15495 case $host_os in
15496 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015497 *)
15498 # The compiler driver will combine linker options so we
15499 # cannot just pass the convience library names through
15500 # without $wl, iff we do not link with $LD.
15501 # Luckily, gcc supports the same syntax we need for Sun Studio.
15502 # Supported since Solaris 2.6 (maybe 2.5.1?)
15503 case $wlarc in
15504 '')
15505 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15506 *)
15507 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' ;;
15508 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015509 esac
15510 link_all_deplibs=yes
15511 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015512
John Criswell47fdd832003-07-14 16:52:07 +000015513 sunos4*)
15514 if test "x$host_vendor" = xsequent; then
15515 # Use $CC to link under sequent, because it throws in some extra .o
15516 # files that make .init and .fini sections work.
15517 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15518 else
15519 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15520 fi
15521 hardcode_libdir_flag_spec='-L$libdir'
15522 hardcode_direct=yes
15523 hardcode_minus_L=yes
15524 hardcode_shlibpath_var=no
15525 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015526
John Criswell47fdd832003-07-14 16:52:07 +000015527 sysv4)
15528 case $host_vendor in
15529 sni)
15530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531 hardcode_direct=yes # is this really true???
15532 ;;
15533 siemens)
15534 ## LD is ld it makes a PLAMLIB
15535 ## CC just makes a GrossModule.
15536 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15537 reload_cmds='$CC -r -o $output$reload_objs'
15538 hardcode_direct=no
15539 ;;
15540 motorola)
15541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15543 ;;
15544 esac
15545 runpath_var='LD_RUN_PATH'
15546 hardcode_shlibpath_var=no
15547 ;;
15548
15549 sysv4.3*)
15550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15551 hardcode_shlibpath_var=no
15552 export_dynamic_flag_spec='-Bexport'
15553 ;;
15554
15555 sysv4*MP*)
15556 if test -d /usr/nec; then
15557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15558 hardcode_shlibpath_var=no
15559 runpath_var=LD_RUN_PATH
15560 hardcode_runpath_var=yes
15561 ld_shlibs=yes
15562 fi
15563 ;;
15564
Reid Spencera773bd52006-08-04 18:18:08 +000015565 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15566 no_undefined_flag='${wl}-z,text'
15567 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015568 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015569 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015570
John Criswell47fdd832003-07-14 16:52:07 +000015571 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015572 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15573 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 +000015574 else
Reid Spencera773bd52006-08-04 18:18:08 +000015575 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15576 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 +000015577 fi
John Criswell47fdd832003-07-14 16:52:07 +000015578 ;;
15579
Reid Spencera773bd52006-08-04 18:18:08 +000015580 sysv5* | sco3.2v5* | sco5v6*)
15581 # Note: We can NOT use -z defs as we might desire, because we do not
15582 # link with -lc, and that would cause any symbols used from libc to
15583 # always be unresolved, which means just about no library would
15584 # ever link correctly. If we're not using GNU ld we use -z text
15585 # though, which does catch some bad symbols but isn't as heavy-handed
15586 # as -z defs.
15587 no_undefined_flag='${wl}-z,text'
15588 allow_undefined_flag='${wl}-z,nodefs'
15589 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015590 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015591 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15592 hardcode_libdir_separator=':'
15593 link_all_deplibs=yes
15594 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015595 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015596
15597 if test "$GCC" = yes; then
15598 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 else
15601 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 fi
John Criswell47fdd832003-07-14 16:52:07 +000015604 ;;
15605
15606 uts4*)
15607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 hardcode_libdir_flag_spec='-L$libdir'
15609 hardcode_shlibpath_var=no
15610 ;;
15611
15612 *)
15613 ld_shlibs=no
15614 ;;
15615 esac
15616 fi
15617
Reid Spencera773bd52006-08-04 18:18:08 +000015618{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15619echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015620test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015621
John Criswell47fdd832003-07-14 16:52:07 +000015622#
15623# Do we need to explicitly link libc?
15624#
15625case "x$archive_cmds_need_lc" in
15626x|xyes)
15627 # Assume -lc should be added
15628 archive_cmds_need_lc=yes
15629
15630 if test "$enable_shared" = yes && test "$GCC" = yes; then
15631 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015632 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015633 # FIXME: we may have to deal with multi-command sequences.
15634 ;;
15635 '$CC '*)
15636 # Test whether the compiler implicitly links with -lc since on some
15637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15638 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015639 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15640echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015641 $rm conftest*
15642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15643
15644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15645 (eval $ac_compile) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } 2>conftest.err; then
15649 soname=conftest
15650 lib=conftest
15651 libobjs=conftest.$ac_objext
15652 deplibs=
15653 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015654 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015655 compiler_flags=-v
15656 linker_flags=-v
15657 verstring=
15658 output_objdir=.
15659 libname=conftest
15660 lt_save_allow_undefined_flag=$allow_undefined_flag
15661 allow_undefined_flag=
15662 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15663 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }
15667 then
15668 archive_cmds_need_lc=no
15669 else
15670 archive_cmds_need_lc=yes
15671 fi
15672 allow_undefined_flag=$lt_save_allow_undefined_flag
15673 else
15674 cat conftest.err 1>&5
15675 fi
15676 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015677 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15678echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015679 ;;
15680 esac
15681 fi
15682 ;;
15683esac
15684
Reid Spencera773bd52006-08-04 18:18:08 +000015685{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15686echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015687library_names_spec=
15688libname_spec='lib$name'
15689soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015690shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015691postinstall_cmds=
15692postuninstall_cmds=
15693finish_cmds=
15694finish_eval=
15695shlibpath_var=
15696shlibpath_overrides_runpath=unknown
15697version_type=none
15698dynamic_linker="$host_os ld.so"
15699sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015700if test "$GCC" = yes; then
15701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15702 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15703 # if the path contains ";" then we assume it to be the separator
15704 # otherwise default to the standard path separator (i.e. ":") - it is
15705 # assumed that no part of a normal pathname contains ";" but that should
15706 # okay in the real world where ";" in dirpaths is itself problematic.
15707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15708 else
15709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15710 fi
15711else
15712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15713fi
15714need_lib_prefix=unknown
15715hardcode_into_libs=no
15716
15717# when you set need_version to no, make sure it does not cause -set_version
15718# flags to be left without arguments
15719need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015720
15721case $host_os in
15722aix3*)
15723 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015725 shlibpath_var=LIBPATH
15726
John Criswell47fdd832003-07-14 16:52:07 +000015727 # AIX 3 has no versioning support, so we append a major version to the name.
15728 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015729 ;;
15730
15731aix4* | aix5*)
15732 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015733 need_lib_prefix=no
15734 need_version=no
15735 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015736 if test "$host_cpu" = ia64; then
15737 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015739 shlibpath_var=LD_LIBRARY_PATH
15740 else
15741 # With GCC up to 2.95.x, collect2 would create an import file
15742 # for dependence libraries. The import file would start with
15743 # the line `#! .'. This would cause the generated library to
15744 # depend on `.', always an invalid library. This was fixed in
15745 # development snapshots of GCC prior to 3.0.
15746 case $host_os in
15747 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15749 echo ' yes '
15750 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15751 :
15752 else
15753 can_build_shared=no
15754 fi
15755 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015756 esac
John Criswell47fdd832003-07-14 16:52:07 +000015757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15758 # soname into executable. Probably we can add versioning support to
15759 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015760 if test "$aix_use_runtimelinking" = yes; then
15761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15762 # instead of lib<name>.a to let people know that these are not
15763 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015765 else
15766 # We preserve .a as extension for shared libraries through AIX4.2
15767 # and later when we are not doing run time linking.
15768 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015769 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015770 fi
15771 shlibpath_var=LIBPATH
15772 fi
15773 ;;
15774
15775amigaos*)
15776 library_names_spec='$libname.ixlibrary $libname.a'
15777 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015778 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 +000015779 ;;
15780
15781beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015782 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015783 dynamic_linker="$host_os ld.so"
15784 shlibpath_var=LIBRARY_PATH
15785 ;;
15786
Reid Spencer2706f8c2004-09-19 23:53:36 +000015787bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015788 version_type=linux
15789 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015796 # the default ld.so.conf also contains /usr/contrib/lib and
15797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15798 # libtool to hard-code these into programs
15799 ;;
15800
15801cygwin* | mingw* | pw32*)
15802 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015803 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015804 need_version=no
15805 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015806
John Criswell7a73b802003-06-30 21:59:07 +000015807 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015808 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015809 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015811 postinstall_cmds='base_file=`basename \${file}`~
15812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15813 dldir=$destdir/`dirname \$dlpath`~
15814 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015815 $install_prog $dir/$dlname \$dldir/$dlname~
15816 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15818 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015819 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015820 shlibpath_overrides_runpath=yes
15821
15822 case $host_os in
15823 cygwin*)
15824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15825 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 +000015826 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015827 ;;
15828 mingw*)
15829 # MinGW DLLs use traditional 'lib' prefix
15830 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15832 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15833 # It is most probably a Windows format PATH printed by
15834 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15835 # path with ; separators, and with drive letters. We can handle the
15836 # drive letters (cygwin fileutils understands them), so leave them,
15837 # especially as we might pass files found there to a mingw objdump,
15838 # which wouldn't understand a cygwinified path. Ahh.
15839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15840 else
15841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15842 fi
15843 ;;
15844 pw32*)
15845 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015846 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 +000015847 ;;
15848 esac
John Criswell7a73b802003-06-30 21:59:07 +000015849 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015850
John Criswell7a73b802003-06-30 21:59:07 +000015851 *)
John Criswell47fdd832003-07-14 16:52:07 +000015852 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015853 ;;
15854 esac
15855 dynamic_linker='Win32 ld.exe'
15856 # FIXME: first we should search . and the directory the executable is in
15857 shlibpath_var=PATH
15858 ;;
15859
15860darwin* | rhapsody*)
15861 dynamic_linker="$host_os dyld"
15862 version_type=darwin
15863 need_lib_prefix=no
15864 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015865 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015866 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015867 shlibpath_overrides_runpath=yes
15868 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015869 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015870 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015871 if test "$GCC" = yes; then
15872 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"`
15873 else
15874 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015875 fi
15876 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15877 ;;
15878
15879dgux*)
15880 version_type=linux
15881 need_lib_prefix=no
15882 need_version=no
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015886 ;;
15887
15888freebsd1*)
15889 dynamic_linker=no
15890 ;;
15891
Reid Spencer2706f8c2004-09-19 23:53:36 +000015892kfreebsd*-gnu)
15893 version_type=linux
15894 need_lib_prefix=no
15895 need_version=no
15896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15897 soname_spec='${libname}${release}${shared_ext}$major'
15898 shlibpath_var=LD_LIBRARY_PATH
15899 shlibpath_overrides_runpath=no
15900 hardcode_into_libs=yes
15901 dynamic_linker='GNU ld.so'
15902 ;;
15903
Reid Spencera773bd52006-08-04 18:18:08 +000015904freebsd* | dragonfly*)
15905 # DragonFly does not have aout. When/if they implement a new
15906 # versioning mechanism, adjust this.
15907 if test -x /usr/bin/objformat; then
15908 objformat=`/usr/bin/objformat`
15909 else
15910 case $host_os in
15911 freebsd[123]*) objformat=aout ;;
15912 *) objformat=elf ;;
15913 esac
15914 fi
John Criswell7a73b802003-06-30 21:59:07 +000015915 version_type=freebsd-$objformat
15916 case $version_type in
15917 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015919 need_version=no
15920 need_lib_prefix=no
15921 ;;
15922 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015924 need_version=yes
15925 ;;
15926 esac
15927 shlibpath_var=LD_LIBRARY_PATH
15928 case $host_os in
15929 freebsd2*)
15930 shlibpath_overrides_runpath=yes
15931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015932 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015933 shlibpath_overrides_runpath=yes
15934 hardcode_into_libs=yes
15935 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015938 shlibpath_overrides_runpath=no
15939 hardcode_into_libs=yes
15940 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015941 freebsd*) # from 4.6 on
15942 shlibpath_overrides_runpath=yes
15943 hardcode_into_libs=yes
15944 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015945 esac
15946 ;;
15947
15948gnu*)
15949 version_type=linux
15950 need_lib_prefix=no
15951 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15953 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015954 shlibpath_var=LD_LIBRARY_PATH
15955 hardcode_into_libs=yes
15956 ;;
15957
15958hpux9* | hpux10* | hpux11*)
15959 # Give a soname corresponding to the major version so that dld.sl refuses to
15960 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015961 version_type=sunos
15962 need_lib_prefix=no
15963 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015964 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015965 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015966 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015967 hardcode_into_libs=yes
15968 dynamic_linker="$host_os dld.so"
15969 shlibpath_var=LD_LIBRARY_PATH
15970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972 soname_spec='${libname}${release}${shared_ext}$major'
15973 if test "X$HPUX_IA64_MODE" = X32; then
15974 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15975 else
15976 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15977 fi
15978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15979 ;;
15980 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015981 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015982 hardcode_into_libs=yes
15983 dynamic_linker="$host_os dld.sl"
15984 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987 soname_spec='${libname}${release}${shared_ext}$major'
15988 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15990 ;;
15991 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015992 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015993 dynamic_linker="$host_os dld.sl"
15994 shlibpath_var=SHLIB_PATH
15995 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 ;;
15999 esac
John Criswell7a73b802003-06-30 21:59:07 +000016000 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16001 postinstall_cmds='chmod 555 $lib'
16002 ;;
16003
Reid Spencera773bd52006-08-04 18:18:08 +000016004interix3*)
16005 version_type=linux
16006 need_lib_prefix=no
16007 need_version=no
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 shlibpath_overrides_runpath=no
16013 hardcode_into_libs=yes
16014 ;;
16015
John Criswell47fdd832003-07-14 16:52:07 +000016016irix5* | irix6* | nonstopux*)
16017 case $host_os in
16018 nonstopux*) version_type=nonstopux ;;
16019 *)
16020 if test "$lt_cv_prog_gnu_ld" = yes; then
16021 version_type=linux
16022 else
16023 version_type=irix
16024 fi ;;
16025 esac
John Criswell7a73b802003-06-30 21:59:07 +000016026 need_lib_prefix=no
16027 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016028 soname_spec='${libname}${release}${shared_ext}$major'
16029 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 +000016030 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016031 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016032 libsuff= shlibsuff=
16033 ;;
16034 *)
16035 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016036 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16037 libsuff= shlibsuff= libmagic=32-bit;;
16038 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16039 libsuff=32 shlibsuff=N32 libmagic=N32;;
16040 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16041 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016042 *) libsuff= shlibsuff= libmagic=never-match;;
16043 esac
16044 ;;
16045 esac
16046 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16047 shlibpath_overrides_runpath=no
16048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016050 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016051 ;;
16052
16053# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016054linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016055 dynamic_linker=no
16056 ;;
16057
16058# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016059linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016060 version_type=linux
16061 need_lib_prefix=no
16062 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=no
16068 # This implies no fast_install, which is unacceptable.
16069 # Some rework will be needed to allow for fast_install
16070 # before this can be enabled.
16071 hardcode_into_libs=yes
16072
Reid Spencer2706f8c2004-09-19 23:53:36 +000016073 # Append ld.so.conf contents to the search path
16074 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016075 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 +000016076 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16077 fi
16078
John Criswell7a73b802003-06-30 21:59:07 +000016079 # We used to test for /lib/ld.so.1 and disable shared libraries on
16080 # powerpc, because MkLinux only supported shared libraries with the
16081 # GNU dynamic linker. Since this was broken with cross compilers,
16082 # most powerpc-linux boxes support dynamic linking these days and
16083 # people can always --disable-shared, the test was removed, and we
16084 # assume the GNU/Linux dynamic linker is in use.
16085 dynamic_linker='GNU/Linux ld.so'
16086 ;;
16087
Reid Spencer2706f8c2004-09-19 23:53:36 +000016088knetbsd*-gnu)
16089 version_type=linux
16090 need_lib_prefix=no
16091 need_version=no
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16093 soname_spec='${libname}${release}${shared_ext}$major'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 shlibpath_overrides_runpath=no
16096 hardcode_into_libs=yes
16097 dynamic_linker='GNU ld.so'
16098 ;;
16099
John Criswell7a73b802003-06-30 21:59:07 +000016100netbsd*)
16101 version_type=sunos
16102 need_lib_prefix=no
16103 need_version=no
16104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16107 dynamic_linker='NetBSD (a.out) ld.so'
16108 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016110 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016111 dynamic_linker='NetBSD ld.elf_so'
16112 fi
16113 shlibpath_var=LD_LIBRARY_PATH
16114 shlibpath_overrides_runpath=yes
16115 hardcode_into_libs=yes
16116 ;;
16117
16118newsos6)
16119 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 shlibpath_overrides_runpath=yes
16123 ;;
16124
Reid Spencer2706f8c2004-09-19 23:53:36 +000016125nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016126 version_type=linux
16127 need_lib_prefix=no
16128 need_version=no
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016131 shlibpath_var=LD_LIBRARY_PATH
16132 shlibpath_overrides_runpath=yes
16133 ;;
16134
16135openbsd*)
16136 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016137 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016138 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16140 case $host_os in
16141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16142 *) need_version=no ;;
16143 esac
John Criswell47fdd832003-07-14 16:52:07 +000016144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16146 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016147 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 +000016148 case $host_os in
16149 openbsd2.[89] | openbsd2.[89].*)
16150 shlibpath_overrides_runpath=no
16151 ;;
16152 *)
16153 shlibpath_overrides_runpath=yes
16154 ;;
16155 esac
John Criswell7a73b802003-06-30 21:59:07 +000016156 else
16157 shlibpath_overrides_runpath=yes
16158 fi
John Criswell7a73b802003-06-30 21:59:07 +000016159 ;;
16160
16161os2*)
16162 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016163 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016164 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016165 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016166 dynamic_linker='OS/2 ld.exe'
16167 shlibpath_var=LIBPATH
16168 ;;
16169
16170osf3* | osf4* | osf5*)
16171 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016172 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016173 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016174 soname_spec='${libname}${release}${shared_ext}$major'
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016176 shlibpath_var=LD_LIBRARY_PATH
16177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16179 ;;
16180
John Criswell7a73b802003-06-30 21:59:07 +000016181solaris*)
16182 version_type=linux
16183 need_lib_prefix=no
16184 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016187 shlibpath_var=LD_LIBRARY_PATH
16188 shlibpath_overrides_runpath=yes
16189 hardcode_into_libs=yes
16190 # ldd complains unless libraries are executable
16191 postinstall_cmds='chmod +x $lib'
16192 ;;
16193
16194sunos4*)
16195 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16198 shlibpath_var=LD_LIBRARY_PATH
16199 shlibpath_overrides_runpath=yes
16200 if test "$with_gnu_ld" = yes; then
16201 need_lib_prefix=no
16202 fi
16203 need_version=yes
16204 ;;
16205
Reid Spencera773bd52006-08-04 18:18:08 +000016206sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016207 version_type=linux
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 case $host_vendor in
16212 sni)
16213 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016214 need_lib_prefix=no
16215 export_dynamic_flag_spec='${wl}-Blargedynsym'
16216 runpath_var=LD_RUN_PATH
16217 ;;
16218 siemens)
16219 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016220 ;;
16221 motorola)
16222 need_lib_prefix=no
16223 need_version=no
16224 shlibpath_overrides_runpath=no
16225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16226 ;;
16227 esac
16228 ;;
16229
John Criswell7a73b802003-06-30 21:59:07 +000016230sysv4*MP*)
16231 if test -d /usr/nec ;then
16232 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16234 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016235 shlibpath_var=LD_LIBRARY_PATH
16236 fi
16237 ;;
16238
Reid Spencera773bd52006-08-04 18:18:08 +000016239sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16240 version_type=freebsd-elf
16241 need_lib_prefix=no
16242 need_version=no
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16244 soname_spec='${libname}${release}${shared_ext}$major'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 hardcode_into_libs=yes
16247 if test "$with_gnu_ld" = yes; then
16248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16249 shlibpath_overrides_runpath=no
16250 else
16251 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16252 shlibpath_overrides_runpath=yes
16253 case $host_os in
16254 sco3.2v5*)
16255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16256 ;;
16257 esac
16258 fi
16259 sys_lib_dlsearch_path_spec='/usr/lib'
16260 ;;
16261
John Criswell47fdd832003-07-14 16:52:07 +000016262uts4*)
16263 version_type=linux
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 ;;
16268
John Criswell7a73b802003-06-30 21:59:07 +000016269*)
16270 dynamic_linker=no
16271 ;;
16272esac
Reid Spencera773bd52006-08-04 18:18:08 +000016273{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16274echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016275test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016276
Reid Spencera773bd52006-08-04 18:18:08 +000016277variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16278if test "$GCC" = yes; then
16279 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16280fi
16281
16282{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16283echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016284hardcode_action=
16285if test -n "$hardcode_libdir_flag_spec" || \
16286 test -n "$runpath_var" || \
16287 test "X$hardcode_automatic" = "Xyes" ; then
16288
16289 # We can hardcode non-existant directories.
16290 if test "$hardcode_direct" != no &&
16291 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16292 # have to relink, otherwise we might link with an installed library
16293 # when we should be linking with a yet-to-be-installed one
16294 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16295 test "$hardcode_minus_L" != no; then
16296 # Linking always hardcodes the temporary library directory.
16297 hardcode_action=relink
16298 else
16299 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16300 hardcode_action=immediate
16301 fi
16302else
16303 # We cannot hardcode anything, or else we can only hardcode existing
16304 # directories.
16305 hardcode_action=unsupported
16306fi
Reid Spencera773bd52006-08-04 18:18:08 +000016307{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16308echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016309
16310if test "$hardcode_action" = relink; then
16311 # Fast installation is not supported
16312 enable_fast_install=no
16313elif test "$shlibpath_overrides_runpath" = yes ||
16314 test "$enable_shared" = no; then
16315 # Fast installation is not necessary
16316 enable_fast_install=needless
16317fi
16318
16319striplib=
16320old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016321{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16322echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016323if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16325 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016326 { echo "$as_me:$LINENO: result: yes" >&5
16327echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016328else
16329# FIXME - insert some real tests, host_os isn't really good enough
16330 case $host_os in
16331 darwin*)
16332 if test -n "$STRIP" ; then
16333 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016334 { echo "$as_me:$LINENO: result: yes" >&5
16335echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016336 else
Reid Spencera773bd52006-08-04 18:18:08 +000016337 { echo "$as_me:$LINENO: result: no" >&5
16338echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016339fi
16340 ;;
16341 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016342 { echo "$as_me:$LINENO: result: no" >&5
16343echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016344 ;;
16345 esac
16346fi
16347
John Criswell7a73b802003-06-30 21:59:07 +000016348if test "x$enable_dlopen" != xyes; then
16349 enable_dlopen=unknown
16350 enable_dlopen_self=unknown
16351 enable_dlopen_self_static=unknown
16352else
16353 lt_cv_dlopen=no
16354 lt_cv_dlopen_libs=
16355
16356 case $host_os in
16357 beos*)
16358 lt_cv_dlopen="load_add_on"
16359 lt_cv_dlopen_libs=
16360 lt_cv_dlopen_self=yes
16361 ;;
16362
John Criswell47fdd832003-07-14 16:52:07 +000016363 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016364 lt_cv_dlopen="LoadLibrary"
16365 lt_cv_dlopen_libs=
16366 ;;
16367
John Criswell47fdd832003-07-14 16:52:07 +000016368 cygwin*)
16369 lt_cv_dlopen="dlopen"
16370 lt_cv_dlopen_libs=
16371 ;;
16372
16373 darwin*)
16374 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016375 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16376echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016377if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16379else
16380 ac_check_lib_save_LIBS=$LIBS
16381LIBS="-ldl $LIBS"
16382cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016388
Reid Spencera773bd52006-08-04 18:18:08 +000016389/* Override any GCC internal prototype to avoid an error.
16390 Use char because int might match the return type of a GCC
16391 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016392#ifdef __cplusplus
16393extern "C"
16394#endif
John Criswell47fdd832003-07-14 16:52:07 +000016395char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016396int
16397main ()
16398{
Reid Spencera773bd52006-08-04 18:18:08 +000016399return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016400 ;
16401 return 0;
16402}
16403_ACEOF
16404rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016405if { (ac_try="$ac_link"
16406case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419 { (case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16422esac
16423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016429 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_lib_dl_dlopen=yes
16439else
16440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016441sed 's/^/| /' conftest.$ac_ext >&5
16442
Reid Spencera773bd52006-08-04 18:18:08 +000016443 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016444fi
Reid Spencera773bd52006-08-04 18:18:08 +000016445
16446rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016447 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016448LIBS=$ac_check_lib_save_LIBS
16449fi
Reid Spencera773bd52006-08-04 18:18:08 +000016450{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016452if test $ac_cv_lib_dl_dlopen = yes; then
16453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16454else
16455
16456 lt_cv_dlopen="dyld"
16457 lt_cv_dlopen_libs=
16458 lt_cv_dlopen_self=yes
16459
16460fi
16461
16462 ;;
16463
John Criswell7a73b802003-06-30 21:59:07 +000016464 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016465 { echo "$as_me:$LINENO: checking for shl_load" >&5
16466echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016467if test "${ac_cv_func_shl_load+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469else
16470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016476/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16478#define shl_load innocuous_shl_load
16479
John Criswell7a73b802003-06-30 21:59:07 +000016480/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016481 which can conflict with char shl_load (); below.
16482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16483 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016484
John Criswell0c38eaf2003-09-10 15:17:25 +000016485#ifdef __STDC__
16486# include <limits.h>
16487#else
16488# include <assert.h>
16489#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016490
16491#undef shl_load
16492
Reid Spencera773bd52006-08-04 18:18:08 +000016493/* Override any GCC internal prototype to avoid an error.
16494 Use char because int might match the return type of a GCC
16495 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016496#ifdef __cplusplus
16497extern "C"
16498#endif
John Criswell7a73b802003-06-30 21:59:07 +000016499char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016500/* The GNU C library defines this for functions which it implements
16501 to always fail with ENOSYS. Some functions are actually named
16502 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016503#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016504choke me
John Criswell7a73b802003-06-30 21:59:07 +000016505#endif
16506
John Criswell0c38eaf2003-09-10 15:17:25 +000016507int
16508main ()
16509{
Reid Spencera773bd52006-08-04 18:18:08 +000016510return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016511 ;
16512 return 0;
16513}
16514_ACEOF
16515rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016516if { (ac_try="$ac_link"
16517case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016523 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533esac
16534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016540 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_cv_func_shl_load=yes
16550else
16551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016552sed 's/^/| /' conftest.$ac_ext >&5
16553
Reid Spencera773bd52006-08-04 18:18:08 +000016554 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016555fi
Reid Spencera773bd52006-08-04 18:18:08 +000016556
16557rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016558 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016559fi
Reid Spencera773bd52006-08-04 18:18:08 +000016560{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16561echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016562if test $ac_cv_func_shl_load = yes; then
16563 lt_cv_dlopen="shl_load"
16564else
Reid Spencera773bd52006-08-04 18:18:08 +000016565 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16566echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016567if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569else
16570 ac_check_lib_save_LIBS=$LIBS
16571LIBS="-ldld $LIBS"
16572cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016573/* confdefs.h. */
16574_ACEOF
16575cat confdefs.h >>conftest.$ac_ext
16576cat >>conftest.$ac_ext <<_ACEOF
16577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016578
Reid Spencera773bd52006-08-04 18:18:08 +000016579/* Override any GCC internal prototype to avoid an error.
16580 Use char because int might match the return type of a GCC
16581 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016582#ifdef __cplusplus
16583extern "C"
16584#endif
John Criswell7a73b802003-06-30 21:59:07 +000016585char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016586int
16587main ()
16588{
Reid Spencera773bd52006-08-04 18:18:08 +000016589return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016590 ;
16591 return 0;
16592}
16593_ACEOF
16594rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016595if { (ac_try="$ac_link"
16596case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016603 grep -v '^ *+' conftest.er1 >conftest.err
16604 rm -f conftest.er1
16605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609 { (case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612esac
16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016619 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_lib_dld_shl_load=yes
16629else
16630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016631sed 's/^/| /' conftest.$ac_ext >&5
16632
Reid Spencera773bd52006-08-04 18:18:08 +000016633 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016634fi
Reid Spencera773bd52006-08-04 18:18:08 +000016635
16636rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016637 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016638LIBS=$ac_check_lib_save_LIBS
16639fi
Reid Spencera773bd52006-08-04 18:18:08 +000016640{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16641echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016642if test $ac_cv_lib_dld_shl_load = yes; then
16643 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16644else
Reid Spencera773bd52006-08-04 18:18:08 +000016645 { echo "$as_me:$LINENO: checking for dlopen" >&5
16646echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016647if test "${ac_cv_func_dlopen+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649else
16650 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016651/* confdefs.h. */
16652_ACEOF
16653cat confdefs.h >>conftest.$ac_ext
16654cat >>conftest.$ac_ext <<_ACEOF
16655/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016656/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16658#define dlopen innocuous_dlopen
16659
John Criswell7a73b802003-06-30 21:59:07 +000016660/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016661 which can conflict with char dlopen (); below.
16662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16663 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016664
John Criswell0c38eaf2003-09-10 15:17:25 +000016665#ifdef __STDC__
16666# include <limits.h>
16667#else
16668# include <assert.h>
16669#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016670
16671#undef dlopen
16672
Reid Spencera773bd52006-08-04 18:18:08 +000016673/* Override any GCC internal prototype to avoid an error.
16674 Use char because int might match the return type of a GCC
16675 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016676#ifdef __cplusplus
16677extern "C"
16678#endif
John Criswell7a73b802003-06-30 21:59:07 +000016679char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016680/* The GNU C library defines this for functions which it implements
16681 to always fail with ENOSYS. Some functions are actually named
16682 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016683#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016684choke me
John Criswell7a73b802003-06-30 21:59:07 +000016685#endif
16686
John Criswell0c38eaf2003-09-10 15:17:25 +000016687int
16688main ()
16689{
Reid Spencera773bd52006-08-04 18:18:08 +000016690return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016691 ;
16692 return 0;
16693}
16694_ACEOF
16695rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016696if { (ac_try="$ac_link"
16697case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016720 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_func_dlopen=yes
16730else
16731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016732sed 's/^/| /' conftest.$ac_ext >&5
16733
Reid Spencera773bd52006-08-04 18:18:08 +000016734 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016735fi
Reid Spencera773bd52006-08-04 18:18:08 +000016736
16737rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016738 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016739fi
Reid Spencera773bd52006-08-04 18:18:08 +000016740{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16741echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016742if test $ac_cv_func_dlopen = yes; then
16743 lt_cv_dlopen="dlopen"
16744else
Reid Spencera773bd52006-08-04 18:18:08 +000016745 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16746echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016747if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16749else
16750 ac_check_lib_save_LIBS=$LIBS
16751LIBS="-ldl $LIBS"
16752cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016758
Reid Spencera773bd52006-08-04 18:18:08 +000016759/* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016762#ifdef __cplusplus
16763extern "C"
16764#endif
John Criswell7a73b802003-06-30 21:59:07 +000016765char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016766int
16767main ()
16768{
Reid Spencera773bd52006-08-04 18:18:08 +000016769return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016770 ;
16771 return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016775if { (ac_try="$ac_link"
16776case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16779esac
16780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016782 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789 { (case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16792esac
16793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016799 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_cv_lib_dl_dlopen=yes
16809else
16810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016811sed 's/^/| /' conftest.$ac_ext >&5
16812
Reid Spencera773bd52006-08-04 18:18:08 +000016813 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016814fi
Reid Spencera773bd52006-08-04 18:18:08 +000016815
16816rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016817 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016818LIBS=$ac_check_lib_save_LIBS
16819fi
Reid Spencera773bd52006-08-04 18:18:08 +000016820{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16821echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016822if test $ac_cv_lib_dl_dlopen = yes; then
16823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16824else
Reid Spencera773bd52006-08-04 18:18:08 +000016825 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16826echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016827if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16829else
16830 ac_check_lib_save_LIBS=$LIBS
16831LIBS="-lsvld $LIBS"
16832cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016833/* confdefs.h. */
16834_ACEOF
16835cat confdefs.h >>conftest.$ac_ext
16836cat >>conftest.$ac_ext <<_ACEOF
16837/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016838
Reid Spencera773bd52006-08-04 18:18:08 +000016839/* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016842#ifdef __cplusplus
16843extern "C"
16844#endif
John Criswell7a73b802003-06-30 21:59:07 +000016845char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016846int
16847main ()
16848{
Reid Spencera773bd52006-08-04 18:18:08 +000016849return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016850 ;
16851 return 0;
16852}
16853_ACEOF
16854rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016855if { (ac_try="$ac_link"
16856case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016862 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872esac
16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016879 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_lib_svld_dlopen=yes
16889else
16890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016891sed 's/^/| /' conftest.$ac_ext >&5
16892
Reid Spencera773bd52006-08-04 18:18:08 +000016893 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016894fi
Reid Spencera773bd52006-08-04 18:18:08 +000016895
16896rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016897 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016898LIBS=$ac_check_lib_save_LIBS
16899fi
Reid Spencera773bd52006-08-04 18:18:08 +000016900{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16901echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016902if test $ac_cv_lib_svld_dlopen = yes; then
16903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16904else
Reid Spencera773bd52006-08-04 18:18:08 +000016905 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16906echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016907if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909else
16910 ac_check_lib_save_LIBS=$LIBS
16911LIBS="-ldld $LIBS"
16912cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016913/* confdefs.h. */
16914_ACEOF
16915cat confdefs.h >>conftest.$ac_ext
16916cat >>conftest.$ac_ext <<_ACEOF
16917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016918
Reid Spencera773bd52006-08-04 18:18:08 +000016919/* Override any GCC internal prototype to avoid an error.
16920 Use char because int might match the return type of a GCC
16921 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016922#ifdef __cplusplus
16923extern "C"
16924#endif
John Criswell7a73b802003-06-30 21:59:07 +000016925char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016926int
16927main ()
16928{
Reid Spencera773bd52006-08-04 18:18:08 +000016929return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016930 ;
16931 return 0;
16932}
16933_ACEOF
16934rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016935if { (ac_try="$ac_link"
16936case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16939esac
16940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16949 { (case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16952esac
16953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016959 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_lib_dld_dld_link=yes
16969else
16970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016971sed 's/^/| /' conftest.$ac_ext >&5
16972
Reid Spencera773bd52006-08-04 18:18:08 +000016973 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016974fi
Reid Spencera773bd52006-08-04 18:18:08 +000016975
16976rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016977 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016978LIBS=$ac_check_lib_save_LIBS
16979fi
Reid Spencera773bd52006-08-04 18:18:08 +000016980{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16981echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016982if test $ac_cv_lib_dld_dld_link = yes; then
16983 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16984fi
16985
16986
16987fi
16988
16989
16990fi
16991
16992
16993fi
16994
16995
16996fi
16997
16998
16999fi
17000
17001 ;;
17002 esac
17003
17004 if test "x$lt_cv_dlopen" != xno; then
17005 enable_dlopen=yes
17006 else
17007 enable_dlopen=no
17008 fi
17009
17010 case $lt_cv_dlopen in
17011 dlopen)
17012 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017013 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017014
17015 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017016 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017017
17018 save_LIBS="$LIBS"
17019 LIBS="$lt_cv_dlopen_libs $LIBS"
17020
Reid Spencera773bd52006-08-04 18:18:08 +000017021 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17022echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017023if test "${lt_cv_dlopen_self+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025else
17026 if test "$cross_compiling" = yes; then :
17027 lt_cv_dlopen_self=cross
17028else
John Criswell47fdd832003-07-14 16:52:07 +000017029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017030 lt_status=$lt_dlunknown
17031 cat > conftest.$ac_ext <<EOF
Reid Spencer59807fa2007-05-17 18:11:03 +000017032#line 17032 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017033#include "confdefs.h"
17034
17035#if HAVE_DLFCN_H
17036#include <dlfcn.h>
17037#endif
17038
17039#include <stdio.h>
17040
17041#ifdef RTLD_GLOBAL
17042# define LT_DLGLOBAL RTLD_GLOBAL
17043#else
17044# ifdef DL_GLOBAL
17045# define LT_DLGLOBAL DL_GLOBAL
17046# else
17047# define LT_DLGLOBAL 0
17048# endif
17049#endif
17050
17051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17052 find out it does not work in some platform. */
17053#ifndef LT_DLLAZY_OR_NOW
17054# ifdef RTLD_LAZY
17055# define LT_DLLAZY_OR_NOW RTLD_LAZY
17056# else
17057# ifdef DL_LAZY
17058# define LT_DLLAZY_OR_NOW DL_LAZY
17059# else
17060# ifdef RTLD_NOW
17061# define LT_DLLAZY_OR_NOW RTLD_NOW
17062# else
17063# ifdef DL_NOW
17064# define LT_DLLAZY_OR_NOW DL_NOW
17065# else
17066# define LT_DLLAZY_OR_NOW 0
17067# endif
17068# endif
17069# endif
17070# endif
17071#endif
17072
17073#ifdef __cplusplus
17074extern "C" void exit (int);
17075#endif
17076
17077void fnord() { int i=42;}
17078int main ()
17079{
17080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17081 int status = $lt_dlunknown;
17082
17083 if (self)
17084 {
17085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17086 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17087 /* dlclose (self); */
17088 }
Reid Spencera773bd52006-08-04 18:18:08 +000017089 else
17090 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017091
17092 exit (status);
17093}
17094EOF
17095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17096 (eval $ac_link) 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017100 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017101 lt_status=$?
17102 case x$lt_status in
17103 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17104 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017105 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017106 esac
17107 else :
17108 # compilation failed
17109 lt_cv_dlopen_self=no
17110 fi
17111fi
17112rm -fr conftest*
17113
17114
17115fi
Reid Spencera773bd52006-08-04 18:18:08 +000017116{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17117echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017118
17119 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17121 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17122echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017123if test "${lt_cv_dlopen_self_static+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17125else
17126 if test "$cross_compiling" = yes; then :
17127 lt_cv_dlopen_self_static=cross
17128else
John Criswell47fdd832003-07-14 16:52:07 +000017129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017130 lt_status=$lt_dlunknown
17131 cat > conftest.$ac_ext <<EOF
Reid Spencer59807fa2007-05-17 18:11:03 +000017132#line 17132 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017133#include "confdefs.h"
17134
17135#if HAVE_DLFCN_H
17136#include <dlfcn.h>
17137#endif
17138
17139#include <stdio.h>
17140
17141#ifdef RTLD_GLOBAL
17142# define LT_DLGLOBAL RTLD_GLOBAL
17143#else
17144# ifdef DL_GLOBAL
17145# define LT_DLGLOBAL DL_GLOBAL
17146# else
17147# define LT_DLGLOBAL 0
17148# endif
17149#endif
17150
17151/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17152 find out it does not work in some platform. */
17153#ifndef LT_DLLAZY_OR_NOW
17154# ifdef RTLD_LAZY
17155# define LT_DLLAZY_OR_NOW RTLD_LAZY
17156# else
17157# ifdef DL_LAZY
17158# define LT_DLLAZY_OR_NOW DL_LAZY
17159# else
17160# ifdef RTLD_NOW
17161# define LT_DLLAZY_OR_NOW RTLD_NOW
17162# else
17163# ifdef DL_NOW
17164# define LT_DLLAZY_OR_NOW DL_NOW
17165# else
17166# define LT_DLLAZY_OR_NOW 0
17167# endif
17168# endif
17169# endif
17170# endif
17171#endif
17172
17173#ifdef __cplusplus
17174extern "C" void exit (int);
17175#endif
17176
17177void fnord() { int i=42;}
17178int main ()
17179{
17180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17181 int status = $lt_dlunknown;
17182
17183 if (self)
17184 {
17185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17186 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17187 /* dlclose (self); */
17188 }
Reid Spencera773bd52006-08-04 18:18:08 +000017189 else
17190 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017191
17192 exit (status);
17193}
17194EOF
17195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17196 (eval $ac_link) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017200 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017201 lt_status=$?
17202 case x$lt_status in
17203 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17204 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017205 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017206 esac
17207 else :
17208 # compilation failed
17209 lt_cv_dlopen_self_static=no
17210 fi
17211fi
17212rm -fr conftest*
17213
17214
17215fi
Reid Spencera773bd52006-08-04 18:18:08 +000017216{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17217echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017218 fi
17219
17220 CPPFLAGS="$save_CPPFLAGS"
17221 LDFLAGS="$save_LDFLAGS"
17222 LIBS="$save_LIBS"
17223 ;;
17224 esac
17225
17226 case $lt_cv_dlopen_self in
17227 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17228 *) enable_dlopen_self=unknown ;;
17229 esac
17230
17231 case $lt_cv_dlopen_self_static in
17232 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17233 *) enable_dlopen_self_static=unknown ;;
17234 esac
17235fi
17236
17237
Reid Spencera773bd52006-08-04 18:18:08 +000017238# Report which library types will actually be built
17239{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17240echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17241{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17242echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017243
Reid Spencera773bd52006-08-04 18:18:08 +000017244{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17245echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017246test "$can_build_shared" = "no" && enable_shared=no
17247
17248# On AIX, shared libraries and static libraries use the same namespace, and
17249# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017250case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017251aix3*)
17252 test "$enable_shared" = yes && enable_static=no
17253 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017254 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017255 postinstall_cmds='$RANLIB $lib'
17256 fi
17257 ;;
17258
Reid Spencer2706f8c2004-09-19 23:53:36 +000017259aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017260 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17261 test "$enable_shared" = yes && enable_static=no
17262 fi
John Criswell7a73b802003-06-30 21:59:07 +000017263 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017264esac
Reid Spencera773bd52006-08-04 18:18:08 +000017265{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17266echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017267
Reid Spencera773bd52006-08-04 18:18:08 +000017268{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17269echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017270# Make sure either enable_shared or enable_static is yes.
17271test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017272{ echo "$as_me:$LINENO: result: $enable_static" >&5
17273echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017274
17275# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017276# libtool distribution, otherwise you forgot to ship ltmain.sh
17277# with your package, and you will get complaints that there are
17278# no rules to generate ltmain.sh.
17279if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017280 # See if we are running on zsh, and set the options which allow our commands through
17281 # without removal of \ escapes.
17282 if test -n "${ZSH_VERSION+set}" ; then
17283 setopt NO_GLOB_SUBST
17284 fi
John Criswell7a73b802003-06-30 21:59:07 +000017285 # Now quote all the things that may contain metacharacters while being
17286 # careful not to overquote the AC_SUBSTed values. We take copies of the
17287 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017288 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 +000017289 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017290 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17291 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17292 deplibs_check_method reload_flag reload_cmds need_locks \
17293 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17294 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017295 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017296 old_postinstall_cmds old_postuninstall_cmds \
17297 compiler \
17298 CC \
17299 LD \
17300 lt_prog_compiler_wl \
17301 lt_prog_compiler_pic \
17302 lt_prog_compiler_static \
17303 lt_prog_compiler_no_builtin_flag \
17304 export_dynamic_flag_spec \
17305 thread_safe_flag_spec \
17306 whole_archive_flag_spec \
17307 enable_shared_with_static_runtimes \
17308 old_archive_cmds \
17309 old_archive_from_new_cmds \
17310 predep_objects \
17311 postdep_objects \
17312 predeps \
17313 postdeps \
17314 compiler_lib_search_path \
17315 archive_cmds \
17316 archive_expsym_cmds \
17317 postinstall_cmds \
17318 postuninstall_cmds \
17319 old_archive_from_expsyms_cmds \
17320 allow_undefined_flag \
17321 no_undefined_flag \
17322 export_symbols_cmds \
17323 hardcode_libdir_flag_spec \
17324 hardcode_libdir_flag_spec_ld \
17325 hardcode_libdir_separator \
17326 hardcode_automatic \
17327 module_cmds \
17328 module_expsym_cmds \
17329 lt_cv_prog_compiler_c_o \
17330 exclude_expsyms \
17331 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017332
17333 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017334 old_archive_cmds | \
17335 old_archive_from_new_cmds | \
17336 archive_cmds | \
17337 archive_expsym_cmds | \
17338 module_cmds | \
17339 module_expsym_cmds | \
17340 old_archive_from_expsyms_cmds | \
17341 export_symbols_cmds | \
17342 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017343 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017344 old_postinstall_cmds | old_postuninstall_cmds | \
17345 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017346 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017347 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 +000017348 ;;
17349 *)
17350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17351 ;;
17352 esac
17353 done
17354
John Criswell47fdd832003-07-14 16:52:07 +000017355 case $lt_echo in
17356 *'\$0 --fallback-echo"')
17357 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17358 ;;
17359 esac
17360
17361cfgfile="${ofile}T"
17362 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17363 $rm -f "$cfgfile"
17364 { echo "$as_me:$LINENO: creating $ofile" >&5
17365echo "$as_me: creating $ofile" >&6;}
17366
17367 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017368#! $SHELL
17369
John Criswell47fdd832003-07-14 16:52:07 +000017370# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017371# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17372# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17373#
John Criswell47fdd832003-07-14 16:52:07 +000017374# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17375# Free Software Foundation, Inc.
17376#
17377# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017378# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17379#
17380# This program is free software; you can redistribute it and/or modify
17381# it under the terms of the GNU General Public License as published by
17382# the Free Software Foundation; either version 2 of the License, or
17383# (at your option) any later version.
17384#
17385# This program is distributed in the hope that it will be useful, but
17386# WITHOUT ANY WARRANTY; without even the implied warranty of
17387# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17388# General Public License for more details.
17389#
17390# You should have received a copy of the GNU General Public License
17391# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017392# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017393#
17394# As a special exception to the GNU General Public License, if you
17395# distribute this file as part of a program that contains a
17396# configuration script generated by Autoconf, you may include it under
17397# the same distribution terms that you use for the rest of that program.
17398
John Criswell47fdd832003-07-14 16:52:07 +000017399# A sed program that does not truncate output.
17400SED=$lt_SED
17401
John Criswell7a73b802003-06-30 21:59:07 +000017402# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017403Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017404
17405# The HP-UX ksh and POSIX shell print the target directory to stdout
17406# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017407(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017408
John Criswell47fdd832003-07-14 16:52:07 +000017409# The names of the tagged configurations supported by this script.
17410available_tags=
17411
John Criswell7a73b802003-06-30 21:59:07 +000017412# ### BEGIN LIBTOOL CONFIG
17413
17414# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17415
17416# Shell to use when invoking shell scripts.
17417SHELL=$lt_SHELL
17418
17419# Whether or not to build shared libraries.
17420build_libtool_libs=$enable_shared
17421
17422# Whether or not to build static libraries.
17423build_old_libs=$enable_static
17424
17425# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017426build_libtool_need_lc=$archive_cmds_need_lc
17427
17428# Whether or not to disallow shared libs when runtime libs are static
17429allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017430
17431# Whether or not to optimize for fast installation.
17432fast_install=$enable_fast_install
17433
17434# The host system.
17435host_alias=$host_alias
17436host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017437host_os=$host_os
17438
17439# The build system.
17440build_alias=$build_alias
17441build=$build
17442build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017443
17444# An echo program that does not interpret backslashes.
17445echo=$lt_echo
17446
17447# The archiver.
17448AR=$lt_AR
17449AR_FLAGS=$lt_AR_FLAGS
17450
John Criswell47fdd832003-07-14 16:52:07 +000017451# A C compiler.
17452LTCC=$lt_LTCC
17453
Reid Spencera773bd52006-08-04 18:18:08 +000017454# LTCC compiler flags.
17455LTCFLAGS=$lt_LTCFLAGS
17456
John Criswell47fdd832003-07-14 16:52:07 +000017457# A language-specific compiler.
17458CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017459
17460# Is the compiler the GNU C compiler?
17461with_gcc=$GCC
17462
John Criswell47fdd832003-07-14 16:52:07 +000017463# An ERE matcher.
17464EGREP=$lt_EGREP
17465
John Criswell7a73b802003-06-30 21:59:07 +000017466# The linker used to build libraries.
17467LD=$lt_LD
17468
17469# Whether we need hard or soft links.
17470LN_S=$lt_LN_S
17471
17472# A BSD-compatible nm program.
17473NM=$lt_NM
17474
17475# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017476STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017477
17478# Used to examine libraries when file_magic_cmd begins "file"
17479MAGIC_CMD=$MAGIC_CMD
17480
17481# Used on cygwin: DLL creation program.
17482DLLTOOL="$DLLTOOL"
17483
17484# Used on cygwin: object dumper.
17485OBJDUMP="$OBJDUMP"
17486
17487# Used on cygwin: assembler.
17488AS="$AS"
17489
17490# The name of the directory that contains temporary libtool files.
17491objdir=$objdir
17492
17493# How to create reloadable object files.
17494reload_flag=$lt_reload_flag
17495reload_cmds=$lt_reload_cmds
17496
17497# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017498wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017499
17500# Object file suffix (normally "o").
17501objext="$ac_objext"
17502
17503# Old archive suffix (normally "a").
17504libext="$libext"
17505
John Criswell47fdd832003-07-14 16:52:07 +000017506# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017507shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017508
John Criswell7a73b802003-06-30 21:59:07 +000017509# Executable file suffix (normally "").
17510exeext="$exeext"
17511
17512# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017513pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017514pic_mode=$pic_mode
17515
John Criswell47fdd832003-07-14 16:52:07 +000017516# What is the maximum length of a command?
17517max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017518
John Criswell47fdd832003-07-14 16:52:07 +000017519# Does compiler simultaneously support -c and -o options?
17520compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017521
Reid Spencera773bd52006-08-04 18:18:08 +000017522# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017523need_locks=$lt_need_locks
17524
17525# Do we need the lib prefix for modules?
17526need_lib_prefix=$need_lib_prefix
17527
17528# Do we need a version for libraries?
17529need_version=$need_version
17530
17531# Whether dlopen is supported.
17532dlopen_support=$enable_dlopen
17533
17534# Whether dlopen of programs is supported.
17535dlopen_self=$enable_dlopen_self
17536
17537# Whether dlopen of statically linked programs is supported.
17538dlopen_self_static=$enable_dlopen_self_static
17539
17540# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017541link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017542
17543# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017544no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017545
17546# Compiler flag to allow reflexive dlopens.
17547export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17548
17549# Compiler flag to generate shared objects directly from archives.
17550whole_archive_flag_spec=$lt_whole_archive_flag_spec
17551
17552# Compiler flag to generate thread-safe objects.
17553thread_safe_flag_spec=$lt_thread_safe_flag_spec
17554
17555# Library versioning type.
17556version_type=$version_type
17557
17558# Format of library name prefix.
17559libname_spec=$lt_libname_spec
17560
17561# List of archive names. First name is the real one, the rest are links.
17562# The last name is the one that the linker finds with -lNAME.
17563library_names_spec=$lt_library_names_spec
17564
17565# The coded name of the library, if different from the real name.
17566soname_spec=$lt_soname_spec
17567
17568# Commands used to build and install an old-style archive.
17569RANLIB=$lt_RANLIB
17570old_archive_cmds=$lt_old_archive_cmds
17571old_postinstall_cmds=$lt_old_postinstall_cmds
17572old_postuninstall_cmds=$lt_old_postuninstall_cmds
17573
17574# Create an old-style archive from a shared archive.
17575old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17576
17577# Create a temporary old-style archive to link instead of a shared archive.
17578old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17579
17580# Commands used to build and install a shared archive.
17581archive_cmds=$lt_archive_cmds
17582archive_expsym_cmds=$lt_archive_expsym_cmds
17583postinstall_cmds=$lt_postinstall_cmds
17584postuninstall_cmds=$lt_postuninstall_cmds
17585
John Criswell47fdd832003-07-14 16:52:07 +000017586# Commands used to build a loadable module (assumed same as above if empty)
17587module_cmds=$lt_module_cmds
17588module_expsym_cmds=$lt_module_expsym_cmds
17589
John Criswell7a73b802003-06-30 21:59:07 +000017590# Commands to strip libraries.
17591old_striplib=$lt_old_striplib
17592striplib=$lt_striplib
17593
John Criswell47fdd832003-07-14 16:52:07 +000017594# Dependencies to place before the objects being linked to create a
17595# shared library.
17596predep_objects=$lt_predep_objects
17597
17598# Dependencies to place after the objects being linked to create a
17599# shared library.
17600postdep_objects=$lt_postdep_objects
17601
17602# Dependencies to place before the objects being linked to create a
17603# shared library.
17604predeps=$lt_predeps
17605
17606# Dependencies to place after the objects being linked to create a
17607# shared library.
17608postdeps=$lt_postdeps
17609
17610# The library search path used internally by the compiler when linking
17611# a shared library.
17612compiler_lib_search_path=$lt_compiler_lib_search_path
17613
John Criswell7a73b802003-06-30 21:59:07 +000017614# Method to check whether dependent libraries are shared objects.
17615deplibs_check_method=$lt_deplibs_check_method
17616
17617# Command to use when deplibs_check_method == file_magic.
17618file_magic_cmd=$lt_file_magic_cmd
17619
17620# Flag that allows shared libraries with undefined symbols to be built.
17621allow_undefined_flag=$lt_allow_undefined_flag
17622
17623# Flag that forces no undefined symbols.
17624no_undefined_flag=$lt_no_undefined_flag
17625
17626# Commands used to finish a libtool library installation in a directory.
17627finish_cmds=$lt_finish_cmds
17628
17629# Same as above, but a single script fragment to be evaled but not shown.
17630finish_eval=$lt_finish_eval
17631
17632# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017633global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017634
17635# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017636global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017637
17638# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017639global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017640
17641# This is the shared library runtime path variable.
17642runpath_var=$runpath_var
17643
17644# This is the shared library path variable.
17645shlibpath_var=$shlibpath_var
17646
17647# Is shlibpath searched before the hard-coded library search path?
17648shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17649
17650# How to hardcode a shared library path into an executable.
17651hardcode_action=$hardcode_action
17652
17653# Whether we should hardcode library paths into libraries.
17654hardcode_into_libs=$hardcode_into_libs
17655
17656# Flag to hardcode \$libdir into a binary during linking.
17657# This must work even if \$libdir does not exist.
17658hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17659
John Criswell47fdd832003-07-14 16:52:07 +000017660# If ld is used when linking, flag to hardcode \$libdir into
17661# a binary during linking. This must work even if \$libdir does
17662# not exist.
17663hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17664
John Criswell7a73b802003-06-30 21:59:07 +000017665# Whether we need a single -rpath flag with a separated argument.
17666hardcode_libdir_separator=$lt_hardcode_libdir_separator
17667
John Criswell47fdd832003-07-14 16:52:07 +000017668# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017669# resulting binary.
17670hardcode_direct=$hardcode_direct
17671
17672# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17673# resulting binary.
17674hardcode_minus_L=$hardcode_minus_L
17675
17676# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17677# the resulting binary.
17678hardcode_shlibpath_var=$hardcode_shlibpath_var
17679
John Criswell47fdd832003-07-14 16:52:07 +000017680# Set to yes if building a shared library automatically hardcodes DIR into the library
17681# and all subsequent libraries and executables linked against it.
17682hardcode_automatic=$hardcode_automatic
17683
John Criswell7a73b802003-06-30 21:59:07 +000017684# Variables whose values should be saved in libtool wrapper scripts and
17685# restored at relink time.
17686variables_saved_for_relink="$variables_saved_for_relink"
17687
17688# Whether libtool must link a program against all its dependency libraries.
17689link_all_deplibs=$link_all_deplibs
17690
17691# Compile-time system search path for libraries
17692sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17693
17694# Run-time system search path for libraries
17695sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17696
17697# Fix the shell variable \$srcfile for the compiler.
17698fix_srcfile_path="$fix_srcfile_path"
17699
17700# Set to yes if exported symbols are required.
17701always_export_symbols=$always_export_symbols
17702
17703# The commands to list exported symbols.
17704export_symbols_cmds=$lt_export_symbols_cmds
17705
17706# The commands to extract the exported symbol list from a shared archive.
17707extract_expsyms_cmds=$lt_extract_expsyms_cmds
17708
17709# Symbols that should not be listed in the preloaded symbols.
17710exclude_expsyms=$lt_exclude_expsyms
17711
17712# Symbols that must always be exported.
17713include_expsyms=$lt_include_expsyms
17714
17715# ### END LIBTOOL CONFIG
17716
17717__EOF__
17718
John Criswell47fdd832003-07-14 16:52:07 +000017719
John Criswell7a73b802003-06-30 21:59:07 +000017720 case $host_os in
17721 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017722 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017723
17724# AIX sometimes has problems with the GCC collect2 program. For some
17725# reason, if we set the COLLECT_NAMES environment variable, the problems
17726# vanish in a puff of smoke.
17727if test "X${COLLECT_NAMES+set}" != Xset; then
17728 COLLECT_NAMES=
17729 export COLLECT_NAMES
17730fi
17731EOF
17732 ;;
17733 esac
17734
John Criswell7a73b802003-06-30 21:59:07 +000017735 # We use sed instead of cat because bash on DJGPP gets confused if
17736 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17737 # text mode, it properly converts lines to CR/LF. This bash problem
17738 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017739 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017740
John Criswell47fdd832003-07-14 16:52:07 +000017741 mv -f "$cfgfile" "$ofile" || \
17742 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017743 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017744
17745else
17746 # If there is no Makefile yet, we rely on a make rule to execute
17747 # `config.status --recheck' to rerun these tests and create the
17748 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017749 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17750 if test -f "$ltmain_in"; then
17751 test -f Makefile && make "$ltmain"
17752 fi
John Criswell7a73b802003-06-30 21:59:07 +000017753fi
John Criswell7a73b802003-06-30 21:59:07 +000017754
17755
John Criswell47fdd832003-07-14 16:52:07 +000017756ac_ext=c
17757ac_cpp='$CPP $CPPFLAGS'
17758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761
17762CC="$lt_save_CC"
17763
17764
Reid Spencera773bd52006-08-04 18:18:08 +000017765# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017766if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017767 withval=$with_tags; tagnames="$withval"
17768fi
17769
John Criswell47fdd832003-07-14 16:52:07 +000017770
17771if test -f "$ltmain" && test -n "$tagnames"; then
17772 if test ! -f "${ofile}"; then
17773 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17774echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17775 fi
17776
17777 if test -z "$LTCC"; then
17778 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17779 if test -z "$LTCC"; then
17780 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17781echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17782 else
17783 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17784echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17785 fi
17786 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017787 if test -z "$LTCFLAGS"; then
17788 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17789 fi
John Criswell47fdd832003-07-14 16:52:07 +000017790
17791 # Extract list of available tagged configurations in $ofile.
17792 # Note that this assumes the entire list is on one line.
17793 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17794
17795 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17796 for tagname in $tagnames; do
17797 IFS="$lt_save_ifs"
17798 # Check whether tagname contains only valid characters
17799 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17800 "") ;;
17801 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17802echo "$as_me: error: invalid tag name: $tagname" >&2;}
17803 { (exit 1); exit 1; }; }
17804 ;;
17805 esac
17806
17807 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17808 then
17809 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17810echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17811 { (exit 1); exit 1; }; }
17812 fi
17813
17814 # Update the list of available tags.
17815 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017816 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017817
17818 case $tagname in
17819 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017820 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17821 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17822 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017823 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017824ac_cpp='$CXXCPP $CPPFLAGS'
17825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17828
17829
17830
17831
17832archive_cmds_need_lc_CXX=no
17833allow_undefined_flag_CXX=
17834always_export_symbols_CXX=no
17835archive_expsym_cmds_CXX=
17836export_dynamic_flag_spec_CXX=
17837hardcode_direct_CXX=no
17838hardcode_libdir_flag_spec_CXX=
17839hardcode_libdir_flag_spec_ld_CXX=
17840hardcode_libdir_separator_CXX=
17841hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017842hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017843hardcode_automatic_CXX=no
17844module_cmds_CXX=
17845module_expsym_cmds_CXX=
17846link_all_deplibs_CXX=unknown
17847old_archive_cmds_CXX=$old_archive_cmds
17848no_undefined_flag_CXX=
17849whole_archive_flag_spec_CXX=
17850enable_shared_with_static_runtimes_CXX=no
17851
17852# Dependencies to place before and after the object being linked:
17853predep_objects_CXX=
17854postdep_objects_CXX=
17855predeps_CXX=
17856postdeps_CXX=
17857compiler_lib_search_path_CXX=
17858
17859# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017860ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017861
17862# Object file extension for compiled C++ test sources.
17863objext=o
17864objext_CXX=$objext
17865
17866# Code to be used in simple compile tests
17867lt_simple_compile_test_code="int some_variable = 0;\n"
17868
17869# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017870lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017871
17872# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17873
17874# If no C compiler was specified, use CC.
17875LTCC=${LTCC-"$CC"}
17876
Reid Spencera773bd52006-08-04 18:18:08 +000017877# If no C compiler flags were specified, use CFLAGS.
17878LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17879
John Criswell47fdd832003-07-14 16:52:07 +000017880# Allow CC to be a program name with arguments.
17881compiler=$CC
17882
17883
Reid Spencera773bd52006-08-04 18:18:08 +000017884# save warnings/boilerplate of simple test code
17885ac_outfile=conftest.$ac_objext
17886printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17887eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17888_lt_compiler_boilerplate=`cat conftest.err`
17889$rm conftest*
17890
17891ac_outfile=conftest.$ac_objext
17892printf "$lt_simple_link_test_code" >conftest.$ac_ext
17893eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17894_lt_linker_boilerplate=`cat conftest.err`
17895$rm conftest*
17896
17897
John Criswell47fdd832003-07-14 16:52:07 +000017898# Allow CC to be a program name with arguments.
17899lt_save_CC=$CC
17900lt_save_LD=$LD
17901lt_save_GCC=$GCC
17902GCC=$GXX
17903lt_save_with_gnu_ld=$with_gnu_ld
17904lt_save_path_LD=$lt_cv_path_LD
17905if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17906 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17907else
Reid Spencera773bd52006-08-04 18:18:08 +000017908 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017909fi
17910if test -n "${lt_cv_path_LDCXX+set}"; then
17911 lt_cv_path_LD=$lt_cv_path_LDCXX
17912else
Reid Spencera773bd52006-08-04 18:18:08 +000017913 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017914fi
17915test -z "${LDCXX+set}" || LD=$LDCXX
17916CC=${CXX-"c++"}
17917compiler=$CC
17918compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017919for cc_temp in $compiler""; do
17920 case $cc_temp in
17921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17923 \-*) ;;
17924 *) break;;
17925 esac
17926done
17927cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17928
John Criswell47fdd832003-07-14 16:52:07 +000017929
17930# We don't want -fno-exception wen compiling C++ code, so set the
17931# no_builtin_flag separately
17932if test "$GXX" = yes; then
17933 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17934else
17935 lt_prog_compiler_no_builtin_flag_CXX=
17936fi
17937
17938if test "$GXX" = yes; then
17939 # Set up default GNU C++ configuration
17940
17941
Reid Spencera773bd52006-08-04 18:18:08 +000017942# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017943if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017944 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017945else
17946 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017947fi
17948
John Criswell47fdd832003-07-14 16:52:07 +000017949ac_prog=ld
17950if test "$GCC" = yes; then
17951 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017952 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17953echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017954 case $host in
17955 *-*-mingw*)
17956 # gcc leaves a trailing carriage return which upsets mingw
17957 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17958 *)
17959 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17960 esac
17961 case $ac_prog in
17962 # Accept absolute paths.
17963 [\\/]* | ?:[\\/]*)
17964 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017965 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017966 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17967 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17968 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17969 done
17970 test -z "$LD" && LD="$ac_prog"
17971 ;;
17972 "")
17973 # If it fails, then pretend we aren't using GCC.
17974 ac_prog=ld
17975 ;;
17976 *)
17977 # If it is relative, then search for the first ld in PATH.
17978 with_gnu_ld=unknown
17979 ;;
17980 esac
17981elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017982 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17983echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017984else
Reid Spencera773bd52006-08-04 18:18:08 +000017985 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17986echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017987fi
17988if test "${lt_cv_path_LD+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17990else
17991 if test -z "$LD"; then
17992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17993 for ac_dir in $PATH; do
17994 IFS="$lt_save_ifs"
17995 test -z "$ac_dir" && ac_dir=.
17996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17997 lt_cv_path_LD="$ac_dir/$ac_prog"
17998 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017999 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018000 # Break only if it was the GNU/non-GNU ld that we prefer.
18001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18002 *GNU* | *'with BFD'*)
18003 test "$with_gnu_ld" != no && break
18004 ;;
18005 *)
18006 test "$with_gnu_ld" != yes && break
18007 ;;
18008 esac
18009 fi
18010 done
18011 IFS="$lt_save_ifs"
18012else
18013 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18014fi
18015fi
18016
18017LD="$lt_cv_path_LD"
18018if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018019 { echo "$as_me:$LINENO: result: $LD" >&5
18020echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018021else
Reid Spencera773bd52006-08-04 18:18:08 +000018022 { echo "$as_me:$LINENO: result: no" >&5
18023echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018024fi
18025test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18026echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18027 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018028{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18029echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018030if test "${lt_cv_prog_gnu_ld+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18032else
Reid Spencera773bd52006-08-04 18:18:08 +000018033 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018034case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018035*GNU* | *'with BFD'*)
18036 lt_cv_prog_gnu_ld=yes
18037 ;;
18038*)
18039 lt_cv_prog_gnu_ld=no
18040 ;;
18041esac
18042fi
Reid Spencera773bd52006-08-04 18:18:08 +000018043{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18044echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018045with_gnu_ld=$lt_cv_prog_gnu_ld
18046
18047
18048
18049 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18050 # archiving commands below assume that GNU ld is being used.
18051 if test "$with_gnu_ld" = yes; then
18052 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18053 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'
18054
18055 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18057
18058 # If archive_cmds runs LD, not CC, wlarc should be empty
18059 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18060 # investigate it a little bit more. (MM)
18061 wlarc='${wl}'
18062
18063 # ancient GNU ld didn't support --whole-archive et. al.
18064 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18065 grep 'no-whole-archive' > /dev/null; then
18066 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18067 else
18068 whole_archive_flag_spec_CXX=
18069 fi
18070 else
18071 with_gnu_ld=no
18072 wlarc=
18073
18074 # A generic and very simple default shared library creation
18075 # command for GNU C++ for the case where it uses the native
18076 # linker, instead of GNU ld. If possible, this setting should
18077 # overridden to take advantage of the native linker features on
18078 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018079 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018080 fi
18081
18082 # Commands to make compiler produce verbose output that lists
18083 # what "hidden" libraries, object files and flags are used when
18084 # linking a shared library.
18085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18086
18087else
18088 GXX=no
18089 with_gnu_ld=no
18090 wlarc=
18091fi
18092
18093# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018094{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18095echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018096ld_shlibs_CXX=yes
18097case $host_os in
18098 aix3*)
18099 # FIXME: insert proper C++ library support
18100 ld_shlibs_CXX=no
18101 ;;
18102 aix4* | aix5*)
18103 if test "$host_cpu" = ia64; then
18104 # On IA64, the linker does run time linking by default, so we don't
18105 # have to do anything special.
18106 aix_use_runtimelinking=no
18107 exp_sym_flag='-Bexport'
18108 no_entry_flag=""
18109 else
18110 aix_use_runtimelinking=no
18111
18112 # Test if we are trying to use run time linking or normal
18113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18114 # need to do runtime linking.
18115 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18116 for ld_flag in $LDFLAGS; do
18117 case $ld_flag in
18118 *-brtl*)
18119 aix_use_runtimelinking=yes
18120 break
18121 ;;
18122 esac
18123 done
Reid Spencera773bd52006-08-04 18:18:08 +000018124 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018125 esac
18126
18127 exp_sym_flag='-bexport'
18128 no_entry_flag='-bnoentry'
18129 fi
18130
18131 # When large executables or shared objects are built, AIX ld can
18132 # have problems creating the table of contents. If linking a library
18133 # or program results in "error TOC overflow" add -mminimal-toc to
18134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18136
18137 archive_cmds_CXX=''
18138 hardcode_direct_CXX=yes
18139 hardcode_libdir_separator_CXX=':'
18140 link_all_deplibs_CXX=yes
18141
18142 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018143 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018144 # We only want to do this on AIX 4.2 and lower, the check
18145 # below for broken collect2 doesn't work under 4.3+
18146 collect2name=`${CC} -print-prog-name=collect2`
18147 if test -f "$collect2name" && \
18148 strings "$collect2name" | grep resolve_lib_name >/dev/null
18149 then
18150 # We have reworked collect2
18151 hardcode_direct_CXX=yes
18152 else
18153 # We have old collect2
18154 hardcode_direct_CXX=unsupported
18155 # It fails to find uninstalled libraries when the uninstalled
18156 # path is not listed in the libpath. Setting hardcode_minus_L
18157 # to unsupported forces relinking
18158 hardcode_minus_L_CXX=yes
18159 hardcode_libdir_flag_spec_CXX='-L$libdir'
18160 hardcode_libdir_separator_CXX=
18161 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018162 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018163 esac
18164 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018165 if test "$aix_use_runtimelinking" = yes; then
18166 shared_flag="$shared_flag "'${wl}-G'
18167 fi
John Criswell47fdd832003-07-14 16:52:07 +000018168 else
18169 # not using gcc
18170 if test "$host_cpu" = ia64; then
18171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18172 # chokes on -Wl,-G. The following line is correct:
18173 shared_flag='-G'
18174 else
18175 if test "$aix_use_runtimelinking" = yes; then
18176 shared_flag='${wl}-G'
18177 else
18178 shared_flag='${wl}-bM:SRE'
18179 fi
18180 fi
18181 fi
18182
18183 # It seems that -bexpall does not export symbols beginning with
18184 # underscore (_), so it is better to generate a list of symbols to export.
18185 always_export_symbols_CXX=yes
18186 if test "$aix_use_runtimelinking" = yes; then
18187 # Warning - without using the other runtime loading flags (-brtl),
18188 # -berok will link without error, but may produce a broken library.
18189 allow_undefined_flag_CXX='-berok'
18190 # Determine the default libpath from the value encoded in an empty executable.
18191 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018192/* confdefs.h. */
18193_ACEOF
18194cat confdefs.h >>conftest.$ac_ext
18195cat >>conftest.$ac_ext <<_ACEOF
18196/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018197
John Criswell47fdd832003-07-14 16:52:07 +000018198int
18199main ()
18200{
18201
18202 ;
18203 return 0;
18204}
18205_ACEOF
18206rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018207if { (ac_try="$ac_link"
18208case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211esac
18212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018214 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18221 { (case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18224esac
18225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } &&
18230 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018231 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240
18241aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18242}'`
18243# Check for a 64-bit object if we didn't find anything.
18244if 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; }
18245}'`; fi
18246else
18247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018248sed 's/^/| /' conftest.$ac_ext >&5
18249
Reid Spencera773bd52006-08-04 18:18:08 +000018250
John Criswell47fdd832003-07-14 16:52:07 +000018251fi
Reid Spencera773bd52006-08-04 18:18:08 +000018252
18253rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018254 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18256
18257 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18258
Reid Spencera773bd52006-08-04 18:18:08 +000018259 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 +000018260 else
18261 if test "$host_cpu" = ia64; then
18262 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18263 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018264 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 +000018265 else
18266 # Determine the default libpath from the value encoded in an empty executable.
18267 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018268/* confdefs.h. */
18269_ACEOF
18270cat confdefs.h >>conftest.$ac_ext
18271cat >>conftest.$ac_ext <<_ACEOF
18272/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018273
John Criswell47fdd832003-07-14 16:52:07 +000018274int
18275main ()
18276{
18277
18278 ;
18279 return 0;
18280}
18281_ACEOF
18282rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018283if { (ac_try="$ac_link"
18284case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287esac
18288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300esac
18301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018307 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316
18317aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18318}'`
18319# Check for a 64-bit object if we didn't find anything.
18320if 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; }
18321}'`; fi
18322else
18323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018324sed 's/^/| /' conftest.$ac_ext >&5
18325
Reid Spencera773bd52006-08-04 18:18:08 +000018326
John Criswell47fdd832003-07-14 16:52:07 +000018327fi
Reid Spencera773bd52006-08-04 18:18:08 +000018328
18329rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018330 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018331if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18332
18333 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18334 # Warning - without using the other run time loading flags,
18335 # -berok will link without error, but may produce a broken library.
18336 no_undefined_flag_CXX=' ${wl}-bernotok'
18337 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018338 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018339 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018340 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018341 # This is similar to how AIX traditionally builds its shared libraries.
18342 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 +000018343 fi
18344 fi
18345 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018346
18347 beos*)
18348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18349 allow_undefined_flag_CXX=unsupported
18350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18351 # support --undefined. This deserves some investigation. FIXME
18352 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353 else
18354 ld_shlibs_CXX=no
18355 fi
18356 ;;
18357
John Criswell47fdd832003-07-14 16:52:07 +000018358 chorus*)
18359 case $cc_basename in
18360 *)
18361 # FIXME: insert proper C++ library support
18362 ld_shlibs_CXX=no
18363 ;;
18364 esac
18365 ;;
18366
18367 cygwin* | mingw* | pw32*)
18368 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18369 # as there is no search path for DLLs.
18370 hardcode_libdir_flag_spec_CXX='-L$libdir'
18371 allow_undefined_flag_CXX=unsupported
18372 always_export_symbols_CXX=no
18373 enable_shared_with_static_runtimes_CXX=yes
18374
18375 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018376 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 +000018377 # If the export-symbols file already is a .def file (1st line
18378 # is EXPORTS), use it as is; otherwise, prepend...
18379 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18380 cp $export_symbols $output_objdir/$soname.def;
18381 else
18382 echo EXPORTS > $output_objdir/$soname.def;
18383 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018384 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018385 $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 +000018386 else
18387 ld_shlibs_CXX=no
18388 fi
18389 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018390 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018391 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018392 rhapsody* | darwin1.[012])
18393 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18394 ;;
18395 *) # Darwin 1.3 on
18396 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18397 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18398 else
18399 case ${MACOSX_DEPLOYMENT_TARGET} in
18400 10.[012])
18401 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18402 ;;
18403 10.*)
18404 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18405 ;;
18406 esac
18407 fi
18408 ;;
18409 esac
18410 archive_cmds_need_lc_CXX=no
18411 hardcode_direct_CXX=no
18412 hardcode_automatic_CXX=yes
18413 hardcode_shlibpath_var_CXX=unsupported
18414 whole_archive_flag_spec_CXX=''
18415 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018416
Reid Spencer2706f8c2004-09-19 23:53:36 +000018417 if test "$GXX" = yes ; then
18418 lt_int_apple_cc_single_mod=no
18419 output_verbose_link_cmd='echo'
18420 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18421 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018422 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018423 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018424 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 +000018425 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018426 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 +000018427 fi
18428 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018429 # 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 +000018430 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018431 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 +000018432 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018433 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 +000018434 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018435 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018436 else
Reid Spencera773bd52006-08-04 18:18:08 +000018437 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018438 xlc*)
18439 output_verbose_link_cmd='echo'
18440 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'
18441 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018442 # 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 +000018443 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}'
18444 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 +000018445 ;;
18446 *)
18447 ld_shlibs_CXX=no
18448 ;;
18449 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018450 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018451 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018452
18453 dgux*)
18454 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018455 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018456 # FIXME: insert proper C++ library support
18457 ld_shlibs_CXX=no
18458 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018459 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018460 # Green Hills C++ Compiler
18461 # FIXME: insert proper C++ library support
18462 ld_shlibs_CXX=no
18463 ;;
18464 *)
18465 # FIXME: insert proper C++ library support
18466 ld_shlibs_CXX=no
18467 ;;
18468 esac
18469 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018470 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018471 # C++ shared libraries reported to be fairly broken before switch to ELF
18472 ld_shlibs_CXX=no
18473 ;;
18474 freebsd-elf*)
18475 archive_cmds_need_lc_CXX=no
18476 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018477 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018478 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18479 # conventions
18480 ld_shlibs_CXX=yes
18481 ;;
18482 gnu*)
18483 ;;
18484 hpux9*)
18485 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18486 hardcode_libdir_separator_CXX=:
18487 export_dynamic_flag_spec_CXX='${wl}-E'
18488 hardcode_direct_CXX=yes
18489 hardcode_minus_L_CXX=yes # Not in the search PATH,
18490 # but as the default
18491 # location of the library.
18492
18493 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018494 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018495 # FIXME: insert proper C++ library support
18496 ld_shlibs_CXX=no
18497 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018498 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018499 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 +000018500 # Commands to make compiler produce verbose output that lists
18501 # what "hidden" libraries, object files and flags are used when
18502 # linking a shared library.
18503 #
18504 # There doesn't appear to be a way to prevent this compiler from
18505 # explicitly linking system object files so we need to strip them
18506 # from the output so that they don't get included in the library
18507 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018508 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 +000018509 ;;
18510 *)
18511 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018512 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 +000018513 else
18514 # FIXME: insert proper C++ library support
18515 ld_shlibs_CXX=no
18516 fi
18517 ;;
18518 esac
18519 ;;
18520 hpux10*|hpux11*)
18521 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018522 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18523 hardcode_libdir_separator_CXX=:
18524
18525 case $host_cpu in
18526 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018527 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018528 ;;
18529 *)
John Criswell47fdd832003-07-14 16:52:07 +000018530 export_dynamic_flag_spec_CXX='${wl}-E'
18531 ;;
18532 esac
18533 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018534 case $host_cpu in
18535 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018536 hardcode_direct_CXX=no
18537 hardcode_shlibpath_var_CXX=no
18538 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018539 *)
18540 hardcode_direct_CXX=yes
18541 hardcode_minus_L_CXX=yes # Not in the search PATH,
18542 # but as the default
18543 # location of the library.
18544 ;;
18545 esac
18546
18547 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018548 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018549 # FIXME: insert proper C++ library support
18550 ld_shlibs_CXX=no
18551 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018552 aCC*)
18553 case $host_cpu in
18554 hppa*64*)
18555 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18556 ;;
18557 ia64*)
18558 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 +000018559 ;;
18560 *)
18561 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18562 ;;
18563 esac
18564 # Commands to make compiler produce verbose output that lists
18565 # what "hidden" libraries, object files and flags are used when
18566 # linking a shared library.
18567 #
18568 # There doesn't appear to be a way to prevent this compiler from
18569 # explicitly linking system object files so we need to strip them
18570 # from the output so that they don't get included in the library
18571 # dependencies.
18572 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'
18573 ;;
18574 *)
18575 if test "$GXX" = yes; then
18576 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018577 case $host_cpu in
18578 hppa*64*)
18579 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18580 ;;
18581 ia64*)
18582 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 +000018583 ;;
18584 *)
18585 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'
18586 ;;
18587 esac
18588 fi
18589 else
18590 # FIXME: insert proper C++ library support
18591 ld_shlibs_CXX=no
18592 fi
18593 ;;
18594 esac
18595 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018596 interix3*)
18597 hardcode_direct_CXX=no
18598 hardcode_shlibpath_var_CXX=no
18599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18600 export_dynamic_flag_spec_CXX='${wl}-E'
18601 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18602 # Instead, shared libraries are loaded at an image base (0x10000000 by
18603 # default) and relocated if they conflict, which is a slow very memory
18604 # consuming and fragmenting process. To avoid this, we pick a random,
18605 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18606 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18607 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'
18608 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'
18609 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018610 irix5* | irix6*)
18611 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018612 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018613 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018614 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 +000018615
18616 # Archives containing C++ object files must be created using
18617 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18618 # necessary to make sure instantiated templates are included
18619 # in the archive.
18620 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18621 ;;
18622 *)
18623 if test "$GXX" = yes; then
18624 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018625 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 +000018626 else
18627 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'
18628 fi
18629 fi
18630 link_all_deplibs_CXX=yes
18631 ;;
18632 esac
18633 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18634 hardcode_libdir_separator_CXX=:
18635 ;;
18636 linux*)
18637 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018638 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018639 # Kuck and Associates, Inc. (KAI) C++ Compiler
18640
18641 # KCC will only create a shared library if the output file
18642 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18643 # to its proper name (with version) after linking.
18644 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'
18645 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'
18646 # Commands to make compiler produce verbose output that lists
18647 # what "hidden" libraries, object files and flags are used when
18648 # linking a shared library.
18649 #
18650 # There doesn't appear to be a way to prevent this compiler from
18651 # explicitly linking system object files so we need to strip them
18652 # from the output so that they don't get included in the library
18653 # dependencies.
18654 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'
18655
18656 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18657 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18658
18659 # Archives containing C++ object files must be created using
18660 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18661 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18662 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018663 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018664 # Intel C++
18665 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018666 # version 8.0 and above of icpc choke on multiply defined symbols
18667 # if we add $predep_objects and $postdep_objects, however 7.1 and
18668 # earlier do not add the objects themselves.
18669 case `$CC -V 2>&1` in
18670 *"Version 7."*)
18671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18672 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'
18673 ;;
18674 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018675 tmp_idyn=
18676 case $host_cpu in
18677 ia64*) tmp_idyn=' -i_dynamic';;
18678 esac
18679 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18680 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 +000018681 ;;
18682 esac
John Criswell47fdd832003-07-14 16:52:07 +000018683 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18686 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18687 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018688 pgCC*)
18689 # Portland Group C++ compiler
18690 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18691 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'
18692
18693 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18695 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'
18696 ;;
18697 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018698 # Compaq C++
18699 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18700 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'
18701
18702 runpath_var=LD_RUN_PATH
18703 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18704 hardcode_libdir_separator_CXX=:
18705
18706 # Commands to make compiler produce verbose output that lists
18707 # what "hidden" libraries, object files and flags are used when
18708 # linking a shared library.
18709 #
18710 # There doesn't appear to be a way to prevent this compiler from
18711 # explicitly linking system object files so we need to strip them
18712 # from the output so that they don't get included in the library
18713 # dependencies.
18714 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'
18715 ;;
18716 esac
18717 ;;
18718 lynxos*)
18719 # FIXME: insert proper C++ library support
18720 ld_shlibs_CXX=no
18721 ;;
18722 m88k*)
18723 # FIXME: insert proper C++ library support
18724 ld_shlibs_CXX=no
18725 ;;
18726 mvs*)
18727 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018728 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018729 # FIXME: insert proper C++ library support
18730 ld_shlibs_CXX=no
18731 ;;
18732 *)
18733 # FIXME: insert proper C++ library support
18734 ld_shlibs_CXX=no
18735 ;;
18736 esac
18737 ;;
18738 netbsd*)
18739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18740 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18741 wlarc=
18742 hardcode_libdir_flag_spec_CXX='-R$libdir'
18743 hardcode_direct_CXX=yes
18744 hardcode_shlibpath_var_CXX=no
18745 fi
18746 # Workaround some broken pre-1.5 toolchains
18747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18748 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018749 openbsd2*)
18750 # C++ shared libraries are fairly broken
18751 ld_shlibs_CXX=no
18752 ;;
18753 openbsd*)
18754 hardcode_direct_CXX=yes
18755 hardcode_shlibpath_var_CXX=no
18756 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18759 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18760 export_dynamic_flag_spec_CXX='${wl}-E'
18761 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18762 fi
18763 output_verbose_link_cmd='echo'
18764 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018765 osf3*)
18766 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018767 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018768 # Kuck and Associates, Inc. (KAI) C++ Compiler
18769
18770 # KCC will only create a shared library if the output file
18771 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18772 # to its proper name (with version) after linking.
18773 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'
18774
18775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18776 hardcode_libdir_separator_CXX=:
18777
18778 # Archives containing C++ object files must be created using
18779 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18780 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18781
18782 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018783 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018784 # Rational C++ 2.4.1
18785 # FIXME: insert proper C++ library support
18786 ld_shlibs_CXX=no
18787 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018788 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018789 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018790 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 +000018791
18792 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18793 hardcode_libdir_separator_CXX=:
18794
18795 # Commands to make compiler produce verbose output that lists
18796 # what "hidden" libraries, object files and flags are used when
18797 # linking a shared library.
18798 #
18799 # There doesn't appear to be a way to prevent this compiler from
18800 # explicitly linking system object files so we need to strip them
18801 # from the output so that they don't get included in the library
18802 # dependencies.
18803 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'
18804 ;;
18805 *)
18806 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18807 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018808 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 +000018809
18810 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18811 hardcode_libdir_separator_CXX=:
18812
18813 # Commands to make compiler produce verbose output that lists
18814 # what "hidden" libraries, object files and flags are used when
18815 # linking a shared library.
18816 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18817
18818 else
18819 # FIXME: insert proper C++ library support
18820 ld_shlibs_CXX=no
18821 fi
18822 ;;
18823 esac
18824 ;;
18825 osf4* | osf5*)
18826 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018827 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018828 # Kuck and Associates, Inc. (KAI) C++ Compiler
18829
18830 # KCC will only create a shared library if the output file
18831 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18832 # to its proper name (with version) after linking.
18833 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'
18834
18835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18836 hardcode_libdir_separator_CXX=:
18837
18838 # Archives containing C++ object files must be created using
18839 # the KAI C++ compiler.
18840 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18841 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018842 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018843 # Rational C++ 2.4.1
18844 # FIXME: insert proper C++ library support
18845 ld_shlibs_CXX=no
18846 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018847 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018848 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018849 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 +000018850 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18851 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018852 $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 +000018853 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018854
18855 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18856 hardcode_libdir_separator_CXX=:
18857
18858 # Commands to make compiler produce verbose output that lists
18859 # what "hidden" libraries, object files and flags are used when
18860 # linking a shared library.
18861 #
18862 # There doesn't appear to be a way to prevent this compiler from
18863 # explicitly linking system object files so we need to strip them
18864 # from the output so that they don't get included in the library
18865 # dependencies.
18866 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'
18867 ;;
18868 *)
18869 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18870 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018871 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 +000018872
18873 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18874 hardcode_libdir_separator_CXX=:
18875
18876 # Commands to make compiler produce verbose output that lists
18877 # what "hidden" libraries, object files and flags are used when
18878 # linking a shared library.
18879 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18880
18881 else
18882 # FIXME: insert proper C++ library support
18883 ld_shlibs_CXX=no
18884 fi
18885 ;;
18886 esac
18887 ;;
18888 psos*)
18889 # FIXME: insert proper C++ library support
18890 ld_shlibs_CXX=no
18891 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018892 sunos4*)
18893 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018894 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018895 # Sun C++ 4.x
18896 # FIXME: insert proper C++ library support
18897 ld_shlibs_CXX=no
18898 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018899 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018900 # Lucid
18901 # FIXME: insert proper C++ library support
18902 ld_shlibs_CXX=no
18903 ;;
18904 *)
18905 # FIXME: insert proper C++ library support
18906 ld_shlibs_CXX=no
18907 ;;
18908 esac
18909 ;;
18910 solaris*)
18911 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018912 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018913 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018914 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018915 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018916 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 +000018917 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 +000018918 $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 +000018919
18920 hardcode_libdir_flag_spec_CXX='-R$libdir'
18921 hardcode_shlibpath_var_CXX=no
18922 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018923 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018924 *)
18925 # The C++ compiler is used as linker so we must use $wl
18926 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018927 # linker. We must also pass each convience library through
18928 # to the system linker between allextract/defaultextract.
18929 # The C++ compiler will combine linker options so we
18930 # cannot just pass the convience library names through
18931 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018932 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018933 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 +000018934 ;;
18935 esac
18936 link_all_deplibs_CXX=yes
18937
Reid Spencera773bd52006-08-04 18:18:08 +000018938 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018939
18940 # Archives containing C++ object files must be created using
18941 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18942 # necessary to make sure instantiated templates are included
18943 # in the archive.
18944 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018946 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018947 # Green Hills C++ Compiler
18948 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18949
18950 # The C++ compiler must be used to create the archive.
18951 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18952 ;;
18953 *)
18954 # GNU C++ compiler with Solaris linker
18955 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18956 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18957 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018958 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 +000018959 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18960 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18961
John Criswell47fdd832003-07-14 16:52:07 +000018962 # Commands to make compiler produce verbose output that lists
18963 # what "hidden" libraries, object files and flags are used when
18964 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018965 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018966 else
18967 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18968 # platform.
18969 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 +000018970 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18971 $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 +000018972
18973 # Commands to make compiler produce verbose output that lists
18974 # what "hidden" libraries, object files and flags are used when
18975 # linking a shared library.
18976 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18977 fi
18978
18979 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18980 fi
18981 ;;
18982 esac
18983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018984 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18985 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018986 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018987 hardcode_shlibpath_var_CXX=no
18988 runpath_var='LD_RUN_PATH'
18989
18990 case $cc_basename in
18991 CC*)
18992 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18993 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18994 ;;
18995 *)
18996 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18997 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18998 ;;
18999 esac
19000 ;;
19001 sysv5* | sco3.2v5* | sco5v6*)
19002 # Note: We can NOT use -z defs as we might desire, because we do not
19003 # link with -lc, and that would cause any symbols used from libc to
19004 # always be unresolved, which means just about no library would
19005 # ever link correctly. If we're not using GNU ld we use -z text
19006 # though, which does catch some bad symbols but isn't as heavy-handed
19007 # as -z defs.
19008 # For security reasons, it is highly recommended that you always
19009 # use absolute paths for naming shared libraries, and exclude the
19010 # DT_RUNPATH tag from executables and libraries. But doing so
19011 # requires that you compile everything twice, which is a pain.
19012 # So that behaviour is only enabled if SCOABSPATH is set to a
19013 # non-empty value in the environment. Most likely only useful for
19014 # creating official distributions of packages.
19015 # This is a hack until libtool officially supports absolute path
19016 # names for shared libraries.
19017 no_undefined_flag_CXX='${wl}-z,text'
19018 allow_undefined_flag_CXX='${wl}-z,nodefs'
19019 archive_cmds_need_lc_CXX=no
19020 hardcode_shlibpath_var_CXX=no
19021 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19022 hardcode_libdir_separator_CXX=':'
19023 link_all_deplibs_CXX=yes
19024 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19025 runpath_var='LD_RUN_PATH'
19026
19027 case $cc_basename in
19028 CC*)
19029 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19030 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031 ;;
19032 *)
19033 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19034 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19035 ;;
19036 esac
John Criswell47fdd832003-07-14 16:52:07 +000019037 ;;
19038 tandem*)
19039 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019040 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019041 # NonStop-UX NCC 3.20
19042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19044 ;;
19045 *)
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19048 ;;
19049 esac
19050 ;;
19051 vxworks*)
19052 # FIXME: insert proper C++ library support
19053 ld_shlibs_CXX=no
19054 ;;
19055 *)
19056 # FIXME: insert proper C++ library support
19057 ld_shlibs_CXX=no
19058 ;;
19059esac
Reid Spencera773bd52006-08-04 18:18:08 +000019060{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19061echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019062test "$ld_shlibs_CXX" = no && can_build_shared=no
19063
19064GCC_CXX="$GXX"
19065LD_CXX="$LD"
19066
John Criswell47fdd832003-07-14 16:52:07 +000019067
19068cat > conftest.$ac_ext <<EOF
19069class Foo
19070{
19071public:
19072 Foo (void) { a = 0; }
19073private:
19074 int a;
19075};
19076EOF
19077
19078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19079 (eval $ac_compile) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; then
19083 # Parse the compiler output and extract the necessary
19084 # objects, libraries and library flags.
19085
19086 # Sentinel used to keep track of whether or not we are before
19087 # the conftest object file.
19088 pre_test_object_deps_done=no
19089
19090 # The `*' in the case matches for architectures that use `case' in
19091 # $output_verbose_cmd can trigger glob expansion during the loop
19092 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019093 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019094
19095 for p in `eval $output_verbose_link_cmd`; do
19096 case $p in
19097
19098 -L* | -R* | -l*)
19099 # Some compilers place space between "-{L,R}" and the path.
19100 # Remove the space.
19101 if test $p = "-L" \
19102 || test $p = "-R"; then
19103 prev=$p
19104 continue
19105 else
19106 prev=
19107 fi
19108
19109 if test "$pre_test_object_deps_done" = no; then
19110 case $p in
19111 -L* | -R*)
19112 # Internal compiler library paths should come after those
19113 # provided the user. The postdeps already come after the
19114 # user supplied libs so there is no need to process them.
19115 if test -z "$compiler_lib_search_path_CXX"; then
19116 compiler_lib_search_path_CXX="${prev}${p}"
19117 else
19118 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19119 fi
19120 ;;
19121 # The "-l" case would never come before the object being
19122 # linked, so don't bother handling this case.
19123 esac
19124 else
19125 if test -z "$postdeps_CXX"; then
19126 postdeps_CXX="${prev}${p}"
19127 else
19128 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19129 fi
19130 fi
19131 ;;
19132
19133 *.$objext)
19134 # This assumes that the test object file only shows up
19135 # once in the compiler output.
19136 if test "$p" = "conftest.$objext"; then
19137 pre_test_object_deps_done=yes
19138 continue
19139 fi
19140
19141 if test "$pre_test_object_deps_done" = no; then
19142 if test -z "$predep_objects_CXX"; then
19143 predep_objects_CXX="$p"
19144 else
19145 predep_objects_CXX="$predep_objects_CXX $p"
19146 fi
19147 else
19148 if test -z "$postdep_objects_CXX"; then
19149 postdep_objects_CXX="$p"
19150 else
19151 postdep_objects_CXX="$postdep_objects_CXX $p"
19152 fi
19153 fi
19154 ;;
19155
19156 *) ;; # Ignore the rest.
19157
19158 esac
19159 done
19160
19161 # Clean up.
19162 rm -f a.out a.exe
19163else
19164 echo "libtool.m4: error: problem compiling CXX test program"
19165fi
19166
19167$rm -f confest.$objext
19168
Reid Spencera773bd52006-08-04 18:18:08 +000019169# PORTME: override above test on systems where it is broken
19170case $host_os in
19171interix3*)
19172 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19173 # hack all around it, let's just trust "g++" to DTRT.
19174 predep_objects_CXX=
19175 postdep_objects_CXX=
19176 postdeps_CXX=
19177 ;;
19178
19179solaris*)
19180 case $cc_basename in
19181 CC*)
19182 # Adding this requires a known-good setup of shared libraries for
19183 # Sun compiler versions before 5.6, else PIC objects from an old
19184 # archive will be linked into the output, leading to subtle bugs.
19185 postdeps_CXX='-lCstd -lCrun'
19186 ;;
19187 esac
19188 ;;
19189esac
19190
19191
John Criswell47fdd832003-07-14 16:52:07 +000019192case " $postdeps_CXX " in
19193*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19194esac
19195
19196lt_prog_compiler_wl_CXX=
19197lt_prog_compiler_pic_CXX=
19198lt_prog_compiler_static_CXX=
19199
Reid Spencera773bd52006-08-04 18:18:08 +000019200{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19201echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019202
19203 # C++ specific cases for pic, static, wl, etc.
19204 if test "$GXX" = yes; then
19205 lt_prog_compiler_wl_CXX='-Wl,'
19206 lt_prog_compiler_static_CXX='-static'
19207
19208 case $host_os in
19209 aix*)
19210 # All AIX code is PIC.
19211 if test "$host_cpu" = ia64; then
19212 # AIX 5 now supports IA64 processor
19213 lt_prog_compiler_static_CXX='-Bstatic'
19214 fi
19215 ;;
19216 amigaos*)
19217 # FIXME: we need at least 68020 code to build shared libraries, but
19218 # adding the `-m68020' flag to GCC prevents building anything better,
19219 # like `-m68040'.
19220 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19221 ;;
19222 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19223 # PIC is the default for these OSes.
19224 ;;
19225 mingw* | os2* | pw32*)
19226 # This hack is so that the source file can tell whether it is being
19227 # built for inclusion in a dll (and should export symbols for example).
19228 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19229 ;;
19230 darwin* | rhapsody*)
19231 # PIC is the default on this platform
19232 # Common symbols not allowed in MH_DYLIB files
19233 lt_prog_compiler_pic_CXX='-fno-common'
19234 ;;
19235 *djgpp*)
19236 # DJGPP does not support shared libraries at all
19237 lt_prog_compiler_pic_CXX=
19238 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019239 interix3*)
19240 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19241 # Instead, we relocate shared libraries at runtime.
19242 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019243 sysv4*MP*)
19244 if test -d /usr/nec; then
19245 lt_prog_compiler_pic_CXX=-Kconform_pic
19246 fi
19247 ;;
19248 hpux*)
19249 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19250 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019251 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019252 hppa*64*|ia64*)
19253 ;;
19254 *)
19255 lt_prog_compiler_pic_CXX='-fPIC'
19256 ;;
19257 esac
19258 ;;
19259 *)
19260 lt_prog_compiler_pic_CXX='-fPIC'
19261 ;;
19262 esac
19263 else
19264 case $host_os in
19265 aix4* | aix5*)
19266 # All AIX code is PIC.
19267 if test "$host_cpu" = ia64; then
19268 # AIX 5 now supports IA64 processor
19269 lt_prog_compiler_static_CXX='-Bstatic'
19270 else
19271 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19272 fi
19273 ;;
19274 chorus*)
19275 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019276 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019277 # Green Hills C++ Compiler
19278 # _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"
19279 ;;
19280 esac
19281 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019282 darwin*)
19283 # PIC is the default on this platform
19284 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019285 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019286 xlc*)
19287 lt_prog_compiler_pic_CXX='-qnocommon'
19288 lt_prog_compiler_wl_CXX='-Wl,'
19289 ;;
19290 esac
19291 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019292 dgux*)
19293 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019294 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019295 lt_prog_compiler_pic_CXX='-KPIC'
19296 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019297 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019298 # Green Hills C++ Compiler
19299 lt_prog_compiler_pic_CXX='-pic'
19300 ;;
19301 *)
19302 ;;
19303 esac
19304 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019305 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019306 # FreeBSD uses GNU C++
19307 ;;
19308 hpux9* | hpux10* | hpux11*)
19309 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019310 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019311 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019312 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019313 if test "$host_cpu" != ia64; then
19314 lt_prog_compiler_pic_CXX='+Z'
19315 fi
19316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019317 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019318 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019319 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19320 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019321 hppa*64*|ia64*)
19322 # +Z the default
19323 ;;
19324 *)
19325 lt_prog_compiler_pic_CXX='+Z'
19326 ;;
19327 esac
19328 ;;
19329 *)
19330 ;;
19331 esac
19332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019333 interix*)
19334 # This is c89, which is MS Visual C++ (no shared libs)
19335 # Anyone wants to do a port?
19336 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019337 irix5* | irix6* | nonstopux*)
19338 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019339 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019340 lt_prog_compiler_wl_CXX='-Wl,'
19341 lt_prog_compiler_static_CXX='-non_shared'
19342 # CC pic flag -KPIC is the default.
19343 ;;
19344 *)
19345 ;;
19346 esac
19347 ;;
19348 linux*)
19349 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019350 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019351 # KAI C++ Compiler
19352 lt_prog_compiler_wl_CXX='--backend -Wl,'
19353 lt_prog_compiler_pic_CXX='-fPIC'
19354 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019355 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019356 # Intel C++
19357 lt_prog_compiler_wl_CXX='-Wl,'
19358 lt_prog_compiler_pic_CXX='-KPIC'
19359 lt_prog_compiler_static_CXX='-static'
19360 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019361 pgCC*)
19362 # Portland Group C++ compiler.
19363 lt_prog_compiler_wl_CXX='-Wl,'
19364 lt_prog_compiler_pic_CXX='-fpic'
19365 lt_prog_compiler_static_CXX='-Bstatic'
19366 ;;
19367 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019368 # Compaq C++
19369 # Make sure the PIC flag is empty. It appears that all Alpha
19370 # Linux and Compaq Tru64 Unix objects are PIC.
19371 lt_prog_compiler_pic_CXX=
19372 lt_prog_compiler_static_CXX='-non_shared'
19373 ;;
19374 *)
19375 ;;
19376 esac
19377 ;;
19378 lynxos*)
19379 ;;
19380 m88k*)
19381 ;;
19382 mvs*)
19383 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019384 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019385 lt_prog_compiler_pic_CXX='-W c,exportall'
19386 ;;
19387 *)
19388 ;;
19389 esac
19390 ;;
19391 netbsd*)
19392 ;;
19393 osf3* | osf4* | osf5*)
19394 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019395 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019396 lt_prog_compiler_wl_CXX='--backend -Wl,'
19397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019398 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019399 # Rational C++ 2.4.1
19400 lt_prog_compiler_pic_CXX='-pic'
19401 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019402 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019403 # Digital/Compaq C++
19404 lt_prog_compiler_wl_CXX='-Wl,'
19405 # Make sure the PIC flag is empty. It appears that all Alpha
19406 # Linux and Compaq Tru64 Unix objects are PIC.
19407 lt_prog_compiler_pic_CXX=
19408 lt_prog_compiler_static_CXX='-non_shared'
19409 ;;
19410 *)
19411 ;;
19412 esac
19413 ;;
19414 psos*)
19415 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019416 solaris*)
19417 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019418 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019419 # Sun C++ 4.2, 5.x and Centerline C++
19420 lt_prog_compiler_pic_CXX='-KPIC'
19421 lt_prog_compiler_static_CXX='-Bstatic'
19422 lt_prog_compiler_wl_CXX='-Qoption ld '
19423 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019424 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019425 # Green Hills C++ Compiler
19426 lt_prog_compiler_pic_CXX='-PIC'
19427 ;;
19428 *)
19429 ;;
19430 esac
19431 ;;
19432 sunos4*)
19433 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019434 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019435 # Sun C++ 4.x
19436 lt_prog_compiler_pic_CXX='-pic'
19437 lt_prog_compiler_static_CXX='-Bstatic'
19438 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019439 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019440 # Lucid
19441 lt_prog_compiler_pic_CXX='-pic'
19442 ;;
19443 *)
19444 ;;
19445 esac
19446 ;;
19447 tandem*)
19448 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019449 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019450 # NonStop-UX NCC 3.20
19451 lt_prog_compiler_pic_CXX='-KPIC'
19452 ;;
19453 *)
19454 ;;
19455 esac
19456 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19458 case $cc_basename in
19459 CC*)
19460 lt_prog_compiler_wl_CXX='-Wl,'
19461 lt_prog_compiler_pic_CXX='-KPIC'
19462 lt_prog_compiler_static_CXX='-Bstatic'
19463 ;;
19464 esac
John Criswell47fdd832003-07-14 16:52:07 +000019465 ;;
19466 vxworks*)
19467 ;;
19468 *)
19469 lt_prog_compiler_can_build_shared_CXX=no
19470 ;;
19471 esac
19472 fi
19473
Reid Spencera773bd52006-08-04 18:18:08 +000019474{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19475echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019476
19477#
19478# Check to make sure the PIC flag actually works.
19479#
19480if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019481
Reid Spencera773bd52006-08-04 18:18:08 +000019482{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19483echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019484if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486else
19487 lt_prog_compiler_pic_works_CXX=no
19488 ac_outfile=conftest.$ac_objext
19489 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19490 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19491 # Insert the option either (1) after the last *FLAGS variable, or
19492 # (2) before a word containing "conftest.", or (3) at the end.
19493 # Note that $ac_compile itself does not contain backslashes and begins
19494 # with a dollar sign (not a hyphen), so the echo should work correctly.
19495 # The option is referenced via a variable to avoid confusing sed.
19496 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19499 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000019500 (eval echo "\"\$as_me:19500: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019501 (eval "$lt_compile" 2>conftest.err)
19502 ac_status=$?
19503 cat conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000019504 echo "$as_me:19504: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019505 if (exit $ac_status) && test -s "$ac_outfile"; then
19506 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019507 # So say no if there are warnings other than the usual output.
19508 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019511 lt_prog_compiler_pic_works_CXX=yes
19512 fi
19513 fi
19514 $rm conftest*
19515
19516fi
Reid Spencera773bd52006-08-04 18:18:08 +000019517{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19518echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019519
19520if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19521 case $lt_prog_compiler_pic_CXX in
19522 "" | " "*) ;;
19523 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19524 esac
19525else
19526 lt_prog_compiler_pic_CXX=
19527 lt_prog_compiler_can_build_shared_CXX=no
19528fi
19529
19530fi
Reid Spencera773bd52006-08-04 18:18:08 +000019531case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019532 # For platforms which do not support PIC, -DPIC is meaningless:
19533 *djgpp*)
19534 lt_prog_compiler_pic_CXX=
19535 ;;
19536 *)
19537 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19538 ;;
19539esac
19540
Reid Spencera773bd52006-08-04 18:18:08 +000019541#
19542# Check to make sure the static flag actually works.
19543#
19544wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19545{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19546echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19547if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549else
19550 lt_prog_compiler_static_works_CXX=no
19551 save_LDFLAGS="$LDFLAGS"
19552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19553 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19555 # The linker can only warn and ignore the option if not recognized
19556 # So say no if there are warnings
19557 if test -s conftest.err; then
19558 # Append any errors to the config.log.
19559 cat conftest.err 1>&5
19560 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19562 if diff conftest.exp conftest.er2 >/dev/null; then
19563 lt_prog_compiler_static_works_CXX=yes
19564 fi
19565 else
19566 lt_prog_compiler_static_works_CXX=yes
19567 fi
19568 fi
19569 $rm conftest*
19570 LDFLAGS="$save_LDFLAGS"
19571
19572fi
19573{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19574echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19575
19576if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19577 :
19578else
19579 lt_prog_compiler_static_CXX=
19580fi
19581
19582
19583{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19584echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019585if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587else
19588 lt_cv_prog_compiler_c_o_CXX=no
19589 $rm -r conftest 2>/dev/null
19590 mkdir conftest
19591 cd conftest
19592 mkdir out
19593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19594
John Criswell47fdd832003-07-14 16:52:07 +000019595 lt_compiler_flag="-o out/conftest2.$ac_objext"
19596 # Insert the option either (1) after the last *FLAGS variable, or
19597 # (2) before a word containing "conftest.", or (3) at the end.
19598 # Note that $ac_compile itself does not contain backslashes and begins
19599 # with a dollar sign (not a hyphen), so the echo should work correctly.
19600 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19603 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000019604 (eval echo "\"\$as_me:19604: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019605 (eval "$lt_compile" 2>out/conftest.err)
19606 ac_status=$?
19607 cat out/conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000019608 echo "$as_me:19608: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19610 then
19611 # The compiler can only warn and ignore the option if not recognized
19612 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019613 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019616 lt_cv_prog_compiler_c_o_CXX=yes
19617 fi
19618 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019619 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019620 $rm conftest*
19621 # SGI C++ compiler will create directory out/ii_files/ for
19622 # template instantiation
19623 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19624 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019625 cd ..
19626 rmdir conftest
19627 $rm conftest*
19628
19629fi
Reid Spencera773bd52006-08-04 18:18:08 +000019630{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19631echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019632
19633
19634hard_links="nottested"
19635if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19636 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019637 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19638echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019639 hard_links=yes
19640 $rm conftest*
19641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19642 touch conftest.a
19643 ln conftest.a conftest.b 2>&5 || hard_links=no
19644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019645 { echo "$as_me:$LINENO: result: $hard_links" >&5
19646echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019647 if test "$hard_links" = no; then
19648 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19649echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19650 need_locks=warn
19651 fi
19652else
19653 need_locks=no
19654fi
19655
Reid Spencera773bd52006-08-04 18:18:08 +000019656{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19657echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019658
19659 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19660 case $host_os in
19661 aix4* | aix5*)
19662 # If we're using GNU nm, then we don't want the "-C" option.
19663 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19664 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19665 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'
19666 else
19667 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'
19668 fi
19669 ;;
19670 pw32*)
19671 export_symbols_cmds_CXX="$ltdll_cmds"
19672 ;;
19673 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019674 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 +000019675 ;;
19676 *)
19677 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19678 ;;
19679 esac
19680
Reid Spencera773bd52006-08-04 18:18:08 +000019681{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19682echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019683test "$ld_shlibs_CXX" = no && can_build_shared=no
19684
John Criswell47fdd832003-07-14 16:52:07 +000019685#
19686# Do we need to explicitly link libc?
19687#
19688case "x$archive_cmds_need_lc_CXX" in
19689x|xyes)
19690 # Assume -lc should be added
19691 archive_cmds_need_lc_CXX=yes
19692
19693 if test "$enable_shared" = yes && test "$GCC" = yes; then
19694 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019695 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019696 # FIXME: we may have to deal with multi-command sequences.
19697 ;;
19698 '$CC '*)
19699 # Test whether the compiler implicitly links with -lc since on some
19700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19701 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019702 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19703echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019704 $rm conftest*
19705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19706
19707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708 (eval $ac_compile) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } 2>conftest.err; then
19712 soname=conftest
19713 lib=conftest
19714 libobjs=conftest.$ac_objext
19715 deplibs=
19716 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019717 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019718 compiler_flags=-v
19719 linker_flags=-v
19720 verstring=
19721 output_objdir=.
19722 libname=conftest
19723 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19724 allow_undefined_flag_CXX=
19725 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19726 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }
19730 then
19731 archive_cmds_need_lc_CXX=no
19732 else
19733 archive_cmds_need_lc_CXX=yes
19734 fi
19735 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19736 else
19737 cat conftest.err 1>&5
19738 fi
19739 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019740 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19741echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019742 ;;
19743 esac
19744 fi
19745 ;;
19746esac
19747
Reid Spencera773bd52006-08-04 18:18:08 +000019748{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19749echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019750library_names_spec=
19751libname_spec='lib$name'
19752soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019753shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019754postinstall_cmds=
19755postuninstall_cmds=
19756finish_cmds=
19757finish_eval=
19758shlibpath_var=
19759shlibpath_overrides_runpath=unknown
19760version_type=none
19761dynamic_linker="$host_os ld.so"
19762sys_lib_dlsearch_path_spec="/lib /usr/lib"
19763if test "$GCC" = yes; then
19764 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19765 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19766 # if the path contains ";" then we assume it to be the separator
19767 # otherwise default to the standard path separator (i.e. ":") - it is
19768 # assumed that no part of a normal pathname contains ";" but that should
19769 # okay in the real world where ";" in dirpaths is itself problematic.
19770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19771 else
19772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19773 fi
19774else
19775 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19776fi
19777need_lib_prefix=unknown
19778hardcode_into_libs=no
19779
19780# when you set need_version to no, make sure it does not cause -set_version
19781# flags to be left without arguments
19782need_version=unknown
19783
19784case $host_os in
19785aix3*)
19786 version_type=linux
19787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19788 shlibpath_var=LIBPATH
19789
19790 # AIX 3 has no versioning support, so we append a major version to the name.
19791 soname_spec='${libname}${release}${shared_ext}$major'
19792 ;;
19793
19794aix4* | aix5*)
19795 version_type=linux
19796 need_lib_prefix=no
19797 need_version=no
19798 hardcode_into_libs=yes
19799 if test "$host_cpu" = ia64; then
19800 # AIX 5 supports IA64
19801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19802 shlibpath_var=LD_LIBRARY_PATH
19803 else
19804 # With GCC up to 2.95.x, collect2 would create an import file
19805 # for dependence libraries. The import file would start with
19806 # the line `#! .'. This would cause the generated library to
19807 # depend on `.', always an invalid library. This was fixed in
19808 # development snapshots of GCC prior to 3.0.
19809 case $host_os in
19810 aix4 | aix4.[01] | aix4.[01].*)
19811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19812 echo ' yes '
19813 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19814 :
19815 else
19816 can_build_shared=no
19817 fi
19818 ;;
19819 esac
19820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19821 # soname into executable. Probably we can add versioning support to
19822 # collect2, so additional links can be useful in future.
19823 if test "$aix_use_runtimelinking" = yes; then
19824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19825 # instead of lib<name>.a to let people know that these are not
19826 # typical AIX shared libraries.
19827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19828 else
19829 # We preserve .a as extension for shared libraries through AIX4.2
19830 # and later when we are not doing run time linking.
19831 library_names_spec='${libname}${release}.a $libname.a'
19832 soname_spec='${libname}${release}${shared_ext}$major'
19833 fi
19834 shlibpath_var=LIBPATH
19835 fi
19836 ;;
19837
19838amigaos*)
19839 library_names_spec='$libname.ixlibrary $libname.a'
19840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019841 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 +000019842 ;;
19843
19844beos*)
19845 library_names_spec='${libname}${shared_ext}'
19846 dynamic_linker="$host_os ld.so"
19847 shlibpath_var=LIBRARY_PATH
19848 ;;
19849
Reid Spencer2706f8c2004-09-19 23:53:36 +000019850bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019851 version_type=linux
19852 need_version=no
19853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19854 soname_spec='${libname}${release}${shared_ext}$major'
19855 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19856 shlibpath_var=LD_LIBRARY_PATH
19857 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19858 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19859 # the default ld.so.conf also contains /usr/contrib/lib and
19860 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19861 # libtool to hard-code these into programs
19862 ;;
19863
19864cygwin* | mingw* | pw32*)
19865 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019866 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019867 need_version=no
19868 need_lib_prefix=no
19869
19870 case $GCC,$host_os in
19871 yes,cygwin* | yes,mingw* | yes,pw32*)
19872 library_names_spec='$libname.dll.a'
19873 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019874 postinstall_cmds='base_file=`basename \${file}`~
19875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19876 dldir=$destdir/`dirname \$dlpath`~
19877 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019878 $install_prog $dir/$dlname \$dldir/$dlname~
19879 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19881 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019882 $rm \$dlpath'
19883 shlibpath_overrides_runpath=yes
19884
19885 case $host_os in
19886 cygwin*)
19887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19888 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 +000019889 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019890 ;;
19891 mingw*)
19892 # MinGW DLLs use traditional 'lib' prefix
19893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19895 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19896 # It is most probably a Windows format PATH printed by
19897 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19898 # path with ; separators, and with drive letters. We can handle the
19899 # drive letters (cygwin fileutils understands them), so leave them,
19900 # especially as we might pass files found there to a mingw objdump,
19901 # which wouldn't understand a cygwinified path. Ahh.
19902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19903 else
19904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19905 fi
19906 ;;
19907 pw32*)
19908 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019909 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 +000019910 ;;
19911 esac
19912 ;;
19913
19914 *)
19915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19916 ;;
19917 esac
19918 dynamic_linker='Win32 ld.exe'
19919 # FIXME: first we should search . and the directory the executable is in
19920 shlibpath_var=PATH
19921 ;;
19922
19923darwin* | rhapsody*)
19924 dynamic_linker="$host_os dyld"
19925 version_type=darwin
19926 need_lib_prefix=no
19927 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019928 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019929 soname_spec='${libname}${release}${major}$shared_ext'
19930 shlibpath_overrides_runpath=yes
19931 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000019932 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000019933 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019934 if test "$GCC" = yes; then
19935 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"`
19936 else
19937 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019938 fi
19939 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19940 ;;
19941
19942dgux*)
19943 version_type=linux
19944 need_lib_prefix=no
19945 need_version=no
19946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19947 soname_spec='${libname}${release}${shared_ext}$major'
19948 shlibpath_var=LD_LIBRARY_PATH
19949 ;;
19950
19951freebsd1*)
19952 dynamic_linker=no
19953 ;;
19954
Reid Spencer2706f8c2004-09-19 23:53:36 +000019955kfreebsd*-gnu)
19956 version_type=linux
19957 need_lib_prefix=no
19958 need_version=no
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19960 soname_spec='${libname}${release}${shared_ext}$major'
19961 shlibpath_var=LD_LIBRARY_PATH
19962 shlibpath_overrides_runpath=no
19963 hardcode_into_libs=yes
19964 dynamic_linker='GNU ld.so'
19965 ;;
19966
Reid Spencera773bd52006-08-04 18:18:08 +000019967freebsd* | dragonfly*)
19968 # DragonFly does not have aout. When/if they implement a new
19969 # versioning mechanism, adjust this.
19970 if test -x /usr/bin/objformat; then
19971 objformat=`/usr/bin/objformat`
19972 else
19973 case $host_os in
19974 freebsd[123]*) objformat=aout ;;
19975 *) objformat=elf ;;
19976 esac
19977 fi
John Criswell47fdd832003-07-14 16:52:07 +000019978 version_type=freebsd-$objformat
19979 case $version_type in
19980 freebsd-elf*)
19981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19982 need_version=no
19983 need_lib_prefix=no
19984 ;;
19985 freebsd-*)
19986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19987 need_version=yes
19988 ;;
19989 esac
19990 shlibpath_var=LD_LIBRARY_PATH
19991 case $host_os in
19992 freebsd2*)
19993 shlibpath_overrides_runpath=yes
19994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019995 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019996 shlibpath_overrides_runpath=yes
19997 hardcode_into_libs=yes
19998 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019999 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20000 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020001 shlibpath_overrides_runpath=no
20002 hardcode_into_libs=yes
20003 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020004 freebsd*) # from 4.6 on
20005 shlibpath_overrides_runpath=yes
20006 hardcode_into_libs=yes
20007 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020008 esac
20009 ;;
20010
20011gnu*)
20012 version_type=linux
20013 need_lib_prefix=no
20014 need_version=no
20015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20016 soname_spec='${libname}${release}${shared_ext}$major'
20017 shlibpath_var=LD_LIBRARY_PATH
20018 hardcode_into_libs=yes
20019 ;;
20020
20021hpux9* | hpux10* | hpux11*)
20022 # Give a soname corresponding to the major version so that dld.sl refuses to
20023 # link against other versions.
20024 version_type=sunos
20025 need_lib_prefix=no
20026 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020027 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020028 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020029 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020030 hardcode_into_libs=yes
20031 dynamic_linker="$host_os dld.so"
20032 shlibpath_var=LD_LIBRARY_PATH
20033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20035 soname_spec='${libname}${release}${shared_ext}$major'
20036 if test "X$HPUX_IA64_MODE" = X32; then
20037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20038 else
20039 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20040 fi
20041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20042 ;;
20043 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020044 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020045 hardcode_into_libs=yes
20046 dynamic_linker="$host_os dld.sl"
20047 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20050 soname_spec='${libname}${release}${shared_ext}$major'
20051 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20053 ;;
20054 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020055 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020056 dynamic_linker="$host_os dld.sl"
20057 shlibpath_var=SHLIB_PATH
20058 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20060 soname_spec='${libname}${release}${shared_ext}$major'
20061 ;;
20062 esac
20063 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20064 postinstall_cmds='chmod 555 $lib'
20065 ;;
20066
Reid Spencera773bd52006-08-04 18:18:08 +000020067interix3*)
20068 version_type=linux
20069 need_lib_prefix=no
20070 need_version=no
20071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20072 soname_spec='${libname}${release}${shared_ext}$major'
20073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20074 shlibpath_var=LD_LIBRARY_PATH
20075 shlibpath_overrides_runpath=no
20076 hardcode_into_libs=yes
20077 ;;
20078
John Criswell47fdd832003-07-14 16:52:07 +000020079irix5* | irix6* | nonstopux*)
20080 case $host_os in
20081 nonstopux*) version_type=nonstopux ;;
20082 *)
20083 if test "$lt_cv_prog_gnu_ld" = yes; then
20084 version_type=linux
20085 else
20086 version_type=irix
20087 fi ;;
20088 esac
20089 need_lib_prefix=no
20090 need_version=no
20091 soname_spec='${libname}${release}${shared_ext}$major'
20092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20093 case $host_os in
20094 irix5* | nonstopux*)
20095 libsuff= shlibsuff=
20096 ;;
20097 *)
20098 case $LD in # libtool.m4 will add one of these switches to LD
20099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20100 libsuff= shlibsuff= libmagic=32-bit;;
20101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20102 libsuff=32 shlibsuff=N32 libmagic=N32;;
20103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20104 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20105 *) libsuff= shlibsuff= libmagic=never-match;;
20106 esac
20107 ;;
20108 esac
20109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20110 shlibpath_overrides_runpath=no
20111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20113 hardcode_into_libs=yes
20114 ;;
20115
20116# No shared lib support for Linux oldld, aout, or coff.
20117linux*oldld* | linux*aout* | linux*coff*)
20118 dynamic_linker=no
20119 ;;
20120
20121# This must be Linux ELF.
20122linux*)
20123 version_type=linux
20124 need_lib_prefix=no
20125 need_version=no
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20129 shlibpath_var=LD_LIBRARY_PATH
20130 shlibpath_overrides_runpath=no
20131 # This implies no fast_install, which is unacceptable.
20132 # Some rework will be needed to allow for fast_install
20133 # before this can be enabled.
20134 hardcode_into_libs=yes
20135
Reid Spencer2706f8c2004-09-19 23:53:36 +000020136 # Append ld.so.conf contents to the search path
20137 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020138 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 +000020139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20140 fi
20141
John Criswell47fdd832003-07-14 16:52:07 +000020142 # We used to test for /lib/ld.so.1 and disable shared libraries on
20143 # powerpc, because MkLinux only supported shared libraries with the
20144 # GNU dynamic linker. Since this was broken with cross compilers,
20145 # most powerpc-linux boxes support dynamic linking these days and
20146 # people can always --disable-shared, the test was removed, and we
20147 # assume the GNU/Linux dynamic linker is in use.
20148 dynamic_linker='GNU/Linux ld.so'
20149 ;;
20150
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151knetbsd*-gnu)
20152 version_type=linux
20153 need_lib_prefix=no
20154 need_version=no
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20156 soname_spec='${libname}${release}${shared_ext}$major'
20157 shlibpath_var=LD_LIBRARY_PATH
20158 shlibpath_overrides_runpath=no
20159 hardcode_into_libs=yes
20160 dynamic_linker='GNU ld.so'
20161 ;;
20162
John Criswell47fdd832003-07-14 16:52:07 +000020163netbsd*)
20164 version_type=sunos
20165 need_lib_prefix=no
20166 need_version=no
20167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20170 dynamic_linker='NetBSD (a.out) ld.so'
20171 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020173 soname_spec='${libname}${release}${shared_ext}$major'
20174 dynamic_linker='NetBSD ld.elf_so'
20175 fi
20176 shlibpath_var=LD_LIBRARY_PATH
20177 shlibpath_overrides_runpath=yes
20178 hardcode_into_libs=yes
20179 ;;
20180
20181newsos6)
20182 version_type=linux
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 shlibpath_overrides_runpath=yes
20186 ;;
20187
Reid Spencer2706f8c2004-09-19 23:53:36 +000020188nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020189 version_type=linux
20190 need_lib_prefix=no
20191 need_version=no
20192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20193 soname_spec='${libname}${release}${shared_ext}$major'
20194 shlibpath_var=LD_LIBRARY_PATH
20195 shlibpath_overrides_runpath=yes
20196 ;;
20197
20198openbsd*)
20199 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020200 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020201 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20203 case $host_os in
20204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20205 *) need_version=no ;;
20206 esac
John Criswell47fdd832003-07-14 16:52:07 +000020207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20209 shlibpath_var=LD_LIBRARY_PATH
20210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20211 case $host_os in
20212 openbsd2.[89] | openbsd2.[89].*)
20213 shlibpath_overrides_runpath=no
20214 ;;
20215 *)
20216 shlibpath_overrides_runpath=yes
20217 ;;
20218 esac
20219 else
20220 shlibpath_overrides_runpath=yes
20221 fi
20222 ;;
20223
20224os2*)
20225 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020226 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020227 need_lib_prefix=no
20228 library_names_spec='$libname${shared_ext} $libname.a'
20229 dynamic_linker='OS/2 ld.exe'
20230 shlibpath_var=LIBPATH
20231 ;;
20232
20233osf3* | osf4* | osf5*)
20234 version_type=osf
20235 need_lib_prefix=no
20236 need_version=no
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20239 shlibpath_var=LD_LIBRARY_PATH
20240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20242 ;;
20243
John Criswell47fdd832003-07-14 16:52:07 +000020244solaris*)
20245 version_type=linux
20246 need_lib_prefix=no
20247 need_version=no
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 soname_spec='${libname}${release}${shared_ext}$major'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 shlibpath_overrides_runpath=yes
20252 hardcode_into_libs=yes
20253 # ldd complains unless libraries are executable
20254 postinstall_cmds='chmod +x $lib'
20255 ;;
20256
20257sunos4*)
20258 version_type=sunos
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20260 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20261 shlibpath_var=LD_LIBRARY_PATH
20262 shlibpath_overrides_runpath=yes
20263 if test "$with_gnu_ld" = yes; then
20264 need_lib_prefix=no
20265 fi
20266 need_version=yes
20267 ;;
20268
Reid Spencera773bd52006-08-04 18:18:08 +000020269sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020270 version_type=linux
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 case $host_vendor in
20275 sni)
20276 shlibpath_overrides_runpath=no
20277 need_lib_prefix=no
20278 export_dynamic_flag_spec='${wl}-Blargedynsym'
20279 runpath_var=LD_RUN_PATH
20280 ;;
20281 siemens)
20282 need_lib_prefix=no
20283 ;;
20284 motorola)
20285 need_lib_prefix=no
20286 need_version=no
20287 shlibpath_overrides_runpath=no
20288 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20289 ;;
20290 esac
20291 ;;
20292
20293sysv4*MP*)
20294 if test -d /usr/nec ;then
20295 version_type=linux
20296 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20297 soname_spec='$libname${shared_ext}.$major'
20298 shlibpath_var=LD_LIBRARY_PATH
20299 fi
20300 ;;
20301
Reid Spencera773bd52006-08-04 18:18:08 +000020302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20303 version_type=freebsd-elf
20304 need_lib_prefix=no
20305 need_version=no
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20307 soname_spec='${libname}${release}${shared_ext}$major'
20308 shlibpath_var=LD_LIBRARY_PATH
20309 hardcode_into_libs=yes
20310 if test "$with_gnu_ld" = yes; then
20311 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20312 shlibpath_overrides_runpath=no
20313 else
20314 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20315 shlibpath_overrides_runpath=yes
20316 case $host_os in
20317 sco3.2v5*)
20318 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20319 ;;
20320 esac
20321 fi
20322 sys_lib_dlsearch_path_spec='/usr/lib'
20323 ;;
20324
John Criswell47fdd832003-07-14 16:52:07 +000020325uts4*)
20326 version_type=linux
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 ;;
20331
20332*)
20333 dynamic_linker=no
20334 ;;
20335esac
Reid Spencera773bd52006-08-04 18:18:08 +000020336{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20337echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020338test "$dynamic_linker" = no && can_build_shared=no
20339
Reid Spencera773bd52006-08-04 18:18:08 +000020340variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20341if test "$GCC" = yes; then
20342 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20343fi
20344
20345{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20346echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020347hardcode_action_CXX=
20348if test -n "$hardcode_libdir_flag_spec_CXX" || \
20349 test -n "$runpath_var_CXX" || \
20350 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20351
20352 # We can hardcode non-existant directories.
20353 if test "$hardcode_direct_CXX" != no &&
20354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20355 # have to relink, otherwise we might link with an installed library
20356 # when we should be linking with a yet-to-be-installed one
20357 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20358 test "$hardcode_minus_L_CXX" != no; then
20359 # Linking always hardcodes the temporary library directory.
20360 hardcode_action_CXX=relink
20361 else
20362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20363 hardcode_action_CXX=immediate
20364 fi
20365else
20366 # We cannot hardcode anything, or else we can only hardcode existing
20367 # directories.
20368 hardcode_action_CXX=unsupported
20369fi
Reid Spencera773bd52006-08-04 18:18:08 +000020370{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20371echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020372
20373if test "$hardcode_action_CXX" = relink; then
20374 # Fast installation is not supported
20375 enable_fast_install=no
20376elif test "$shlibpath_overrides_runpath" = yes ||
20377 test "$enable_shared" = no; then
20378 # Fast installation is not necessary
20379 enable_fast_install=needless
20380fi
20381
John Criswell47fdd832003-07-14 16:52:07 +000020382
20383# The else clause should only fire when bootstrapping the
20384# libtool distribution, otherwise you forgot to ship ltmain.sh
20385# with your package, and you will get complaints that there are
20386# no rules to generate ltmain.sh.
20387if test -f "$ltmain"; then
20388 # See if we are running on zsh, and set the options which allow our commands through
20389 # without removal of \ escapes.
20390 if test -n "${ZSH_VERSION+set}" ; then
20391 setopt NO_GLOB_SUBST
20392 fi
20393 # Now quote all the things that may contain metacharacters while being
20394 # careful not to overquote the AC_SUBSTed values. We take copies of the
20395 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020396 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 +000020397 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20400 deplibs_check_method reload_flag reload_cmds need_locks \
20401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20402 lt_cv_sys_global_symbol_to_c_name_address \
20403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20404 old_postinstall_cmds old_postuninstall_cmds \
20405 compiler_CXX \
20406 CC_CXX \
20407 LD_CXX \
20408 lt_prog_compiler_wl_CXX \
20409 lt_prog_compiler_pic_CXX \
20410 lt_prog_compiler_static_CXX \
20411 lt_prog_compiler_no_builtin_flag_CXX \
20412 export_dynamic_flag_spec_CXX \
20413 thread_safe_flag_spec_CXX \
20414 whole_archive_flag_spec_CXX \
20415 enable_shared_with_static_runtimes_CXX \
20416 old_archive_cmds_CXX \
20417 old_archive_from_new_cmds_CXX \
20418 predep_objects_CXX \
20419 postdep_objects_CXX \
20420 predeps_CXX \
20421 postdeps_CXX \
20422 compiler_lib_search_path_CXX \
20423 archive_cmds_CXX \
20424 archive_expsym_cmds_CXX \
20425 postinstall_cmds_CXX \
20426 postuninstall_cmds_CXX \
20427 old_archive_from_expsyms_cmds_CXX \
20428 allow_undefined_flag_CXX \
20429 no_undefined_flag_CXX \
20430 export_symbols_cmds_CXX \
20431 hardcode_libdir_flag_spec_CXX \
20432 hardcode_libdir_flag_spec_ld_CXX \
20433 hardcode_libdir_separator_CXX \
20434 hardcode_automatic_CXX \
20435 module_cmds_CXX \
20436 module_expsym_cmds_CXX \
20437 lt_cv_prog_compiler_c_o_CXX \
20438 exclude_expsyms_CXX \
20439 include_expsyms_CXX; do
20440
20441 case $var in
20442 old_archive_cmds_CXX | \
20443 old_archive_from_new_cmds_CXX | \
20444 archive_cmds_CXX | \
20445 archive_expsym_cmds_CXX | \
20446 module_cmds_CXX | \
20447 module_expsym_cmds_CXX | \
20448 old_archive_from_expsyms_cmds_CXX | \
20449 export_symbols_cmds_CXX | \
20450 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20451 postinstall_cmds | postuninstall_cmds | \
20452 old_postinstall_cmds | old_postuninstall_cmds | \
20453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20454 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020455 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 +000020456 ;;
20457 *)
20458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20459 ;;
20460 esac
20461 done
20462
20463 case $lt_echo in
20464 *'\$0 --fallback-echo"')
20465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20466 ;;
20467 esac
20468
20469cfgfile="$ofile"
20470
20471 cat <<__EOF__ >> "$cfgfile"
20472# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20473
20474# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20475
20476# Shell to use when invoking shell scripts.
20477SHELL=$lt_SHELL
20478
20479# Whether or not to build shared libraries.
20480build_libtool_libs=$enable_shared
20481
20482# Whether or not to build static libraries.
20483build_old_libs=$enable_static
20484
20485# Whether or not to add -lc for building shared libraries.
20486build_libtool_need_lc=$archive_cmds_need_lc_CXX
20487
20488# Whether or not to disallow shared libs when runtime libs are static
20489allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20490
20491# Whether or not to optimize for fast installation.
20492fast_install=$enable_fast_install
20493
20494# The host system.
20495host_alias=$host_alias
20496host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020497host_os=$host_os
20498
20499# The build system.
20500build_alias=$build_alias
20501build=$build
20502build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020503
20504# An echo program that does not interpret backslashes.
20505echo=$lt_echo
20506
20507# The archiver.
20508AR=$lt_AR
20509AR_FLAGS=$lt_AR_FLAGS
20510
20511# A C compiler.
20512LTCC=$lt_LTCC
20513
Reid Spencera773bd52006-08-04 18:18:08 +000020514# LTCC compiler flags.
20515LTCFLAGS=$lt_LTCFLAGS
20516
John Criswell47fdd832003-07-14 16:52:07 +000020517# A language-specific compiler.
20518CC=$lt_compiler_CXX
20519
20520# Is the compiler the GNU C compiler?
20521with_gcc=$GCC_CXX
20522
20523# An ERE matcher.
20524EGREP=$lt_EGREP
20525
20526# The linker used to build libraries.
20527LD=$lt_LD_CXX
20528
20529# Whether we need hard or soft links.
20530LN_S=$lt_LN_S
20531
20532# A BSD-compatible nm program.
20533NM=$lt_NM
20534
20535# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020536STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020537
20538# Used to examine libraries when file_magic_cmd begins "file"
20539MAGIC_CMD=$MAGIC_CMD
20540
20541# Used on cygwin: DLL creation program.
20542DLLTOOL="$DLLTOOL"
20543
20544# Used on cygwin: object dumper.
20545OBJDUMP="$OBJDUMP"
20546
20547# Used on cygwin: assembler.
20548AS="$AS"
20549
20550# The name of the directory that contains temporary libtool files.
20551objdir=$objdir
20552
20553# How to create reloadable object files.
20554reload_flag=$lt_reload_flag
20555reload_cmds=$lt_reload_cmds
20556
20557# How to pass a linker flag through the compiler.
20558wl=$lt_lt_prog_compiler_wl_CXX
20559
20560# Object file suffix (normally "o").
20561objext="$ac_objext"
20562
20563# Old archive suffix (normally "a").
20564libext="$libext"
20565
20566# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020567shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020568
20569# Executable file suffix (normally "").
20570exeext="$exeext"
20571
20572# Additional compiler flags for building library objects.
20573pic_flag=$lt_lt_prog_compiler_pic_CXX
20574pic_mode=$pic_mode
20575
20576# What is the maximum length of a command?
20577max_cmd_len=$lt_cv_sys_max_cmd_len
20578
20579# Does compiler simultaneously support -c and -o options?
20580compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20581
Reid Spencera773bd52006-08-04 18:18:08 +000020582# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020583need_locks=$lt_need_locks
20584
20585# Do we need the lib prefix for modules?
20586need_lib_prefix=$need_lib_prefix
20587
20588# Do we need a version for libraries?
20589need_version=$need_version
20590
20591# Whether dlopen is supported.
20592dlopen_support=$enable_dlopen
20593
20594# Whether dlopen of programs is supported.
20595dlopen_self=$enable_dlopen_self
20596
20597# Whether dlopen of statically linked programs is supported.
20598dlopen_self_static=$enable_dlopen_self_static
20599
20600# Compiler flag to prevent dynamic linking.
20601link_static_flag=$lt_lt_prog_compiler_static_CXX
20602
20603# Compiler flag to turn off builtin functions.
20604no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20605
20606# Compiler flag to allow reflexive dlopens.
20607export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20608
20609# Compiler flag to generate shared objects directly from archives.
20610whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20611
20612# Compiler flag to generate thread-safe objects.
20613thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20614
20615# Library versioning type.
20616version_type=$version_type
20617
20618# Format of library name prefix.
20619libname_spec=$lt_libname_spec
20620
20621# List of archive names. First name is the real one, the rest are links.
20622# The last name is the one that the linker finds with -lNAME.
20623library_names_spec=$lt_library_names_spec
20624
20625# The coded name of the library, if different from the real name.
20626soname_spec=$lt_soname_spec
20627
20628# Commands used to build and install an old-style archive.
20629RANLIB=$lt_RANLIB
20630old_archive_cmds=$lt_old_archive_cmds_CXX
20631old_postinstall_cmds=$lt_old_postinstall_cmds
20632old_postuninstall_cmds=$lt_old_postuninstall_cmds
20633
20634# Create an old-style archive from a shared archive.
20635old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20636
20637# Create a temporary old-style archive to link instead of a shared archive.
20638old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20639
20640# Commands used to build and install a shared archive.
20641archive_cmds=$lt_archive_cmds_CXX
20642archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20643postinstall_cmds=$lt_postinstall_cmds
20644postuninstall_cmds=$lt_postuninstall_cmds
20645
20646# Commands used to build a loadable module (assumed same as above if empty)
20647module_cmds=$lt_module_cmds_CXX
20648module_expsym_cmds=$lt_module_expsym_cmds_CXX
20649
20650# Commands to strip libraries.
20651old_striplib=$lt_old_striplib
20652striplib=$lt_striplib
20653
20654# Dependencies to place before the objects being linked to create a
20655# shared library.
20656predep_objects=$lt_predep_objects_CXX
20657
20658# Dependencies to place after the objects being linked to create a
20659# shared library.
20660postdep_objects=$lt_postdep_objects_CXX
20661
20662# Dependencies to place before the objects being linked to create a
20663# shared library.
20664predeps=$lt_predeps_CXX
20665
20666# Dependencies to place after the objects being linked to create a
20667# shared library.
20668postdeps=$lt_postdeps_CXX
20669
20670# The library search path used internally by the compiler when linking
20671# a shared library.
20672compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20673
20674# Method to check whether dependent libraries are shared objects.
20675deplibs_check_method=$lt_deplibs_check_method
20676
20677# Command to use when deplibs_check_method == file_magic.
20678file_magic_cmd=$lt_file_magic_cmd
20679
20680# Flag that allows shared libraries with undefined symbols to be built.
20681allow_undefined_flag=$lt_allow_undefined_flag_CXX
20682
20683# Flag that forces no undefined symbols.
20684no_undefined_flag=$lt_no_undefined_flag_CXX
20685
20686# Commands used to finish a libtool library installation in a directory.
20687finish_cmds=$lt_finish_cmds
20688
20689# Same as above, but a single script fragment to be evaled but not shown.
20690finish_eval=$lt_finish_eval
20691
20692# Take the output of nm and produce a listing of raw symbols and C names.
20693global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20694
20695# Transform the output of nm in a proper C declaration
20696global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20697
20698# Transform the output of nm in a C name address pair
20699global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20700
20701# This is the shared library runtime path variable.
20702runpath_var=$runpath_var
20703
20704# This is the shared library path variable.
20705shlibpath_var=$shlibpath_var
20706
20707# Is shlibpath searched before the hard-coded library search path?
20708shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20709
20710# How to hardcode a shared library path into an executable.
20711hardcode_action=$hardcode_action_CXX
20712
20713# Whether we should hardcode library paths into libraries.
20714hardcode_into_libs=$hardcode_into_libs
20715
20716# Flag to hardcode \$libdir into a binary during linking.
20717# This must work even if \$libdir does not exist.
20718hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20719
20720# If ld is used when linking, flag to hardcode \$libdir into
20721# a binary during linking. This must work even if \$libdir does
20722# not exist.
20723hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20724
20725# Whether we need a single -rpath flag with a separated argument.
20726hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20727
20728# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20729# resulting binary.
20730hardcode_direct=$hardcode_direct_CXX
20731
20732# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20733# resulting binary.
20734hardcode_minus_L=$hardcode_minus_L_CXX
20735
20736# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20737# the resulting binary.
20738hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20739
20740# Set to yes if building a shared library automatically hardcodes DIR into the library
20741# and all subsequent libraries and executables linked against it.
20742hardcode_automatic=$hardcode_automatic_CXX
20743
20744# Variables whose values should be saved in libtool wrapper scripts and
20745# restored at relink time.
20746variables_saved_for_relink="$variables_saved_for_relink"
20747
20748# Whether libtool must link a program against all its dependency libraries.
20749link_all_deplibs=$link_all_deplibs_CXX
20750
20751# Compile-time system search path for libraries
20752sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20753
20754# Run-time system search path for libraries
20755sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20756
20757# Fix the shell variable \$srcfile for the compiler.
20758fix_srcfile_path="$fix_srcfile_path_CXX"
20759
20760# Set to yes if exported symbols are required.
20761always_export_symbols=$always_export_symbols_CXX
20762
20763# The commands to list exported symbols.
20764export_symbols_cmds=$lt_export_symbols_cmds_CXX
20765
20766# The commands to extract the exported symbol list from a shared archive.
20767extract_expsyms_cmds=$lt_extract_expsyms_cmds
20768
20769# Symbols that should not be listed in the preloaded symbols.
20770exclude_expsyms=$lt_exclude_expsyms_CXX
20771
20772# Symbols that must always be exported.
20773include_expsyms=$lt_include_expsyms_CXX
20774
20775# ### END LIBTOOL TAG CONFIG: $tagname
20776
20777__EOF__
20778
20779
20780else
20781 # If there is no Makefile yet, we rely on a make rule to execute
20782 # `config.status --recheck' to rerun these tests and create the
20783 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020784 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20785 if test -f "$ltmain_in"; then
20786 test -f Makefile && make "$ltmain"
20787 fi
John Criswell47fdd832003-07-14 16:52:07 +000020788fi
20789
20790
20791ac_ext=c
20792ac_cpp='$CPP $CPPFLAGS'
20793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795ac_compiler_gnu=$ac_cv_c_compiler_gnu
20796
20797CC=$lt_save_CC
20798LDCXX=$LD
20799LD=$lt_save_LD
20800GCC=$lt_save_GCC
20801with_gnu_ldcxx=$with_gnu_ld
20802with_gnu_ld=$lt_save_with_gnu_ld
20803lt_cv_path_LDCXX=$lt_cv_path_LD
20804lt_cv_path_LD=$lt_save_path_LD
20805lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20806lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20807
20808 else
20809 tagname=""
20810 fi
20811 ;;
20812
20813 F77)
20814 if test -n "$F77" && test "X$F77" != "Xno"; then
20815
20816ac_ext=f
20817ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20818ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20820
20821
20822archive_cmds_need_lc_F77=no
20823allow_undefined_flag_F77=
20824always_export_symbols_F77=no
20825archive_expsym_cmds_F77=
20826export_dynamic_flag_spec_F77=
20827hardcode_direct_F77=no
20828hardcode_libdir_flag_spec_F77=
20829hardcode_libdir_flag_spec_ld_F77=
20830hardcode_libdir_separator_F77=
20831hardcode_minus_L_F77=no
20832hardcode_automatic_F77=no
20833module_cmds_F77=
20834module_expsym_cmds_F77=
20835link_all_deplibs_F77=unknown
20836old_archive_cmds_F77=$old_archive_cmds
20837no_undefined_flag_F77=
20838whole_archive_flag_spec_F77=
20839enable_shared_with_static_runtimes_F77=no
20840
20841# Source file extension for f77 test sources.
20842ac_ext=f
20843
20844# Object file extension for compiled f77 test sources.
20845objext=o
20846objext_F77=$objext
20847
20848# Code to be used in simple compile tests
20849lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20850
20851# Code to be used in simple link tests
20852lt_simple_link_test_code=" program t\n end\n"
20853
20854# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20855
20856# If no C compiler was specified, use CC.
20857LTCC=${LTCC-"$CC"}
20858
Reid Spencera773bd52006-08-04 18:18:08 +000020859# If no C compiler flags were specified, use CFLAGS.
20860LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20861
John Criswell47fdd832003-07-14 16:52:07 +000020862# Allow CC to be a program name with arguments.
20863compiler=$CC
20864
20865
Reid Spencera773bd52006-08-04 18:18:08 +000020866# save warnings/boilerplate of simple test code
20867ac_outfile=conftest.$ac_objext
20868printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20869eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20870_lt_compiler_boilerplate=`cat conftest.err`
20871$rm conftest*
20872
20873ac_outfile=conftest.$ac_objext
20874printf "$lt_simple_link_test_code" >conftest.$ac_ext
20875eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20876_lt_linker_boilerplate=`cat conftest.err`
20877$rm conftest*
20878
20879
John Criswell47fdd832003-07-14 16:52:07 +000020880# Allow CC to be a program name with arguments.
20881lt_save_CC="$CC"
20882CC=${F77-"f77"}
20883compiler=$CC
20884compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020885for cc_temp in $compiler""; do
20886 case $cc_temp in
20887 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20888 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20889 \-*) ;;
20890 *) break;;
20891 esac
20892done
20893cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020894
John Criswell47fdd832003-07-14 16:52:07 +000020895
Reid Spencera773bd52006-08-04 18:18:08 +000020896{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20897echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20898{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20899echo "${ECHO_T}$can_build_shared" >&6; }
20900
20901{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20902echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020903test "$can_build_shared" = "no" && enable_shared=no
20904
20905# On AIX, shared libraries and static libraries use the same namespace, and
20906# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020907case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020908aix3*)
20909 test "$enable_shared" = yes && enable_static=no
20910 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020911 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020912 postinstall_cmds='$RANLIB $lib'
20913 fi
20914 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020915aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020916 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20917 test "$enable_shared" = yes && enable_static=no
20918 fi
John Criswell47fdd832003-07-14 16:52:07 +000020919 ;;
20920esac
Reid Spencera773bd52006-08-04 18:18:08 +000020921{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20922echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020923
Reid Spencera773bd52006-08-04 18:18:08 +000020924{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20925echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020926# Make sure either enable_shared or enable_static is yes.
20927test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020928{ echo "$as_me:$LINENO: result: $enable_static" >&5
20929echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020930
20931GCC_F77="$G77"
20932LD_F77="$LD"
20933
20934lt_prog_compiler_wl_F77=
20935lt_prog_compiler_pic_F77=
20936lt_prog_compiler_static_F77=
20937
Reid Spencera773bd52006-08-04 18:18:08 +000020938{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20939echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020940
20941 if test "$GCC" = yes; then
20942 lt_prog_compiler_wl_F77='-Wl,'
20943 lt_prog_compiler_static_F77='-static'
20944
20945 case $host_os in
20946 aix*)
20947 # All AIX code is PIC.
20948 if test "$host_cpu" = ia64; then
20949 # AIX 5 now supports IA64 processor
20950 lt_prog_compiler_static_F77='-Bstatic'
20951 fi
20952 ;;
20953
20954 amigaos*)
20955 # FIXME: we need at least 68020 code to build shared libraries, but
20956 # adding the `-m68020' flag to GCC prevents building anything better,
20957 # like `-m68040'.
20958 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20959 ;;
20960
20961 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20962 # PIC is the default for these OSes.
20963 ;;
20964
20965 mingw* | pw32* | os2*)
20966 # This hack is so that the source file can tell whether it is being
20967 # built for inclusion in a dll (and should export symbols for example).
20968 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20969 ;;
20970
20971 darwin* | rhapsody*)
20972 # PIC is the default on this platform
20973 # Common symbols not allowed in MH_DYLIB files
20974 lt_prog_compiler_pic_F77='-fno-common'
20975 ;;
20976
Reid Spencera773bd52006-08-04 18:18:08 +000020977 interix3*)
20978 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20979 # Instead, we relocate shared libraries at runtime.
20980 ;;
20981
John Criswell47fdd832003-07-14 16:52:07 +000020982 msdosdjgpp*)
20983 # Just because we use GCC doesn't mean we suddenly get shared libraries
20984 # on systems that don't support them.
20985 lt_prog_compiler_can_build_shared_F77=no
20986 enable_shared=no
20987 ;;
20988
20989 sysv4*MP*)
20990 if test -d /usr/nec; then
20991 lt_prog_compiler_pic_F77=-Kconform_pic
20992 fi
20993 ;;
20994
20995 hpux*)
20996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20997 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020998 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020999 hppa*64*|ia64*)
21000 # +Z the default
21001 ;;
21002 *)
21003 lt_prog_compiler_pic_F77='-fPIC'
21004 ;;
21005 esac
21006 ;;
21007
21008 *)
21009 lt_prog_compiler_pic_F77='-fPIC'
21010 ;;
21011 esac
21012 else
21013 # PORTME Check for flag to pass linker flags through the system compiler.
21014 case $host_os in
21015 aix*)
21016 lt_prog_compiler_wl_F77='-Wl,'
21017 if test "$host_cpu" = ia64; then
21018 # AIX 5 now supports IA64 processor
21019 lt_prog_compiler_static_F77='-Bstatic'
21020 else
21021 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21022 fi
21023 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021024 darwin*)
21025 # PIC is the default on this platform
21026 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021027 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021028 xlc*)
21029 lt_prog_compiler_pic_F77='-qnocommon'
21030 lt_prog_compiler_wl_F77='-Wl,'
21031 ;;
21032 esac
21033 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021034
21035 mingw* | pw32* | os2*)
21036 # This hack is so that the source file can tell whether it is being
21037 # built for inclusion in a dll (and should export symbols for example).
21038 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21039 ;;
21040
21041 hpux9* | hpux10* | hpux11*)
21042 lt_prog_compiler_wl_F77='-Wl,'
21043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21044 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021045 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021046 hppa*64*|ia64*)
21047 # +Z the default
21048 ;;
21049 *)
21050 lt_prog_compiler_pic_F77='+Z'
21051 ;;
21052 esac
21053 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21054 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21055 ;;
21056
21057 irix5* | irix6* | nonstopux*)
21058 lt_prog_compiler_wl_F77='-Wl,'
21059 # PIC (with -KPIC) is the default.
21060 lt_prog_compiler_static_F77='-non_shared'
21061 ;;
21062
21063 newsos6)
21064 lt_prog_compiler_pic_F77='-KPIC'
21065 lt_prog_compiler_static_F77='-Bstatic'
21066 ;;
21067
21068 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021069 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021070 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021071 lt_prog_compiler_wl_F77='-Wl,'
21072 lt_prog_compiler_pic_F77='-KPIC'
21073 lt_prog_compiler_static_F77='-static'
21074 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021075 pgcc* | pgf77* | pgf90* | pgf95*)
21076 # Portland Group compilers (*not* the Pentium gcc compiler,
21077 # which looks to be a dead project)
21078 lt_prog_compiler_wl_F77='-Wl,'
21079 lt_prog_compiler_pic_F77='-fpic'
21080 lt_prog_compiler_static_F77='-Bstatic'
21081 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021082 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021083 lt_prog_compiler_wl_F77='-Wl,'
21084 # All Alpha code is PIC.
21085 lt_prog_compiler_static_F77='-non_shared'
21086 ;;
21087 esac
21088 ;;
21089
21090 osf3* | osf4* | osf5*)
21091 lt_prog_compiler_wl_F77='-Wl,'
21092 # All OSF/1 code is PIC.
21093 lt_prog_compiler_static_F77='-non_shared'
21094 ;;
21095
John Criswell47fdd832003-07-14 16:52:07 +000021096 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021097 lt_prog_compiler_pic_F77='-KPIC'
21098 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021099 case $cc_basename in
21100 f77* | f90* | f95*)
21101 lt_prog_compiler_wl_F77='-Qoption ld ';;
21102 *)
21103 lt_prog_compiler_wl_F77='-Wl,';;
21104 esac
John Criswell47fdd832003-07-14 16:52:07 +000021105 ;;
21106
21107 sunos4*)
21108 lt_prog_compiler_wl_F77='-Qoption ld '
21109 lt_prog_compiler_pic_F77='-PIC'
21110 lt_prog_compiler_static_F77='-Bstatic'
21111 ;;
21112
Reid Spencera773bd52006-08-04 18:18:08 +000021113 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021114 lt_prog_compiler_wl_F77='-Wl,'
21115 lt_prog_compiler_pic_F77='-KPIC'
21116 lt_prog_compiler_static_F77='-Bstatic'
21117 ;;
21118
21119 sysv4*MP*)
21120 if test -d /usr/nec ;then
21121 lt_prog_compiler_pic_F77='-Kconform_pic'
21122 lt_prog_compiler_static_F77='-Bstatic'
21123 fi
21124 ;;
21125
Reid Spencera773bd52006-08-04 18:18:08 +000021126 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21127 lt_prog_compiler_wl_F77='-Wl,'
21128 lt_prog_compiler_pic_F77='-KPIC'
21129 lt_prog_compiler_static_F77='-Bstatic'
21130 ;;
21131
21132 unicos*)
21133 lt_prog_compiler_wl_F77='-Wl,'
21134 lt_prog_compiler_can_build_shared_F77=no
21135 ;;
21136
John Criswell47fdd832003-07-14 16:52:07 +000021137 uts4*)
21138 lt_prog_compiler_pic_F77='-pic'
21139 lt_prog_compiler_static_F77='-Bstatic'
21140 ;;
21141
21142 *)
21143 lt_prog_compiler_can_build_shared_F77=no
21144 ;;
21145 esac
21146 fi
21147
Reid Spencera773bd52006-08-04 18:18:08 +000021148{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21149echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021150
21151#
21152# Check to make sure the PIC flag actually works.
21153#
21154if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021155
Reid Spencera773bd52006-08-04 18:18:08 +000021156{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21157echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021158if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21160else
21161 lt_prog_compiler_pic_works_F77=no
21162 ac_outfile=conftest.$ac_objext
21163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21164 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21165 # Insert the option either (1) after the last *FLAGS variable, or
21166 # (2) before a word containing "conftest.", or (3) at the end.
21167 # Note that $ac_compile itself does not contain backslashes and begins
21168 # with a dollar sign (not a hyphen), so the echo should work correctly.
21169 # The option is referenced via a variable to avoid confusing sed.
21170 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21173 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000021174 (eval echo "\"\$as_me:21174: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021175 (eval "$lt_compile" 2>conftest.err)
21176 ac_status=$?
21177 cat conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000021178 echo "$as_me:21178: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021179 if (exit $ac_status) && test -s "$ac_outfile"; then
21180 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021181 # So say no if there are warnings other than the usual output.
21182 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21184 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021185 lt_prog_compiler_pic_works_F77=yes
21186 fi
21187 fi
21188 $rm conftest*
21189
21190fi
Reid Spencera773bd52006-08-04 18:18:08 +000021191{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21192echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021193
21194if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21195 case $lt_prog_compiler_pic_F77 in
21196 "" | " "*) ;;
21197 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21198 esac
21199else
21200 lt_prog_compiler_pic_F77=
21201 lt_prog_compiler_can_build_shared_F77=no
21202fi
21203
21204fi
Reid Spencera773bd52006-08-04 18:18:08 +000021205case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021206 # For platforms which do not support PIC, -DPIC is meaningless:
21207 *djgpp*)
21208 lt_prog_compiler_pic_F77=
21209 ;;
21210 *)
21211 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21212 ;;
21213esac
21214
Reid Spencera773bd52006-08-04 18:18:08 +000021215#
21216# Check to make sure the static flag actually works.
21217#
21218wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21219{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21220echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21221if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223else
21224 lt_prog_compiler_static_works_F77=no
21225 save_LDFLAGS="$LDFLAGS"
21226 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21227 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21228 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21229 # The linker can only warn and ignore the option if not recognized
21230 # So say no if there are warnings
21231 if test -s conftest.err; then
21232 # Append any errors to the config.log.
21233 cat conftest.err 1>&5
21234 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21236 if diff conftest.exp conftest.er2 >/dev/null; then
21237 lt_prog_compiler_static_works_F77=yes
21238 fi
21239 else
21240 lt_prog_compiler_static_works_F77=yes
21241 fi
21242 fi
21243 $rm conftest*
21244 LDFLAGS="$save_LDFLAGS"
21245
21246fi
21247{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21248echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21249
21250if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21251 :
21252else
21253 lt_prog_compiler_static_F77=
21254fi
21255
21256
21257{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21258echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021259if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261else
21262 lt_cv_prog_compiler_c_o_F77=no
21263 $rm -r conftest 2>/dev/null
21264 mkdir conftest
21265 cd conftest
21266 mkdir out
21267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21268
John Criswell47fdd832003-07-14 16:52:07 +000021269 lt_compiler_flag="-o out/conftest2.$ac_objext"
21270 # Insert the option either (1) after the last *FLAGS variable, or
21271 # (2) before a word containing "conftest.", or (3) at the end.
21272 # Note that $ac_compile itself does not contain backslashes and begins
21273 # with a dollar sign (not a hyphen), so the echo should work correctly.
21274 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21277 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000021278 (eval echo "\"\$as_me:21278: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021279 (eval "$lt_compile" 2>out/conftest.err)
21280 ac_status=$?
21281 cat out/conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000021282 echo "$as_me:21282: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21284 then
21285 # The compiler can only warn and ignore the option if not recognized
21286 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021287 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021290 lt_cv_prog_compiler_c_o_F77=yes
21291 fi
21292 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021293 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021294 $rm conftest*
21295 # SGI C++ compiler will create directory out/ii_files/ for
21296 # template instantiation
21297 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21298 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021299 cd ..
21300 rmdir conftest
21301 $rm conftest*
21302
21303fi
Reid Spencera773bd52006-08-04 18:18:08 +000021304{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21305echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021306
21307
21308hard_links="nottested"
21309if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21310 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021311 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21312echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021313 hard_links=yes
21314 $rm conftest*
21315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21316 touch conftest.a
21317 ln conftest.a conftest.b 2>&5 || hard_links=no
21318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021319 { echo "$as_me:$LINENO: result: $hard_links" >&5
21320echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021321 if test "$hard_links" = no; then
21322 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21323echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21324 need_locks=warn
21325 fi
21326else
21327 need_locks=no
21328fi
21329
Reid Spencera773bd52006-08-04 18:18:08 +000021330{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21331echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021332
21333 runpath_var=
21334 allow_undefined_flag_F77=
21335 enable_shared_with_static_runtimes_F77=no
21336 archive_cmds_F77=
21337 archive_expsym_cmds_F77=
21338 old_archive_From_new_cmds_F77=
21339 old_archive_from_expsyms_cmds_F77=
21340 export_dynamic_flag_spec_F77=
21341 whole_archive_flag_spec_F77=
21342 thread_safe_flag_spec_F77=
21343 hardcode_libdir_flag_spec_F77=
21344 hardcode_libdir_flag_spec_ld_F77=
21345 hardcode_libdir_separator_F77=
21346 hardcode_direct_F77=no
21347 hardcode_minus_L_F77=no
21348 hardcode_shlibpath_var_F77=unsupported
21349 link_all_deplibs_F77=unknown
21350 hardcode_automatic_F77=no
21351 module_cmds_F77=
21352 module_expsym_cmds_F77=
21353 always_export_symbols_F77=no
21354 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21355 # include_expsyms should be a list of space-separated symbols to be *always*
21356 # included in the symbol list
21357 include_expsyms_F77=
21358 # exclude_expsyms can be an extended regexp of symbols to exclude
21359 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21360 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21361 # as well as any symbol that contains `d'.
21362 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21363 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21364 # platforms (ab)use it in PIC code, but their linkers get confused if
21365 # the symbol is explicitly referenced. Since portable code cannot
21366 # rely on this symbol name, it's probably fine to never include it in
21367 # preloaded symbol tables.
21368 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021369 # Just being paranoid about ensuring that cc_basename is set.
21370 for cc_temp in $compiler""; do
21371 case $cc_temp in
21372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21374 \-*) ;;
21375 *) break;;
21376 esac
21377done
21378cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021379
21380 case $host_os in
21381 cygwin* | mingw* | pw32*)
21382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21383 # When not using gcc, we currently assume that we are using
21384 # Microsoft Visual C++.
21385 if test "$GCC" != yes; then
21386 with_gnu_ld=no
21387 fi
21388 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021389 interix*)
21390 # we just hope/assume this is gcc and not c89 (= MSVC++)
21391 with_gnu_ld=yes
21392 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021393 openbsd*)
21394 with_gnu_ld=no
21395 ;;
21396 esac
21397
21398 ld_shlibs_F77=yes
21399 if test "$with_gnu_ld" = yes; then
21400 # If archive_cmds runs LD, not CC, wlarc should be empty
21401 wlarc='${wl}'
21402
Reid Spencera773bd52006-08-04 18:18:08 +000021403 # Set some defaults for GNU ld with shared library support. These
21404 # are reset later if shared libraries are not supported. Putting them
21405 # here allows them to be overridden if necessary.
21406 runpath_var=LD_RUN_PATH
21407 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21408 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21409 # ancient GNU ld didn't support --whole-archive et. al.
21410 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21411 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21412 else
21413 whole_archive_flag_spec_F77=
21414 fi
21415 supports_anon_versioning=no
21416 case `$LD -v 2>/dev/null` in
21417 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21420 *\ 2.11.*) ;; # other 2.11 versions
21421 *) supports_anon_versioning=yes ;;
21422 esac
21423
John Criswell47fdd832003-07-14 16:52:07 +000021424 # See if GNU ld supports shared libraries.
21425 case $host_os in
21426 aix3* | aix4* | aix5*)
21427 # On AIX/PPC, the GNU linker is very broken
21428 if test "$host_cpu" != ia64; then
21429 ld_shlibs_F77=no
21430 cat <<EOF 1>&2
21431
21432*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21433*** to be unable to reliably create shared libraries on AIX.
21434*** Therefore, libtool is disabling shared libraries support. If you
21435*** really care for shared libraries, you may want to modify your PATH
21436*** so that a non-GNU linker is found, and then restart.
21437
21438EOF
21439 fi
21440 ;;
21441
21442 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021443 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 +000021444 hardcode_libdir_flag_spec_F77='-L$libdir'
21445 hardcode_minus_L_F77=yes
21446
21447 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21448 # that the semantics of dynamic libraries on AmigaOS, at least up
21449 # to version 4, is to share data among multiple programs linked
21450 # with the same dynamic library. Since this doesn't match the
21451 # behavior of shared libraries on other platforms, we can't use
21452 # them.
21453 ld_shlibs_F77=no
21454 ;;
21455
21456 beos*)
21457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21458 allow_undefined_flag_F77=unsupported
21459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21460 # support --undefined. This deserves some investigation. FIXME
21461 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21462 else
21463 ld_shlibs_F77=no
21464 fi
21465 ;;
21466
21467 cygwin* | mingw* | pw32*)
21468 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21469 # as there is no search path for DLLs.
21470 hardcode_libdir_flag_spec_F77='-L$libdir'
21471 allow_undefined_flag_F77=unsupported
21472 always_export_symbols_F77=no
21473 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021474 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 +000021475
21476 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021477 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 +000021478 # If the export-symbols file already is a .def file (1st line
21479 # is EXPORTS), use it as is; otherwise, prepend...
21480 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21481 cp $export_symbols $output_objdir/$soname.def;
21482 else
21483 echo EXPORTS > $output_objdir/$soname.def;
21484 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021485 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021486 $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 +000021487 else
Reid Spencera773bd52006-08-04 18:18:08 +000021488 ld_shlibs_F77=no
21489 fi
21490 ;;
21491
21492 interix3*)
21493 hardcode_direct_F77=no
21494 hardcode_shlibpath_var_F77=no
21495 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21496 export_dynamic_flag_spec_F77='${wl}-E'
21497 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21498 # Instead, shared libraries are loaded at an image base (0x10000000 by
21499 # default) and relocated if they conflict, which is a slow very memory
21500 # consuming and fragmenting process. To avoid this, we pick a random,
21501 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21502 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21503 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'
21504 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'
21505 ;;
21506
21507 linux*)
21508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21509 tmp_addflag=
21510 case $cc_basename,$host_cpu in
21511 pgcc*) # Portland Group C compiler
21512 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'
21513 tmp_addflag=' $pic_flag'
21514 ;;
21515 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21516 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'
21517 tmp_addflag=' $pic_flag -Mnomain' ;;
21518 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21519 tmp_addflag=' -i_dynamic' ;;
21520 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21521 tmp_addflag=' -i_dynamic -nofor_main' ;;
21522 ifc* | ifort*) # Intel Fortran compiler
21523 tmp_addflag=' -nofor_main' ;;
21524 esac
21525 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21526
21527 if test $supports_anon_versioning = yes; then
21528 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21530 $echo "local: *; };" >> $output_objdir/$libname.ver~
21531 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21532 fi
21533 else
21534 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021535 fi
21536 ;;
21537
21538 netbsd*)
21539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21540 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21541 wlarc=
21542 else
21543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21544 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21545 fi
21546 ;;
21547
Reid Spencera773bd52006-08-04 18:18:08 +000021548 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021549 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21550 ld_shlibs_F77=no
21551 cat <<EOF 1>&2
21552
21553*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21554*** create shared libraries on Solaris systems. Therefore, libtool
21555*** is disabling shared libraries support. We urge you to upgrade GNU
21556*** binutils to release 2.9.1 or newer. Another option is to modify
21557*** your PATH or compiler configuration so that the native linker is
21558*** used, and then restart.
21559
21560EOF
21561 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21562 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21563 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21564 else
21565 ld_shlibs_F77=no
21566 fi
21567 ;;
21568
Reid Spencera773bd52006-08-04 18:18:08 +000021569 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21570 case `$LD -v 2>&1` in
21571 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21572 ld_shlibs_F77=no
21573 cat <<_LT_EOF 1>&2
21574
21575*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21576*** reliably create shared libraries on SCO systems. Therefore, libtool
21577*** is disabling shared libraries support. We urge you to upgrade GNU
21578*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21579*** your PATH or compiler configuration so that the native linker is
21580*** used, and then restart.
21581
21582_LT_EOF
21583 ;;
21584 *)
21585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21586 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21587 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21588 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21589 else
21590 ld_shlibs_F77=no
21591 fi
21592 ;;
21593 esac
21594 ;;
21595
John Criswell47fdd832003-07-14 16:52:07 +000021596 sunos4*)
21597 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21598 wlarc=
21599 hardcode_direct_F77=yes
21600 hardcode_shlibpath_var_F77=no
21601 ;;
21602
21603 *)
21604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21605 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21606 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21607 else
21608 ld_shlibs_F77=no
21609 fi
21610 ;;
21611 esac
21612
Reid Spencera773bd52006-08-04 18:18:08 +000021613 if test "$ld_shlibs_F77" = no; then
21614 runpath_var=
21615 hardcode_libdir_flag_spec_F77=
21616 export_dynamic_flag_spec_F77=
21617 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021618 fi
21619 else
21620 # PORTME fill in a description of your system's linker (not GNU ld)
21621 case $host_os in
21622 aix3*)
21623 allow_undefined_flag_F77=unsupported
21624 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021625 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 +000021626 # Note: this linker hardcodes the directories in LIBPATH if there
21627 # are no directories specified by -L.
21628 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021629 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021630 # Neither direct hardcoding nor static linking is supported with a
21631 # broken collect2.
21632 hardcode_direct_F77=unsupported
21633 fi
21634 ;;
21635
21636 aix4* | aix5*)
21637 if test "$host_cpu" = ia64; then
21638 # On IA64, the linker does run time linking by default, so we don't
21639 # have to do anything special.
21640 aix_use_runtimelinking=no
21641 exp_sym_flag='-Bexport'
21642 no_entry_flag=""
21643 else
21644 # If we're using GNU nm, then we don't want the "-C" option.
21645 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21646 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21647 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'
21648 else
21649 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'
21650 fi
21651 aix_use_runtimelinking=no
21652
21653 # Test if we are trying to use run time linking or normal
21654 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21655 # need to do runtime linking.
21656 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21657 for ld_flag in $LDFLAGS; do
21658 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21659 aix_use_runtimelinking=yes
21660 break
21661 fi
21662 done
Reid Spencera773bd52006-08-04 18:18:08 +000021663 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021664 esac
21665
21666 exp_sym_flag='-bexport'
21667 no_entry_flag='-bnoentry'
21668 fi
21669
21670 # When large executables or shared objects are built, AIX ld can
21671 # have problems creating the table of contents. If linking a library
21672 # or program results in "error TOC overflow" add -mminimal-toc to
21673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21675
21676 archive_cmds_F77=''
21677 hardcode_direct_F77=yes
21678 hardcode_libdir_separator_F77=':'
21679 link_all_deplibs_F77=yes
21680
21681 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021682 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021683 # We only want to do this on AIX 4.2 and lower, the check
21684 # below for broken collect2 doesn't work under 4.3+
21685 collect2name=`${CC} -print-prog-name=collect2`
21686 if test -f "$collect2name" && \
21687 strings "$collect2name" | grep resolve_lib_name >/dev/null
21688 then
21689 # We have reworked collect2
21690 hardcode_direct_F77=yes
21691 else
21692 # We have old collect2
21693 hardcode_direct_F77=unsupported
21694 # It fails to find uninstalled libraries when the uninstalled
21695 # path is not listed in the libpath. Setting hardcode_minus_L
21696 # to unsupported forces relinking
21697 hardcode_minus_L_F77=yes
21698 hardcode_libdir_flag_spec_F77='-L$libdir'
21699 hardcode_libdir_separator_F77=
21700 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021701 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021702 esac
21703 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021704 if test "$aix_use_runtimelinking" = yes; then
21705 shared_flag="$shared_flag "'${wl}-G'
21706 fi
John Criswell47fdd832003-07-14 16:52:07 +000021707 else
21708 # not using gcc
21709 if test "$host_cpu" = ia64; then
21710 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21711 # chokes on -Wl,-G. The following line is correct:
21712 shared_flag='-G'
21713 else
Reid Spencera773bd52006-08-04 18:18:08 +000021714 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021715 shared_flag='${wl}-G'
21716 else
21717 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021718 fi
John Criswell47fdd832003-07-14 16:52:07 +000021719 fi
21720 fi
21721
21722 # It seems that -bexpall does not export symbols beginning with
21723 # underscore (_), so it is better to generate a list of symbols to export.
21724 always_export_symbols_F77=yes
21725 if test "$aix_use_runtimelinking" = yes; then
21726 # Warning - without using the other runtime loading flags (-brtl),
21727 # -berok will link without error, but may produce a broken library.
21728 allow_undefined_flag_F77='-berok'
21729 # Determine the default libpath from the value encoded in an empty executable.
21730 cat >conftest.$ac_ext <<_ACEOF
21731 program main
21732
21733 end
21734_ACEOF
21735rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021736if { (ac_try="$ac_link"
21737case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21740esac
21741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021743 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021744 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1
21746 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021749 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21750 { (case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753esac
21754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; } &&
21759 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021760 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21769
21770aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21771}'`
21772# Check for a 64-bit object if we didn't find anything.
21773if 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; }
21774}'`; fi
21775else
21776 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021777sed 's/^/| /' conftest.$ac_ext >&5
21778
Reid Spencera773bd52006-08-04 18:18:08 +000021779
John Criswell47fdd832003-07-14 16:52:07 +000021780fi
Reid Spencera773bd52006-08-04 18:18:08 +000021781
21782rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021783 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021784if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21785
21786 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021787 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 +000021788 else
21789 if test "$host_cpu" = ia64; then
21790 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21791 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021792 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 +000021793 else
21794 # Determine the default libpath from the value encoded in an empty executable.
21795 cat >conftest.$ac_ext <<_ACEOF
21796 program main
21797
21798 end
21799_ACEOF
21800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021801if { (ac_try="$ac_link"
21802case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21805esac
21806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021809 grep -v '^ *+' conftest.er1 >conftest.err
21810 rm -f conftest.er1
21811 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021814 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21815 { (case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21818esac
21819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021821 ac_status=$?
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); }; } &&
21824 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021825 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834
21835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21836}'`
21837# Check for a 64-bit object if we didn't find anything.
21838if 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; }
21839}'`; fi
21840else
21841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021842sed 's/^/| /' conftest.$ac_ext >&5
21843
Reid Spencera773bd52006-08-04 18:18:08 +000021844
John Criswell47fdd832003-07-14 16:52:07 +000021845fi
Reid Spencera773bd52006-08-04 18:18:08 +000021846
21847rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021848 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021849if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21850
21851 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21852 # Warning - without using the other run time loading flags,
21853 # -berok will link without error, but may produce a broken library.
21854 no_undefined_flag_F77=' ${wl}-bernotok'
21855 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021856 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021857 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021858 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021859 # This is similar to how AIX traditionally builds its shared libraries.
21860 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 +000021861 fi
21862 fi
21863 ;;
21864
21865 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021866 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 +000021867 hardcode_libdir_flag_spec_F77='-L$libdir'
21868 hardcode_minus_L_F77=yes
21869 # see comment about different semantics on the GNU ld section
21870 ld_shlibs_F77=no
21871 ;;
21872
Reid Spencer2706f8c2004-09-19 23:53:36 +000021873 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021874 export_dynamic_flag_spec_F77=-rdynamic
21875 ;;
21876
21877 cygwin* | mingw* | pw32*)
21878 # When not using gcc, we currently assume that we are using
21879 # Microsoft Visual C++.
21880 # hardcode_libdir_flag_spec is actually meaningless, as there is
21881 # no search path for DLLs.
21882 hardcode_libdir_flag_spec_F77=' '
21883 allow_undefined_flag_F77=unsupported
21884 # Tell ltmain to make .lib files, not .a files.
21885 libext=lib
21886 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021887 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021888 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021889 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 +000021890 # The linker will automatically build a .lib file if we build a DLL.
21891 old_archive_From_new_cmds_F77='true'
21892 # FIXME: Should let the user specify the lib program.
21893 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021894 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021895 enable_shared_with_static_runtimes_F77=yes
21896 ;;
21897
21898 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021899 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021900 rhapsody* | darwin1.[012])
21901 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21902 ;;
21903 *) # Darwin 1.3 on
21904 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21905 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21906 else
21907 case ${MACOSX_DEPLOYMENT_TARGET} in
21908 10.[012])
21909 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21910 ;;
21911 10.*)
21912 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21913 ;;
21914 esac
21915 fi
21916 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021917 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021918 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021919 hardcode_direct_F77=no
21920 hardcode_automatic_F77=yes
21921 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021922 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021923 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021924 if test "$GCC" = yes ; then
21925 output_verbose_link_cmd='echo'
21926 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21927 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021928 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000021929 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21930 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021931 else
Reid Spencera773bd52006-08-04 18:18:08 +000021932 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021933 xlc*)
21934 output_verbose_link_cmd='echo'
21935 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21936 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021937 # 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 +000021938 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}'
21939 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 +000021940 ;;
21941 *)
21942 ld_shlibs_F77=no
21943 ;;
21944 esac
John Criswell47fdd832003-07-14 16:52:07 +000021945 fi
21946 ;;
21947
21948 dgux*)
21949 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21950 hardcode_libdir_flag_spec_F77='-L$libdir'
21951 hardcode_shlibpath_var_F77=no
21952 ;;
21953
21954 freebsd1*)
21955 ld_shlibs_F77=no
21956 ;;
21957
21958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21959 # support. Future versions do this automatically, but an explicit c++rt0.o
21960 # does not break anything, and helps significantly (at the cost of a little
21961 # extra space).
21962 freebsd2.2*)
21963 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21964 hardcode_libdir_flag_spec_F77='-R$libdir'
21965 hardcode_direct_F77=yes
21966 hardcode_shlibpath_var_F77=no
21967 ;;
21968
21969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21970 freebsd2*)
21971 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21972 hardcode_direct_F77=yes
21973 hardcode_minus_L_F77=yes
21974 hardcode_shlibpath_var_F77=no
21975 ;;
21976
21977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021978 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021979 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21980 hardcode_libdir_flag_spec_F77='-R$libdir'
21981 hardcode_direct_F77=yes
21982 hardcode_shlibpath_var_F77=no
21983 ;;
21984
21985 hpux9*)
21986 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021987 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 +000021988 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021989 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 +000021990 fi
21991 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21992 hardcode_libdir_separator_F77=:
21993 hardcode_direct_F77=yes
21994
21995 # hardcode_minus_L: Not really in the search PATH,
21996 # but as the default location of the library.
21997 hardcode_minus_L_F77=yes
21998 export_dynamic_flag_spec_F77='${wl}-E'
21999 ;;
22000
Reid Spencera773bd52006-08-04 18:18:08 +000022001 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022002 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022003 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22004 else
22005 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22006 fi
22007 if test "$with_gnu_ld" = no; then
22008 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22009 hardcode_libdir_separator_F77=:
22010
22011 hardcode_direct_F77=yes
22012 export_dynamic_flag_spec_F77='${wl}-E'
22013
22014 # hardcode_minus_L: Not really in the search PATH,
22015 # but as the default location of the library.
22016 hardcode_minus_L_F77=yes
22017 fi
22018 ;;
22019
22020 hpux11*)
22021 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22022 case $host_cpu in
22023 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022024 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22025 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022026 ia64*)
22027 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22028 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022029 *)
22030 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22031 ;;
22032 esac
22033 else
Reid Spencera773bd52006-08-04 18:18:08 +000022034 case $host_cpu in
22035 hppa*64*)
22036 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22037 ;;
22038 ia64*)
22039 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022040 ;;
22041 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022042 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 +000022043 ;;
22044 esac
22045 fi
22046 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022047 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22048 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022049
Reid Spencera773bd52006-08-04 18:18:08 +000022050 case $host_cpu in
22051 hppa*64*|ia64*)
22052 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22053 hardcode_direct_F77=no
22054 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022055 ;;
22056 *)
John Criswell47fdd832003-07-14 16:52:07 +000022057 hardcode_direct_F77=yes
22058 export_dynamic_flag_spec_F77='${wl}-E'
22059
22060 # hardcode_minus_L: Not really in the search PATH,
22061 # but as the default location of the library.
22062 hardcode_minus_L_F77=yes
22063 ;;
22064 esac
22065 fi
22066 ;;
22067
22068 irix5* | irix6* | nonstopux*)
22069 if test "$GCC" = yes; then
22070 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'
22071 else
22072 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'
22073 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22074 fi
22075 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22076 hardcode_libdir_separator_F77=:
22077 link_all_deplibs_F77=yes
22078 ;;
22079
22080 netbsd*)
22081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22082 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22083 else
22084 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22085 fi
22086 hardcode_libdir_flag_spec_F77='-R$libdir'
22087 hardcode_direct_F77=yes
22088 hardcode_shlibpath_var_F77=no
22089 ;;
22090
22091 newsos6)
22092 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093 hardcode_direct_F77=yes
22094 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22095 hardcode_libdir_separator_F77=:
22096 hardcode_shlibpath_var_F77=no
22097 ;;
22098
22099 openbsd*)
22100 hardcode_direct_F77=yes
22101 hardcode_shlibpath_var_F77=no
22102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22103 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022104 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 +000022105 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22106 export_dynamic_flag_spec_F77='${wl}-E'
22107 else
22108 case $host_os in
22109 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22110 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22111 hardcode_libdir_flag_spec_F77='-R$libdir'
22112 ;;
22113 *)
22114 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22115 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22116 ;;
22117 esac
22118 fi
22119 ;;
22120
22121 os2*)
22122 hardcode_libdir_flag_spec_F77='-L$libdir'
22123 hardcode_minus_L_F77=yes
22124 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022125 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 +000022126 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22127 ;;
22128
22129 osf3*)
22130 if test "$GCC" = yes; then
22131 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22132 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'
22133 else
22134 allow_undefined_flag_F77=' -expect_unresolved \*'
22135 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'
22136 fi
22137 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22138 hardcode_libdir_separator_F77=:
22139 ;;
22140
22141 osf4* | osf5*) # as osf3* with the addition of -msym flag
22142 if test "$GCC" = yes; then
22143 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22144 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'
22145 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22146 else
22147 allow_undefined_flag_F77=' -expect_unresolved \*'
22148 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 +000022149 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 +000022150 $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 +000022151
John Criswell47fdd832003-07-14 16:52:07 +000022152 # Both c and cxx compiler support -rpath directly
22153 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22154 fi
22155 hardcode_libdir_separator_F77=:
22156 ;;
22157
John Criswell47fdd832003-07-14 16:52:07 +000022158 solaris*)
22159 no_undefined_flag_F77=' -z text'
22160 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022161 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022162 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022163 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22164 $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 +000022165 else
Reid Spencera773bd52006-08-04 18:18:08 +000022166 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022167 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022168 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22169 $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 +000022170 fi
22171 hardcode_libdir_flag_spec_F77='-R$libdir'
22172 hardcode_shlibpath_var_F77=no
22173 case $host_os in
22174 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022175 *)
22176 # The compiler driver will combine linker options so we
22177 # cannot just pass the convience library names through
22178 # without $wl, iff we do not link with $LD.
22179 # Luckily, gcc supports the same syntax we need for Sun Studio.
22180 # Supported since Solaris 2.6 (maybe 2.5.1?)
22181 case $wlarc in
22182 '')
22183 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22184 *)
22185 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' ;;
22186 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022187 esac
22188 link_all_deplibs_F77=yes
22189 ;;
22190
22191 sunos4*)
22192 if test "x$host_vendor" = xsequent; then
22193 # Use $CC to link under sequent, because it throws in some extra .o
22194 # files that make .init and .fini sections work.
22195 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22196 else
22197 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22198 fi
22199 hardcode_libdir_flag_spec_F77='-L$libdir'
22200 hardcode_direct_F77=yes
22201 hardcode_minus_L_F77=yes
22202 hardcode_shlibpath_var_F77=no
22203 ;;
22204
22205 sysv4)
22206 case $host_vendor in
22207 sni)
22208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22209 hardcode_direct_F77=yes # is this really true???
22210 ;;
22211 siemens)
22212 ## LD is ld it makes a PLAMLIB
22213 ## CC just makes a GrossModule.
22214 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22215 reload_cmds_F77='$CC -r -o $output$reload_objs'
22216 hardcode_direct_F77=no
22217 ;;
22218 motorola)
22219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22220 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22221 ;;
22222 esac
22223 runpath_var='LD_RUN_PATH'
22224 hardcode_shlibpath_var_F77=no
22225 ;;
22226
22227 sysv4.3*)
22228 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22229 hardcode_shlibpath_var_F77=no
22230 export_dynamic_flag_spec_F77='-Bexport'
22231 ;;
22232
22233 sysv4*MP*)
22234 if test -d /usr/nec; then
22235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22236 hardcode_shlibpath_var_F77=no
22237 runpath_var=LD_RUN_PATH
22238 hardcode_runpath_var=yes
22239 ld_shlibs_F77=yes
22240 fi
22241 ;;
22242
Reid Spencera773bd52006-08-04 18:18:08 +000022243 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22244 no_undefined_flag_F77='${wl}-z,text'
22245 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022246 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022247 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022248
John Criswell47fdd832003-07-14 16:52:07 +000022249 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022250 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22251 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 +000022252 else
Reid Spencera773bd52006-08-04 18:18:08 +000022253 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22254 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 +000022255 fi
John Criswell47fdd832003-07-14 16:52:07 +000022256 ;;
22257
Reid Spencera773bd52006-08-04 18:18:08 +000022258 sysv5* | sco3.2v5* | sco5v6*)
22259 # Note: We can NOT use -z defs as we might desire, because we do not
22260 # link with -lc, and that would cause any symbols used from libc to
22261 # always be unresolved, which means just about no library would
22262 # ever link correctly. If we're not using GNU ld we use -z text
22263 # though, which does catch some bad symbols but isn't as heavy-handed
22264 # as -z defs.
22265 no_undefined_flag_F77='${wl}-z,text'
22266 allow_undefined_flag_F77='${wl}-z,nodefs'
22267 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022268 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022269 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22270 hardcode_libdir_separator_F77=':'
22271 link_all_deplibs_F77=yes
22272 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022273 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022274
22275 if test "$GCC" = yes; then
22276 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278 else
22279 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22280 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22281 fi
John Criswell47fdd832003-07-14 16:52:07 +000022282 ;;
22283
22284 uts4*)
22285 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22286 hardcode_libdir_flag_spec_F77='-L$libdir'
22287 hardcode_shlibpath_var_F77=no
22288 ;;
22289
22290 *)
22291 ld_shlibs_F77=no
22292 ;;
22293 esac
22294 fi
22295
Reid Spencera773bd52006-08-04 18:18:08 +000022296{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22297echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022298test "$ld_shlibs_F77" = no && can_build_shared=no
22299
John Criswell47fdd832003-07-14 16:52:07 +000022300#
22301# Do we need to explicitly link libc?
22302#
22303case "x$archive_cmds_need_lc_F77" in
22304x|xyes)
22305 # Assume -lc should be added
22306 archive_cmds_need_lc_F77=yes
22307
22308 if test "$enable_shared" = yes && test "$GCC" = yes; then
22309 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022310 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022311 # FIXME: we may have to deal with multi-command sequences.
22312 ;;
22313 '$CC '*)
22314 # Test whether the compiler implicitly links with -lc since on some
22315 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22316 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022317 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22318echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022319 $rm conftest*
22320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22321
22322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323 (eval $ac_compile) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } 2>conftest.err; then
22327 soname=conftest
22328 lib=conftest
22329 libobjs=conftest.$ac_objext
22330 deplibs=
22331 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022332 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022333 compiler_flags=-v
22334 linker_flags=-v
22335 verstring=
22336 output_objdir=.
22337 libname=conftest
22338 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22339 allow_undefined_flag_F77=
22340 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22341 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22342 ac_status=$?
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); }
22345 then
22346 archive_cmds_need_lc_F77=no
22347 else
22348 archive_cmds_need_lc_F77=yes
22349 fi
22350 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22351 else
22352 cat conftest.err 1>&5
22353 fi
22354 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022355 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22356echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022357 ;;
22358 esac
22359 fi
22360 ;;
22361esac
22362
Reid Spencera773bd52006-08-04 18:18:08 +000022363{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22364echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022365library_names_spec=
22366libname_spec='lib$name'
22367soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022368shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022369postinstall_cmds=
22370postuninstall_cmds=
22371finish_cmds=
22372finish_eval=
22373shlibpath_var=
22374shlibpath_overrides_runpath=unknown
22375version_type=none
22376dynamic_linker="$host_os ld.so"
22377sys_lib_dlsearch_path_spec="/lib /usr/lib"
22378if test "$GCC" = yes; then
22379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22380 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22381 # if the path contains ";" then we assume it to be the separator
22382 # otherwise default to the standard path separator (i.e. ":") - it is
22383 # assumed that no part of a normal pathname contains ";" but that should
22384 # okay in the real world where ";" in dirpaths is itself problematic.
22385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22386 else
22387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22388 fi
22389else
22390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22391fi
22392need_lib_prefix=unknown
22393hardcode_into_libs=no
22394
22395# when you set need_version to no, make sure it does not cause -set_version
22396# flags to be left without arguments
22397need_version=unknown
22398
22399case $host_os in
22400aix3*)
22401 version_type=linux
22402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22403 shlibpath_var=LIBPATH
22404
22405 # AIX 3 has no versioning support, so we append a major version to the name.
22406 soname_spec='${libname}${release}${shared_ext}$major'
22407 ;;
22408
22409aix4* | aix5*)
22410 version_type=linux
22411 need_lib_prefix=no
22412 need_version=no
22413 hardcode_into_libs=yes
22414 if test "$host_cpu" = ia64; then
22415 # AIX 5 supports IA64
22416 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22417 shlibpath_var=LD_LIBRARY_PATH
22418 else
22419 # With GCC up to 2.95.x, collect2 would create an import file
22420 # for dependence libraries. The import file would start with
22421 # the line `#! .'. This would cause the generated library to
22422 # depend on `.', always an invalid library. This was fixed in
22423 # development snapshots of GCC prior to 3.0.
22424 case $host_os in
22425 aix4 | aix4.[01] | aix4.[01].*)
22426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22427 echo ' yes '
22428 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22429 :
22430 else
22431 can_build_shared=no
22432 fi
22433 ;;
22434 esac
22435 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22436 # soname into executable. Probably we can add versioning support to
22437 # collect2, so additional links can be useful in future.
22438 if test "$aix_use_runtimelinking" = yes; then
22439 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22440 # instead of lib<name>.a to let people know that these are not
22441 # typical AIX shared libraries.
22442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22443 else
22444 # We preserve .a as extension for shared libraries through AIX4.2
22445 # and later when we are not doing run time linking.
22446 library_names_spec='${libname}${release}.a $libname.a'
22447 soname_spec='${libname}${release}${shared_ext}$major'
22448 fi
22449 shlibpath_var=LIBPATH
22450 fi
22451 ;;
22452
22453amigaos*)
22454 library_names_spec='$libname.ixlibrary $libname.a'
22455 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022456 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 +000022457 ;;
22458
22459beos*)
22460 library_names_spec='${libname}${shared_ext}'
22461 dynamic_linker="$host_os ld.so"
22462 shlibpath_var=LIBRARY_PATH
22463 ;;
22464
Reid Spencer2706f8c2004-09-19 23:53:36 +000022465bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022466 version_type=linux
22467 need_version=no
22468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22469 soname_spec='${libname}${release}${shared_ext}$major'
22470 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22471 shlibpath_var=LD_LIBRARY_PATH
22472 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22473 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22474 # the default ld.so.conf also contains /usr/contrib/lib and
22475 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22476 # libtool to hard-code these into programs
22477 ;;
22478
22479cygwin* | mingw* | pw32*)
22480 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022481 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022482 need_version=no
22483 need_lib_prefix=no
22484
22485 case $GCC,$host_os in
22486 yes,cygwin* | yes,mingw* | yes,pw32*)
22487 library_names_spec='$libname.dll.a'
22488 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022489 postinstall_cmds='base_file=`basename \${file}`~
22490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22491 dldir=$destdir/`dirname \$dlpath`~
22492 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022493 $install_prog $dir/$dlname \$dldir/$dlname~
22494 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22496 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022497 $rm \$dlpath'
22498 shlibpath_overrides_runpath=yes
22499
22500 case $host_os in
22501 cygwin*)
22502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22503 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 +000022504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022505 ;;
22506 mingw*)
22507 # MinGW DLLs use traditional 'lib' prefix
22508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22510 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22511 # It is most probably a Windows format PATH printed by
22512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22513 # path with ; separators, and with drive letters. We can handle the
22514 # drive letters (cygwin fileutils understands them), so leave them,
22515 # especially as we might pass files found there to a mingw objdump,
22516 # which wouldn't understand a cygwinified path. Ahh.
22517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22518 else
22519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22520 fi
22521 ;;
22522 pw32*)
22523 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022524 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 +000022525 ;;
22526 esac
22527 ;;
22528
22529 *)
22530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22531 ;;
22532 esac
22533 dynamic_linker='Win32 ld.exe'
22534 # FIXME: first we should search . and the directory the executable is in
22535 shlibpath_var=PATH
22536 ;;
22537
22538darwin* | rhapsody*)
22539 dynamic_linker="$host_os dyld"
22540 version_type=darwin
22541 need_lib_prefix=no
22542 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022543 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022544 soname_spec='${libname}${release}${major}$shared_ext'
22545 shlibpath_overrides_runpath=yes
22546 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022547 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022548 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022549 if test "$GCC" = yes; then
22550 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"`
22551 else
22552 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022553 fi
22554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22555 ;;
22556
22557dgux*)
22558 version_type=linux
22559 need_lib_prefix=no
22560 need_version=no
22561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22562 soname_spec='${libname}${release}${shared_ext}$major'
22563 shlibpath_var=LD_LIBRARY_PATH
22564 ;;
22565
22566freebsd1*)
22567 dynamic_linker=no
22568 ;;
22569
Reid Spencer2706f8c2004-09-19 23:53:36 +000022570kfreebsd*-gnu)
22571 version_type=linux
22572 need_lib_prefix=no
22573 need_version=no
22574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22575 soname_spec='${libname}${release}${shared_ext}$major'
22576 shlibpath_var=LD_LIBRARY_PATH
22577 shlibpath_overrides_runpath=no
22578 hardcode_into_libs=yes
22579 dynamic_linker='GNU ld.so'
22580 ;;
22581
Reid Spencera773bd52006-08-04 18:18:08 +000022582freebsd* | dragonfly*)
22583 # DragonFly does not have aout. When/if they implement a new
22584 # versioning mechanism, adjust this.
22585 if test -x /usr/bin/objformat; then
22586 objformat=`/usr/bin/objformat`
22587 else
22588 case $host_os in
22589 freebsd[123]*) objformat=aout ;;
22590 *) objformat=elf ;;
22591 esac
22592 fi
John Criswell47fdd832003-07-14 16:52:07 +000022593 version_type=freebsd-$objformat
22594 case $version_type in
22595 freebsd-elf*)
22596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22597 need_version=no
22598 need_lib_prefix=no
22599 ;;
22600 freebsd-*)
22601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22602 need_version=yes
22603 ;;
22604 esac
22605 shlibpath_var=LD_LIBRARY_PATH
22606 case $host_os in
22607 freebsd2*)
22608 shlibpath_overrides_runpath=yes
22609 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022610 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022611 shlibpath_overrides_runpath=yes
22612 hardcode_into_libs=yes
22613 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022614 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22615 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022616 shlibpath_overrides_runpath=no
22617 hardcode_into_libs=yes
22618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022619 freebsd*) # from 4.6 on
22620 shlibpath_overrides_runpath=yes
22621 hardcode_into_libs=yes
22622 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022623 esac
22624 ;;
22625
22626gnu*)
22627 version_type=linux
22628 need_lib_prefix=no
22629 need_version=no
22630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22631 soname_spec='${libname}${release}${shared_ext}$major'
22632 shlibpath_var=LD_LIBRARY_PATH
22633 hardcode_into_libs=yes
22634 ;;
22635
22636hpux9* | hpux10* | hpux11*)
22637 # Give a soname corresponding to the major version so that dld.sl refuses to
22638 # link against other versions.
22639 version_type=sunos
22640 need_lib_prefix=no
22641 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022642 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022643 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022644 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022645 hardcode_into_libs=yes
22646 dynamic_linker="$host_os dld.so"
22647 shlibpath_var=LD_LIBRARY_PATH
22648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22650 soname_spec='${libname}${release}${shared_ext}$major'
22651 if test "X$HPUX_IA64_MODE" = X32; then
22652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22653 else
22654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22655 fi
22656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22657 ;;
22658 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022659 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022660 hardcode_into_libs=yes
22661 dynamic_linker="$host_os dld.sl"
22662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22665 soname_spec='${libname}${release}${shared_ext}$major'
22666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22668 ;;
22669 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022670 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022671 dynamic_linker="$host_os dld.sl"
22672 shlibpath_var=SHLIB_PATH
22673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22675 soname_spec='${libname}${release}${shared_ext}$major'
22676 ;;
22677 esac
22678 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22679 postinstall_cmds='chmod 555 $lib'
22680 ;;
22681
Reid Spencera773bd52006-08-04 18:18:08 +000022682interix3*)
22683 version_type=linux
22684 need_lib_prefix=no
22685 need_version=no
22686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22687 soname_spec='${libname}${release}${shared_ext}$major'
22688 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22689 shlibpath_var=LD_LIBRARY_PATH
22690 shlibpath_overrides_runpath=no
22691 hardcode_into_libs=yes
22692 ;;
22693
John Criswell47fdd832003-07-14 16:52:07 +000022694irix5* | irix6* | nonstopux*)
22695 case $host_os in
22696 nonstopux*) version_type=nonstopux ;;
22697 *)
22698 if test "$lt_cv_prog_gnu_ld" = yes; then
22699 version_type=linux
22700 else
22701 version_type=irix
22702 fi ;;
22703 esac
22704 need_lib_prefix=no
22705 need_version=no
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22708 case $host_os in
22709 irix5* | nonstopux*)
22710 libsuff= shlibsuff=
22711 ;;
22712 *)
22713 case $LD in # libtool.m4 will add one of these switches to LD
22714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22715 libsuff= shlibsuff= libmagic=32-bit;;
22716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22717 libsuff=32 shlibsuff=N32 libmagic=N32;;
22718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22719 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22720 *) libsuff= shlibsuff= libmagic=never-match;;
22721 esac
22722 ;;
22723 esac
22724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22725 shlibpath_overrides_runpath=no
22726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22728 hardcode_into_libs=yes
22729 ;;
22730
22731# No shared lib support for Linux oldld, aout, or coff.
22732linux*oldld* | linux*aout* | linux*coff*)
22733 dynamic_linker=no
22734 ;;
22735
22736# This must be Linux ELF.
22737linux*)
22738 version_type=linux
22739 need_lib_prefix=no
22740 need_version=no
22741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22742 soname_spec='${libname}${release}${shared_ext}$major'
22743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22744 shlibpath_var=LD_LIBRARY_PATH
22745 shlibpath_overrides_runpath=no
22746 # This implies no fast_install, which is unacceptable.
22747 # Some rework will be needed to allow for fast_install
22748 # before this can be enabled.
22749 hardcode_into_libs=yes
22750
Reid Spencer2706f8c2004-09-19 23:53:36 +000022751 # Append ld.so.conf contents to the search path
22752 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022753 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 +000022754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22755 fi
22756
John Criswell47fdd832003-07-14 16:52:07 +000022757 # We used to test for /lib/ld.so.1 and disable shared libraries on
22758 # powerpc, because MkLinux only supported shared libraries with the
22759 # GNU dynamic linker. Since this was broken with cross compilers,
22760 # most powerpc-linux boxes support dynamic linking these days and
22761 # people can always --disable-shared, the test was removed, and we
22762 # assume the GNU/Linux dynamic linker is in use.
22763 dynamic_linker='GNU/Linux ld.so'
22764 ;;
22765
Reid Spencer2706f8c2004-09-19 23:53:36 +000022766knetbsd*-gnu)
22767 version_type=linux
22768 need_lib_prefix=no
22769 need_version=no
22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22771 soname_spec='${libname}${release}${shared_ext}$major'
22772 shlibpath_var=LD_LIBRARY_PATH
22773 shlibpath_overrides_runpath=no
22774 hardcode_into_libs=yes
22775 dynamic_linker='GNU ld.so'
22776 ;;
22777
John Criswell47fdd832003-07-14 16:52:07 +000022778netbsd*)
22779 version_type=sunos
22780 need_lib_prefix=no
22781 need_version=no
22782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22785 dynamic_linker='NetBSD (a.out) ld.so'
22786 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022788 soname_spec='${libname}${release}${shared_ext}$major'
22789 dynamic_linker='NetBSD ld.elf_so'
22790 fi
22791 shlibpath_var=LD_LIBRARY_PATH
22792 shlibpath_overrides_runpath=yes
22793 hardcode_into_libs=yes
22794 ;;
22795
22796newsos6)
22797 version_type=linux
22798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22799 shlibpath_var=LD_LIBRARY_PATH
22800 shlibpath_overrides_runpath=yes
22801 ;;
22802
Reid Spencer2706f8c2004-09-19 23:53:36 +000022803nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022804 version_type=linux
22805 need_lib_prefix=no
22806 need_version=no
22807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808 soname_spec='${libname}${release}${shared_ext}$major'
22809 shlibpath_var=LD_LIBRARY_PATH
22810 shlibpath_overrides_runpath=yes
22811 ;;
22812
22813openbsd*)
22814 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022815 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022816 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22818 case $host_os in
22819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22820 *) need_version=no ;;
22821 esac
John Criswell47fdd832003-07-14 16:52:07 +000022822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22824 shlibpath_var=LD_LIBRARY_PATH
22825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22826 case $host_os in
22827 openbsd2.[89] | openbsd2.[89].*)
22828 shlibpath_overrides_runpath=no
22829 ;;
22830 *)
22831 shlibpath_overrides_runpath=yes
22832 ;;
22833 esac
22834 else
22835 shlibpath_overrides_runpath=yes
22836 fi
22837 ;;
22838
22839os2*)
22840 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022841 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022842 need_lib_prefix=no
22843 library_names_spec='$libname${shared_ext} $libname.a'
22844 dynamic_linker='OS/2 ld.exe'
22845 shlibpath_var=LIBPATH
22846 ;;
22847
22848osf3* | osf4* | osf5*)
22849 version_type=osf
22850 need_lib_prefix=no
22851 need_version=no
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22854 shlibpath_var=LD_LIBRARY_PATH
22855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22857 ;;
22858
John Criswell47fdd832003-07-14 16:52:07 +000022859solaris*)
22860 version_type=linux
22861 need_lib_prefix=no
22862 need_version=no
22863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22864 soname_spec='${libname}${release}${shared_ext}$major'
22865 shlibpath_var=LD_LIBRARY_PATH
22866 shlibpath_overrides_runpath=yes
22867 hardcode_into_libs=yes
22868 # ldd complains unless libraries are executable
22869 postinstall_cmds='chmod +x $lib'
22870 ;;
22871
22872sunos4*)
22873 version_type=sunos
22874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22876 shlibpath_var=LD_LIBRARY_PATH
22877 shlibpath_overrides_runpath=yes
22878 if test "$with_gnu_ld" = yes; then
22879 need_lib_prefix=no
22880 fi
22881 need_version=yes
22882 ;;
22883
Reid Spencera773bd52006-08-04 18:18:08 +000022884sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022885 version_type=linux
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 case $host_vendor in
22890 sni)
22891 shlibpath_overrides_runpath=no
22892 need_lib_prefix=no
22893 export_dynamic_flag_spec='${wl}-Blargedynsym'
22894 runpath_var=LD_RUN_PATH
22895 ;;
22896 siemens)
22897 need_lib_prefix=no
22898 ;;
22899 motorola)
22900 need_lib_prefix=no
22901 need_version=no
22902 shlibpath_overrides_runpath=no
22903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22904 ;;
22905 esac
22906 ;;
22907
22908sysv4*MP*)
22909 if test -d /usr/nec ;then
22910 version_type=linux
22911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22912 soname_spec='$libname${shared_ext}.$major'
22913 shlibpath_var=LD_LIBRARY_PATH
22914 fi
22915 ;;
22916
Reid Spencera773bd52006-08-04 18:18:08 +000022917sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22918 version_type=freebsd-elf
22919 need_lib_prefix=no
22920 need_version=no
22921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22922 soname_spec='${libname}${release}${shared_ext}$major'
22923 shlibpath_var=LD_LIBRARY_PATH
22924 hardcode_into_libs=yes
22925 if test "$with_gnu_ld" = yes; then
22926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22927 shlibpath_overrides_runpath=no
22928 else
22929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22930 shlibpath_overrides_runpath=yes
22931 case $host_os in
22932 sco3.2v5*)
22933 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22934 ;;
22935 esac
22936 fi
22937 sys_lib_dlsearch_path_spec='/usr/lib'
22938 ;;
22939
John Criswell47fdd832003-07-14 16:52:07 +000022940uts4*)
22941 version_type=linux
22942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943 soname_spec='${libname}${release}${shared_ext}$major'
22944 shlibpath_var=LD_LIBRARY_PATH
22945 ;;
22946
22947*)
22948 dynamic_linker=no
22949 ;;
22950esac
Reid Spencera773bd52006-08-04 18:18:08 +000022951{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22952echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022953test "$dynamic_linker" = no && can_build_shared=no
22954
Reid Spencera773bd52006-08-04 18:18:08 +000022955variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22956if test "$GCC" = yes; then
22957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22958fi
22959
22960{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22961echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022962hardcode_action_F77=
22963if test -n "$hardcode_libdir_flag_spec_F77" || \
22964 test -n "$runpath_var_F77" || \
22965 test "X$hardcode_automatic_F77" = "Xyes" ; then
22966
22967 # We can hardcode non-existant directories.
22968 if test "$hardcode_direct_F77" != no &&
22969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22970 # have to relink, otherwise we might link with an installed library
22971 # when we should be linking with a yet-to-be-installed one
22972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22973 test "$hardcode_minus_L_F77" != no; then
22974 # Linking always hardcodes the temporary library directory.
22975 hardcode_action_F77=relink
22976 else
22977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22978 hardcode_action_F77=immediate
22979 fi
22980else
22981 # We cannot hardcode anything, or else we can only hardcode existing
22982 # directories.
22983 hardcode_action_F77=unsupported
22984fi
Reid Spencera773bd52006-08-04 18:18:08 +000022985{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22986echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022987
22988if test "$hardcode_action_F77" = relink; then
22989 # Fast installation is not supported
22990 enable_fast_install=no
22991elif test "$shlibpath_overrides_runpath" = yes ||
22992 test "$enable_shared" = no; then
22993 # Fast installation is not necessary
22994 enable_fast_install=needless
22995fi
22996
John Criswell47fdd832003-07-14 16:52:07 +000022997
22998# The else clause should only fire when bootstrapping the
22999# libtool distribution, otherwise you forgot to ship ltmain.sh
23000# with your package, and you will get complaints that there are
23001# no rules to generate ltmain.sh.
23002if test -f "$ltmain"; then
23003 # See if we are running on zsh, and set the options which allow our commands through
23004 # without removal of \ escapes.
23005 if test -n "${ZSH_VERSION+set}" ; then
23006 setopt NO_GLOB_SUBST
23007 fi
23008 # Now quote all the things that may contain metacharacters while being
23009 # careful not to overquote the AC_SUBSTed values. We take copies of the
23010 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023011 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 +000023012 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023013 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23014 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23015 deplibs_check_method reload_flag reload_cmds need_locks \
23016 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23017 lt_cv_sys_global_symbol_to_c_name_address \
23018 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23019 old_postinstall_cmds old_postuninstall_cmds \
23020 compiler_F77 \
23021 CC_F77 \
23022 LD_F77 \
23023 lt_prog_compiler_wl_F77 \
23024 lt_prog_compiler_pic_F77 \
23025 lt_prog_compiler_static_F77 \
23026 lt_prog_compiler_no_builtin_flag_F77 \
23027 export_dynamic_flag_spec_F77 \
23028 thread_safe_flag_spec_F77 \
23029 whole_archive_flag_spec_F77 \
23030 enable_shared_with_static_runtimes_F77 \
23031 old_archive_cmds_F77 \
23032 old_archive_from_new_cmds_F77 \
23033 predep_objects_F77 \
23034 postdep_objects_F77 \
23035 predeps_F77 \
23036 postdeps_F77 \
23037 compiler_lib_search_path_F77 \
23038 archive_cmds_F77 \
23039 archive_expsym_cmds_F77 \
23040 postinstall_cmds_F77 \
23041 postuninstall_cmds_F77 \
23042 old_archive_from_expsyms_cmds_F77 \
23043 allow_undefined_flag_F77 \
23044 no_undefined_flag_F77 \
23045 export_symbols_cmds_F77 \
23046 hardcode_libdir_flag_spec_F77 \
23047 hardcode_libdir_flag_spec_ld_F77 \
23048 hardcode_libdir_separator_F77 \
23049 hardcode_automatic_F77 \
23050 module_cmds_F77 \
23051 module_expsym_cmds_F77 \
23052 lt_cv_prog_compiler_c_o_F77 \
23053 exclude_expsyms_F77 \
23054 include_expsyms_F77; do
23055
23056 case $var in
23057 old_archive_cmds_F77 | \
23058 old_archive_from_new_cmds_F77 | \
23059 archive_cmds_F77 | \
23060 archive_expsym_cmds_F77 | \
23061 module_cmds_F77 | \
23062 module_expsym_cmds_F77 | \
23063 old_archive_from_expsyms_cmds_F77 | \
23064 export_symbols_cmds_F77 | \
23065 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23066 postinstall_cmds | postuninstall_cmds | \
23067 old_postinstall_cmds | old_postuninstall_cmds | \
23068 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23069 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023070 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 +000023071 ;;
23072 *)
23073 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23074 ;;
23075 esac
23076 done
23077
23078 case $lt_echo in
23079 *'\$0 --fallback-echo"')
23080 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23081 ;;
23082 esac
23083
23084cfgfile="$ofile"
23085
23086 cat <<__EOF__ >> "$cfgfile"
23087# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23088
23089# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23090
23091# Shell to use when invoking shell scripts.
23092SHELL=$lt_SHELL
23093
23094# Whether or not to build shared libraries.
23095build_libtool_libs=$enable_shared
23096
23097# Whether or not to build static libraries.
23098build_old_libs=$enable_static
23099
23100# Whether or not to add -lc for building shared libraries.
23101build_libtool_need_lc=$archive_cmds_need_lc_F77
23102
23103# Whether or not to disallow shared libs when runtime libs are static
23104allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23105
23106# Whether or not to optimize for fast installation.
23107fast_install=$enable_fast_install
23108
23109# The host system.
23110host_alias=$host_alias
23111host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023112host_os=$host_os
23113
23114# The build system.
23115build_alias=$build_alias
23116build=$build
23117build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023118
23119# An echo program that does not interpret backslashes.
23120echo=$lt_echo
23121
23122# The archiver.
23123AR=$lt_AR
23124AR_FLAGS=$lt_AR_FLAGS
23125
23126# A C compiler.
23127LTCC=$lt_LTCC
23128
Reid Spencera773bd52006-08-04 18:18:08 +000023129# LTCC compiler flags.
23130LTCFLAGS=$lt_LTCFLAGS
23131
John Criswell47fdd832003-07-14 16:52:07 +000023132# A language-specific compiler.
23133CC=$lt_compiler_F77
23134
23135# Is the compiler the GNU C compiler?
23136with_gcc=$GCC_F77
23137
23138# An ERE matcher.
23139EGREP=$lt_EGREP
23140
23141# The linker used to build libraries.
23142LD=$lt_LD_F77
23143
23144# Whether we need hard or soft links.
23145LN_S=$lt_LN_S
23146
23147# A BSD-compatible nm program.
23148NM=$lt_NM
23149
23150# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023151STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023152
23153# Used to examine libraries when file_magic_cmd begins "file"
23154MAGIC_CMD=$MAGIC_CMD
23155
23156# Used on cygwin: DLL creation program.
23157DLLTOOL="$DLLTOOL"
23158
23159# Used on cygwin: object dumper.
23160OBJDUMP="$OBJDUMP"
23161
23162# Used on cygwin: assembler.
23163AS="$AS"
23164
23165# The name of the directory that contains temporary libtool files.
23166objdir=$objdir
23167
23168# How to create reloadable object files.
23169reload_flag=$lt_reload_flag
23170reload_cmds=$lt_reload_cmds
23171
23172# How to pass a linker flag through the compiler.
23173wl=$lt_lt_prog_compiler_wl_F77
23174
23175# Object file suffix (normally "o").
23176objext="$ac_objext"
23177
23178# Old archive suffix (normally "a").
23179libext="$libext"
23180
23181# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023182shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023183
23184# Executable file suffix (normally "").
23185exeext="$exeext"
23186
23187# Additional compiler flags for building library objects.
23188pic_flag=$lt_lt_prog_compiler_pic_F77
23189pic_mode=$pic_mode
23190
23191# What is the maximum length of a command?
23192max_cmd_len=$lt_cv_sys_max_cmd_len
23193
23194# Does compiler simultaneously support -c and -o options?
23195compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23196
Reid Spencera773bd52006-08-04 18:18:08 +000023197# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023198need_locks=$lt_need_locks
23199
23200# Do we need the lib prefix for modules?
23201need_lib_prefix=$need_lib_prefix
23202
23203# Do we need a version for libraries?
23204need_version=$need_version
23205
23206# Whether dlopen is supported.
23207dlopen_support=$enable_dlopen
23208
23209# Whether dlopen of programs is supported.
23210dlopen_self=$enable_dlopen_self
23211
23212# Whether dlopen of statically linked programs is supported.
23213dlopen_self_static=$enable_dlopen_self_static
23214
23215# Compiler flag to prevent dynamic linking.
23216link_static_flag=$lt_lt_prog_compiler_static_F77
23217
23218# Compiler flag to turn off builtin functions.
23219no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23220
23221# Compiler flag to allow reflexive dlopens.
23222export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23223
23224# Compiler flag to generate shared objects directly from archives.
23225whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23226
23227# Compiler flag to generate thread-safe objects.
23228thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23229
23230# Library versioning type.
23231version_type=$version_type
23232
23233# Format of library name prefix.
23234libname_spec=$lt_libname_spec
23235
23236# List of archive names. First name is the real one, the rest are links.
23237# The last name is the one that the linker finds with -lNAME.
23238library_names_spec=$lt_library_names_spec
23239
23240# The coded name of the library, if different from the real name.
23241soname_spec=$lt_soname_spec
23242
23243# Commands used to build and install an old-style archive.
23244RANLIB=$lt_RANLIB
23245old_archive_cmds=$lt_old_archive_cmds_F77
23246old_postinstall_cmds=$lt_old_postinstall_cmds
23247old_postuninstall_cmds=$lt_old_postuninstall_cmds
23248
23249# Create an old-style archive from a shared archive.
23250old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23251
23252# Create a temporary old-style archive to link instead of a shared archive.
23253old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23254
23255# Commands used to build and install a shared archive.
23256archive_cmds=$lt_archive_cmds_F77
23257archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23258postinstall_cmds=$lt_postinstall_cmds
23259postuninstall_cmds=$lt_postuninstall_cmds
23260
23261# Commands used to build a loadable module (assumed same as above if empty)
23262module_cmds=$lt_module_cmds_F77
23263module_expsym_cmds=$lt_module_expsym_cmds_F77
23264
23265# Commands to strip libraries.
23266old_striplib=$lt_old_striplib
23267striplib=$lt_striplib
23268
23269# Dependencies to place before the objects being linked to create a
23270# shared library.
23271predep_objects=$lt_predep_objects_F77
23272
23273# Dependencies to place after the objects being linked to create a
23274# shared library.
23275postdep_objects=$lt_postdep_objects_F77
23276
23277# Dependencies to place before the objects being linked to create a
23278# shared library.
23279predeps=$lt_predeps_F77
23280
23281# Dependencies to place after the objects being linked to create a
23282# shared library.
23283postdeps=$lt_postdeps_F77
23284
23285# The library search path used internally by the compiler when linking
23286# a shared library.
23287compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23288
23289# Method to check whether dependent libraries are shared objects.
23290deplibs_check_method=$lt_deplibs_check_method
23291
23292# Command to use when deplibs_check_method == file_magic.
23293file_magic_cmd=$lt_file_magic_cmd
23294
23295# Flag that allows shared libraries with undefined symbols to be built.
23296allow_undefined_flag=$lt_allow_undefined_flag_F77
23297
23298# Flag that forces no undefined symbols.
23299no_undefined_flag=$lt_no_undefined_flag_F77
23300
23301# Commands used to finish a libtool library installation in a directory.
23302finish_cmds=$lt_finish_cmds
23303
23304# Same as above, but a single script fragment to be evaled but not shown.
23305finish_eval=$lt_finish_eval
23306
23307# Take the output of nm and produce a listing of raw symbols and C names.
23308global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23309
23310# Transform the output of nm in a proper C declaration
23311global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23312
23313# Transform the output of nm in a C name address pair
23314global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23315
23316# This is the shared library runtime path variable.
23317runpath_var=$runpath_var
23318
23319# This is the shared library path variable.
23320shlibpath_var=$shlibpath_var
23321
23322# Is shlibpath searched before the hard-coded library search path?
23323shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23324
23325# How to hardcode a shared library path into an executable.
23326hardcode_action=$hardcode_action_F77
23327
23328# Whether we should hardcode library paths into libraries.
23329hardcode_into_libs=$hardcode_into_libs
23330
23331# Flag to hardcode \$libdir into a binary during linking.
23332# This must work even if \$libdir does not exist.
23333hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23334
23335# If ld is used when linking, flag to hardcode \$libdir into
23336# a binary during linking. This must work even if \$libdir does
23337# not exist.
23338hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23339
23340# Whether we need a single -rpath flag with a separated argument.
23341hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23342
23343# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23344# resulting binary.
23345hardcode_direct=$hardcode_direct_F77
23346
23347# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23348# resulting binary.
23349hardcode_minus_L=$hardcode_minus_L_F77
23350
23351# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23352# the resulting binary.
23353hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23354
23355# Set to yes if building a shared library automatically hardcodes DIR into the library
23356# and all subsequent libraries and executables linked against it.
23357hardcode_automatic=$hardcode_automatic_F77
23358
23359# Variables whose values should be saved in libtool wrapper scripts and
23360# restored at relink time.
23361variables_saved_for_relink="$variables_saved_for_relink"
23362
23363# Whether libtool must link a program against all its dependency libraries.
23364link_all_deplibs=$link_all_deplibs_F77
23365
23366# Compile-time system search path for libraries
23367sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23368
23369# Run-time system search path for libraries
23370sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23371
23372# Fix the shell variable \$srcfile for the compiler.
23373fix_srcfile_path="$fix_srcfile_path_F77"
23374
23375# Set to yes if exported symbols are required.
23376always_export_symbols=$always_export_symbols_F77
23377
23378# The commands to list exported symbols.
23379export_symbols_cmds=$lt_export_symbols_cmds_F77
23380
23381# The commands to extract the exported symbol list from a shared archive.
23382extract_expsyms_cmds=$lt_extract_expsyms_cmds
23383
23384# Symbols that should not be listed in the preloaded symbols.
23385exclude_expsyms=$lt_exclude_expsyms_F77
23386
23387# Symbols that must always be exported.
23388include_expsyms=$lt_include_expsyms_F77
23389
23390# ### END LIBTOOL TAG CONFIG: $tagname
23391
23392__EOF__
23393
23394
23395else
23396 # If there is no Makefile yet, we rely on a make rule to execute
23397 # `config.status --recheck' to rerun these tests and create the
23398 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023399 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23400 if test -f "$ltmain_in"; then
23401 test -f Makefile && make "$ltmain"
23402 fi
John Criswell47fdd832003-07-14 16:52:07 +000023403fi
23404
23405
23406ac_ext=c
23407ac_cpp='$CPP $CPPFLAGS'
23408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23410ac_compiler_gnu=$ac_cv_c_compiler_gnu
23411
23412CC="$lt_save_CC"
23413
23414 else
23415 tagname=""
23416 fi
23417 ;;
23418
23419 GCJ)
23420 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023421 ac_ext=c
23422ac_cpp='$CPP $CPPFLAGS'
23423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23425ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023426
23427
23428# Source file extension for Java test sources.
23429ac_ext=java
23430
23431# Object file extension for compiled Java test sources.
23432objext=o
23433objext_GCJ=$objext
23434
23435# Code to be used in simple compile tests
23436lt_simple_compile_test_code="class foo {}\n"
23437
23438# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023439lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023440
23441# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23442
23443# If no C compiler was specified, use CC.
23444LTCC=${LTCC-"$CC"}
23445
Reid Spencera773bd52006-08-04 18:18:08 +000023446# If no C compiler flags were specified, use CFLAGS.
23447LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23448
John Criswell47fdd832003-07-14 16:52:07 +000023449# Allow CC to be a program name with arguments.
23450compiler=$CC
23451
23452
Reid Spencera773bd52006-08-04 18:18:08 +000023453# save warnings/boilerplate of simple test code
23454ac_outfile=conftest.$ac_objext
23455printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23456eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23457_lt_compiler_boilerplate=`cat conftest.err`
23458$rm conftest*
23459
23460ac_outfile=conftest.$ac_objext
23461printf "$lt_simple_link_test_code" >conftest.$ac_ext
23462eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23463_lt_linker_boilerplate=`cat conftest.err`
23464$rm conftest*
23465
23466
John Criswell47fdd832003-07-14 16:52:07 +000023467# Allow CC to be a program name with arguments.
23468lt_save_CC="$CC"
23469CC=${GCJ-"gcj"}
23470compiler=$CC
23471compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023472for cc_temp in $compiler""; do
23473 case $cc_temp in
23474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23476 \-*) ;;
23477 *) break;;
23478 esac
23479done
23480cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23481
John Criswell47fdd832003-07-14 16:52:07 +000023482
23483# GCJ did not exist at the time GCC didn't implicitly link libc in.
23484archive_cmds_need_lc_GCJ=no
23485
Reid Spencera773bd52006-08-04 18:18:08 +000023486old_archive_cmds_GCJ=$old_archive_cmds
23487
John Criswell47fdd832003-07-14 16:52:07 +000023488
23489lt_prog_compiler_no_builtin_flag_GCJ=
23490
23491if test "$GCC" = yes; then
23492 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23493
Reid Spencer2706f8c2004-09-19 23:53:36 +000023494
Reid Spencera773bd52006-08-04 18:18:08 +000023495{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23496echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023497if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23498 echo $ECHO_N "(cached) $ECHO_C" >&6
23499else
23500 lt_cv_prog_compiler_rtti_exceptions=no
23501 ac_outfile=conftest.$ac_objext
23502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23503 lt_compiler_flag="-fno-rtti -fno-exceptions"
23504 # Insert the option either (1) after the last *FLAGS variable, or
23505 # (2) before a word containing "conftest.", or (3) at the end.
23506 # Note that $ac_compile itself does not contain backslashes and begins
23507 # with a dollar sign (not a hyphen), so the echo should work correctly.
23508 # The option is referenced via a variable to avoid confusing sed.
23509 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23512 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000023513 (eval echo "\"\$as_me:23513: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023514 (eval "$lt_compile" 2>conftest.err)
23515 ac_status=$?
23516 cat conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000023517 echo "$as_me:23517: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023518 if (exit $ac_status) && test -s "$ac_outfile"; then
23519 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023520 # So say no if there are warnings other than the usual output.
23521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023524 lt_cv_prog_compiler_rtti_exceptions=yes
23525 fi
23526 fi
23527 $rm conftest*
23528
23529fi
Reid Spencera773bd52006-08-04 18:18:08 +000023530{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23531echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023532
23533if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23534 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23535else
23536 :
23537fi
23538
23539fi
23540
23541lt_prog_compiler_wl_GCJ=
23542lt_prog_compiler_pic_GCJ=
23543lt_prog_compiler_static_GCJ=
23544
Reid Spencera773bd52006-08-04 18:18:08 +000023545{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23546echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023547
23548 if test "$GCC" = yes; then
23549 lt_prog_compiler_wl_GCJ='-Wl,'
23550 lt_prog_compiler_static_GCJ='-static'
23551
23552 case $host_os in
23553 aix*)
23554 # All AIX code is PIC.
23555 if test "$host_cpu" = ia64; then
23556 # AIX 5 now supports IA64 processor
23557 lt_prog_compiler_static_GCJ='-Bstatic'
23558 fi
23559 ;;
23560
23561 amigaos*)
23562 # FIXME: we need at least 68020 code to build shared libraries, but
23563 # adding the `-m68020' flag to GCC prevents building anything better,
23564 # like `-m68040'.
23565 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23566 ;;
23567
23568 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23569 # PIC is the default for these OSes.
23570 ;;
23571
23572 mingw* | pw32* | os2*)
23573 # This hack is so that the source file can tell whether it is being
23574 # built for inclusion in a dll (and should export symbols for example).
23575 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23576 ;;
23577
23578 darwin* | rhapsody*)
23579 # PIC is the default on this platform
23580 # Common symbols not allowed in MH_DYLIB files
23581 lt_prog_compiler_pic_GCJ='-fno-common'
23582 ;;
23583
Reid Spencera773bd52006-08-04 18:18:08 +000023584 interix3*)
23585 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23586 # Instead, we relocate shared libraries at runtime.
23587 ;;
23588
John Criswell47fdd832003-07-14 16:52:07 +000023589 msdosdjgpp*)
23590 # Just because we use GCC doesn't mean we suddenly get shared libraries
23591 # on systems that don't support them.
23592 lt_prog_compiler_can_build_shared_GCJ=no
23593 enable_shared=no
23594 ;;
23595
23596 sysv4*MP*)
23597 if test -d /usr/nec; then
23598 lt_prog_compiler_pic_GCJ=-Kconform_pic
23599 fi
23600 ;;
23601
23602 hpux*)
23603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23604 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023605 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023606 hppa*64*|ia64*)
23607 # +Z the default
23608 ;;
23609 *)
23610 lt_prog_compiler_pic_GCJ='-fPIC'
23611 ;;
23612 esac
23613 ;;
23614
23615 *)
23616 lt_prog_compiler_pic_GCJ='-fPIC'
23617 ;;
23618 esac
23619 else
23620 # PORTME Check for flag to pass linker flags through the system compiler.
23621 case $host_os in
23622 aix*)
23623 lt_prog_compiler_wl_GCJ='-Wl,'
23624 if test "$host_cpu" = ia64; then
23625 # AIX 5 now supports IA64 processor
23626 lt_prog_compiler_static_GCJ='-Bstatic'
23627 else
23628 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23629 fi
23630 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023631 darwin*)
23632 # PIC is the default on this platform
23633 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023634 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023635 xlc*)
23636 lt_prog_compiler_pic_GCJ='-qnocommon'
23637 lt_prog_compiler_wl_GCJ='-Wl,'
23638 ;;
23639 esac
23640 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023641
23642 mingw* | pw32* | os2*)
23643 # This hack is so that the source file can tell whether it is being
23644 # built for inclusion in a dll (and should export symbols for example).
23645 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23646 ;;
23647
23648 hpux9* | hpux10* | hpux11*)
23649 lt_prog_compiler_wl_GCJ='-Wl,'
23650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23651 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023652 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023653 hppa*64*|ia64*)
23654 # +Z the default
23655 ;;
23656 *)
23657 lt_prog_compiler_pic_GCJ='+Z'
23658 ;;
23659 esac
23660 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23661 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23662 ;;
23663
23664 irix5* | irix6* | nonstopux*)
23665 lt_prog_compiler_wl_GCJ='-Wl,'
23666 # PIC (with -KPIC) is the default.
23667 lt_prog_compiler_static_GCJ='-non_shared'
23668 ;;
23669
23670 newsos6)
23671 lt_prog_compiler_pic_GCJ='-KPIC'
23672 lt_prog_compiler_static_GCJ='-Bstatic'
23673 ;;
23674
23675 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023676 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023677 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023678 lt_prog_compiler_wl_GCJ='-Wl,'
23679 lt_prog_compiler_pic_GCJ='-KPIC'
23680 lt_prog_compiler_static_GCJ='-static'
23681 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023682 pgcc* | pgf77* | pgf90* | pgf95*)
23683 # Portland Group compilers (*not* the Pentium gcc compiler,
23684 # which looks to be a dead project)
23685 lt_prog_compiler_wl_GCJ='-Wl,'
23686 lt_prog_compiler_pic_GCJ='-fpic'
23687 lt_prog_compiler_static_GCJ='-Bstatic'
23688 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023689 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023690 lt_prog_compiler_wl_GCJ='-Wl,'
23691 # All Alpha code is PIC.
23692 lt_prog_compiler_static_GCJ='-non_shared'
23693 ;;
23694 esac
23695 ;;
23696
23697 osf3* | osf4* | osf5*)
23698 lt_prog_compiler_wl_GCJ='-Wl,'
23699 # All OSF/1 code is PIC.
23700 lt_prog_compiler_static_GCJ='-non_shared'
23701 ;;
23702
John Criswell47fdd832003-07-14 16:52:07 +000023703 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023704 lt_prog_compiler_pic_GCJ='-KPIC'
23705 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023706 case $cc_basename in
23707 f77* | f90* | f95*)
23708 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23709 *)
23710 lt_prog_compiler_wl_GCJ='-Wl,';;
23711 esac
John Criswell47fdd832003-07-14 16:52:07 +000023712 ;;
23713
23714 sunos4*)
23715 lt_prog_compiler_wl_GCJ='-Qoption ld '
23716 lt_prog_compiler_pic_GCJ='-PIC'
23717 lt_prog_compiler_static_GCJ='-Bstatic'
23718 ;;
23719
Reid Spencera773bd52006-08-04 18:18:08 +000023720 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023721 lt_prog_compiler_wl_GCJ='-Wl,'
23722 lt_prog_compiler_pic_GCJ='-KPIC'
23723 lt_prog_compiler_static_GCJ='-Bstatic'
23724 ;;
23725
23726 sysv4*MP*)
23727 if test -d /usr/nec ;then
23728 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23729 lt_prog_compiler_static_GCJ='-Bstatic'
23730 fi
23731 ;;
23732
Reid Spencera773bd52006-08-04 18:18:08 +000023733 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23734 lt_prog_compiler_wl_GCJ='-Wl,'
23735 lt_prog_compiler_pic_GCJ='-KPIC'
23736 lt_prog_compiler_static_GCJ='-Bstatic'
23737 ;;
23738
23739 unicos*)
23740 lt_prog_compiler_wl_GCJ='-Wl,'
23741 lt_prog_compiler_can_build_shared_GCJ=no
23742 ;;
23743
John Criswell47fdd832003-07-14 16:52:07 +000023744 uts4*)
23745 lt_prog_compiler_pic_GCJ='-pic'
23746 lt_prog_compiler_static_GCJ='-Bstatic'
23747 ;;
23748
23749 *)
23750 lt_prog_compiler_can_build_shared_GCJ=no
23751 ;;
23752 esac
23753 fi
23754
Reid Spencera773bd52006-08-04 18:18:08 +000023755{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23756echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023757
23758#
23759# Check to make sure the PIC flag actually works.
23760#
23761if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023762
Reid Spencera773bd52006-08-04 18:18:08 +000023763{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23764echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023765if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23767else
23768 lt_prog_compiler_pic_works_GCJ=no
23769 ac_outfile=conftest.$ac_objext
23770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23771 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23772 # Insert the option either (1) after the last *FLAGS variable, or
23773 # (2) before a word containing "conftest.", or (3) at the end.
23774 # Note that $ac_compile itself does not contain backslashes and begins
23775 # with a dollar sign (not a hyphen), so the echo should work correctly.
23776 # The option is referenced via a variable to avoid confusing sed.
23777 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23780 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000023781 (eval echo "\"\$as_me:23781: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023782 (eval "$lt_compile" 2>conftest.err)
23783 ac_status=$?
23784 cat conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000023785 echo "$as_me:23785: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023786 if (exit $ac_status) && test -s "$ac_outfile"; then
23787 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023788 # So say no if there are warnings other than the usual output.
23789 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023792 lt_prog_compiler_pic_works_GCJ=yes
23793 fi
23794 fi
23795 $rm conftest*
23796
23797fi
Reid Spencera773bd52006-08-04 18:18:08 +000023798{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23799echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023800
23801if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23802 case $lt_prog_compiler_pic_GCJ in
23803 "" | " "*) ;;
23804 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23805 esac
23806else
23807 lt_prog_compiler_pic_GCJ=
23808 lt_prog_compiler_can_build_shared_GCJ=no
23809fi
23810
23811fi
Reid Spencera773bd52006-08-04 18:18:08 +000023812case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023813 # For platforms which do not support PIC, -DPIC is meaningless:
23814 *djgpp*)
23815 lt_prog_compiler_pic_GCJ=
23816 ;;
23817 *)
23818 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23819 ;;
23820esac
23821
Reid Spencera773bd52006-08-04 18:18:08 +000023822#
23823# Check to make sure the static flag actually works.
23824#
23825wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23826{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23827echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23828if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23830else
23831 lt_prog_compiler_static_works_GCJ=no
23832 save_LDFLAGS="$LDFLAGS"
23833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23834 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23836 # The linker can only warn and ignore the option if not recognized
23837 # So say no if there are warnings
23838 if test -s conftest.err; then
23839 # Append any errors to the config.log.
23840 cat conftest.err 1>&5
23841 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23843 if diff conftest.exp conftest.er2 >/dev/null; then
23844 lt_prog_compiler_static_works_GCJ=yes
23845 fi
23846 else
23847 lt_prog_compiler_static_works_GCJ=yes
23848 fi
23849 fi
23850 $rm conftest*
23851 LDFLAGS="$save_LDFLAGS"
23852
23853fi
23854{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23855echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23856
23857if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23858 :
23859else
23860 lt_prog_compiler_static_GCJ=
23861fi
23862
23863
23864{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23865echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023866if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868else
23869 lt_cv_prog_compiler_c_o_GCJ=no
23870 $rm -r conftest 2>/dev/null
23871 mkdir conftest
23872 cd conftest
23873 mkdir out
23874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23875
John Criswell47fdd832003-07-14 16:52:07 +000023876 lt_compiler_flag="-o out/conftest2.$ac_objext"
23877 # Insert the option either (1) after the last *FLAGS variable, or
23878 # (2) before a word containing "conftest.", or (3) at the end.
23879 # Note that $ac_compile itself does not contain backslashes and begins
23880 # with a dollar sign (not a hyphen), so the echo should work correctly.
23881 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23884 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59807fa2007-05-17 18:11:03 +000023885 (eval echo "\"\$as_me:23885: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023886 (eval "$lt_compile" 2>out/conftest.err)
23887 ac_status=$?
23888 cat out/conftest.err >&5
Reid Spencer59807fa2007-05-17 18:11:03 +000023889 echo "$as_me:23889: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23891 then
23892 # The compiler can only warn and ignore the option if not recognized
23893 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023894 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023897 lt_cv_prog_compiler_c_o_GCJ=yes
23898 fi
23899 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023900 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023901 $rm conftest*
23902 # SGI C++ compiler will create directory out/ii_files/ for
23903 # template instantiation
23904 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23905 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023906 cd ..
23907 rmdir conftest
23908 $rm conftest*
23909
23910fi
Reid Spencera773bd52006-08-04 18:18:08 +000023911{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23912echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023913
23914
23915hard_links="nottested"
23916if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23917 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023918 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23919echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023920 hard_links=yes
23921 $rm conftest*
23922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23923 touch conftest.a
23924 ln conftest.a conftest.b 2>&5 || hard_links=no
23925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023926 { echo "$as_me:$LINENO: result: $hard_links" >&5
23927echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023928 if test "$hard_links" = no; then
23929 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23930echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23931 need_locks=warn
23932 fi
23933else
23934 need_locks=no
23935fi
23936
Reid Spencera773bd52006-08-04 18:18:08 +000023937{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23938echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023939
23940 runpath_var=
23941 allow_undefined_flag_GCJ=
23942 enable_shared_with_static_runtimes_GCJ=no
23943 archive_cmds_GCJ=
23944 archive_expsym_cmds_GCJ=
23945 old_archive_From_new_cmds_GCJ=
23946 old_archive_from_expsyms_cmds_GCJ=
23947 export_dynamic_flag_spec_GCJ=
23948 whole_archive_flag_spec_GCJ=
23949 thread_safe_flag_spec_GCJ=
23950 hardcode_libdir_flag_spec_GCJ=
23951 hardcode_libdir_flag_spec_ld_GCJ=
23952 hardcode_libdir_separator_GCJ=
23953 hardcode_direct_GCJ=no
23954 hardcode_minus_L_GCJ=no
23955 hardcode_shlibpath_var_GCJ=unsupported
23956 link_all_deplibs_GCJ=unknown
23957 hardcode_automatic_GCJ=no
23958 module_cmds_GCJ=
23959 module_expsym_cmds_GCJ=
23960 always_export_symbols_GCJ=no
23961 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23962 # include_expsyms should be a list of space-separated symbols to be *always*
23963 # included in the symbol list
23964 include_expsyms_GCJ=
23965 # exclude_expsyms can be an extended regexp of symbols to exclude
23966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23968 # as well as any symbol that contains `d'.
23969 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23971 # platforms (ab)use it in PIC code, but their linkers get confused if
23972 # the symbol is explicitly referenced. Since portable code cannot
23973 # rely on this symbol name, it's probably fine to never include it in
23974 # preloaded symbol tables.
23975 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023976 # Just being paranoid about ensuring that cc_basename is set.
23977 for cc_temp in $compiler""; do
23978 case $cc_temp in
23979 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23980 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23981 \-*) ;;
23982 *) break;;
23983 esac
23984done
23985cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023986
23987 case $host_os in
23988 cygwin* | mingw* | pw32*)
23989 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23990 # When not using gcc, we currently assume that we are using
23991 # Microsoft Visual C++.
23992 if test "$GCC" != yes; then
23993 with_gnu_ld=no
23994 fi
23995 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023996 interix*)
23997 # we just hope/assume this is gcc and not c89 (= MSVC++)
23998 with_gnu_ld=yes
23999 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024000 openbsd*)
24001 with_gnu_ld=no
24002 ;;
24003 esac
24004
24005 ld_shlibs_GCJ=yes
24006 if test "$with_gnu_ld" = yes; then
24007 # If archive_cmds runs LD, not CC, wlarc should be empty
24008 wlarc='${wl}'
24009
Reid Spencera773bd52006-08-04 18:18:08 +000024010 # Set some defaults for GNU ld with shared library support. These
24011 # are reset later if shared libraries are not supported. Putting them
24012 # here allows them to be overridden if necessary.
24013 runpath_var=LD_RUN_PATH
24014 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24015 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24016 # ancient GNU ld didn't support --whole-archive et. al.
24017 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24018 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24019 else
24020 whole_archive_flag_spec_GCJ=
24021 fi
24022 supports_anon_versioning=no
24023 case `$LD -v 2>/dev/null` in
24024 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24025 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24026 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24027 *\ 2.11.*) ;; # other 2.11 versions
24028 *) supports_anon_versioning=yes ;;
24029 esac
24030
John Criswell47fdd832003-07-14 16:52:07 +000024031 # See if GNU ld supports shared libraries.
24032 case $host_os in
24033 aix3* | aix4* | aix5*)
24034 # On AIX/PPC, the GNU linker is very broken
24035 if test "$host_cpu" != ia64; then
24036 ld_shlibs_GCJ=no
24037 cat <<EOF 1>&2
24038
24039*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24040*** to be unable to reliably create shared libraries on AIX.
24041*** Therefore, libtool is disabling shared libraries support. If you
24042*** really care for shared libraries, you may want to modify your PATH
24043*** so that a non-GNU linker is found, and then restart.
24044
24045EOF
24046 fi
24047 ;;
24048
24049 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024050 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 +000024051 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24052 hardcode_minus_L_GCJ=yes
24053
24054 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24055 # that the semantics of dynamic libraries on AmigaOS, at least up
24056 # to version 4, is to share data among multiple programs linked
24057 # with the same dynamic library. Since this doesn't match the
24058 # behavior of shared libraries on other platforms, we can't use
24059 # them.
24060 ld_shlibs_GCJ=no
24061 ;;
24062
24063 beos*)
24064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24065 allow_undefined_flag_GCJ=unsupported
24066 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24067 # support --undefined. This deserves some investigation. FIXME
24068 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24069 else
24070 ld_shlibs_GCJ=no
24071 fi
24072 ;;
24073
24074 cygwin* | mingw* | pw32*)
24075 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24076 # as there is no search path for DLLs.
24077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24078 allow_undefined_flag_GCJ=unsupported
24079 always_export_symbols_GCJ=no
24080 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024081 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 +000024082
24083 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024084 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 +000024085 # If the export-symbols file already is a .def file (1st line
24086 # is EXPORTS), use it as is; otherwise, prepend...
24087 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24088 cp $export_symbols $output_objdir/$soname.def;
24089 else
24090 echo EXPORTS > $output_objdir/$soname.def;
24091 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024092 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024093 $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 +000024094 else
Reid Spencera773bd52006-08-04 18:18:08 +000024095 ld_shlibs_GCJ=no
24096 fi
24097 ;;
24098
24099 interix3*)
24100 hardcode_direct_GCJ=no
24101 hardcode_shlibpath_var_GCJ=no
24102 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24103 export_dynamic_flag_spec_GCJ='${wl}-E'
24104 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24105 # Instead, shared libraries are loaded at an image base (0x10000000 by
24106 # default) and relocated if they conflict, which is a slow very memory
24107 # consuming and fragmenting process. To avoid this, we pick a random,
24108 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24109 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24110 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'
24111 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'
24112 ;;
24113
24114 linux*)
24115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24116 tmp_addflag=
24117 case $cc_basename,$host_cpu in
24118 pgcc*) # Portland Group C compiler
24119 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'
24120 tmp_addflag=' $pic_flag'
24121 ;;
24122 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24123 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'
24124 tmp_addflag=' $pic_flag -Mnomain' ;;
24125 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24126 tmp_addflag=' -i_dynamic' ;;
24127 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24128 tmp_addflag=' -i_dynamic -nofor_main' ;;
24129 ifc* | ifort*) # Intel Fortran compiler
24130 tmp_addflag=' -nofor_main' ;;
24131 esac
24132 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24133
24134 if test $supports_anon_versioning = yes; then
24135 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24137 $echo "local: *; };" >> $output_objdir/$libname.ver~
24138 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24139 fi
24140 else
24141 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024142 fi
24143 ;;
24144
24145 netbsd*)
24146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24147 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24148 wlarc=
24149 else
24150 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24151 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24152 fi
24153 ;;
24154
Reid Spencera773bd52006-08-04 18:18:08 +000024155 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024156 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24157 ld_shlibs_GCJ=no
24158 cat <<EOF 1>&2
24159
24160*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24161*** create shared libraries on Solaris systems. Therefore, libtool
24162*** is disabling shared libraries support. We urge you to upgrade GNU
24163*** binutils to release 2.9.1 or newer. Another option is to modify
24164*** your PATH or compiler configuration so that the native linker is
24165*** used, and then restart.
24166
24167EOF
24168 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24169 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24170 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24171 else
24172 ld_shlibs_GCJ=no
24173 fi
24174 ;;
24175
Reid Spencera773bd52006-08-04 18:18:08 +000024176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24177 case `$LD -v 2>&1` in
24178 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24179 ld_shlibs_GCJ=no
24180 cat <<_LT_EOF 1>&2
24181
24182*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24183*** reliably create shared libraries on SCO systems. Therefore, libtool
24184*** is disabling shared libraries support. We urge you to upgrade GNU
24185*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24186*** your PATH or compiler configuration so that the native linker is
24187*** used, and then restart.
24188
24189_LT_EOF
24190 ;;
24191 *)
24192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24193 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24194 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24195 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24196 else
24197 ld_shlibs_GCJ=no
24198 fi
24199 ;;
24200 esac
24201 ;;
24202
John Criswell47fdd832003-07-14 16:52:07 +000024203 sunos4*)
24204 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24205 wlarc=
24206 hardcode_direct_GCJ=yes
24207 hardcode_shlibpath_var_GCJ=no
24208 ;;
24209
24210 *)
24211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24212 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24213 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24214 else
24215 ld_shlibs_GCJ=no
24216 fi
24217 ;;
24218 esac
24219
Reid Spencera773bd52006-08-04 18:18:08 +000024220 if test "$ld_shlibs_GCJ" = no; then
24221 runpath_var=
24222 hardcode_libdir_flag_spec_GCJ=
24223 export_dynamic_flag_spec_GCJ=
24224 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024225 fi
24226 else
24227 # PORTME fill in a description of your system's linker (not GNU ld)
24228 case $host_os in
24229 aix3*)
24230 allow_undefined_flag_GCJ=unsupported
24231 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024232 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 +000024233 # Note: this linker hardcodes the directories in LIBPATH if there
24234 # are no directories specified by -L.
24235 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024236 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024237 # Neither direct hardcoding nor static linking is supported with a
24238 # broken collect2.
24239 hardcode_direct_GCJ=unsupported
24240 fi
24241 ;;
24242
24243 aix4* | aix5*)
24244 if test "$host_cpu" = ia64; then
24245 # On IA64, the linker does run time linking by default, so we don't
24246 # have to do anything special.
24247 aix_use_runtimelinking=no
24248 exp_sym_flag='-Bexport'
24249 no_entry_flag=""
24250 else
24251 # If we're using GNU nm, then we don't want the "-C" option.
24252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24253 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24254 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'
24255 else
24256 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'
24257 fi
24258 aix_use_runtimelinking=no
24259
24260 # Test if we are trying to use run time linking or normal
24261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24262 # need to do runtime linking.
24263 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24264 for ld_flag in $LDFLAGS; do
24265 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24266 aix_use_runtimelinking=yes
24267 break
24268 fi
24269 done
Reid Spencera773bd52006-08-04 18:18:08 +000024270 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024271 esac
24272
24273 exp_sym_flag='-bexport'
24274 no_entry_flag='-bnoentry'
24275 fi
24276
24277 # When large executables or shared objects are built, AIX ld can
24278 # have problems creating the table of contents. If linking a library
24279 # or program results in "error TOC overflow" add -mminimal-toc to
24280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24282
24283 archive_cmds_GCJ=''
24284 hardcode_direct_GCJ=yes
24285 hardcode_libdir_separator_GCJ=':'
24286 link_all_deplibs_GCJ=yes
24287
24288 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024289 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024290 # We only want to do this on AIX 4.2 and lower, the check
24291 # below for broken collect2 doesn't work under 4.3+
24292 collect2name=`${CC} -print-prog-name=collect2`
24293 if test -f "$collect2name" && \
24294 strings "$collect2name" | grep resolve_lib_name >/dev/null
24295 then
24296 # We have reworked collect2
24297 hardcode_direct_GCJ=yes
24298 else
24299 # We have old collect2
24300 hardcode_direct_GCJ=unsupported
24301 # It fails to find uninstalled libraries when the uninstalled
24302 # path is not listed in the libpath. Setting hardcode_minus_L
24303 # to unsupported forces relinking
24304 hardcode_minus_L_GCJ=yes
24305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24306 hardcode_libdir_separator_GCJ=
24307 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024308 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024309 esac
24310 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024311 if test "$aix_use_runtimelinking" = yes; then
24312 shared_flag="$shared_flag "'${wl}-G'
24313 fi
John Criswell47fdd832003-07-14 16:52:07 +000024314 else
24315 # not using gcc
24316 if test "$host_cpu" = ia64; then
24317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24318 # chokes on -Wl,-G. The following line is correct:
24319 shared_flag='-G'
24320 else
Reid Spencera773bd52006-08-04 18:18:08 +000024321 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024322 shared_flag='${wl}-G'
24323 else
24324 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024325 fi
John Criswell47fdd832003-07-14 16:52:07 +000024326 fi
24327 fi
24328
24329 # It seems that -bexpall does not export symbols beginning with
24330 # underscore (_), so it is better to generate a list of symbols to export.
24331 always_export_symbols_GCJ=yes
24332 if test "$aix_use_runtimelinking" = yes; then
24333 # Warning - without using the other runtime loading flags (-brtl),
24334 # -berok will link without error, but may produce a broken library.
24335 allow_undefined_flag_GCJ='-berok'
24336 # Determine the default libpath from the value encoded in an empty executable.
24337 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024338/* confdefs.h. */
24339_ACEOF
24340cat confdefs.h >>conftest.$ac_ext
24341cat >>conftest.$ac_ext <<_ACEOF
24342/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024343
John Criswell47fdd832003-07-14 16:52:07 +000024344int
24345main ()
24346{
24347
24348 ;
24349 return 0;
24350}
24351_ACEOF
24352rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024353if { (ac_try="$ac_link"
24354case "(($ac_try" in
24355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24356 *) ac_try_echo=$ac_try;;
24357esac
24358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24359 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024361 grep -v '^ *+' conftest.er1 >conftest.err
24362 rm -f conftest.er1
24363 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24367 { (case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24370esac
24371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024373 ac_status=$?
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); }; } &&
24376 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024377 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024383 ac_status=$?
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); }; }; then
24386
24387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24388}'`
24389# Check for a 64-bit object if we didn't find anything.
24390if 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; }
24391}'`; fi
24392else
24393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024394sed 's/^/| /' conftest.$ac_ext >&5
24395
Reid Spencera773bd52006-08-04 18:18:08 +000024396
John Criswell47fdd832003-07-14 16:52:07 +000024397fi
Reid Spencera773bd52006-08-04 18:18:08 +000024398
24399rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024400 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024401if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24402
24403 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024404 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 +000024405 else
24406 if test "$host_cpu" = ia64; then
24407 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24408 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024409 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 +000024410 else
24411 # Determine the default libpath from the value encoded in an empty executable.
24412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024413/* confdefs.h. */
24414_ACEOF
24415cat confdefs.h >>conftest.$ac_ext
24416cat >>conftest.$ac_ext <<_ACEOF
24417/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024418
John Criswell47fdd832003-07-14 16:52:07 +000024419int
24420main ()
24421{
24422
24423 ;
24424 return 0;
24425}
24426_ACEOF
24427rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024428if { (ac_try="$ac_link"
24429case "(($ac_try" in
24430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431 *) ac_try_echo=$ac_try;;
24432esac
24433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024436 grep -v '^ *+' conftest.er1 >conftest.err
24437 rm -f conftest.er1
24438 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24442 { (case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24445esac
24446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024448 ac_status=$?
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); }; } &&
24451 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024452 { (case "(($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_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024458 ac_status=$?
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; }; then
24461
24462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24463}'`
24464# Check for a 64-bit object if we didn't find anything.
24465if 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; }
24466}'`; fi
24467else
24468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024469sed 's/^/| /' conftest.$ac_ext >&5
24470
Reid Spencera773bd52006-08-04 18:18:08 +000024471
John Criswell47fdd832003-07-14 16:52:07 +000024472fi
Reid Spencera773bd52006-08-04 18:18:08 +000024473
24474rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024475 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024476if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24477
24478 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24479 # Warning - without using the other run time loading flags,
24480 # -berok will link without error, but may produce a broken library.
24481 no_undefined_flag_GCJ=' ${wl}-bernotok'
24482 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024483 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024484 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024485 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024486 # This is similar to how AIX traditionally builds its shared libraries.
24487 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 +000024488 fi
24489 fi
24490 ;;
24491
24492 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024493 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 +000024494 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24495 hardcode_minus_L_GCJ=yes
24496 # see comment about different semantics on the GNU ld section
24497 ld_shlibs_GCJ=no
24498 ;;
24499
Reid Spencer2706f8c2004-09-19 23:53:36 +000024500 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024501 export_dynamic_flag_spec_GCJ=-rdynamic
24502 ;;
24503
24504 cygwin* | mingw* | pw32*)
24505 # When not using gcc, we currently assume that we are using
24506 # Microsoft Visual C++.
24507 # hardcode_libdir_flag_spec is actually meaningless, as there is
24508 # no search path for DLLs.
24509 hardcode_libdir_flag_spec_GCJ=' '
24510 allow_undefined_flag_GCJ=unsupported
24511 # Tell ltmain to make .lib files, not .a files.
24512 libext=lib
24513 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024514 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024515 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024516 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 +000024517 # The linker will automatically build a .lib file if we build a DLL.
24518 old_archive_From_new_cmds_GCJ='true'
24519 # FIXME: Should let the user specify the lib program.
24520 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024521 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024522 enable_shared_with_static_runtimes_GCJ=yes
24523 ;;
24524
24525 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024526 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024527 rhapsody* | darwin1.[012])
24528 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24529 ;;
24530 *) # Darwin 1.3 on
24531 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24532 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24533 else
24534 case ${MACOSX_DEPLOYMENT_TARGET} in
24535 10.[012])
24536 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24537 ;;
24538 10.*)
24539 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24540 ;;
24541 esac
24542 fi
24543 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024544 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024545 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024546 hardcode_direct_GCJ=no
24547 hardcode_automatic_GCJ=yes
24548 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024549 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024550 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024551 if test "$GCC" = yes ; then
24552 output_verbose_link_cmd='echo'
24553 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24554 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000024556 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24557 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024558 else
Reid Spencera773bd52006-08-04 18:18:08 +000024559 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024560 xlc*)
24561 output_verbose_link_cmd='echo'
24562 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24563 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024564 # 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 +000024565 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}'
24566 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 +000024567 ;;
24568 *)
24569 ld_shlibs_GCJ=no
24570 ;;
24571 esac
John Criswell47fdd832003-07-14 16:52:07 +000024572 fi
24573 ;;
24574
24575 dgux*)
24576 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24577 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24578 hardcode_shlibpath_var_GCJ=no
24579 ;;
24580
24581 freebsd1*)
24582 ld_shlibs_GCJ=no
24583 ;;
24584
24585 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24586 # support. Future versions do this automatically, but an explicit c++rt0.o
24587 # does not break anything, and helps significantly (at the cost of a little
24588 # extra space).
24589 freebsd2.2*)
24590 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24592 hardcode_direct_GCJ=yes
24593 hardcode_shlibpath_var_GCJ=no
24594 ;;
24595
24596 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24597 freebsd2*)
24598 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24599 hardcode_direct_GCJ=yes
24600 hardcode_minus_L_GCJ=yes
24601 hardcode_shlibpath_var_GCJ=no
24602 ;;
24603
24604 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024605 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024606 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24607 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24608 hardcode_direct_GCJ=yes
24609 hardcode_shlibpath_var_GCJ=no
24610 ;;
24611
24612 hpux9*)
24613 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024614 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 +000024615 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024616 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 +000024617 fi
24618 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24619 hardcode_libdir_separator_GCJ=:
24620 hardcode_direct_GCJ=yes
24621
24622 # hardcode_minus_L: Not really in the search PATH,
24623 # but as the default location of the library.
24624 hardcode_minus_L_GCJ=yes
24625 export_dynamic_flag_spec_GCJ='${wl}-E'
24626 ;;
24627
Reid Spencera773bd52006-08-04 18:18:08 +000024628 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024629 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024630 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24631 else
24632 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24633 fi
24634 if test "$with_gnu_ld" = no; then
24635 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24636 hardcode_libdir_separator_GCJ=:
24637
24638 hardcode_direct_GCJ=yes
24639 export_dynamic_flag_spec_GCJ='${wl}-E'
24640
24641 # hardcode_minus_L: Not really in the search PATH,
24642 # but as the default location of the library.
24643 hardcode_minus_L_GCJ=yes
24644 fi
24645 ;;
24646
24647 hpux11*)
24648 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24649 case $host_cpu in
24650 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024651 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024653 ia64*)
24654 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24655 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024656 *)
24657 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24658 ;;
24659 esac
24660 else
Reid Spencera773bd52006-08-04 18:18:08 +000024661 case $host_cpu in
24662 hppa*64*)
24663 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24664 ;;
24665 ia64*)
24666 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024667 ;;
24668 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024669 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 +000024670 ;;
24671 esac
24672 fi
24673 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024674 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24675 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024676
Reid Spencera773bd52006-08-04 18:18:08 +000024677 case $host_cpu in
24678 hppa*64*|ia64*)
24679 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24680 hardcode_direct_GCJ=no
24681 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024682 ;;
24683 *)
John Criswell47fdd832003-07-14 16:52:07 +000024684 hardcode_direct_GCJ=yes
24685 export_dynamic_flag_spec_GCJ='${wl}-E'
24686
24687 # hardcode_minus_L: Not really in the search PATH,
24688 # but as the default location of the library.
24689 hardcode_minus_L_GCJ=yes
24690 ;;
24691 esac
24692 fi
24693 ;;
24694
24695 irix5* | irix6* | nonstopux*)
24696 if test "$GCC" = yes; then
24697 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'
24698 else
24699 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'
24700 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24701 fi
24702 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24703 hardcode_libdir_separator_GCJ=:
24704 link_all_deplibs_GCJ=yes
24705 ;;
24706
24707 netbsd*)
24708 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24709 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24710 else
24711 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24712 fi
24713 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24714 hardcode_direct_GCJ=yes
24715 hardcode_shlibpath_var_GCJ=no
24716 ;;
24717
24718 newsos6)
24719 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24720 hardcode_direct_GCJ=yes
24721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24722 hardcode_libdir_separator_GCJ=:
24723 hardcode_shlibpath_var_GCJ=no
24724 ;;
24725
24726 openbsd*)
24727 hardcode_direct_GCJ=yes
24728 hardcode_shlibpath_var_GCJ=no
24729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24730 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024731 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 +000024732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24733 export_dynamic_flag_spec_GCJ='${wl}-E'
24734 else
24735 case $host_os in
24736 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24737 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24738 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24739 ;;
24740 *)
24741 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24742 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24743 ;;
24744 esac
24745 fi
24746 ;;
24747
24748 os2*)
24749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24750 hardcode_minus_L_GCJ=yes
24751 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024752 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 +000024753 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24754 ;;
24755
24756 osf3*)
24757 if test "$GCC" = yes; then
24758 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24759 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'
24760 else
24761 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24762 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'
24763 fi
24764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24765 hardcode_libdir_separator_GCJ=:
24766 ;;
24767
24768 osf4* | osf5*) # as osf3* with the addition of -msym flag
24769 if test "$GCC" = yes; then
24770 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24771 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'
24772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24773 else
24774 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24775 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 +000024776 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 +000024777 $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 +000024778
John Criswell47fdd832003-07-14 16:52:07 +000024779 # Both c and cxx compiler support -rpath directly
24780 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24781 fi
24782 hardcode_libdir_separator_GCJ=:
24783 ;;
24784
John Criswell47fdd832003-07-14 16:52:07 +000024785 solaris*)
24786 no_undefined_flag_GCJ=' -z text'
24787 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024788 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024789 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024790 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24791 $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 +000024792 else
Reid Spencera773bd52006-08-04 18:18:08 +000024793 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024794 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024795 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24796 $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 +000024797 fi
24798 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24799 hardcode_shlibpath_var_GCJ=no
24800 case $host_os in
24801 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024802 *)
24803 # The compiler driver will combine linker options so we
24804 # cannot just pass the convience library names through
24805 # without $wl, iff we do not link with $LD.
24806 # Luckily, gcc supports the same syntax we need for Sun Studio.
24807 # Supported since Solaris 2.6 (maybe 2.5.1?)
24808 case $wlarc in
24809 '')
24810 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24811 *)
24812 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' ;;
24813 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024814 esac
24815 link_all_deplibs_GCJ=yes
24816 ;;
24817
24818 sunos4*)
24819 if test "x$host_vendor" = xsequent; then
24820 # Use $CC to link under sequent, because it throws in some extra .o
24821 # files that make .init and .fini sections work.
24822 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24823 else
24824 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24825 fi
24826 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24827 hardcode_direct_GCJ=yes
24828 hardcode_minus_L_GCJ=yes
24829 hardcode_shlibpath_var_GCJ=no
24830 ;;
24831
24832 sysv4)
24833 case $host_vendor in
24834 sni)
24835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24836 hardcode_direct_GCJ=yes # is this really true???
24837 ;;
24838 siemens)
24839 ## LD is ld it makes a PLAMLIB
24840 ## CC just makes a GrossModule.
24841 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24842 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24843 hardcode_direct_GCJ=no
24844 ;;
24845 motorola)
24846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24847 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24848 ;;
24849 esac
24850 runpath_var='LD_RUN_PATH'
24851 hardcode_shlibpath_var_GCJ=no
24852 ;;
24853
24854 sysv4.3*)
24855 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24856 hardcode_shlibpath_var_GCJ=no
24857 export_dynamic_flag_spec_GCJ='-Bexport'
24858 ;;
24859
24860 sysv4*MP*)
24861 if test -d /usr/nec; then
24862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24863 hardcode_shlibpath_var_GCJ=no
24864 runpath_var=LD_RUN_PATH
24865 hardcode_runpath_var=yes
24866 ld_shlibs_GCJ=yes
24867 fi
24868 ;;
24869
Reid Spencera773bd52006-08-04 18:18:08 +000024870 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24871 no_undefined_flag_GCJ='${wl}-z,text'
24872 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024873 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024874 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024875
John Criswell47fdd832003-07-14 16:52:07 +000024876 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024877 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24878 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 +000024879 else
Reid Spencera773bd52006-08-04 18:18:08 +000024880 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24881 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 +000024882 fi
John Criswell47fdd832003-07-14 16:52:07 +000024883 ;;
24884
Reid Spencera773bd52006-08-04 18:18:08 +000024885 sysv5* | sco3.2v5* | sco5v6*)
24886 # Note: We can NOT use -z defs as we might desire, because we do not
24887 # link with -lc, and that would cause any symbols used from libc to
24888 # always be unresolved, which means just about no library would
24889 # ever link correctly. If we're not using GNU ld we use -z text
24890 # though, which does catch some bad symbols but isn't as heavy-handed
24891 # as -z defs.
24892 no_undefined_flag_GCJ='${wl}-z,text'
24893 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24894 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024895 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024896 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24897 hardcode_libdir_separator_GCJ=':'
24898 link_all_deplibs_GCJ=yes
24899 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024900 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024901
24902 if test "$GCC" = yes; then
24903 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24904 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905 else
24906 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24907 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24908 fi
John Criswell47fdd832003-07-14 16:52:07 +000024909 ;;
24910
24911 uts4*)
24912 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24913 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24914 hardcode_shlibpath_var_GCJ=no
24915 ;;
24916
24917 *)
24918 ld_shlibs_GCJ=no
24919 ;;
24920 esac
24921 fi
24922
Reid Spencera773bd52006-08-04 18:18:08 +000024923{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24924echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024925test "$ld_shlibs_GCJ" = no && can_build_shared=no
24926
John Criswell47fdd832003-07-14 16:52:07 +000024927#
24928# Do we need to explicitly link libc?
24929#
24930case "x$archive_cmds_need_lc_GCJ" in
24931x|xyes)
24932 # Assume -lc should be added
24933 archive_cmds_need_lc_GCJ=yes
24934
24935 if test "$enable_shared" = yes && test "$GCC" = yes; then
24936 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024937 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024938 # FIXME: we may have to deal with multi-command sequences.
24939 ;;
24940 '$CC '*)
24941 # Test whether the compiler implicitly links with -lc since on some
24942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24943 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024944 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24945echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024946 $rm conftest*
24947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24948
24949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24950 (eval $ac_compile) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); } 2>conftest.err; then
24954 soname=conftest
24955 lib=conftest
24956 libobjs=conftest.$ac_objext
24957 deplibs=
24958 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024959 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024960 compiler_flags=-v
24961 linker_flags=-v
24962 verstring=
24963 output_objdir=.
24964 libname=conftest
24965 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24966 allow_undefined_flag_GCJ=
24967 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24968 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24969 ac_status=$?
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }
24972 then
24973 archive_cmds_need_lc_GCJ=no
24974 else
24975 archive_cmds_need_lc_GCJ=yes
24976 fi
24977 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24978 else
24979 cat conftest.err 1>&5
24980 fi
24981 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024982 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24983echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024984 ;;
24985 esac
24986 fi
24987 ;;
24988esac
24989
Reid Spencera773bd52006-08-04 18:18:08 +000024990{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24991echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024992library_names_spec=
24993libname_spec='lib$name'
24994soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024995shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024996postinstall_cmds=
24997postuninstall_cmds=
24998finish_cmds=
24999finish_eval=
25000shlibpath_var=
25001shlibpath_overrides_runpath=unknown
25002version_type=none
25003dynamic_linker="$host_os ld.so"
25004sys_lib_dlsearch_path_spec="/lib /usr/lib"
25005if test "$GCC" = yes; then
25006 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25007 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25008 # if the path contains ";" then we assume it to be the separator
25009 # otherwise default to the standard path separator (i.e. ":") - it is
25010 # assumed that no part of a normal pathname contains ";" but that should
25011 # okay in the real world where ";" in dirpaths is itself problematic.
25012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25013 else
25014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25015 fi
25016else
25017 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25018fi
25019need_lib_prefix=unknown
25020hardcode_into_libs=no
25021
25022# when you set need_version to no, make sure it does not cause -set_version
25023# flags to be left without arguments
25024need_version=unknown
25025
25026case $host_os in
25027aix3*)
25028 version_type=linux
25029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25030 shlibpath_var=LIBPATH
25031
25032 # AIX 3 has no versioning support, so we append a major version to the name.
25033 soname_spec='${libname}${release}${shared_ext}$major'
25034 ;;
25035
25036aix4* | aix5*)
25037 version_type=linux
25038 need_lib_prefix=no
25039 need_version=no
25040 hardcode_into_libs=yes
25041 if test "$host_cpu" = ia64; then
25042 # AIX 5 supports IA64
25043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25044 shlibpath_var=LD_LIBRARY_PATH
25045 else
25046 # With GCC up to 2.95.x, collect2 would create an import file
25047 # for dependence libraries. The import file would start with
25048 # the line `#! .'. This would cause the generated library to
25049 # depend on `.', always an invalid library. This was fixed in
25050 # development snapshots of GCC prior to 3.0.
25051 case $host_os in
25052 aix4 | aix4.[01] | aix4.[01].*)
25053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25054 echo ' yes '
25055 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25056 :
25057 else
25058 can_build_shared=no
25059 fi
25060 ;;
25061 esac
25062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25063 # soname into executable. Probably we can add versioning support to
25064 # collect2, so additional links can be useful in future.
25065 if test "$aix_use_runtimelinking" = yes; then
25066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25067 # instead of lib<name>.a to let people know that these are not
25068 # typical AIX shared libraries.
25069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25070 else
25071 # We preserve .a as extension for shared libraries through AIX4.2
25072 # and later when we are not doing run time linking.
25073 library_names_spec='${libname}${release}.a $libname.a'
25074 soname_spec='${libname}${release}${shared_ext}$major'
25075 fi
25076 shlibpath_var=LIBPATH
25077 fi
25078 ;;
25079
25080amigaos*)
25081 library_names_spec='$libname.ixlibrary $libname.a'
25082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025083 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 +000025084 ;;
25085
25086beos*)
25087 library_names_spec='${libname}${shared_ext}'
25088 dynamic_linker="$host_os ld.so"
25089 shlibpath_var=LIBRARY_PATH
25090 ;;
25091
Reid Spencer2706f8c2004-09-19 23:53:36 +000025092bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025093 version_type=linux
25094 need_version=no
25095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25096 soname_spec='${libname}${release}${shared_ext}$major'
25097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25098 shlibpath_var=LD_LIBRARY_PATH
25099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25101 # the default ld.so.conf also contains /usr/contrib/lib and
25102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25103 # libtool to hard-code these into programs
25104 ;;
25105
25106cygwin* | mingw* | pw32*)
25107 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025108 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025109 need_version=no
25110 need_lib_prefix=no
25111
25112 case $GCC,$host_os in
25113 yes,cygwin* | yes,mingw* | yes,pw32*)
25114 library_names_spec='$libname.dll.a'
25115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025116 postinstall_cmds='base_file=`basename \${file}`~
25117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25118 dldir=$destdir/`dirname \$dlpath`~
25119 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025120 $install_prog $dir/$dlname \$dldir/$dlname~
25121 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025122 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25123 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025124 $rm \$dlpath'
25125 shlibpath_overrides_runpath=yes
25126
25127 case $host_os in
25128 cygwin*)
25129 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25130 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 +000025131 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025132 ;;
25133 mingw*)
25134 # MinGW DLLs use traditional 'lib' prefix
25135 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25136 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25137 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25138 # It is most probably a Windows format PATH printed by
25139 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25140 # path with ; separators, and with drive letters. We can handle the
25141 # drive letters (cygwin fileutils understands them), so leave them,
25142 # especially as we might pass files found there to a mingw objdump,
25143 # which wouldn't understand a cygwinified path. Ahh.
25144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25145 else
25146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25147 fi
25148 ;;
25149 pw32*)
25150 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025151 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 +000025152 ;;
25153 esac
25154 ;;
25155
25156 *)
25157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25158 ;;
25159 esac
25160 dynamic_linker='Win32 ld.exe'
25161 # FIXME: first we should search . and the directory the executable is in
25162 shlibpath_var=PATH
25163 ;;
25164
25165darwin* | rhapsody*)
25166 dynamic_linker="$host_os dyld"
25167 version_type=darwin
25168 need_lib_prefix=no
25169 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025170 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025171 soname_spec='${libname}${release}${major}$shared_ext'
25172 shlibpath_overrides_runpath=yes
25173 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025174 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025175 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025176 if test "$GCC" = yes; then
25177 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"`
25178 else
25179 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025180 fi
25181 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25182 ;;
25183
25184dgux*)
25185 version_type=linux
25186 need_lib_prefix=no
25187 need_version=no
25188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25189 soname_spec='${libname}${release}${shared_ext}$major'
25190 shlibpath_var=LD_LIBRARY_PATH
25191 ;;
25192
25193freebsd1*)
25194 dynamic_linker=no
25195 ;;
25196
Reid Spencer2706f8c2004-09-19 23:53:36 +000025197kfreebsd*-gnu)
25198 version_type=linux
25199 need_lib_prefix=no
25200 need_version=no
25201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25202 soname_spec='${libname}${release}${shared_ext}$major'
25203 shlibpath_var=LD_LIBRARY_PATH
25204 shlibpath_overrides_runpath=no
25205 hardcode_into_libs=yes
25206 dynamic_linker='GNU ld.so'
25207 ;;
25208
Reid Spencera773bd52006-08-04 18:18:08 +000025209freebsd* | dragonfly*)
25210 # DragonFly does not have aout. When/if they implement a new
25211 # versioning mechanism, adjust this.
25212 if test -x /usr/bin/objformat; then
25213 objformat=`/usr/bin/objformat`
25214 else
25215 case $host_os in
25216 freebsd[123]*) objformat=aout ;;
25217 *) objformat=elf ;;
25218 esac
25219 fi
John Criswell47fdd832003-07-14 16:52:07 +000025220 version_type=freebsd-$objformat
25221 case $version_type in
25222 freebsd-elf*)
25223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25224 need_version=no
25225 need_lib_prefix=no
25226 ;;
25227 freebsd-*)
25228 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25229 need_version=yes
25230 ;;
25231 esac
25232 shlibpath_var=LD_LIBRARY_PATH
25233 case $host_os in
25234 freebsd2*)
25235 shlibpath_overrides_runpath=yes
25236 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025237 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025238 shlibpath_overrides_runpath=yes
25239 hardcode_into_libs=yes
25240 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025241 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25242 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025243 shlibpath_overrides_runpath=no
25244 hardcode_into_libs=yes
25245 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025246 freebsd*) # from 4.6 on
25247 shlibpath_overrides_runpath=yes
25248 hardcode_into_libs=yes
25249 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025250 esac
25251 ;;
25252
25253gnu*)
25254 version_type=linux
25255 need_lib_prefix=no
25256 need_version=no
25257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25258 soname_spec='${libname}${release}${shared_ext}$major'
25259 shlibpath_var=LD_LIBRARY_PATH
25260 hardcode_into_libs=yes
25261 ;;
25262
25263hpux9* | hpux10* | hpux11*)
25264 # Give a soname corresponding to the major version so that dld.sl refuses to
25265 # link against other versions.
25266 version_type=sunos
25267 need_lib_prefix=no
25268 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025269 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025270 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025271 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025272 hardcode_into_libs=yes
25273 dynamic_linker="$host_os dld.so"
25274 shlibpath_var=LD_LIBRARY_PATH
25275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25277 soname_spec='${libname}${release}${shared_ext}$major'
25278 if test "X$HPUX_IA64_MODE" = X32; then
25279 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25280 else
25281 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25282 fi
25283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25284 ;;
25285 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025286 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025287 hardcode_into_libs=yes
25288 dynamic_linker="$host_os dld.sl"
25289 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25292 soname_spec='${libname}${release}${shared_ext}$major'
25293 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25295 ;;
25296 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025297 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025298 dynamic_linker="$host_os dld.sl"
25299 shlibpath_var=SHLIB_PATH
25300 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25302 soname_spec='${libname}${release}${shared_ext}$major'
25303 ;;
25304 esac
25305 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25306 postinstall_cmds='chmod 555 $lib'
25307 ;;
25308
Reid Spencera773bd52006-08-04 18:18:08 +000025309interix3*)
25310 version_type=linux
25311 need_lib_prefix=no
25312 need_version=no
25313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25314 soname_spec='${libname}${release}${shared_ext}$major'
25315 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25316 shlibpath_var=LD_LIBRARY_PATH
25317 shlibpath_overrides_runpath=no
25318 hardcode_into_libs=yes
25319 ;;
25320
John Criswell47fdd832003-07-14 16:52:07 +000025321irix5* | irix6* | nonstopux*)
25322 case $host_os in
25323 nonstopux*) version_type=nonstopux ;;
25324 *)
25325 if test "$lt_cv_prog_gnu_ld" = yes; then
25326 version_type=linux
25327 else
25328 version_type=irix
25329 fi ;;
25330 esac
25331 need_lib_prefix=no
25332 need_version=no
25333 soname_spec='${libname}${release}${shared_ext}$major'
25334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25335 case $host_os in
25336 irix5* | nonstopux*)
25337 libsuff= shlibsuff=
25338 ;;
25339 *)
25340 case $LD in # libtool.m4 will add one of these switches to LD
25341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25342 libsuff= shlibsuff= libmagic=32-bit;;
25343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25344 libsuff=32 shlibsuff=N32 libmagic=N32;;
25345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25347 *) libsuff= shlibsuff= libmagic=never-match;;
25348 esac
25349 ;;
25350 esac
25351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25352 shlibpath_overrides_runpath=no
25353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25355 hardcode_into_libs=yes
25356 ;;
25357
25358# No shared lib support for Linux oldld, aout, or coff.
25359linux*oldld* | linux*aout* | linux*coff*)
25360 dynamic_linker=no
25361 ;;
25362
25363# This must be Linux ELF.
25364linux*)
25365 version_type=linux
25366 need_lib_prefix=no
25367 need_version=no
25368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25369 soname_spec='${libname}${release}${shared_ext}$major'
25370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25371 shlibpath_var=LD_LIBRARY_PATH
25372 shlibpath_overrides_runpath=no
25373 # This implies no fast_install, which is unacceptable.
25374 # Some rework will be needed to allow for fast_install
25375 # before this can be enabled.
25376 hardcode_into_libs=yes
25377
Reid Spencer2706f8c2004-09-19 23:53:36 +000025378 # Append ld.so.conf contents to the search path
25379 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025380 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 +000025381 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25382 fi
25383
John Criswell47fdd832003-07-14 16:52:07 +000025384 # We used to test for /lib/ld.so.1 and disable shared libraries on
25385 # powerpc, because MkLinux only supported shared libraries with the
25386 # GNU dynamic linker. Since this was broken with cross compilers,
25387 # most powerpc-linux boxes support dynamic linking these days and
25388 # people can always --disable-shared, the test was removed, and we
25389 # assume the GNU/Linux dynamic linker is in use.
25390 dynamic_linker='GNU/Linux ld.so'
25391 ;;
25392
Reid Spencer2706f8c2004-09-19 23:53:36 +000025393knetbsd*-gnu)
25394 version_type=linux
25395 need_lib_prefix=no
25396 need_version=no
25397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25398 soname_spec='${libname}${release}${shared_ext}$major'
25399 shlibpath_var=LD_LIBRARY_PATH
25400 shlibpath_overrides_runpath=no
25401 hardcode_into_libs=yes
25402 dynamic_linker='GNU ld.so'
25403 ;;
25404
John Criswell47fdd832003-07-14 16:52:07 +000025405netbsd*)
25406 version_type=sunos
25407 need_lib_prefix=no
25408 need_version=no
25409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25412 dynamic_linker='NetBSD (a.out) ld.so'
25413 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025415 soname_spec='${libname}${release}${shared_ext}$major'
25416 dynamic_linker='NetBSD ld.elf_so'
25417 fi
25418 shlibpath_var=LD_LIBRARY_PATH
25419 shlibpath_overrides_runpath=yes
25420 hardcode_into_libs=yes
25421 ;;
25422
25423newsos6)
25424 version_type=linux
25425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25426 shlibpath_var=LD_LIBRARY_PATH
25427 shlibpath_overrides_runpath=yes
25428 ;;
25429
Reid Spencer2706f8c2004-09-19 23:53:36 +000025430nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025431 version_type=linux
25432 need_lib_prefix=no
25433 need_version=no
25434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25435 soname_spec='${libname}${release}${shared_ext}$major'
25436 shlibpath_var=LD_LIBRARY_PATH
25437 shlibpath_overrides_runpath=yes
25438 ;;
25439
25440openbsd*)
25441 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025442 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025443 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025444 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25445 case $host_os in
25446 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25447 *) need_version=no ;;
25448 esac
John Criswell47fdd832003-07-14 16:52:07 +000025449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25451 shlibpath_var=LD_LIBRARY_PATH
25452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25453 case $host_os in
25454 openbsd2.[89] | openbsd2.[89].*)
25455 shlibpath_overrides_runpath=no
25456 ;;
25457 *)
25458 shlibpath_overrides_runpath=yes
25459 ;;
25460 esac
25461 else
25462 shlibpath_overrides_runpath=yes
25463 fi
25464 ;;
25465
25466os2*)
25467 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025468 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025469 need_lib_prefix=no
25470 library_names_spec='$libname${shared_ext} $libname.a'
25471 dynamic_linker='OS/2 ld.exe'
25472 shlibpath_var=LIBPATH
25473 ;;
25474
25475osf3* | osf4* | osf5*)
25476 version_type=osf
25477 need_lib_prefix=no
25478 need_version=no
25479 soname_spec='${libname}${release}${shared_ext}$major'
25480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25481 shlibpath_var=LD_LIBRARY_PATH
25482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25483 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25484 ;;
25485
John Criswell47fdd832003-07-14 16:52:07 +000025486solaris*)
25487 version_type=linux
25488 need_lib_prefix=no
25489 need_version=no
25490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25491 soname_spec='${libname}${release}${shared_ext}$major'
25492 shlibpath_var=LD_LIBRARY_PATH
25493 shlibpath_overrides_runpath=yes
25494 hardcode_into_libs=yes
25495 # ldd complains unless libraries are executable
25496 postinstall_cmds='chmod +x $lib'
25497 ;;
25498
25499sunos4*)
25500 version_type=sunos
25501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25503 shlibpath_var=LD_LIBRARY_PATH
25504 shlibpath_overrides_runpath=yes
25505 if test "$with_gnu_ld" = yes; then
25506 need_lib_prefix=no
25507 fi
25508 need_version=yes
25509 ;;
25510
Reid Spencera773bd52006-08-04 18:18:08 +000025511sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025512 version_type=linux
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 case $host_vendor in
25517 sni)
25518 shlibpath_overrides_runpath=no
25519 need_lib_prefix=no
25520 export_dynamic_flag_spec='${wl}-Blargedynsym'
25521 runpath_var=LD_RUN_PATH
25522 ;;
25523 siemens)
25524 need_lib_prefix=no
25525 ;;
25526 motorola)
25527 need_lib_prefix=no
25528 need_version=no
25529 shlibpath_overrides_runpath=no
25530 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25531 ;;
25532 esac
25533 ;;
25534
25535sysv4*MP*)
25536 if test -d /usr/nec ;then
25537 version_type=linux
25538 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25539 soname_spec='$libname${shared_ext}.$major'
25540 shlibpath_var=LD_LIBRARY_PATH
25541 fi
25542 ;;
25543
Reid Spencera773bd52006-08-04 18:18:08 +000025544sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25545 version_type=freebsd-elf
25546 need_lib_prefix=no
25547 need_version=no
25548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25549 soname_spec='${libname}${release}${shared_ext}$major'
25550 shlibpath_var=LD_LIBRARY_PATH
25551 hardcode_into_libs=yes
25552 if test "$with_gnu_ld" = yes; then
25553 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25554 shlibpath_overrides_runpath=no
25555 else
25556 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25557 shlibpath_overrides_runpath=yes
25558 case $host_os in
25559 sco3.2v5*)
25560 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25561 ;;
25562 esac
25563 fi
25564 sys_lib_dlsearch_path_spec='/usr/lib'
25565 ;;
25566
John Criswell47fdd832003-07-14 16:52:07 +000025567uts4*)
25568 version_type=linux
25569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25570 soname_spec='${libname}${release}${shared_ext}$major'
25571 shlibpath_var=LD_LIBRARY_PATH
25572 ;;
25573
25574*)
25575 dynamic_linker=no
25576 ;;
25577esac
Reid Spencera773bd52006-08-04 18:18:08 +000025578{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25579echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025580test "$dynamic_linker" = no && can_build_shared=no
25581
Reid Spencera773bd52006-08-04 18:18:08 +000025582variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25583if test "$GCC" = yes; then
25584 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25585fi
25586
25587{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25588echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025589hardcode_action_GCJ=
25590if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25591 test -n "$runpath_var_GCJ" || \
25592 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25593
25594 # We can hardcode non-existant directories.
25595 if test "$hardcode_direct_GCJ" != no &&
25596 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25597 # have to relink, otherwise we might link with an installed library
25598 # when we should be linking with a yet-to-be-installed one
25599 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25600 test "$hardcode_minus_L_GCJ" != no; then
25601 # Linking always hardcodes the temporary library directory.
25602 hardcode_action_GCJ=relink
25603 else
25604 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25605 hardcode_action_GCJ=immediate
25606 fi
25607else
25608 # We cannot hardcode anything, or else we can only hardcode existing
25609 # directories.
25610 hardcode_action_GCJ=unsupported
25611fi
Reid Spencera773bd52006-08-04 18:18:08 +000025612{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25613echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025614
25615if test "$hardcode_action_GCJ" = relink; then
25616 # Fast installation is not supported
25617 enable_fast_install=no
25618elif test "$shlibpath_overrides_runpath" = yes ||
25619 test "$enable_shared" = no; then
25620 # Fast installation is not necessary
25621 enable_fast_install=needless
25622fi
25623
John Criswell47fdd832003-07-14 16:52:07 +000025624
25625# The else clause should only fire when bootstrapping the
25626# libtool distribution, otherwise you forgot to ship ltmain.sh
25627# with your package, and you will get complaints that there are
25628# no rules to generate ltmain.sh.
25629if test -f "$ltmain"; then
25630 # See if we are running on zsh, and set the options which allow our commands through
25631 # without removal of \ escapes.
25632 if test -n "${ZSH_VERSION+set}" ; then
25633 setopt NO_GLOB_SUBST
25634 fi
25635 # Now quote all the things that may contain metacharacters while being
25636 # careful not to overquote the AC_SUBSTed values. We take copies of the
25637 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025638 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 +000025639 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025640 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25641 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25642 deplibs_check_method reload_flag reload_cmds need_locks \
25643 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25644 lt_cv_sys_global_symbol_to_c_name_address \
25645 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25646 old_postinstall_cmds old_postuninstall_cmds \
25647 compiler_GCJ \
25648 CC_GCJ \
25649 LD_GCJ \
25650 lt_prog_compiler_wl_GCJ \
25651 lt_prog_compiler_pic_GCJ \
25652 lt_prog_compiler_static_GCJ \
25653 lt_prog_compiler_no_builtin_flag_GCJ \
25654 export_dynamic_flag_spec_GCJ \
25655 thread_safe_flag_spec_GCJ \
25656 whole_archive_flag_spec_GCJ \
25657 enable_shared_with_static_runtimes_GCJ \
25658 old_archive_cmds_GCJ \
25659 old_archive_from_new_cmds_GCJ \
25660 predep_objects_GCJ \
25661 postdep_objects_GCJ \
25662 predeps_GCJ \
25663 postdeps_GCJ \
25664 compiler_lib_search_path_GCJ \
25665 archive_cmds_GCJ \
25666 archive_expsym_cmds_GCJ \
25667 postinstall_cmds_GCJ \
25668 postuninstall_cmds_GCJ \
25669 old_archive_from_expsyms_cmds_GCJ \
25670 allow_undefined_flag_GCJ \
25671 no_undefined_flag_GCJ \
25672 export_symbols_cmds_GCJ \
25673 hardcode_libdir_flag_spec_GCJ \
25674 hardcode_libdir_flag_spec_ld_GCJ \
25675 hardcode_libdir_separator_GCJ \
25676 hardcode_automatic_GCJ \
25677 module_cmds_GCJ \
25678 module_expsym_cmds_GCJ \
25679 lt_cv_prog_compiler_c_o_GCJ \
25680 exclude_expsyms_GCJ \
25681 include_expsyms_GCJ; do
25682
25683 case $var in
25684 old_archive_cmds_GCJ | \
25685 old_archive_from_new_cmds_GCJ | \
25686 archive_cmds_GCJ | \
25687 archive_expsym_cmds_GCJ | \
25688 module_cmds_GCJ | \
25689 module_expsym_cmds_GCJ | \
25690 old_archive_from_expsyms_cmds_GCJ | \
25691 export_symbols_cmds_GCJ | \
25692 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25693 postinstall_cmds | postuninstall_cmds | \
25694 old_postinstall_cmds | old_postuninstall_cmds | \
25695 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25696 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025697 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 +000025698 ;;
25699 *)
25700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25701 ;;
25702 esac
25703 done
25704
25705 case $lt_echo in
25706 *'\$0 --fallback-echo"')
25707 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25708 ;;
25709 esac
25710
25711cfgfile="$ofile"
25712
25713 cat <<__EOF__ >> "$cfgfile"
25714# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25715
25716# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25717
25718# Shell to use when invoking shell scripts.
25719SHELL=$lt_SHELL
25720
25721# Whether or not to build shared libraries.
25722build_libtool_libs=$enable_shared
25723
25724# Whether or not to build static libraries.
25725build_old_libs=$enable_static
25726
25727# Whether or not to add -lc for building shared libraries.
25728build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25729
25730# Whether or not to disallow shared libs when runtime libs are static
25731allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25732
25733# Whether or not to optimize for fast installation.
25734fast_install=$enable_fast_install
25735
25736# The host system.
25737host_alias=$host_alias
25738host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025739host_os=$host_os
25740
25741# The build system.
25742build_alias=$build_alias
25743build=$build
25744build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025745
25746# An echo program that does not interpret backslashes.
25747echo=$lt_echo
25748
25749# The archiver.
25750AR=$lt_AR
25751AR_FLAGS=$lt_AR_FLAGS
25752
25753# A C compiler.
25754LTCC=$lt_LTCC
25755
Reid Spencera773bd52006-08-04 18:18:08 +000025756# LTCC compiler flags.
25757LTCFLAGS=$lt_LTCFLAGS
25758
John Criswell47fdd832003-07-14 16:52:07 +000025759# A language-specific compiler.
25760CC=$lt_compiler_GCJ
25761
25762# Is the compiler the GNU C compiler?
25763with_gcc=$GCC_GCJ
25764
25765# An ERE matcher.
25766EGREP=$lt_EGREP
25767
25768# The linker used to build libraries.
25769LD=$lt_LD_GCJ
25770
25771# Whether we need hard or soft links.
25772LN_S=$lt_LN_S
25773
25774# A BSD-compatible nm program.
25775NM=$lt_NM
25776
25777# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025778STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025779
25780# Used to examine libraries when file_magic_cmd begins "file"
25781MAGIC_CMD=$MAGIC_CMD
25782
25783# Used on cygwin: DLL creation program.
25784DLLTOOL="$DLLTOOL"
25785
25786# Used on cygwin: object dumper.
25787OBJDUMP="$OBJDUMP"
25788
25789# Used on cygwin: assembler.
25790AS="$AS"
25791
25792# The name of the directory that contains temporary libtool files.
25793objdir=$objdir
25794
25795# How to create reloadable object files.
25796reload_flag=$lt_reload_flag
25797reload_cmds=$lt_reload_cmds
25798
25799# How to pass a linker flag through the compiler.
25800wl=$lt_lt_prog_compiler_wl_GCJ
25801
25802# Object file suffix (normally "o").
25803objext="$ac_objext"
25804
25805# Old archive suffix (normally "a").
25806libext="$libext"
25807
25808# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025809shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025810
25811# Executable file suffix (normally "").
25812exeext="$exeext"
25813
25814# Additional compiler flags for building library objects.
25815pic_flag=$lt_lt_prog_compiler_pic_GCJ
25816pic_mode=$pic_mode
25817
25818# What is the maximum length of a command?
25819max_cmd_len=$lt_cv_sys_max_cmd_len
25820
25821# Does compiler simultaneously support -c and -o options?
25822compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25823
Reid Spencera773bd52006-08-04 18:18:08 +000025824# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025825need_locks=$lt_need_locks
25826
25827# Do we need the lib prefix for modules?
25828need_lib_prefix=$need_lib_prefix
25829
25830# Do we need a version for libraries?
25831need_version=$need_version
25832
25833# Whether dlopen is supported.
25834dlopen_support=$enable_dlopen
25835
25836# Whether dlopen of programs is supported.
25837dlopen_self=$enable_dlopen_self
25838
25839# Whether dlopen of statically linked programs is supported.
25840dlopen_self_static=$enable_dlopen_self_static
25841
25842# Compiler flag to prevent dynamic linking.
25843link_static_flag=$lt_lt_prog_compiler_static_GCJ
25844
25845# Compiler flag to turn off builtin functions.
25846no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25847
25848# Compiler flag to allow reflexive dlopens.
25849export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25850
25851# Compiler flag to generate shared objects directly from archives.
25852whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25853
25854# Compiler flag to generate thread-safe objects.
25855thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25856
25857# Library versioning type.
25858version_type=$version_type
25859
25860# Format of library name prefix.
25861libname_spec=$lt_libname_spec
25862
25863# List of archive names. First name is the real one, the rest are links.
25864# The last name is the one that the linker finds with -lNAME.
25865library_names_spec=$lt_library_names_spec
25866
25867# The coded name of the library, if different from the real name.
25868soname_spec=$lt_soname_spec
25869
25870# Commands used to build and install an old-style archive.
25871RANLIB=$lt_RANLIB
25872old_archive_cmds=$lt_old_archive_cmds_GCJ
25873old_postinstall_cmds=$lt_old_postinstall_cmds
25874old_postuninstall_cmds=$lt_old_postuninstall_cmds
25875
25876# Create an old-style archive from a shared archive.
25877old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25878
25879# Create a temporary old-style archive to link instead of a shared archive.
25880old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25881
25882# Commands used to build and install a shared archive.
25883archive_cmds=$lt_archive_cmds_GCJ
25884archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25885postinstall_cmds=$lt_postinstall_cmds
25886postuninstall_cmds=$lt_postuninstall_cmds
25887
25888# Commands used to build a loadable module (assumed same as above if empty)
25889module_cmds=$lt_module_cmds_GCJ
25890module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25891
25892# Commands to strip libraries.
25893old_striplib=$lt_old_striplib
25894striplib=$lt_striplib
25895
25896# Dependencies to place before the objects being linked to create a
25897# shared library.
25898predep_objects=$lt_predep_objects_GCJ
25899
25900# Dependencies to place after the objects being linked to create a
25901# shared library.
25902postdep_objects=$lt_postdep_objects_GCJ
25903
25904# Dependencies to place before the objects being linked to create a
25905# shared library.
25906predeps=$lt_predeps_GCJ
25907
25908# Dependencies to place after the objects being linked to create a
25909# shared library.
25910postdeps=$lt_postdeps_GCJ
25911
25912# The library search path used internally by the compiler when linking
25913# a shared library.
25914compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25915
25916# Method to check whether dependent libraries are shared objects.
25917deplibs_check_method=$lt_deplibs_check_method
25918
25919# Command to use when deplibs_check_method == file_magic.
25920file_magic_cmd=$lt_file_magic_cmd
25921
25922# Flag that allows shared libraries with undefined symbols to be built.
25923allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25924
25925# Flag that forces no undefined symbols.
25926no_undefined_flag=$lt_no_undefined_flag_GCJ
25927
25928# Commands used to finish a libtool library installation in a directory.
25929finish_cmds=$lt_finish_cmds
25930
25931# Same as above, but a single script fragment to be evaled but not shown.
25932finish_eval=$lt_finish_eval
25933
25934# Take the output of nm and produce a listing of raw symbols and C names.
25935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25936
25937# Transform the output of nm in a proper C declaration
25938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25939
25940# Transform the output of nm in a C name address pair
25941global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25942
25943# This is the shared library runtime path variable.
25944runpath_var=$runpath_var
25945
25946# This is the shared library path variable.
25947shlibpath_var=$shlibpath_var
25948
25949# Is shlibpath searched before the hard-coded library search path?
25950shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25951
25952# How to hardcode a shared library path into an executable.
25953hardcode_action=$hardcode_action_GCJ
25954
25955# Whether we should hardcode library paths into libraries.
25956hardcode_into_libs=$hardcode_into_libs
25957
25958# Flag to hardcode \$libdir into a binary during linking.
25959# This must work even if \$libdir does not exist.
25960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25961
25962# If ld is used when linking, flag to hardcode \$libdir into
25963# a binary during linking. This must work even if \$libdir does
25964# not exist.
25965hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25966
25967# Whether we need a single -rpath flag with a separated argument.
25968hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25969
25970# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25971# resulting binary.
25972hardcode_direct=$hardcode_direct_GCJ
25973
25974# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25975# resulting binary.
25976hardcode_minus_L=$hardcode_minus_L_GCJ
25977
25978# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25979# the resulting binary.
25980hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25981
25982# Set to yes if building a shared library automatically hardcodes DIR into the library
25983# and all subsequent libraries and executables linked against it.
25984hardcode_automatic=$hardcode_automatic_GCJ
25985
25986# Variables whose values should be saved in libtool wrapper scripts and
25987# restored at relink time.
25988variables_saved_for_relink="$variables_saved_for_relink"
25989
25990# Whether libtool must link a program against all its dependency libraries.
25991link_all_deplibs=$link_all_deplibs_GCJ
25992
25993# Compile-time system search path for libraries
25994sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25995
25996# Run-time system search path for libraries
25997sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25998
25999# Fix the shell variable \$srcfile for the compiler.
26000fix_srcfile_path="$fix_srcfile_path_GCJ"
26001
26002# Set to yes if exported symbols are required.
26003always_export_symbols=$always_export_symbols_GCJ
26004
26005# The commands to list exported symbols.
26006export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26007
26008# The commands to extract the exported symbol list from a shared archive.
26009extract_expsyms_cmds=$lt_extract_expsyms_cmds
26010
26011# Symbols that should not be listed in the preloaded symbols.
26012exclude_expsyms=$lt_exclude_expsyms_GCJ
26013
26014# Symbols that must always be exported.
26015include_expsyms=$lt_include_expsyms_GCJ
26016
26017# ### END LIBTOOL TAG CONFIG: $tagname
26018
26019__EOF__
26020
26021
26022else
26023 # If there is no Makefile yet, we rely on a make rule to execute
26024 # `config.status --recheck' to rerun these tests and create the
26025 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026026 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26027 if test -f "$ltmain_in"; then
26028 test -f Makefile && make "$ltmain"
26029 fi
John Criswell47fdd832003-07-14 16:52:07 +000026030fi
26031
26032
26033ac_ext=c
26034ac_cpp='$CPP $CPPFLAGS'
26035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26037ac_compiler_gnu=$ac_cv_c_compiler_gnu
26038
26039CC="$lt_save_CC"
26040
26041 else
26042 tagname=""
26043 fi
26044 ;;
26045
26046 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026047 ac_ext=c
26048ac_cpp='$CPP $CPPFLAGS'
26049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26051ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026052
26053
26054# Source file extension for RC test sources.
26055ac_ext=rc
26056
26057# Object file extension for compiled RC test sources.
26058objext=o
26059objext_RC=$objext
26060
26061# Code to be used in simple compile tests
26062lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26063
26064# Code to be used in simple link tests
26065lt_simple_link_test_code="$lt_simple_compile_test_code"
26066
26067# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26068
26069# If no C compiler was specified, use CC.
26070LTCC=${LTCC-"$CC"}
26071
Reid Spencera773bd52006-08-04 18:18:08 +000026072# If no C compiler flags were specified, use CFLAGS.
26073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26074
John Criswell47fdd832003-07-14 16:52:07 +000026075# Allow CC to be a program name with arguments.
26076compiler=$CC
26077
26078
Reid Spencera773bd52006-08-04 18:18:08 +000026079# save warnings/boilerplate of simple test code
26080ac_outfile=conftest.$ac_objext
26081printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26082eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26083_lt_compiler_boilerplate=`cat conftest.err`
26084$rm conftest*
26085
26086ac_outfile=conftest.$ac_objext
26087printf "$lt_simple_link_test_code" >conftest.$ac_ext
26088eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26089_lt_linker_boilerplate=`cat conftest.err`
26090$rm conftest*
26091
26092
John Criswell47fdd832003-07-14 16:52:07 +000026093# Allow CC to be a program name with arguments.
26094lt_save_CC="$CC"
26095CC=${RC-"windres"}
26096compiler=$CC
26097compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026098for cc_temp in $compiler""; do
26099 case $cc_temp in
26100 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26101 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26102 \-*) ;;
26103 *) break;;
26104 esac
26105done
26106cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26107
John Criswell47fdd832003-07-14 16:52:07 +000026108lt_cv_prog_compiler_c_o_RC=yes
26109
26110# The else clause should only fire when bootstrapping the
26111# libtool distribution, otherwise you forgot to ship ltmain.sh
26112# with your package, and you will get complaints that there are
26113# no rules to generate ltmain.sh.
26114if test -f "$ltmain"; then
26115 # See if we are running on zsh, and set the options which allow our commands through
26116 # without removal of \ escapes.
26117 if test -n "${ZSH_VERSION+set}" ; then
26118 setopt NO_GLOB_SUBST
26119 fi
26120 # Now quote all the things that may contain metacharacters while being
26121 # careful not to overquote the AC_SUBSTed values. We take copies of the
26122 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026123 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 +000026124 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026125 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26126 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26127 deplibs_check_method reload_flag reload_cmds need_locks \
26128 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26129 lt_cv_sys_global_symbol_to_c_name_address \
26130 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26131 old_postinstall_cmds old_postuninstall_cmds \
26132 compiler_RC \
26133 CC_RC \
26134 LD_RC \
26135 lt_prog_compiler_wl_RC \
26136 lt_prog_compiler_pic_RC \
26137 lt_prog_compiler_static_RC \
26138 lt_prog_compiler_no_builtin_flag_RC \
26139 export_dynamic_flag_spec_RC \
26140 thread_safe_flag_spec_RC \
26141 whole_archive_flag_spec_RC \
26142 enable_shared_with_static_runtimes_RC \
26143 old_archive_cmds_RC \
26144 old_archive_from_new_cmds_RC \
26145 predep_objects_RC \
26146 postdep_objects_RC \
26147 predeps_RC \
26148 postdeps_RC \
26149 compiler_lib_search_path_RC \
26150 archive_cmds_RC \
26151 archive_expsym_cmds_RC \
26152 postinstall_cmds_RC \
26153 postuninstall_cmds_RC \
26154 old_archive_from_expsyms_cmds_RC \
26155 allow_undefined_flag_RC \
26156 no_undefined_flag_RC \
26157 export_symbols_cmds_RC \
26158 hardcode_libdir_flag_spec_RC \
26159 hardcode_libdir_flag_spec_ld_RC \
26160 hardcode_libdir_separator_RC \
26161 hardcode_automatic_RC \
26162 module_cmds_RC \
26163 module_expsym_cmds_RC \
26164 lt_cv_prog_compiler_c_o_RC \
26165 exclude_expsyms_RC \
26166 include_expsyms_RC; do
26167
26168 case $var in
26169 old_archive_cmds_RC | \
26170 old_archive_from_new_cmds_RC | \
26171 archive_cmds_RC | \
26172 archive_expsym_cmds_RC | \
26173 module_cmds_RC | \
26174 module_expsym_cmds_RC | \
26175 old_archive_from_expsyms_cmds_RC | \
26176 export_symbols_cmds_RC | \
26177 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26178 postinstall_cmds | postuninstall_cmds | \
26179 old_postinstall_cmds | old_postuninstall_cmds | \
26180 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26181 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026182 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 +000026183 ;;
26184 *)
26185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26186 ;;
26187 esac
26188 done
26189
26190 case $lt_echo in
26191 *'\$0 --fallback-echo"')
26192 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26193 ;;
26194 esac
26195
26196cfgfile="$ofile"
26197
26198 cat <<__EOF__ >> "$cfgfile"
26199# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26200
26201# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26202
26203# Shell to use when invoking shell scripts.
26204SHELL=$lt_SHELL
26205
26206# Whether or not to build shared libraries.
26207build_libtool_libs=$enable_shared
26208
26209# Whether or not to build static libraries.
26210build_old_libs=$enable_static
26211
26212# Whether or not to add -lc for building shared libraries.
26213build_libtool_need_lc=$archive_cmds_need_lc_RC
26214
26215# Whether or not to disallow shared libs when runtime libs are static
26216allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26217
26218# Whether or not to optimize for fast installation.
26219fast_install=$enable_fast_install
26220
26221# The host system.
26222host_alias=$host_alias
26223host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026224host_os=$host_os
26225
26226# The build system.
26227build_alias=$build_alias
26228build=$build
26229build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026230
26231# An echo program that does not interpret backslashes.
26232echo=$lt_echo
26233
26234# The archiver.
26235AR=$lt_AR
26236AR_FLAGS=$lt_AR_FLAGS
26237
26238# A C compiler.
26239LTCC=$lt_LTCC
26240
Reid Spencera773bd52006-08-04 18:18:08 +000026241# LTCC compiler flags.
26242LTCFLAGS=$lt_LTCFLAGS
26243
John Criswell47fdd832003-07-14 16:52:07 +000026244# A language-specific compiler.
26245CC=$lt_compiler_RC
26246
26247# Is the compiler the GNU C compiler?
26248with_gcc=$GCC_RC
26249
26250# An ERE matcher.
26251EGREP=$lt_EGREP
26252
26253# The linker used to build libraries.
26254LD=$lt_LD_RC
26255
26256# Whether we need hard or soft links.
26257LN_S=$lt_LN_S
26258
26259# A BSD-compatible nm program.
26260NM=$lt_NM
26261
26262# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026263STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026264
26265# Used to examine libraries when file_magic_cmd begins "file"
26266MAGIC_CMD=$MAGIC_CMD
26267
26268# Used on cygwin: DLL creation program.
26269DLLTOOL="$DLLTOOL"
26270
26271# Used on cygwin: object dumper.
26272OBJDUMP="$OBJDUMP"
26273
26274# Used on cygwin: assembler.
26275AS="$AS"
26276
26277# The name of the directory that contains temporary libtool files.
26278objdir=$objdir
26279
26280# How to create reloadable object files.
26281reload_flag=$lt_reload_flag
26282reload_cmds=$lt_reload_cmds
26283
26284# How to pass a linker flag through the compiler.
26285wl=$lt_lt_prog_compiler_wl_RC
26286
26287# Object file suffix (normally "o").
26288objext="$ac_objext"
26289
26290# Old archive suffix (normally "a").
26291libext="$libext"
26292
26293# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026294shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026295
26296# Executable file suffix (normally "").
26297exeext="$exeext"
26298
26299# Additional compiler flags for building library objects.
26300pic_flag=$lt_lt_prog_compiler_pic_RC
26301pic_mode=$pic_mode
26302
26303# What is the maximum length of a command?
26304max_cmd_len=$lt_cv_sys_max_cmd_len
26305
26306# Does compiler simultaneously support -c and -o options?
26307compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26308
Reid Spencera773bd52006-08-04 18:18:08 +000026309# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026310need_locks=$lt_need_locks
26311
26312# Do we need the lib prefix for modules?
26313need_lib_prefix=$need_lib_prefix
26314
26315# Do we need a version for libraries?
26316need_version=$need_version
26317
26318# Whether dlopen is supported.
26319dlopen_support=$enable_dlopen
26320
26321# Whether dlopen of programs is supported.
26322dlopen_self=$enable_dlopen_self
26323
26324# Whether dlopen of statically linked programs is supported.
26325dlopen_self_static=$enable_dlopen_self_static
26326
26327# Compiler flag to prevent dynamic linking.
26328link_static_flag=$lt_lt_prog_compiler_static_RC
26329
26330# Compiler flag to turn off builtin functions.
26331no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26332
26333# Compiler flag to allow reflexive dlopens.
26334export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26335
26336# Compiler flag to generate shared objects directly from archives.
26337whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26338
26339# Compiler flag to generate thread-safe objects.
26340thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26341
26342# Library versioning type.
26343version_type=$version_type
26344
26345# Format of library name prefix.
26346libname_spec=$lt_libname_spec
26347
26348# List of archive names. First name is the real one, the rest are links.
26349# The last name is the one that the linker finds with -lNAME.
26350library_names_spec=$lt_library_names_spec
26351
26352# The coded name of the library, if different from the real name.
26353soname_spec=$lt_soname_spec
26354
26355# Commands used to build and install an old-style archive.
26356RANLIB=$lt_RANLIB
26357old_archive_cmds=$lt_old_archive_cmds_RC
26358old_postinstall_cmds=$lt_old_postinstall_cmds
26359old_postuninstall_cmds=$lt_old_postuninstall_cmds
26360
26361# Create an old-style archive from a shared archive.
26362old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26363
26364# Create a temporary old-style archive to link instead of a shared archive.
26365old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26366
26367# Commands used to build and install a shared archive.
26368archive_cmds=$lt_archive_cmds_RC
26369archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26370postinstall_cmds=$lt_postinstall_cmds
26371postuninstall_cmds=$lt_postuninstall_cmds
26372
26373# Commands used to build a loadable module (assumed same as above if empty)
26374module_cmds=$lt_module_cmds_RC
26375module_expsym_cmds=$lt_module_expsym_cmds_RC
26376
26377# Commands to strip libraries.
26378old_striplib=$lt_old_striplib
26379striplib=$lt_striplib
26380
26381# Dependencies to place before the objects being linked to create a
26382# shared library.
26383predep_objects=$lt_predep_objects_RC
26384
26385# Dependencies to place after the objects being linked to create a
26386# shared library.
26387postdep_objects=$lt_postdep_objects_RC
26388
26389# Dependencies to place before the objects being linked to create a
26390# shared library.
26391predeps=$lt_predeps_RC
26392
26393# Dependencies to place after the objects being linked to create a
26394# shared library.
26395postdeps=$lt_postdeps_RC
26396
26397# The library search path used internally by the compiler when linking
26398# a shared library.
26399compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26400
26401# Method to check whether dependent libraries are shared objects.
26402deplibs_check_method=$lt_deplibs_check_method
26403
26404# Command to use when deplibs_check_method == file_magic.
26405file_magic_cmd=$lt_file_magic_cmd
26406
26407# Flag that allows shared libraries with undefined symbols to be built.
26408allow_undefined_flag=$lt_allow_undefined_flag_RC
26409
26410# Flag that forces no undefined symbols.
26411no_undefined_flag=$lt_no_undefined_flag_RC
26412
26413# Commands used to finish a libtool library installation in a directory.
26414finish_cmds=$lt_finish_cmds
26415
26416# Same as above, but a single script fragment to be evaled but not shown.
26417finish_eval=$lt_finish_eval
26418
26419# Take the output of nm and produce a listing of raw symbols and C names.
26420global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26421
26422# Transform the output of nm in a proper C declaration
26423global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26424
26425# Transform the output of nm in a C name address pair
26426global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26427
26428# This is the shared library runtime path variable.
26429runpath_var=$runpath_var
26430
26431# This is the shared library path variable.
26432shlibpath_var=$shlibpath_var
26433
26434# Is shlibpath searched before the hard-coded library search path?
26435shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26436
26437# How to hardcode a shared library path into an executable.
26438hardcode_action=$hardcode_action_RC
26439
26440# Whether we should hardcode library paths into libraries.
26441hardcode_into_libs=$hardcode_into_libs
26442
26443# Flag to hardcode \$libdir into a binary during linking.
26444# This must work even if \$libdir does not exist.
26445hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26446
26447# If ld is used when linking, flag to hardcode \$libdir into
26448# a binary during linking. This must work even if \$libdir does
26449# not exist.
26450hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26451
26452# Whether we need a single -rpath flag with a separated argument.
26453hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26454
26455# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26456# resulting binary.
26457hardcode_direct=$hardcode_direct_RC
26458
26459# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26460# resulting binary.
26461hardcode_minus_L=$hardcode_minus_L_RC
26462
26463# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26464# the resulting binary.
26465hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26466
26467# Set to yes if building a shared library automatically hardcodes DIR into the library
26468# and all subsequent libraries and executables linked against it.
26469hardcode_automatic=$hardcode_automatic_RC
26470
26471# Variables whose values should be saved in libtool wrapper scripts and
26472# restored at relink time.
26473variables_saved_for_relink="$variables_saved_for_relink"
26474
26475# Whether libtool must link a program against all its dependency libraries.
26476link_all_deplibs=$link_all_deplibs_RC
26477
26478# Compile-time system search path for libraries
26479sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26480
26481# Run-time system search path for libraries
26482sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26483
26484# Fix the shell variable \$srcfile for the compiler.
26485fix_srcfile_path="$fix_srcfile_path_RC"
26486
26487# Set to yes if exported symbols are required.
26488always_export_symbols=$always_export_symbols_RC
26489
26490# The commands to list exported symbols.
26491export_symbols_cmds=$lt_export_symbols_cmds_RC
26492
26493# The commands to extract the exported symbol list from a shared archive.
26494extract_expsyms_cmds=$lt_extract_expsyms_cmds
26495
26496# Symbols that should not be listed in the preloaded symbols.
26497exclude_expsyms=$lt_exclude_expsyms_RC
26498
26499# Symbols that must always be exported.
26500include_expsyms=$lt_include_expsyms_RC
26501
26502# ### END LIBTOOL TAG CONFIG: $tagname
26503
26504__EOF__
26505
26506
26507else
26508 # If there is no Makefile yet, we rely on a make rule to execute
26509 # `config.status --recheck' to rerun these tests and create the
26510 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026511 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26512 if test -f "$ltmain_in"; then
26513 test -f Makefile && make "$ltmain"
26514 fi
John Criswell47fdd832003-07-14 16:52:07 +000026515fi
26516
26517
26518ac_ext=c
26519ac_cpp='$CPP $CPPFLAGS'
26520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26522ac_compiler_gnu=$ac_cv_c_compiler_gnu
26523
26524CC="$lt_save_CC"
26525
26526 ;;
26527
26528 *)
26529 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26530echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26531 { (exit 1); exit 1; }; }
26532 ;;
26533 esac
26534
26535 # Append the new tag name to the list of available tags.
26536 if test -n "$tagname" ; then
26537 available_tags="$available_tags $tagname"
26538 fi
26539 fi
26540 done
26541 IFS="$lt_save_ifs"
26542
26543 # Now substitute the updated list of available tags.
26544 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26545 mv "${ofile}T" "$ofile"
26546 chmod +x "$ofile"
26547 else
26548 rm -f "${ofile}T"
26549 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26550echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26551 { (exit 1); exit 1; }; }
26552 fi
26553fi
John Criswell7a73b802003-06-30 21:59:07 +000026554
26555
26556
26557# This can be used to rebuild libtool when needed
26558LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26559
26560# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026561LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026562
26563# Prevent multiple expansion
26564
26565
26566
John Criswell47fdd832003-07-14 16:52:07 +000026567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026584
Reid Spencer582a23c2004-12-29 07:07:57 +000026585if test "$lt_cv_dlopen_self" = "yes" ; then
26586
26587cat >>confdefs.h <<\_ACEOF
26588#define CAN_DLOPEN_SELF 1
26589_ACEOF
26590
26591fi
26592
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026593etags_version=`$ETAGS --version 2>&1`
26594case "$etags_version" in
26595 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26596 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26597 *) ETAGSFLAGS="" ;;
26598esac
26599ETAGSFLAGS=$ETAGSFLAGS
26600
26601
Reid Spencer7931a782004-12-27 06:15:02 +000026602if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026603 LLVMGCC="llvm-gcc${EXEEXT}"
26604 LLVMGXX="llvm-g++${EXEEXT}"
26605 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26606set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026609if test "${ac_cv_path_LLVMGCC+set}" = set; then
26610 echo $ECHO_N "(cached) $ECHO_C" >&6
26611else
26612 case $LLVMGCC in
26613 [\\/]* | ?:[\\/]*)
26614 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26615 ;;
26616 *)
26617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26618for as_dir in $PATH
26619do
26620 IFS=$as_save_IFS
26621 test -z "$as_dir" && as_dir=.
26622 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026623 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 +000026624 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26626 break 2
26627 fi
26628done
26629done
Reid Spencera773bd52006-08-04 18:18:08 +000026630IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026631
Reid Spencer59473af2004-12-25 07:31:29 +000026632 ;;
26633esac
26634fi
26635LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026636if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026637 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26638echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026639else
Reid Spencera773bd52006-08-04 18:18:08 +000026640 { echo "$as_me:$LINENO: result: no" >&5
26641echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026642fi
26643
Reid Spencera773bd52006-08-04 18:18:08 +000026644
Reid Spencerc84492c2005-06-02 22:34:49 +000026645 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26646set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026649if test "${ac_cv_path_LLVMGXX+set}" = set; then
26650 echo $ECHO_N "(cached) $ECHO_C" >&6
26651else
26652 case $LLVMGXX in
26653 [\\/]* | ?:[\\/]*)
26654 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26655 ;;
26656 *)
26657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26658for as_dir in $PATH
26659do
26660 IFS=$as_save_IFS
26661 test -z "$as_dir" && as_dir=.
26662 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026663 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 +000026664 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26666 break 2
26667 fi
26668done
26669done
Reid Spencera773bd52006-08-04 18:18:08 +000026670IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026671
Reid Spencer59473af2004-12-25 07:31:29 +000026672 ;;
26673esac
26674fi
26675LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026676if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026677 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26678echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026679else
Reid Spencera773bd52006-08-04 18:18:08 +000026680 { echo "$as_me:$LINENO: result: no" >&5
26681echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026682fi
26683
Reid Spencera773bd52006-08-04 18:18:08 +000026684
Reid Spencer59473af2004-12-25 07:31:29 +000026685else
Reid Spencerc84492c2005-06-02 22:34:49 +000026686 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26687 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026688 LLVMGCC=$LLVMGCC
26689
26690 LLVMGXX=$LLVMGXX
26691
26692fi
26693
Reid Spencera773bd52006-08-04 18:18:08 +000026694{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26695echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026696
Reid Spencer86901802004-12-08 23:07:27 +000026697ICC=no
26698IXX=no
26699case $CC in
26700 icc*|icpc*)
26701 ICC=yes
26702 IXX=yes
26703 ;;
26704 *)
26705 ;;
26706esac
26707
Duraid Madina937c60a2006-02-15 07:57:42 +000026708if test "$GCC" != "yes" && test "$ICC" != "yes"
26709then
26710 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26711echo "$as_me: error: gcc|icc required but not found" >&2;}
26712 { (exit 1); exit 1; }; }
26713fi
26714
26715if test "$GXX" != "yes" && test "$IXX" != "yes"
26716then
26717 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26718echo "$as_me: error: g++|icc required but not found" >&2;}
26719 { (exit 1); exit 1; }; }
26720fi
26721
Reid Spencer86901802004-12-08 23:07:27 +000026722if test "$GCC" = "yes"
26723then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026724 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026725 if test "$gccmajor" -lt "3"
26726 then
26727 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026728echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26729 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026730 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026731fi
26732
26733if test -z "$llvm_cv_gnu_make_command"
26734then
26735 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26736echo "$as_me: error: GNU Make required but not found" >&2;}
26737 { (exit 1); exit 1; }; }
26738fi
26739
Reid Spencera773bd52006-08-04 18:18:08 +000026740{ echo "$as_me:$LINENO: result: ok" >&5
26741echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026742
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026743
John Criswell7a73b802003-06-30 21:59:07 +000026744
Reid Spencera773bd52006-08-04 18:18:08 +000026745{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26746echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026747if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26749else
26750 ac_check_lib_save_LIBS=$LIBS
26751LIBS="-lelf $LIBS"
26752cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026753/* confdefs.h. */
26754_ACEOF
26755cat confdefs.h >>conftest.$ac_ext
26756cat >>conftest.$ac_ext <<_ACEOF
26757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026758
Reid Spencera773bd52006-08-04 18:18:08 +000026759/* Override any GCC internal prototype to avoid an error.
26760 Use char because int might match the return type of a GCC
26761 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026762#ifdef __cplusplus
26763extern "C"
26764#endif
John Criswell7a73b802003-06-30 21:59:07 +000026765char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026766int
26767main ()
26768{
Reid Spencera773bd52006-08-04 18:18:08 +000026769return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026770 ;
26771 return 0;
26772}
26773_ACEOF
26774rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026775if { (ac_try="$ac_link"
26776case "(($ac_try" in
26777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26778 *) ac_try_echo=$ac_try;;
26779esac
26780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26781 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026782 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026783 grep -v '^ *+' conftest.er1 >conftest.err
26784 rm -f conftest.er1
26785 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26789 { (case "(($ac_try" in
26790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26791 *) ac_try_echo=$ac_try;;
26792esac
26793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26794 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026795 ac_status=$?
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; } &&
26798 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026799 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026805 ac_status=$?
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; }; then
26808 ac_cv_lib_elf_elf_begin=yes
26809else
26810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026811sed 's/^/| /' conftest.$ac_ext >&5
26812
Reid Spencera773bd52006-08-04 18:18:08 +000026813 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026814fi
Reid Spencera773bd52006-08-04 18:18:08 +000026815
26816rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026817 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026818LIBS=$ac_check_lib_save_LIBS
26819fi
Reid Spencera773bd52006-08-04 18:18:08 +000026820{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26821echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026822if test $ac_cv_lib_elf_elf_begin = yes; then
26823 cat >>confdefs.h <<_ACEOF
26824#define HAVE_LIBELF 1
26825_ACEOF
26826
26827 LIBS="-lelf $LIBS"
26828
26829fi
26830
26831
Reid Spencera773bd52006-08-04 18:18:08 +000026832{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26833echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026834if test "${ac_cv_lib_m_sin+set}" = set; then
26835 echo $ECHO_N "(cached) $ECHO_C" >&6
26836else
26837 ac_check_lib_save_LIBS=$LIBS
26838LIBS="-lm $LIBS"
26839cat >conftest.$ac_ext <<_ACEOF
26840/* confdefs.h. */
26841_ACEOF
26842cat confdefs.h >>conftest.$ac_ext
26843cat >>conftest.$ac_ext <<_ACEOF
26844/* end confdefs.h. */
26845
Reid Spencera773bd52006-08-04 18:18:08 +000026846/* Override any GCC internal prototype to avoid an error.
26847 Use char because int might match the return type of a GCC
26848 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026849#ifdef __cplusplus
26850extern "C"
26851#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026852char sin ();
26853int
26854main ()
26855{
Reid Spencera773bd52006-08-04 18:18:08 +000026856return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026857 ;
26858 return 0;
26859}
26860_ACEOF
26861rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026862if { (ac_try="$ac_link"
26863case "(($ac_try" in
26864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26865 *) ac_try_echo=$ac_try;;
26866esac
26867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26868 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026869 ac_status=$?
26870 grep -v '^ *+' conftest.er1 >conftest.err
26871 rm -f conftest.er1
26872 cat conftest.err >&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26876 { (case "(($ac_try" in
26877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878 *) ac_try_echo=$ac_try;;
26879esac
26880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026882 ac_status=$?
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; } &&
26885 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026886 { (case "(($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_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; }; then
26895 ac_cv_lib_m_sin=yes
26896else
26897 echo "$as_me: failed program was:" >&5
26898sed 's/^/| /' conftest.$ac_ext >&5
26899
Reid Spencera773bd52006-08-04 18:18:08 +000026900 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026901fi
Reid Spencera773bd52006-08-04 18:18:08 +000026902
26903rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026904 conftest$ac_exeext conftest.$ac_ext
26905LIBS=$ac_check_lib_save_LIBS
26906fi
Reid Spencera773bd52006-08-04 18:18:08 +000026907{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26908echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026909if test $ac_cv_lib_m_sin = yes; then
26910 cat >>confdefs.h <<_ACEOF
26911#define HAVE_LIBM 1
26912_ACEOF
26913
26914 LIBS="-lm $LIBS"
26915
26916fi
26917
Jeff Cohen28783c32007-01-12 18:22:38 +000026918if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026919
Reid Spencera773bd52006-08-04 18:18:08 +000026920{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26921echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026922if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026923 echo $ECHO_N "(cached) $ECHO_C" >&6
26924else
26925 ac_check_lib_save_LIBS=$LIBS
26926LIBS="-limagehlp $LIBS"
26927cat >conftest.$ac_ext <<_ACEOF
26928/* confdefs.h. */
26929_ACEOF
26930cat confdefs.h >>conftest.$ac_ext
26931cat >>conftest.$ac_ext <<_ACEOF
26932/* end confdefs.h. */
26933
Reid Spencer48fdf912006-06-01 19:03:21 +000026934
Reid Spencer484fc8e2006-06-01 16:55:59 +000026935int
26936main ()
26937{
Reid Spencera773bd52006-08-04 18:18:08 +000026938return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026939 ;
26940 return 0;
26941}
26942_ACEOF
26943rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026944if { (ac_try="$ac_link"
26945case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26948esac
26949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026951 ac_status=$?
26952 grep -v '^ *+' conftest.er1 >conftest.err
26953 rm -f conftest.er1
26954 cat conftest.err >&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26958 { (case "(($ac_try" in
26959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960 *) ac_try_echo=$ac_try;;
26961esac
26962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026964 ac_status=$?
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; } &&
26967 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026968 { (case "(($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_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026977 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026978else
26979 echo "$as_me: failed program was:" >&5
26980sed 's/^/| /' conftest.$ac_ext >&5
26981
Reid Spencera773bd52006-08-04 18:18:08 +000026982 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026983fi
Reid Spencera773bd52006-08-04 18:18:08 +000026984
26985rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026986 conftest$ac_exeext conftest.$ac_ext
26987LIBS=$ac_check_lib_save_LIBS
26988fi
Reid Spencera773bd52006-08-04 18:18:08 +000026989{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26990echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026991if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026992 cat >>confdefs.h <<_ACEOF
26993#define HAVE_LIBIMAGEHLP 1
26994_ACEOF
26995
26996 LIBS="-limagehlp $LIBS"
26997
26998fi
26999
27000
Reid Spencera773bd52006-08-04 18:18:08 +000027001{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27002echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027003if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027004 echo $ECHO_N "(cached) $ECHO_C" >&6
27005else
27006 ac_check_lib_save_LIBS=$LIBS
27007LIBS="-lpsapi $LIBS"
27008cat >conftest.$ac_ext <<_ACEOF
27009/* confdefs.h. */
27010_ACEOF
27011cat confdefs.h >>conftest.$ac_ext
27012cat >>conftest.$ac_ext <<_ACEOF
27013/* end confdefs.h. */
27014
Reid Spencer48fdf912006-06-01 19:03:21 +000027015
Reid Spencer484fc8e2006-06-01 16:55:59 +000027016int
27017main ()
27018{
Reid Spencera773bd52006-08-04 18:18:08 +000027019return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027020 ;
27021 return 0;
27022}
27023_ACEOF
27024rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027025if { (ac_try="$ac_link"
27026case "(($ac_try" in
27027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028 *) ac_try_echo=$ac_try;;
27029esac
27030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27031 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027032 ac_status=$?
27033 grep -v '^ *+' conftest.er1 >conftest.err
27034 rm -f conftest.er1
27035 cat conftest.err >&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27039 { (case "(($ac_try" in
27040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041 *) ac_try_echo=$ac_try;;
27042esac
27043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027045 ac_status=$?
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; } &&
27048 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027049 { (case "(($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_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027055 ac_status=$?
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027058 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027059else
27060 echo "$as_me: failed program was:" >&5
27061sed 's/^/| /' conftest.$ac_ext >&5
27062
Reid Spencera773bd52006-08-04 18:18:08 +000027063 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027064fi
Reid Spencera773bd52006-08-04 18:18:08 +000027065
27066rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027067 conftest$ac_exeext conftest.$ac_ext
27068LIBS=$ac_check_lib_save_LIBS
27069fi
Reid Spencera773bd52006-08-04 18:18:08 +000027070{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27071echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027072if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027073 cat >>confdefs.h <<_ACEOF
27074#define HAVE_LIBPSAPI 1
27075_ACEOF
27076
27077 LIBS="-lpsapi $LIBS"
27078
27079fi
27080
27081fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027082
Reid Spencera773bd52006-08-04 18:18:08 +000027083{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27084echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027085if test "${ac_cv_search_lt_dlopen+set}" = set; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27087else
27088 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027089cat >conftest.$ac_ext <<_ACEOF
27090/* confdefs.h. */
27091_ACEOF
27092cat confdefs.h >>conftest.$ac_ext
27093cat >>conftest.$ac_ext <<_ACEOF
27094/* end confdefs.h. */
27095
Reid Spencera773bd52006-08-04 18:18:08 +000027096/* Override any GCC internal prototype to avoid an error.
27097 Use char because int might match the return type of a GCC
27098 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027099#ifdef __cplusplus
27100extern "C"
27101#endif
Reid Spencer17795972004-11-18 09:47:37 +000027102char lt_dlopen ();
27103int
27104main ()
27105{
Reid Spencera773bd52006-08-04 18:18:08 +000027106return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027107 ;
27108 return 0;
27109}
27110_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027111for ac_lib in '' ltdl; do
27112 if test -z "$ac_lib"; then
27113 ac_res="none required"
27114 else
27115 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027117 fi
27118 rm -f conftest.$ac_objext conftest$ac_exeext
27119if { (ac_try="$ac_link"
27120case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27123esac
27124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027126 ac_status=$?
27127 grep -v '^ *+' conftest.er1 >conftest.err
27128 rm -f conftest.er1
27129 cat conftest.err >&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27133 { (case "(($ac_try" in
27134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135 *) ac_try_echo=$ac_try;;
27136esac
27137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27138 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027139 ac_status=$?
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; } &&
27142 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027143 { (case "(($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_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027152 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027153else
27154 echo "$as_me: failed program was:" >&5
27155sed 's/^/| /' conftest.$ac_ext >&5
27156
Reid Spencera773bd52006-08-04 18:18:08 +000027157
Reid Spencer17795972004-11-18 09:47:37 +000027158fi
Reid Spencera773bd52006-08-04 18:18:08 +000027159
27160rm -f core conftest.err conftest.$ac_objext \
27161 conftest$ac_exeext
27162 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27163 break
Reid Spencer17795972004-11-18 09:47:37 +000027164fi
Reid Spencera773bd52006-08-04 18:18:08 +000027165done
27166if test "${ac_cv_search_lt_dlopen+set}" = set; then
27167 :
27168else
27169 ac_cv_search_lt_dlopen=no
27170fi
27171rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027172LIBS=$ac_func_search_save_LIBS
27173fi
Reid Spencera773bd52006-08-04 18:18:08 +000027174{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27175echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27176ac_res=$ac_cv_search_lt_dlopen
27177if test "$ac_res" != no; then
27178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027179
27180cat >>confdefs.h <<\_ACEOF
27181#define HAVE_LT_DLOPEN 1
27182_ACEOF
27183
27184else
27185 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27186 not be available" >&5
27187echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27188 not be available" >&2;}
27189fi
27190
27191
Reid Spencera773bd52006-08-04 18:18:08 +000027192{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27193echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027194if test "${ac_cv_search_dlopen+set}" = set; then
27195 echo $ECHO_N "(cached) $ECHO_C" >&6
27196else
27197 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027198cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027199/* confdefs.h. */
27200_ACEOF
27201cat confdefs.h >>conftest.$ac_ext
27202cat >>conftest.$ac_ext <<_ACEOF
27203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027204
Reid Spencera773bd52006-08-04 18:18:08 +000027205/* Override any GCC internal prototype to avoid an error.
27206 Use char because int might match the return type of a GCC
27207 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027208#ifdef __cplusplus
27209extern "C"
27210#endif
John Criswell7a73b802003-06-30 21:59:07 +000027211char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027212int
27213main ()
27214{
Reid Spencera773bd52006-08-04 18:18:08 +000027215return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027216 ;
27217 return 0;
27218}
27219_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027220for ac_lib in '' dl; do
27221 if test -z "$ac_lib"; then
27222 ac_res="none required"
27223 else
27224 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027226 fi
27227 rm -f conftest.$ac_objext conftest$ac_exeext
27228if { (ac_try="$ac_link"
27229case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232esac
27233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027235 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027236 grep -v '^ *+' conftest.er1 >conftest.err
27237 rm -f conftest.er1
27238 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27242 { (case "(($ac_try" in
27243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244 *) ac_try_echo=$ac_try;;
27245esac
27246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; } &&
27251 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027252 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027258 ac_status=$?
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027261 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027262else
27263 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027264sed 's/^/| /' conftest.$ac_ext >&5
27265
Reid Spencera773bd52006-08-04 18:18:08 +000027266
John Criswell7a73b802003-06-30 21:59:07 +000027267fi
Reid Spencera773bd52006-08-04 18:18:08 +000027268
27269rm -f core conftest.err conftest.$ac_objext \
27270 conftest$ac_exeext
27271 if test "${ac_cv_search_dlopen+set}" = set; then
27272 break
John Criswell7a73b802003-06-30 21:59:07 +000027273fi
Reid Spencera773bd52006-08-04 18:18:08 +000027274done
27275if test "${ac_cv_search_dlopen+set}" = set; then
27276 :
27277else
27278 ac_cv_search_dlopen=no
27279fi
27280rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027281LIBS=$ac_func_search_save_LIBS
27282fi
Reid Spencera773bd52006-08-04 18:18:08 +000027283{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27284echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27285ac_res=$ac_cv_search_dlopen
27286if test "$ac_res" != no; then
27287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027288
27289cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027290#define HAVE_DLOPEN 1
27291_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027292
27293else
Brian Gaekec45be042003-10-07 06:01:34 +000027294 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27295echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027296fi
27297
27298
Reid Spencera773bd52006-08-04 18:18:08 +000027299{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27300echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027301if test "${ac_cv_search_mallinfo+set}" = set; then
27302 echo $ECHO_N "(cached) $ECHO_C" >&6
27303else
27304 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027305cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027306/* confdefs.h. */
27307_ACEOF
27308cat confdefs.h >>conftest.$ac_ext
27309cat >>conftest.$ac_ext <<_ACEOF
27310/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027311
Reid Spencera773bd52006-08-04 18:18:08 +000027312/* Override any GCC internal prototype to avoid an error.
27313 Use char because int might match the return type of a GCC
27314 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027315#ifdef __cplusplus
27316extern "C"
27317#endif
John Criswell7a73b802003-06-30 21:59:07 +000027318char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027319int
27320main ()
27321{
Reid Spencera773bd52006-08-04 18:18:08 +000027322return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027323 ;
27324 return 0;
27325}
27326_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027327for ac_lib in '' malloc; do
27328 if test -z "$ac_lib"; then
27329 ac_res="none required"
27330 else
27331 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027333 fi
27334 rm -f conftest.$ac_objext conftest$ac_exeext
27335if { (ac_try="$ac_link"
27336case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27339esac
27340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027343 grep -v '^ *+' conftest.er1 >conftest.err
27344 rm -f conftest.er1
27345 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27349 { (case "(($ac_try" in
27350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351 *) ac_try_echo=$ac_try;;
27352esac
27353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027355 ac_status=$?
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; } &&
27358 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027359 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027365 ac_status=$?
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027368 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027369else
27370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027371sed 's/^/| /' conftest.$ac_ext >&5
27372
Reid Spencera773bd52006-08-04 18:18:08 +000027373
John Criswell7a73b802003-06-30 21:59:07 +000027374fi
Reid Spencera773bd52006-08-04 18:18:08 +000027375
27376rm -f core conftest.err conftest.$ac_objext \
27377 conftest$ac_exeext
27378 if test "${ac_cv_search_mallinfo+set}" = set; then
27379 break
John Criswell7a73b802003-06-30 21:59:07 +000027380fi
Reid Spencera773bd52006-08-04 18:18:08 +000027381done
27382if test "${ac_cv_search_mallinfo+set}" = set; then
27383 :
27384else
27385 ac_cv_search_mallinfo=no
27386fi
27387rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027388LIBS=$ac_func_search_save_LIBS
27389fi
Reid Spencera773bd52006-08-04 18:18:08 +000027390{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27391echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27392ac_res=$ac_cv_search_mallinfo
27393if test "$ac_res" != no; then
27394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027395
27396cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027397#define HAVE_MALLINFO 1
27398_ACEOF
27399
27400fi
27401
27402
Reid Spencer0a262ba2005-08-24 10:07:20 +000027403if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027404
Reid Spencera773bd52006-08-04 18:18:08 +000027405{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27406echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027407if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27408 echo $ECHO_N "(cached) $ECHO_C" >&6
27409else
27410 ac_check_lib_save_LIBS=$LIBS
27411LIBS="-lpthread $LIBS"
27412cat >conftest.$ac_ext <<_ACEOF
27413/* confdefs.h. */
27414_ACEOF
27415cat confdefs.h >>conftest.$ac_ext
27416cat >>conftest.$ac_ext <<_ACEOF
27417/* end confdefs.h. */
27418
Reid Spencera773bd52006-08-04 18:18:08 +000027419/* Override any GCC internal prototype to avoid an error.
27420 Use char because int might match the return type of a GCC
27421 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027422#ifdef __cplusplus
27423extern "C"
27424#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027425char pthread_mutex_init ();
27426int
27427main ()
27428{
Reid Spencera773bd52006-08-04 18:18:08 +000027429return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027430 ;
27431 return 0;
27432}
27433_ACEOF
27434rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027435if { (ac_try="$ac_link"
27436case "(($ac_try" in
27437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438 *) ac_try_echo=$ac_try;;
27439esac
27440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027442 ac_status=$?
27443 grep -v '^ *+' conftest.er1 >conftest.err
27444 rm -f conftest.er1
27445 cat conftest.err >&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27449 { (case "(($ac_try" in
27450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451 *) ac_try_echo=$ac_try;;
27452esac
27453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027455 ac_status=$?
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); }; } &&
27458 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027459 { (case "(($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_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027465 ac_status=$?
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; }; then
27468 ac_cv_lib_pthread_pthread_mutex_init=yes
27469else
27470 echo "$as_me: failed program was:" >&5
27471sed 's/^/| /' conftest.$ac_ext >&5
27472
Reid Spencera773bd52006-08-04 18:18:08 +000027473 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027474fi
Reid Spencera773bd52006-08-04 18:18:08 +000027475
27476rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027477 conftest$ac_exeext conftest.$ac_ext
27478LIBS=$ac_check_lib_save_LIBS
27479fi
Reid Spencera773bd52006-08-04 18:18:08 +000027480{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27481echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027482if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27483 cat >>confdefs.h <<_ACEOF
27484#define HAVE_LIBPTHREAD 1
27485_ACEOF
27486
27487 LIBS="-lpthread $LIBS"
27488
27489fi
27490
Reid Spencera773bd52006-08-04 18:18:08 +000027491 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27492echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027493if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27494 echo $ECHO_N "(cached) $ECHO_C" >&6
27495else
27496 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027497cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027498/* confdefs.h. */
27499_ACEOF
27500cat confdefs.h >>conftest.$ac_ext
27501cat >>conftest.$ac_ext <<_ACEOF
27502/* end confdefs.h. */
27503
Reid Spencera773bd52006-08-04 18:18:08 +000027504/* Override any GCC internal prototype to avoid an error.
27505 Use char because int might match the return type of a GCC
27506 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027507#ifdef __cplusplus
27508extern "C"
27509#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027510char pthread_mutex_lock ();
27511int
27512main ()
27513{
Reid Spencera773bd52006-08-04 18:18:08 +000027514return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027515 ;
27516 return 0;
27517}
27518_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027519for ac_lib in '' pthread; do
27520 if test -z "$ac_lib"; then
27521 ac_res="none required"
27522 else
27523 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027525 fi
27526 rm -f conftest.$ac_objext conftest$ac_exeext
27527if { (ac_try="$ac_link"
27528case "(($ac_try" in
27529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27530 *) ac_try_echo=$ac_try;;
27531esac
27532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27533 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027534 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027535 grep -v '^ *+' conftest.er1 >conftest.err
27536 rm -f conftest.er1
27537 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27541 { (case "(($ac_try" in
27542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543 *) ac_try_echo=$ac_try;;
27544esac
27545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027547 ac_status=$?
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); }; } &&
27550 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027551 { (case "(($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_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027557 ac_status=$?
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027560 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027561else
27562 echo "$as_me: failed program was:" >&5
27563sed 's/^/| /' conftest.$ac_ext >&5
27564
Reid Spencera773bd52006-08-04 18:18:08 +000027565
Brian Gaeke5f268f72003-12-05 19:29:01 +000027566fi
Reid Spencera773bd52006-08-04 18:18:08 +000027567
27568rm -f core conftest.err conftest.$ac_objext \
27569 conftest$ac_exeext
27570 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27571 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027572fi
Reid Spencera773bd52006-08-04 18:18:08 +000027573done
27574if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27575 :
27576else
27577 ac_cv_search_pthread_mutex_lock=no
27578fi
27579rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027580LIBS=$ac_func_search_save_LIBS
27581fi
Reid Spencera773bd52006-08-04 18:18:08 +000027582{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27583echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27584ac_res=$ac_cv_search_pthread_mutex_lock
27585if test "$ac_res" != no; then
27586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027587
John Criswell40468462004-09-24 21:19:06 +000027588cat >>confdefs.h <<\_ACEOF
27589#define HAVE_PTHREAD_MUTEX_LOCK 1
27590_ACEOF
27591
27592fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027593
Reid Spencer0a262ba2005-08-24 10:07:20 +000027594fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027596
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027597# Check whether --with-udis86 was given.
27598if test "${with_udis86+set}" = set; then
27599 withval=$with_udis86;
27600 USE_UDIS86=1
27601
27602 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027603 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027604 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27605 esac
27606
27607{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27608echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27609if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27610 echo $ECHO_N "(cached) $ECHO_C" >&6
27611else
27612 ac_check_lib_save_LIBS=$LIBS
27613LIBS="-ludis86 $LIBS"
27614cat >conftest.$ac_ext <<_ACEOF
27615/* confdefs.h. */
27616_ACEOF
27617cat confdefs.h >>conftest.$ac_ext
27618cat >>conftest.$ac_ext <<_ACEOF
27619/* end confdefs.h. */
27620
27621/* Override any GCC internal prototype to avoid an error.
27622 Use char because int might match the return type of a GCC
27623 builtin and then its argument prototype would still apply. */
27624#ifdef __cplusplus
27625extern "C"
27626#endif
27627char ud_init ();
27628int
27629main ()
27630{
27631return ud_init ();
27632 ;
27633 return 0;
27634}
27635_ACEOF
27636rm -f conftest.$ac_objext conftest$ac_exeext
27637if { (ac_try="$ac_link"
27638case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27641esac
27642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_link") 2>conftest.er1
27644 ac_status=$?
27645 grep -v '^ *+' conftest.er1 >conftest.err
27646 rm -f conftest.er1
27647 cat conftest.err >&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); } &&
27650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27651 { (case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27654esac
27655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656 (eval "$ac_try") 2>&5
27657 ac_status=$?
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); }; } &&
27660 { ac_try='test -s conftest$ac_exeext'
27661 { (case "(($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_try") 2>&5
27667 ac_status=$?
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_cv_lib_udis86_ud_init=yes
27671else
27672 echo "$as_me: failed program was:" >&5
27673sed 's/^/| /' conftest.$ac_ext >&5
27674
27675 ac_cv_lib_udis86_ud_init=no
27676fi
27677
27678rm -f core conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
27680LIBS=$ac_check_lib_save_LIBS
27681fi
27682{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27683echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27684if test $ac_cv_lib_udis86_ud_init = yes; then
27685 cat >>confdefs.h <<_ACEOF
27686#define HAVE_LIBUDIS86 1
27687_ACEOF
27688
27689 LIBS="-ludis86 $LIBS"
27690
27691else
27692
27693 echo "Error! You need to have libudis86 around."
27694 exit -1
27695
27696fi
27697
27698
27699else
27700 USE_UDIS86=0
27701
27702fi
27703
27704
27705cat >>confdefs.h <<_ACEOF
27706#define USE_UDIS86 $USE_UDIS86
27707_ACEOF
27708
27709
27710
Reid Spencer59473af2004-12-25 07:31:29 +000027711
27712
27713
27714
27715
27716ac_header_dirent=no
27717for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27718 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027719{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27720echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027722 echo $ECHO_N "(cached) $ECHO_C" >&6
27723else
27724 cat >conftest.$ac_ext <<_ACEOF
27725/* confdefs.h. */
27726_ACEOF
27727cat confdefs.h >>conftest.$ac_ext
27728cat >>conftest.$ac_ext <<_ACEOF
27729/* end confdefs.h. */
27730#include <sys/types.h>
27731#include <$ac_hdr>
27732
27733int
27734main ()
27735{
27736if ((DIR *) 0)
27737return 0;
27738 ;
27739 return 0;
27740}
27741_ACEOF
27742rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027743if { (ac_try="$ac_compile"
27744case "(($ac_try" in
27745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746 *) ac_try_echo=$ac_try;;
27747esac
27748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027750 ac_status=$?
27751 grep -v '^ *+' conftest.er1 >conftest.err
27752 rm -f conftest.er1
27753 cat conftest.err >&5
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757 { (case "(($ac_try" in
27758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759 *) ac_try_echo=$ac_try;;
27760esac
27761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; } &&
27766 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027767 { (case "(($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_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
27776 eval "$as_ac_Header=yes"
27777else
27778 echo "$as_me: failed program was:" >&5
27779sed 's/^/| /' conftest.$ac_ext >&5
27780
Reid Spencera773bd52006-08-04 18:18:08 +000027781 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027782fi
Reid Spencera773bd52006-08-04 18:18:08 +000027783
27784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027785fi
Reid Spencera773bd52006-08-04 18:18:08 +000027786ac_res=`eval echo '${'$as_ac_Header'}'`
27787 { echo "$as_me:$LINENO: result: $ac_res" >&5
27788echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027789if test `eval echo '${'$as_ac_Header'}'` = yes; then
27790 cat >>confdefs.h <<_ACEOF
27791#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27792_ACEOF
27793
27794ac_header_dirent=$ac_hdr; break
27795fi
27796
27797done
27798# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27799if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027800 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27801echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027802if test "${ac_cv_search_opendir+set}" = set; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27804else
27805 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027806cat >conftest.$ac_ext <<_ACEOF
27807/* confdefs.h. */
27808_ACEOF
27809cat confdefs.h >>conftest.$ac_ext
27810cat >>conftest.$ac_ext <<_ACEOF
27811/* end confdefs.h. */
27812
Reid Spencera773bd52006-08-04 18:18:08 +000027813/* Override any GCC internal prototype to avoid an error.
27814 Use char because int might match the return type of a GCC
27815 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027816#ifdef __cplusplus
27817extern "C"
27818#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027819char opendir ();
27820int
27821main ()
27822{
Reid Spencera773bd52006-08-04 18:18:08 +000027823return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027824 ;
27825 return 0;
27826}
27827_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027828for ac_lib in '' dir; do
27829 if test -z "$ac_lib"; then
27830 ac_res="none required"
27831 else
27832 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027834 fi
27835 rm -f conftest.$ac_objext conftest$ac_exeext
27836if { (ac_try="$ac_link"
27837case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27840esac
27841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27850 { (case "(($ac_try" in
27851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852 *) ac_try_echo=$ac_try;;
27853esac
27854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027856 ac_status=$?
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); }; } &&
27859 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027860 { (case "(($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_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027866 ac_status=$?
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027869 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027870else
27871 echo "$as_me: failed program was:" >&5
27872sed 's/^/| /' conftest.$ac_ext >&5
27873
Reid Spencera773bd52006-08-04 18:18:08 +000027874
Reid Spencer59473af2004-12-25 07:31:29 +000027875fi
Reid Spencera773bd52006-08-04 18:18:08 +000027876
27877rm -f core conftest.err conftest.$ac_objext \
27878 conftest$ac_exeext
27879 if test "${ac_cv_search_opendir+set}" = set; then
27880 break
Reid Spencer59473af2004-12-25 07:31:29 +000027881fi
Reid Spencera773bd52006-08-04 18:18:08 +000027882done
27883if test "${ac_cv_search_opendir+set}" = set; then
27884 :
27885else
27886 ac_cv_search_opendir=no
27887fi
27888rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027889LIBS=$ac_func_search_save_LIBS
27890fi
Reid Spencera773bd52006-08-04 18:18:08 +000027891{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27892echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27893ac_res=$ac_cv_search_opendir
27894if test "$ac_res" != no; then
27895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027896
27897fi
27898
27899else
Reid Spencera773bd52006-08-04 18:18:08 +000027900 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27901echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027902if test "${ac_cv_search_opendir+set}" = set; then
27903 echo $ECHO_N "(cached) $ECHO_C" >&6
27904else
27905 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027906cat >conftest.$ac_ext <<_ACEOF
27907/* confdefs.h. */
27908_ACEOF
27909cat confdefs.h >>conftest.$ac_ext
27910cat >>conftest.$ac_ext <<_ACEOF
27911/* end confdefs.h. */
27912
Reid Spencera773bd52006-08-04 18:18:08 +000027913/* Override any GCC internal prototype to avoid an error.
27914 Use char because int might match the return type of a GCC
27915 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027916#ifdef __cplusplus
27917extern "C"
27918#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027919char opendir ();
27920int
27921main ()
27922{
Reid Spencera773bd52006-08-04 18:18:08 +000027923return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027924 ;
27925 return 0;
27926}
27927_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027928for ac_lib in '' x; do
27929 if test -z "$ac_lib"; then
27930 ac_res="none required"
27931 else
27932 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027934 fi
27935 rm -f conftest.$ac_objext conftest$ac_exeext
27936if { (ac_try="$ac_link"
27937case "(($ac_try" in
27938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939 *) ac_try_echo=$ac_try;;
27940esac
27941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027943 ac_status=$?
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27950 { (case "(($ac_try" in
27951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952 *) ac_try_echo=$ac_try;;
27953esac
27954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27955 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027956 ac_status=$?
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); }; } &&
27959 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027960 { (case "(($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_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027969 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027970else
27971 echo "$as_me: failed program was:" >&5
27972sed 's/^/| /' conftest.$ac_ext >&5
27973
Reid Spencera773bd52006-08-04 18:18:08 +000027974
Reid Spencer59473af2004-12-25 07:31:29 +000027975fi
Reid Spencera773bd52006-08-04 18:18:08 +000027976
27977rm -f core conftest.err conftest.$ac_objext \
27978 conftest$ac_exeext
27979 if test "${ac_cv_search_opendir+set}" = set; then
27980 break
Reid Spencer59473af2004-12-25 07:31:29 +000027981fi
Reid Spencera773bd52006-08-04 18:18:08 +000027982done
27983if test "${ac_cv_search_opendir+set}" = set; then
27984 :
27985else
27986 ac_cv_search_opendir=no
27987fi
27988rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027989LIBS=$ac_func_search_save_LIBS
27990fi
Reid Spencera773bd52006-08-04 18:18:08 +000027991{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27992echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27993ac_res=$ac_cv_search_opendir
27994if test "$ac_res" != no; then
27995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027996
27997fi
27998
27999fi
28000
Reid Spencera773bd52006-08-04 18:18:08 +000028001{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28002echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028003if test "${ac_cv_header_mmap_anon+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28005else
28006 ac_ext=c
28007ac_cpp='$CPP $CPPFLAGS'
28008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28010ac_compiler_gnu=$ac_cv_c_compiler_gnu
28011
28012 cat >conftest.$ac_ext <<_ACEOF
28013/* confdefs.h. */
28014_ACEOF
28015cat confdefs.h >>conftest.$ac_ext
28016cat >>conftest.$ac_ext <<_ACEOF
28017/* end confdefs.h. */
28018#include <sys/mman.h>
28019#include <unistd.h>
28020#include <fcntl.h>
28021int
28022main ()
28023{
28024mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28025 ;
28026 return 0;
28027}
28028_ACEOF
28029rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028030if { (ac_try="$ac_compile"
28031case "(($ac_try" in
28032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033 *) ac_try_echo=$ac_try;;
28034esac
28035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028037 ac_status=$?
28038 grep -v '^ *+' conftest.er1 >conftest.err
28039 rm -f conftest.er1
28040 cat conftest.err >&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28044 { (case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28047esac
28048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028050 ac_status=$?
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); }; } &&
28053 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028054 { (case "(($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_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028060 ac_status=$?
28061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); }; }; then
28063 ac_cv_header_mmap_anon=yes
28064else
28065 echo "$as_me: failed program was:" >&5
28066sed 's/^/| /' conftest.$ac_ext >&5
28067
Reid Spencera773bd52006-08-04 18:18:08 +000028068 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028069fi
Reid Spencera773bd52006-08-04 18:18:08 +000028070
28071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028072 ac_ext=c
28073ac_cpp='$CPP $CPPFLAGS'
28074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28076ac_compiler_gnu=$ac_cv_c_compiler_gnu
28077
28078
28079fi
Reid Spencera773bd52006-08-04 18:18:08 +000028080{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28081echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028082if test "$ac_cv_header_mmap_anon" = yes; then
28083
28084cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028085#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028086_ACEOF
28087
28088fi
28089
Reid Spencera773bd52006-08-04 18:18:08 +000028090{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28091echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028092if test "${ac_cv_header_stat_broken+set}" = set; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094else
28095 cat >conftest.$ac_ext <<_ACEOF
28096/* confdefs.h. */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h. */
28101#include <sys/types.h>
28102#include <sys/stat.h>
28103
Reid Spencera773bd52006-08-04 18:18:08 +000028104#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028105# if S_ISBLK (S_IFDIR)
28106You lose.
28107# endif
28108#endif
28109
Reid Spencera773bd52006-08-04 18:18:08 +000028110#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028111# if S_ISBLK (S_IFCHR)
28112You lose.
28113# endif
28114#endif
28115
Reid Spencera773bd52006-08-04 18:18:08 +000028116#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028117# if S_ISLNK (S_IFREG)
28118You lose.
28119# endif
28120#endif
28121
Reid Spencera773bd52006-08-04 18:18:08 +000028122#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028123# if S_ISSOCK (S_IFREG)
28124You lose.
28125# endif
28126#endif
28127
28128_ACEOF
28129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28130 $EGREP "You lose" >/dev/null 2>&1; then
28131 ac_cv_header_stat_broken=yes
28132else
28133 ac_cv_header_stat_broken=no
28134fi
28135rm -f conftest*
28136
28137fi
Reid Spencera773bd52006-08-04 18:18:08 +000028138{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28139echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028140if test $ac_cv_header_stat_broken = yes; then
28141
28142cat >>confdefs.h <<\_ACEOF
28143#define STAT_MACROS_BROKEN 1
28144_ACEOF
28145
28146fi
28147
Reid Spencera773bd52006-08-04 18:18:08 +000028148{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28149echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028150if test "${ac_cv_header_stdc+set}" = set; then
28151 echo $ECHO_N "(cached) $ECHO_C" >&6
28152else
28153 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028154/* confdefs.h. */
28155_ACEOF
28156cat confdefs.h >>conftest.$ac_ext
28157cat >>conftest.$ac_ext <<_ACEOF
28158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028159#include <stdlib.h>
28160#include <stdarg.h>
28161#include <string.h>
28162#include <float.h>
28163
John Criswell0c38eaf2003-09-10 15:17:25 +000028164int
28165main ()
28166{
28167
28168 ;
28169 return 0;
28170}
John Criswell7a73b802003-06-30 21:59:07 +000028171_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028172rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028173if { (ac_try="$ac_compile"
28174case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28177esac
28178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028180 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028181 grep -v '^ *+' conftest.er1 >conftest.err
28182 rm -f conftest.er1
28183 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028185 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28187 { (case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28190esac
28191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028197 { (case "(($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_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028206 ac_cv_header_stdc=yes
28207else
28208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028209sed 's/^/| /' conftest.$ac_ext >&5
28210
Reid Spencera773bd52006-08-04 18:18:08 +000028211 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028212fi
Reid Spencera773bd52006-08-04 18:18:08 +000028213
28214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028215
28216if test $ac_cv_header_stdc = yes; then
28217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28218 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028219/* confdefs.h. */
28220_ACEOF
28221cat confdefs.h >>conftest.$ac_ext
28222cat >>conftest.$ac_ext <<_ACEOF
28223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028224#include <string.h>
28225
28226_ACEOF
28227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028228 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028229 :
28230else
28231 ac_cv_header_stdc=no
28232fi
28233rm -f conftest*
28234
28235fi
28236
28237if test $ac_cv_header_stdc = yes; then
28238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28239 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028240/* confdefs.h. */
28241_ACEOF
28242cat confdefs.h >>conftest.$ac_ext
28243cat >>conftest.$ac_ext <<_ACEOF
28244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028245#include <stdlib.h>
28246
28247_ACEOF
28248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028249 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028250 :
28251else
28252 ac_cv_header_stdc=no
28253fi
28254rm -f conftest*
28255
28256fi
28257
28258if test $ac_cv_header_stdc = yes; then
28259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28260 if test "$cross_compiling" = yes; then
28261 :
28262else
28263 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028264/* confdefs.h. */
28265_ACEOF
28266cat confdefs.h >>conftest.$ac_ext
28267cat >>conftest.$ac_ext <<_ACEOF
28268/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028269#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028270#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028271#if ((' ' & 0x0FF) == 0x020)
28272# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28273# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28274#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028275# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028276 (('a' <= (c) && (c) <= 'i') \
28277 || ('j' <= (c) && (c) <= 'r') \
28278 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028279# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28280#endif
28281
28282#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28283int
28284main ()
28285{
28286 int i;
28287 for (i = 0; i < 256; i++)
28288 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028289 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028290 return 2;
28291 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028292}
28293_ACEOF
28294rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028295if { (ac_try="$ac_link"
28296case "(($ac_try" in
28297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298 *) ac_try_echo=$ac_try;;
28299esac
28300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028305 { (case "(($ac_try" in
28306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307 *) ac_try_echo=$ac_try;;
28308esac
28309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028311 ac_status=$?
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); }; }; then
28314 :
28315else
28316 echo "$as_me: program exited with status $ac_status" >&5
28317echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028318sed 's/^/| /' conftest.$ac_ext >&5
28319
John Criswell7a73b802003-06-30 21:59:07 +000028320( exit $ac_status )
28321ac_cv_header_stdc=no
28322fi
Reid Spencera773bd52006-08-04 18:18:08 +000028323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28324fi
28325
28326
John Criswell7a73b802003-06-30 21:59:07 +000028327fi
28328fi
Reid Spencera773bd52006-08-04 18:18:08 +000028329{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28330echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028331if test $ac_cv_header_stdc = yes; then
28332
28333cat >>confdefs.h <<\_ACEOF
28334#define STDC_HEADERS 1
28335_ACEOF
28336
28337fi
28338
Reid Spencera773bd52006-08-04 18:18:08 +000028339{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28340echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028341if test "${ac_cv_header_sys_wait_h+set}" = set; then
28342 echo $ECHO_N "(cached) $ECHO_C" >&6
28343else
28344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028345/* confdefs.h. */
28346_ACEOF
28347cat confdefs.h >>conftest.$ac_ext
28348cat >>conftest.$ac_ext <<_ACEOF
28349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028350#include <sys/types.h>
28351#include <sys/wait.h>
28352#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028353# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028354#endif
28355#ifndef WIFEXITED
28356# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28357#endif
28358
John Criswell7a73b802003-06-30 21:59:07 +000028359int
28360main ()
28361{
28362 int s;
28363 wait (&s);
28364 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28365 ;
28366 return 0;
28367}
28368_ACEOF
28369rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028370if { (ac_try="$ac_compile"
28371case "(($ac_try" in
28372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373 *) ac_try_echo=$ac_try;;
28374esac
28375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028377 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028378 grep -v '^ *+' conftest.er1 >conftest.err
28379 rm -f conftest.er1
28380 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28384 { (case "(($ac_try" in
28385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28387esac
28388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028390 ac_status=$?
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); }; } &&
28393 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028394 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028400 ac_status=$?
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; }; then
28403 ac_cv_header_sys_wait_h=yes
28404else
28405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028406sed 's/^/| /' conftest.$ac_ext >&5
28407
Reid Spencera773bd52006-08-04 18:18:08 +000028408 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028409fi
Reid Spencera773bd52006-08-04 18:18:08 +000028410
28411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028412fi
Reid Spencera773bd52006-08-04 18:18:08 +000028413{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28414echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028415if test $ac_cv_header_sys_wait_h = yes; then
28416
28417cat >>confdefs.h <<\_ACEOF
28418#define HAVE_SYS_WAIT_H 1
28419_ACEOF
28420
28421fi
28422
Reid Spencera773bd52006-08-04 18:18:08 +000028423{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28424echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028425if test "${ac_cv_header_time+set}" = set; then
28426 echo $ECHO_N "(cached) $ECHO_C" >&6
28427else
28428 cat >conftest.$ac_ext <<_ACEOF
28429/* confdefs.h. */
28430_ACEOF
28431cat confdefs.h >>conftest.$ac_ext
28432cat >>conftest.$ac_ext <<_ACEOF
28433/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028434#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028435#include <sys/time.h>
28436#include <time.h>
28437
28438int
28439main ()
28440{
28441if ((struct tm *) 0)
28442return 0;
28443 ;
28444 return 0;
28445}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028446_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028447rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028448if { (ac_try="$ac_compile"
28449case "(($ac_try" in
28450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28451 *) ac_try_echo=$ac_try;;
28452esac
28453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28454 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028455 ac_status=$?
28456 grep -v '^ *+' conftest.er1 >conftest.err
28457 rm -f conftest.er1
28458 cat conftest.err >&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028460 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28462 { (case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28465esac
28466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028468 ac_status=$?
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; } &&
28471 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028472 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028478 ac_status=$?
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); }; }; then
28481 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028482else
28483 echo "$as_me: failed program was:" >&5
28484sed 's/^/| /' conftest.$ac_ext >&5
28485
Reid Spencera773bd52006-08-04 18:18:08 +000028486 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028487fi
Reid Spencera773bd52006-08-04 18:18:08 +000028488
28489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028490fi
Reid Spencera773bd52006-08-04 18:18:08 +000028491{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28492echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028493if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028494
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028495cat >>confdefs.h <<\_ACEOF
28496#define TIME_WITH_SYS_TIME 1
28497_ACEOF
28498
28499fi
28500
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028501
Reid Spencer59473af2004-12-25 07:31:29 +000028502
28503
28504
28505
28506
28507
28508for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28509do
28510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028515 echo $ECHO_N "(cached) $ECHO_C" >&6
28516fi
Reid Spencera773bd52006-08-04 18:18:08 +000028517ac_res=`eval echo '${'$as_ac_Header'}'`
28518 { echo "$as_me:$LINENO: result: $ac_res" >&5
28519echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028520else
28521 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028522{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028524cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028525/* confdefs.h. */
28526_ACEOF
28527cat confdefs.h >>conftest.$ac_ext
28528cat >>conftest.$ac_ext <<_ACEOF
28529/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028530$ac_includes_default
28531#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028532_ACEOF
28533rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028534if { (ac_try="$ac_compile"
28535case "(($ac_try" in
28536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537 *) ac_try_echo=$ac_try;;
28538esac
28539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028541 ac_status=$?
28542 grep -v '^ *+' conftest.er1 >conftest.err
28543 rm -f conftest.er1
28544 cat conftest.err >&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28548 { (case "(($ac_try" in
28549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550 *) ac_try_echo=$ac_try;;
28551esac
28552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28553 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028554 ac_status=$?
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); }; } &&
28557 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028558 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028564 ac_status=$?
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028567 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028568else
28569 echo "$as_me: failed program was:" >&5
28570sed 's/^/| /' conftest.$ac_ext >&5
28571
Reid Spencera773bd52006-08-04 18:18:08 +000028572 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028573fi
Reid Spencera773bd52006-08-04 18:18:08 +000028574
28575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28576{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28577echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028578
Reid Spencer59473af2004-12-25 07:31:29 +000028579# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028580{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028582cat >conftest.$ac_ext <<_ACEOF
28583/* confdefs.h. */
28584_ACEOF
28585cat confdefs.h >>conftest.$ac_ext
28586cat >>conftest.$ac_ext <<_ACEOF
28587/* end confdefs.h. */
28588#include <$ac_header>
28589_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028590if { (ac_try="$ac_cpp conftest.$ac_ext"
28591case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28594esac
28595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028597 ac_status=$?
28598 grep -v '^ *+' conftest.er1 >conftest.err
28599 rm -f conftest.er1
28600 cat conftest.err >&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } >/dev/null; then
28603 if test -s conftest.err; then
28604 ac_cpp_err=$ac_c_preproc_warn_flag
28605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28606 else
28607 ac_cpp_err=
28608 fi
28609else
28610 ac_cpp_err=yes
28611fi
28612if test -z "$ac_cpp_err"; then
28613 ac_header_preproc=yes
28614else
28615 echo "$as_me: failed program was:" >&5
28616sed 's/^/| /' conftest.$ac_ext >&5
28617
28618 ac_header_preproc=no
28619fi
Reid Spencera773bd52006-08-04 18:18:08 +000028620
Reid Spencer59473af2004-12-25 07:31:29 +000028621rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28623echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028624
28625# So? What about this header?
28626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28627 yes:no: )
28628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28632 ac_header_preproc=yes
28633 ;;
28634 no:yes:* )
28635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28638echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28642echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028647 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028648## ----------------------------------- ##
28649## Report this to llvmbugs@cs.uiuc.edu ##
28650## ----------------------------------- ##
28651_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028652 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028653 ;;
28654esac
Reid Spencera773bd52006-08-04 18:18:08 +000028655{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028658 echo $ECHO_N "(cached) $ECHO_C" >&6
28659else
28660 eval "$as_ac_Header=\$ac_header_preproc"
28661fi
Reid Spencera773bd52006-08-04 18:18:08 +000028662ac_res=`eval echo '${'$as_ac_Header'}'`
28663 { echo "$as_me:$LINENO: result: $ac_res" >&5
28664echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028665
28666fi
Reid Spencer59473af2004-12-25 07:31:29 +000028667if test `eval echo '${'$as_ac_Header'}'` = yes; then
28668 cat >>confdefs.h <<_ACEOF
28669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028670_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028671
28672fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028673
Reid Spencer59473af2004-12-25 07:31:29 +000028674done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028675
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028676
28677
Reid Spencer59473af2004-12-25 07:31:29 +000028678
28679
28680
28681
Reid Spencercdb08a32006-06-05 16:11:07 +000028682for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028683do
28684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028689 echo $ECHO_N "(cached) $ECHO_C" >&6
28690fi
Reid Spencera773bd52006-08-04 18:18:08 +000028691ac_res=`eval echo '${'$as_ac_Header'}'`
28692 { echo "$as_me:$LINENO: result: $ac_res" >&5
28693echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028694else
28695 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028696{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028698cat >conftest.$ac_ext <<_ACEOF
28699/* confdefs.h. */
28700_ACEOF
28701cat confdefs.h >>conftest.$ac_ext
28702cat >>conftest.$ac_ext <<_ACEOF
28703/* end confdefs.h. */
28704$ac_includes_default
28705#include <$ac_header>
28706_ACEOF
28707rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028708if { (ac_try="$ac_compile"
28709case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28712esac
28713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028715 ac_status=$?
28716 grep -v '^ *+' conftest.er1 >conftest.err
28717 rm -f conftest.er1
28718 cat conftest.err >&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28722 { (case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28725esac
28726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028728 ac_status=$?
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; } &&
28731 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028732 { (case "(($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_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
28741 ac_header_compiler=yes
28742else
28743 echo "$as_me: failed program was:" >&5
28744sed 's/^/| /' conftest.$ac_ext >&5
28745
Reid Spencera773bd52006-08-04 18:18:08 +000028746 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028747fi
Reid Spencera773bd52006-08-04 18:18:08 +000028748
28749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28750{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28751echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028752
28753# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028754{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028756cat >conftest.$ac_ext <<_ACEOF
28757/* confdefs.h. */
28758_ACEOF
28759cat confdefs.h >>conftest.$ac_ext
28760cat >>conftest.$ac_ext <<_ACEOF
28761/* end confdefs.h. */
28762#include <$ac_header>
28763_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028764if { (ac_try="$ac_cpp conftest.$ac_ext"
28765case "(($ac_try" in
28766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28768esac
28769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028771 ac_status=$?
28772 grep -v '^ *+' conftest.er1 >conftest.err
28773 rm -f conftest.er1
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } >/dev/null; then
28777 if test -s conftest.err; then
28778 ac_cpp_err=$ac_c_preproc_warn_flag
28779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28780 else
28781 ac_cpp_err=
28782 fi
28783else
28784 ac_cpp_err=yes
28785fi
28786if test -z "$ac_cpp_err"; then
28787 ac_header_preproc=yes
28788else
28789 echo "$as_me: failed program was:" >&5
28790sed 's/^/| /' conftest.$ac_ext >&5
28791
28792 ac_header_preproc=no
28793fi
Reid Spencera773bd52006-08-04 18:18:08 +000028794
Reid Spencer59473af2004-12-25 07:31:29 +000028795rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028796{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28797echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028798
28799# So? What about this header?
28800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28801 yes:no: )
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28806 ac_header_preproc=yes
28807 ;;
28808 no:yes:* )
28809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28812echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28816echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028821 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028822## ----------------------------------- ##
28823## Report this to llvmbugs@cs.uiuc.edu ##
28824## ----------------------------------- ##
28825_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028826 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028827 ;;
28828esac
Reid Spencera773bd52006-08-04 18:18:08 +000028829{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028832 echo $ECHO_N "(cached) $ECHO_C" >&6
28833else
28834 eval "$as_ac_Header=\$ac_header_preproc"
28835fi
Reid Spencera773bd52006-08-04 18:18:08 +000028836ac_res=`eval echo '${'$as_ac_Header'}'`
28837 { echo "$as_me:$LINENO: result: $ac_res" >&5
28838echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028839
28840fi
28841if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842 cat >>confdefs.h <<_ACEOF
28843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28844_ACEOF
28845
28846fi
28847
28848done
28849
28850
28851
28852
28853
28854
Reid Spencercdb08a32006-06-05 16:11:07 +000028855for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028856do
28857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028862 echo $ECHO_N "(cached) $ECHO_C" >&6
28863fi
Reid Spencera773bd52006-08-04 18:18:08 +000028864ac_res=`eval echo '${'$as_ac_Header'}'`
28865 { echo "$as_me:$LINENO: result: $ac_res" >&5
28866echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028867else
28868 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028869{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028871cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028872/* confdefs.h. */
28873_ACEOF
28874cat confdefs.h >>conftest.$ac_ext
28875cat >>conftest.$ac_ext <<_ACEOF
28876/* end confdefs.h. */
28877$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028878#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028879_ACEOF
28880rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028881if { (ac_try="$ac_compile"
28882case "(($ac_try" in
28883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884 *) ac_try_echo=$ac_try;;
28885esac
28886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28887 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028888 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028889 grep -v '^ *+' conftest.er1 >conftest.err
28890 rm -f conftest.er1
28891 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28895 { (case "(($ac_try" in
28896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897 *) ac_try_echo=$ac_try;;
28898esac
28899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028901 ac_status=$?
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; } &&
28904 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028905 { (case "(($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_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028911 ac_status=$?
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; }; then
28914 ac_header_compiler=yes
28915else
28916 echo "$as_me: failed program was:" >&5
28917sed 's/^/| /' conftest.$ac_ext >&5
28918
Reid Spencera773bd52006-08-04 18:18:08 +000028919 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028920fi
Reid Spencera773bd52006-08-04 18:18:08 +000028921
28922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28923{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28924echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028925
28926# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028927{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028929cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028930/* confdefs.h. */
28931_ACEOF
28932cat confdefs.h >>conftest.$ac_ext
28933cat >>conftest.$ac_ext <<_ACEOF
28934/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028935#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028936_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028937if { (ac_try="$ac_cpp conftest.$ac_ext"
28938case "(($ac_try" in
28939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940 *) ac_try_echo=$ac_try;;
28941esac
28942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028944 ac_status=$?
28945 grep -v '^ *+' conftest.er1 >conftest.err
28946 rm -f conftest.er1
28947 cat conftest.err >&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } >/dev/null; then
28950 if test -s conftest.err; then
28951 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028953 else
28954 ac_cpp_err=
28955 fi
28956else
28957 ac_cpp_err=yes
28958fi
28959if test -z "$ac_cpp_err"; then
28960 ac_header_preproc=yes
28961else
28962 echo "$as_me: failed program was:" >&5
28963sed 's/^/| /' conftest.$ac_ext >&5
28964
28965 ac_header_preproc=no
28966fi
Reid Spencera773bd52006-08-04 18:18:08 +000028967
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028968rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028969{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28970echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028971
28972# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28974 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028979 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028980 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028981 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28989echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028994 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028995## ----------------------------------- ##
28996## Report this to llvmbugs@cs.uiuc.edu ##
28997## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028998_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028999 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029000 ;;
29001esac
Reid Spencera773bd52006-08-04 18:18:08 +000029002{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029005 echo $ECHO_N "(cached) $ECHO_C" >&6
29006else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029007 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029008fi
Reid Spencera773bd52006-08-04 18:18:08 +000029009ac_res=`eval echo '${'$as_ac_Header'}'`
29010 { echo "$as_me:$LINENO: result: $ac_res" >&5
29011echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029012
29013fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029014if test `eval echo '${'$as_ac_Header'}'` = yes; then
29015 cat >>confdefs.h <<_ACEOF
29016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029017_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029018
29019fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029020
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029021done
29022
John Criswell7ed43ad2004-07-19 16:12:29 +000029023
Reid Spencercdb08a32006-06-05 16:11:07 +000029024
Reid Spencera6d990a2006-09-14 06:17:21 +000029025
29026for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029027do
29028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029033 echo $ECHO_N "(cached) $ECHO_C" >&6
29034fi
Reid Spencera773bd52006-08-04 18:18:08 +000029035ac_res=`eval echo '${'$as_ac_Header'}'`
29036 { echo "$as_me:$LINENO: result: $ac_res" >&5
29037echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029038else
29039 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029040{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029042cat >conftest.$ac_ext <<_ACEOF
29043/* confdefs.h. */
29044_ACEOF
29045cat confdefs.h >>conftest.$ac_ext
29046cat >>conftest.$ac_ext <<_ACEOF
29047/* end confdefs.h. */
29048$ac_includes_default
29049#include <$ac_header>
29050_ACEOF
29051rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029052if { (ac_try="$ac_compile"
29053case "(($ac_try" in
29054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29055 *) ac_try_echo=$ac_try;;
29056esac
29057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29058 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029059 ac_status=$?
29060 grep -v '^ *+' conftest.er1 >conftest.err
29061 rm -f conftest.er1
29062 cat conftest.err >&5
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29066 { (case "(($ac_try" in
29067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068 *) ac_try_echo=$ac_try;;
29069esac
29070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029072 ac_status=$?
29073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074 (exit $ac_status); }; } &&
29075 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029076 { (case "(($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_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029082 ac_status=$?
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); }; }; then
29085 ac_header_compiler=yes
29086else
29087 echo "$as_me: failed program was:" >&5
29088sed 's/^/| /' conftest.$ac_ext >&5
29089
Reid Spencera773bd52006-08-04 18:18:08 +000029090 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029091fi
Reid Spencera773bd52006-08-04 18:18:08 +000029092
29093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29094{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29095echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029096
29097# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029098{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029100cat >conftest.$ac_ext <<_ACEOF
29101/* confdefs.h. */
29102_ACEOF
29103cat confdefs.h >>conftest.$ac_ext
29104cat >>conftest.$ac_ext <<_ACEOF
29105/* end confdefs.h. */
29106#include <$ac_header>
29107_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029108if { (ac_try="$ac_cpp conftest.$ac_ext"
29109case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29112esac
29113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029115 ac_status=$?
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } >/dev/null; then
29121 if test -s conftest.err; then
29122 ac_cpp_err=$ac_c_preproc_warn_flag
29123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29124 else
29125 ac_cpp_err=
29126 fi
29127else
29128 ac_cpp_err=yes
29129fi
29130if test -z "$ac_cpp_err"; then
29131 ac_header_preproc=yes
29132else
29133 echo "$as_me: failed program was:" >&5
29134sed 's/^/| /' conftest.$ac_ext >&5
29135
29136 ac_header_preproc=no
29137fi
Reid Spencera773bd52006-08-04 18:18:08 +000029138
Chris Lattner0b142592005-11-14 06:57:34 +000029139rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029140{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29141echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029142
29143# So? What about this header?
29144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29145 yes:no: )
29146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29150 ac_header_preproc=yes
29151 ;;
29152 no:yes:* )
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029165 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029166## ----------------------------------- ##
29167## Report this to llvmbugs@cs.uiuc.edu ##
29168## ----------------------------------- ##
29169_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029170 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029171 ;;
29172esac
Reid Spencera773bd52006-08-04 18:18:08 +000029173{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029176 echo $ECHO_N "(cached) $ECHO_C" >&6
29177else
29178 eval "$as_ac_Header=\$ac_header_preproc"
29179fi
Reid Spencera773bd52006-08-04 18:18:08 +000029180ac_res=`eval echo '${'$as_ac_Header'}'`
29181 { echo "$as_me:$LINENO: result: $ac_res" >&5
29182echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029183
29184fi
29185if test `eval echo '${'$as_ac_Header'}'` = yes; then
29186 cat >>confdefs.h <<_ACEOF
29187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29188_ACEOF
29189
29190fi
29191
29192done
29193
Reid Spencer0a262ba2005-08-24 10:07:20 +000029194if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029195 if test "${ac_cv_header_pthread_h+set}" = set; then
29196 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29197echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29198if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029199 echo $ECHO_N "(cached) $ECHO_C" >&6
29200fi
Reid Spencer1000b732006-12-01 00:37:14 +000029201{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29202echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029203else
29204 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029205{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29206echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029207cat >conftest.$ac_ext <<_ACEOF
29208/* confdefs.h. */
29209_ACEOF
29210cat confdefs.h >>conftest.$ac_ext
29211cat >>conftest.$ac_ext <<_ACEOF
29212/* end confdefs.h. */
29213$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029214#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029215_ACEOF
29216rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029217if { (ac_try="$ac_compile"
29218case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29221esac
29222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029224 ac_status=$?
29225 grep -v '^ *+' conftest.er1 >conftest.err
29226 rm -f conftest.er1
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29231 { (case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29234esac
29235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029241 { (case "(($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_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029247 ac_status=$?
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 ac_header_compiler=yes
29251else
29252 echo "$as_me: failed program was:" >&5
29253sed 's/^/| /' conftest.$ac_ext >&5
29254
Reid Spencera773bd52006-08-04 18:18:08 +000029255 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029256fi
Reid Spencera773bd52006-08-04 18:18:08 +000029257
29258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29260echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029261
29262# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029263{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29264echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029265cat >conftest.$ac_ext <<_ACEOF
29266/* confdefs.h. */
29267_ACEOF
29268cat confdefs.h >>conftest.$ac_ext
29269cat >>conftest.$ac_ext <<_ACEOF
29270/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029271#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029272_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029273if { (ac_try="$ac_cpp conftest.$ac_ext"
29274case "(($ac_try" in
29275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276 *) ac_try_echo=$ac_try;;
29277esac
29278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029280 ac_status=$?
29281 grep -v '^ *+' conftest.er1 >conftest.err
29282 rm -f conftest.er1
29283 cat conftest.err >&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } >/dev/null; then
29286 if test -s conftest.err; then
29287 ac_cpp_err=$ac_c_preproc_warn_flag
29288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29289 else
29290 ac_cpp_err=
29291 fi
29292else
29293 ac_cpp_err=yes
29294fi
29295if test -z "$ac_cpp_err"; then
29296 ac_header_preproc=yes
29297else
29298 echo "$as_me: failed program was:" >&5
29299sed 's/^/| /' conftest.$ac_ext >&5
29300
29301 ac_header_preproc=no
29302fi
Reid Spencera773bd52006-08-04 18:18:08 +000029303
Reid Spencer0a262ba2005-08-24 10:07:20 +000029304rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29306echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029307
29308# So? What about this header?
29309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29310 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029311 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29312echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29313 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29314echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029315 ac_header_preproc=yes
29316 ;;
29317 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029318 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29319echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29320 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29321echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29322 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29323echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29324 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29325echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29326 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29327echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29328 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29329echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029330 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029331## ----------------------------------- ##
29332## Report this to llvmbugs@cs.uiuc.edu ##
29333## ----------------------------------- ##
29334_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029335 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029336 ;;
29337esac
Reid Spencer1000b732006-12-01 00:37:14 +000029338{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29339echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29340if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029341 echo $ECHO_N "(cached) $ECHO_C" >&6
29342else
Reid Spencer1000b732006-12-01 00:37:14 +000029343 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029344fi
Reid Spencer1000b732006-12-01 00:37:14 +000029345{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29346echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029347
29348fi
Reid Spencer1000b732006-12-01 00:37:14 +000029349if test $ac_cv_header_pthread_h = yes; then
29350 HAVE_PTHREAD=1
29351
29352else
29353 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029354
29355fi
29356
Reid Spencer1000b732006-12-01 00:37:14 +000029357
29358else
29359 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029360
29361fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029362
29363
Reid Spencerb2ed05262006-11-03 18:04:08 +000029364
29365 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29366echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29367if test "${ac_cv_huge_val_sanity+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29369else
29370
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029371 ac_ext=cpp
29372ac_cpp='$CXXCPP $CPPFLAGS'
29373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029376
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029377 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029378 if test "$cross_compiling" = yes; then
29379 ac_cv_huge_val_sanity=yes
29380else
29381 cat >conftest.$ac_ext <<_ACEOF
29382/* confdefs.h. */
29383_ACEOF
29384cat confdefs.h >>conftest.$ac_ext
29385cat >>conftest.$ac_ext <<_ACEOF
29386/* end confdefs.h. */
29387#include <math.h>
29388int
29389main ()
29390{
29391double x = HUGE_VAL; return x != x;
29392 ;
29393 return 0;
29394}
29395_ACEOF
29396rm -f conftest$ac_exeext
29397if { (ac_try="$ac_link"
29398case "(($ac_try" in
29399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29400 *) ac_try_echo=$ac_try;;
29401esac
29402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403 (eval "$ac_link") 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29407 { (case "(($ac_try" in
29408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409 *) ac_try_echo=$ac_try;;
29410esac
29411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412 (eval "$ac_try") 2>&5
29413 ac_status=$?
29414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); }; }; then
29416 ac_cv_huge_val_sanity=yes
29417else
29418 echo "$as_me: program exited with status $ac_status" >&5
29419echo "$as_me: failed program was:" >&5
29420sed 's/^/| /' conftest.$ac_ext >&5
29421
29422( exit $ac_status )
29423ac_cv_huge_val_sanity=no
29424fi
29425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29426fi
29427
29428
29429 ac_ext=c
29430ac_cpp='$CPP $CPPFLAGS'
29431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29433ac_compiler_gnu=$ac_cv_c_compiler_gnu
29434
29435
29436fi
29437{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29438echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29439 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29440
29441
Reid Spencera773bd52006-08-04 18:18:08 +000029442{ echo "$as_me:$LINENO: checking for pid_t" >&5
29443echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029444if test "${ac_cv_type_pid_t+set}" = set; then
29445 echo $ECHO_N "(cached) $ECHO_C" >&6
29446else
29447 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029448/* confdefs.h. */
29449_ACEOF
29450cat confdefs.h >>conftest.$ac_ext
29451cat >>conftest.$ac_ext <<_ACEOF
29452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029453$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029454typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029455int
29456main ()
29457{
Reid Spencera773bd52006-08-04 18:18:08 +000029458if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029459 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029460if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029461 return 0;
29462 ;
29463 return 0;
29464}
29465_ACEOF
29466rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029467if { (ac_try="$ac_compile"
29468case "(($ac_try" in
29469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470 *) ac_try_echo=$ac_try;;
29471esac
29472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029474 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029475 grep -v '^ *+' conftest.er1 >conftest.err
29476 rm -f conftest.er1
29477 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29481 { (case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29484esac
29485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029487 ac_status=$?
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); }; } &&
29490 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029491 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
29500 ac_cv_type_pid_t=yes
29501else
29502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029503sed 's/^/| /' conftest.$ac_ext >&5
29504
Reid Spencera773bd52006-08-04 18:18:08 +000029505 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029506fi
Reid Spencera773bd52006-08-04 18:18:08 +000029507
29508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029509fi
Reid Spencera773bd52006-08-04 18:18:08 +000029510{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29511echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029512if test $ac_cv_type_pid_t = yes; then
29513 :
29514else
29515
29516cat >>confdefs.h <<_ACEOF
29517#define pid_t int
29518_ACEOF
29519
29520fi
29521
Reid Spencera773bd52006-08-04 18:18:08 +000029522{ echo "$as_me:$LINENO: checking for size_t" >&5
29523echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029524if test "${ac_cv_type_size_t+set}" = set; then
29525 echo $ECHO_N "(cached) $ECHO_C" >&6
29526else
29527 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029528/* confdefs.h. */
29529_ACEOF
29530cat confdefs.h >>conftest.$ac_ext
29531cat >>conftest.$ac_ext <<_ACEOF
29532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029533$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029534typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029535int
29536main ()
29537{
Reid Spencera773bd52006-08-04 18:18:08 +000029538if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029539 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029540if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029541 return 0;
29542 ;
29543 return 0;
29544}
29545_ACEOF
29546rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029547if { (ac_try="$ac_compile"
29548case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29551esac
29552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029555 grep -v '^ *+' conftest.er1 >conftest.err
29556 rm -f conftest.er1
29557 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29561 { (case "(($ac_try" in
29562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563 *) ac_try_echo=$ac_try;;
29564esac
29565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029567 ac_status=$?
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); }; } &&
29570 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029571 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029577 ac_status=$?
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; }; then
29580 ac_cv_type_size_t=yes
29581else
29582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029583sed 's/^/| /' conftest.$ac_ext >&5
29584
Reid Spencera773bd52006-08-04 18:18:08 +000029585 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029586fi
Reid Spencera773bd52006-08-04 18:18:08 +000029587
29588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029589fi
Reid Spencera773bd52006-08-04 18:18:08 +000029590{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29591echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029592if test $ac_cv_type_size_t = yes; then
29593 :
29594else
29595
29596cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029597#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029598_ACEOF
29599
29600fi
29601
Reid Spencera773bd52006-08-04 18:18:08 +000029602{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29603echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029604if test "${ac_cv_type_signal+set}" = set; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29606else
29607 cat >conftest.$ac_ext <<_ACEOF
29608/* confdefs.h. */
29609_ACEOF
29610cat confdefs.h >>conftest.$ac_ext
29611cat >>conftest.$ac_ext <<_ACEOF
29612/* end confdefs.h. */
29613#include <sys/types.h>
29614#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029615
29616int
29617main ()
29618{
Reid Spencera773bd52006-08-04 18:18:08 +000029619return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029620 ;
29621 return 0;
29622}
29623_ACEOF
29624rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029625if { (ac_try="$ac_compile"
29626case "(($ac_try" in
29627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29628 *) ac_try_echo=$ac_try;;
29629esac
29630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29631 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029632 ac_status=$?
29633 grep -v '^ *+' conftest.er1 >conftest.err
29634 rm -f conftest.er1
29635 cat conftest.err >&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29639 { (case "(($ac_try" in
29640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641 *) ac_try_echo=$ac_try;;
29642esac
29643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029645 ac_status=$?
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); }; } &&
29648 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029649 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029655 ac_status=$?
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029658 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029659else
29660 echo "$as_me: failed program was:" >&5
29661sed 's/^/| /' conftest.$ac_ext >&5
29662
Reid Spencera773bd52006-08-04 18:18:08 +000029663 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029664fi
Reid Spencera773bd52006-08-04 18:18:08 +000029665
29666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029667fi
Reid Spencera773bd52006-08-04 18:18:08 +000029668{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29669echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029670
29671cat >>confdefs.h <<_ACEOF
29672#define RETSIGTYPE $ac_cv_type_signal
29673_ACEOF
29674
29675
Reid Spencera773bd52006-08-04 18:18:08 +000029676{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29677echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029678if test "${ac_cv_struct_tm+set}" = set; then
29679 echo $ECHO_N "(cached) $ECHO_C" >&6
29680else
29681 cat >conftest.$ac_ext <<_ACEOF
29682/* confdefs.h. */
29683_ACEOF
29684cat confdefs.h >>conftest.$ac_ext
29685cat >>conftest.$ac_ext <<_ACEOF
29686/* end confdefs.h. */
29687#include <sys/types.h>
29688#include <time.h>
29689
29690int
29691main ()
29692{
29693struct tm *tp; tp->tm_sec;
29694 ;
29695 return 0;
29696}
29697_ACEOF
29698rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029699if { (ac_try="$ac_compile"
29700case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29703esac
29704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029706 ac_status=$?
29707 grep -v '^ *+' conftest.er1 >conftest.err
29708 rm -f conftest.er1
29709 cat conftest.err >&5
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29713 { (case "(($ac_try" in
29714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29715 *) ac_try_echo=$ac_try;;
29716esac
29717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29718 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029719 ac_status=$?
29720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721 (exit $ac_status); }; } &&
29722 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029723 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029729 ac_status=$?
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; }; then
29732 ac_cv_struct_tm=time.h
29733else
29734 echo "$as_me: failed program was:" >&5
29735sed 's/^/| /' conftest.$ac_ext >&5
29736
Reid Spencera773bd52006-08-04 18:18:08 +000029737 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029738fi
Reid Spencera773bd52006-08-04 18:18:08 +000029739
29740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029741fi
Reid Spencera773bd52006-08-04 18:18:08 +000029742{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29743echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029744if test $ac_cv_struct_tm = sys/time.h; then
29745
29746cat >>confdefs.h <<\_ACEOF
29747#define TM_IN_SYS_TIME 1
29748_ACEOF
29749
29750fi
29751
Reid Spencera773bd52006-08-04 18:18:08 +000029752{ echo "$as_me:$LINENO: checking for int64_t" >&5
29753echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029754if test "${ac_cv_type_int64_t+set}" = set; then
29755 echo $ECHO_N "(cached) $ECHO_C" >&6
29756else
29757 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029758/* confdefs.h. */
29759_ACEOF
29760cat confdefs.h >>conftest.$ac_ext
29761cat >>conftest.$ac_ext <<_ACEOF
29762/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029763$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029764typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029765int
29766main ()
29767{
Reid Spencera773bd52006-08-04 18:18:08 +000029768if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029769 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029770if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029771 return 0;
29772 ;
29773 return 0;
29774}
29775_ACEOF
29776rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029777if { (ac_try="$ac_compile"
29778case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29781esac
29782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029784 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029785 grep -v '^ *+' conftest.er1 >conftest.err
29786 rm -f conftest.er1
29787 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29791 { (case "(($ac_try" in
29792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793 *) ac_try_echo=$ac_try;;
29794esac
29795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29796 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029797 ac_status=$?
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; } &&
29800 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029801 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); }; }; then
29810 ac_cv_type_int64_t=yes
29811else
29812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029813sed 's/^/| /' conftest.$ac_ext >&5
29814
Reid Spencera773bd52006-08-04 18:18:08 +000029815 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029816fi
Reid Spencera773bd52006-08-04 18:18:08 +000029817
29818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029819fi
Reid Spencera773bd52006-08-04 18:18:08 +000029820{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29821echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029822if test $ac_cv_type_int64_t = yes; then
29823
29824cat >>confdefs.h <<_ACEOF
29825#define HAVE_INT64_T 1
29826_ACEOF
29827
29828
29829else
29830 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29831echo "$as_me: error: Type int64_t required but not found" >&2;}
29832 { (exit 1); exit 1; }; }
29833fi
29834
Reid Spencera773bd52006-08-04 18:18:08 +000029835{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29836echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029837if test "${ac_cv_type_uint64_t+set}" = set; then
29838 echo $ECHO_N "(cached) $ECHO_C" >&6
29839else
29840 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029841/* confdefs.h. */
29842_ACEOF
29843cat confdefs.h >>conftest.$ac_ext
29844cat >>conftest.$ac_ext <<_ACEOF
29845/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029846$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029847typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029848int
29849main ()
29850{
Reid Spencera773bd52006-08-04 18:18:08 +000029851if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029852 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029853if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029854 return 0;
29855 ;
29856 return 0;
29857}
29858_ACEOF
29859rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029860if { (ac_try="$ac_compile"
29861case "(($ac_try" in
29862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863 *) ac_try_echo=$ac_try;;
29864esac
29865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029867 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029868 grep -v '^ *+' conftest.er1 >conftest.err
29869 rm -f conftest.er1
29870 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29874 { (case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29877esac
29878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029880 ac_status=$?
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; } &&
29883 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029884 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029890 ac_status=$?
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); }; }; then
29893 ac_cv_type_uint64_t=yes
29894else
29895 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029896sed 's/^/| /' conftest.$ac_ext >&5
29897
Reid Spencera773bd52006-08-04 18:18:08 +000029898 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029899fi
Reid Spencera773bd52006-08-04 18:18:08 +000029900
29901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029902fi
Reid Spencera773bd52006-08-04 18:18:08 +000029903{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29904echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029905if test $ac_cv_type_uint64_t = yes; then
29906
29907cat >>confdefs.h <<_ACEOF
29908#define HAVE_UINT64_T 1
29909_ACEOF
29910
29911
29912else
Reid Spencera773bd52006-08-04 18:18:08 +000029913 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29914echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029915if test "${ac_cv_type_u_int64_t+set}" = set; then
29916 echo $ECHO_N "(cached) $ECHO_C" >&6
29917else
29918 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029919/* confdefs.h. */
29920_ACEOF
29921cat confdefs.h >>conftest.$ac_ext
29922cat >>conftest.$ac_ext <<_ACEOF
29923/* end confdefs.h. */
29924$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029925typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029926int
29927main ()
29928{
Reid Spencera773bd52006-08-04 18:18:08 +000029929if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029930 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029931if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029932 return 0;
29933 ;
29934 return 0;
29935}
29936_ACEOF
29937rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029938if { (ac_try="$ac_compile"
29939case "(($ac_try" in
29940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941 *) ac_try_echo=$ac_try;;
29942esac
29943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029945 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029946 grep -v '^ *+' conftest.er1 >conftest.err
29947 rm -f conftest.er1
29948 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29952 { (case "(($ac_try" in
29953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954 *) ac_try_echo=$ac_try;;
29955esac
29956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029958 ac_status=$?
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); }; } &&
29961 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029962 { (case "(($ac_try" in
29963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964 *) ac_try_echo=$ac_try;;
29965esac
29966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
29971 ac_cv_type_u_int64_t=yes
29972else
29973 echo "$as_me: failed program was:" >&5
29974sed 's/^/| /' conftest.$ac_ext >&5
29975
Reid Spencera773bd52006-08-04 18:18:08 +000029976 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029977fi
Reid Spencera773bd52006-08-04 18:18:08 +000029978
29979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029980fi
Reid Spencera773bd52006-08-04 18:18:08 +000029981{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29982echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029983if test $ac_cv_type_u_int64_t = yes; then
29984
29985cat >>confdefs.h <<_ACEOF
29986#define HAVE_U_INT64_T 1
29987_ACEOF
29988
29989
Misha Brukmanceca9042004-09-02 23:02:30 +000029990else
29991 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29992echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29993 { (exit 1); exit 1; }; }
29994fi
29995
John Criswell679ff312004-09-02 18:44:44 +000029996fi
29997
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029998
29999
30000
30001
30002
30003
30004
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030005
30006
Reid Spencerdf3be822006-01-23 08:15:53 +000030007for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030008do
30009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030010{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030013 echo $ECHO_N "(cached) $ECHO_C" >&6
30014else
30015 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030016/* confdefs.h. */
30017_ACEOF
30018cat confdefs.h >>conftest.$ac_ext
30019cat >>conftest.$ac_ext <<_ACEOF
30020/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30023#define $ac_func innocuous_$ac_func
30024
30025/* System header to define __stub macros and hopefully few prototypes,
30026 which can conflict with char $ac_func (); below.
30027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30028 <limits.h> exists even on freestanding compilers. */
30029
30030#ifdef __STDC__
30031# include <limits.h>
30032#else
30033# include <assert.h>
30034#endif
30035
30036#undef $ac_func
30037
Reid Spencera773bd52006-08-04 18:18:08 +000030038/* Override any GCC internal prototype to avoid an error.
30039 Use char because int might match the return type of a GCC
30040 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030041#ifdef __cplusplus
30042extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030043#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030044char $ac_func ();
30045/* The GNU C library defines this for functions which it implements
30046 to always fail with ENOSYS. Some functions are actually named
30047 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030048#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030049choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030050#endif
John Criswell7a73b802003-06-30 21:59:07 +000030051
John Criswell7a73b802003-06-30 21:59:07 +000030052int
30053main ()
30054{
Reid Spencera773bd52006-08-04 18:18:08 +000030055return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030056 ;
30057 return 0;
30058}
30059_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030060rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030061if { (ac_try="$ac_link"
30062case "(($ac_try" in
30063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064 *) ac_try_echo=$ac_try;;
30065esac
30066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030069 grep -v '^ *+' conftest.er1 >conftest.err
30070 rm -f conftest.er1
30071 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30075 { (case "(($ac_try" in
30076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077 *) ac_try_echo=$ac_try;;
30078esac
30079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030081 ac_status=$?
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030084 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030085 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030091 ac_status=$?
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030094 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030095else
30096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030097sed 's/^/| /' conftest.$ac_ext >&5
30098
Reid Spencera773bd52006-08-04 18:18:08 +000030099 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030100fi
Reid Spencera773bd52006-08-04 18:18:08 +000030101
30102rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030103 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030104fi
Reid Spencera773bd52006-08-04 18:18:08 +000030105ac_res=`eval echo '${'$as_ac_var'}'`
30106 { echo "$as_me:$LINENO: result: $ac_res" >&5
30107echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030108if test `eval echo '${'$as_ac_var'}'` = yes; then
30109 cat >>confdefs.h <<_ACEOF
30110#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030111_ACEOF
30112
30113fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030114done
John Criswell7a73b802003-06-30 21:59:07 +000030115
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030116
30117
30118
Reid Spencer6af3d262004-12-15 04:01:48 +000030119
30120
Reid Spencerb90645c2007-02-16 19:17:20 +000030121for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30122do
30123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30124{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30127 echo $ECHO_N "(cached) $ECHO_C" >&6
30128else
30129 cat >conftest.$ac_ext <<_ACEOF
30130/* confdefs.h. */
30131_ACEOF
30132cat confdefs.h >>conftest.$ac_ext
30133cat >>conftest.$ac_ext <<_ACEOF
30134/* end confdefs.h. */
30135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30137#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030138
Reid Spencerb90645c2007-02-16 19:17:20 +000030139/* System header to define __stub macros and hopefully few prototypes,
30140 which can conflict with char $ac_func (); below.
30141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30142 <limits.h> exists even on freestanding compilers. */
30143
30144#ifdef __STDC__
30145# include <limits.h>
30146#else
30147# include <assert.h>
30148#endif
30149
30150#undef $ac_func
30151
30152/* Override any GCC internal prototype to avoid an error.
30153 Use char because int might match the return type of a GCC
30154 builtin and then its argument prototype would still apply. */
30155#ifdef __cplusplus
30156extern "C"
30157#endif
30158char $ac_func ();
30159/* The GNU C library defines this for functions which it implements
30160 to always fail with ENOSYS. Some functions are actually named
30161 something starting with __ and the normal name is an alias. */
30162#if defined __stub_$ac_func || defined __stub___$ac_func
30163choke me
30164#endif
30165
30166int
30167main ()
30168{
30169return $ac_func ();
30170 ;
30171 return 0;
30172}
30173_ACEOF
30174rm -f conftest.$ac_objext conftest$ac_exeext
30175if { (ac_try="$ac_link"
30176case "(($ac_try" in
30177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178 *) ac_try_echo=$ac_try;;
30179esac
30180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181 (eval "$ac_link") 2>conftest.er1
30182 ac_status=$?
30183 grep -v '^ *+' conftest.er1 >conftest.err
30184 rm -f conftest.er1
30185 cat conftest.err >&5
30186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187 (exit $ac_status); } &&
30188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30189 { (case "(($ac_try" in
30190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30191 *) ac_try_echo=$ac_try;;
30192esac
30193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30194 (eval "$ac_try") 2>&5
30195 ac_status=$?
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); }; } &&
30198 { ac_try='test -s conftest$ac_exeext'
30199 { (case "(($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_try") 2>&5
30205 ac_status=$?
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); }; }; then
30208 eval "$as_ac_var=yes"
30209else
30210 echo "$as_me: failed program was:" >&5
30211sed 's/^/| /' conftest.$ac_ext >&5
30212
30213 eval "$as_ac_var=no"
30214fi
30215
30216rm -f core conftest.err conftest.$ac_objext \
30217 conftest$ac_exeext conftest.$ac_ext
30218fi
30219ac_res=`eval echo '${'$as_ac_var'}'`
30220 { echo "$as_me:$LINENO: result: $ac_res" >&5
30221echo "${ECHO_T}$ac_res" >&6; }
30222if test `eval echo '${'$as_ac_var'}'` = yes; then
30223 cat >>confdefs.h <<_ACEOF
30224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30225_ACEOF
30226
30227fi
30228done
30229
30230
30231
30232
30233for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030234do
30235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030236{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30238if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030239 echo $ECHO_N "(cached) $ECHO_C" >&6
30240else
30241 cat >conftest.$ac_ext <<_ACEOF
30242/* confdefs.h. */
30243_ACEOF
30244cat confdefs.h >>conftest.$ac_ext
30245cat >>conftest.$ac_ext <<_ACEOF
30246/* end confdefs.h. */
30247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30249#define $ac_func innocuous_$ac_func
30250
30251/* System header to define __stub macros and hopefully few prototypes,
30252 which can conflict with char $ac_func (); below.
30253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30254 <limits.h> exists even on freestanding compilers. */
30255
30256#ifdef __STDC__
30257# include <limits.h>
30258#else
30259# include <assert.h>
30260#endif
30261
30262#undef $ac_func
30263
Reid Spencera773bd52006-08-04 18:18:08 +000030264/* Override any GCC internal prototype to avoid an error.
30265 Use char because int might match the return type of a GCC
30266 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030267#ifdef __cplusplus
30268extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030269#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030270char $ac_func ();
30271/* The GNU C library defines this for functions which it implements
30272 to always fail with ENOSYS. Some functions are actually named
30273 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030274#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030275choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030276#endif
30277
30278int
30279main ()
30280{
Reid Spencera773bd52006-08-04 18:18:08 +000030281return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030282 ;
30283 return 0;
30284}
30285_ACEOF
30286rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030287if { (ac_try="$ac_link"
30288case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30291esac
30292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030294 ac_status=$?
30295 grep -v '^ *+' conftest.er1 >conftest.err
30296 rm -f conftest.er1
30297 cat conftest.err >&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30301 { (case "(($ac_try" in
30302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303 *) ac_try_echo=$ac_try;;
30304esac
30305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30306 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030307 ac_status=$?
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); }; } &&
30310 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030311 { (case "(($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_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030317 ac_status=$?
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; }; then
30320 eval "$as_ac_var=yes"
30321else
30322 echo "$as_me: failed program was:" >&5
30323sed 's/^/| /' conftest.$ac_ext >&5
30324
Reid Spencera773bd52006-08-04 18:18:08 +000030325 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030326fi
Reid Spencera773bd52006-08-04 18:18:08 +000030327
30328rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030329 conftest$ac_exeext conftest.$ac_ext
30330fi
Reid Spencera773bd52006-08-04 18:18:08 +000030331ac_res=`eval echo '${'$as_ac_var'}'`
30332 { echo "$as_me:$LINENO: result: $ac_res" >&5
30333echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030334if test `eval echo '${'$as_ac_var'}'` = yes; then
30335 cat >>confdefs.h <<_ACEOF
30336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30337_ACEOF
30338
30339fi
30340done
30341
30342
30343
30344
30345
30346
30347
30348
30349for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030350do
30351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030352{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30354if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030355 echo $ECHO_N "(cached) $ECHO_C" >&6
30356else
30357 cat >conftest.$ac_ext <<_ACEOF
30358/* confdefs.h. */
30359_ACEOF
30360cat confdefs.h >>conftest.$ac_ext
30361cat >>conftest.$ac_ext <<_ACEOF
30362/* end confdefs.h. */
30363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30365#define $ac_func innocuous_$ac_func
30366
30367/* System header to define __stub macros and hopefully few prototypes,
30368 which can conflict with char $ac_func (); below.
30369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30370 <limits.h> exists even on freestanding compilers. */
30371
30372#ifdef __STDC__
30373# include <limits.h>
30374#else
30375# include <assert.h>
30376#endif
30377
30378#undef $ac_func
30379
Reid Spencera773bd52006-08-04 18:18:08 +000030380/* Override any GCC internal prototype to avoid an error.
30381 Use char because int might match the return type of a GCC
30382 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030383#ifdef __cplusplus
30384extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030385#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030386char $ac_func ();
30387/* The GNU C library defines this for functions which it implements
30388 to always fail with ENOSYS. Some functions are actually named
30389 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030390#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030391choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030392#endif
30393
30394int
30395main ()
30396{
Reid Spencera773bd52006-08-04 18:18:08 +000030397return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030398 ;
30399 return 0;
30400}
30401_ACEOF
30402rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030403if { (ac_try="$ac_link"
30404case "(($ac_try" in
30405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406 *) ac_try_echo=$ac_try;;
30407esac
30408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030410 ac_status=$?
30411 grep -v '^ *+' conftest.er1 >conftest.err
30412 rm -f conftest.er1
30413 cat conftest.err >&5
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30417 { (case "(($ac_try" in
30418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419 *) ac_try_echo=$ac_try;;
30420esac
30421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030423 ac_status=$?
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); }; } &&
30426 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030427 { (case "(($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_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030433 ac_status=$?
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; }; then
30436 eval "$as_ac_var=yes"
30437else
30438 echo "$as_me: failed program was:" >&5
30439sed 's/^/| /' conftest.$ac_ext >&5
30440
Reid Spencera773bd52006-08-04 18:18:08 +000030441 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030442fi
Reid Spencera773bd52006-08-04 18:18:08 +000030443
30444rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030445 conftest$ac_exeext conftest.$ac_ext
30446fi
Reid Spencera773bd52006-08-04 18:18:08 +000030447ac_res=`eval echo '${'$as_ac_var'}'`
30448 { echo "$as_me:$LINENO: result: $ac_res" >&5
30449echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030450if test `eval echo '${'$as_ac_var'}'` = yes; then
30451 cat >>confdefs.h <<_ACEOF
30452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30453_ACEOF
30454
30455fi
30456done
30457
30458
Reid Spencerba46ca32004-12-31 05:49:15 +000030459
30460
Chris Lattner0b142592005-11-14 06:57:34 +000030461
Chris Lattner511f11d2005-11-14 07:25:50 +000030462for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030463do
30464as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030465{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30467if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030468 echo $ECHO_N "(cached) $ECHO_C" >&6
30469else
30470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030471/* confdefs.h. */
30472_ACEOF
30473cat confdefs.h >>conftest.$ac_ext
30474cat >>conftest.$ac_ext <<_ACEOF
30475/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30478#define $ac_func innocuous_$ac_func
30479
30480/* System header to define __stub macros and hopefully few prototypes,
30481 which can conflict with char $ac_func (); below.
30482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30483 <limits.h> exists even on freestanding compilers. */
30484
30485#ifdef __STDC__
30486# include <limits.h>
30487#else
30488# include <assert.h>
30489#endif
30490
30491#undef $ac_func
30492
Reid Spencera773bd52006-08-04 18:18:08 +000030493/* Override any GCC internal prototype to avoid an error.
30494 Use char because int might match the return type of a GCC
30495 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030496#ifdef __cplusplus
30497extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030498#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030499char $ac_func ();
30500/* The GNU C library defines this for functions which it implements
30501 to always fail with ENOSYS. Some functions are actually named
30502 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030503#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030504choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030505#endif
John Criswell7a73b802003-06-30 21:59:07 +000030506
John Criswell7a73b802003-06-30 21:59:07 +000030507int
30508main ()
30509{
Reid Spencera773bd52006-08-04 18:18:08 +000030510return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030511 ;
30512 return 0;
30513}
30514_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030515rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030516if { (ac_try="$ac_link"
30517case "(($ac_try" in
30518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30519 *) ac_try_echo=$ac_try;;
30520esac
30521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30522 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030523 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030524 grep -v '^ *+' conftest.er1 >conftest.err
30525 rm -f conftest.er1
30526 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30530 { (case "(($ac_try" in
30531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532 *) ac_try_echo=$ac_try;;
30533esac
30534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030536 ac_status=$?
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030539 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030540 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030546 ac_status=$?
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030549 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030550else
30551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030552sed 's/^/| /' conftest.$ac_ext >&5
30553
Reid Spencera773bd52006-08-04 18:18:08 +000030554 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030555fi
Reid Spencera773bd52006-08-04 18:18:08 +000030556
30557rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030558 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030559fi
Reid Spencera773bd52006-08-04 18:18:08 +000030560ac_res=`eval echo '${'$as_ac_var'}'`
30561 { echo "$as_me:$LINENO: result: $ac_res" >&5
30562echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030563if test `eval echo '${'$as_ac_var'}'` = yes; then
30564 cat >>confdefs.h <<_ACEOF
30565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030566_ACEOF
30567
30568fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030569done
John Criswell7a73b802003-06-30 21:59:07 +000030570
Reid Spencercdb08a32006-06-05 16:11:07 +000030571
30572
30573
30574
Reid Spencerafa22e22006-12-10 23:29:19 +000030575for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030576do
30577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030578{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30580if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030581 echo $ECHO_N "(cached) $ECHO_C" >&6
30582else
30583 cat >conftest.$ac_ext <<_ACEOF
30584/* confdefs.h. */
30585_ACEOF
30586cat confdefs.h >>conftest.$ac_ext
30587cat >>conftest.$ac_ext <<_ACEOF
30588/* end confdefs.h. */
30589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30591#define $ac_func innocuous_$ac_func
30592
30593/* System header to define __stub macros and hopefully few prototypes,
30594 which can conflict with char $ac_func (); below.
30595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30596 <limits.h> exists even on freestanding compilers. */
30597
30598#ifdef __STDC__
30599# include <limits.h>
30600#else
30601# include <assert.h>
30602#endif
30603
30604#undef $ac_func
30605
Reid Spencera773bd52006-08-04 18:18:08 +000030606/* Override any GCC internal prototype to avoid an error.
30607 Use char because int might match the return type of a GCC
30608 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030609#ifdef __cplusplus
30610extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030611#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030612char $ac_func ();
30613/* The GNU C library defines this for functions which it implements
30614 to always fail with ENOSYS. Some functions are actually named
30615 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030616#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030617choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030618#endif
30619
30620int
30621main ()
30622{
Reid Spencera773bd52006-08-04 18:18:08 +000030623return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030624 ;
30625 return 0;
30626}
30627_ACEOF
30628rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030629if { (ac_try="$ac_link"
30630case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30633esac
30634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030636 ac_status=$?
30637 grep -v '^ *+' conftest.er1 >conftest.err
30638 rm -f conftest.er1
30639 cat conftest.err >&5
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30643 { (case "(($ac_try" in
30644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30645 *) ac_try_echo=$ac_try;;
30646esac
30647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; } &&
30652 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030653 { (case "(($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_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }; then
30662 eval "$as_ac_var=yes"
30663else
30664 echo "$as_me: failed program was:" >&5
30665sed 's/^/| /' conftest.$ac_ext >&5
30666
Reid Spencera773bd52006-08-04 18:18:08 +000030667 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030668fi
Reid Spencera773bd52006-08-04 18:18:08 +000030669
30670rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030671 conftest$ac_exeext conftest.$ac_ext
30672fi
Reid Spencera773bd52006-08-04 18:18:08 +000030673ac_res=`eval echo '${'$as_ac_var'}'`
30674 { echo "$as_me:$LINENO: result: $ac_res" >&5
30675echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030676if test `eval echo '${'$as_ac_var'}'` = yes; then
30677 cat >>confdefs.h <<_ACEOF
30678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30679_ACEOF
30680
30681fi
30682done
30683
Reid Spencera773bd52006-08-04 18:18:08 +000030684{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30685echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030686if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030687 echo $ECHO_N "(cached) $ECHO_C" >&6
30688else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030689 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030690ac_cpp='$CPP $CPPFLAGS'
30691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30693ac_compiler_gnu=$ac_cv_c_compiler_gnu
30694
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030695 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030696 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030697else
30698 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030699
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030700 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030701_ACEOF
30702cat confdefs.h >>conftest.$ac_ext
30703cat >>conftest.$ac_ext <<_ACEOF
30704/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030705
John Criswella0137d32003-10-13 16:22:01 +000030706#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030707#include <stdlib.h>
30708
John Criswella0137d32003-10-13 16:22:01 +000030709int
30710main ()
30711{
30712
Reid Spencer2706f8c2004-09-19 23:53:36 +000030713volatile double A, B;
30714char Buffer[100];
30715A = 1;
30716A /= 10.0;
30717sprintf(Buffer, "%a", A);
30718B = atof(Buffer);
30719if (A != B)
30720 return (1);
30721if (A != 0x1.999999999999ap-4)
30722 return (1);
30723return (0);
John Criswella0137d32003-10-13 16:22:01 +000030724 ;
30725 return 0;
30726}
30727_ACEOF
30728rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030729if { (ac_try="$ac_link"
30730case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30733esac
30734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030736 ac_status=$?
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030739 { (case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30742esac
30743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030745 ac_status=$?
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030748 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030749else
30750 echo "$as_me: program exited with status $ac_status" >&5
30751echo "$as_me: failed program was:" >&5
30752sed 's/^/| /' conftest.$ac_ext >&5
30753
30754( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030755llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030756fi
Reid Spencera773bd52006-08-04 18:18:08 +000030757rm -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 +000030758fi
Reid Spencera773bd52006-08-04 18:18:08 +000030759
30760
Reid Spencer2706f8c2004-09-19 23:53:36 +000030761 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030762ac_cpp='$CPP $CPPFLAGS'
30763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30765ac_compiler_gnu=$ac_cv_c_compiler_gnu
30766
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030767fi
Reid Spencera773bd52006-08-04 18:18:08 +000030768{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30769echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030770 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030771
30772cat >>confdefs.h <<\_ACEOF
30773#define HAVE_PRINTF_A 1
30774_ACEOF
30775
Reid Spencer2706f8c2004-09-19 23:53:36 +000030776 fi
John Criswella0137d32003-10-13 16:22:01 +000030777
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030778# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30779# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030780{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30781echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030782if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030783 echo $ECHO_N "(cached) $ECHO_C" >&6
30784else
John Criswell0021c312004-02-13 21:57:29 +000030785 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030786/* confdefs.h. */
30787_ACEOF
30788cat confdefs.h >>conftest.$ac_ext
30789cat >>conftest.$ac_ext <<_ACEOF
30790/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030791#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030792int
30793main ()
30794{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030795char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030796 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030797 ;
30798 return 0;
30799}
30800_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030801rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030802if { (ac_try="$ac_link"
30803case "(($ac_try" in
30804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30805 *) ac_try_echo=$ac_try;;
30806esac
30807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30808 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030809 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030810 grep -v '^ *+' conftest.er1 >conftest.err
30811 rm -f conftest.er1
30812 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30816 { (case "(($ac_try" in
30817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30818 *) ac_try_echo=$ac_try;;
30819esac
30820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30821 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030822 ac_status=$?
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030825 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030826 { (case "(($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_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030832 ac_status=$?
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030835 ac_cv_working_alloca_h=yes
30836else
30837 echo "$as_me: failed program was:" >&5
30838sed 's/^/| /' conftest.$ac_ext >&5
30839
Reid Spencera773bd52006-08-04 18:18:08 +000030840 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030841fi
Reid Spencera773bd52006-08-04 18:18:08 +000030842
30843rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030844 conftest$ac_exeext conftest.$ac_ext
30845fi
Reid Spencera773bd52006-08-04 18:18:08 +000030846{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30847echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030848if test $ac_cv_working_alloca_h = yes; then
30849
30850cat >>confdefs.h <<\_ACEOF
30851#define HAVE_ALLOCA_H 1
30852_ACEOF
30853
30854fi
30855
Reid Spencera773bd52006-08-04 18:18:08 +000030856{ echo "$as_me:$LINENO: checking for alloca" >&5
30857echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030858if test "${ac_cv_func_alloca_works+set}" = set; then
30859 echo $ECHO_N "(cached) $ECHO_C" >&6
30860else
30861 cat >conftest.$ac_ext <<_ACEOF
30862/* confdefs.h. */
30863_ACEOF
30864cat confdefs.h >>conftest.$ac_ext
30865cat >>conftest.$ac_ext <<_ACEOF
30866/* end confdefs.h. */
30867#ifdef __GNUC__
30868# define alloca __builtin_alloca
30869#else
30870# ifdef _MSC_VER
30871# include <malloc.h>
30872# define alloca _alloca
30873# else
30874# if HAVE_ALLOCA_H
30875# include <alloca.h>
30876# else
30877# ifdef _AIX
30878 #pragma alloca
30879# else
30880# ifndef alloca /* predefined by HP cc +Olibcalls */
30881char *alloca ();
30882# endif
30883# endif
30884# endif
30885# endif
30886#endif
30887
30888int
30889main ()
30890{
30891char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030892 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030893 ;
30894 return 0;
30895}
30896_ACEOF
30897rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030898if { (ac_try="$ac_link"
30899case "(($ac_try" in
30900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901 *) ac_try_echo=$ac_try;;
30902esac
30903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030905 ac_status=$?
30906 grep -v '^ *+' conftest.er1 >conftest.err
30907 rm -f conftest.er1
30908 cat conftest.err >&5
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30912 { (case "(($ac_try" in
30913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914 *) ac_try_echo=$ac_try;;
30915esac
30916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030918 ac_status=$?
30919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920 (exit $ac_status); }; } &&
30921 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030922 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030928 ac_status=$?
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); }; }; then
30931 ac_cv_func_alloca_works=yes
30932else
30933 echo "$as_me: failed program was:" >&5
30934sed 's/^/| /' conftest.$ac_ext >&5
30935
Reid Spencera773bd52006-08-04 18:18:08 +000030936 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030937fi
Reid Spencera773bd52006-08-04 18:18:08 +000030938
30939rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030940 conftest$ac_exeext conftest.$ac_ext
30941fi
Reid Spencera773bd52006-08-04 18:18:08 +000030942{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30943echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030944
30945if test $ac_cv_func_alloca_works = yes; then
30946
30947cat >>confdefs.h <<\_ACEOF
30948#define HAVE_ALLOCA 1
30949_ACEOF
30950
30951else
30952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30953# that cause trouble. Some versions do not even contain alloca or
30954# contain a buggy version. If you still want to use their alloca,
30955# use ar to extract alloca.o from them instead of compiling alloca.c.
30956
Reid Spencera773bd52006-08-04 18:18:08 +000030957ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030958
30959cat >>confdefs.h <<\_ACEOF
30960#define C_ALLOCA 1
30961_ACEOF
30962
30963
Reid Spencera773bd52006-08-04 18:18:08 +000030964{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30965echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030966if test "${ac_cv_os_cray+set}" = set; then
30967 echo $ECHO_N "(cached) $ECHO_C" >&6
30968else
30969 cat >conftest.$ac_ext <<_ACEOF
30970/* confdefs.h. */
30971_ACEOF
30972cat confdefs.h >>conftest.$ac_ext
30973cat >>conftest.$ac_ext <<_ACEOF
30974/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030975#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030976webecray
30977#else
30978wenotbecray
30979#endif
30980
30981_ACEOF
30982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30983 $EGREP "webecray" >/dev/null 2>&1; then
30984 ac_cv_os_cray=yes
30985else
30986 ac_cv_os_cray=no
30987fi
30988rm -f conftest*
30989
30990fi
Reid Spencera773bd52006-08-04 18:18:08 +000030991{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30992echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030993if test $ac_cv_os_cray = yes; then
30994 for ac_func in _getb67 GETB67 getb67; do
30995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030999 echo $ECHO_N "(cached) $ECHO_C" >&6
31000else
31001 cat >conftest.$ac_ext <<_ACEOF
31002/* confdefs.h. */
31003_ACEOF
31004cat confdefs.h >>conftest.$ac_ext
31005cat >>conftest.$ac_ext <<_ACEOF
31006/* end confdefs.h. */
31007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31009#define $ac_func innocuous_$ac_func
31010
31011/* System header to define __stub macros and hopefully few prototypes,
31012 which can conflict with char $ac_func (); below.
31013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31014 <limits.h> exists even on freestanding compilers. */
31015
31016#ifdef __STDC__
31017# include <limits.h>
31018#else
31019# include <assert.h>
31020#endif
31021
31022#undef $ac_func
31023
Reid Spencera773bd52006-08-04 18:18:08 +000031024/* Override any GCC internal prototype to avoid an error.
31025 Use char because int might match the return type of a GCC
31026 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031027#ifdef __cplusplus
31028extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031029#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031030char $ac_func ();
31031/* The GNU C library defines this for functions which it implements
31032 to always fail with ENOSYS. Some functions are actually named
31033 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031034#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031035choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031036#endif
31037
31038int
31039main ()
31040{
Reid Spencera773bd52006-08-04 18:18:08 +000031041return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031042 ;
31043 return 0;
31044}
31045_ACEOF
31046rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031047if { (ac_try="$ac_link"
31048case "(($ac_try" in
31049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050 *) ac_try_echo=$ac_try;;
31051esac
31052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031054 ac_status=$?
31055 grep -v '^ *+' conftest.er1 >conftest.err
31056 rm -f conftest.er1
31057 cat conftest.err >&5
31058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31061 { (case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31064esac
31065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; } &&
31070 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031071 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; }; then
31080 eval "$as_ac_var=yes"
31081else
31082 echo "$as_me: failed program was:" >&5
31083sed 's/^/| /' conftest.$ac_ext >&5
31084
Reid Spencera773bd52006-08-04 18:18:08 +000031085 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031086fi
Reid Spencera773bd52006-08-04 18:18:08 +000031087
31088rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031089 conftest$ac_exeext conftest.$ac_ext
31090fi
Reid Spencera773bd52006-08-04 18:18:08 +000031091ac_res=`eval echo '${'$as_ac_var'}'`
31092 { echo "$as_me:$LINENO: result: $ac_res" >&5
31093echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031094if test `eval echo '${'$as_ac_var'}'` = yes; then
31095
31096cat >>confdefs.h <<_ACEOF
31097#define CRAY_STACKSEG_END $ac_func
31098_ACEOF
31099
31100 break
31101fi
31102
31103 done
31104fi
31105
Reid Spencera773bd52006-08-04 18:18:08 +000031106{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31107echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031108if test "${ac_cv_c_stack_direction+set}" = set; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31110else
31111 if test "$cross_compiling" = yes; then
31112 ac_cv_c_stack_direction=0
31113else
31114 cat >conftest.$ac_ext <<_ACEOF
31115/* confdefs.h. */
31116_ACEOF
31117cat confdefs.h >>conftest.$ac_ext
31118cat >>conftest.$ac_ext <<_ACEOF
31119/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031120$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031121int
31122find_stack_direction ()
31123{
31124 static char *addr = 0;
31125 auto char dummy;
31126 if (addr == 0)
31127 {
31128 addr = &dummy;
31129 return find_stack_direction ();
31130 }
John Criswell0021c312004-02-13 21:57:29 +000031131 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031132 return (&dummy > addr) ? 1 : -1;
31133}
John Criswell0021c312004-02-13 21:57:29 +000031134
John Criswell0021c312004-02-13 21:57:29 +000031135int
31136main ()
31137{
Reid Spencera773bd52006-08-04 18:18:08 +000031138 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031139}
31140_ACEOF
31141rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031142if { (ac_try="$ac_link"
31143case "(($ac_try" in
31144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145 *) ac_try_echo=$ac_try;;
31146esac
31147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031152 { (case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31155esac
31156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031161 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031162else
31163 echo "$as_me: program exited with status $ac_status" >&5
31164echo "$as_me: failed program was:" >&5
31165sed 's/^/| /' conftest.$ac_ext >&5
31166
31167( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031168ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031169fi
Reid Spencera773bd52006-08-04 18:18:08 +000031170rm -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 +000031171fi
Reid Spencera773bd52006-08-04 18:18:08 +000031172
31173
John Criswell0021c312004-02-13 21:57:29 +000031174fi
Reid Spencera773bd52006-08-04 18:18:08 +000031175{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31176echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031177
31178cat >>confdefs.h <<_ACEOF
31179#define STACK_DIRECTION $ac_cv_c_stack_direction
31180_ACEOF
31181
31182
John Criswell0021c312004-02-13 21:57:29 +000031183fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031184
31185
Reid Spencera773bd52006-08-04 18:18:08 +000031186{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31187echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031188if test "${ac_cv_func_rand48+set}" = set; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31190else
Reid Spencera773bd52006-08-04 18:18:08 +000031191 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031192ac_cpp='$CXXCPP $CPPFLAGS'
31193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31196
31197 cat >conftest.$ac_ext <<_ACEOF
31198/* confdefs.h. */
31199_ACEOF
31200cat confdefs.h >>conftest.$ac_ext
31201cat >>conftest.$ac_ext <<_ACEOF
31202/* end confdefs.h. */
31203#include <stdlib.h>
31204int
31205main ()
31206{
31207srand48(0);lrand48();drand48();
31208 ;
31209 return 0;
31210}
31211_ACEOF
31212rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031213if { (ac_try="$ac_compile"
31214case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31217esac
31218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220 ac_status=$?
31221 grep -v '^ *+' conftest.er1 >conftest.err
31222 rm -f conftest.er1
31223 cat conftest.err >&5
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31227 { (case "(($ac_try" in
31228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229 *) ac_try_echo=$ac_try;;
31230esac
31231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031233 ac_status=$?
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); }; } &&
31236 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031237 { (case "(($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_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031243 ac_status=$?
31244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); }; }; then
31246 ac_cv_func_rand48=yes
31247else
31248 echo "$as_me: failed program was:" >&5
31249sed 's/^/| /' conftest.$ac_ext >&5
31250
Reid Spencera773bd52006-08-04 18:18:08 +000031251 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031252fi
Reid Spencera773bd52006-08-04 18:18:08 +000031253
31254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031255 ac_ext=c
31256ac_cpp='$CPP $CPPFLAGS'
31257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31259ac_compiler_gnu=$ac_cv_c_compiler_gnu
31260
31261fi
Reid Spencera773bd52006-08-04 18:18:08 +000031262{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31263echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031264
31265if test "$ac_cv_func_rand48" = "yes" ; then
31266
31267cat >>confdefs.h <<\_ACEOF
31268#define HAVE_RAND48 1
31269_ACEOF
31270
31271fi
John Criswell0021c312004-02-13 21:57:29 +000031272
31273
Reid Spencera773bd52006-08-04 18:18:08 +000031274{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31275echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031276if test "${ac_cv_cxx_namespaces+set}" = set; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31278else
Reid Spencera773bd52006-08-04 18:18:08 +000031279 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031280ac_cpp='$CXXCPP $CPPFLAGS'
31281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31284
31285 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031286/* confdefs.h. */
31287_ACEOF
31288cat confdefs.h >>conftest.$ac_ext
31289cat >>conftest.$ac_ext <<_ACEOF
31290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031291namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031292int
31293main ()
31294{
31295using namespace Outer::Inner; return i;
31296 ;
31297 return 0;
31298}
31299_ACEOF
31300rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031301if { (ac_try="$ac_compile"
31302case "(($ac_try" in
31303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304 *) ac_try_echo=$ac_try;;
31305esac
31306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31307 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031308 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031309 grep -v '^ *+' conftest.er1 >conftest.err
31310 rm -f conftest.er1
31311 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31315 { (case "(($ac_try" in
31316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317 *) ac_try_echo=$ac_try;;
31318esac
31319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031321 ac_status=$?
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); }; } &&
31324 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031325 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031331 ac_status=$?
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; }; then
31334 ac_cv_cxx_namespaces=yes
31335else
31336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031337sed 's/^/| /' conftest.$ac_ext >&5
31338
Reid Spencera773bd52006-08-04 18:18:08 +000031339 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031340fi
Reid Spencera773bd52006-08-04 18:18:08 +000031341
31342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031343 ac_ext=c
31344ac_cpp='$CPP $CPPFLAGS'
31345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31347ac_compiler_gnu=$ac_cv_c_compiler_gnu
31348
31349
31350fi
Reid Spencera773bd52006-08-04 18:18:08 +000031351{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31352echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031353if test "$ac_cv_cxx_namespaces" = yes; then
31354
31355cat >>confdefs.h <<\_ACEOF
31356#define HAVE_NAMESPACES
31357_ACEOF
31358
31359fi
31360
Reid Spencera773bd52006-08-04 18:18:08 +000031361{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31362echo $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 +000031363if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031364 echo $ECHO_N "(cached) $ECHO_C" >&6
31365else
31366
Reid Spencera773bd52006-08-04 18:18:08 +000031367 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031368ac_cpp='$CXXCPP $CPPFLAGS'
31369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31372
31373 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031374/* confdefs.h. */
31375_ACEOF
31376cat confdefs.h >>conftest.$ac_ext
31377cat >>conftest.$ac_ext <<_ACEOF
31378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031379#include <ext/hash_map>
31380#ifdef HAVE_NAMESPACES
31381using namespace std;
31382#endif
John Criswell7a73b802003-06-30 21:59:07 +000031383int
31384main ()
31385{
Brian Gaeke90583492003-11-10 03:06:28 +000031386hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031387 ;
31388 return 0;
31389}
31390_ACEOF
31391rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031392if { (ac_try="$ac_compile"
31393case "(($ac_try" in
31394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31395 *) ac_try_echo=$ac_try;;
31396esac
31397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31398 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031399 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031400 grep -v '^ *+' conftest.er1 >conftest.err
31401 rm -f conftest.er1
31402 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31406 { (case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31409esac
31410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031412 ac_status=$?
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; } &&
31415 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031416 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031422 ac_status=$?
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031425 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031426else
31427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031428sed 's/^/| /' conftest.$ac_ext >&5
31429
Reid Spencera773bd52006-08-04 18:18:08 +000031430 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031431fi
Reid Spencera773bd52006-08-04 18:18:08 +000031432
31433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031434 ac_ext=c
31435ac_cpp='$CPP $CPPFLAGS'
31436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31438ac_compiler_gnu=$ac_cv_c_compiler_gnu
31439
John Criswell7a73b802003-06-30 21:59:07 +000031440fi
Reid Spencera773bd52006-08-04 18:18:08 +000031441{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31442echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031443 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31444 then
John Criswell9f011862004-09-24 18:28:00 +000031445
31446cat >>confdefs.h <<\_ACEOF
31447#define HAVE_STD_EXT_HASH_MAP 1
31448_ACEOF
31449
31450 else
31451
31452cat >>confdefs.h <<\_ACEOF
31453#define HAVE_STD_EXT_HASH_MAP 0
31454_ACEOF
31455
Brian Gaeke90583492003-11-10 03:06:28 +000031456 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031457
Reid Spencera773bd52006-08-04 18:18:08 +000031458 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31459echo $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 +000031460if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31461 echo $ECHO_N "(cached) $ECHO_C" >&6
31462else
31463
Reid Spencera773bd52006-08-04 18:18:08 +000031464 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031465ac_cpp='$CXXCPP $CPPFLAGS'
31466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31469
31470 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031471/* confdefs.h. */
31472_ACEOF
31473cat confdefs.h >>conftest.$ac_ext
31474cat >>conftest.$ac_ext <<_ACEOF
31475/* end confdefs.h. */
31476#include <ext/hash_map>
31477#ifdef HAVE_NAMESPACES
31478using namespace __gnu_cxx;
31479#endif
31480int
31481main ()
31482{
31483hash_map<int,int> t;
31484 ;
31485 return 0;
31486}
31487_ACEOF
31488rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031489if { (ac_try="$ac_compile"
31490case "(($ac_try" in
31491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31492 *) ac_try_echo=$ac_try;;
31493esac
31494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31495 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031497 grep -v '^ *+' conftest.er1 >conftest.err
31498 rm -f conftest.er1
31499 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31503 { (case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31506esac
31507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031509 ac_status=$?
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); }; } &&
31512 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031513 { (case "(($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_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031519 ac_status=$?
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); }; }; then
31522 ac_cv_cxx_have_gnu_ext_hash_map=yes
31523else
31524 echo "$as_me: failed program was:" >&5
31525sed 's/^/| /' conftest.$ac_ext >&5
31526
Reid Spencera773bd52006-08-04 18:18:08 +000031527 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031528fi
Reid Spencera773bd52006-08-04 18:18:08 +000031529
31530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031531 ac_ext=c
31532ac_cpp='$CPP $CPPFLAGS'
31533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31535ac_compiler_gnu=$ac_cv_c_compiler_gnu
31536
31537fi
Reid Spencera773bd52006-08-04 18:18:08 +000031538{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31539echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031540 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31541 then
John Criswell9f011862004-09-24 18:28:00 +000031542
31543cat >>confdefs.h <<\_ACEOF
31544#define HAVE_GNU_EXT_HASH_MAP 1
31545_ACEOF
31546
31547 else
31548
31549cat >>confdefs.h <<\_ACEOF
31550#define HAVE_GNU_EXT_HASH_MAP 0
31551_ACEOF
31552
Brian Gaeke90583492003-11-10 03:06:28 +000031553 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031554
Reid Spencera773bd52006-08-04 18:18:08 +000031555 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31556echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031557if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31558 echo $ECHO_N "(cached) $ECHO_C" >&6
31559else
John Criswell7a73b802003-06-30 21:59:07 +000031560
Reid Spencera773bd52006-08-04 18:18:08 +000031561 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031562ac_cpp='$CXXCPP $CPPFLAGS'
31563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31566
31567 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031568/* confdefs.h. */
31569_ACEOF
31570cat confdefs.h >>conftest.$ac_ext
31571cat >>conftest.$ac_ext <<_ACEOF
31572/* end confdefs.h. */
31573#include <hash_map>
31574int
31575main ()
31576{
31577hash_map<int,int> t;
31578 ;
31579 return 0;
31580}
31581_ACEOF
31582rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031583if { (ac_try="$ac_compile"
31584case "(($ac_try" in
31585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586 *) ac_try_echo=$ac_try;;
31587esac
31588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031590 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031591 grep -v '^ *+' conftest.er1 >conftest.err
31592 rm -f conftest.er1
31593 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31597 { (case "(($ac_try" in
31598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31599 *) ac_try_echo=$ac_try;;
31600esac
31601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31602 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031603 ac_status=$?
31604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605 (exit $ac_status); }; } &&
31606 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031607 { (case "(($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_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031613 ac_status=$?
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); }; }; then
31616 ac_cv_cxx_have_global_hash_map=yes
31617else
31618 echo "$as_me: failed program was:" >&5
31619sed 's/^/| /' conftest.$ac_ext >&5
31620
Reid Spencera773bd52006-08-04 18:18:08 +000031621 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031622fi
Reid Spencera773bd52006-08-04 18:18:08 +000031623
31624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031625 ac_ext=c
31626ac_cpp='$CPP $CPPFLAGS'
31627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31629ac_compiler_gnu=$ac_cv_c_compiler_gnu
31630
31631fi
Reid Spencera773bd52006-08-04 18:18:08 +000031632{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31633echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031634 if test "$ac_cv_cxx_have_global_hash_map" = yes
31635 then
John Criswell9f011862004-09-24 18:28:00 +000031636
31637cat >>confdefs.h <<\_ACEOF
31638#define HAVE_GLOBAL_HASH_MAP 1
31639_ACEOF
31640
31641 else
31642
31643cat >>confdefs.h <<\_ACEOF
31644#define HAVE_GLOBAL_HASH_MAP 0
31645_ACEOF
31646
Brian Gaeke90583492003-11-10 03:06:28 +000031647 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031648
Reid Spencera773bd52006-08-04 18:18:08 +000031649{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31650echo $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 +000031651if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031652 echo $ECHO_N "(cached) $ECHO_C" >&6
31653else
31654
Reid Spencera773bd52006-08-04 18:18:08 +000031655 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031656ac_cpp='$CXXCPP $CPPFLAGS'
31657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31660
31661 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031662/* confdefs.h. */
31663_ACEOF
31664cat confdefs.h >>conftest.$ac_ext
31665cat >>conftest.$ac_ext <<_ACEOF
31666/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031667#include <ext/hash_set>
31668#ifdef HAVE_NAMESPACES
31669using namespace std;
31670#endif
John Criswell7a73b802003-06-30 21:59:07 +000031671int
31672main ()
31673{
Brian Gaeke90583492003-11-10 03:06:28 +000031674hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031675 ;
31676 return 0;
31677}
31678_ACEOF
31679rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031680if { (ac_try="$ac_compile"
31681case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31684esac
31685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031688 grep -v '^ *+' conftest.er1 >conftest.err
31689 rm -f conftest.er1
31690 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31694 { (case "(($ac_try" in
31695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31696 *) ac_try_echo=$ac_try;;
31697esac
31698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31699 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031700 ac_status=$?
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); }; } &&
31703 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031704 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031710 ac_status=$?
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031713 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031714else
31715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031716sed 's/^/| /' conftest.$ac_ext >&5
31717
Reid Spencera773bd52006-08-04 18:18:08 +000031718 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031719fi
Reid Spencera773bd52006-08-04 18:18:08 +000031720
31721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031722 ac_ext=c
31723ac_cpp='$CPP $CPPFLAGS'
31724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31726ac_compiler_gnu=$ac_cv_c_compiler_gnu
31727
31728fi
Reid Spencera773bd52006-08-04 18:18:08 +000031729{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31730echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031731 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31732 then
John Criswell9f011862004-09-24 18:28:00 +000031733
31734cat >>confdefs.h <<\_ACEOF
31735#define HAVE_STD_EXT_HASH_SET 1
31736_ACEOF
31737
31738 else
31739
31740cat >>confdefs.h <<\_ACEOF
31741#define HAVE_STD_EXT_HASH_SET 0
31742_ACEOF
31743
Brian Gaeke90583492003-11-10 03:06:28 +000031744 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031745
Reid Spencera773bd52006-08-04 18:18:08 +000031746 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31747echo $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 +000031748if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31749 echo $ECHO_N "(cached) $ECHO_C" >&6
31750else
31751
Reid Spencera773bd52006-08-04 18:18:08 +000031752 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031753ac_cpp='$CXXCPP $CPPFLAGS'
31754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31757
John Criswell7a73b802003-06-30 21:59:07 +000031758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031759/* confdefs.h. */
31760_ACEOF
31761cat confdefs.h >>conftest.$ac_ext
31762cat >>conftest.$ac_ext <<_ACEOF
31763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031764#include <ext/hash_set>
31765#ifdef HAVE_NAMESPACES
31766using namespace __gnu_cxx;
31767#endif
John Criswell7a73b802003-06-30 21:59:07 +000031768int
31769main ()
31770{
Brian Gaeke90583492003-11-10 03:06:28 +000031771hash_set<int> t;
31772 ;
31773 return 0;
31774}
31775_ACEOF
31776rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031777if { (ac_try="$ac_compile"
31778case "(($ac_try" in
31779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31780 *) ac_try_echo=$ac_try;;
31781esac
31782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31783 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031784 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031785 grep -v '^ *+' conftest.er1 >conftest.err
31786 rm -f conftest.er1
31787 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31791 { (case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31794esac
31795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031797 ac_status=$?
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); }; } &&
31800 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031801 { (case "(($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_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031807 ac_status=$?
31808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); }; }; then
31810 ac_cv_cxx_have_gnu_ext_hash_set=yes
31811else
31812 echo "$as_me: failed program was:" >&5
31813sed 's/^/| /' conftest.$ac_ext >&5
31814
Reid Spencera773bd52006-08-04 18:18:08 +000031815 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031816fi
Reid Spencera773bd52006-08-04 18:18:08 +000031817
31818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031819 ac_ext=c
31820ac_cpp='$CPP $CPPFLAGS'
31821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31823ac_compiler_gnu=$ac_cv_c_compiler_gnu
31824
31825fi
Reid Spencera773bd52006-08-04 18:18:08 +000031826{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31827echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031828 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31829 then
John Criswell9f011862004-09-24 18:28:00 +000031830
31831cat >>confdefs.h <<\_ACEOF
31832#define HAVE_GNU_EXT_HASH_SET 1
31833_ACEOF
31834
31835 else
31836
31837cat >>confdefs.h <<\_ACEOF
31838#define HAVE_GNU_EXT_HASH_SET 0
31839_ACEOF
31840
Brian Gaeke90583492003-11-10 03:06:28 +000031841 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031842
Reid Spencera773bd52006-08-04 18:18:08 +000031843 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31844echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031845if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31846 echo $ECHO_N "(cached) $ECHO_C" >&6
31847else
31848
Reid Spencera773bd52006-08-04 18:18:08 +000031849 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031850ac_cpp='$CXXCPP $CPPFLAGS'
31851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31854
31855 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031856/* confdefs.h. */
31857_ACEOF
31858cat confdefs.h >>conftest.$ac_ext
31859cat >>conftest.$ac_ext <<_ACEOF
31860/* end confdefs.h. */
31861#include <hash_set>
31862int
31863main ()
31864{
John Criswell7a73b802003-06-30 21:59:07 +000031865hash_set<int> t; return 0;
31866 ;
31867 return 0;
31868}
31869_ACEOF
31870rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031871if { (ac_try="$ac_compile"
31872case "(($ac_try" in
31873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31874 *) ac_try_echo=$ac_try;;
31875esac
31876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31877 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031878 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031879 grep -v '^ *+' conftest.er1 >conftest.err
31880 rm -f conftest.er1
31881 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31885 { (case "(($ac_try" in
31886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31887 *) ac_try_echo=$ac_try;;
31888esac
31889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31890 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; } &&
31894 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031895 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031901 ac_status=$?
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031904 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031905else
31906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031907sed 's/^/| /' conftest.$ac_ext >&5
31908
Reid Spencera773bd52006-08-04 18:18:08 +000031909 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031910fi
Reid Spencera773bd52006-08-04 18:18:08 +000031911
31912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031913 ac_ext=c
31914ac_cpp='$CPP $CPPFLAGS'
31915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31917ac_compiler_gnu=$ac_cv_c_compiler_gnu
31918
John Criswell7a73b802003-06-30 21:59:07 +000031919fi
Reid Spencera773bd52006-08-04 18:18:08 +000031920{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31921echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031922 if test "$ac_cv_cxx_have_global_hash_set" = yes
31923 then
John Criswell9f011862004-09-24 18:28:00 +000031924
31925cat >>confdefs.h <<\_ACEOF
31926#define HAVE_GLOBAL_HASH_SET 1
31927_ACEOF
31928
31929 else
31930
31931cat >>confdefs.h <<\_ACEOF
31932#define HAVE_GLOBAL_HASH_SET 0
31933_ACEOF
31934
Brian Gaeke90583492003-11-10 03:06:28 +000031935 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031936
Reid Spencera773bd52006-08-04 18:18:08 +000031937{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31938echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031939if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31940 echo $ECHO_N "(cached) $ECHO_C" >&6
31941else
31942
Reid Spencera773bd52006-08-04 18:18:08 +000031943 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031944ac_cpp='$CXXCPP $CPPFLAGS'
31945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31948
31949 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031950/* confdefs.h. */
31951_ACEOF
31952cat confdefs.h >>conftest.$ac_ext
31953cat >>conftest.$ac_ext <<_ACEOF
31954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031955#include <iterator>
31956#ifdef HAVE_NAMESPACES
31957using namespace std;
31958#endif
John Criswell7a73b802003-06-30 21:59:07 +000031959int
31960main ()
31961{
31962iterator<int,int,int> t; return 0;
31963 ;
31964 return 0;
31965}
31966_ACEOF
31967rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031968if { (ac_try="$ac_compile"
31969case "(($ac_try" in
31970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31971 *) ac_try_echo=$ac_try;;
31972esac
31973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31974 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031975 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031976 grep -v '^ *+' conftest.er1 >conftest.err
31977 rm -f conftest.er1
31978 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31982 { (case "(($ac_try" in
31983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984 *) ac_try_echo=$ac_try;;
31985esac
31986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031988 ac_status=$?
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; } &&
31991 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031992 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031998 ac_status=$?
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); }; }; then
32001 ac_cv_cxx_have_std_iterator=yes
32002else
32003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032004sed 's/^/| /' conftest.$ac_ext >&5
32005
Reid Spencera773bd52006-08-04 18:18:08 +000032006 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032007fi
Reid Spencera773bd52006-08-04 18:18:08 +000032008
32009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032010 ac_ext=c
32011ac_cpp='$CPP $CPPFLAGS'
32012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32014ac_compiler_gnu=$ac_cv_c_compiler_gnu
32015
32016
32017fi
Reid Spencera773bd52006-08-04 18:18:08 +000032018{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32019echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032020if test "$ac_cv_cxx_have_std_iterator" = yes
32021then
John Criswell40468462004-09-24 21:19:06 +000032022
32023cat >>confdefs.h <<\_ACEOF
32024#define HAVE_STD_ITERATOR 1
32025_ACEOF
32026
32027else
32028
32029cat >>confdefs.h <<\_ACEOF
32030#define HAVE_STD_ITERATOR 0
32031_ACEOF
32032
John Criswell7a73b802003-06-30 21:59:07 +000032033fi
32034
Reid Spencera773bd52006-08-04 18:18:08 +000032035{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32036echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032037if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32038 echo $ECHO_N "(cached) $ECHO_C" >&6
32039else
32040
Reid Spencera773bd52006-08-04 18:18:08 +000032041 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032042ac_cpp='$CXXCPP $CPPFLAGS'
32043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32046
32047 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032048/* confdefs.h. */
32049_ACEOF
32050cat confdefs.h >>conftest.$ac_ext
32051cat >>conftest.$ac_ext <<_ACEOF
32052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032053#include <iterator>
32054#ifdef HAVE_NAMESPACES
32055using namespace std;
32056#endif
John Criswell7a73b802003-06-30 21:59:07 +000032057int
32058main ()
32059{
John Criswellc78022e2003-07-29 19:11:58 +000032060bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032061 ;
32062 return 0;
32063}
32064_ACEOF
32065rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032066if { (ac_try="$ac_compile"
32067case "(($ac_try" in
32068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32069 *) ac_try_echo=$ac_try;;
32070esac
32071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32072 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032073 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032074 grep -v '^ *+' conftest.er1 >conftest.err
32075 rm -f conftest.er1
32076 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32080 { (case "(($ac_try" in
32081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32082 *) ac_try_echo=$ac_try;;
32083esac
32084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32085 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032086 ac_status=$?
32087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088 (exit $ac_status); }; } &&
32089 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032090 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032096 ac_status=$?
32097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098 (exit $ac_status); }; }; then
32099 ac_cv_cxx_have_bi_iterator=yes
32100else
32101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032102sed 's/^/| /' conftest.$ac_ext >&5
32103
Reid Spencera773bd52006-08-04 18:18:08 +000032104 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032105fi
Reid Spencera773bd52006-08-04 18:18:08 +000032106
32107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032108 ac_ext=c
32109ac_cpp='$CPP $CPPFLAGS'
32110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32112ac_compiler_gnu=$ac_cv_c_compiler_gnu
32113
32114
32115fi
Reid Spencera773bd52006-08-04 18:18:08 +000032116{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32117echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032118if test "$ac_cv_cxx_have_bi_iterator" = yes
32119then
John Criswell40468462004-09-24 21:19:06 +000032120
32121cat >>confdefs.h <<\_ACEOF
32122#define HAVE_BI_ITERATOR 1
32123_ACEOF
32124
32125else
32126
32127cat >>confdefs.h <<\_ACEOF
32128#define HAVE_BI_ITERATOR 0
32129_ACEOF
32130
John Criswell7a73b802003-06-30 21:59:07 +000032131fi
32132
Reid Spencera773bd52006-08-04 18:18:08 +000032133{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32134echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032135if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32136 echo $ECHO_N "(cached) $ECHO_C" >&6
32137else
32138
Reid Spencera773bd52006-08-04 18:18:08 +000032139 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032140ac_cpp='$CXXCPP $CPPFLAGS'
32141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32144
32145 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032146/* confdefs.h. */
32147_ACEOF
32148cat confdefs.h >>conftest.$ac_ext
32149cat >>conftest.$ac_ext <<_ACEOF
32150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032151#include <iterator>
32152#ifdef HAVE_NAMESPACES
32153using namespace std;
32154#endif
John Criswell7a73b802003-06-30 21:59:07 +000032155int
32156main ()
32157{
John Criswellc78022e2003-07-29 19:11:58 +000032158forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032159 ;
32160 return 0;
32161}
32162_ACEOF
32163rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032164if { (ac_try="$ac_compile"
32165case "(($ac_try" in
32166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32167 *) ac_try_echo=$ac_try;;
32168esac
32169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32170 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032171 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032172 grep -v '^ *+' conftest.er1 >conftest.err
32173 rm -f conftest.er1
32174 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32178 { (case "(($ac_try" in
32179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32180 *) ac_try_echo=$ac_try;;
32181esac
32182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32183 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032184 ac_status=$?
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); }; } &&
32187 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032188 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032194 ac_status=$?
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); }; }; then
32197 ac_cv_cxx_have_fwd_iterator=yes
32198else
32199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032200sed 's/^/| /' conftest.$ac_ext >&5
32201
Reid Spencera773bd52006-08-04 18:18:08 +000032202 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032203fi
Reid Spencera773bd52006-08-04 18:18:08 +000032204
32205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032206 ac_ext=c
32207ac_cpp='$CPP $CPPFLAGS'
32208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32210ac_compiler_gnu=$ac_cv_c_compiler_gnu
32211
32212
32213fi
Reid Spencera773bd52006-08-04 18:18:08 +000032214{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32215echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032216if test "$ac_cv_cxx_have_fwd_iterator" = yes
32217then
John Criswell40468462004-09-24 21:19:06 +000032218
32219cat >>confdefs.h <<\_ACEOF
32220#define HAVE_FWD_ITERATOR 1
32221_ACEOF
32222
32223else
32224
32225cat >>confdefs.h <<\_ACEOF
32226#define HAVE_FWD_ITERATOR 0
32227_ACEOF
32228
John Criswell7a73b802003-06-30 21:59:07 +000032229fi
32230
32231
Reid Spencera773bd52006-08-04 18:18:08 +000032232{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32233echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032234if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32235 echo $ECHO_N "(cached) $ECHO_C" >&6
32236else
Reid Spencera773bd52006-08-04 18:18:08 +000032237 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032238ac_cpp='$CXXCPP $CPPFLAGS'
32239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32242
Reid Spencerabec8f92004-10-27 23:03:44 +000032243 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032244/* confdefs.h. */
32245_ACEOF
32246cat confdefs.h >>conftest.$ac_ext
32247cat >>conftest.$ac_ext <<_ACEOF
32248/* end confdefs.h. */
32249#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032250int
32251main ()
32252{
32253float f; isnan(f);
32254 ;
32255 return 0;
32256}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032257_ACEOF
32258rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032259if { (ac_try="$ac_compile"
32260case "(($ac_try" in
32261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32262 *) ac_try_echo=$ac_try;;
32263esac
32264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32265 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032266 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032267 grep -v '^ *+' conftest.er1 >conftest.err
32268 rm -f conftest.er1
32269 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32273 { (case "(($ac_try" in
32274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275 *) ac_try_echo=$ac_try;;
32276esac
32277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032279 ac_status=$?
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; } &&
32282 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032283 { (case "(($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_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; }; then
32292 ac_cv_func_isnan_in_math_h=yes
32293else
32294 echo "$as_me: failed program was:" >&5
32295sed 's/^/| /' conftest.$ac_ext >&5
32296
Reid Spencera773bd52006-08-04 18:18:08 +000032297 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032298fi
Reid Spencera773bd52006-08-04 18:18:08 +000032299
32300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032301 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032302ac_cpp='$CPP $CPPFLAGS'
32303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32305ac_compiler_gnu=$ac_cv_c_compiler_gnu
32306
32307fi
Reid Spencera773bd52006-08-04 18:18:08 +000032308{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32309echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032310
32311
32312if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032313
32314cat >>confdefs.h <<\_ACEOF
32315#define HAVE_ISNAN_IN_MATH_H 1
32316_ACEOF
32317
Reid Spencerabec8f92004-10-27 23:03:44 +000032318fi
32319
Reid Spencera773bd52006-08-04 18:18:08 +000032320{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32321echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032322if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32323 echo $ECHO_N "(cached) $ECHO_C" >&6
32324else
Reid Spencera773bd52006-08-04 18:18:08 +000032325 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032326ac_cpp='$CXXCPP $CPPFLAGS'
32327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32330
Reid Spencerabec8f92004-10-27 23:03:44 +000032331 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032332/* confdefs.h. */
32333_ACEOF
32334cat confdefs.h >>conftest.$ac_ext
32335cat >>conftest.$ac_ext <<_ACEOF
32336/* end confdefs.h. */
32337#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032338int
32339main ()
32340{
32341float f; isnan(f);
32342 ;
32343 return 0;
32344}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032345_ACEOF
32346rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032347if { (ac_try="$ac_compile"
32348case "(($ac_try" in
32349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32350 *) ac_try_echo=$ac_try;;
32351esac
32352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32353 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032354 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032355 grep -v '^ *+' conftest.er1 >conftest.err
32356 rm -f conftest.er1
32357 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32361 { (case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32364esac
32365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032367 ac_status=$?
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; } &&
32370 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032371 { (case "(($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_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032377 ac_status=$?
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); }; }; then
32380 ac_cv_func_isnan_in_cmath=yes
32381else
32382 echo "$as_me: failed program was:" >&5
32383sed 's/^/| /' conftest.$ac_ext >&5
32384
Reid Spencera773bd52006-08-04 18:18:08 +000032385 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032386fi
Reid Spencera773bd52006-08-04 18:18:08 +000032387
32388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032389 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032390ac_cpp='$CPP $CPPFLAGS'
32391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32393ac_compiler_gnu=$ac_cv_c_compiler_gnu
32394
32395fi
Reid Spencera773bd52006-08-04 18:18:08 +000032396{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32397echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032398
32399if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032400
32401cat >>confdefs.h <<\_ACEOF
32402#define HAVE_ISNAN_IN_CMATH 1
32403_ACEOF
32404
Reid Spencerabec8f92004-10-27 23:03:44 +000032405fi
32406
Reid Spencera773bd52006-08-04 18:18:08 +000032407{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32408echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032409if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32410 echo $ECHO_N "(cached) $ECHO_C" >&6
32411else
Reid Spencera773bd52006-08-04 18:18:08 +000032412 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032413ac_cpp='$CXXCPP $CPPFLAGS'
32414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32417
Reid Spencerabec8f92004-10-27 23:03:44 +000032418 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032419/* confdefs.h. */
32420_ACEOF
32421cat confdefs.h >>conftest.$ac_ext
32422cat >>conftest.$ac_ext <<_ACEOF
32423/* end confdefs.h. */
32424#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032425int
32426main ()
32427{
32428float f; std::isnan(f);
32429 ;
32430 return 0;
32431}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032432_ACEOF
32433rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032434if { (ac_try="$ac_compile"
32435case "(($ac_try" in
32436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32437 *) ac_try_echo=$ac_try;;
32438esac
32439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32440 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032442 grep -v '^ *+' conftest.er1 >conftest.err
32443 rm -f conftest.er1
32444 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32448 { (case "(($ac_try" in
32449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32450 *) ac_try_echo=$ac_try;;
32451esac
32452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32453 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032454 ac_status=$?
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); }; } &&
32457 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032458 { (case "(($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_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032464 ac_status=$?
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); }; }; then
32467 ac_cv_func_std_isnan_in_cmath=yes
32468else
32469 echo "$as_me: failed program was:" >&5
32470sed 's/^/| /' conftest.$ac_ext >&5
32471
Reid Spencera773bd52006-08-04 18:18:08 +000032472 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032473fi
Reid Spencera773bd52006-08-04 18:18:08 +000032474
32475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032476 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032477ac_cpp='$CPP $CPPFLAGS'
32478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32480ac_compiler_gnu=$ac_cv_c_compiler_gnu
32481
32482fi
Reid Spencera773bd52006-08-04 18:18:08 +000032483{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32484echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032485
32486if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032487
32488cat >>confdefs.h <<\_ACEOF
32489#define HAVE_STD_ISNAN_IN_CMATH 1
32490_ACEOF
32491
Reid Spencerabec8f92004-10-27 23:03:44 +000032492fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032493
32494
Reid Spencera773bd52006-08-04 18:18:08 +000032495{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32496echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032497if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32498 echo $ECHO_N "(cached) $ECHO_C" >&6
32499else
Reid Spencera773bd52006-08-04 18:18:08 +000032500 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032501ac_cpp='$CXXCPP $CPPFLAGS'
32502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32505
Reid Spencerabec8f92004-10-27 23:03:44 +000032506 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032507/* confdefs.h. */
32508_ACEOF
32509cat confdefs.h >>conftest.$ac_ext
32510cat >>conftest.$ac_ext <<_ACEOF
32511/* end confdefs.h. */
32512#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032513int
32514main ()
32515{
32516float f; isinf(f);
32517 ;
32518 return 0;
32519}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032520_ACEOF
32521rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032522if { (ac_try="$ac_compile"
32523case "(($ac_try" in
32524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525 *) ac_try_echo=$ac_try;;
32526esac
32527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032530 grep -v '^ *+' conftest.er1 >conftest.err
32531 rm -f conftest.er1
32532 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32536 { (case "(($ac_try" in
32537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538 *) ac_try_echo=$ac_try;;
32539esac
32540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32541 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032542 ac_status=$?
32543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544 (exit $ac_status); }; } &&
32545 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032546 { (case "(($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_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032552 ac_status=$?
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); }; }; then
32555 ac_cv_func_isinf_in_math_h=yes
32556else
32557 echo "$as_me: failed program was:" >&5
32558sed 's/^/| /' conftest.$ac_ext >&5
32559
Reid Spencera773bd52006-08-04 18:18:08 +000032560 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032561fi
Reid Spencera773bd52006-08-04 18:18:08 +000032562
32563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032564 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032565ac_cpp='$CPP $CPPFLAGS'
32566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32568ac_compiler_gnu=$ac_cv_c_compiler_gnu
32569
32570fi
Reid Spencera773bd52006-08-04 18:18:08 +000032571{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32572echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032573
32574if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032575
32576cat >>confdefs.h <<\_ACEOF
32577#define HAVE_ISINF_IN_MATH_H 1
32578_ACEOF
32579
Reid Spencerabec8f92004-10-27 23:03:44 +000032580fi
32581
Reid Spencera773bd52006-08-04 18:18:08 +000032582{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32583echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032584if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32585 echo $ECHO_N "(cached) $ECHO_C" >&6
32586else
Reid Spencera773bd52006-08-04 18:18:08 +000032587 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032588ac_cpp='$CXXCPP $CPPFLAGS'
32589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32592
Reid Spencerabec8f92004-10-27 23:03:44 +000032593 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032594/* confdefs.h. */
32595_ACEOF
32596cat confdefs.h >>conftest.$ac_ext
32597cat >>conftest.$ac_ext <<_ACEOF
32598/* end confdefs.h. */
32599#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032600int
32601main ()
32602{
32603float f; isinf(f);
32604 ;
32605 return 0;
32606}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032607_ACEOF
32608rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032609if { (ac_try="$ac_compile"
32610case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32613esac
32614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032616 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032617 grep -v '^ *+' conftest.er1 >conftest.err
32618 rm -f conftest.er1
32619 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32623 { (case "(($ac_try" in
32624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32625 *) ac_try_echo=$ac_try;;
32626esac
32627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32628 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032629 ac_status=$?
32630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32631 (exit $ac_status); }; } &&
32632 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032633 { (case "(($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_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032639 ac_status=$?
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); }; }; then
32642 ac_cv_func_isinf_in_cmath=yes
32643else
32644 echo "$as_me: failed program was:" >&5
32645sed 's/^/| /' conftest.$ac_ext >&5
32646
Reid Spencera773bd52006-08-04 18:18:08 +000032647 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032648fi
Reid Spencera773bd52006-08-04 18:18:08 +000032649
32650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032651 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032652ac_cpp='$CPP $CPPFLAGS'
32653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32655ac_compiler_gnu=$ac_cv_c_compiler_gnu
32656
32657fi
Reid Spencera773bd52006-08-04 18:18:08 +000032658{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32659echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032660
32661if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032662
32663cat >>confdefs.h <<\_ACEOF
32664#define HAVE_ISINF_IN_CMATH 1
32665_ACEOF
32666
Reid Spencerabec8f92004-10-27 23:03:44 +000032667fi
32668
Reid Spencera773bd52006-08-04 18:18:08 +000032669{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32670echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032671if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32672 echo $ECHO_N "(cached) $ECHO_C" >&6
32673else
Reid Spencera773bd52006-08-04 18:18:08 +000032674 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032675ac_cpp='$CXXCPP $CPPFLAGS'
32676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32679
Reid Spencerabec8f92004-10-27 23:03:44 +000032680 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032681/* confdefs.h. */
32682_ACEOF
32683cat confdefs.h >>conftest.$ac_ext
32684cat >>conftest.$ac_ext <<_ACEOF
32685/* end confdefs.h. */
32686#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032687int
32688main ()
32689{
32690float f; std::isinf(f)}
32691 ;
32692 return 0;
32693}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032694_ACEOF
32695rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032696if { (ac_try="$ac_compile"
32697case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32700esac
32701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032704 grep -v '^ *+' conftest.er1 >conftest.err
32705 rm -f conftest.er1
32706 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32710 { (case "(($ac_try" in
32711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712 *) ac_try_echo=$ac_try;;
32713esac
32714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032716 ac_status=$?
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); }; } &&
32719 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032720 { (case "(($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_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032726 ac_status=$?
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); }; }; then
32729 ac_cv_func_std_isinf_in_cmath=yes
32730else
32731 echo "$as_me: failed program was:" >&5
32732sed 's/^/| /' conftest.$ac_ext >&5
32733
Reid Spencera773bd52006-08-04 18:18:08 +000032734 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032735fi
Reid Spencera773bd52006-08-04 18:18:08 +000032736
32737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032738 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032739ac_cpp='$CPP $CPPFLAGS'
32740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32742ac_compiler_gnu=$ac_cv_c_compiler_gnu
32743
32744fi
Reid Spencera773bd52006-08-04 18:18:08 +000032745{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32746echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032747
32748if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032749
32750cat >>confdefs.h <<\_ACEOF
32751#define HAVE_STD_ISINF_IN_CMATH 1
32752_ACEOF
32753
Reid Spencerabec8f92004-10-27 23:03:44 +000032754fi
32755
Reid Spencera773bd52006-08-04 18:18:08 +000032756{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32757echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032758if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32759 echo $ECHO_N "(cached) $ECHO_C" >&6
32760else
Reid Spencera773bd52006-08-04 18:18:08 +000032761 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032762ac_cpp='$CXXCPP $CPPFLAGS'
32763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32766
Reid Spencerabec8f92004-10-27 23:03:44 +000032767 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032768/* confdefs.h. */
32769_ACEOF
32770cat confdefs.h >>conftest.$ac_ext
32771cat >>conftest.$ac_ext <<_ACEOF
32772/* end confdefs.h. */
32773#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032774int
32775main ()
32776{
32777float f; finite(f);
32778 ;
32779 return 0;
32780}
Brian Gaeked59a6472004-07-21 03:33:58 +000032781_ACEOF
32782rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032783if { (ac_try="$ac_compile"
32784case "(($ac_try" in
32785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786 *) ac_try_echo=$ac_try;;
32787esac
32788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032791 grep -v '^ *+' conftest.er1 >conftest.err
32792 rm -f conftest.er1
32793 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32797 { (case "(($ac_try" in
32798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799 *) ac_try_echo=$ac_try;;
32800esac
32801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032803 ac_status=$?
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); }; } &&
32806 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032807 { (case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32810esac
32811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032813 ac_status=$?
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; }; then
32816 ac_cv_func_finite_in_ieeefp_h=yes
32817else
32818 echo "$as_me: failed program was:" >&5
32819sed 's/^/| /' conftest.$ac_ext >&5
32820
Reid Spencera773bd52006-08-04 18:18:08 +000032821 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032822fi
Reid Spencera773bd52006-08-04 18:18:08 +000032823
32824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032825 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032826ac_cpp='$CPP $CPPFLAGS'
32827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829ac_compiler_gnu=$ac_cv_c_compiler_gnu
32830
32831fi
Reid Spencera773bd52006-08-04 18:18:08 +000032832{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32833echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032834
Brian Gaeke6802b552004-10-28 05:06:45 +000032835if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032836
32837cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032838#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032839_ACEOF
32840
Reid Spencerabec8f92004-10-27 23:03:44 +000032841fi
32842
32843
32844
Reid Spencer30fe5262007-01-20 07:48:49 +000032845if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032846
32847
32848for ac_header in stdlib.h unistd.h
32849do
32850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032855 echo $ECHO_N "(cached) $ECHO_C" >&6
32856fi
Reid Spencera773bd52006-08-04 18:18:08 +000032857ac_res=`eval echo '${'$as_ac_Header'}'`
32858 { echo "$as_me:$LINENO: result: $ac_res" >&5
32859echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032860else
32861 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032862{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032864cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032865/* confdefs.h. */
32866_ACEOF
32867cat confdefs.h >>conftest.$ac_ext
32868cat >>conftest.$ac_ext <<_ACEOF
32869/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032870$ac_includes_default
32871#include <$ac_header>
32872_ACEOF
32873rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032874if { (ac_try="$ac_compile"
32875case "(($ac_try" in
32876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877 *) ac_try_echo=$ac_try;;
32878esac
32879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032881 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032882 grep -v '^ *+' conftest.er1 >conftest.err
32883 rm -f conftest.er1
32884 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32888 { (case "(($ac_try" in
32889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890 *) ac_try_echo=$ac_try;;
32891esac
32892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32893 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; } &&
32897 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032898 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032904 ac_status=$?
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; }; then
32907 ac_header_compiler=yes
32908else
32909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032910sed 's/^/| /' conftest.$ac_ext >&5
32911
Reid Spencera773bd52006-08-04 18:18:08 +000032912 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032913fi
Reid Spencera773bd52006-08-04 18:18:08 +000032914
32915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32916{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32917echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032918
32919# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032920{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032922cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032923/* confdefs.h. */
32924_ACEOF
32925cat confdefs.h >>conftest.$ac_ext
32926cat >>conftest.$ac_ext <<_ACEOF
32927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032928#include <$ac_header>
32929_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032930if { (ac_try="$ac_cpp conftest.$ac_ext"
32931case "(($ac_try" in
32932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933 *) ac_try_echo=$ac_try;;
32934esac
32935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032937 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032938 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032939 rm -f conftest.er1
32940 cat conftest.err >&5
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); } >/dev/null; then
32943 if test -s conftest.err; then
32944 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032946 else
32947 ac_cpp_err=
32948 fi
32949else
32950 ac_cpp_err=yes
32951fi
32952if test -z "$ac_cpp_err"; then
32953 ac_header_preproc=yes
32954else
32955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032956sed 's/^/| /' conftest.$ac_ext >&5
32957
John Criswell7a73b802003-06-30 21:59:07 +000032958 ac_header_preproc=no
32959fi
Reid Spencera773bd52006-08-04 18:18:08 +000032960
John Criswell7a73b802003-06-30 21:59:07 +000032961rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032962{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32963echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032964
32965# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32967 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32969echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32971echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32972 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032973 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032974 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32976echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32978echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32980echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32982echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32986echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032987 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032988## ----------------------------------- ##
32989## Report this to llvmbugs@cs.uiuc.edu ##
32990## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032991_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032992 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032993 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032994esac
Reid Spencera773bd52006-08-04 18:18:08 +000032995{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032998 echo $ECHO_N "(cached) $ECHO_C" >&6
32999else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033000 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033001fi
Reid Spencera773bd52006-08-04 18:18:08 +000033002ac_res=`eval echo '${'$as_ac_Header'}'`
33003 { echo "$as_me:$LINENO: result: $ac_res" >&5
33004echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033005
33006fi
33007if test `eval echo '${'$as_ac_Header'}'` = yes; then
33008 cat >>confdefs.h <<_ACEOF
33009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33010_ACEOF
33011
33012fi
33013
33014done
33015
33016
33017for ac_func in getpagesize
33018do
33019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033020{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33022if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033023 echo $ECHO_N "(cached) $ECHO_C" >&6
33024else
33025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033026/* confdefs.h. */
33027_ACEOF
33028cat confdefs.h >>conftest.$ac_ext
33029cat >>conftest.$ac_ext <<_ACEOF
33030/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33033#define $ac_func innocuous_$ac_func
33034
John Criswell7a73b802003-06-30 21:59:07 +000033035/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033036 which can conflict with char $ac_func (); below.
33037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33038 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033039
John Criswell0c38eaf2003-09-10 15:17:25 +000033040#ifdef __STDC__
33041# include <limits.h>
33042#else
33043# include <assert.h>
33044#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033045
33046#undef $ac_func
33047
Reid Spencera773bd52006-08-04 18:18:08 +000033048/* Override any GCC internal prototype to avoid an error.
33049 Use char because int might match the return type of a GCC
33050 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033051#ifdef __cplusplus
33052extern "C"
33053#endif
John Criswell7a73b802003-06-30 21:59:07 +000033054char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033055/* The GNU C library defines this for functions which it implements
33056 to always fail with ENOSYS. Some functions are actually named
33057 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033058#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033059choke me
John Criswell7a73b802003-06-30 21:59:07 +000033060#endif
33061
John Criswell0c38eaf2003-09-10 15:17:25 +000033062int
33063main ()
33064{
Reid Spencera773bd52006-08-04 18:18:08 +000033065return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033066 ;
33067 return 0;
33068}
33069_ACEOF
33070rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033071if { (ac_try="$ac_link"
33072case "(($ac_try" in
33073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33074 *) ac_try_echo=$ac_try;;
33075esac
33076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33077 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033079 grep -v '^ *+' conftest.er1 >conftest.err
33080 rm -f conftest.er1
33081 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33085 { (case "(($ac_try" in
33086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33087 *) ac_try_echo=$ac_try;;
33088esac
33089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33090 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033091 ac_status=$?
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); }; } &&
33094 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033095 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033101 ac_status=$?
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; }; then
33104 eval "$as_ac_var=yes"
33105else
33106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033107sed 's/^/| /' conftest.$ac_ext >&5
33108
Reid Spencera773bd52006-08-04 18:18:08 +000033109 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033110fi
Reid Spencera773bd52006-08-04 18:18:08 +000033111
33112rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033113 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033114fi
Reid Spencera773bd52006-08-04 18:18:08 +000033115ac_res=`eval echo '${'$as_ac_var'}'`
33116 { echo "$as_me:$LINENO: result: $ac_res" >&5
33117echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033118if test `eval echo '${'$as_ac_var'}'` = yes; then
33119 cat >>confdefs.h <<_ACEOF
33120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33121_ACEOF
33122
33123fi
33124done
33125
Reid Spencera773bd52006-08-04 18:18:08 +000033126{ echo "$as_me:$LINENO: checking for working mmap" >&5
33127echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033128if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33129 echo $ECHO_N "(cached) $ECHO_C" >&6
33130else
33131 if test "$cross_compiling" = yes; then
33132 ac_cv_func_mmap_fixed_mapped=no
33133else
33134 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033135/* confdefs.h. */
33136_ACEOF
33137cat confdefs.h >>conftest.$ac_ext
33138cat >>conftest.$ac_ext <<_ACEOF
33139/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033140$ac_includes_default
33141/* malloc might have been renamed as rpl_malloc. */
33142#undef malloc
33143
33144/* Thanks to Mike Haertel and Jim Avera for this test.
33145 Here is a matrix of mmap possibilities:
33146 mmap private not fixed
33147 mmap private fixed at somewhere currently unmapped
33148 mmap private fixed at somewhere already mapped
33149 mmap shared not fixed
33150 mmap shared fixed at somewhere currently unmapped
33151 mmap shared fixed at somewhere already mapped
33152 For private mappings, we should verify that changes cannot be read()
33153 back from the file, nor mmap's back from the file at a different
33154 address. (There have been systems where private was not correctly
33155 implemented like the infamous i386 svr4.0, and systems where the
33156 VM page cache was not coherent with the file system buffer cache
33157 like early versions of FreeBSD and possibly contemporary NetBSD.)
33158 For shared mappings, we should conversely verify that changes get
33159 propagated back to all the places they're supposed to be.
33160
33161 Grep wants private fixed already mapped.
33162 The main things grep needs to know about mmap are:
33163 * does it exist and is it safe to write into the mmap'd area
33164 * how to use it (BSD variants) */
33165
33166#include <fcntl.h>
33167#include <sys/mman.h>
33168
33169#if !STDC_HEADERS && !HAVE_STDLIB_H
33170char *malloc ();
33171#endif
33172
33173/* This mess was copied from the GNU getpagesize.h. */
33174#if !HAVE_GETPAGESIZE
33175/* Assume that all systems that can run configure have sys/param.h. */
33176# if !HAVE_SYS_PARAM_H
33177# define HAVE_SYS_PARAM_H 1
33178# endif
33179
33180# ifdef _SC_PAGESIZE
33181# define getpagesize() sysconf(_SC_PAGESIZE)
33182# else /* no _SC_PAGESIZE */
33183# if HAVE_SYS_PARAM_H
33184# include <sys/param.h>
33185# ifdef EXEC_PAGESIZE
33186# define getpagesize() EXEC_PAGESIZE
33187# else /* no EXEC_PAGESIZE */
33188# ifdef NBPG
33189# define getpagesize() NBPG * CLSIZE
33190# ifndef CLSIZE
33191# define CLSIZE 1
33192# endif /* no CLSIZE */
33193# else /* no NBPG */
33194# ifdef NBPC
33195# define getpagesize() NBPC
33196# else /* no NBPC */
33197# ifdef PAGESIZE
33198# define getpagesize() PAGESIZE
33199# endif /* PAGESIZE */
33200# endif /* no NBPC */
33201# endif /* no NBPG */
33202# endif /* no EXEC_PAGESIZE */
33203# else /* no HAVE_SYS_PARAM_H */
33204# define getpagesize() 8192 /* punt totally */
33205# endif /* no HAVE_SYS_PARAM_H */
33206# endif /* no _SC_PAGESIZE */
33207
33208#endif /* no HAVE_GETPAGESIZE */
33209
33210int
33211main ()
33212{
33213 char *data, *data2, *data3;
33214 int i, pagesize;
33215 int fd;
33216
33217 pagesize = getpagesize ();
33218
33219 /* First, make a file with some known garbage in it. */
33220 data = (char *) malloc (pagesize);
33221 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033222 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033223 for (i = 0; i < pagesize; ++i)
33224 *(data + i) = rand ();
33225 umask (0);
33226 fd = creat ("conftest.mmap", 0600);
33227 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033228 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033229 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033230 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033231 close (fd);
33232
33233 /* Next, try to mmap the file at a fixed address which already has
33234 something else allocated at it. If we can, also make sure that
33235 we see the same garbage. */
33236 fd = open ("conftest.mmap", O_RDWR);
33237 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033238 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033239 data2 = (char *) malloc (2 * pagesize);
33240 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033241 return 1;
33242 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033243 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033244 MAP_PRIVATE | MAP_FIXED, fd, 0L))
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 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033248 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033249
33250 /* Finally, make sure that changes to the mapped area do not
33251 percolate back to the file as seen by read(). (This is a bug on
33252 some variants of i386 svr4.0.) */
33253 for (i = 0; i < pagesize; ++i)
33254 *(data2 + i) = *(data2 + i) + 1;
33255 data3 = (char *) malloc (pagesize);
33256 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033257 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033258 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033259 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033260 for (i = 0; i < pagesize; ++i)
33261 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033262 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033263 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033264 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033265}
33266_ACEOF
33267rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033268if { (ac_try="$ac_link"
33269case "(($ac_try" in
33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271 *) ac_try_echo=$ac_try;;
33272esac
33273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033275 ac_status=$?
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033278 { (case "(($ac_try" in
33279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33280 *) ac_try_echo=$ac_try;;
33281esac
33282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33283 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033284 ac_status=$?
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); }; }; then
33287 ac_cv_func_mmap_fixed_mapped=yes
33288else
33289 echo "$as_me: program exited with status $ac_status" >&5
33290echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033291sed 's/^/| /' conftest.$ac_ext >&5
33292
John Criswell7a73b802003-06-30 21:59:07 +000033293( exit $ac_status )
33294ac_cv_func_mmap_fixed_mapped=no
33295fi
Reid Spencera773bd52006-08-04 18:18:08 +000033296rm -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 +000033297fi
Reid Spencera773bd52006-08-04 18:18:08 +000033298
33299
John Criswell7a73b802003-06-30 21:59:07 +000033300fi
Reid Spencera773bd52006-08-04 18:18:08 +000033301{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33302echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033303if test $ac_cv_func_mmap_fixed_mapped = yes; then
33304
33305cat >>confdefs.h <<\_ACEOF
33306#define HAVE_MMAP 1
33307_ACEOF
33308
33309fi
33310rm -f conftest.mmap
33311
Reid Spencer30fe5262007-01-20 07:48:49 +000033312 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033313echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033314if test "${ac_cv_func_mmap_file+set}" = set; then
33315 echo $ECHO_N "(cached) $ECHO_C" >&6
33316else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033317 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033318ac_cpp='$CPP $CPPFLAGS'
33319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33321ac_compiler_gnu=$ac_cv_c_compiler_gnu
33322
33323 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033324 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033325else
33326 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033327
Reid Spencer777ce172004-09-20 04:09:56 +000033328 /* confdefs.h. */
33329_ACEOF
33330cat confdefs.h >>conftest.$ac_ext
33331cat >>conftest.$ac_ext <<_ACEOF
33332/* end confdefs.h. */
33333
John Criswell7a73b802003-06-30 21:59:07 +000033334#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033335#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033336#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033337
33338int
33339main ()
33340{
John Criswell7a73b802003-06-30 21:59:07 +000033341
33342 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033343 fd = creat ("foo",0777);
33344 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33345 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033346 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033347 ;
33348 return 0;
33349}
John Criswell7a73b802003-06-30 21:59:07 +000033350_ACEOF
33351rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033352if { (ac_try="$ac_link"
33353case "(($ac_try" in
33354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355 *) ac_try_echo=$ac_try;;
33356esac
33357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33358 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033362 { (case "(($ac_try" in
33363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364 *) ac_try_echo=$ac_try;;
33365esac
33366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033368 ac_status=$?
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); }; }; then
33371 ac_cv_func_mmap_file=yes
33372else
33373 echo "$as_me: program exited with status $ac_status" >&5
33374echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033375sed 's/^/| /' conftest.$ac_ext >&5
33376
John Criswell7a73b802003-06-30 21:59:07 +000033377( exit $ac_status )
33378ac_cv_func_mmap_file=no
33379fi
Reid Spencera773bd52006-08-04 18:18:08 +000033380rm -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 +000033381fi
Reid Spencera773bd52006-08-04 18:18:08 +000033382
33383
John Criswell7a73b802003-06-30 21:59:07 +000033384 ac_ext=c
33385ac_cpp='$CPP $CPPFLAGS'
33386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33388ac_compiler_gnu=$ac_cv_c_compiler_gnu
33389
33390
33391fi
Reid Spencera773bd52006-08-04 18:18:08 +000033392{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33393echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033394if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033395
33396cat >>confdefs.h <<\_ACEOF
33397#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033398_ACEOF
33399
33400 MMAP_FILE=yes
33401
33402fi
33403
Reid Spencer30fe5262007-01-20 07:48:49 +000033404 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033405echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033406if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33407 echo $ECHO_N "(cached) $ECHO_C" >&6
33408else
Reid Spencer582a23c2004-12-29 07:07:57 +000033409 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033410 ac_cv_need_dev_zero_for_mmap=yes
33411 else
33412 ac_cv_need_dev_zero_for_mmap=no
33413 fi
33414
33415fi
Reid Spencera773bd52006-08-04 18:18:08 +000033416{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33417echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033418if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33419
33420cat >>confdefs.h <<\_ACEOF
33421#define NEED_DEV_ZERO_FOR_MMAP 1
33422_ACEOF
33423
33424fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033425
Reid Spencer30fe5262007-01-20 07:48:49 +000033426 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33427 then
33428 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033429echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033430 fi
33431 if test "$ac_cv_func_mmap_file" = "no"
33432 then
33433 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033434echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033435 fi
John Criswellb13092b2003-07-22 21:00:24 +000033436fi
John Criswell7a73b802003-06-30 21:59:07 +000033437
33438
Reid Spencera773bd52006-08-04 18:18:08 +000033439{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33440echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033441if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33443else
33444 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033445if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033446 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033447 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33448 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033449 if test $? -eq 0 ; then
33450 llvm_cv_llvmgcc_sanity="yes"
33451 fi
33452 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033453fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033454fi
Reid Spencera773bd52006-08-04 18:18:08 +000033455{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33456echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033457
33458if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033459 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33460echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033461 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033462 LLVMCC1=$llvmcc1path
33463
Reid Spencer502935f2004-12-22 05:56:56 +000033464 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033465 LLVMCC1PLUS=$llvmcc1pluspath
33466
Reid Spencer502935f2004-12-22 05:56:56 +000033467 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33468 LLVMGCCDIR=$llvmgccdir
33469
Reid Spencer282d8c12006-12-21 22:55:41 +000033470 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33471 LLVMGCCLIBEXEC=$llvmgcclibexec
33472
Reid Spencerb5d75b82006-05-09 00:31:01 +000033473 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033474 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33475 LLVMGCC_VERSION=$llvmgccversion
33476
33477 LLVMGCC_MAJVERS=$llvmgccmajvers
33478
Reid Spencer0d238182007-04-21 21:28:52 +000033479 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33480 LLVMGCC_LANGS=$llvmgcclangs
33481
33482 { echo "$as_me:$LINENO: result: ok" >&5
33483echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033484fi
33485
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033486SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033487
33488
Reid Spencere9de0912004-08-20 09:03:57 +000033489# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033490# information into substitutions that will end up in Makefile.config.in
33491# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033492if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033493 prefix="/usr/local"
33494fi
Reid Spencere9de0912004-08-20 09:03:57 +000033495eval LLVM_PREFIX="${prefix}";
33496eval LLVM_BINDIR="${prefix}/bin";
33497eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033498eval LLVM_DATADIR="${prefix}/share/llvm";
33499eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33500eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033501eval LLVM_INCLUDEDIR="${prefix}/include";
33502eval LLVM_INFODIR="${prefix}/info";
33503eval LLVM_MANDIR="${prefix}/man";
33504LLVM_CONFIGTIME=`date`
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033516# Place the various directores into the config.h file as #defines so that we
33517# can know about the installation paths within LLVM.
33518
Reid Spencere9de0912004-08-20 09:03:57 +000033519cat >>confdefs.h <<_ACEOF
33520#define LLVM_PREFIX "$LLVM_PREFIX"
33521_ACEOF
33522
33523
33524cat >>confdefs.h <<_ACEOF
33525#define LLVM_BINDIR "$LLVM_BINDIR"
33526_ACEOF
33527
33528
33529cat >>confdefs.h <<_ACEOF
33530#define LLVM_LIBDIR "$LLVM_LIBDIR"
33531_ACEOF
33532
33533
33534cat >>confdefs.h <<_ACEOF
33535#define LLVM_DATADIR "$LLVM_DATADIR"
33536_ACEOF
33537
33538
33539cat >>confdefs.h <<_ACEOF
33540#define LLVM_DATADIR "$LLVM_DOCSDIR"
33541_ACEOF
33542
33543
33544cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033545#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033546_ACEOF
33547
33548
33549cat >>confdefs.h <<_ACEOF
33550#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33551_ACEOF
33552
33553
33554cat >>confdefs.h <<_ACEOF
33555#define LLVM_INFODIR "$LLVM_INFODIR"
33556_ACEOF
33557
33558
33559cat >>confdefs.h <<_ACEOF
33560#define LLVM_MANDIR "$LLVM_MANDIR"
33561_ACEOF
33562
33563
33564cat >>confdefs.h <<_ACEOF
33565#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33566_ACEOF
33567
33568
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033569
Reid Spencera773bd52006-08-04 18:18:08 +000033570ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033571
Reid Spencera773bd52006-08-04 18:18:08 +000033572ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033573
Reid Spencera773bd52006-08-04 18:18:08 +000033574ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033575
Reid Spencera773bd52006-08-04 18:18:08 +000033576ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033577
Reid Spencera773bd52006-08-04 18:18:08 +000033578ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033579
33580
Reid Spencera773bd52006-08-04 18:18:08 +000033581ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033582
33583
Reid Spencerea949cf2006-08-16 00:45:38 +000033584ac_config_files="$ac_config_files llvm.spec"
33585
33586
Reid Spencera773bd52006-08-04 18:18:08 +000033587ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033588
33589
Reid Spencera773bd52006-08-04 18:18:08 +000033590ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033591
33592
Reid Spencera773bd52006-08-04 18:18:08 +000033593ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033594
Reid Spencera773bd52006-08-04 18:18:08 +000033595ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033596
33597
Reid Spencera773bd52006-08-04 18:18:08 +000033598ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033599
33600
Reid Spencera773bd52006-08-04 18:18:08 +000033601ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033602
33603
Reid Spencera773bd52006-08-04 18:18:08 +000033604ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033605
33606
Reid Spencer8b2e1412006-11-17 03:32:33 +000033607ac_config_commands="$ac_config_commands runtime/Makefile"
33608
33609
Reid Spencera773bd52006-08-04 18:18:08 +000033610ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033611
33612
Reid Spencera773bd52006-08-04 18:18:08 +000033613ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033614
33615
Reid Spencera773bd52006-08-04 18:18:08 +000033616ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033617
33618
Reid Spencera773bd52006-08-04 18:18:08 +000033619ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033620
33621
Reid Spencera773bd52006-08-04 18:18:08 +000033622ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033623
33624
33625
John Criswell7a73b802003-06-30 21:59:07 +000033626cat >confcache <<\_ACEOF
33627# This file is a shell script that caches the results of configure
33628# tests run on this system so they can be shared between configure
33629# scripts and configure runs, see configure's option --config-cache.
33630# It is not useful on other systems. If it contains results you don't
33631# want to keep, you may remove or edit it.
33632#
33633# config.status only pays attention to the cache file if you give it
33634# the --recheck option to rerun configure.
33635#
John Criswell0c38eaf2003-09-10 15:17:25 +000033636# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033637# loading this file, other *unset* `ac_cv_foo' will be assigned the
33638# following values.
33639
33640_ACEOF
33641
33642# The following way of writing the cache mishandles newlines in values,
33643# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033644# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033645# Ultrix sh set writes to stderr and can't be redirected directly,
33646# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033647(
33648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33649 eval ac_val=\$$ac_var
33650 case $ac_val in #(
33651 *${as_nl}*)
33652 case $ac_var in #(
33653 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33654echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33655 esac
33656 case $ac_var in #(
33657 _ | IFS | as_nl) ;; #(
33658 *) $as_unset $ac_var ;;
33659 esac ;;
33660 esac
33661 done
33662
John Criswell7a73b802003-06-30 21:59:07 +000033663 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033664 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33665 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033666 # `set' does not quote correctly, so add quotes (double-quote
33667 # substitution turns \\\\ into \\, and sed turns \\ into \).
33668 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033669 "s/'/'\\\\''/g;
33670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033671 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033672 *)
33673 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033676 esac |
33677 sort
33678) |
John Criswell7a73b802003-06-30 21:59:07 +000033679 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033680 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033681 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033682 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33684 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033685 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33686 :end' >>confcache
33687if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33688 if test -w "$cache_file"; then
33689 test "x$cache_file" != "x/dev/null" &&
33690 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33691echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033692 cat confcache >$cache_file
33693 else
Reid Spencera773bd52006-08-04 18:18:08 +000033694 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33695echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033696 fi
33697fi
33698rm -f confcache
33699
33700test "x$prefix" = xNONE && prefix=$ac_default_prefix
33701# Let make expand exec_prefix.
33702test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33703
John Criswell7a73b802003-06-30 21:59:07 +000033704DEFS=-DHAVE_CONFIG_H
33705
John Criswell0c38eaf2003-09-10 15:17:25 +000033706ac_libobjs=
33707ac_ltlibobjs=
33708for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33709 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033710 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33711 ac_i=`echo "$ac_i" | sed "$ac_script"`
33712 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33713 # will be set to the directory where LIBOBJS objects are built.
33714 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33715 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033716done
33717LIBOBJS=$ac_libobjs
33718
33719LTLIBOBJS=$ac_ltlibobjs
33720
33721
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033722if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33723 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33724Usually this means the macro was only invoked conditionally." >&5
33725echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33726Usually this means the macro was only invoked conditionally." >&2;}
33727 { (exit 1); exit 1; }; }
33728fi
33729if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33730 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33731Usually this means the macro was only invoked conditionally." >&5
33732echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33733Usually this means the macro was only invoked conditionally." >&2;}
33734 { (exit 1); exit 1; }; }
33735fi
John Criswell7a73b802003-06-30 21:59:07 +000033736
33737: ${CONFIG_STATUS=./config.status}
33738ac_clean_files_save=$ac_clean_files
33739ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33740{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33741echo "$as_me: creating $CONFIG_STATUS" >&6;}
33742cat >$CONFIG_STATUS <<_ACEOF
33743#! $SHELL
33744# Generated by $as_me.
33745# Run this file to recreate the current configuration.
33746# Compiler output produced by configure, useful for debugging
33747# configure, is in config.log if it exists.
33748
33749debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033750ac_cs_recheck=false
33751ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033752SHELL=\${CONFIG_SHELL-$SHELL}
33753_ACEOF
33754
33755cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033756## --------------------- ##
33757## M4sh Initialization. ##
33758## --------------------- ##
33759
33760# Be Bourne compatible
33761if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33762 emulate sh
33763 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033764 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33765 # is contrary to our usage. Disable this feature.
33766 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033767 setopt NO_GLOB_SUBST
33768else
33769 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033770fi
Reid Spencera773bd52006-08-04 18:18:08 +000033771BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033772DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033773
John Criswell7a73b802003-06-30 21:59:07 +000033774
Reid Spencera773bd52006-08-04 18:18:08 +000033775# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033776# Avoid depending upon Character Ranges.
33777as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33778as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33779as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33780as_cr_digits='0123456789'
33781as_cr_alnum=$as_cr_Letters$as_cr_digits
33782
33783# The user is always right.
33784if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033785 echo "#! /bin/sh" >conf$$.sh
33786 echo "exit 0" >>conf$$.sh
33787 chmod +x conf$$.sh
33788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033789 PATH_SEPARATOR=';'
33790 else
33791 PATH_SEPARATOR=:
33792 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033793 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033794fi
33795
Reid Spencera773bd52006-08-04 18:18:08 +000033796# Support unset when possible.
33797if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33798 as_unset=unset
33799else
33800 as_unset=false
33801fi
John Criswell7a73b802003-06-30 21:59:07 +000033802
Reid Spencera773bd52006-08-04 18:18:08 +000033803
33804# IFS
33805# We need space, tab and new line, in precisely that order. Quoting is
33806# there to prevent editors from complaining about space-tab.
33807# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33808# splitting by setting IFS to empty value.)
33809as_nl='
33810'
33811IFS=" "" $as_nl"
33812
33813# Find who we are. Look in the path if we contain no directory separator.
33814case $0 in
33815 *[\\/]* ) as_myself=$0 ;;
33816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033817for as_dir in $PATH
33818do
33819 IFS=$as_save_IFS
33820 test -z "$as_dir" && as_dir=.
33821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33822done
Reid Spencera773bd52006-08-04 18:18:08 +000033823IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033824
Reid Spencera773bd52006-08-04 18:18:08 +000033825 ;;
33826esac
33827# We did not find ourselves, most probably we were run as `sh COMMAND'
33828# in which case we are not to be found in the path.
33829if test "x$as_myself" = x; then
33830 as_myself=$0
33831fi
33832if test ! -f "$as_myself"; then
33833 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33834 { (exit 1); exit 1; }
33835fi
33836
33837# Work around bugs in pre-3.0 UWIN ksh.
33838for as_var in ENV MAIL MAILPATH
33839do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33840done
33841PS1='$ '
33842PS2='> '
33843PS4='+ '
33844
33845# NLS nuisances.
33846for as_var in \
33847 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33848 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33849 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033850do
Reid Spencera773bd52006-08-04 18:18:08 +000033851 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33852 eval $as_var=C; export $as_var
33853 else
33854 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33855 fi
33856done
33857
33858# Required to use basename.
33859if expr a : '\(a\)' >/dev/null 2>&1 &&
33860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33861 as_expr=expr
33862else
33863 as_expr=false
33864fi
33865
33866if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33867 as_basename=basename
33868else
33869 as_basename=false
33870fi
33871
33872
33873# Name of the executable.
33874as_me=`$as_basename -- "$0" ||
33875$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33876 X"$0" : 'X\(//\)$' \| \
33877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33878echo X/"$0" |
33879 sed '/^.*\/\([^/][^/]*\)\/*$/{
33880 s//\1/
33881 q
33882 }
33883 /^X\/\(\/\/\)$/{
33884 s//\1/
33885 q
33886 }
33887 /^X\/\(\/\).*/{
33888 s//\1/
33889 q
33890 }
33891 s/.*/./; q'`
33892
33893# CDPATH.
33894$as_unset CDPATH
33895
33896
33897
John Criswell7a73b802003-06-30 21:59:07 +000033898 as_lineno_1=$LINENO
33899 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033900 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033901 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033902
33903 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33904 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033905 # line-number line after each line using $LINENO; the second 'sed'
33906 # does the real work. The second script uses 'N' to pair each
33907 # line-number line with the line containing $LINENO, and appends
33908 # trailing '-' during substitution so that $LINENO is not a special
33909 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033911 # scripts with optimization help from Paolo Bonzini. Blame Lee
33912 # E. McMahon (1931-1989) for sed's syntax. :-)
33913 sed -n '
33914 p
33915 /[$]LINENO/=
33916 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033917 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033918 s/[$]LINENO.*/&-/
33919 t lineno
33920 b
33921 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033922 N
Reid Spencera773bd52006-08-04 18:18:08 +000033923 :loop
33924 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033925 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033926 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033927 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033928 chmod +x "$as_me.lineno" ||
33929 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033930 { (exit 1); exit 1; }; }
33931
33932 # Don't try to exec as it changes $[0], causing all sort of problems
33933 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033934 # original and so on. Autoconf is especially sensitive to this).
33935 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033936 # Exit status is that of the last command.
33937 exit
33938}
33939
33940
Reid Spencera773bd52006-08-04 18:18:08 +000033941if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33942 as_dirname=dirname
33943else
33944 as_dirname=false
33945fi
33946
33947ECHO_C= ECHO_N= ECHO_T=
33948case `echo -n x` in
33949-n*)
33950 case `echo 'x\c'` in
33951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33952 *) ECHO_C='\c';;
33953 esac;;
33954*)
33955 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033956esac
33957
Reid Spencera773bd52006-08-04 18:18:08 +000033958if expr a : '\(a\)' >/dev/null 2>&1 &&
33959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033960 as_expr=expr
33961else
33962 as_expr=false
33963fi
33964
33965rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033966if test -d conf$$.dir; then
33967 rm -f conf$$.dir/conf$$.file
33968else
33969 rm -f conf$$.dir
33970 mkdir conf$$.dir
33971fi
John Criswell7a73b802003-06-30 21:59:07 +000033972echo >conf$$.file
33973if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033974 as_ln_s='ln -s'
33975 # ... but there are two gotchas:
33976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33978 # In both cases, we have to default to `cp -p'.
33979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033980 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033981elif ln conf$$.file conf$$ 2>/dev/null; then
33982 as_ln_s=ln
33983else
33984 as_ln_s='cp -p'
33985fi
Reid Spencera773bd52006-08-04 18:18:08 +000033986rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33987rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033988
John Criswell0c38eaf2003-09-10 15:17:25 +000033989if mkdir -p . 2>/dev/null; then
33990 as_mkdir_p=:
33991else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033992 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033993 as_mkdir_p=false
33994fi
33995
Reid Spencera773bd52006-08-04 18:18:08 +000033996# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33997# systems may use methods other than mode bits to determine executability.
33998cat >conf$$.file <<_ASEOF
33999#! /bin/sh
34000exit 0
34001_ASEOF
34002chmod +x conf$$.file
34003if test -x conf$$.file >/dev/null 2>&1; then
34004 as_executable_p="test -x"
34005else
34006 as_executable_p=:
34007fi
34008rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034009
34010# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034011as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034012
34013# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034014as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034015
34016
John Criswell7a73b802003-06-30 21:59:07 +000034017exec 6>&1
34018
Reid Spencera773bd52006-08-04 18:18:08 +000034019# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034020# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034021# values after options handling.
34022ac_log="
Tanya Lattner692aa5a2007-05-08 04:32:07 +000034023This file was extended by llvm $as_me 2.1cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034024generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034025
34026 CONFIG_FILES = $CONFIG_FILES
34027 CONFIG_HEADERS = $CONFIG_HEADERS
34028 CONFIG_LINKS = $CONFIG_LINKS
34029 CONFIG_COMMANDS = $CONFIG_COMMANDS
34030 $ $0 $@
34031
Reid Spencera773bd52006-08-04 18:18:08 +000034032on `(hostname || uname -n) 2>/dev/null | sed 1q`
34033"
34034
John Criswell7a73b802003-06-30 21:59:07 +000034035_ACEOF
34036
Reid Spencera773bd52006-08-04 18:18:08 +000034037cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034038# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034039config_files="$ac_config_files"
34040config_headers="$ac_config_headers"
34041config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034042
Reid Spencera773bd52006-08-04 18:18:08 +000034043_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034044
34045cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034046ac_cs_usage="\
34047\`$as_me' instantiates files from templates according to the
34048current configuration.
34049
34050Usage: $0 [OPTIONS] [FILE]...
34051
34052 -h, --help print this help, then exit
34053 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034054 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034055 -d, --debug don't remove temporary files
34056 --recheck update $as_me by reconfiguring in the same conditions
34057 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034058 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034059 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034060 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034061
34062Configuration files:
34063$config_files
34064
34065Configuration headers:
34066$config_headers
34067
John Criswellc764fbc2003-09-06 15:17:13 +000034068Configuration commands:
34069$config_commands
34070
John Criswell7a73b802003-06-30 21:59:07 +000034071Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034072
Reid Spencera773bd52006-08-04 18:18:08 +000034073_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034074cat >>$CONFIG_STATUS <<_ACEOF
34075ac_cs_version="\\
Tanya Lattner692aa5a2007-05-08 04:32:07 +000034076llvm config.status 2.1cvs
Reid Spencera773bd52006-08-04 18:18:08 +000034077configured by $0, generated by GNU Autoconf 2.60,
34078 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034079
Reid Spencera773bd52006-08-04 18:18:08 +000034080Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034081This config.status script is free software; the Free Software Foundation
34082gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034083
34084ac_pwd='$ac_pwd'
34085srcdir='$srcdir'
34086INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034087_ACEOF
34088
34089cat >>$CONFIG_STATUS <<\_ACEOF
34090# If no file are specified by the user, then we need to provide default
34091# value. By we need to know if files were specified by the user.
34092ac_need_defaults=:
34093while test $# != 0
34094do
34095 case $1 in
34096 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034099 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034100 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034101 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034102 ac_option=$1
34103 ac_optarg=$2
34104 ac_shift=shift
34105 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034106 esac
34107
John Criswell0c38eaf2003-09-10 15:17:25 +000034108 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034109 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34111 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034112 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34113 echo "$ac_cs_version"; exit ;;
34114 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034115 debug=: ;;
34116 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034117 $ac_shift
34118 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034119 ac_need_defaults=false;;
34120 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034121 $ac_shift
34122 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034123 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034124 --he | --h)
34125 # Conflict between --help and --header
34126 { echo "$as_me: error: ambiguous option: $1
34127Try \`$0 --help' for more information." >&2
34128 { (exit 1); exit 1; }; };;
34129 --help | --hel | -h )
34130 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34133 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034134
34135 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034136 -*) { echo "$as_me: error: unrecognized option: $1
34137Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034138 { (exit 1); exit 1; }; } ;;
34139
Reid Spencera773bd52006-08-04 18:18:08 +000034140 *) ac_config_targets="$ac_config_targets $1"
34141 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034142
34143 esac
34144 shift
34145done
34146
John Criswell0c38eaf2003-09-10 15:17:25 +000034147ac_configure_extra_args=
34148
34149if $ac_cs_silent; then
34150 exec 6>/dev/null
34151 ac_configure_extra_args="$ac_configure_extra_args --silent"
34152fi
34153
34154_ACEOF
34155cat >>$CONFIG_STATUS <<_ACEOF
34156if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034157 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34158 CONFIG_SHELL=$SHELL
34159 export CONFIG_SHELL
34160 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034161fi
34162
John Criswell7a73b802003-06-30 21:59:07 +000034163_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034164cat >>$CONFIG_STATUS <<\_ACEOF
34165exec 5>>config.log
34166{
34167 echo
34168 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34169## Running $as_me. ##
34170_ASBOX
34171 echo "$ac_log"
34172} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034173
Reid Spencera773bd52006-08-04 18:18:08 +000034174_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034175cat >>$CONFIG_STATUS <<_ACEOF
34176#
Reid Spencera773bd52006-08-04 18:18:08 +000034177# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034178#
Reid Spencerc0682832005-02-24 19:05:19 +000034179llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034180
34181_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034182
John Criswell7a73b802003-06-30 21:59:07 +000034183cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034184
34185# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034186for ac_config_target in $ac_config_targets
34187do
Reid Spencera773bd52006-08-04 18:18:08 +000034188 case $ac_config_target in
34189 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34190 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34191 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34192 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34193 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34194 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034195 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034196 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34197 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34198 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34199 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34200 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34201 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34202 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034203 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034204 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34205 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34206 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34207 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34208 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34209
John Criswell7a73b802003-06-30 21:59:07 +000034210 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34211echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34212 { (exit 1); exit 1; }; };;
34213 esac
34214done
34215
Reid Spencera773bd52006-08-04 18:18:08 +000034216
John Criswell7a73b802003-06-30 21:59:07 +000034217# If the user did not use the arguments to specify the items to instantiate,
34218# then the envvar interface is used. Set only those that are not.
34219# We use the long form for the default assignment because of an extremely
34220# bizarre bug on SunOS 4.1.3.
34221if $ac_need_defaults; then
34222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034225fi
34226
John Criswell0c38eaf2003-09-10 15:17:25 +000034227# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034228# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034229# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034230# Hook for its removal unless debugging.
34231# Note that there is a small window in which the directory will not be cleaned:
34232# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034233$debug ||
34234{
Reid Spencera773bd52006-08-04 18:18:08 +000034235 tmp=
34236 trap 'exit_status=$?
34237 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34238' 0
John Criswell7a73b802003-06-30 21:59:07 +000034239 trap '{ (exit 1); exit 1; }' 1 2 13 15
34240}
John Criswell7a73b802003-06-30 21:59:07 +000034241# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034242
John Criswell7a73b802003-06-30 21:59:07 +000034243{
Reid Spencera773bd52006-08-04 18:18:08 +000034244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034245 test -n "$tmp" && test -d "$tmp"
34246} ||
34247{
Reid Spencera773bd52006-08-04 18:18:08 +000034248 tmp=./conf$$-$RANDOM
34249 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034250} ||
34251{
John Criswell0c38eaf2003-09-10 15:17:25 +000034252 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034253 { (exit 1); exit 1; }
34254}
34255
John Criswell7a73b802003-06-30 21:59:07 +000034256#
Reid Spencera773bd52006-08-04 18:18:08 +000034257# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034258#
34259
34260# No need to generate the scripts if there are no CONFIG_FILES.
34261# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034262if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034263
34264_ACEOF
34265
Reid Spencera773bd52006-08-04 18:18:08 +000034266
34267
34268ac_delim='%!_!# '
34269for ac_last_try in false false false false false :; do
34270 cat >conf$$subs.sed <<_ACEOF
34271SHELL!$SHELL$ac_delim
34272PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34273PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34274PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34275PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34276PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34277PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34278exec_prefix!$exec_prefix$ac_delim
34279prefix!$prefix$ac_delim
34280program_transform_name!$program_transform_name$ac_delim
34281bindir!$bindir$ac_delim
34282sbindir!$sbindir$ac_delim
34283libexecdir!$libexecdir$ac_delim
34284datarootdir!$datarootdir$ac_delim
34285datadir!$datadir$ac_delim
34286sysconfdir!$sysconfdir$ac_delim
34287sharedstatedir!$sharedstatedir$ac_delim
34288localstatedir!$localstatedir$ac_delim
34289includedir!$includedir$ac_delim
34290oldincludedir!$oldincludedir$ac_delim
34291docdir!$docdir$ac_delim
34292infodir!$infodir$ac_delim
34293htmldir!$htmldir$ac_delim
34294dvidir!$dvidir$ac_delim
34295pdfdir!$pdfdir$ac_delim
34296psdir!$psdir$ac_delim
34297libdir!$libdir$ac_delim
34298localedir!$localedir$ac_delim
34299mandir!$mandir$ac_delim
34300DEFS!$DEFS$ac_delim
34301ECHO_C!$ECHO_C$ac_delim
34302ECHO_N!$ECHO_N$ac_delim
34303ECHO_T!$ECHO_T$ac_delim
34304LIBS!$LIBS$ac_delim
34305build_alias!$build_alias$ac_delim
34306host_alias!$host_alias$ac_delim
34307target_alias!$target_alias$ac_delim
34308LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34309subdirs!$subdirs$ac_delim
34310build!$build$ac_delim
34311build_cpu!$build_cpu$ac_delim
34312build_vendor!$build_vendor$ac_delim
34313build_os!$build_os$ac_delim
34314host!$host$ac_delim
34315host_cpu!$host_cpu$ac_delim
34316host_vendor!$host_vendor$ac_delim
34317host_os!$host_os$ac_delim
34318target!$target$ac_delim
34319target_cpu!$target_cpu$ac_delim
34320target_vendor!$target_vendor$ac_delim
34321target_os!$target_os$ac_delim
34322OS!$OS$ac_delim
34323LINKALL!$LINKALL$ac_delim
34324NOLINKALL!$NOLINKALL$ac_delim
34325LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34326LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34327ARCH!$ARCH$ac_delim
34328ENDIAN!$ENDIAN$ac_delim
34329CC!$CC$ac_delim
34330CFLAGS!$CFLAGS$ac_delim
34331LDFLAGS!$LDFLAGS$ac_delim
34332CPPFLAGS!$CPPFLAGS$ac_delim
34333ac_ct_CC!$ac_ct_CC$ac_delim
34334EXEEXT!$EXEEXT$ac_delim
34335OBJEXT!$OBJEXT$ac_delim
34336CPP!$CPP$ac_delim
34337GREP!$GREP$ac_delim
34338EGREP!$EGREP$ac_delim
34339LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34340BUILD_CC!$BUILD_CC$ac_delim
34341BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34342CVSBUILD!$CVSBUILD$ac_delim
34343ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34344DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034345DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034346JIT!$JIT$ac_delim
34347TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34348ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34349ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034350ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034351TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034352ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034353EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34354CXX!$CXX$ac_delim
34355CXXFLAGS!$CXXFLAGS$ac_delim
34356ac_ct_CXX!$ac_ct_CXX$ac_delim
34357LEX!$LEX$ac_delim
34358LEXLIB!$LEXLIB$ac_delim
34359LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34360FLEX!$FLEX$ac_delim
34361YACC!$YACC$ac_delim
34362YFLAGS!$YFLAGS$ac_delim
34363BISON!$BISON$ac_delim
34364NM!$NM$ac_delim
34365ifGNUmake!$ifGNUmake$ac_delim
34366LN_S!$LN_S$ac_delim
34367CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034368_ACEOF
34369
34370 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34371 break
34372 elif $ac_last_try; then
34373 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34374echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34375 { (exit 1); exit 1; }; }
34376 else
34377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034378 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034379done
34380
34381ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34382if test -n "$ac_eof"; then
34383 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34384 ac_eof=`expr $ac_eof + 1`
34385fi
34386
34387cat >>$CONFIG_STATUS <<_ACEOF
34388cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34389/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34390_ACEOF
34391sed '
34392s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34393s/^/s,@/; s/!/@,|#_!!_#|/
34394:n
34395t n
34396s/'"$ac_delim"'$/,g/; t
34397s/$/\\/; p
34398N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34399' >>$CONFIG_STATUS <conf$$subs.sed
34400rm -f conf$$subs.sed
34401cat >>$CONFIG_STATUS <<_ACEOF
34402CEOF$ac_eof
34403_ACEOF
34404
34405
34406ac_delim='%!_!# '
34407for ac_last_try in false false false false false :; do
34408 cat >conf$$subs.sed <<_ACEOF
Reid Spencer89b0d992006-12-16 22:07:52 +000034409CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034410DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034411FIND!$FIND$ac_delim
34412MKDIR!$MKDIR$ac_delim
34413MV!$MV$ac_delim
34414RANLIB!$RANLIB$ac_delim
34415RM!$RM$ac_delim
34416SED!$SED$ac_delim
34417TAR!$TAR$ac_delim
34418BINPWD!$BINPWD$ac_delim
34419GRAPHVIZ!$GRAPHVIZ$ac_delim
34420DOT!$DOT$ac_delim
34421GV!$GV$ac_delim
34422DOTTY!$DOTTY$ac_delim
34423PERL!$PERL$ac_delim
34424HAVE_PERL!$HAVE_PERL$ac_delim
34425INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34426INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34427INSTALL_DATA!$INSTALL_DATA$ac_delim
34428BZIP2!$BZIP2$ac_delim
34429DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034430GROFF!$GROFF$ac_delim
34431GZIP!$GZIP$ac_delim
34432POD2HTML!$POD2HTML$ac_delim
34433POD2MAN!$POD2MAN$ac_delim
34434RUNTEST!$RUNTEST$ac_delim
34435TCLSH!$TCLSH$ac_delim
34436ZIP!$ZIP$ac_delim
34437INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34438INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34439CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34440CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34441LIBADD_DL!$LIBADD_DL$ac_delim
34442ECHO!$ECHO$ac_delim
34443AR!$AR$ac_delim
34444STRIP!$STRIP$ac_delim
34445CXXCPP!$CXXCPP$ac_delim
34446F77!$F77$ac_delim
34447FFLAGS!$FFLAGS$ac_delim
34448ac_ct_F77!$ac_ct_F77$ac_delim
34449LIBTOOL!$LIBTOOL$ac_delim
34450ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34451LLVMGCC!$LLVMGCC$ac_delim
34452LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034453USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034454HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034455HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034456ALLOCA!$ALLOCA$ac_delim
34457MMAP_FILE!$MMAP_FILE$ac_delim
34458LLVMCC1!$LLVMCC1$ac_delim
34459LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34460LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034461LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034462LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34463LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034464LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034465SHLIBEXT!$SHLIBEXT$ac_delim
34466LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34467LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34468LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34469LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34470LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34471LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34472LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34473LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34474LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34475LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34476LIBOBJS!$LIBOBJS$ac_delim
34477LTLIBOBJS!$LTLIBOBJS$ac_delim
34478_ACEOF
34479
Reid Spencer0d238182007-04-21 21:28:52 +000034480 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
Reid Spencera773bd52006-08-04 18:18:08 +000034481 break
34482 elif $ac_last_try; then
34483 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34484echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34485 { (exit 1); exit 1; }; }
34486 else
34487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34488 fi
34489done
34490
34491ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34492if test -n "$ac_eof"; then
34493 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34494 ac_eof=`expr $ac_eof + 1`
34495fi
34496
34497cat >>$CONFIG_STATUS <<_ACEOF
34498cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34499/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34500_ACEOF
34501sed '
34502s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34503s/^/s,@/; s/!/@,|#_!!_#|/
34504:n
34505t n
34506s/'"$ac_delim"'$/,g/; t
34507s/$/\\/; p
34508N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34509' >>$CONFIG_STATUS <conf$$subs.sed
34510rm -f conf$$subs.sed
34511cat >>$CONFIG_STATUS <<_ACEOF
34512:end
34513s/|#_!!_#|//g
34514CEOF$ac_eof
34515_ACEOF
34516
34517
34518# VPATH may cause trouble with some makes, so we remove $(srcdir),
34519# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34520# trailing colons and then remove the whole line if VPATH becomes empty
34521# (actually we leave an empty line to preserve line numbers).
34522if test "x$srcdir" = x.; then
34523 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34524s/:*\$(srcdir):*/:/
34525s/:*\${srcdir}:*/:/
34526s/:*@srcdir@:*/:/
34527s/^\([^=]*=[ ]*\):*/\1/
34528s/:*$//
34529s/^[^=]*=[ ]*$//
34530}'
34531fi
34532
34533cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034534fi # test -n "$CONFIG_FILES"
34535
Reid Spencera773bd52006-08-04 18:18:08 +000034536
34537for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34538do
34539 case $ac_tag in
34540 :[FHLC]) ac_mode=$ac_tag; continue;;
34541 esac
34542 case $ac_mode$ac_tag in
34543 :[FHL]*:*);;
34544 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34545echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34546 { (exit 1); exit 1; }; };;
34547 :[FH]-) ac_tag=-:-;;
34548 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34549 esac
34550 ac_save_IFS=$IFS
34551 IFS=:
34552 set x $ac_tag
34553 IFS=$ac_save_IFS
34554 shift
34555 ac_file=$1
34556 shift
34557
34558 case $ac_mode in
34559 :L) ac_source=$1;;
34560 :[FH])
34561 ac_file_inputs=
34562 for ac_f
34563 do
34564 case $ac_f in
34565 -) ac_f="$tmp/stdin";;
34566 *) # Look for the file first in the build tree, then in the source tree
34567 # (if the path is not absolute). The absolute path cannot be DOS-style,
34568 # because $ac_f cannot contain `:'.
34569 test -f "$ac_f" ||
34570 case $ac_f in
34571 [\\/$]*) false;;
34572 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34573 esac ||
34574 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34575echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34576 { (exit 1); exit 1; }; };;
34577 esac
34578 ac_file_inputs="$ac_file_inputs $ac_f"
34579 done
34580
34581 # Let's still pretend it is `configure' which instantiates (i.e., don't
34582 # use $as_me), people would be surprised to read:
34583 # /* config.h. Generated by config.status. */
34584 configure_input="Generated from "`IFS=:
34585 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34586 if test x"$ac_file" != x-; then
34587 configure_input="$ac_file. $configure_input"
34588 { echo "$as_me:$LINENO: creating $ac_file" >&5
34589echo "$as_me: creating $ac_file" >&6;}
34590 fi
34591
34592 case $ac_tag in
34593 *:-:* | *:-) cat >"$tmp/stdin";;
34594 esac
34595 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034596 esac
34597
Reid Spencera773bd52006-08-04 18:18:08 +000034598 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034600 X"$ac_file" : 'X\(//\)[^/]' \| \
34601 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034603echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34605 s//\1/
34606 q
34607 }
34608 /^X\(\/\/\)[^/].*/{
34609 s//\1/
34610 q
34611 }
34612 /^X\(\/\/\)$/{
34613 s//\1/
34614 q
34615 }
34616 /^X\(\/\).*/{
34617 s//\1/
34618 q
34619 }
34620 s/.*/./; q'`
34621 { as_dir="$ac_dir"
34622 case $as_dir in #(
34623 -*) as_dir=./$as_dir;;
34624 esac
34625 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034626 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034627 while :; do
34628 case $as_dir in #(
34629 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34630 *) as_qdir=$as_dir;;
34631 esac
34632 as_dirs="'$as_qdir' $as_dirs"
34633 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034635 X"$as_dir" : 'X\(//\)[^/]' \| \
34636 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034638echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34640 s//\1/
34641 q
34642 }
34643 /^X\(\/\/\)[^/].*/{
34644 s//\1/
34645 q
34646 }
34647 /^X\(\/\/\)$/{
34648 s//\1/
34649 q
34650 }
34651 /^X\(\/\).*/{
34652 s//\1/
34653 q
34654 }
34655 s/.*/./; q'`
34656 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034657 done
Reid Spencera773bd52006-08-04 18:18:08 +000034658 test -z "$as_dirs" || eval "mkdir $as_dirs"
34659 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34660echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034661 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034662 ac_builddir=.
34663
Reid Spencera773bd52006-08-04 18:18:08 +000034664case "$ac_dir" in
34665.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34666*)
John Criswell7a73b802003-06-30 21:59:07 +000034667 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034668 # A ".." for each directory in $ac_dir_suffix.
34669 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34670 case $ac_top_builddir_sub in
34671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34673 esac ;;
34674esac
34675ac_abs_top_builddir=$ac_pwd
34676ac_abs_builddir=$ac_pwd$ac_dir_suffix
34677# for backward compatibility:
34678ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034679
34680case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034681 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034682 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034683 ac_top_srcdir=$ac_top_builddir_sub
34684 ac_abs_top_srcdir=$ac_pwd ;;
34685 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034686 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034687 ac_top_srcdir=$srcdir
34688 ac_abs_top_srcdir=$srcdir ;;
34689 *) # Relative name.
34690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34691 ac_top_srcdir=$ac_top_build_prefix$srcdir
34692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034693esac
Reid Spencera773bd52006-08-04 18:18:08 +000034694ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034695
John Criswell7a73b802003-06-30 21:59:07 +000034696
Reid Spencera773bd52006-08-04 18:18:08 +000034697 case $ac_mode in
34698 :F)
34699 #
34700 # CONFIG_FILE
34701 #
John Criswell7a73b802003-06-30 21:59:07 +000034702
34703 case $INSTALL in
34704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034705 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034706 esac
John Criswell7a73b802003-06-30 21:59:07 +000034707_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034708
34709cat >>$CONFIG_STATUS <<\_ACEOF
34710# If the template does not know about datarootdir, expand it.
34711# FIXME: This hack should be removed a few years after 2.60.
34712ac_datarootdir_hack=; ac_datarootdir_seen=
34713
34714case `sed -n '/datarootdir/ {
34715 p
34716 q
34717}
34718/@datadir@/p
34719/@docdir@/p
34720/@infodir@/p
34721/@localedir@/p
34722/@mandir@/p
34723' $ac_file_inputs` in
34724*datarootdir*) ac_datarootdir_seen=yes;;
34725*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34726 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34727echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34728_ACEOF
34729cat >>$CONFIG_STATUS <<_ACEOF
34730 ac_datarootdir_hack='
34731 s&@datadir@&$datadir&g
34732 s&@docdir@&$docdir&g
34733 s&@infodir@&$infodir&g
34734 s&@localedir@&$localedir&g
34735 s&@mandir@&$mandir&g
34736 s&\\\${datarootdir}&$datarootdir&g' ;;
34737esac
34738_ACEOF
34739
34740# Neutralize VPATH when `$srcdir' = `.'.
34741# Shell code in configure.ac might set extrasub.
34742# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034743cat >>$CONFIG_STATUS <<_ACEOF
34744 sed "$ac_vpsub
34745$extrasub
34746_ACEOF
34747cat >>$CONFIG_STATUS <<\_ACEOF
34748:t
34749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034750s&@configure_input@&$configure_input&;t t
34751s&@top_builddir@&$ac_top_builddir_sub&;t t
34752s&@srcdir@&$ac_srcdir&;t t
34753s&@abs_srcdir@&$ac_abs_srcdir&;t t
34754s&@top_srcdir@&$ac_top_srcdir&;t t
34755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34756s&@builddir@&$ac_builddir&;t t
34757s&@abs_builddir@&$ac_abs_builddir&;t t
34758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34759s&@INSTALL@&$ac_INSTALL&;t t
34760$ac_datarootdir_hack
34761" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034762
Reid Spencera773bd52006-08-04 18:18:08 +000034763test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34764 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34766 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34767which seems to be undefined. Please make sure it is defined." >&5
34768echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34769which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034770
Reid Spencera773bd52006-08-04 18:18:08 +000034771 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034772 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034773 -) cat "$tmp/out"; rm -f "$tmp/out";;
34774 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034775 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034776 ;;
34777 :H)
34778 #
34779 # CONFIG_HEADER
34780 #
John Criswell7a73b802003-06-30 21:59:07 +000034781_ACEOF
34782
Reid Spencera773bd52006-08-04 18:18:08 +000034783# Transform confdefs.h into a sed script `conftest.defines', that
34784# substitutes the proper values into config.h.in to produce config.h.
34785rm -f conftest.defines conftest.tail
34786# First, append a space to every undef/define line, to ease matching.
34787echo 's/$/ /' >conftest.defines
34788# Then, protect against being on the right side of a sed subst, or in
34789# an unquoted here document, in config.status. If some macros were
34790# called several times there might be several #defines for the same
34791# symbol, which is useless. But do not sort them, since the last
34792# AC_DEFINE must be honored.
34793ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34794# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34795# NAME is the cpp macro being defined, VALUE is the value it is being given.
34796# PARAMS is the parameter list in the macro definition--in most cases, it's
34797# just an empty string.
34798ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34799ac_dB='\\)[ (].*,\\1define\\2'
34800ac_dC=' '
34801ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034802
Reid Spencera773bd52006-08-04 18:18:08 +000034803uniq confdefs.h |
34804 sed -n '
34805 t rset
34806 :rset
34807 s/^[ ]*#[ ]*define[ ][ ]*//
34808 t ok
34809 d
34810 :ok
34811 s/[\\&,]/\\&/g
34812 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34813 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34814 ' >>conftest.defines
34815
34816# Remove the space that was appended to ease matching.
34817# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034818# example, in the case of _POSIX_SOURCE, which is predefined and required
34819# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034820# (The regexp can be short, since the line contains either #define or #undef.)
34821echo 's/ $//
34822s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034823
Reid Spencera773bd52006-08-04 18:18:08 +000034824# Break up conftest.defines:
34825ac_max_sed_lines=50
34826
34827# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34828# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34829# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34830# et cetera.
34831ac_in='$ac_file_inputs'
34832ac_out='"$tmp/out1"'
34833ac_nxt='"$tmp/out2"'
34834
34835while :
John Criswell7a73b802003-06-30 21:59:07 +000034836do
Reid Spencera773bd52006-08-04 18:18:08 +000034837 # Write a here document:
34838 cat >>$CONFIG_STATUS <<_ACEOF
34839 # First, check the format of the line:
34840 cat >"\$tmp/defines.sed" <<\\CEOF
34841/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34842/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34843b
34844:def
34845_ACEOF
34846 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034847 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034848 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34849 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34850 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34851 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034852 rm -f conftest.defines
34853 mv conftest.tail conftest.defines
34854done
Reid Spencera773bd52006-08-04 18:18:08 +000034855rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034856
Reid Spencera773bd52006-08-04 18:18:08 +000034857echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034858cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034859 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034860 echo "/* $configure_input */" >"$tmp/config.h"
34861 cat "$ac_result" >>"$tmp/config.h"
34862 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034863 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34864echo "$as_me: $ac_file is unchanged" >&6;}
34865 else
John Criswell7a73b802003-06-30 21:59:07 +000034866 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034867 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034868 fi
34869 else
Reid Spencera773bd52006-08-04 18:18:08 +000034870 echo "/* $configure_input */"
34871 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034872 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034873 rm -f "$tmp/out12"
34874 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034875
Reid Spencera773bd52006-08-04 18:18:08 +000034876 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34877echo "$as_me: executing $ac_file commands" >&6;}
34878 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034879 esac
John Criswell7a73b802003-06-30 21:59:07 +000034880
Reid Spencera773bd52006-08-04 18:18:08 +000034881
34882 case $ac_file$ac_mode in
34883 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34884 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34885 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34886 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34887 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34888 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34889 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34890 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034891 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34892 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034893 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34894 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34895 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34896 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34897 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34898 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34899 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34900 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34901 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34902 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34903
34904 esac
34905done # for ac_tag
34906
John Criswell7a73b802003-06-30 21:59:07 +000034907
34908{ (exit 0); exit 0; }
34909_ACEOF
34910chmod +x $CONFIG_STATUS
34911ac_clean_files=$ac_clean_files_save
34912
34913
34914# configure is writing to config.log, and then calls config.status.
34915# config.status does its own redirection, appending to config.log.
34916# Unfortunately, on DOS this fails, as config.log is still kept open
34917# by configure, so config.status won't be able to write to it; its
34918# output is simply discarded. So we exec the FD to /dev/null,
34919# effectively closing config.log, so it can be properly (re)opened and
34920# appended to by config.status. When coming back to configure, we
34921# need to make the FD available again.
34922if test "$no_create" != yes; then
34923 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034924 ac_config_status_args=
34925 test "$silent" = yes &&
34926 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034927 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034929 exec 5>>config.log
34930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34931 # would make configure fail if this is the last instruction.
34932 $ac_cs_success || { (exit 1); exit 1; }
34933fi
34934
John Criswell12399a12003-09-30 15:55:44 +000034935#
34936# CONFIG_SUBDIRS section.
34937#
34938if test "$no_recursion" != yes; then
34939
34940 # Remove --cache-file and --srcdir arguments so they do not pile up.
34941 ac_sub_configure_args=
34942 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034943 eval "set x $ac_configure_args"
34944 shift
34945 for ac_arg
34946 do
John Criswell12399a12003-09-30 15:55:44 +000034947 if test -n "$ac_prev"; then
34948 ac_prev=
34949 continue
34950 fi
34951 case $ac_arg in
34952 -cache-file | --cache-file | --cache-fil | --cache-fi \
34953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34954 ac_prev=cache_file ;;
34955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34957 | --c=*)
34958 ;;
34959 --config-cache | -C)
34960 ;;
34961 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34962 ac_prev=srcdir ;;
34963 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34964 ;;
34965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34966 ac_prev=prefix ;;
34967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34968 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034969 *)
34970 case $ac_arg in
34971 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34972 esac
34973 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034974 esac
34975 done
34976
34977 # Always prepend --prefix to ensure using the same prefix
34978 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034979 ac_arg="--prefix=$prefix"
34980 case $ac_arg in
34981 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34982 esac
34983 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034984
34985 ac_popdir=`pwd`
34986 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34987
34988 # Do not complain, so a configure script can configure whichever
34989 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034990 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034991
Reid Spencera773bd52006-08-04 18:18:08 +000034992 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34993 echo "$as_me:$LINENO: $ac_msg" >&5
34994 echo "$ac_msg" >&6
34995 { as_dir="$ac_dir"
34996 case $as_dir in #(
34997 -*) as_dir=./$as_dir;;
34998 esac
34999 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035000 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035001 while :; do
35002 case $as_dir in #(
35003 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35004 *) as_qdir=$as_dir;;
35005 esac
35006 as_dirs="'$as_qdir' $as_dirs"
35007 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035008$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035009 X"$as_dir" : 'X\(//\)[^/]' \| \
35010 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035012echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35014 s//\1/
35015 q
35016 }
35017 /^X\(\/\/\)[^/].*/{
35018 s//\1/
35019 q
35020 }
35021 /^X\(\/\/\)$/{
35022 s//\1/
35023 q
35024 }
35025 /^X\(\/\).*/{
35026 s//\1/
35027 q
35028 }
35029 s/.*/./; q'`
35030 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035031 done
Reid Spencera773bd52006-08-04 18:18:08 +000035032 test -z "$as_dirs" || eval "mkdir $as_dirs"
35033 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35034echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035035 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035036 ac_builddir=.
35037
Reid Spencera773bd52006-08-04 18:18:08 +000035038case "$ac_dir" in
35039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35040*)
John Criswell12399a12003-09-30 15:55:44 +000035041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035042 # A ".." for each directory in $ac_dir_suffix.
35043 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35044 case $ac_top_builddir_sub in
35045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35047 esac ;;
35048esac
35049ac_abs_top_builddir=$ac_pwd
35050ac_abs_builddir=$ac_pwd$ac_dir_suffix
35051# for backward compatibility:
35052ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035053
35054case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035055 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035056 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035057 ac_top_srcdir=$ac_top_builddir_sub
35058 ac_abs_top_srcdir=$ac_pwd ;;
35059 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035060 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035061 ac_top_srcdir=$srcdir
35062 ac_abs_top_srcdir=$srcdir ;;
35063 *) # Relative name.
35064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35065 ac_top_srcdir=$ac_top_build_prefix$srcdir
35066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035067esac
Reid Spencera773bd52006-08-04 18:18:08 +000035068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035069
35070
Reid Spencera773bd52006-08-04 18:18:08 +000035071 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035072
35073 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035074 if test -f "$ac_srcdir/configure.gnu"; then
35075 ac_sub_configure=$ac_srcdir/configure.gnu
35076 elif test -f "$ac_srcdir/configure"; then
35077 ac_sub_configure=$ac_srcdir/configure
35078 elif test -f "$ac_srcdir/configure.in"; then
35079 # This should be Cygnus configure.
35080 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035081 else
35082 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35083echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35084 ac_sub_configure=
35085 fi
35086
35087 # The recursion is here.
35088 if test -n "$ac_sub_configure"; then
35089 # Make the cache file name correct relative to the subdirectory.
35090 case $cache_file in
35091 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035092 *) # Relative name.
35093 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035094 esac
35095
Reid Spencera773bd52006-08-04 18:18:08 +000035096 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35097echo "$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 +000035098 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035099 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35100 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035101 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035102echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35103 { (exit 1); exit 1; }; }
35104 fi
35105
Reid Spencera773bd52006-08-04 18:18:08 +000035106 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035107 done
35108fi
35109
Brian Gaekef3b24102003-11-16 18:38:14 +000035110