blob: facc07de07c9d4a6114776e51c3eb570b4f82398 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner5c709542007-09-14 01:24:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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 Lattner5c709542007-09-14 01:24:13 +0000718PACKAGE_VERSION='2.2svn'
719PACKAGE_STRING='llvm 2.2svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Reid Spencera773bd52006-08-04 18:18:08 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000902LLVMGCC
903LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000904USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000905HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000906HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000912LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000915LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Reid Spencera773bd52006-08-04 18:18:08 +0000929LIBOBJS
930LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000931ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000932 ac_precious_vars='build_alias
933host_alias
934target_alias
935CC
936CFLAGS
937LDFLAGS
938CPPFLAGS
939CPP
940CXX
941CXXFLAGS
942CCC
943YACC
944YFLAGS
945CXXCPP
946F77
947FFLAGS'
948ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000949projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000950projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000951projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000952projects/llvm-reopt
953projects/llvm-gcc
954projects/llvm-java
955projects/llvm-tv
956projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000957projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000958projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000959
960# Initialize some variables set by options.
961ac_init_help=
962ac_init_version=false
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000985# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000994includedir='${prefix}/include'
995oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000996docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001005
1006ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001007ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001008for ac_option
1009do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001012 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001013 ac_prev=
1014 continue
1015 fi
1016
Reid Spencera773bd52006-08-04 18:18:08 +00001017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
John Criswell7a73b802003-06-30 21:59:07 +00001021
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1023
Reid Spencera773bd52006-08-04 18:18:08 +00001024 case $ac_dashdash$ac_option in
1025 --)
1026 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001027
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1032
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1037
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1044
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1047
Reid Spencera773bd52006-08-04 18:18:08 +00001048 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001049 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001051 datadir=$ac_optarg ;;
1052
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1059
John Criswell7a73b802003-06-30 21:59:07 +00001060 -disable-* | --disable-*)
1061 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001067 eval enable_$ac_feature=no ;;
1068
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1073
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001078
1079 -enable-* | --enable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001086 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001087
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
Reid Spencera773bd52006-08-04 18:18:08 +00001113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1118
John Criswell7a73b802003-06-30 21:59:07 +00001119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1142
Reid Spencera773bd52006-08-04 18:18:08 +00001143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
John Criswell7a73b802003-06-30 21:59:07 +00001148 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001149 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001153 localstatedir=$ac_optarg ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1171
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1192
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1199
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1216
Reid Spencera773bd52006-08-04 18:18:08 +00001217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
John Criswell7a73b802003-06-30 21:59:07 +00001227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001283 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001284
1285 -without-* | --without-*)
1286 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1289 { echo "$as_me: error: invalid package name: $ac_package" >&2
1290 { (exit 1); exit 1; }; }
1291 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001292 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001293
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1297
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1304
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1311
1312 -*) { echo "$as_me: error: unrecognized option: $ac_option
1313Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1315 ;;
1316
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001323 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001324 export $ac_envvar ;;
1325
1326 *)
1327 # FIXME: should be removed in autoconf 3.0.
1328 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332 ;;
1333
1334 esac
1335done
1336
1337if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 { echo "$as_me: error: missing argument to $ac_option" >&2
1340 { (exit 1); exit 1; }; }
1341fi
1342
Reid Spencera773bd52006-08-04 18:18:08 +00001343# Be sure to have absolute directory names.
1344for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001348do
Reid Spencera773bd52006-08-04 18:18:08 +00001349 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001350 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001353 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001354 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
Reid Spencera773bd52006-08-04 18:18:08 +00001382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 { echo "$as_me: error: Working directory cannot be determined" >&2
1386 { (exit 1); exit 1; }; }
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 { echo "$as_me: error: pwd does not report name of working directory" >&2
1389 { (exit 1); exit 1; }; }
1390
1391
John Criswell7a73b802003-06-30 21:59:07 +00001392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001397$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001398 X"$0" : 'X\(//\)[^/]' \| \
1399 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001401echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001419 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001420 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001421 srcdir=..
1422 fi
1423else
1424 ac_srcdir_defaulted=no
1425fi
Reid Spencera773bd52006-08-04 18:18:08 +00001426if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001429 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001430fi
Reid Spencera773bd52006-08-04 18:18:08 +00001431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001434 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001435 pwd)`
1436# When building in place, set srcdir=.
1437if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1439fi
1440# Remove unnecessary trailing slashes from srcdir.
1441# Double slashes in file names in object file debugging info
1442# mess up M-x gdb in Emacs.
1443case $srcdir in
1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445esac
1446for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451done
John Criswell7a73b802003-06-30 21:59:07 +00001452
1453#
1454# Report the --help message.
1455#
1456if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001460\`configure' configures llvm 2.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001461
1462Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465VAR=VALUE. See below for descriptions of some of the useful variables.
1466
1467Defaults for the options are specified in brackets.
1468
1469Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479
John Criswell7a73b802003-06-30 21:59:07 +00001480Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001482 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001484 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001485
1486By default, \`make install' will install all the files in
1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489for instance \`--prefix=\$HOME'.
1490
1491For better control, use the options below.
1492
1493Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001513_ACEOF
1514
1515 cat <<\_ACEOF
1516
1517System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525 case $ac_init_help in
Tanya Lattner5c709542007-09-14 01:24:13 +00001526 short | recursive ) echo "Configuration of llvm 2.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001527 esac
1528 cat <<\_ACEOF
1529
1530Optional Features:
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001533 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001534 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001535 --enable-expensive-checks
1536
Reid Spencer8b2e1412006-11-17 03:32:33 +00001537 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001539 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001540 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001541 --enable-pic Build LLVM with Position Independent Code (default
1542 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001543 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001544 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001545 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1546 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001547 --enable-bindings Build specific language bindings:
1548 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001549 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001550 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001551 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001552 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001553 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001554 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001555 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001556 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001557 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001562 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1563 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001564 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001565 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-pic try to use only PIC/non-PIC objects [default=use
1568 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001569 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001570 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001571
1572Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001573 CC C compiler command
1574 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001577 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001579 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001580 CXX C++ compiler command
1581 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001582 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1583 the first program found out of: `bison -y', `byacc', `yacc'.
1584 YFLAGS The list of arguments that will be passed by default to $YACC.
1585 This script will default YFLAGS to the empty string to avoid a
1586 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001587 CXXCPP C++ preprocessor
1588 F77 Fortran 77 compiler command
1589 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
1594Report bugs to <llvmbugs@cs.uiuc.edu>.
1595_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001596ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001602 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001603 ac_builddir=.
1604
Reid Spencera773bd52006-08-04 18:18:08 +00001605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
John Criswell7a73b802003-06-30 21:59:07 +00001608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001620
1621case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001622 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001623 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001627 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001634esac
Reid Spencera773bd52006-08-04 18:18:08 +00001635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001636
Reid Spencera773bd52006-08-04 18:18:08 +00001637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001645 else
1646 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001649 done
1650fi
1651
Reid Spencera773bd52006-08-04 18:18:08 +00001652test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001653if $ac_init_version; then
1654 cat <<\_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001655llvm configure 2.2svn
Reid Spencera773bd52006-08-04 18:18:08 +00001656generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001657
Reid Spencera773bd52006-08-04 18:18:08 +00001658Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001660This configure script is free software; the Free Software Foundation
1661gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001662
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001663Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001664_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001665 exit
John Criswell7a73b802003-06-30 21:59:07 +00001666fi
Reid Spencera773bd52006-08-04 18:18:08 +00001667cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001668This file contains any messages produced by compilers while
1669running configure, to aid debugging if configure makes a mistake.
1670
Tanya Lattner5c709542007-09-14 01:24:13 +00001671It was created by llvm $as_me 2.2svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001672generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001673
1674 $ $0 $@
1675
1676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001677exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001678{
1679cat <<_ASUNAME
1680## --------- ##
1681## Platform. ##
1682## --------- ##
1683
1684hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1685uname -m = `(uname -m) 2>/dev/null || echo unknown`
1686uname -r = `(uname -r) 2>/dev/null || echo unknown`
1687uname -s = `(uname -s) 2>/dev/null || echo unknown`
1688uname -v = `(uname -v) 2>/dev/null || echo unknown`
1689
1690/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1691/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1692
1693/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1694/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1695/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001696/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001697/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1698/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1699/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700
1701_ASUNAME
1702
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 echo "PATH: $as_dir"
1709done
Reid Spencera773bd52006-08-04 18:18:08 +00001710IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001711
1712} >&5
1713
1714cat >&5 <<_ACEOF
1715
1716
1717## ----------- ##
1718## Core tests. ##
1719## ----------- ##
1720
1721_ACEOF
1722
1723
1724# Keep a trace of the command line.
1725# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001726# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001727# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001728# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001729ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001730ac_configure_args0=
1731ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001732ac_must_keep_next=false
1733for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001734do
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 for ac_arg
1736 do
1737 case $ac_arg in
1738 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740 | -silent | --silent | --silen | --sile | --sil)
1741 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001742 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744 esac
1745 case $ac_pass in
1746 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1747 2)
1748 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1749 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001750 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001752 case $ac_arg in
1753 *=* | --config-cache | -C | -disable-* | --disable-* \
1754 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1755 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1756 | -with-* | --with-* | -without-* | --without-* | --x)
1757 case "$ac_configure_args0 " in
1758 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759 esac
1760 ;;
1761 -* ) ac_must_keep_next=true ;;
1762 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001764 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001765 ;;
1766 esac
1767 done
John Criswell7a73b802003-06-30 21:59:07 +00001768done
John Criswell0c38eaf2003-09-10 15:17:25 +00001769$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1770$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 +00001771
1772# When interrupted or exit'd, cleanup temporary files, and complete
1773# config.log. We remove comments because anyway the quotes in there
1774# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001775# WARNING: Use '\'' to represent an apostrophe within the trap.
1776# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001777trap 'exit_status=$?
1778 # Save into config.log some information that might help in debugging.
1779 {
1780 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782 cat <<\_ASBOX
1783## ---------------- ##
1784## Cache variables. ##
1785## ---------------- ##
1786_ASBOX
1787 echo
1788 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001789(
1790 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1791 eval ac_val=\$$ac_var
1792 case $ac_val in #(
1793 *${as_nl}*)
1794 case $ac_var in #(
1795 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1796echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1797 esac
1798 case $ac_var in #(
1799 _ | IFS | as_nl) ;; #(
1800 *) $as_unset $ac_var ;;
1801 esac ;;
1802 esac
1803 done
John Criswell7a73b802003-06-30 21:59:07 +00001804 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001805 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001807 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001808 "s/'\''/'\''\\\\'\'''\''/g;
1809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001811 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001813 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001814 esac |
1815 sort
1816)
John Criswell7a73b802003-06-30 21:59:07 +00001817 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001818
1819 cat <<\_ASBOX
1820## ----------------- ##
1821## Output variables. ##
1822## ----------------- ##
1823_ASBOX
1824 echo
1825 for ac_var in $ac_subst_vars
1826 do
Reid Spencera773bd52006-08-04 18:18:08 +00001827 eval ac_val=\$$ac_var
1828 case $ac_val in
1829 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 esac
1831 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001832 done | sort
1833 echo
1834
1835 if test -n "$ac_subst_files"; then
1836 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001837## ------------------- ##
1838## File substitutions. ##
1839## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001840_ASBOX
1841 echo
1842 for ac_var in $ac_subst_files
1843 do
Reid Spencera773bd52006-08-04 18:18:08 +00001844 eval ac_val=\$$ac_var
1845 case $ac_val in
1846 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 esac
1848 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001849 done | sort
1850 echo
1851 fi
1852
John Criswell7a73b802003-06-30 21:59:07 +00001853 if test -s confdefs.h; then
1854 cat <<\_ASBOX
1855## ----------- ##
1856## confdefs.h. ##
1857## ----------- ##
1858_ASBOX
1859 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001860 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001861 echo
1862 fi
1863 test "$ac_signal" != 0 &&
1864 echo "$as_me: caught signal $ac_signal"
1865 echo "$as_me: exit $exit_status"
1866 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001867 rm -f core *.core core.conftest.* &&
1868 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001869 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001870' 0
John Criswell7a73b802003-06-30 21:59:07 +00001871for ac_signal in 1 2 13 15; do
1872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873done
1874ac_signal=0
1875
1876# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001877rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001878
1879# Predefined preprocessor variables.
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_NAME "$PACKAGE_NAME"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_VERSION "$PACKAGE_VERSION"
1893_ACEOF
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_STRING "$PACKAGE_STRING"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903_ACEOF
1904
1905
1906# Let the site file select an alternate cache file if it wants to.
1907# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001908if test -n "$CONFIG_SITE"; then
1909 set x "$CONFIG_SITE"
1910elif test "x$prefix" != xNONE; then
1911 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1912else
1913 set x "$ac_default_prefix/share/config.site" \
1914 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001915fi
Reid Spencera773bd52006-08-04 18:18:08 +00001916shift
1917for ac_site_file
1918do
John Criswell7a73b802003-06-30 21:59:07 +00001919 if test -r "$ac_site_file"; then
1920 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921echo "$as_me: loading site script $ac_site_file" >&6;}
1922 sed 's/^/| /' "$ac_site_file" >&5
1923 . "$ac_site_file"
1924 fi
1925done
1926
1927if test -r "$cache_file"; then
1928 # Some versions of bash will fail to source /dev/null (special
1929 # files actually), so we avoid doing that.
1930 if test -f "$cache_file"; then
1931 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932echo "$as_me: loading cache $cache_file" >&6;}
1933 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001934 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1935 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001936 esac
1937 fi
1938else
1939 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940echo "$as_me: creating cache $cache_file" >&6;}
1941 >$cache_file
1942fi
1943
1944# Check that the precious variables saved in the cache have kept the same
1945# value.
1946ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001947for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001948 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1949 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001950 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1951 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001952 case $ac_old_set,$ac_new_set in
1953 set,)
1954 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1955echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1956 ac_cache_corrupted=: ;;
1957 ,set)
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1959echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1961 ,);;
1962 *)
1963 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001964 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001965echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001966 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001967echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001969echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001970 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001971 fi;;
1972 esac
1973 # Pass precious variables to config.status.
1974 if test "$ac_new_set" = set; then
1975 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001976 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001977 *) ac_arg=$ac_var=$ac_new_val ;;
1978 esac
1979 case " $ac_configure_args " in
1980 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1981 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1982 esac
1983 fi
1984done
1985if $ac_cache_corrupted; then
1986 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1987echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1988 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1989echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1990 { (exit 1); exit 1; }; }
1991fi
1992
Reid Spencera773bd52006-08-04 18:18:08 +00001993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
John Criswell7a73b802003-06-30 21:59:07 +00002017ac_ext=c
2018ac_cpp='$CPP $CPPFLAGS'
2019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022
2023
2024
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002025LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002026
2027
2028
2029
2030
2031
2032
John Criswell7a73b802003-06-30 21:59:07 +00002033ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002034for ac_dir in autoconf "$srcdir"/autoconf; do
2035 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/install-sh -c"
2038 break
Reid Spencera773bd52006-08-04 18:18:08 +00002039 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/install.sh -c"
2042 break
Reid Spencera773bd52006-08-04 18:18:08 +00002043 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/shtool install -c"
2046 break
2047 fi
2048done
2049if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002050 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2051echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002052 { (exit 1); exit 1; }; }
2053fi
Reid Spencera773bd52006-08-04 18:18:08 +00002054
2055# These three variables are undocumented and unsupported,
2056# and are intended to be withdrawn in a future Autoconf release.
2057# They can cause serious problems if a builder's source tree is in a directory
2058# whose full name contains unusual characters.
2059ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2060ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2061ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2062
John Criswell7a73b802003-06-30 21:59:07 +00002063
John Criswell392aaa32003-07-22 19:18:09 +00002064
Reid Spencer2706f8c2004-09-19 23:53:36 +00002065if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2067 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002068echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2069 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070 fi
John Criswell93e1c722003-09-15 17:04:06 +00002071fi
2072
John Criswell33a911a2003-11-25 20:36:46 +00002073for i in `ls ${srcdir}/projects`
2074do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002075 if test -d ${srcdir}/projects/${i} ; then
2076 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002077 CVS) ;;
2078 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002079 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002080 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002081 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002084 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 ;;
2086 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002089 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002091 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002093 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002095 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002096 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002097 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002099 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002101 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2102echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002103 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 esac
John Criswell33a911a2003-11-25 20:36:46 +00002105 fi
2106done
John Criswell559a6c12003-09-30 16:31:48 +00002107
John Criswell7a73b802003-06-30 21:59:07 +00002108
2109# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002110$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2111 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2112echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002113 { (exit 1); exit 1; }; }
2114
Reid Spencera773bd52006-08-04 18:18:08 +00002115{ echo "$as_me:$LINENO: checking build system type" >&5
2116echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002117if test "${ac_cv_build+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
Reid Spencera773bd52006-08-04 18:18:08 +00002120 ac_build_alias=$build_alias
2121test "x$ac_build_alias" = x &&
2122 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2123test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002124 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2125echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2126 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002127ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2128 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2129echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002130 { (exit 1); exit 1; }; }
2131
2132fi
Reid Spencera773bd52006-08-04 18:18:08 +00002133{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2134echo "${ECHO_T}$ac_cv_build" >&6; }
2135case $ac_cv_build in
2136*-*-*) ;;
2137*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2138echo "$as_me: error: invalid value of canonical build" >&2;}
2139 { (exit 1); exit 1; }; };;
2140esac
John Criswell7a73b802003-06-30 21:59:07 +00002141build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002142ac_save_IFS=$IFS; IFS='-'
2143set x $ac_cv_build
2144shift
2145build_cpu=$1
2146build_vendor=$2
2147shift; shift
2148# Remember, the first character of IFS is used to create $*,
2149# except with old shells:
2150build_os=$*
2151IFS=$ac_save_IFS
2152case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002153
2154
Reid Spencera773bd52006-08-04 18:18:08 +00002155{ echo "$as_me:$LINENO: checking host system type" >&5
2156echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002157if test "${ac_cv_host+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
Reid Spencera773bd52006-08-04 18:18:08 +00002160 if test "x$host_alias" = x; then
2161 ac_cv_host=$ac_cv_build
2162else
2163 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2164 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2165echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002167fi
John Criswell7a73b802003-06-30 21:59:07 +00002168
2169fi
Reid Spencera773bd52006-08-04 18:18:08 +00002170{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2171echo "${ECHO_T}$ac_cv_host" >&6; }
2172case $ac_cv_host in
2173*-*-*) ;;
2174*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2175echo "$as_me: error: invalid value of canonical host" >&2;}
2176 { (exit 1); exit 1; }; };;
2177esac
John Criswell7a73b802003-06-30 21:59:07 +00002178host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002179ac_save_IFS=$IFS; IFS='-'
2180set x $ac_cv_host
2181shift
2182host_cpu=$1
2183host_vendor=$2
2184shift; shift
2185# Remember, the first character of IFS is used to create $*,
2186# except with old shells:
2187host_os=$*
2188IFS=$ac_save_IFS
2189case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002190
2191
Reid Spencera773bd52006-08-04 18:18:08 +00002192{ echo "$as_me:$LINENO: checking target system type" >&5
2193echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002194if test "${ac_cv_target+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
Reid Spencera773bd52006-08-04 18:18:08 +00002197 if test "x$target_alias" = x; then
2198 ac_cv_target=$ac_cv_host
2199else
2200 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2201 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2202echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002203 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002204fi
John Criswell7a73b802003-06-30 21:59:07 +00002205
2206fi
Reid Spencera773bd52006-08-04 18:18:08 +00002207{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2208echo "${ECHO_T}$ac_cv_target" >&6; }
2209case $ac_cv_target in
2210*-*-*) ;;
2211*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2212echo "$as_me: error: invalid value of canonical target" >&2;}
2213 { (exit 1); exit 1; }; };;
2214esac
John Criswell7a73b802003-06-30 21:59:07 +00002215target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002216ac_save_IFS=$IFS; IFS='-'
2217set x $ac_cv_target
2218shift
2219target_cpu=$1
2220target_vendor=$2
2221shift; shift
2222# Remember, the first character of IFS is used to create $*,
2223# except with old shells:
2224target_os=$*
2225IFS=$ac_save_IFS
2226case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002227
2228
2229# The aliases save the names the user supplied, while $host etc.
2230# will get canonicalized.
2231test -n "$target_alias" &&
2232 test "$program_prefix$program_suffix$program_transform_name" = \
2233 NONENONEs,x,x, &&
2234 program_prefix=${target_alias}-
2235
Reid Spencera773bd52006-08-04 18:18:08 +00002236{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2237echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002238if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002239 echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002241 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002242 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245 llvm_cv_os_type="AIX"
2246 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002247 *-*-irix*)
2248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250 llvm_cv_os_type="IRIX"
2251 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255 llvm_cv_os_type="Cygwin"
2256 llvm_cv_platform_type="Unix" ;;
2257 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,-all_load"
2259 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="Darwin"
2261 llvm_cv_platform_type="Unix" ;;
2262 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 llvm_cv_os_type="FreeBSD"
2266 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002267 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002270 llvm_cv_os_type="OpenBSD"
2271 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002272 *-*-netbsd*)
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="NetBSD"
2276 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002277 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002280 llvm_cv_os_type="HP-UX"
2281 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 llvm_cv_os_type="Interix"
2286 llvm_cv_platform_type="Unix" ;;
2287 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 llvm_cv_os_type="Linux"
2291 llvm_cv_platform_type="Unix" ;;
2292 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002293 llvm_cv_link_all_option="-Wl,-z,allextract"
2294 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 llvm_cv_os_type="SunOS"
2296 llvm_cv_platform_type="Unix" ;;
2297 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002300 llvm_cv_os_type="Win32"
2301 llvm_cv_platform_type="Win32" ;;
2302 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002305 llvm_cv_os_type="MingW"
2306 llvm_cv_platform_type="Win32" ;;
2307 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002308 llvm_cv_link_all_option=""
2309 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310 llvm_cv_os_type="Unknown"
2311 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002312esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002313fi
Reid Spencera773bd52006-08-04 18:18:08 +00002314{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2315echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002316
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317if test "$llvm_cv_os_type" = "Unknown" ; then
2318 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2319echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002320 { (exit 1); exit 1; }; }
2321fi
2322
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002324
2325
Reid Spencera773bd52006-08-04 18:18:08 +00002326LINKALL=$llvm_cv_link_all_option
2327
2328NOLINKALL=$llvm_cv_no_link_all_option
2329
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331case $llvm_cv_platform_type in
2332 Unix)
2333
2334cat >>confdefs.h <<\_ACEOF
2335#define LLVM_ON_UNIX 1
2336_ACEOF
2337
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002338 LLVM_ON_UNIX=1
2339
2340 LLVM_ON_WIN32=0
2341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342 ;;
2343 Win32)
2344
2345cat >>confdefs.h <<\_ACEOF
2346#define LLVM_ON_WIN32 1
2347_ACEOF
2348
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002349 LLVM_ON_UNIX=0
2350
2351 LLVM_ON_WIN32=1
2352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353 ;;
2354esac
2355
Reid Spencera773bd52006-08-04 18:18:08 +00002356{ echo "$as_me:$LINENO: checking target architecture" >&5
2357echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358if test "${llvm_cv_target_arch+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002362 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002363 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002364 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2365 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002366 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002367 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002368 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002369 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002370 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002371esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002372fi
Reid Spencera773bd52006-08-04 18:18:08 +00002373{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2374echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002375
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002376if test "$llvm_cv_target_arch" = "Unknown" ; then
2377 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2378echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2379fi
John Criswell76595452003-07-01 22:07:39 +00002380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002381ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002382
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002383
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384ac_ext=c
2385ac_cpp='$CPP $CPPFLAGS'
2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002389if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2391set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394if test "${ac_cv_prog_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2399else
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002406 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 +00002407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2410 fi
2411done
2412done
Reid Spencera773bd52006-08-04 18:18:08 +00002413IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414
2415fi
2416fi
2417CC=$ac_cv_prog_CC
2418if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002419 { echo "$as_me:$LINENO: result: $CC" >&5
2420echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421else
Reid Spencera773bd52006-08-04 18:18:08 +00002422 { echo "$as_me:$LINENO: result: no" >&5
2423echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424fi
2425
Reid Spencera773bd52006-08-04 18:18:08 +00002426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427fi
2428if test -z "$ac_cv_prog_CC"; then
2429 ac_ct_CC=$CC
2430 # Extract the first word of "gcc", so it can be a program name with args.
2431set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437 if test -n "$ac_ct_CC"; then
2438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002446 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 +00002447 ac_cv_prog_ac_ct_CC="gcc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451done
2452done
Reid Spencera773bd52006-08-04 18:18:08 +00002453IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454
2455fi
2456fi
2457ac_ct_CC=$ac_cv_prog_ac_ct_CC
2458if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002459 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2460echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461else
Reid Spencera773bd52006-08-04 18:18:08 +00002462 { echo "$as_me:$LINENO: result: no" >&5
2463echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464fi
2465
Reid Spencera773bd52006-08-04 18:18:08 +00002466 if test "x$ac_ct_CC" = x; then
2467 CC=""
2468 else
2469 case $cross_compiling:$ac_tool_warned in
2470yes:)
2471{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2472whose name does not start with the host triplet. If you think this
2473configuration is useful to you, please write to autoconf@gnu.org." >&5
2474echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2475whose name does not start with the host triplet. If you think this
2476configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2477ac_tool_warned=yes ;;
2478esac
2479 CC=$ac_ct_CC
2480 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481else
2482 CC="$ac_cv_prog_CC"
2483fi
2484
2485if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002486 if test -n "$ac_tool_prefix"; then
2487 # 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 +00002488set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002491if test "${ac_cv_prog_CC+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2493else
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2496else
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002503 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 +00002504 ac_cv_prog_CC="${ac_tool_prefix}cc"
2505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2507 fi
2508done
2509done
Reid Spencera773bd52006-08-04 18:18:08 +00002510IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511
2512fi
2513fi
2514CC=$ac_cv_prog_CC
2515if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002516 { echo "$as_me:$LINENO: result: $CC" >&5
2517echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518else
Reid Spencera773bd52006-08-04 18:18:08 +00002519 { echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521fi
2522
Reid Spencera773bd52006-08-04 18:18:08 +00002523
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525fi
2526if test -z "$CC"; then
2527 # Extract the first word of "cc", so it can be a program name with args.
2528set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536else
2537 ac_prog_rejected=no
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002544 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 +00002545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2546 ac_prog_rejected=yes
2547 continue
2548 fi
2549 ac_cv_prog_CC="cc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553done
2554done
Reid Spencera773bd52006-08-04 18:18:08 +00002555IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556
2557if test $ac_prog_rejected = yes; then
2558 # We found a bogon in the path, so make sure we never use it.
2559 set dummy $ac_cv_prog_CC
2560 shift
2561 if test $# != 0; then
2562 # We chose a different compiler from the bogus one.
2563 # However, it has the same basename, so the bogon will be chosen
2564 # first if we set CC to just the basename; use the full file name.
2565 shift
2566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2567 fi
2568fi
2569fi
2570fi
2571CC=$ac_cv_prog_CC
2572if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002573 { echo "$as_me:$LINENO: result: $CC" >&5
2574echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575else
Reid Spencera773bd52006-08-04 18:18:08 +00002576 { echo "$as_me:$LINENO: result: no" >&5
2577echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578fi
2579
Reid Spencera773bd52006-08-04 18:18:08 +00002580
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581fi
2582if test -z "$CC"; then
2583 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002584 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002585 do
2586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002595else
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002602 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 +00002603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2606 fi
2607done
2608done
Reid Spencera773bd52006-08-04 18:18:08 +00002609IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002610
2611fi
2612fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613CC=$ac_cv_prog_CC
2614if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002615 { echo "$as_me:$LINENO: result: $CC" >&5
2616echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002617else
Reid Spencera773bd52006-08-04 18:18:08 +00002618 { echo "$as_me:$LINENO: result: no" >&5
2619echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002620fi
2621
Reid Spencera773bd52006-08-04 18:18:08 +00002622
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002624 done
2625fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626if test -z "$CC"; then
2627 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002628 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002629do
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637 if test -n "$ac_ct_CC"; then
2638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002646 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 +00002647 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651done
2652done
Reid Spencera773bd52006-08-04 18:18:08 +00002653IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002654
2655fi
2656fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002659 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2660echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002661else
Reid Spencera773bd52006-08-04 18:18:08 +00002662 { echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002664fi
2665
Reid Spencera773bd52006-08-04 18:18:08 +00002666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002668done
John Criswell7a73b802003-06-30 21:59:07 +00002669
Reid Spencera773bd52006-08-04 18:18:08 +00002670 if test "x$ac_ct_CC" = x; then
2671 CC=""
2672 else
2673 case $cross_compiling:$ac_tool_warned in
2674yes:)
2675{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2676whose name does not start with the host triplet. If you think this
2677configuration is useful to you, please write to autoconf@gnu.org." >&5
2678echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2681ac_tool_warned=yes ;;
2682esac
2683 CC=$ac_ct_CC
2684 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685fi
2686
John Criswell7a73b802003-06-30 21:59:07 +00002687fi
2688
2689
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2691See \`config.log' for more details." >&5
2692echo "$as_me: error: no acceptable C compiler found in \$PATH
2693See \`config.log' for more details." >&2;}
2694 { (exit 1); exit 1; }; }
2695
John Criswell7a73b802003-06-30 21:59:07 +00002696# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002697echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002698ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002699{ (ac_try="$ac_compiler --version >&5"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002709{ (ac_try="$ac_compiler -v >&5"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002719{ (ac_try="$ac_compiler -V >&5"
2720case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }
2729
2730cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002736
John Criswell7a73b802003-06-30 21:59:07 +00002737int
2738main ()
2739{
2740
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002746ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002747# Try to create an executable without -o first, disregard a.out.
2748# It will help us diagnose broken compilers, and finding out an intuition
2749# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002750{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2751echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002752ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002753#
2754# List of possible output files, starting from the most likely.
2755# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2756# only as a last resort. b.out is created by i960 compilers.
2757ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2758#
2759# The IRIX 6 linker writes into existing files which may not be
2760# executable, retaining their permissions. Remove them first so a
2761# subsequent execution test works.
2762ac_rmfiles=
2763for ac_file in $ac_files
2764do
2765 case $ac_file in
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2767 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2768 esac
2769done
2770rm -f $ac_rmfiles
2771
2772if { (ac_try="$ac_link_default"
2773case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2783# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2784# in a Makefile. We should not override ac_cv_exeext if it was cached,
2785# so that the user can short-circuit this test for compilers unknown to
2786# Autoconf.
2787for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002788do
2789 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002790 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002792 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002793 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002794 # We found the default executable, but exeext='' is most
2795 # certainly right.
2796 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002797 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2799 then :; else
2800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2801 fi
2802 # We set ac_cv_exeext here because the later test for it is not
2803 # safe: cross compilers may not add the suffix if given an `-o'
2804 # argument, so we may need to know it at that point already.
2805 # Even if this section looks crufty: it has the advantage of
2806 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002807 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002808 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002809 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002810 esac
2811done
Reid Spencera773bd52006-08-04 18:18:08 +00002812test "$ac_cv_exeext" = no && ac_cv_exeext=
2813
John Criswell7a73b802003-06-30 21:59:07 +00002814else
2815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002816sed 's/^/| /' conftest.$ac_ext >&5
2817
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002818{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002819See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002820echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002821See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002822 { (exit 77); exit 77; }; }
2823fi
2824
2825ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002826{ echo "$as_me:$LINENO: result: $ac_file" >&5
2827echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002828
Reid Spencera773bd52006-08-04 18:18:08 +00002829# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002830# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002831{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2832echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002833# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2834# If not cross compiling, check that we can run a simple program.
2835if test "$cross_compiling" != yes; then
2836 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002837 { (case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 cross_compiling=no
2847 else
2848 if test "$cross_compiling" = maybe; then
2849 cross_compiling=yes
2850 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002851 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002852If you meant to cross compile, use \`--host'.
2853See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002854echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002857 { (exit 1); exit 1; }; }
2858 fi
2859 fi
2860fi
Reid Spencera773bd52006-08-04 18:18:08 +00002861{ echo "$as_me:$LINENO: result: yes" >&5
2862echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002863
John Criswell0c38eaf2003-09-10 15:17:25 +00002864rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002865ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002866# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002867# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002868{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2869echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2870{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2871echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002872
Reid Spencera773bd52006-08-04 18:18:08 +00002873{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2874echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2875if { (ac_try="$ac_link"
2876case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2886# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2887# work properly (i.e., refer to `conftest.exe'), while it won't with
2888# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002889for ac_file in conftest.exe conftest conftest.*; do
2890 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002891 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002894 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002895 * ) break;;
2896 esac
2897done
2898else
John Criswell0c38eaf2003-09-10 15:17:25 +00002899 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2900See \`config.log' for more details." >&5
2901echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2902See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002903 { (exit 1); exit 1; }; }
2904fi
2905
2906rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002907{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2908echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002909
2910rm -f conftest.$ac_ext
2911EXEEXT=$ac_cv_exeext
2912ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002913{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2914echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002915if test "${ac_cv_objext+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002924
John Criswell7a73b802003-06-30 21:59:07 +00002925int
2926main ()
2927{
2928
2929 ;
2930 return 0;
2931}
2932_ACEOF
2933rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002934if { (ac_try="$ac_compile"
2935case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938esac
2939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002944 for ac_file in conftest.o conftest.obj conftest.*; do
2945 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002946 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949 break;;
2950 esac
2951done
2952else
2953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2957See \`config.log' for more details." >&5
2958echo "$as_me: error: cannot compute suffix of object files: cannot compile
2959See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002960 { (exit 1); exit 1; }; }
2961fi
2962
2963rm -f conftest.$ac_cv_objext conftest.$ac_ext
2964fi
Reid Spencera773bd52006-08-04 18:18:08 +00002965{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2966echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002967OBJEXT=$ac_cv_objext
2968ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002969{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2970echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002971if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973else
2974 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002975/* confdefs.h. */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002980
John Criswell7a73b802003-06-30 21:59:07 +00002981int
2982main ()
2983{
2984#ifndef __GNUC__
2985 choke me
2986#endif
2987
2988 ;
2989 return 0;
2990}
2991_ACEOF
2992rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002993if { (ac_try="$ac_compile"
2994case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003000 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3007 { (case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; } &&
3016 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 ac_compiler_gnu=yes
3027else
3028 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003029sed 's/^/| /' conftest.$ac_ext >&5
3030
Reid Spencera773bd52006-08-04 18:18:08 +00003031 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003032fi
Reid Spencera773bd52006-08-04 18:18:08 +00003033
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003035ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003036
3037fi
Reid Spencera773bd52006-08-04 18:18:08 +00003038{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3039echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003040GCC=`test $ac_compiler_gnu = yes && echo yes`
3041ac_test_CFLAGS=${CFLAGS+set}
3042ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003043{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3044echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003045if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047else
Reid Spencera773bd52006-08-04 18:18:08 +00003048 ac_save_c_werror_flag=$ac_c_werror_flag
3049 ac_c_werror_flag=yes
3050 ac_cv_prog_cc_g=no
3051 CFLAGS="-g"
3052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003053/* confdefs.h. */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003058
John Criswell7a73b802003-06-30 21:59:07 +00003059int
3060main ()
3061{
3062
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003068if { (ac_try="$ac_compile"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003075 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003101 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003102else
3103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003104sed 's/^/| /' conftest.$ac_ext >&5
3105
Reid Spencera773bd52006-08-04 18:18:08 +00003106 CFLAGS=""
3107 cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext
3123if { (ac_try="$ac_compile"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 :
3157else
3158 echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3162 CFLAGS="-g"
3163 cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h. */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h. */
3169
3170int
3171main ()
3172{
3173
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext
3179if { (ac_try="$ac_compile"
3180case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183esac
3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
3207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_try") 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 ac_cv_prog_cc_g=yes
3213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217
John Criswell7a73b802003-06-30 21:59:07 +00003218fi
Reid Spencera773bd52006-08-04 18:18:08 +00003219
3220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003221fi
Reid Spencera773bd52006-08-04 18:18:08 +00003222
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224fi
3225
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_c_werror_flag=$ac_save_c_werror_flag
3228fi
3229{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003231if test "$ac_test_CFLAGS" = set; then
3232 CFLAGS=$ac_save_CFLAGS
3233elif test $ac_cv_prog_cc_g = yes; then
3234 if test "$GCC" = yes; then
3235 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003236 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003237 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003238 fi
3239else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240 if test "$GCC" = yes; then
3241 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003242 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003243 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003244 fi
3245fi
Reid Spencera773bd52006-08-04 18:18:08 +00003246{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3247echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3248if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
Reid Spencera773bd52006-08-04 18:18:08 +00003251 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252ac_save_CC=$CC
3253cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */
3259#include <stdarg.h>
3260#include <stdio.h>
3261#include <sys/types.h>
3262#include <sys/stat.h>
3263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264struct buf { int x; };
3265FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266static char *e (p, i)
3267 char **p;
3268 int i;
3269{
3270 return p[i];
3271}
3272static char *f (char * (*g) (char **, int), char **p, ...)
3273{
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3280}
3281
3282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003285 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003288 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
Reid Spencera773bd52006-08-04 18:18:08 +00003291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3293#define FOO(x) 'x'
3294int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3295
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296int test (int i, double x);
3297struct s1 {int (*f) (int a);};
3298struct s2 {int (*f) (double a);};
3299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300int argc;
3301char **argv;
3302int
3303main ()
3304{
3305return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3306 ;
3307 return 0;
3308}
3309_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003310for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312do
3313 CC="$ac_save_CC $ac_arg"
3314 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003315if { (ac_try="$ac_compile"
3316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
3320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003339 { (case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
3343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003348 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349else
3350 echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
Reid Spencera773bd52006-08-04 18:18:08 +00003353
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354fi
Reid Spencera773bd52006-08-04 18:18:08 +00003355
3356rm -f core conftest.err conftest.$ac_objext
3357 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358done
Reid Spencera773bd52006-08-04 18:18:08 +00003359rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360CC=$ac_save_CC
3361
3362fi
Reid Spencera773bd52006-08-04 18:18:08 +00003363# AC_CACHE_VAL
3364case "x$ac_cv_prog_cc_c89" in
3365 x)
3366 { echo "$as_me:$LINENO: result: none needed" >&5
3367echo "${ECHO_T}none needed" >&6; } ;;
3368 xno)
3369 { echo "$as_me:$LINENO: result: unsupported" >&5
3370echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003372 CC="$CC $ac_cv_prog_cc_c89"
3373 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375esac
3376
John Criswell0c38eaf2003-09-10 15:17:25 +00003377
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378ac_ext=c
3379ac_cpp='$CPP $CPPFLAGS'
3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383
3384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003390{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3391echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392# On Suns, sometimes $CPP names a directory.
3393if test -n "$CPP" && test -d "$CPP"; then
3394 CPP=
3395fi
3396if test -z "$CPP"; then
3397 if test "${ac_cv_prog_CPP+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 # Double quotes because CPP needs to be expanded
3401 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3402 do
3403 ac_preproc_ok=false
3404for ac_c_preproc_warn_flag in '' yes
3405do
3406 # Use a header file that comes with gcc, so configuring glibc
3407 # with a fresh cross-compiler works.
3408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3409 # <limits.h> exists even on freestanding compilers.
3410 # On the NeXT, cc -E runs the code through the compiler's parser,
3411 # not just through cpp. "Syntax error" is here to catch this case.
3412 cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
3418#ifdef __STDC__
3419# include <limits.h>
3420#else
3421# include <assert.h>
3422#endif
3423 Syntax error
3424_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003425if { (ac_try="$ac_cpp conftest.$ac_ext"
3426case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429esac
3430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3441 else
3442 ac_cpp_err=
3443 fi
3444else
3445 ac_cpp_err=yes
3446fi
3447if test -z "$ac_cpp_err"; then
3448 :
3449else
3450 echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 # Broken: fails on valid input.
3454continue
3455fi
Reid Spencera773bd52006-08-04 18:18:08 +00003456
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003457rm -f conftest.err conftest.$ac_ext
3458
Reid Spencera773bd52006-08-04 18:18:08 +00003459 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460 # can be detected and how.
3461 cat >conftest.$ac_ext <<_ACEOF
3462/* confdefs.h. */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h. */
3467#include <ac_nonexistent.h>
3468_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003469if { (ac_try="$ac_cpp conftest.$ac_ext"
3470case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003476 ac_status=$?
3477 grep -v '^ *+' conftest.er1 >conftest.err
3478 rm -f conftest.er1
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null; then
3482 if test -s conftest.err; then
3483 ac_cpp_err=$ac_c_preproc_warn_flag
3484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3485 else
3486 ac_cpp_err=
3487 fi
3488else
3489 ac_cpp_err=yes
3490fi
3491if test -z "$ac_cpp_err"; then
3492 # Broken: success on invalid input.
3493continue
3494else
3495 echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 # Passes both tests.
3499ac_preproc_ok=:
3500break
3501fi
Reid Spencera773bd52006-08-04 18:18:08 +00003502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503rm -f conftest.err conftest.$ac_ext
3504
3505done
3506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507rm -f conftest.err conftest.$ac_ext
3508if $ac_preproc_ok; then
3509 break
3510fi
3511
3512 done
3513 ac_cv_prog_CPP=$CPP
3514
3515fi
3516 CPP=$ac_cv_prog_CPP
3517else
3518 ac_cv_prog_CPP=$CPP
3519fi
Reid Spencera773bd52006-08-04 18:18:08 +00003520{ echo "$as_me:$LINENO: result: $CPP" >&5
3521echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003522ac_preproc_ok=false
3523for ac_c_preproc_warn_flag in '' yes
3524do
3525 # Use a header file that comes with gcc, so configuring glibc
3526 # with a fresh cross-compiler works.
3527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3528 # <limits.h> exists even on freestanding compilers.
3529 # On the NeXT, cc -E runs the code through the compiler's parser,
3530 # not just through cpp. "Syntax error" is here to catch this case.
3531 cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h. */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h. */
3537#ifdef __STDC__
3538# include <limits.h>
3539#else
3540# include <assert.h>
3541#endif
3542 Syntax error
3543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003544if { (ac_try="$ac_cpp conftest.$ac_ext"
3545case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548esac
3549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560 else
3561 ac_cpp_err=
3562 fi
3563else
3564 ac_cpp_err=yes
3565fi
3566if test -z "$ac_cpp_err"; then
3567 :
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 # Broken: fails on valid input.
3573continue
3574fi
Reid Spencera773bd52006-08-04 18:18:08 +00003575
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003576rm -f conftest.err conftest.$ac_ext
3577
Reid Spencera773bd52006-08-04 18:18:08 +00003578 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579 # can be detected and how.
3580 cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
3586#include <ac_nonexistent.h>
3587_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003588if { (ac_try="$ac_cpp conftest.$ac_ext"
3589case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
3593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null; then
3601 if test -s conftest.err; then
3602 ac_cpp_err=$ac_c_preproc_warn_flag
3603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3604 else
3605 ac_cpp_err=
3606 fi
3607else
3608 ac_cpp_err=yes
3609fi
3610if test -z "$ac_cpp_err"; then
3611 # Broken: success on invalid input.
3612continue
3613else
3614 echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 # Passes both tests.
3618ac_preproc_ok=:
3619break
3620fi
Reid Spencera773bd52006-08-04 18:18:08 +00003621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622rm -f conftest.err conftest.$ac_ext
3623
3624done
3625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626rm -f conftest.err conftest.$ac_ext
3627if $ac_preproc_ok; then
3628 :
3629else
3630 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3631See \`config.log' for more details." >&5
3632echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3633See \`config.log' for more details." >&2;}
3634 { (exit 1); exit 1; }; }
3635fi
3636
John Criswell7a73b802003-06-30 21:59:07 +00003637ac_ext=c
3638ac_cpp='$CPP $CPPFLAGS'
3639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
John Criswell7a73b802003-06-30 21:59:07 +00003643
Reid Spencera773bd52006-08-04 18:18:08 +00003644{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3645echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003646if test "${ac_cv_path_GREP+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648else
Reid Spencera773bd52006-08-04 18:18:08 +00003649 # Extract the first word of "grep ggrep" to use in msg output
3650if test -z "$GREP"; then
3651set dummy grep ggrep; ac_prog_name=$2
3652if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
Reid Spencera773bd52006-08-04 18:18:08 +00003655 ac_path_GREP_found=false
3656# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003659do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003662 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003663 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003664 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3665 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3666 # Check for GNU ac_path_GREP and select it if it is found.
3667 # Check for GNU $ac_path_GREP
3668case `"$ac_path_GREP" --version 2>&1` in
3669*GNU*)
3670 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3671*)
3672 ac_count=0
3673 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3674 while :
3675 do
3676 cat "conftest.in" "conftest.in" >"conftest.tmp"
3677 mv "conftest.tmp" "conftest.in"
3678 cp "conftest.in" "conftest.nl"
3679 echo 'GREP' >> "conftest.nl"
3680 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3682 ac_count=`expr $ac_count + 1`
3683 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3684 # Best one so far, save it but keep looking for a better one
3685 ac_cv_path_GREP="$ac_path_GREP"
3686 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003687 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003688 # 10*(2^10) chars as input seems more than enough
3689 test $ac_count -gt 10 && break
3690 done
3691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3692esac
3693
3694
3695 $ac_path_GREP_found && break 3
3696 done
3697done
3698
3699done
3700IFS=$as_save_IFS
3701
3702
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003703fi
Reid Spencera773bd52006-08-04 18:18:08 +00003704
3705GREP="$ac_cv_path_GREP"
3706if test -z "$GREP"; then
3707 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3708echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3709 { (exit 1); exit 1; }; }
3710fi
3711
3712else
3713 ac_cv_path_GREP=$GREP
3714fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003715
John Criswell7a73b802003-06-30 21:59:07 +00003716
Reid Spencera773bd52006-08-04 18:18:08 +00003717fi
3718{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3719echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3720 GREP="$ac_cv_path_GREP"
3721
3722
3723{ echo "$as_me:$LINENO: checking for egrep" >&5
3724echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3725if test "${ac_cv_path_EGREP+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3729 then ac_cv_path_EGREP="$GREP -E"
3730 else
3731 # Extract the first word of "egrep" to use in msg output
3732if test -z "$EGREP"; then
3733set dummy egrep; ac_prog_name=$2
3734if test "${ac_cv_path_EGREP+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737 ac_path_EGREP_found=false
3738# Loop through the user's path and test for each of PROGNAME-LIST
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_prog in egrep; do
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3747 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3748 # Check for GNU ac_path_EGREP and select it if it is found.
3749 # Check for GNU $ac_path_EGREP
3750case `"$ac_path_EGREP" --version 2>&1` in
3751*GNU*)
3752 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3753*)
3754 ac_count=0
3755 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3756 while :
3757 do
3758 cat "conftest.in" "conftest.in" >"conftest.tmp"
3759 mv "conftest.tmp" "conftest.in"
3760 cp "conftest.in" "conftest.nl"
3761 echo 'EGREP' >> "conftest.nl"
3762 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3764 ac_count=`expr $ac_count + 1`
3765 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3766 # Best one so far, save it but keep looking for a better one
3767 ac_cv_path_EGREP="$ac_path_EGREP"
3768 ac_path_EGREP_max=$ac_count
3769 fi
3770 # 10*(2^10) chars as input seems more than enough
3771 test $ac_count -gt 10 && break
3772 done
3773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3774esac
3775
3776
3777 $ac_path_EGREP_found && break 3
3778 done
3779done
3780
3781done
3782IFS=$as_save_IFS
3783
3784
3785fi
3786
3787EGREP="$ac_cv_path_EGREP"
3788if test -z "$EGREP"; then
3789 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3790echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3791 { (exit 1); exit 1; }; }
3792fi
3793
3794else
3795 ac_cv_path_EGREP=$EGREP
3796fi
3797
3798
3799 fi
3800fi
3801{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3802echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3803 EGREP="$ac_cv_path_EGREP"
3804
3805
3806{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3807echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003808if test "${ac_cv_header_stdc+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003812/* confdefs.h. */
3813_ACEOF
3814cat confdefs.h >>conftest.$ac_ext
3815cat >>conftest.$ac_ext <<_ACEOF
3816/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003817#include <stdlib.h>
3818#include <stdarg.h>
3819#include <string.h>
3820#include <float.h>
3821
John Criswell0c38eaf2003-09-10 15:17:25 +00003822int
3823main ()
3824{
3825
3826 ;
3827 return 0;
3828}
John Criswell7a73b802003-06-30 21:59:07 +00003829_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003830rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003831if { (ac_try="$ac_compile"
3832case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835esac
3836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003838 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003843 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3845 { (case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003855 { (case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
3859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003864 ac_cv_header_stdc=yes
3865else
3866 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003867sed 's/^/| /' conftest.$ac_ext >&5
3868
Reid Spencera773bd52006-08-04 18:18:08 +00003869 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003870fi
Reid Spencera773bd52006-08-04 18:18:08 +00003871
3872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003873
3874if test $ac_cv_header_stdc = yes; then
3875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3876 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003877/* confdefs.h. */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003882#include <string.h>
3883
3884_ACEOF
3885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003886 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003887 :
3888else
3889 ac_cv_header_stdc=no
3890fi
3891rm -f conftest*
3892
3893fi
3894
3895if test $ac_cv_header_stdc = yes; then
3896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3897 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003903#include <stdlib.h>
3904
3905_ACEOF
3906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003907 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003908 :
3909else
3910 ac_cv_header_stdc=no
3911fi
3912rm -f conftest*
3913
3914fi
3915
3916if test $ac_cv_header_stdc = yes; then
3917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3918 if test "$cross_compiling" = yes; then
3919 :
3920else
3921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003922/* confdefs.h. */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003927#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003928#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003929#if ((' ' & 0x0FF) == 0x020)
3930# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3931# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3932#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003933# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003934 (('a' <= (c) && (c) <= 'i') \
3935 || ('j' <= (c) && (c) <= 'r') \
3936 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003937# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3938#endif
3939
3940#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3941int
3942main ()
3943{
3944 int i;
3945 for (i = 0; i < 256; i++)
3946 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003947 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003948 return 2;
3949 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003950}
3951_ACEOF
3952rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003953if { (ac_try="$ac_link"
3954case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957esac
3958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003963 { (case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966esac
3967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 :
3973else
3974 echo "$as_me: program exited with status $ac_status" >&5
3975echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003976sed 's/^/| /' conftest.$ac_ext >&5
3977
John Criswell7a73b802003-06-30 21:59:07 +00003978( exit $ac_status )
3979ac_cv_header_stdc=no
3980fi
Reid Spencera773bd52006-08-04 18:18:08 +00003981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3982fi
3983
3984
John Criswell7a73b802003-06-30 21:59:07 +00003985fi
3986fi
Reid Spencera773bd52006-08-04 18:18:08 +00003987{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3988echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003989if test $ac_cv_header_stdc = yes; then
3990
3991cat >>confdefs.h <<\_ACEOF
3992#define STDC_HEADERS 1
3993_ACEOF
3994
3995fi
3996
Reid Spencera773bd52006-08-04 18:18:08 +00003997# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4008 inttypes.h stdint.h unistd.h
4009do
4010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4011{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016 cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h. */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h. */
4022$ac_includes_default
4023
4024#include <$ac_header>
4025_ACEOF
4026rm -f conftest.$ac_objext
4027if { (ac_try="$ac_compile"
4028case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031esac
4032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_compile") 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4041 { (case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_try") 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; } &&
4050 { ac_try='test -s conftest.$ac_objext'
4051 { (case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_try") 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 eval "$as_ac_Header=yes"
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 eval "$as_ac_Header=no"
4066fi
4067
4068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069fi
4070ac_res=`eval echo '${'$as_ac_Header'}'`
4071 { echo "$as_me:$LINENO: result: $ac_res" >&5
4072echo "${ECHO_T}$ac_res" >&6; }
4073if test `eval echo '${'$as_ac_Header'}'` = yes; then
4074 cat >>confdefs.h <<_ACEOF
4075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4076_ACEOF
4077
4078fi
4079
4080done
4081
4082
4083{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4084echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4085if test "${ac_cv_c_bigendian+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088 # See if sys/param.h defines the BYTE_ORDER macro.
4089cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
4095#include <sys/types.h>
4096#include <sys/param.h>
4097
4098int
4099main ()
4100{
4101#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4102 bogus endian macros
4103#endif
4104
4105 ;
4106 return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (ac_try="$ac_compile"
4111case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_try") 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 # It does; now see whether it defined to BIG_ENDIAN or not.
4144cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h. */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h. */
4150#include <sys/types.h>
4151#include <sys/param.h>
4152
4153int
4154main ()
4155{
4156#if BYTE_ORDER != BIG_ENDIAN
4157 not big endian
4158#endif
4159
4160 ;
4161 return 0;
4162}
4163_ACEOF
4164rm -f conftest.$ac_objext
4165if { (ac_try="$ac_compile"
4166case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169esac
4170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_compile") 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; } &&
4188 { ac_try='test -s conftest.$ac_objext'
4189 { (case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192esac
4193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_try") 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 ac_cv_c_bigendian=yes
4199else
4200 echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 ac_cv_c_bigendian=no
4204fi
4205
4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207else
4208 echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 # It does not; compile a test program.
4212if test "$cross_compiling" = yes; then
4213 # try to guess the endianness by grepping values into an object file
4214 ac_cv_c_bigendian=unknown
4215 cat >conftest.$ac_ext <<_ACEOF
4216/* confdefs.h. */
4217_ACEOF
4218cat confdefs.h >>conftest.$ac_ext
4219cat >>conftest.$ac_ext <<_ACEOF
4220/* end confdefs.h. */
4221short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4222short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4223void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4224short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4225short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4226void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4227int
4228main ()
4229{
4230 _ascii (); _ebcdic ();
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235rm -f conftest.$ac_objext
4236if { (ac_try="$ac_compile"
4237case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_compile") 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4269 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4270 ac_cv_c_bigendian=yes
4271fi
4272if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4273 if test "$ac_cv_c_bigendian" = unknown; then
4274 ac_cv_c_bigendian=no
4275 else
4276 # finding both strings is unlikely to happen, but who knows?
4277 ac_cv_c_bigendian=unknown
4278 fi
4279fi
4280else
4281 echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284
4285fi
4286
4287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288else
4289 cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
4295$ac_includes_default
4296int
4297main ()
4298{
4299
4300 /* Are we little or big endian? From Harbison&Steele. */
4301 union
4302 {
4303 long int l;
4304 char c[sizeof (long int)];
4305 } u;
4306 u.l = 1;
4307 return u.c[sizeof (long int) - 1] == 1;
4308
4309 ;
4310 return 0;
4311}
4312_ACEOF
4313rm -f conftest$ac_exeext
4314if { (ac_try="$ac_link"
4315case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_link") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_c_bigendian=no
4334else
4335 echo "$as_me: program exited with status $ac_status" >&5
4336echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339( exit $ac_status )
4340ac_cv_c_bigendian=yes
4341fi
4342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4343fi
4344
4345
4346fi
4347
4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349fi
4350{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4351echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4352case $ac_cv_c_bigendian in
4353 yes)
4354 ENDIAN=big
4355 ;;
4356 no)
4357 ENDIAN=little
4358 ;;
4359 *)
4360 { { echo "$as_me:$LINENO: error: unknown endianness
4361presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4362echo "$as_me: error: unknown endianness
4363presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4364 { (exit 1); exit 1; }; } ;;
4365esac
4366
4367
4368if test "$cross_compiling" = yes; then
4369 LLVM_CROSS_COMPILING=1
4370
4371
4372{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4373echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4374if test "${ac_cv_build_exeext+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4378 ac_cv_build_exeext=.exe
4379else
4380 ac_build_prefix=${build_alias}-
4381
4382 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4383set dummy ${ac_build_prefix}gcc; ac_word=$2
4384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4386if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389 if test -n "$BUILD_CC"; then
4390 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403done
4404done
4405IFS=$as_save_IFS
4406
4407fi
4408fi
4409BUILD_CC=$ac_cv_prog_BUILD_CC
4410if test -n "$BUILD_CC"; then
4411 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4412echo "${ECHO_T}$BUILD_CC" >&6; }
4413else
4414 { echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6; }
4416fi
4417
4418
4419 if test -z "$BUILD_CC"; then
4420 # Extract the first word of "gcc", so it can be a program name with args.
4421set dummy gcc; ac_word=$2
4422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427 if test -n "$BUILD_CC"; then
4428 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_BUILD_CC="gcc"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442done
4443IFS=$as_save_IFS
4444
4445fi
4446fi
4447BUILD_CC=$ac_cv_prog_BUILD_CC
4448if test -n "$BUILD_CC"; then
4449 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4450echo "${ECHO_T}$BUILD_CC" >&6; }
4451else
4452 { echo "$as_me:$LINENO: result: no" >&5
4453echo "${ECHO_T}no" >&6; }
4454fi
4455
4456
4457 if test -z "$BUILD_CC"; then
4458 # Extract the first word of "cc", so it can be a program name with args.
4459set dummy cc; ac_word=$2
4460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 if test -n "$BUILD_CC"; then
4466 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4467else
4468 ac_prog_rejected=no
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4477 ac_prog_rejected=yes
4478 continue
4479 fi
4480 ac_cv_prog_BUILD_CC="cc"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484done
4485done
4486IFS=$as_save_IFS
4487
4488if test $ac_prog_rejected = yes; then
4489 # We found a bogon in the path, so make sure we never use it.
4490 set dummy $ac_cv_prog_BUILD_CC
4491 shift
4492 if test $# != 0; then
4493 # We chose a different compiler from the bogus one.
4494 # However, it has the same basename, so the bogon will be chosen
4495 # first if we set BUILD_CC to just the basename; use the full file name.
4496 shift
4497 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4498 fi
4499fi
4500fi
4501fi
4502BUILD_CC=$ac_cv_prog_BUILD_CC
4503if test -n "$BUILD_CC"; then
4504 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4505echo "${ECHO_T}$BUILD_CC" >&6; }
4506else
4507 { echo "$as_me:$LINENO: result: no" >&5
4508echo "${ECHO_T}no" >&6; }
4509fi
4510
4511
4512 fi
4513 fi
4514 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4515echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4516 { (exit 1); exit 1; }; }
4517 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4518 rm -f conftest*
4519 echo 'int main () { return 0; }' > conftest.$ac_ext
4520 ac_cv_build_exeext=
4521 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4522 (eval $ac_build_link) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; then
4526 for file in conftest.*; do
4527 case $file in
4528 *.c | *.o | *.obj) ;;
4529 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4530 esac
4531 done
4532 else
4533 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4534echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4535 { (exit 1); exit 1; }; }
4536 fi
4537 rm -f conftest*
4538 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4539fi
4540fi
4541
4542BUILD_EXEEXT=""
4543test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4544{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4545echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4546ac_build_exeext=$BUILD_EXEEXT
4547
4548else
4549 LLVM_CROSS_COMPILING=0
4550
4551fi
4552
Reid Spencer0b1e4662007-04-02 15:41:39 +00004553if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004554 cvsbuild="yes"
4555 optimize="no"
4556 CVSBUILD=CVSBUILD=1
4557
4558else
4559 cvsbuild="no"
4560 optimize="yes"
4561fi
4562
4563
4564# Check whether --enable-optimized was given.
4565if test "${enable_optimized+set}" = set; then
4566 enableval=$enable_optimized;
4567else
4568 enableval=$optimize
4569fi
4570
4571if test ${enableval} = "no" ; then
4572 ENABLE_OPTIMIZED=
4573
4574else
4575 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4576
4577fi
4578
4579# Check whether --enable-assertions was given.
4580if test "${enable_assertions+set}" = set; then
4581 enableval=$enable_assertions;
4582else
4583 enableval="yes"
4584fi
4585
4586if test ${enableval} = "yes" ; then
4587 DISABLE_ASSERTIONS=
4588
4589else
4590 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4591
4592fi
4593
David Greenea696d242007-06-28 19:36:08 +00004594# Check whether --enable-expensive-checks was given.
4595if test "${enable_expensive_checks+set}" = set; then
4596 enableval=$enable_expensive_checks;
4597else
4598 enableval="no"
4599fi
4600
4601if test ${enableval} = "yes" ; then
4602 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4603
4604 EXPENSIVE_CHECKS=yes
4605
4606else
4607 ENABLE_EXPENSIVE_CHECKS=
4608
4609 EXPENSIVE_CHECKS=no
4610
4611fi
4612
Reid Spencer8b2e1412006-11-17 03:32:33 +00004613# Check whether --enable-debug-runtime was given.
4614if test "${enable_debug_runtime+set}" = set; then
4615 enableval=$enable_debug_runtime;
4616else
4617 enableval=no
4618fi
4619
4620if test ${enableval} = "no" ; then
4621 DEBUG_RUNTIME=
4622
4623else
4624 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4625
4626fi
4627
Reid Spencera773bd52006-08-04 18:18:08 +00004628# Check whether --enable-jit was given.
4629if test "${enable_jit+set}" = set; then
4630 enableval=$enable_jit;
4631else
4632 enableval=default
4633fi
4634
4635if test ${enableval} = "no"
4636then
4637 JIT=
4638
4639else
4640 case "$llvm_cv_target_arch" in
4641 x86) TARGET_HAS_JIT=1
4642 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004643 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004644 ;;
4645 PowerPC) TARGET_HAS_JIT=1
4646 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004647 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004648 ;;
4649 Alpha) TARGET_HAS_JIT=1
4650 ;;
4651 IA64) TARGET_HAS_JIT=0
4652 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004653 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004654 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004655 Mips) TARGET_HAS_JIT=0
4656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004657 *) TARGET_HAS_JIT=0
4658 ;;
4659 esac
4660fi
4661
4662# Check whether --enable-doxygen was given.
4663if test "${enable_doxygen+set}" = set; then
4664 enableval=$enable_doxygen;
4665else
4666 enableval=default
4667fi
4668
4669case "$enableval" in
4670 yes) ENABLE_DOXYGEN=1
4671 ;;
4672 no) ENABLE_DOXYGEN=0
4673 ;;
4674 default) ENABLE_DOXYGEN=0
4675 ;;
4676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4677echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4679esac
4680
4681# Check whether --enable-threads was given.
4682if test "${enable_threads+set}" = set; then
4683 enableval=$enable_threads;
4684else
Reid Spencer65c5d752006-11-05 17:08:18 +00004685 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004686fi
4687
4688case "$enableval" in
4689 yes) ENABLE_THREADS=1
4690 ;;
4691 no) ENABLE_THREADS=0
4692 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004693 default) ENABLE_THREADS=1
4694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004695 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4696echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4697 { (exit 1); exit 1; }; } ;;
4698esac
4699
4700cat >>confdefs.h <<_ACEOF
4701#define ENABLE_THREADS $ENABLE_THREADS
4702_ACEOF
4703
4704
Reid Spencer89b0d992006-12-16 22:07:52 +00004705# Check whether --enable-pic was given.
4706if test "${enable_pic+set}" = set; then
4707 enableval=$enable_pic;
4708else
4709 enableval=default
4710fi
4711
4712case "$enableval" in
4713 yes) ENABLE_PIC=1
4714 ;;
4715 no) ENABLE_PIC=0
4716 ;;
4717 default) ENABLE_PIC=0
4718 ;;
4719 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4720echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4721 { (exit 1); exit 1; }; } ;;
4722esac
4723
4724cat >>confdefs.h <<_ACEOF
4725#define ENABLE_PIC $ENABLE_PIC
4726_ACEOF
4727
4728
Reid Spencera773bd52006-08-04 18:18:08 +00004729TARGETS_TO_BUILD=""
4730# Check whether --enable-targets was given.
4731if test "${enable_targets+set}" = set; then
4732 enableval=$enable_targets;
4733else
4734 enableval=all
4735fi
4736
4737case "$enableval" in
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004738 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004739 host-only)
4740 case "$llvm_cv_target_arch" in
4741 x86) TARGETS_TO_BUILD="X86" ;;
4742 x86_64) TARGETS_TO_BUILD="X86" ;;
4743 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4744 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4745 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4746 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004747 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004748 Mips) TARGETS_TO_BUILD="Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004749 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4750echo "$as_me: error: Can not set target to build" >&2;}
4751 { (exit 1); exit 1; }; } ;;
4752 esac
4753 ;;
4754 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4755 case "$a_target" in
4756 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4757 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4758 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4759 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4760 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4761 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004762 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004763 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004764 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4765echo "$as_me: error: Unrecognized target $a_target" >&2;}
4766 { (exit 1); exit 1; }; } ;;
4767 esac
4768 done
4769 ;;
4770esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004771TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004772TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4773
4774
Reid Spencer65c5d752006-11-05 17:08:18 +00004775# Check whether --enable-cbe-printf-a was given.
4776if test "${enable_cbe_printf_a+set}" = set; then
4777 enableval=$enable_cbe_printf_a;
4778else
4779 enableval=default
4780fi
4781
4782case "$enableval" in
4783 yes) ENABLE_CBE_PRINTF_A=1
4784 ;;
4785 no) ENABLE_CBE_PRINTF_A=0
4786 ;;
4787 default) ENABLE_CBE_PRINTF_A=1
4788 ;;
4789 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4790echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4791 { (exit 1); exit 1; }; } ;;
4792esac
4793
4794cat >>confdefs.h <<_ACEOF
4795#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4796_ACEOF
4797
4798
Reid Spencera773bd52006-08-04 18:18:08 +00004799
4800# Check whether --with-llvmgccdir was given.
4801if test "${with_llvmgccdir+set}" = set; then
4802 withval=$with_llvmgccdir;
4803else
4804 withval=default
4805fi
4806
4807case "$withval" in
4808 default) WITH_LLVMGCCDIR=default ;;
4809 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4810 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4811echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4812 { (exit 1); exit 1; }; } ;;
4813esac
4814
4815
4816# Check whether --with-extra-options was given.
4817if test "${with_extra_options+set}" = set; then
4818 withval=$with_extra_options;
4819else
4820 withval=default
4821fi
4822
4823case "$withval" in
4824 default) EXTRA_OPTIONS= ;;
4825 *) EXTRA_OPTIONS=$withval ;;
4826esac
4827EXTRA_OPTIONS=$EXTRA_OPTIONS
4828
4829
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004830# Check whether --enable-bindings was given.
4831if test "${enable_bindings+set}" = set; then
4832 enableval=$enable_bindings;
4833else
4834 enableval=default
4835fi
4836
4837BINDINGS_TO_BUILD=""
4838case "$enableval" in
4839 all | yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4840 all ) BINDINGS_TO_BUILD="ocaml" ;;
4841 none | no) BINDINGS_TO_BUILD="" ;;
4842 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4843 case "$a_binding" in
4844 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4845 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4846echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4847 { (exit 1); exit 1; }; } ;;
4848 esac
4849 done
4850 ;;
4851esac
4852
Reid Spencera773bd52006-08-04 18:18:08 +00004853
4854ac_ext=c
4855ac_cpp='$CPP $CPPFLAGS'
4856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4860echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4861# On Suns, sometimes $CPP names a directory.
4862if test -n "$CPP" && test -d "$CPP"; then
4863 CPP=
4864fi
4865if test -z "$CPP"; then
4866 if test "${ac_cv_prog_CPP+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869 # Double quotes because CPP needs to be expanded
4870 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4871 do
4872 ac_preproc_ok=false
4873for ac_c_preproc_warn_flag in '' yes
4874do
4875 # Use a header file that comes with gcc, so configuring glibc
4876 # with a fresh cross-compiler works.
4877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878 # <limits.h> exists even on freestanding compilers.
4879 # On the NeXT, cc -E runs the code through the compiler's parser,
4880 # not just through cpp. "Syntax error" is here to catch this case.
4881 cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887#ifdef __STDC__
4888# include <limits.h>
4889#else
4890# include <assert.h>
4891#endif
4892 Syntax error
4893_ACEOF
4894if { (ac_try="$ac_cpp conftest.$ac_ext"
4895case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898esac
4899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910 else
4911 ac_cpp_err=
4912 fi
4913else
4914 ac_cpp_err=yes
4915fi
4916if test -z "$ac_cpp_err"; then
4917 :
4918else
4919 echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 # Broken: fails on valid input.
4923continue
4924fi
4925
4926rm -f conftest.err conftest.$ac_ext
4927
4928 # OK, works on sane cases. Now check whether nonexistent headers
4929 # can be detected and how.
4930 cat >conftest.$ac_ext <<_ACEOF
4931/* confdefs.h. */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h. */
4936#include <ac_nonexistent.h>
4937_ACEOF
4938if { (ac_try="$ac_cpp conftest.$ac_ext"
4939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
4943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } >/dev/null; then
4951 if test -s conftest.err; then
4952 ac_cpp_err=$ac_c_preproc_warn_flag
4953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4954 else
4955 ac_cpp_err=
4956 fi
4957else
4958 ac_cpp_err=yes
4959fi
4960if test -z "$ac_cpp_err"; then
4961 # Broken: success on invalid input.
4962continue
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Passes both tests.
4968ac_preproc_ok=:
4969break
4970fi
4971
4972rm -f conftest.err conftest.$ac_ext
4973
4974done
4975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976rm -f conftest.err conftest.$ac_ext
4977if $ac_preproc_ok; then
4978 break
4979fi
4980
4981 done
4982 ac_cv_prog_CPP=$CPP
4983
4984fi
4985 CPP=$ac_cv_prog_CPP
4986else
4987 ac_cv_prog_CPP=$CPP
4988fi
4989{ echo "$as_me:$LINENO: result: $CPP" >&5
4990echo "${ECHO_T}$CPP" >&6; }
4991ac_preproc_ok=false
4992for ac_c_preproc_warn_flag in '' yes
4993do
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat >conftest.$ac_ext <<_ACEOF
5001/* confdefs.h. */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h. */
5006#ifdef __STDC__
5007# include <limits.h>
5008#else
5009# include <assert.h>
5010#endif
5011 Syntax error
5012_ACEOF
5013if { (ac_try="$ac_cpp conftest.$ac_ext"
5014case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5017esac
5018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_c_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5029 else
5030 ac_cpp_err=
5031 fi
5032else
5033 ac_cpp_err=yes
5034fi
5035if test -z "$ac_cpp_err"; then
5036 :
5037else
5038 echo "$as_me: failed program was:" >&5
5039sed 's/^/| /' conftest.$ac_ext >&5
5040
5041 # Broken: fails on valid input.
5042continue
5043fi
5044
5045rm -f conftest.err conftest.$ac_ext
5046
5047 # OK, works on sane cases. Now check whether nonexistent headers
5048 # can be detected and how.
5049 cat >conftest.$ac_ext <<_ACEOF
5050/* confdefs.h. */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h. */
5055#include <ac_nonexistent.h>
5056_ACEOF
5057if { (ac_try="$ac_cpp conftest.$ac_ext"
5058case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061esac
5062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null; then
5070 if test -s conftest.err; then
5071 ac_cpp_err=$ac_c_preproc_warn_flag
5072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5073 else
5074 ac_cpp_err=
5075 fi
5076else
5077 ac_cpp_err=yes
5078fi
5079if test -z "$ac_cpp_err"; then
5080 # Broken: success on invalid input.
5081continue
5082else
5083 echo "$as_me: failed program was:" >&5
5084sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 # Passes both tests.
5087ac_preproc_ok=:
5088break
5089fi
5090
5091rm -f conftest.err conftest.$ac_ext
5092
5093done
5094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095rm -f conftest.err conftest.$ac_ext
5096if $ac_preproc_ok; then
5097 :
5098else
5099 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5100See \`config.log' for more details." >&5
5101echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5102See \`config.log' for more details." >&2;}
5103 { (exit 1); exit 1; }; }
5104fi
5105
5106ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112ac_ext=c
5113ac_cpp='$CPP $CPPFLAGS'
5114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117if test -n "$ac_tool_prefix"; then
5118 for ac_prog in gcc
5119 do
5120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5121set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5124if test "${ac_cv_prog_CC+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126else
5127 if test -n "$CC"; then
5128 ac_cv_prog_CC="$CC" # Let the user override the test.
5129else
5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141done
5142done
5143IFS=$as_save_IFS
5144
5145fi
5146fi
5147CC=$ac_cv_prog_CC
5148if test -n "$CC"; then
5149 { echo "$as_me:$LINENO: result: $CC" >&5
5150echo "${ECHO_T}$CC" >&6; }
5151else
5152 { echo "$as_me:$LINENO: result: no" >&5
5153echo "${ECHO_T}no" >&6; }
5154fi
5155
5156
5157 test -n "$CC" && break
5158 done
5159fi
5160if test -z "$CC"; then
5161 ac_ct_CC=$CC
5162 for ac_prog in gcc
5163do
5164 # Extract the first word of "$ac_prog", so it can be a program name with args.
5165set dummy $ac_prog; ac_word=$2
5166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170else
5171 if test -n "$ac_ct_CC"; then
5172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_ac_ct_CC="$ac_prog"
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185done
5186done
5187IFS=$as_save_IFS
5188
5189fi
5190fi
5191ac_ct_CC=$ac_cv_prog_ac_ct_CC
5192if test -n "$ac_ct_CC"; then
5193 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5194echo "${ECHO_T}$ac_ct_CC" >&6; }
5195else
5196 { echo "$as_me:$LINENO: result: no" >&5
5197echo "${ECHO_T}no" >&6; }
5198fi
5199
5200
5201 test -n "$ac_ct_CC" && break
5202done
5203
5204 if test "x$ac_ct_CC" = x; then
5205 CC=""
5206 else
5207 case $cross_compiling:$ac_tool_warned in
5208yes:)
5209{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5210whose name does not start with the host triplet. If you think this
5211configuration is useful to you, please write to autoconf@gnu.org." >&5
5212echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5213whose name does not start with the host triplet. If you think this
5214configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5215ac_tool_warned=yes ;;
5216esac
5217 CC=$ac_ct_CC
5218 fi
5219fi
5220
5221
5222test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5223See \`config.log' for more details." >&5
5224echo "$as_me: error: no acceptable C compiler found in \$PATH
5225See \`config.log' for more details." >&2;}
5226 { (exit 1); exit 1; }; }
5227
5228# Provide some information about the compiler.
5229echo "$as_me:$LINENO: checking for C compiler version" >&5
5230ac_compiler=`set X $ac_compile; echo $2`
5231{ (ac_try="$ac_compiler --version >&5"
5232case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235esac
5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compiler --version >&5") 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241{ (ac_try="$ac_compiler -v >&5"
5242case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5245esac
5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_compiler -v >&5") 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }
5251{ (ac_try="$ac_compiler -V >&5"
5252case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compiler -V >&5") 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5261
5262{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5263echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5264if test "${ac_cv_c_compiler_gnu+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273
5274int
5275main ()
5276{
5277#ifndef __GNUC__
5278 choke me
5279#endif
5280
5281 ;
5282 return 0;
5283}
5284_ACEOF
5285rm -f conftest.$ac_objext
5286if { (ac_try="$ac_compile"
5287case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290esac
5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_compile") 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5300 { (case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_try") 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest.$ac_objext'
5310 { (case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313esac
5314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_try") 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_compiler_gnu=yes
5320else
5321 echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ac_compiler_gnu=no
5325fi
5326
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328ac_cv_c_compiler_gnu=$ac_compiler_gnu
5329
5330fi
5331{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5332echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5333GCC=`test $ac_compiler_gnu = yes && echo yes`
5334ac_test_CFLAGS=${CFLAGS+set}
5335ac_save_CFLAGS=$CFLAGS
5336{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5337echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5338if test "${ac_cv_prog_cc_g+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341 ac_save_c_werror_flag=$ac_c_werror_flag
5342 ac_c_werror_flag=yes
5343 ac_cv_prog_cc_g=no
5344 CFLAGS="-g"
5345 cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h. */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h. */
5351
5352int
5353main ()
5354{
5355
5356 ;
5357 return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext
5361if { (ac_try="$ac_compile"
5362case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365esac
5366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_compile") 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5375 { (case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_try") 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388esac
5389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_try") 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_cv_prog_cc_g=yes
5395else
5396 echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 CFLAGS=""
5400 cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h. */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h. */
5406
5407int
5408main ()
5409{
5410
5411 ;
5412 return 0;
5413}
5414_ACEOF
5415rm -f conftest.$ac_objext
5416if { (ac_try="$ac_compile"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430 { (case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433esac
5434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_try") 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5443esac
5444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_try") 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 :
5450else
5451 echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ac_c_werror_flag=$ac_save_c_werror_flag
5455 CFLAGS="-g"
5456 cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h. */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h. */
5462
5463int
5464main ()
5465{
5466
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext
5472if { (ac_try="$ac_compile"
5473case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486 { (case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499esac
5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_try") 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_prog_cc_g=yes
5506else
5507 echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
5509
5510
5511fi
5512
5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514fi
5515
5516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517fi
5518
5519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_c_werror_flag=$ac_save_c_werror_flag
5521fi
5522{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5523echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5524if test "$ac_test_CFLAGS" = set; then
5525 CFLAGS=$ac_save_CFLAGS
5526elif test $ac_cv_prog_cc_g = yes; then
5527 if test "$GCC" = yes; then
5528 CFLAGS="-g -O2"
5529 else
5530 CFLAGS="-g"
5531 fi
5532else
5533 if test "$GCC" = yes; then
5534 CFLAGS="-O2"
5535 else
5536 CFLAGS=
5537 fi
5538fi
5539{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5540echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5541if test "${ac_cv_prog_cc_c89+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544 ac_cv_prog_cc_c89=no
5545ac_save_CC=$CC
5546cat >conftest.$ac_ext <<_ACEOF
5547/* confdefs.h. */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h. */
5552#include <stdarg.h>
5553#include <stdio.h>
5554#include <sys/types.h>
5555#include <sys/stat.h>
5556/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5557struct buf { int x; };
5558FILE * (*rcsopen) (struct buf *, struct stat *, int);
5559static char *e (p, i)
5560 char **p;
5561 int i;
5562{
5563 return p[i];
5564}
5565static char *f (char * (*g) (char **, int), char **p, ...)
5566{
5567 char *s;
5568 va_list v;
5569 va_start (v,p);
5570 s = g (p, va_arg (v,int));
5571 va_end (v);
5572 return s;
5573}
5574
5575/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5576 function prototypes and stuff, but not '\xHH' hex character constants.
5577 These don't provoke an error unfortunately, instead are silently treated
5578 as 'x'. The following induces an error, until -std is added to get
5579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5580 array size at least. It's necessary to write '\x00'==0 to get something
5581 that's true only with -std. */
5582int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5583
5584/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5585 inside strings and character constants. */
5586#define FOO(x) 'x'
5587int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5588
5589int test (int i, double x);
5590struct s1 {int (*f) (int a);};
5591struct s2 {int (*f) (double a);};
5592int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5593int argc;
5594char **argv;
5595int
5596main ()
5597{
5598return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5599 ;
5600 return 0;
5601}
5602_ACEOF
5603for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5604 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5605do
5606 CC="$ac_save_CC $ac_arg"
5607 rm -f conftest.$ac_objext
5608if { (ac_try="$ac_compile"
5609case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612esac
5613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5622 { (case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_try") 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; } &&
5631 { ac_try='test -s conftest.$ac_objext'
5632 { (case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635esac
5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_try") 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 ac_cv_prog_cc_c89=$ac_arg
5642else
5643 echo "$as_me: failed program was:" >&5
5644sed 's/^/| /' conftest.$ac_ext >&5
5645
5646
5647fi
5648
5649rm -f core conftest.err conftest.$ac_objext
5650 test "x$ac_cv_prog_cc_c89" != "xno" && break
5651done
5652rm -f conftest.$ac_ext
5653CC=$ac_save_CC
5654
5655fi
5656# AC_CACHE_VAL
5657case "x$ac_cv_prog_cc_c89" in
5658 x)
5659 { echo "$as_me:$LINENO: result: none needed" >&5
5660echo "${ECHO_T}none needed" >&6; } ;;
5661 xno)
5662 { echo "$as_me:$LINENO: result: unsupported" >&5
5663echo "${ECHO_T}unsupported" >&6; } ;;
5664 *)
5665 CC="$CC $ac_cv_prog_cc_c89"
5666 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5667echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5668esac
5669
5670
5671ac_ext=c
5672ac_cpp='$CPP $CPPFLAGS'
5673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676
5677ac_ext=cpp
5678ac_cpp='$CXXCPP $CPPFLAGS'
5679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682if test -z "$CXX"; then
5683 if test -n "$CCC"; then
5684 CXX=$CCC
5685 else
5686 if test -n "$ac_tool_prefix"; then
5687 for ac_prog in g++
5688 do
5689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5690set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5693if test "${ac_cv_prog_CXX+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696 if test -n "$CXX"; then
5697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5698else
5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710done
5711done
5712IFS=$as_save_IFS
5713
5714fi
5715fi
5716CXX=$ac_cv_prog_CXX
5717if test -n "$CXX"; then
5718 { echo "$as_me:$LINENO: result: $CXX" >&5
5719echo "${ECHO_T}$CXX" >&6; }
5720else
5721 { echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6; }
5723fi
5724
5725
5726 test -n "$CXX" && break
5727 done
5728fi
5729if test -z "$CXX"; then
5730 ac_ct_CXX=$CXX
5731 for ac_prog in g++
5732do
5733 # Extract the first word of "$ac_prog", so it can be a program name with args.
5734set dummy $ac_prog; ac_word=$2
5735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5737if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740 if test -n "$ac_ct_CXX"; then
5741 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5742else
5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744for as_dir in $PATH
5745do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_CXX="$ac_prog"
5751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754done
5755done
5756IFS=$as_save_IFS
5757
5758fi
5759fi
5760ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5761if test -n "$ac_ct_CXX"; then
5762 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5763echo "${ECHO_T}$ac_ct_CXX" >&6; }
5764else
5765 { echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6; }
5767fi
5768
5769
5770 test -n "$ac_ct_CXX" && break
5771done
5772
5773 if test "x$ac_ct_CXX" = x; then
5774 CXX="g++"
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777yes:)
5778{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5779whose name does not start with the host triplet. If you think this
5780configuration is useful to you, please write to autoconf@gnu.org." >&5
5781echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5782whose name does not start with the host triplet. If you think this
5783configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5784ac_tool_warned=yes ;;
5785esac
5786 CXX=$ac_ct_CXX
5787 fi
5788fi
5789
5790 fi
5791fi
5792# Provide some information about the compiler.
5793echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5794ac_compiler=`set X $ac_compile; echo $2`
5795{ (ac_try="$ac_compiler --version >&5"
5796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
5800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compiler --version >&5") 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }
5805{ (ac_try="$ac_compiler -v >&5"
5806case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809esac
5810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compiler -v >&5") 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }
5815{ (ac_try="$ac_compiler -V >&5"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compiler -V >&5") 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }
5825
5826{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5827echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5828if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831 cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h. */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
5836/* end confdefs.h. */
5837
5838int
5839main ()
5840{
5841#ifndef __GNUC__
5842 choke me
5843#endif
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
5849rm -f conftest.$ac_objext
5850if { (ac_try="$ac_compile"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_compiler_gnu=yes
5884else
5885 echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 ac_compiler_gnu=no
5889fi
5890
5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5893
5894fi
5895{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5896echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5897GXX=`test $ac_compiler_gnu = yes && echo yes`
5898ac_test_CXXFLAGS=${CXXFLAGS+set}
5899ac_save_CXXFLAGS=$CXXFLAGS
5900{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5901echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5902if test "${ac_cv_prog_cxx_g+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5906 ac_cxx_werror_flag=yes
5907 ac_cv_prog_cxx_g=no
5908 CXXFLAGS="-g"
5909 cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h. */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
5914/* end confdefs.h. */
5915
5916int
5917main ()
5918{
5919
5920 ;
5921 return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (ac_try="$ac_compile"
5926case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929esac
5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5939 { (case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_try") 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_prog_cxx_g=yes
5959else
5960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 CXXFLAGS=""
5964 cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h. */
5970
5971int
5972main ()
5973{
5974
5975 ;
5976 return 0;
5977}
5978_ACEOF
5979rm -f conftest.$ac_objext
5980if { (ac_try="$ac_compile"
5981case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984esac
5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 :
6014else
6015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6019 CXXFLAGS="-g"
6020 cat >conftest.$ac_ext <<_ACEOF
6021/* confdefs.h. */
6022_ACEOF
6023cat confdefs.h >>conftest.$ac_ext
6024cat >>conftest.$ac_ext <<_ACEOF
6025/* end confdefs.h. */
6026
6027int
6028main ()
6029{
6030
6031 ;
6032 return 0;
6033}
6034_ACEOF
6035rm -f conftest.$ac_objext
6036if { (ac_try="$ac_compile"
6037case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040esac
6041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053esac
6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063esac
6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_prog_cxx_g=yes
6070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074
6075fi
6076
6077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078fi
6079
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082
6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6085fi
6086{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6087echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6088if test "$ac_test_CXXFLAGS" = set; then
6089 CXXFLAGS=$ac_save_CXXFLAGS
6090elif test $ac_cv_prog_cxx_g = yes; then
6091 if test "$GXX" = yes; then
6092 CXXFLAGS="-g -O2"
6093 else
6094 CXXFLAGS="-g"
6095 fi
6096else
6097 if test "$GXX" = yes; then
6098 CXXFLAGS="-O2"
6099 else
6100 CXXFLAGS=
6101 fi
6102fi
6103ac_ext=c
6104ac_cpp='$CPP $CPPFLAGS'
6105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107ac_compiler_gnu=$ac_cv_c_compiler_gnu
6108
6109{ echo "$as_me:$LINENO: checking " >&5
6110echo $ECHO_N "checking ... $ECHO_C" >&6; }
6111if test "${ac_cv_has_flex+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114 for ac_prog in flex lex
6115do
6116 # Extract the first word of "$ac_prog", so it can be a program name with args.
6117set dummy $ac_prog; ac_word=$2
6118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120if test "${ac_cv_prog_LEX+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123 if test -n "$LEX"; then
6124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_LEX="$ac_prog"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143LEX=$ac_cv_prog_LEX
6144if test -n "$LEX"; then
6145 { echo "$as_me:$LINENO: result: $LEX" >&5
6146echo "${ECHO_T}$LEX" >&6; }
6147else
6148 { echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6; }
6150fi
6151
6152
6153 test -n "$LEX" && break
6154done
6155test -n "$LEX" || LEX=":"
6156
6157if test -z "$LEXLIB"
6158then
6159 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6160echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6161if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164 ac_check_lib_save_LIBS=$LIBS
6165LIBS="-lfl $LIBS"
6166cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h. */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h. */
6172
6173/* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
6176#ifdef __cplusplus
6177extern "C"
6178#endif
6179char yywrap ();
6180int
6181main ()
6182{
6183return yywrap ();
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext conftest$ac_exeext
6189if { (ac_try="$ac_link"
6190case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193esac
6194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6203 { (case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206esac
6207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_try") 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest$ac_exeext'
6213 { (case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6216esac
6217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218 (eval "$ac_try") 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_cv_lib_fl_yywrap=yes
6223else
6224 echo "$as_me: failed program was:" >&5
6225sed 's/^/| /' conftest.$ac_ext >&5
6226
6227 ac_cv_lib_fl_yywrap=no
6228fi
6229
6230rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232LIBS=$ac_check_lib_save_LIBS
6233fi
6234{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6235echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6236if test $ac_cv_lib_fl_yywrap = yes; then
6237 LEXLIB="-lfl"
6238else
6239 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6240echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6241if test "${ac_cv_lib_l_yywrap+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243else
6244 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-ll $LIBS"
6246cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */
6252
6253/* Override any GCC internal prototype to avoid an error.
6254 Use char because int might match the return type of a GCC
6255 builtin and then its argument prototype would still apply. */
6256#ifdef __cplusplus
6257extern "C"
6258#endif
6259char yywrap ();
6260int
6261main ()
6262{
6263return yywrap ();
6264 ;
6265 return 0;
6266}
6267_ACEOF
6268rm -f conftest.$ac_objext conftest$ac_exeext
6269if { (ac_try="$ac_link"
6270case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273esac
6274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_link") 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283 { (case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286esac
6287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_try") 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296esac
6297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_try") 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_lib_l_yywrap=yes
6303else
6304 echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ac_cv_lib_l_yywrap=no
6308fi
6309
6310rm -f core conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6312LIBS=$ac_check_lib_save_LIBS
6313fi
6314{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6315echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6316if test $ac_cv_lib_l_yywrap = yes; then
6317 LEXLIB="-ll"
6318fi
6319
6320fi
6321
6322fi
6323
6324if test "x$LEX" != "x:"; then
6325 { echo "$as_me:$LINENO: checking lex output file root" >&5
6326echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6327if test "${ac_cv_prog_lex_root+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330 # The minimal lex program is just a single line: %%. But some broken lexes
6331# (Solaris, I think it was) want two %% lines, so accommodate them.
6332cat >conftest.l <<_ACEOF
6333%%
6334%%
6335_ACEOF
6336{ (ac_try="$LEX conftest.l"
6337case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340esac
6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$LEX conftest.l") 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }
6346if test -f lex.yy.c; then
6347 ac_cv_prog_lex_root=lex.yy
6348elif test -f lexyy.c; then
6349 ac_cv_prog_lex_root=lexyy
6350else
6351 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6352echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6353 { (exit 1); exit 1; }; }
6354fi
6355fi
6356{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6357echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6358rm -f conftest.l
6359LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6360
6361{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6362echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6363if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
6366 # POSIX says lex can declare yytext either as a pointer or an array; the
6367# default is implementation-dependent. Figure out which it is, since
6368# not all implementations provide the %pointer and %array declarations.
6369ac_cv_prog_lex_yytext_pointer=no
6370echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6371ac_save_LIBS=$LIBS
6372LIBS="$LIBS $LEXLIB"
6373cat >conftest.$ac_ext <<_ACEOF
6374`cat $LEX_OUTPUT_ROOT.c`
6375_ACEOF
6376rm -f conftest.$ac_objext conftest$ac_exeext
6377if { (ac_try="$ac_link"
6378case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381esac
6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_link") 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } &&
6390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6391 { (case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394esac
6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_try") 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; } &&
6400 { ac_try='test -s conftest$ac_exeext'
6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404esac
6405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_try") 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_prog_lex_yytext_pointer=yes
6411else
6412 echo "$as_me: failed program was:" >&5
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
6415
6416fi
6417
6418rm -f core conftest.err conftest.$ac_objext \
6419 conftest$ac_exeext conftest.$ac_ext
6420LIBS=$ac_save_LIBS
6421rm -f "${LEX_OUTPUT_ROOT}.c"
6422
6423fi
6424{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6425echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6426if test $ac_cv_prog_lex_yytext_pointer = yes; then
6427
6428cat >>confdefs.h <<\_ACEOF
6429#define YYTEXT_POINTER 1
6430_ACEOF
6431
6432fi
6433
6434fi
6435
6436fi
6437{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6438echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6439if test "$LEX" != "flex"; then
6440 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6441echo "$as_me: error: flex not found but required" >&2;}
6442 { (exit 1); exit 1; }; }
6443else
6444 FLEX=flex
6445
6446fi
6447
6448{ echo "$as_me:$LINENO: checking " >&5
6449echo $ECHO_N "checking ... $ECHO_C" >&6; }
6450if test "${llvm_cv_has_bison+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452else
6453 for ac_prog in 'bison -y' byacc
6454do
6455 # Extract the first word of "$ac_prog", so it can be a program name with args.
6456set dummy $ac_prog; ac_word=$2
6457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459if test "${ac_cv_prog_YACC+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 if test -n "$YACC"; then
6463 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_YACC="$ac_prog"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476done
6477done
6478IFS=$as_save_IFS
6479
6480fi
6481fi
6482YACC=$ac_cv_prog_YACC
6483if test -n "$YACC"; then
6484 { echo "$as_me:$LINENO: result: $YACC" >&5
6485echo "${ECHO_T}$YACC" >&6; }
6486else
6487 { echo "$as_me:$LINENO: result: no" >&5
6488echo "${ECHO_T}no" >&6; }
6489fi
6490
6491
6492 test -n "$YACC" && break
6493done
6494test -n "$YACC" || YACC="yacc"
6495
6496fi
6497{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6498echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6499if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006500
6501 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6502echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006503else
6504 BISON=bison
6505
6506fi
6507
6508{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6509echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6510if test "${lt_cv_path_NM+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 if test -n "$NM"; then
6514 # Let the user override the test.
6515 lt_cv_path_NM="$NM"
6516else
6517 lt_nm_to_check="${ac_tool_prefix}nm"
6518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6519 lt_nm_to_check="$lt_nm_to_check nm"
6520 fi
6521 for lt_tmp_nm in $lt_nm_to_check; do
6522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6524 IFS="$lt_save_ifs"
6525 test -z "$ac_dir" && ac_dir=.
6526 tmp_nm="$ac_dir/$lt_tmp_nm"
6527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6528 # Check to see if the nm accepts a BSD-compat flag.
6529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6530 # nm: unknown option "B" ignored
6531 # Tru64's nm complains that /dev/null is an invalid object file
6532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6533 */dev/null* | *'Invalid file or object type'*)
6534 lt_cv_path_NM="$tmp_nm -B"
6535 break
6536 ;;
6537 *)
6538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6539 */dev/null*)
6540 lt_cv_path_NM="$tmp_nm -p"
6541 break
6542 ;;
6543 *)
6544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6545 continue # so that we can try to find one that supports BSD flags
6546 ;;
6547 esac
6548 ;;
6549 esac
6550 fi
6551 done
6552 IFS="$lt_save_ifs"
6553 done
6554 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6555fi
6556fi
6557{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6558echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6559NM="$lt_cv_path_NM"
6560
6561
6562
6563{ echo "$as_me:$LINENO: checking for GNU make" >&5
6564echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6565if test "${llvm_cv_gnu_make_command+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568 llvm_cv_gnu_make_command=''
6569 for a in "$MAKE" make gmake gnumake ; do
6570 if test -z "$a" ; then continue ; fi ;
6571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6572 then
6573 llvm_cv_gnu_make_command=$a ;
6574 break;
6575 fi
6576 done
6577fi
6578{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6579echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6580 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6581 ifGNUmake='' ;
6582 else
6583 ifGNUmake='#' ;
6584 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6585echo "${ECHO_T}\"Not found\"" >&6; };
6586 fi
6587
6588
6589{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6590echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6591LN_S=$as_ln_s
6592if test "$LN_S" = "ln -s"; then
6593 { echo "$as_me:$LINENO: result: yes" >&5
6594echo "${ECHO_T}yes" >&6; }
6595else
6596 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6597echo "${ECHO_T}no, using $LN_S" >&6; }
6598fi
6599
6600# Extract the first word of "cmp", so it can be a program name with args.
6601set dummy cmp; ac_word=$2
6602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604if test "${ac_cv_path_CMP+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606else
6607 case $CMP in
6608 [\\/]* | ?:[\\/]*)
6609 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6610 ;;
6611 *)
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623done
6624done
6625IFS=$as_save_IFS
6626
6627 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6628 ;;
6629esac
6630fi
6631CMP=$ac_cv_path_CMP
6632if test -n "$CMP"; then
6633 { echo "$as_me:$LINENO: result: $CMP" >&5
6634echo "${ECHO_T}$CMP" >&6; }
6635else
6636 { echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6; }
6638fi
6639
6640
6641# Extract the first word of "cp", so it can be a program name with args.
6642set dummy cp; ac_word=$2
6643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645if test "${ac_cv_path_CP+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647else
6648 case $CP in
6649 [\\/]* | ?:[\\/]*)
6650 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6651 ;;
6652 *)
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664done
6665done
6666IFS=$as_save_IFS
6667
6668 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6669 ;;
6670esac
6671fi
6672CP=$ac_cv_path_CP
6673if test -n "$CP"; then
6674 { echo "$as_me:$LINENO: result: $CP" >&5
6675echo "${ECHO_T}$CP" >&6; }
6676else
6677 { echo "$as_me:$LINENO: result: no" >&5
6678echo "${ECHO_T}no" >&6; }
6679fi
6680
6681
6682# Extract the first word of "date", so it can be a program name with args.
6683set dummy date; ac_word=$2
6684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686if test "${ac_cv_path_DATE+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 case $DATE in
6690 [\\/]* | ?:[\\/]*)
6691 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6692 ;;
6693 *)
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706done
6707IFS=$as_save_IFS
6708
6709 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6710 ;;
6711esac
6712fi
6713DATE=$ac_cv_path_DATE
6714if test -n "$DATE"; then
6715 { echo "$as_me:$LINENO: result: $DATE" >&5
6716echo "${ECHO_T}$DATE" >&6; }
6717else
6718 { echo "$as_me:$LINENO: result: no" >&5
6719echo "${ECHO_T}no" >&6; }
6720fi
6721
6722
6723# Extract the first word of "find", so it can be a program name with args.
6724set dummy find; ac_word=$2
6725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727if test "${ac_cv_path_FIND+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730 case $FIND in
6731 [\\/]* | ?:[\\/]*)
6732 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6733 ;;
6734 *)
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747done
6748IFS=$as_save_IFS
6749
6750 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6751 ;;
6752esac
6753fi
6754FIND=$ac_cv_path_FIND
6755if test -n "$FIND"; then
6756 { echo "$as_me:$LINENO: result: $FIND" >&5
6757echo "${ECHO_T}$FIND" >&6; }
6758else
6759 { echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6; }
6761fi
6762
6763
6764# Extract the first word of "grep", so it can be a program name with args.
6765set dummy grep; ac_word=$2
6766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768if test "${ac_cv_path_GREP+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
6771 case $GREP in
6772 [\\/]* | ?:[\\/]*)
6773 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6774 ;;
6775 *)
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788done
6789IFS=$as_save_IFS
6790
6791 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6792 ;;
6793esac
6794fi
6795GREP=$ac_cv_path_GREP
6796if test -n "$GREP"; then
6797 { echo "$as_me:$LINENO: result: $GREP" >&5
6798echo "${ECHO_T}$GREP" >&6; }
6799else
6800 { echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6; }
6802fi
6803
6804
6805# Extract the first word of "mkdir", so it can be a program name with args.
6806set dummy mkdir; ac_word=$2
6807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809if test "${ac_cv_path_MKDIR+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812 case $MKDIR in
6813 [\\/]* | ?:[\\/]*)
6814 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6815 ;;
6816 *)
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828done
6829done
6830IFS=$as_save_IFS
6831
6832 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6833 ;;
6834esac
6835fi
6836MKDIR=$ac_cv_path_MKDIR
6837if test -n "$MKDIR"; then
6838 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6839echo "${ECHO_T}$MKDIR" >&6; }
6840else
6841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
6843fi
6844
6845
6846# Extract the first word of "mv", so it can be a program name with args.
6847set dummy mv; ac_word=$2
6848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850if test "${ac_cv_path_MV+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853 case $MV in
6854 [\\/]* | ?:[\\/]*)
6855 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6856 ;;
6857 *)
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869done
6870done
6871IFS=$as_save_IFS
6872
6873 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6874 ;;
6875esac
6876fi
6877MV=$ac_cv_path_MV
6878if test -n "$MV"; then
6879 { echo "$as_me:$LINENO: result: $MV" >&5
6880echo "${ECHO_T}$MV" >&6; }
6881else
6882 { echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6; }
6884fi
6885
6886
6887if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_prog_RANLIB+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894else
6895 if test -n "$RANLIB"; then
6896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915RANLIB=$ac_cv_prog_RANLIB
6916if test -n "$RANLIB"; then
6917 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6918echo "${ECHO_T}$RANLIB" >&6; }
6919else
6920 { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
6922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_RANLIB"; then
6927 ac_ct_RANLIB=$RANLIB
6928 # Extract the first word of "ranlib", so it can be a program name with args.
6929set dummy ranlib; ac_word=$2
6930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935 if test -n "$ac_ct_RANLIB"; then
6936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_ac_ct_RANLIB="ranlib"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6956if test -n "$ac_ct_RANLIB"; then
6957 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6958echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6959else
6960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962fi
6963
6964 if test "x$ac_ct_RANLIB" = x; then
6965 RANLIB=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6970whose name does not start with the host triplet. If you think this
6971configuration is useful to you, please write to autoconf@gnu.org." >&5
6972echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6973whose name does not start with the host triplet. If you think this
6974configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6975ac_tool_warned=yes ;;
6976esac
6977 RANLIB=$ac_ct_RANLIB
6978 fi
6979else
6980 RANLIB="$ac_cv_prog_RANLIB"
6981fi
6982
6983# Extract the first word of "rm", so it can be a program name with args.
6984set dummy rm; ac_word=$2
6985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987if test "${ac_cv_path_RM+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 case $RM in
6991 [\\/]* | ?:[\\/]*)
6992 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6993 ;;
6994 *)
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006done
7007done
7008IFS=$as_save_IFS
7009
7010 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7011 ;;
7012esac
7013fi
7014RM=$ac_cv_path_RM
7015if test -n "$RM"; then
7016 { echo "$as_me:$LINENO: result: $RM" >&5
7017echo "${ECHO_T}$RM" >&6; }
7018else
7019 { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
7021fi
7022
7023
7024# Extract the first word of "sed", so it can be a program name with args.
7025set dummy sed; ac_word=$2
7026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028if test "${ac_cv_path_SED+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 case $SED in
7032 [\\/]* | ?:[\\/]*)
7033 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7034 ;;
7035 *)
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047done
7048done
7049IFS=$as_save_IFS
7050
7051 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7052 ;;
7053esac
7054fi
7055SED=$ac_cv_path_SED
7056if test -n "$SED"; then
7057 { echo "$as_me:$LINENO: result: $SED" >&5
7058echo "${ECHO_T}$SED" >&6; }
7059else
7060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
7062fi
7063
7064
7065# Extract the first word of "tar", so it can be a program name with args.
7066set dummy tar; ac_word=$2
7067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069if test "${ac_cv_path_TAR+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 case $TAR in
7073 [\\/]* | ?:[\\/]*)
7074 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7075 ;;
7076 *)
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088done
7089done
7090IFS=$as_save_IFS
7091
7092 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7093 ;;
7094esac
7095fi
7096TAR=$ac_cv_path_TAR
7097if test -n "$TAR"; then
7098 { echo "$as_me:$LINENO: result: $TAR" >&5
7099echo "${ECHO_T}$TAR" >&6; }
7100else
7101 { echo "$as_me:$LINENO: result: no" >&5
7102echo "${ECHO_T}no" >&6; }
7103fi
7104
7105
7106# Extract the first word of "pwd", so it can be a program name with args.
7107set dummy pwd; ac_word=$2
7108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110if test "${ac_cv_path_BINPWD+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 case $BINPWD in
7114 [\\/]* | ?:[\\/]*)
7115 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7116 ;;
7117 *)
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129done
7130done
7131IFS=$as_save_IFS
7132
7133 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7134 ;;
7135esac
7136fi
7137BINPWD=$ac_cv_path_BINPWD
7138if test -n "$BINPWD"; then
7139 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7140echo "${ECHO_T}$BINPWD" >&6; }
7141else
7142 { echo "$as_me:$LINENO: result: no" >&5
7143echo "${ECHO_T}no" >&6; }
7144fi
7145
7146
7147
7148# Extract the first word of "Graphviz", so it can be a program name with args.
7149set dummy Graphviz; ac_word=$2
7150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 case $GRAPHVIZ in
7156 [\\/]* | ?:[\\/]*)
7157 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7158 ;;
7159 *)
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171done
7172done
7173IFS=$as_save_IFS
7174
7175 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7176 ;;
7177esac
7178fi
7179GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7180if test -n "$GRAPHVIZ"; then
7181 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7182echo "${ECHO_T}$GRAPHVIZ" >&6; }
7183else
7184 { echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6; }
7186fi
7187
7188
7189if test "$GRAPHVIZ" != "echo Graphviz" ; then
7190
7191cat >>confdefs.h <<\_ACEOF
7192#define HAVE_GRAPHVIZ 1
7193_ACEOF
7194
Jeff Cohen28783c32007-01-12 18:22:38 +00007195 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007196 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7197 fi
7198
7199cat >>confdefs.h <<_ACEOF
7200#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7201_ACEOF
7202
7203fi
7204# Extract the first word of "dot", so it can be a program name with args.
7205set dummy dot; ac_word=$2
7206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208if test "${ac_cv_path_DOT+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211 case $DOT in
7212 [\\/]* | ?:[\\/]*)
7213 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7214 ;;
7215 *)
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227done
7228done
7229IFS=$as_save_IFS
7230
7231 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7232 ;;
7233esac
7234fi
7235DOT=$ac_cv_path_DOT
7236if test -n "$DOT"; then
7237 { echo "$as_me:$LINENO: result: $DOT" >&5
7238echo "${ECHO_T}$DOT" >&6; }
7239else
7240 { echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6; }
7242fi
7243
7244
7245if test "$DOT" != "echo dot" ; then
7246
7247cat >>confdefs.h <<\_ACEOF
7248#define HAVE_DOT 1
7249_ACEOF
7250
Jeff Cohen28783c32007-01-12 18:22:38 +00007251 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007252 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7253 fi
7254
7255cat >>confdefs.h <<_ACEOF
7256#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7257_ACEOF
7258
7259fi
7260for ac_prog in gv gsview32
7261do
7262 # Extract the first word of "$ac_prog", so it can be a program name with args.
7263set dummy $ac_prog; ac_word=$2
7264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_path_GV+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269 case $GV in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287IFS=$as_save_IFS
7288
7289 ;;
7290esac
7291fi
7292GV=$ac_cv_path_GV
7293if test -n "$GV"; then
7294 { echo "$as_me:$LINENO: result: $GV" >&5
7295echo "${ECHO_T}$GV" >&6; }
7296else
7297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
7299fi
7300
7301
7302 test -n "$GV" && break
7303done
7304test -n "$GV" || GV="echo gv"
7305
7306if test "$GV" != "echo gv" ; then
7307
7308cat >>confdefs.h <<\_ACEOF
7309#define HAVE_GV 1
7310_ACEOF
7311
Jeff Cohen28783c32007-01-12 18:22:38 +00007312 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007313 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7314 fi
7315
7316cat >>confdefs.h <<_ACEOF
7317#define LLVM_PATH_GV "$GV${EXEEXT}"
7318_ACEOF
7319
7320fi
7321# Extract the first word of "dotty", so it can be a program name with args.
7322set dummy dotty; ac_word=$2
7323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325if test "${ac_cv_path_DOTTY+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328 case $DOTTY in
7329 [\\/]* | ?:[\\/]*)
7330 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7331 ;;
7332 *)
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344done
7345done
7346IFS=$as_save_IFS
7347
7348 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7349 ;;
7350esac
7351fi
7352DOTTY=$ac_cv_path_DOTTY
7353if test -n "$DOTTY"; then
7354 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7355echo "${ECHO_T}$DOTTY" >&6; }
7356else
7357 { echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6; }
7359fi
7360
7361
7362if test "$DOTTY" != "echo dotty" ; then
7363
7364cat >>confdefs.h <<\_ACEOF
7365#define HAVE_DOTTY 1
7366_ACEOF
7367
Jeff Cohen28783c32007-01-12 18:22:38 +00007368 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007369 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7370 fi
7371
7372cat >>confdefs.h <<_ACEOF
7373#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7374_ACEOF
7375
7376fi
7377
7378
7379# Extract the first word of "perl", so it can be a program name with args.
7380set dummy perl; ac_word=$2
7381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383if test "${ac_cv_path_PERL+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 case $PERL in
7387 [\\/]* | ?:[\\/]*)
7388 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7389 ;;
7390 *)
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403done
7404IFS=$as_save_IFS
7405
7406 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7407 ;;
7408esac
7409fi
7410PERL=$ac_cv_path_PERL
7411if test -n "$PERL"; then
7412 { echo "$as_me:$LINENO: result: $PERL" >&5
7413echo "${ECHO_T}$PERL" >&6; }
7414else
7415 { echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6; }
7417fi
7418
7419
7420if test "$PERL" != "none"; then
7421 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7422echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7423 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7424 { echo "$as_me:$LINENO: result: yes" >&5
7425echo "${ECHO_T}yes" >&6; }
7426 else
7427 PERL=none
7428 { echo "$as_me:$LINENO: result: not found" >&5
7429echo "${ECHO_T}not found" >&6; }
7430 fi
7431fi
7432
7433
7434if test x"$PERL" = xnone; then
7435 HAVE_PERL=0
7436
Reid Spencer59807fa2007-05-17 18:11:03 +00007437 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7438echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7439 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007440else
7441 HAVE_PERL=1
7442
7443fi
7444
7445# Find a good install program. We prefer a C program (faster),
7446# so one script is as good as another. But avoid the broken or
7447# incompatible versions:
7448# SysV /etc/install, /usr/sbin/install
7449# SunOS /usr/etc/install
7450# IRIX /sbin/install
7451# AIX /bin/install
7452# AmigaOS /C/install, which installs bootblocks on floppy discs
7453# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7454# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7455# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7456# OS/2's system install, which has a completely different semantic
7457# ./install, which can be erroneously created by make from ./install.sh.
7458{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7459echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7460if test -z "$INSTALL"; then
7461if test "${ac_cv_path_install+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 # Account for people who put trailing slashes in PATH elements.
7470case $as_dir/ in
7471 ./ | .// | /cC/* | \
7472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7473 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7474 /usr/ucb/* ) ;;
7475 *)
7476 # OSF1 and SCO ODT 3.0 have their own names for install.
7477 # Don't use installbsd from OSF since it installs stuff as root
7478 # by default.
7479 for ac_prog in ginstall scoinst install; do
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7482 if test $ac_prog = install &&
7483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7484 # AIX install. It has an incompatible calling convention.
7485 :
7486 elif test $ac_prog = install &&
7487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7488 # program-specific install script used by HP pwplus--don't use.
7489 :
7490 else
7491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7492 break 3
7493 fi
7494 fi
7495 done
7496 done
7497 ;;
7498esac
7499done
7500IFS=$as_save_IFS
7501
7502
7503fi
7504 if test "${ac_cv_path_install+set}" = set; then
7505 INSTALL=$ac_cv_path_install
7506 else
7507 # As a last resort, use the slow shell script. Don't cache a
7508 # value for INSTALL within a source directory, because that will
7509 # break other packages using the cache if that directory is
7510 # removed, or if the value is a relative name.
7511 INSTALL=$ac_install_sh
7512 fi
7513fi
7514{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7515echo "${ECHO_T}$INSTALL" >&6; }
7516
7517# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7518# It thinks the first close brace ends the variable substitution.
7519test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7520
7521test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7522
7523test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7524
7525
7526# Extract the first word of "bzip2", so it can be a program name with args.
7527set dummy bzip2; ac_word=$2
7528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530if test "${ac_cv_path_BZIP2+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533 case $BZIP2 in
7534 [\\/]* | ?:[\\/]*)
7535 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7536 ;;
7537 *)
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549done
7550done
7551IFS=$as_save_IFS
7552
7553 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7554 ;;
7555esac
7556fi
7557BZIP2=$ac_cv_path_BZIP2
7558if test -n "$BZIP2"; then
7559 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7560echo "${ECHO_T}$BZIP2" >&6; }
7561else
7562 { echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6; }
7564fi
7565
7566
7567# Extract the first word of "doxygen", so it can be a program name with args.
7568set dummy doxygen; ac_word=$2
7569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571if test "${ac_cv_path_DOXYGEN+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573else
7574 case $DOXYGEN in
7575 [\\/]* | ?:[\\/]*)
7576 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7577 ;;
7578 *)
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7586 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7589 fi
7590done
7591done
7592IFS=$as_save_IFS
7593
7594 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7595 ;;
7596esac
7597fi
7598DOXYGEN=$ac_cv_path_DOXYGEN
7599if test -n "$DOXYGEN"; then
7600 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7601echo "${ECHO_T}$DOXYGEN" >&6; }
7602else
7603 { echo "$as_me:$LINENO: result: no" >&5
7604echo "${ECHO_T}no" >&6; }
7605fi
7606
7607
Reid Spencera773bd52006-08-04 18:18:08 +00007608# Extract the first word of "groff", so it can be a program name with args.
7609set dummy groff; ac_word=$2
7610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612if test "${ac_cv_path_GROFF+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614else
7615 case $GROFF in
7616 [\\/]* | ?:[\\/]*)
7617 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7618 ;;
7619 *)
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7630 fi
7631done
7632done
7633IFS=$as_save_IFS
7634
7635 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7636 ;;
7637esac
7638fi
7639GROFF=$ac_cv_path_GROFF
7640if test -n "$GROFF"; then
7641 { echo "$as_me:$LINENO: result: $GROFF" >&5
7642echo "${ECHO_T}$GROFF" >&6; }
7643else
7644 { echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6; }
7646fi
7647
7648
7649# Extract the first word of "gzip", so it can be a program name with args.
7650set dummy gzip; ac_word=$2
7651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7653if test "${ac_cv_path_GZIP+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655else
7656 case $GZIP in
7657 [\\/]* | ?:[\\/]*)
7658 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7659 ;;
7660 *)
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672done
7673done
7674IFS=$as_save_IFS
7675
7676 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7677 ;;
7678esac
7679fi
7680GZIP=$ac_cv_path_GZIP
7681if test -n "$GZIP"; then
7682 { echo "$as_me:$LINENO: result: $GZIP" >&5
7683echo "${ECHO_T}$GZIP" >&6; }
7684else
7685 { echo "$as_me:$LINENO: result: no" >&5
7686echo "${ECHO_T}no" >&6; }
7687fi
7688
7689
7690# Extract the first word of "pod2html", so it can be a program name with args.
7691set dummy pod2html; ac_word=$2
7692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694if test "${ac_cv_path_POD2HTML+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696else
7697 case $POD2HTML in
7698 [\\/]* | ?:[\\/]*)
7699 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7700 ;;
7701 *)
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703for as_dir in $PATH
7704do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7712 fi
7713done
7714done
7715IFS=$as_save_IFS
7716
7717 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7718 ;;
7719esac
7720fi
7721POD2HTML=$ac_cv_path_POD2HTML
7722if test -n "$POD2HTML"; then
7723 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7724echo "${ECHO_T}$POD2HTML" >&6; }
7725else
7726 { echo "$as_me:$LINENO: result: no" >&5
7727echo "${ECHO_T}no" >&6; }
7728fi
7729
7730
7731# Extract the first word of "pod2man", so it can be a program name with args.
7732set dummy pod2man; ac_word=$2
7733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7735if test "${ac_cv_path_POD2MAN+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737else
7738 case $POD2MAN in
7739 [\\/]* | ?:[\\/]*)
7740 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7741 ;;
7742 *)
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7750 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754done
7755done
7756IFS=$as_save_IFS
7757
7758 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7759 ;;
7760esac
7761fi
7762POD2MAN=$ac_cv_path_POD2MAN
7763if test -n "$POD2MAN"; then
7764 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7765echo "${ECHO_T}$POD2MAN" >&6; }
7766else
7767 { echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6; }
7769fi
7770
7771
7772# Extract the first word of "runtest", so it can be a program name with args.
7773set dummy runtest; ac_word=$2
7774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776if test "${ac_cv_path_RUNTEST+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778else
7779 case $RUNTEST in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7782 ;;
7783 *)
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795done
7796done
7797IFS=$as_save_IFS
7798
7799 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7800 ;;
7801esac
7802fi
7803RUNTEST=$ac_cv_path_RUNTEST
7804if test -n "$RUNTEST"; then
7805 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7806echo "${ECHO_T}$RUNTEST" >&6; }
7807else
7808 { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
7810fi
7811
7812
7813
7814no_itcl=true
7815{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7816echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7817
7818# Check whether --with-tclinclude was given.
7819if test "${with_tclinclude+set}" = set; then
7820 withval=$with_tclinclude; with_tclinclude=${withval}
7821else
7822 with_tclinclude=''
7823fi
7824
7825if test "${ac_cv_path_tclsh+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828
7829if test x"${with_tclinclude}" != x ; then
7830 if test -f ${with_tclinclude}/tclsh ; then
7831 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7832 elif test -f ${with_tclinclude}/src/tclsh ; then
7833 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7834 else
7835 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7836echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7837 { (exit 1); exit 1; }; }
7838 fi
7839fi
7840
7841if test x"${ac_cv_path_tclsh}" = x ; then
7842 { echo "$as_me:$LINENO: result: none" >&5
7843echo "${ECHO_T}none" >&6; }
7844 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
7845do
7846 # Extract the first word of "$ac_prog", so it can be a program name with args.
7847set dummy $ac_prog; ac_word=$2
7848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850if test "${ac_cv_path_TCLSH+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853 case $TCLSH in
7854 [\\/]* | ?:[\\/]*)
7855 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7856 ;;
7857 *)
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869done
7870done
7871IFS=$as_save_IFS
7872
7873 ;;
7874esac
7875fi
7876TCLSH=$ac_cv_path_TCLSH
7877if test -n "$TCLSH"; then
7878 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7879echo "${ECHO_T}$TCLSH" >&6; }
7880else
7881 { echo "$as_me:$LINENO: result: no" >&5
7882echo "${ECHO_T}no" >&6; }
7883fi
7884
7885
7886 test -n "$TCLSH" && break
7887done
7888
7889 if test x"${TCLSH}" = x ; then
7890 ac_cv_path_tclsh='';
7891 else
7892 ac_cv_path_tclsh="${TCLSH}";
7893 fi
7894else
7895 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7896echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7897 TCLSH="${ac_cv_path_tclsh}"
7898
7899fi
7900
7901fi
7902
7903# Extract the first word of "zip", so it can be a program name with args.
7904set dummy zip; ac_word=$2
7905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907if test "${ac_cv_path_ZIP+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 case $ZIP in
7911 [\\/]* | ?:[\\/]*)
7912 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7913 ;;
7914 *)
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926done
7927done
7928IFS=$as_save_IFS
7929
7930 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7931 ;;
7932esac
7933fi
7934ZIP=$ac_cv_path_ZIP
7935if test -n "$ZIP"; then
7936 { echo "$as_me:$LINENO: result: $ZIP" >&5
7937echo "${ECHO_T}$ZIP" >&6; }
7938else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6; }
7941fi
7942
7943
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007944# Extract the first word of "ocamlc", so it can be a program name with args.
7945set dummy ocamlc; ac_word=$2
7946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7948if test "${ac_cv_path_OCAMLC+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950else
7951 case $OCAMLC in
7952 [\\/]* | ?:[\\/]*)
7953 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7954 ;;
7955 *)
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
7968done
7969IFS=$as_save_IFS
7970
7971 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7972 ;;
7973esac
7974fi
7975OCAMLC=$ac_cv_path_OCAMLC
7976if test -n "$OCAMLC"; then
7977 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7978echo "${ECHO_T}$OCAMLC" >&6; }
7979else
7980 { echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6; }
7982fi
7983
7984
7985# Extract the first word of "ocamlopt", so it can be a program name with args.
7986set dummy ocamlopt; ac_word=$2
7987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7989if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992 case $OCAMLOPT in
7993 [\\/]* | ?:[\\/]*)
7994 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7995 ;;
7996 *)
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008done
8009done
8010IFS=$as_save_IFS
8011
8012 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8013 ;;
8014esac
8015fi
8016OCAMLOPT=$ac_cv_path_OCAMLOPT
8017if test -n "$OCAMLOPT"; then
8018 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8019echo "${ECHO_T}$OCAMLOPT" >&6; }
8020else
8021 { echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6; }
8023fi
8024
8025
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008026# Extract the first word of "ocamldep", so it can be a program name with args.
8027set dummy ocamldep; ac_word=$2
8028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033 case $OCAMLDEP in
8034 [\\/]* | ?:[\\/]*)
8035 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8036 ;;
8037 *)
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
8050done
8051IFS=$as_save_IFS
8052
8053 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8054 ;;
8055esac
8056fi
8057OCAMLDEP=$ac_cv_path_OCAMLDEP
8058if test -n "$OCAMLDEP"; then
8059 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8060echo "${ECHO_T}$OCAMLDEP" >&6; }
8061else
8062 { echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6; }
8064fi
8065
8066
Reid Spencera773bd52006-08-04 18:18:08 +00008067
8068{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8069echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8070if test "${llvm_cv_link_use_r+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072else
8073 ac_ext=c
8074ac_cpp='$CPP $CPPFLAGS'
8075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077ac_compiler_gnu=$ac_cv_c_compiler_gnu
8078
8079 oldcflags="$CFLAGS"
8080 CFLAGS="$CFLAGS -Wl,-R."
8081 cat >conftest.$ac_ext <<_ACEOF
8082/* confdefs.h. */
8083_ACEOF
8084cat confdefs.h >>conftest.$ac_ext
8085cat >>conftest.$ac_ext <<_ACEOF
8086/* end confdefs.h. */
8087
8088int
8089main ()
8090{
8091int main() { return 0; }
8092 ;
8093 return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext conftest$ac_exeext
8097if { (ac_try="$ac_link"
8098case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101esac
8102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_link") 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8111 { (case "(($ac_try" in
8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113 *) ac_try_echo=$ac_try;;
8114esac
8115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116 (eval "$ac_try") 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; } &&
8120 { ac_try='test -s conftest$ac_exeext'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124esac
8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 llvm_cv_link_use_r=yes
8131else
8132 echo "$as_me: failed program was:" >&5
8133sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 llvm_cv_link_use_r=no
8136fi
8137
8138rm -f core conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext conftest.$ac_ext
8140 CFLAGS="$oldcflags"
8141 ac_ext=c
8142ac_cpp='$CPP $CPPFLAGS'
8143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146
8147
8148fi
8149{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8150echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8151if test "$llvm_cv_link_use_r" = yes ; then
8152
8153cat >>confdefs.h <<\_ACEOF
8154#define HAVE_LINK_R 1
8155_ACEOF
8156
8157 fi
8158
8159
8160
8161
8162{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164if test "${ac_cv_c_const+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166else
8167 cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8173
8174int
8175main ()
8176{
8177/* FIXME: Include the comments suggested by Paul. */
8178#ifndef __cplusplus
8179 /* Ultrix mips cc rejects this. */
8180 typedef int charset[2];
8181 const charset x;
8182 /* SunOS 4.1.1 cc rejects this. */
8183 char const *const *ccp;
8184 char **p;
8185 /* NEC SVR4.0.2 mips cc rejects this. */
8186 struct point {int x, y;};
8187 static struct point const zero = {0,0};
8188 /* AIX XL C 1.02.0.0 rejects this.
8189 It does not let you subtract one const X* pointer from another in
8190 an arm of an if-expression whose if-part is not a constant
8191 expression */
8192 const char *g = "string";
8193 ccp = &g + (g ? g-g : 0);
8194 /* HPUX 7.0 cc rejects these. */
8195 ++ccp;
8196 p = (char**) ccp;
8197 ccp = (char const *const *) p;
8198 { /* SCO 3.2v4 cc rejects this. */
8199 char *t;
8200 char const *s = 0 ? (char *) 0 : (char const *) 0;
8201
8202 *t++ = 0;
8203 if (s) return 0;
8204 }
8205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8206 int x[] = {25, 17};
8207 const int *foo = &x[0];
8208 ++foo;
8209 }
8210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211 typedef const int *iptr;
8212 iptr p = 0;
8213 ++p;
8214 }
8215 { /* AIX XL C 1.02.0.0 rejects this saying
8216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217 struct s { int j; const int *ap[3]; };
8218 struct s *b; b->j = 5;
8219 }
8220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8221 const int foo = 10;
8222 if (!foo) return 0;
8223 }
8224 return !x[0] && !zero.x;
8225#endif
8226
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext
8232if { (ac_try="$ac_compile"
8233case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236esac
8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_compile") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest.$ac_objext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_c_const=yes
8266else
8267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 ac_cv_c_const=no
8271fi
8272
8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274fi
8275{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276echo "${ECHO_T}$ac_cv_c_const" >&6; }
8277if test $ac_cv_c_const = no; then
8278
8279cat >>confdefs.h <<\_ACEOF
8280#define const
8281_ACEOF
8282
8283fi
8284
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008285
8286
8287
8288
8289
8290ac_header_dirent=no
8291for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8292 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008293{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 cat >conftest.$ac_ext <<_ACEOF
8299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
8303/* end confdefs.h. */
8304#include <sys/types.h>
8305#include <$ac_hdr>
8306
8307int
8308main ()
8309{
8310if ((DIR *) 0)
8311return 0;
8312 ;
8313 return 0;
8314}
8315_ACEOF
8316rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008317if { (ac_try="$ac_compile"
8318case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
8335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008341 { (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
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 eval "$as_ac_Header=yes"
8351else
8352 echo "$as_me: failed program was:" >&5
8353sed 's/^/| /' conftest.$ac_ext >&5
8354
Reid Spencera773bd52006-08-04 18:18:08 +00008355 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008356fi
Reid Spencera773bd52006-08-04 18:18:08 +00008357
8358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008359fi
Reid Spencera773bd52006-08-04 18:18:08 +00008360ac_res=`eval echo '${'$as_ac_Header'}'`
8361 { echo "$as_me:$LINENO: result: $ac_res" >&5
8362echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008363if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364 cat >>confdefs.h <<_ACEOF
8365#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8366_ACEOF
8367
8368ac_header_dirent=$ac_hdr; break
8369fi
8370
8371done
8372# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008376if test "${ac_cv_search_opendir+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008380cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8386
Reid Spencera773bd52006-08-04 18:18:08 +00008387/* Override any GCC internal prototype to avoid an error.
8388 Use char because int might match the return type of a GCC
8389 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008390#ifdef __cplusplus
8391extern "C"
8392#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008393char opendir ();
8394int
8395main ()
8396{
Reid Spencera773bd52006-08-04 18:18:08 +00008397return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008398 ;
8399 return 0;
8400}
8401_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008402for ac_lib in '' dir; do
8403 if test -z "$ac_lib"; then
8404 ac_res="none required"
8405 else
8406 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008408 fi
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410if { (ac_try="$ac_link"
8411case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414esac
8415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427esac
8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437esac
8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008443 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008444else
8445 echo "$as_me: failed program was:" >&5
8446sed 's/^/| /' conftest.$ac_ext >&5
8447
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008448
8449fi
8450
Reid Spencera773bd52006-08-04 18:18:08 +00008451rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext
8453 if test "${ac_cv_search_opendir+set}" = set; then
8454 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008455fi
John Criswell7a73b802003-06-30 21:59:07 +00008456done
Reid Spencera773bd52006-08-04 18:18:08 +00008457if test "${ac_cv_search_opendir+set}" = set; then
8458 :
8459else
8460 ac_cv_search_opendir=no
8461fi
8462rm conftest.$ac_ext
8463LIBS=$ac_func_search_save_LIBS
8464fi
8465{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8467ac_res=$ac_cv_search_opendir
8468if test "$ac_res" != no; then
8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008470
Reid Spencera773bd52006-08-04 18:18:08 +00008471fi
8472
8473else
8474 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476if test "${ac_cv_search_opendir+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478else
8479 ac_func_search_save_LIBS=$LIBS
8480cat >conftest.$ac_ext <<_ACEOF
8481/* confdefs.h. */
8482_ACEOF
8483cat confdefs.h >>conftest.$ac_ext
8484cat >>conftest.$ac_ext <<_ACEOF
8485/* end confdefs.h. */
8486
8487/* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8490#ifdef __cplusplus
8491extern "C"
8492#endif
8493char opendir ();
8494int
8495main ()
8496{
8497return opendir ();
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502for ac_lib in '' x; do
8503 if test -z "$ac_lib"; then
8504 ac_res="none required"
8505 else
8506 ac_res=-l$ac_lib
8507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8508 fi
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510if { (ac_try="$ac_link"
8511case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
8515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_link") 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527esac
8528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_try") 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537esac
8538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_search_opendir=$ac_res
8544else
8545 echo "$as_me: failed program was:" >&5
8546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548
8549fi
8550
8551rm -f core conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext
8553 if test "${ac_cv_search_opendir+set}" = set; then
8554 break
8555fi
8556done
8557if test "${ac_cv_search_opendir+set}" = set; then
8558 :
8559else
8560 ac_cv_search_opendir=no
8561fi
8562rm conftest.$ac_ext
8563LIBS=$ac_func_search_save_LIBS
8564fi
8565{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8567ac_res=$ac_cv_search_opendir
8568if test "$ac_res" != no; then
8569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8570
8571fi
8572
8573fi
John Criswell7a73b802003-06-30 21:59:07 +00008574
8575
8576for ac_header in dlfcn.h
8577do
8578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008583 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008584fi
Reid Spencera773bd52006-08-04 18:18:08 +00008585ac_res=`eval echo '${'$as_ac_Header'}'`
8586 { echo "$as_me:$LINENO: result: $ac_res" >&5
8587echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008588else
Brian Gaeke0a621332004-09-08 20:38:05 +00008589 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008590{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008592cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008593/* confdefs.h. */
8594_ACEOF
8595cat confdefs.h >>conftest.$ac_ext
8596cat >>conftest.$ac_ext <<_ACEOF
8597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008598$ac_includes_default
8599#include <$ac_header>
8600_ACEOF
8601rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008602if { (ac_try="$ac_compile"
8603case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606esac
8607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008609 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619esac
8620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac
8630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008635 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008636else
8637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008638sed 's/^/| /' conftest.$ac_ext >&5
8639
Reid Spencera773bd52006-08-04 18:18:08 +00008640 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008641fi
Reid Spencera773bd52006-08-04 18:18:08 +00008642
8643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008646
8647# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008648{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008650cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
8656#include <$ac_header>
8657_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008658if { (ac_try="$ac_cpp conftest.$ac_ext"
8659case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662esac
8663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } >/dev/null; then
8671 if test -s conftest.err; then
8672 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008674 else
8675 ac_cpp_err=
8676 fi
8677else
8678 ac_cpp_err=yes
8679fi
8680if test -z "$ac_cpp_err"; then
8681 ac_header_preproc=yes
8682else
8683 echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_header_preproc=no
8687fi
Reid Spencera773bd52006-08-04 18:18:08 +00008688
Brian Gaeke0a621332004-09-08 20:38:05 +00008689rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008692
8693# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008701 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008702 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008715 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008716## ----------------------------------- ##
8717## Report this to llvmbugs@cs.uiuc.edu ##
8718## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008719_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008720 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008721 ;;
8722esac
Reid Spencera773bd52006-08-04 18:18:08 +00008723{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008728 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008729fi
Reid Spencera773bd52006-08-04 18:18:08 +00008730ac_res=`eval echo '${'$as_ac_Header'}'`
8731 { echo "$as_me:$LINENO: result: $ac_res" >&5
8732echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008733
8734fi
John Criswell7a73b802003-06-30 21:59:07 +00008735if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738_ACEOF
8739
8740fi
8741
8742done
8743
Reid Spencera773bd52006-08-04 18:18:08 +00008744# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008745if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008746 enableval=$enable_ltdl_install;
8747fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008748
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008749
8750
8751
8752if test x"${enable_ltdl_install-no}" != xno; then
8753 INSTALL_LTDL_TRUE=
8754 INSTALL_LTDL_FALSE='#'
8755else
8756 INSTALL_LTDL_TRUE='#'
8757 INSTALL_LTDL_FALSE=
8758fi
8759
8760
8761
8762if test x"${enable_ltdl_convenience-no}" != xno; then
8763 CONVENIENCE_LTDL_TRUE=
8764 CONVENIENCE_LTDL_FALSE='#'
8765else
8766 CONVENIENCE_LTDL_TRUE='#'
8767 CONVENIENCE_LTDL_FALSE=
8768fi
8769
8770
Reid Spencera773bd52006-08-04 18:18:08 +00008771{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008773library_names_spec=
8774libname_spec='lib$name'
8775soname_spec=
8776shrext_cmds=".so"
8777postinstall_cmds=
8778postuninstall_cmds=
8779finish_cmds=
8780finish_eval=
8781shlibpath_var=
8782shlibpath_overrides_runpath=unknown
8783version_type=none
8784dynamic_linker="$host_os ld.so"
8785sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786if test "$GCC" = yes; then
8787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789 # if the path contains ";" then we assume it to be the separator
8790 # otherwise default to the standard path separator (i.e. ":") - it is
8791 # assumed that no part of a normal pathname contains ";" but that should
8792 # okay in the real world where ";" in dirpaths is itself problematic.
8793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794 else
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8796 fi
8797else
8798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799fi
8800need_lib_prefix=unknown
8801hardcode_into_libs=no
8802
8803# when you set need_version to no, make sure it does not cause -set_version
8804# flags to be left without arguments
8805need_version=unknown
8806
8807case $host_os in
8808aix3*)
8809 version_type=linux
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811 shlibpath_var=LIBPATH
8812
8813 # AIX 3 has no versioning support, so we append a major version to the name.
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 ;;
8816
8817aix4* | aix5*)
8818 version_type=linux
8819 need_lib_prefix=no
8820 need_version=no
8821 hardcode_into_libs=yes
8822 if test "$host_cpu" = ia64; then
8823 # AIX 5 supports IA64
8824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 else
8827 # With GCC up to 2.95.x, collect2 would create an import file
8828 # for dependence libraries. The import file would start with
8829 # the line `#! .'. This would cause the generated library to
8830 # depend on `.', always an invalid library. This was fixed in
8831 # development snapshots of GCC prior to 3.0.
8832 case $host_os in
8833 aix4 | aix4.[01] | aix4.[01].*)
8834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835 echo ' yes '
8836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8837 :
8838 else
8839 can_build_shared=no
8840 fi
8841 ;;
8842 esac
8843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844 # soname into executable. Probably we can add versioning support to
8845 # collect2, so additional links can be useful in future.
8846 if test "$aix_use_runtimelinking" = yes; then
8847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848 # instead of lib<name>.a to let people know that these are not
8849 # typical AIX shared libraries.
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 else
8852 # We preserve .a as extension for shared libraries through AIX4.2
8853 # and later when we are not doing run time linking.
8854 library_names_spec='${libname}${release}.a $libname.a'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 fi
8857 shlibpath_var=LIBPATH
8858 fi
8859 ;;
8860
8861amigaos*)
8862 library_names_spec='$libname.ixlibrary $libname.a'
8863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864 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'
8865 ;;
8866
8867beos*)
8868 library_names_spec='${libname}${shared_ext}'
8869 dynamic_linker="$host_os ld.so"
8870 shlibpath_var=LIBRARY_PATH
8871 ;;
8872
8873bsdi[45]*)
8874 version_type=linux
8875 need_version=no
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882 # the default ld.so.conf also contains /usr/contrib/lib and
8883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884 # libtool to hard-code these into programs
8885 ;;
8886
8887cygwin* | mingw* | pw32*)
8888 version_type=windows
8889 shrext_cmds=".dll"
8890 need_version=no
8891 need_lib_prefix=no
8892
8893 case $GCC,$host_os in
8894 yes,cygwin* | yes,mingw* | yes,pw32*)
8895 library_names_spec='$libname.dll.a'
8896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897 postinstall_cmds='base_file=`basename \${file}`~
8898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899 dldir=$destdir/`dirname \$dlpath`~
8900 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008901 $install_prog $dir/$dlname \$dldir/$dlname~
8902 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904 dlpath=$dir/\$dldll~
8905 $rm \$dlpath'
8906 shlibpath_overrides_runpath=yes
8907
8908 case $host_os in
8909 cygwin*)
8910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913 ;;
8914 mingw*)
8915 # MinGW DLLs use traditional 'lib' prefix
8916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919 # It is most probably a Windows format PATH printed by
8920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921 # path with ; separators, and with drive letters. We can handle the
8922 # drive letters (cygwin fileutils understands them), so leave them,
8923 # especially as we might pass files found there to a mingw objdump,
8924 # which wouldn't understand a cygwinified path. Ahh.
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926 else
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8928 fi
8929 ;;
8930 pw32*)
8931 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008932 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 +00008933 ;;
8934 esac
8935 ;;
8936
8937 *)
8938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939 ;;
8940 esac
8941 dynamic_linker='Win32 ld.exe'
8942 # FIXME: first we should search . and the directory the executable is in
8943 shlibpath_var=PATH
8944 ;;
8945
8946darwin* | rhapsody*)
8947 dynamic_linker="$host_os dyld"
8948 version_type=darwin
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952 soname_spec='${libname}${release}${major}$shared_ext'
8953 shlibpath_overrides_runpath=yes
8954 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008955 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957 if test "$GCC" = yes; then
8958 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"`
8959 else
8960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961 fi
8962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8963 ;;
8964
8965dgux*)
8966 version_type=linux
8967 need_lib_prefix=no
8968 need_version=no
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 ;;
8973
8974freebsd1*)
8975 dynamic_linker=no
8976 ;;
8977
8978kfreebsd*-gnu)
8979 version_type=linux
8980 need_lib_prefix=no
8981 need_version=no
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 dynamic_linker='GNU ld.so'
8988 ;;
8989
Reid Spencera773bd52006-08-04 18:18:08 +00008990freebsd* | dragonfly*)
8991 # DragonFly does not have aout. When/if they implement a new
8992 # versioning mechanism, adjust this.
8993 if test -x /usr/bin/objformat; then
8994 objformat=`/usr/bin/objformat`
8995 else
8996 case $host_os in
8997 freebsd[123]*) objformat=aout ;;
8998 *) objformat=elf ;;
8999 esac
9000 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009001 version_type=freebsd-$objformat
9002 case $version_type in
9003 freebsd-elf*)
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005 need_version=no
9006 need_lib_prefix=no
9007 ;;
9008 freebsd-*)
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010 need_version=yes
9011 ;;
9012 esac
9013 shlibpath_var=LD_LIBRARY_PATH
9014 case $host_os in
9015 freebsd2*)
9016 shlibpath_overrides_runpath=yes
9017 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009018 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9026 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009027 freebsd*) # from 4.6 on
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9030 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009031 esac
9032 ;;
9033
9034gnu*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 hardcode_into_libs=yes
9042 ;;
9043
9044hpux9* | hpux10* | hpux11*)
9045 # Give a soname corresponding to the major version so that dld.sl refuses to
9046 # link against other versions.
9047 version_type=sunos
9048 need_lib_prefix=no
9049 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009050 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009051 ia64*)
9052 shrext_cmds='.so'
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.so"
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 if test "X$HPUX_IA64_MODE" = X32; then
9060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061 else
9062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063 fi
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065 ;;
9066 hppa*64*)
9067 shrext_cmds='.sl'
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.sl"
9070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076 ;;
9077 *)
9078 shrext_cmds='.sl'
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=SHLIB_PATH
9081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 ;;
9085 esac
9086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087 postinstall_cmds='chmod 555 $lib'
9088 ;;
9089
Reid Spencera773bd52006-08-04 18:18:08 +00009090interix3*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9100 ;;
9101
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009102irix5* | irix6* | nonstopux*)
9103 case $host_os in
9104 nonstopux*) version_type=nonstopux ;;
9105 *)
9106 if test "$lt_cv_prog_gnu_ld" = yes; then
9107 version_type=linux
9108 else
9109 version_type=irix
9110 fi ;;
9111 esac
9112 need_lib_prefix=no
9113 need_version=no
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 case $host_os in
9117 irix5* | nonstopux*)
9118 libsuff= shlibsuff=
9119 ;;
9120 *)
9121 case $LD in # libtool.m4 will add one of these switches to LD
9122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123 libsuff= shlibsuff= libmagic=32-bit;;
9124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125 libsuff=32 shlibsuff=N32 libmagic=N32;;
9126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128 *) libsuff= shlibsuff= libmagic=never-match;;
9129 esac
9130 ;;
9131 esac
9132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136 hardcode_into_libs=yes
9137 ;;
9138
9139# No shared lib support for Linux oldld, aout, or coff.
9140linux*oldld* | linux*aout* | linux*coff*)
9141 dynamic_linker=no
9142 ;;
9143
9144# This must be Linux ELF.
9145linux*)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 # This implies no fast_install, which is unacceptable.
9155 # Some rework will be needed to allow for fast_install
9156 # before this can be enabled.
9157 hardcode_into_libs=yes
9158
9159 # Append ld.so.conf contents to the search path
9160 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009161 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 +00009162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163 fi
9164
9165 # We used to test for /lib/ld.so.1 and disable shared libraries on
9166 # powerpc, because MkLinux only supported shared libraries with the
9167 # GNU dynamic linker. Since this was broken with cross compilers,
9168 # most powerpc-linux boxes support dynamic linking these days and
9169 # people can always --disable-shared, the test was removed, and we
9170 # assume the GNU/Linux dynamic linker is in use.
9171 dynamic_linker='GNU/Linux ld.so'
9172 ;;
9173
9174knetbsd*-gnu)
9175 version_type=linux
9176 need_lib_prefix=no
9177 need_version=no
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9183 dynamic_linker='GNU ld.so'
9184 ;;
9185
9186netbsd*)
9187 version_type=sunos
9188 need_lib_prefix=no
9189 need_version=no
9190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 dynamic_linker='NetBSD (a.out) ld.so'
9194 else
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='NetBSD ld.elf_so'
9198 fi
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9202 ;;
9203
9204newsos6)
9205 version_type=linux
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9209 ;;
9210
9211nto-qnx*)
9212 version_type=linux
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 ;;
9220
9221openbsd*)
9222 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009223 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226 case $host_os in
9227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228 *) need_version=no ;;
9229 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234 case $host_os in
9235 openbsd2.[89] | openbsd2.[89].*)
9236 shlibpath_overrides_runpath=no
9237 ;;
9238 *)
9239 shlibpath_overrides_runpath=yes
9240 ;;
9241 esac
9242 else
9243 shlibpath_overrides_runpath=yes
9244 fi
9245 ;;
9246
9247os2*)
9248 libname_spec='$name'
9249 shrext_cmds=".dll"
9250 need_lib_prefix=no
9251 library_names_spec='$libname${shared_ext} $libname.a'
9252 dynamic_linker='OS/2 ld.exe'
9253 shlibpath_var=LIBPATH
9254 ;;
9255
9256osf3* | osf4* | osf5*)
9257 version_type=osf
9258 need_lib_prefix=no
9259 need_version=no
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265 ;;
9266
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009267solaris*)
9268 version_type=linux
9269 need_lib_prefix=no
9270 need_version=no
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9276 # ldd complains unless libraries are executable
9277 postinstall_cmds='chmod +x $lib'
9278 ;;
9279
9280sunos4*)
9281 version_type=sunos
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9286 if test "$with_gnu_ld" = yes; then
9287 need_lib_prefix=no
9288 fi
9289 need_version=yes
9290 ;;
9291
Reid Spencera773bd52006-08-04 18:18:08 +00009292sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009293 version_type=linux
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 case $host_vendor in
9298 sni)
9299 shlibpath_overrides_runpath=no
9300 need_lib_prefix=no
9301 export_dynamic_flag_spec='${wl}-Blargedynsym'
9302 runpath_var=LD_RUN_PATH
9303 ;;
9304 siemens)
9305 need_lib_prefix=no
9306 ;;
9307 motorola)
9308 need_lib_prefix=no
9309 need_version=no
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9312 ;;
9313 esac
9314 ;;
9315
9316sysv4*MP*)
9317 if test -d /usr/nec ;then
9318 version_type=linux
9319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320 soname_spec='$libname${shared_ext}.$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 fi
9323 ;;
9324
Reid Spencera773bd52006-08-04 18:18:08 +00009325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326 version_type=freebsd-elf
9327 need_lib_prefix=no
9328 need_version=no
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 hardcode_into_libs=yes
9333 if test "$with_gnu_ld" = yes; then
9334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335 shlibpath_overrides_runpath=no
9336 else
9337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338 shlibpath_overrides_runpath=yes
9339 case $host_os in
9340 sco3.2v5*)
9341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9342 ;;
9343 esac
9344 fi
9345 sys_lib_dlsearch_path_spec='/usr/lib'
9346 ;;
9347
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009348uts4*)
9349 version_type=linux
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 ;;
9354
9355*)
9356 dynamic_linker=no
9357 ;;
9358esac
Reid Spencera773bd52006-08-04 18:18:08 +00009359{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361test "$dynamic_linker" = no && can_build_shared=no
9362
Reid Spencera773bd52006-08-04 18:18:08 +00009363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364if test "$GCC" = yes; then
9365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367
Reid Spencera773bd52006-08-04 18:18:08 +00009368
9369{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371if test "${libltdl_cv_shlibext+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373else
9374
9375module=yes
9376eval libltdl_cv_shlibext=$shrext_cmds
9377
9378fi
Reid Spencera773bd52006-08-04 18:18:08 +00009379{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009381if test -n "$libltdl_cv_shlibext"; then
9382
9383cat >>confdefs.h <<_ACEOF
9384#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9385_ACEOF
9386
9387fi
9388
9389
Reid Spencera773bd52006-08-04 18:18:08 +00009390{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009392if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395 libltdl_cv_shlibpath_var="$shlibpath_var"
9396fi
Reid Spencera773bd52006-08-04 18:18:08 +00009397{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399if test -n "$libltdl_cv_shlibpath_var"; then
9400
9401cat >>confdefs.h <<_ACEOF
9402#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9403_ACEOF
9404
9405fi
9406
9407
Reid Spencera773bd52006-08-04 18:18:08 +00009408{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9409echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009410if test "${libltdl_cv_sys_search_path+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9414fi
Reid Spencera773bd52006-08-04 18:18:08 +00009415{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009417if test -n "$libltdl_cv_sys_search_path"; then
9418 sys_search_path=
9419 for dir in $libltdl_cv_sys_search_path; do
9420 if test -z "$sys_search_path"; then
9421 sys_search_path="$dir"
9422 else
9423 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9424 fi
9425 done
9426
9427cat >>confdefs.h <<_ACEOF
9428#define LTDL_SYSSEARCHPATH "$sys_search_path"
9429_ACEOF
9430
9431fi
9432
Reid Spencera773bd52006-08-04 18:18:08 +00009433{ echo "$as_me:$LINENO: checking for objdir" >&5
9434echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009435if test "${libltdl_cv_objdir+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437else
9438 libltdl_cv_objdir="$objdir"
9439 if test -n "$objdir"; then
9440 :
9441 else
9442 rm -f .libs 2>/dev/null
9443 mkdir .libs 2>/dev/null
9444 if test -d .libs; then
9445 libltdl_cv_objdir=.libs
9446 else
9447 # MS-DOS does not allow filenames that begin with a dot.
9448 libltdl_cv_objdir=_libs
9449 fi
9450 rmdir .libs 2>/dev/null
9451 fi
9452
9453fi
Reid Spencera773bd52006-08-04 18:18:08 +00009454{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456
9457cat >>confdefs.h <<_ACEOF
9458#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9459_ACEOF
9460
9461
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462
9463
9464
9465
9466# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009467{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472
9473# These are sane defaults that work on at least a few old systems.
9474# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9475
9476# Character class describing NM global symbol codes.
9477symcode='[BCDEGRST]'
9478
9479# Regexp to match symbols that can be accessed directly from C.
9480sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9481
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482# Transform an extracted symbol line into a proper C declaration
9483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9484
9485# Transform an extracted symbol line into symbol name and symbol address
9486lt_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'"
9487
9488# Define system-specific variables.
9489case $host_os in
9490aix*)
9491 symcode='[BCDT]'
9492 ;;
9493cygwin* | mingw* | pw32*)
9494 symcode='[ABCDGISTW]'
9495 ;;
9496hpux*) # Its linker distinguishes data from code symbols
9497 if test "$host_cpu" = ia64; then
9498 symcode='[ABCDEGRST]'
9499 fi
9500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501 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'"
9502 ;;
9503linux*)
9504 if test "$host_cpu" = ia64; then
9505 symcode='[ABCDGIRSTW]'
9506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507 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'"
9508 fi
9509 ;;
9510irix* | nonstopux*)
9511 symcode='[BCDEGRST]'
9512 ;;
9513osf*)
9514 symcode='[BCDEGQRST]'
9515 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009516solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517 symcode='[BDRT]'
9518 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009519sco3.2v5*)
9520 symcode='[DT]'
9521 ;;
9522sysv4.2uw2*)
9523 symcode='[DT]'
9524 ;;
9525sysv5* | sco5v6* | unixware* | OpenUNIX*)
9526 symcode='[ABDT]'
9527 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009528sysv4)
9529 symcode='[DFNSTU]'
9530 ;;
9531esac
9532
9533# Handle CRLF in mingw tool chain
9534opt_cr=
9535case $build_os in
9536mingw*)
9537 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9538 ;;
9539esac
9540
9541# If we're using GNU nm, then use its standard symbol codes.
9542case `$NM -V 2>&1` in
9543*GNU* | *'with BFD'*)
9544 symcode='[ABCDGIRSTW]' ;;
9545esac
9546
9547# Try without a prefix undercore, then with it.
9548for ac_symprfx in "" "_"; do
9549
Reid Spencera773bd52006-08-04 18:18:08 +00009550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551 symxfrm="\\1 $ac_symprfx\\2 \\2"
9552
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009554 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 +00009555
9556 # Check to see that the pipe works correctly.
9557 pipe_works=no
9558
9559 rm -f conftest*
9560 cat > conftest.$ac_ext <<EOF
9561#ifdef __cplusplus
9562extern "C" {
9563#endif
9564char nm_test_var;
9565void nm_test_func(){}
9566#ifdef __cplusplus
9567}
9568#endif
9569int main(){nm_test_var='a';nm_test_func();return(0);}
9570EOF
9571
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573 (eval $ac_compile) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; then
9577 # Now try to grab the symbols.
9578 nlist=conftest.nm
9579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && test -s "$nlist"; then
9584 # Try sorting and uniquifying the output.
9585 if sort "$nlist" | uniq > "$nlist"T; then
9586 mv -f "$nlist"T "$nlist"
9587 else
9588 rm -f "$nlist"T
9589 fi
9590
9591 # Make sure that we snagged all the symbols we need.
9592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594 cat <<EOF > conftest.$ac_ext
9595#ifdef __cplusplus
9596extern "C" {
9597#endif
9598
9599EOF
9600 # Now generate the symbol file.
9601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9602
9603 cat <<EOF >> conftest.$ac_ext
9604#if defined (__STDC__) && __STDC__
9605# define lt_ptr_t void *
9606#else
9607# define lt_ptr_t char *
9608# define const
9609#endif
9610
9611/* The mapping between symbol names and symbols. */
9612const struct {
9613 const char *name;
9614 lt_ptr_t address;
9615}
9616lt_preloaded_symbols[] =
9617{
9618EOF
9619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620 cat <<\EOF >> conftest.$ac_ext
9621 {0, (lt_ptr_t) 0}
9622};
9623
9624#ifdef __cplusplus
9625}
9626#endif
9627EOF
9628 # Now try linking the two files.
9629 mv conftest.$ac_objext conftstm.$ac_objext
9630 lt_save_LIBS="$LIBS"
9631 lt_save_CFLAGS="$CFLAGS"
9632 LIBS="conftstm.$ac_objext"
9633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9639 pipe_works=yes
9640 fi
9641 LIBS="$lt_save_LIBS"
9642 CFLAGS="$lt_save_CFLAGS"
9643 else
9644 echo "cannot find nm_test_func in $nlist" >&5
9645 fi
9646 else
9647 echo "cannot find nm_test_var in $nlist" >&5
9648 fi
9649 else
9650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9651 fi
9652 else
9653 echo "$progname: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9655 fi
9656 rm -f conftest* conftst*
9657
9658 # Do not use the global_symbol_pipe unless it works.
9659 if test "$pipe_works" = yes; then
9660 break
9661 else
9662 lt_cv_sys_global_symbol_pipe=
9663 fi
9664done
9665
9666fi
9667
9668if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669 lt_cv_sys_global_symbol_to_cdecl=
9670fi
9671if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009672 { echo "$as_me:$LINENO: result: failed" >&5
9673echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674else
Reid Spencera773bd52006-08-04 18:18:08 +00009675 { echo "$as_me:$LINENO: result: ok" >&5
9676echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009677fi
9678
9679
Reid Spencera773bd52006-08-04 18:18:08 +00009680{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009682if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684else
9685 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686 libltdl_cv_preloaded_symbols=yes
9687 else
9688 libltdl_cv_preloaded_symbols=no
9689 fi
9690
9691fi
Reid Spencera773bd52006-08-04 18:18:08 +00009692{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009694if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9695
9696cat >>confdefs.h <<\_ACEOF
9697#define HAVE_PRELOADED_SYMBOLS 1
9698_ACEOF
9699
9700fi
9701
9702LIBADD_DL=
9703
9704ac_ext=c
9705ac_cpp='$CPP $CPPFLAGS'
9706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708ac_compiler_gnu=$ac_cv_c_compiler_gnu
9709
9710
Reid Spencera773bd52006-08-04 18:18:08 +00009711{ echo "$as_me:$LINENO: checking for shl_load" >&5
9712echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009713if test "${ac_cv_func_shl_load+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
9716 cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
9722/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724#define shl_load innocuous_shl_load
9725
9726/* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char shl_load (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9730
9731#ifdef __STDC__
9732# include <limits.h>
9733#else
9734# include <assert.h>
9735#endif
9736
9737#undef shl_load
9738
Reid Spencera773bd52006-08-04 18:18:08 +00009739/* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742#ifdef __cplusplus
9743extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009744#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745char shl_load ();
9746/* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009749#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751#endif
9752
9753int
9754main ()
9755{
Reid Spencera773bd52006-08-04 18:18:08 +00009756return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757 ;
9758 return 0;
9759}
9760_ACEOF
9761rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009762if { (ac_try="$ac_link"
9763case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766esac
9767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779esac
9780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_func_shl_load=yes
9796else
9797 echo "$as_me: failed program was:" >&5
9798sed 's/^/| /' conftest.$ac_ext >&5
9799
Reid Spencera773bd52006-08-04 18:18:08 +00009800 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801fi
Reid Spencera773bd52006-08-04 18:18:08 +00009802
9803rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804 conftest$ac_exeext conftest.$ac_ext
9805fi
Reid Spencera773bd52006-08-04 18:18:08 +00009806{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808if test $ac_cv_func_shl_load = yes; then
9809
9810cat >>confdefs.h <<\_ACEOF
9811#define HAVE_SHL_LOAD 1
9812_ACEOF
9813
9814else
Reid Spencera773bd52006-08-04 18:18:08 +00009815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820 ac_check_lib_save_LIBS=$LIBS
9821LIBS="-ldld $LIBS"
9822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828
Reid Spencera773bd52006-08-04 18:18:08 +00009829/* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832#ifdef __cplusplus
9833extern "C"
9834#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835char shl_load ();
9836int
9837main ()
9838{
Reid Spencera773bd52006-08-04 18:18:08 +00009839return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840 ;
9841 return 0;
9842}
9843_ACEOF
9844rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009845if { (ac_try="$ac_link"
9846case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849esac
9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862esac
9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_lib_dld_shl_load=yes
9879else
9880 echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
Reid Spencera773bd52006-08-04 18:18:08 +00009883 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884fi
Reid Spencera773bd52006-08-04 18:18:08 +00009885
9886rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887 conftest$ac_exeext conftest.$ac_ext
9888LIBS=$ac_check_lib_save_LIBS
9889fi
Reid Spencera773bd52006-08-04 18:18:08 +00009890{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892if test $ac_cv_lib_dld_shl_load = yes; then
9893
9894cat >>confdefs.h <<\_ACEOF
9895#define HAVE_SHL_LOAD 1
9896_ACEOF
9897
9898 LIBADD_DL="$LIBADD_DL -ldld"
9899else
Reid Spencera773bd52006-08-04 18:18:08 +00009900 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904else
9905 ac_check_lib_save_LIBS=$LIBS
9906LIBS="-ldl $LIBS"
9907cat >conftest.$ac_ext <<_ACEOF
9908/* confdefs.h. */
9909_ACEOF
9910cat confdefs.h >>conftest.$ac_ext
9911cat >>conftest.$ac_ext <<_ACEOF
9912/* end confdefs.h. */
9913
Reid Spencera773bd52006-08-04 18:18:08 +00009914/* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917#ifdef __cplusplus
9918extern "C"
9919#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920char dlopen ();
9921int
9922main ()
9923{
Reid Spencera773bd52006-08-04 18:18:08 +00009924return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925 ;
9926 return 0;
9927}
9928_ACEOF
9929rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009930if { (ac_try="$ac_link"
9931case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934esac
9935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944 { (case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9947esac
9948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957esac
9958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9963 ac_cv_lib_dl_dlopen=yes
9964else
9965 echo "$as_me: failed program was:" >&5
9966sed 's/^/| /' conftest.$ac_ext >&5
9967
Reid Spencera773bd52006-08-04 18:18:08 +00009968 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969fi
Reid Spencera773bd52006-08-04 18:18:08 +00009970
9971rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972 conftest$ac_exeext conftest.$ac_ext
9973LIBS=$ac_check_lib_save_LIBS
9974fi
Reid Spencera773bd52006-08-04 18:18:08 +00009975{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009977if test $ac_cv_lib_dl_dlopen = yes; then
9978
9979cat >>confdefs.h <<\_ACEOF
9980#define HAVE_LIBDL 1
9981_ACEOF
9982
9983 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9984else
9985 cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h. */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h. */
9991#if HAVE_DLFCN_H
9992# include <dlfcn.h>
9993#endif
9994
9995int
9996main ()
9997{
9998dlopen(0, 0);
9999 ;
10000 return 0;
10001}
10002_ACEOF
10003rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010004if { (ac_try="$ac_link"
10005case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008esac
10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021esac
10022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037
10038cat >>confdefs.h <<\_ACEOF
10039#define HAVE_LIBDL 1
10040_ACEOF
10041 libltdl_cv_func_dlopen="yes"
10042else
10043 echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
Reid Spencera773bd52006-08-04 18:18:08 +000010046 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050else
10051 ac_check_lib_save_LIBS=$LIBS
10052LIBS="-lsvld $LIBS"
10053cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h. */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
10058/* end confdefs.h. */
10059
Reid Spencera773bd52006-08-04 18:18:08 +000010060/* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063#ifdef __cplusplus
10064extern "C"
10065#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066char dlopen ();
10067int
10068main ()
10069{
Reid Spencera773bd52006-08-04 18:18:08 +000010070return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010071 ;
10072 return 0;
10073}
10074_ACEOF
10075rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010076if { (ac_try="$ac_link"
10077case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10093esac
10094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_lib_svld_dlopen=yes
10110else
10111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
Reid Spencera773bd52006-08-04 18:18:08 +000010114 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115fi
Reid Spencera773bd52006-08-04 18:18:08 +000010116
10117rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118 conftest$ac_exeext conftest.$ac_ext
10119LIBS=$ac_check_lib_save_LIBS
10120fi
Reid Spencera773bd52006-08-04 18:18:08 +000010121{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123if test $ac_cv_lib_svld_dlopen = yes; then
10124
10125cat >>confdefs.h <<\_ACEOF
10126#define HAVE_LIBDL 1
10127_ACEOF
10128
10129 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10130else
Reid Spencera773bd52006-08-04 18:18:08 +000010131 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 ac_check_lib_save_LIBS=$LIBS
10137LIBS="-ldld $LIBS"
10138cat >conftest.$ac_ext <<_ACEOF
10139/* confdefs.h. */
10140_ACEOF
10141cat confdefs.h >>conftest.$ac_ext
10142cat >>conftest.$ac_ext <<_ACEOF
10143/* end confdefs.h. */
10144
Reid Spencera773bd52006-08-04 18:18:08 +000010145/* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010148#ifdef __cplusplus
10149extern "C"
10150#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151char dld_link ();
10152int
10153main ()
10154{
Reid Spencera773bd52006-08-04 18:18:08 +000010155return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156 ;
10157 return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165esac
10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178esac
10179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_lib_dld_dld_link=yes
10195else
10196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
Reid Spencera773bd52006-08-04 18:18:08 +000010199 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200fi
Reid Spencera773bd52006-08-04 18:18:08 +000010201
10202rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203 conftest$ac_exeext conftest.$ac_ext
10204LIBS=$ac_check_lib_save_LIBS
10205fi
Reid Spencera773bd52006-08-04 18:18:08 +000010206{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208if test $ac_cv_lib_dld_dld_link = yes; then
10209
10210cat >>confdefs.h <<\_ACEOF
10211#define HAVE_DLD 1
10212_ACEOF
10213
10214 LIBADD_DL="$LIBADD_DL -ldld"
10215else
Reid Spencera773bd52006-08-04 18:18:08 +000010216 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 cat >conftest.$ac_ext <<_ACEOF
10222/* confdefs.h. */
10223_ACEOF
10224cat confdefs.h >>conftest.$ac_ext
10225cat >>conftest.$ac_ext <<_ACEOF
10226/* end confdefs.h. */
10227/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10229#define _dyld_func_lookup innocuous__dyld_func_lookup
10230
10231/* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char _dyld_func_lookup (); below.
10233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234 <limits.h> exists even on freestanding compilers. */
10235
10236#ifdef __STDC__
10237# include <limits.h>
10238#else
10239# include <assert.h>
10240#endif
10241
10242#undef _dyld_func_lookup
10243
Reid Spencera773bd52006-08-04 18:18:08 +000010244/* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010247#ifdef __cplusplus
10248extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010249#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010250char _dyld_func_lookup ();
10251/* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010254#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256#endif
10257
10258int
10259main ()
10260{
Reid Spencera773bd52006-08-04 18:18:08 +000010261return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262 ;
10263 return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010267if { (ac_try="$ac_link"
10268case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271esac
10272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10284esac
10285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294esac
10295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_func__dyld_func_lookup=yes
10301else
10302 echo "$as_me: failed program was:" >&5
10303sed 's/^/| /' conftest.$ac_ext >&5
10304
Reid Spencera773bd52006-08-04 18:18:08 +000010305 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306fi
Reid Spencera773bd52006-08-04 18:18:08 +000010307
10308rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309 conftest$ac_exeext conftest.$ac_ext
10310fi
Reid Spencera773bd52006-08-04 18:18:08 +000010311{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313if test $ac_cv_func__dyld_func_lookup = yes; then
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define HAVE_DYLD 1
10317_ACEOF
10318
10319fi
10320
10321
10322fi
10323
10324
10325fi
10326
10327
10328fi
Reid Spencera773bd52006-08-04 18:18:08 +000010329
10330rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331 conftest$ac_exeext conftest.$ac_ext
10332
10333fi
10334
10335
10336fi
10337
10338
10339fi
10340
10341
10342if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10343then
10344 lt_save_LIBS="$LIBS"
10345 LIBS="$LIBS $LIBADD_DL"
10346
10347for ac_func in dlerror
10348do
10349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355 cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10363#define $ac_func innocuous_$ac_func
10364
10365/* System header to define __stub macros and hopefully few prototypes,
10366 which can conflict with char $ac_func (); below.
10367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368 <limits.h> exists even on freestanding compilers. */
10369
10370#ifdef __STDC__
10371# include <limits.h>
10372#else
10373# include <assert.h>
10374#endif
10375
10376#undef $ac_func
10377
Reid Spencera773bd52006-08-04 18:18:08 +000010378/* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010381#ifdef __cplusplus
10382extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384char $ac_func ();
10385/* The GNU C library defines this for functions which it implements
10386 to always fail with ENOSYS. Some functions are actually named
10387 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010388#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390#endif
10391
10392int
10393main ()
10394{
Reid Spencera773bd52006-08-04 18:18:08 +000010395return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396 ;
10397 return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010401if { (ac_try="$ac_link"
10402case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405esac
10406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418esac
10419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428esac
10429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 eval "$as_ac_var=yes"
10435else
10436 echo "$as_me: failed program was:" >&5
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
Reid Spencera773bd52006-08-04 18:18:08 +000010439 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440fi
Reid Spencera773bd52006-08-04 18:18:08 +000010441
10442rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443 conftest$ac_exeext conftest.$ac_ext
10444fi
Reid Spencera773bd52006-08-04 18:18:08 +000010445ac_res=`eval echo '${'$as_ac_var'}'`
10446 { echo "$as_me:$LINENO: result: $ac_res" >&5
10447echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448if test `eval echo '${'$as_ac_var'}'` = yes; then
10449 cat >>confdefs.h <<_ACEOF
10450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10451_ACEOF
10452
10453fi
10454done
10455
10456 LIBS="$lt_save_LIBS"
10457fi
10458ac_ext=c
10459ac_cpp='$CPP $CPPFLAGS'
10460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462ac_compiler_gnu=$ac_cv_c_compiler_gnu
10463
10464
10465
Reid Spencera773bd52006-08-04 18:18:08 +000010466{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010468if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470else
10471 ac_cv_sys_symbol_underscore=no
10472 cat > conftest.$ac_ext <<EOF
10473void nm_test_func(){}
10474int main(){nm_test_func;return 0;}
10475EOF
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; then
10481 # Now try to grab the symbols.
10482 ac_nlist=conftest.nm
10483 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10484 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && test -s "$ac_nlist"; then
10488 # See whether the symbols have a leading underscore.
10489 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490 ac_cv_sys_symbol_underscore=yes
10491 else
10492 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10493 :
10494 else
10495 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10496 fi
10497 fi
10498 else
10499 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10500 fi
10501 else
10502 echo "configure: failed program was:" >&5
10503 cat conftest.c >&5
10504 fi
10505 rm -rf conftest*
10506
10507fi
Reid Spencera773bd52006-08-04 18:18:08 +000010508{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510
10511
10512if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513 if test x"$libltdl_cv_func_dlopen" = xyes ||
10514 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010515 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517if test "${libltdl_cv_need_uscore+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520 libltdl_cv_need_uscore=unknown
10521 save_LIBS="$LIBS"
10522 LIBS="$LIBS $LIBADD_DL"
10523 if test "$cross_compiling" = yes; then :
10524 libltdl_cv_need_uscore=cross
10525else
10526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527 lt_status=$lt_dlunknown
10528 cat > conftest.$ac_ext <<EOF
Gordon Henriksenc0efff82007-10-02 09:50:32 +000010529#line 10529 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530#include "confdefs.h"
10531
10532#if HAVE_DLFCN_H
10533#include <dlfcn.h>
10534#endif
10535
10536#include <stdio.h>
10537
10538#ifdef RTLD_GLOBAL
10539# define LT_DLGLOBAL RTLD_GLOBAL
10540#else
10541# ifdef DL_GLOBAL
10542# define LT_DLGLOBAL DL_GLOBAL
10543# else
10544# define LT_DLGLOBAL 0
10545# endif
10546#endif
10547
10548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549 find out it does not work in some platform. */
10550#ifndef LT_DLLAZY_OR_NOW
10551# ifdef RTLD_LAZY
10552# define LT_DLLAZY_OR_NOW RTLD_LAZY
10553# else
10554# ifdef DL_LAZY
10555# define LT_DLLAZY_OR_NOW DL_LAZY
10556# else
10557# ifdef RTLD_NOW
10558# define LT_DLLAZY_OR_NOW RTLD_NOW
10559# else
10560# ifdef DL_NOW
10561# define LT_DLLAZY_OR_NOW DL_NOW
10562# else
10563# define LT_DLLAZY_OR_NOW 0
10564# endif
10565# endif
10566# endif
10567# endif
10568#endif
10569
10570#ifdef __cplusplus
10571extern "C" void exit (int);
10572#endif
10573
10574void fnord() { int i=42;}
10575int main ()
10576{
10577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578 int status = $lt_dlunknown;
10579
10580 if (self)
10581 {
10582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10583 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584 /* dlclose (self); */
10585 }
Reid Spencera773bd52006-08-04 18:18:08 +000010586 else
10587 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588
10589 exit (status);
10590}
10591EOF
10592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593 (eval $ac_link) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010597 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598 lt_status=$?
10599 case x$lt_status in
10600 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010602 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603 esac
10604 else :
10605 # compilation failed
10606
10607 fi
10608fi
10609rm -fr conftest*
10610
10611 LIBS="$save_LIBS"
10612
10613fi
Reid Spencera773bd52006-08-04 18:18:08 +000010614{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616 fi
10617fi
10618
10619if test x"$libltdl_cv_need_uscore" = xyes; then
10620
10621cat >>confdefs.h <<\_ACEOF
10622#define NEED_USCORE 1
10623_ACEOF
10624
10625fi
10626
10627
Reid Spencera773bd52006-08-04 18:18:08 +000010628{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632else
10633 # PORTME does your system automatically load deplibs for dlopen?
10634 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635 # For now, we just catch OSes we know something about -- in the
10636 # future, we'll try test this programmatically.
10637 libltdl_cv_sys_dlopen_deplibs=unknown
10638 case "$host_os" in
10639 aix3*|aix4.1.*|aix4.2.*)
10640 # Unknown whether this is true for these versions of AIX, but
10641 # we want this `case' here to explicitly catch those versions.
10642 libltdl_cv_sys_dlopen_deplibs=unknown
10643 ;;
10644 aix[45]*)
10645 libltdl_cv_sys_dlopen_deplibs=yes
10646 ;;
10647 darwin*)
10648 # Assuming the user has installed a libdl from somewhere, this is true
10649 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650 libltdl_cv_sys_dlopen_deplibs=yes
10651 ;;
10652 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653 # GNU and its variants, using gnu ld.so (Glibc)
10654 libltdl_cv_sys_dlopen_deplibs=yes
10655 ;;
10656 hpux10*|hpux11*)
10657 libltdl_cv_sys_dlopen_deplibs=yes
10658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010659 interix*)
10660 libltdl_cv_sys_dlopen_deplibs=yes
10661 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010662 irix[12345]*|irix6.[01]*)
10663 # Catch all versions of IRIX before 6.2, and indicate that we don't
10664 # know how it worked for any of those versions.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10666 ;;
10667 irix*)
10668 # The case above catches anything before 6.2, and it's known that
10669 # at 6.2 and later dlopen does load deplibs.
10670 libltdl_cv_sys_dlopen_deplibs=yes
10671 ;;
10672 netbsd*)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
10675 openbsd*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
10678 osf[1234]*)
10679 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680 # it did *not* use an RPATH in a shared library to find objects the
10681 # library depends on, so we explictly say `no'.
10682 libltdl_cv_sys_dlopen_deplibs=no
10683 ;;
10684 osf5.0|osf5.0a|osf5.1)
10685 # dlopen *does* load deplibs and with the right loader patch applied
10686 # it even uses RPATH in a shared library to search for shared objects
10687 # that the library depends on, but there's no easy way to know if that
10688 # patch is installed. Since this is the case, all we can really
10689 # say is unknown -- it depends on the patch being installed. If
10690 # it is, this changes to `yes'. Without it, it would be `no'.
10691 libltdl_cv_sys_dlopen_deplibs=unknown
10692 ;;
10693 osf*)
10694 # the two cases above should catch all versions of osf <= 5.1. Read
10695 # the comments above for what we know about them.
10696 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697 # is used to find them so we can finally say `yes'.
10698 libltdl_cv_sys_dlopen_deplibs=yes
10699 ;;
10700 solaris*)
10701 libltdl_cv_sys_dlopen_deplibs=yes
10702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10705 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706 esac
10707
10708fi
Reid Spencera773bd52006-08-04 18:18:08 +000010709{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10712
10713cat >>confdefs.h <<\_ACEOF
10714#define LTDL_DLOPEN_DEPLIBS 1
10715_ACEOF
10716
10717fi
10718
10719
10720for ac_header in argz.h
10721do
10722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728fi
Reid Spencera773bd52006-08-04 18:18:08 +000010729ac_res=`eval echo '${'$as_ac_Header'}'`
10730 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732else
10733 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010734{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010736cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h. */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h. */
10742$ac_includes_default
10743#include <$ac_header>
10744_ACEOF
10745rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010746if { (ac_try="$ac_compile"
10747case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750esac
10751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763esac
10764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10773esac
10774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_header_compiler=yes
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
Reid Spencera773bd52006-08-04 18:18:08 +000010784 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785fi
Reid Spencera773bd52006-08-04 18:18:08 +000010786
10787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790
10791# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010792{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794cat >conftest.$ac_ext <<_ACEOF
10795/* confdefs.h. */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
10799/* end confdefs.h. */
10800#include <$ac_header>
10801_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010802if { (ac_try="$ac_cpp conftest.$ac_ext"
10803case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10806esac
10807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818 else
10819 ac_cpp_err=
10820 fi
10821else
10822 ac_cpp_err=yes
10823fi
10824if test -z "$ac_cpp_err"; then
10825 ac_header_preproc=yes
10826else
10827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_header_preproc=no
10831fi
Reid Spencera773bd52006-08-04 18:18:08 +000010832
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010834{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836
10837# So? What about this header?
10838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839 yes:no: )
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10845 ;;
10846 no:yes:* )
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10854echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010859 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860## ----------------------------------- ##
10861## Report this to llvmbugs@cs.uiuc.edu ##
10862## ----------------------------------- ##
10863_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010864 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865 ;;
10866esac
Reid Spencera773bd52006-08-04 18:18:08 +000010867{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871else
10872 eval "$as_ac_Header=\$ac_header_preproc"
10873fi
Reid Spencera773bd52006-08-04 18:18:08 +000010874ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877
10878fi
10879if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882_ACEOF
10883
10884fi
10885
10886done
10887
10888
Reid Spencera773bd52006-08-04 18:18:08 +000010889{ echo "$as_me:$LINENO: checking for error_t" >&5
10890echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891if test "${ac_cv_type_error_t+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893else
10894 cat >conftest.$ac_ext <<_ACEOF
10895/* confdefs.h. */
10896_ACEOF
10897cat confdefs.h >>conftest.$ac_ext
10898cat >>conftest.$ac_ext <<_ACEOF
10899/* end confdefs.h. */
10900#if HAVE_ARGZ_H
10901# include <argz.h>
10902#endif
10903
Reid Spencera773bd52006-08-04 18:18:08 +000010904typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905int
10906main ()
10907{
Reid Spencera773bd52006-08-04 18:18:08 +000010908if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010910if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911 return 0;
10912 ;
10913 return 0;
10914}
10915_ACEOF
10916rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010917if { (ac_try="$ac_compile"
10918case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
10945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 ac_cv_type_error_t=yes
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
Reid Spencera773bd52006-08-04 18:18:08 +000010955 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010956fi
Reid Spencera773bd52006-08-04 18:18:08 +000010957
10958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010959fi
Reid Spencera773bd52006-08-04 18:18:08 +000010960{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962if test $ac_cv_type_error_t = yes; then
10963
10964cat >>confdefs.h <<_ACEOF
10965#define HAVE_ERROR_T 1
10966_ACEOF
10967
10968
10969else
10970
10971cat >>confdefs.h <<\_ACEOF
10972#define error_t int
10973_ACEOF
10974
10975fi
10976
10977
10978
10979
10980
10981
10982
10983for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10984do
10985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990else
10991 cat >conftest.$ac_ext <<_ACEOF
10992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
10997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999#define $ac_func innocuous_$ac_func
11000
11001/* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
11005
11006#ifdef __STDC__
11007# include <limits.h>
11008#else
11009# include <assert.h>
11010#endif
11011
11012#undef $ac_func
11013
Reid Spencera773bd52006-08-04 18:18:08 +000011014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017#ifdef __cplusplus
11018extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011020char $ac_func ();
11021/* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011024#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011026#endif
11027
11028int
11029main ()
11030{
Reid Spencera773bd52006-08-04 18:18:08 +000011031return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054esac
11055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 eval "$as_ac_var=yes"
11071else
11072 echo "$as_me: failed program was:" >&5
11073sed 's/^/| /' conftest.$ac_ext >&5
11074
Reid Spencera773bd52006-08-04 18:18:08 +000011075 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076fi
Reid Spencera773bd52006-08-04 18:18:08 +000011077
11078rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011079 conftest$ac_exeext conftest.$ac_ext
11080fi
Reid Spencera773bd52006-08-04 18:18:08 +000011081ac_res=`eval echo '${'$as_ac_var'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084if test `eval echo '${'$as_ac_var'}'` = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11087_ACEOF
11088
11089fi
11090done
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11120 stdio.h unistd.h
11121do
11122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128fi
Reid Spencera773bd52006-08-04 18:18:08 +000011129ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011132else
11133 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011134{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142$ac_includes_default
11143#include <$ac_header>
11144_ACEOF
11145rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011146if { (ac_try="$ac_compile"
11147case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150esac
11151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173esac
11174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_header_compiler=yes
11180else
11181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
Reid Spencera773bd52006-08-04 18:18:08 +000011184 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185fi
Reid Spencera773bd52006-08-04 18:18:08 +000011186
11187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011190
11191# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011192{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011194cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200#include <$ac_header>
11201_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011202if { (ac_try="$ac_cpp conftest.$ac_ext"
11203case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218 else
11219 ac_cpp_err=
11220 fi
11221else
11222 ac_cpp_err=yes
11223fi
11224if test -z "$ac_cpp_err"; then
11225 ac_header_preproc=yes
11226else
11227 echo "$as_me: failed program was:" >&5
11228sed 's/^/| /' conftest.$ac_ext >&5
11229
11230 ac_header_preproc=no
11231fi
Reid Spencera773bd52006-08-04 18:18:08 +000011232
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011233rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236
11237# So? What about this header?
11238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239 yes:no: )
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244 ac_header_preproc=yes
11245 ;;
11246 no:yes:* )
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011259 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260## ----------------------------------- ##
11261## Report this to llvmbugs@cs.uiuc.edu ##
11262## ----------------------------------- ##
11263_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011264 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011265 ;;
11266esac
Reid Spencera773bd52006-08-04 18:18:08 +000011267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271else
11272 eval "$as_ac_Header=\$ac_header_preproc"
11273fi
Reid Spencera773bd52006-08-04 18:18:08 +000011274ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277
11278fi
11279if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282_ACEOF
11283
11284fi
11285
11286done
11287
11288
11289
11290
11291
11292for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11293do
11294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300fi
Reid Spencera773bd52006-08-04 18:18:08 +000011301ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304else
11305 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011306{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h. */
11314$ac_includes_default
11315#include <$ac_header>
11316_ACEOF
11317rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011318if { (ac_try="$ac_compile"
11319case "(($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_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345esac
11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_header_compiler=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
Reid Spencera773bd52006-08-04 18:18:08 +000011356 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357fi
Reid Spencera773bd52006-08-04 18:18:08 +000011358
11359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362
11363# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011364{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
11372#include <$ac_header>
11373_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011374if { (ac_try="$ac_cpp conftest.$ac_ext"
11375case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378esac
11379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev/null; then
11387 if test -s conftest.err; then
11388 ac_cpp_err=$ac_c_preproc_warn_flag
11389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11390 else
11391 ac_cpp_err=
11392 fi
11393else
11394 ac_cpp_err=yes
11395fi
11396if test -z "$ac_cpp_err"; then
11397 ac_header_preproc=yes
11398else
11399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 ac_header_preproc=no
11403fi
Reid Spencera773bd52006-08-04 18:18:08 +000011404
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011405rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011406{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408
11409# So? What about this header?
11410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411 yes:no: )
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416 ac_header_preproc=yes
11417 ;;
11418 no:yes:* )
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011431 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011432## ----------------------------------- ##
11433## Report this to llvmbugs@cs.uiuc.edu ##
11434## ----------------------------------- ##
11435_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011436 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011437 ;;
11438esac
Reid Spencera773bd52006-08-04 18:18:08 +000011439{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 eval "$as_ac_Header=\$ac_header_preproc"
11445fi
Reid Spencera773bd52006-08-04 18:18:08 +000011446ac_res=`eval echo '${'$as_ac_Header'}'`
11447 { echo "$as_me:$LINENO: result: $ac_res" >&5
11448echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449
11450fi
11451if test `eval echo '${'$as_ac_Header'}'` = yes; then
11452 cat >>confdefs.h <<_ACEOF
11453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11454_ACEOF
11455
11456fi
11457
11458done
11459
11460
11461
11462for ac_header in string.h strings.h
11463do
11464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470fi
Reid Spencera773bd52006-08-04 18:18:08 +000011471ac_res=`eval echo '${'$as_ac_Header'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011474else
11475 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011478cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
11484$ac_includes_default
11485#include <$ac_header>
11486_ACEOF
11487rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011488if { (ac_try="$ac_compile"
11489case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492esac
11493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_header_compiler=yes
11522else
11523 echo "$as_me: failed program was:" >&5
11524sed 's/^/| /' conftest.$ac_ext >&5
11525
Reid Spencera773bd52006-08-04 18:18:08 +000011526 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527fi
Reid Spencera773bd52006-08-04 18:18:08 +000011528
11529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532
11533# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011534{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011536cat >conftest.$ac_ext <<_ACEOF
11537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
11542#include <$ac_header>
11543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011544if { (ac_try="$ac_cpp conftest.$ac_ext"
11545case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null; then
11557 if test -s conftest.err; then
11558 ac_cpp_err=$ac_c_preproc_warn_flag
11559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560 else
11561 ac_cpp_err=
11562 fi
11563else
11564 ac_cpp_err=yes
11565fi
11566if test -z "$ac_cpp_err"; then
11567 ac_header_preproc=yes
11568else
11569 echo "$as_me: failed program was:" >&5
11570sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_header_preproc=no
11573fi
Reid Spencera773bd52006-08-04 18:18:08 +000011574
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011575rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578
11579# So? What about this header?
11580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581 yes:no: )
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11587 ;;
11588 no:yes:* )
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011601 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602## ----------------------------------- ##
11603## Report this to llvmbugs@cs.uiuc.edu ##
11604## ----------------------------------- ##
11605_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011606 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607 ;;
11608esac
Reid Spencera773bd52006-08-04 18:18:08 +000011609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 eval "$as_ac_Header=\$ac_header_preproc"
11615fi
Reid Spencera773bd52006-08-04 18:18:08 +000011616ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619
11620fi
11621if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11624_ACEOF
11625 break
11626fi
11627
11628done
11629
11630
11631
11632
11633for ac_func in strchr index
11634do
11635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649#define $ac_func innocuous_$ac_func
11650
11651/* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11655
11656#ifdef __STDC__
11657# include <limits.h>
11658#else
11659# include <assert.h>
11660#endif
11661
11662#undef $ac_func
11663
Reid Spencera773bd52006-08-04 18:18:08 +000011664/* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011667#ifdef __cplusplus
11668extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670char $ac_func ();
11671/* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011674#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011676#endif
11677
11678int
11679main ()
11680{
Reid Spencera773bd52006-08-04 18:18:08 +000011681return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011687if { (ac_try="$ac_link"
11688case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11721else
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
Reid Spencera773bd52006-08-04 18:18:08 +000011725 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726fi
Reid Spencera773bd52006-08-04 18:18:08 +000011727
11728rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729 conftest$ac_exeext conftest.$ac_ext
11730fi
Reid Spencera773bd52006-08-04 18:18:08 +000011731ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011734if test `eval echo '${'$as_ac_var'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737_ACEOF
11738 break
11739fi
11740done
11741
11742
11743
11744for ac_func in strrchr rindex
11745do
11746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751else
11752 cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760#define $ac_func innocuous_$ac_func
11761
11762/* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11766
11767#ifdef __STDC__
11768# include <limits.h>
11769#else
11770# include <assert.h>
11771#endif
11772
11773#undef $ac_func
11774
Reid Spencera773bd52006-08-04 18:18:08 +000011775/* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778#ifdef __cplusplus
11779extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781char $ac_func ();
11782/* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011785#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787#endif
11788
11789int
11790main ()
11791{
Reid Spencera773bd52006-08-04 18:18:08 +000011792return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793 ;
11794 return 0;
11795}
11796_ACEOF
11797rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011798if { (ac_try="$ac_link"
11799case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815esac
11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
Reid Spencera773bd52006-08-04 18:18:08 +000011836 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837fi
Reid Spencera773bd52006-08-04 18:18:08 +000011838
11839rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840 conftest$ac_exeext conftest.$ac_ext
11841fi
Reid Spencera773bd52006-08-04 18:18:08 +000011842ac_res=`eval echo '${'$as_ac_var'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011845if test `eval echo '${'$as_ac_var'}'` = yes; then
11846 cat >>confdefs.h <<_ACEOF
11847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848_ACEOF
11849 break
11850fi
11851done
11852
11853
11854
11855for ac_func in memcpy bcopy
11856do
11857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011858{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863 cat >conftest.$ac_ext <<_ACEOF
11864/* confdefs.h. */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h. */
11869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871#define $ac_func innocuous_$ac_func
11872
11873/* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11877
11878#ifdef __STDC__
11879# include <limits.h>
11880#else
11881# include <assert.h>
11882#endif
11883
11884#undef $ac_func
11885
Reid Spencera773bd52006-08-04 18:18:08 +000011886/* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011889#ifdef __cplusplus
11890extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892char $ac_func ();
11893/* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011896#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898#endif
11899
11900int
11901main ()
11902{
Reid Spencera773bd52006-08-04 18:18:08 +000011903return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011904 ;
11905 return 0;
11906}
11907_ACEOF
11908rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011909if { (ac_try="$ac_link"
11910case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926esac
11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11943else
11944 echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
Reid Spencera773bd52006-08-04 18:18:08 +000011947 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948fi
Reid Spencera773bd52006-08-04 18:18:08 +000011949
11950rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011951 conftest$ac_exeext conftest.$ac_ext
11952fi
Reid Spencera773bd52006-08-04 18:18:08 +000011953ac_res=`eval echo '${'$as_ac_var'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011956if test `eval echo '${'$as_ac_var'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959_ACEOF
11960 break
11961fi
11962done
11963
11964
11965
11966for ac_func in memmove strcmp
11967do
11968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973else
11974 cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h. */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h. */
11980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11982#define $ac_func innocuous_$ac_func
11983
11984/* System header to define __stub macros and hopefully few prototypes,
11985 which can conflict with char $ac_func (); below.
11986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987 <limits.h> exists even on freestanding compilers. */
11988
11989#ifdef __STDC__
11990# include <limits.h>
11991#else
11992# include <assert.h>
11993#endif
11994
11995#undef $ac_func
11996
Reid Spencera773bd52006-08-04 18:18:08 +000011997/* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000#ifdef __cplusplus
12001extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012003char $ac_func ();
12004/* The GNU C library defines this for functions which it implements
12005 to always fail with ENOSYS. Some functions are actually named
12006 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012007#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009#endif
12010
12011int
12012main ()
12013{
Reid Spencera773bd52006-08-04 18:18:08 +000012014return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012020if { (ac_try="$ac_link"
12021case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024esac
12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047esac
12048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12054else
12055 echo "$as_me: failed program was:" >&5
12056sed 's/^/| /' conftest.$ac_ext >&5
12057
Reid Spencera773bd52006-08-04 18:18:08 +000012058 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059fi
Reid Spencera773bd52006-08-04 18:18:08 +000012060
12061rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062 conftest$ac_exeext conftest.$ac_ext
12063fi
Reid Spencera773bd52006-08-04 18:18:08 +000012064ac_res=`eval echo '${'$as_ac_var'}'`
12065 { echo "$as_me:$LINENO: result: $ac_res" >&5
12066echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012067if test `eval echo '${'$as_ac_var'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070_ACEOF
12071
12072fi
12073done
12074
12075
12076
12077
12078for ac_func in closedir opendir readdir
12079do
12080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085else
12086 cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12094#define $ac_func innocuous_$ac_func
12095
12096/* System header to define __stub macros and hopefully few prototypes,
12097 which can conflict with char $ac_func (); below.
12098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099 <limits.h> exists even on freestanding compilers. */
12100
12101#ifdef __STDC__
12102# include <limits.h>
12103#else
12104# include <assert.h>
12105#endif
12106
12107#undef $ac_func
12108
Reid Spencera773bd52006-08-04 18:18:08 +000012109/* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012112#ifdef __cplusplus
12113extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012114#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115char $ac_func ();
12116/* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012119#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121#endif
12122
12123int
12124main ()
12125{
Reid Spencera773bd52006-08-04 18:18:08 +000012126return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012127 ;
12128 return 0;
12129}
12130_ACEOF
12131rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012132if { (ac_try="$ac_link"
12133case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136esac
12137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146 { (case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149esac
12150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 eval "$as_ac_var=yes"
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
Reid Spencera773bd52006-08-04 18:18:08 +000012170 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012171fi
Reid Spencera773bd52006-08-04 18:18:08 +000012172
12173rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012174 conftest$ac_exeext conftest.$ac_ext
12175fi
Reid Spencera773bd52006-08-04 18:18:08 +000012176ac_res=`eval echo '${'$as_ac_var'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179if test `eval echo '${'$as_ac_var'}'` = yes; then
12180 cat >>confdefs.h <<_ACEOF
12181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182_ACEOF
12183
12184fi
12185done
12186
12187
Reid Spencera773bd52006-08-04 18:18:08 +000012188# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012189if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012190 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012191 case $enableval in
12192 yes) enable_shared=yes ;;
12193 no) enable_shared=no ;;
12194 *)
12195 enable_shared=no
12196 # Look at the argument we got. We use all the common list separators.
12197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12198 for pkg in $enableval; do
12199 IFS="$lt_save_ifs"
12200 if test "X$pkg" = "X$p"; then
12201 enable_shared=yes
12202 fi
12203 done
12204 IFS="$lt_save_ifs"
12205 ;;
12206 esac
12207else
12208 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012209fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210
Reid Spencera773bd52006-08-04 18:18:08 +000012211
12212# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012214 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012215 case $enableval in
12216 yes) enable_static=yes ;;
12217 no) enable_static=no ;;
12218 *)
12219 enable_static=no
12220 # Look at the argument we got. We use all the common list separators.
12221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12222 for pkg in $enableval; do
12223 IFS="$lt_save_ifs"
12224 if test "X$pkg" = "X$p"; then
12225 enable_static=yes
12226 fi
12227 done
12228 IFS="$lt_save_ifs"
12229 ;;
12230 esac
12231else
12232 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012233fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234
Reid Spencera773bd52006-08-04 18:18:08 +000012235
12236# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012237if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012238 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012239 case $enableval in
12240 yes) enable_fast_install=yes ;;
12241 no) enable_fast_install=no ;;
12242 *)
12243 enable_fast_install=no
12244 # Look at the argument we got. We use all the common list separators.
12245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12246 for pkg in $enableval; do
12247 IFS="$lt_save_ifs"
12248 if test "X$pkg" = "X$p"; then
12249 enable_fast_install=yes
12250 fi
12251 done
12252 IFS="$lt_save_ifs"
12253 ;;
12254 esac
12255else
12256 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012257fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012258
Reid Spencera773bd52006-08-04 18:18:08 +000012259
12260{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12261echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012262if test "${lt_cv_path_SED+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264else
12265 # Loop through the user's path and test for sed and gsed.
12266# Then use that list of sed's as ones to test for truncation.
12267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268for as_dir in $PATH
12269do
12270 IFS=$as_save_IFS
12271 test -z "$as_dir" && as_dir=.
12272 for lt_ac_prog in sed gsed; do
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12275 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12276 fi
12277 done
12278 done
12279done
12280lt_ac_max=0
12281lt_ac_count=0
12282# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12283# along with /bin/sed that truncates output.
12284for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012285 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286 cat /dev/null > conftest.in
12287 lt_ac_count=0
12288 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12289 # Check for GNU sed and select it if it is found.
12290 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12291 lt_cv_path_SED=$lt_ac_sed
12292 break
12293 fi
12294 while true; do
12295 cat conftest.in conftest.in >conftest.tmp
12296 mv conftest.tmp conftest.in
12297 cp conftest.in conftest.nl
12298 echo >>conftest.nl
12299 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12300 cmp -s conftest.out conftest.nl || break
12301 # 10000 chars as input seems more than enough
12302 test $lt_ac_count -gt 10 && break
12303 lt_ac_count=`expr $lt_ac_count + 1`
12304 if test $lt_ac_count -gt $lt_ac_max; then
12305 lt_ac_max=$lt_ac_count
12306 lt_cv_path_SED=$lt_ac_sed
12307 fi
12308 done
12309done
12310
12311fi
12312
12313SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012314{ echo "$as_me:$LINENO: result: $SED" >&5
12315echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012316
12317
Reid Spencera773bd52006-08-04 18:18:08 +000012318# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012319if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012321else
12322 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012323fi
12324
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012325ac_prog=ld
12326if test "$GCC" = yes; then
12327 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012328 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12329echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012330 case $host in
12331 *-*-mingw*)
12332 # gcc leaves a trailing carriage return which upsets mingw
12333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12334 *)
12335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12336 esac
12337 case $ac_prog in
12338 # Accept absolute paths.
12339 [\\/]* | ?:[\\/]*)
12340 re_direlt='/[^/][^/]*/\.\./'
12341 # Canonicalize the pathname of ld
12342 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12343 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12344 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12345 done
12346 test -z "$LD" && LD="$ac_prog"
12347 ;;
12348 "")
12349 # If it fails, then pretend we aren't using GCC.
12350 ac_prog=ld
12351 ;;
12352 *)
12353 # If it is relative, then search for the first ld in PATH.
12354 with_gnu_ld=unknown
12355 ;;
12356 esac
12357elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012358 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12359echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360else
Reid Spencera773bd52006-08-04 18:18:08 +000012361 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12362echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012363fi
12364if test "${lt_cv_path_LD+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12366else
12367 if test -z "$LD"; then
12368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12369 for ac_dir in $PATH; do
12370 IFS="$lt_save_ifs"
12371 test -z "$ac_dir" && ac_dir=.
12372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12373 lt_cv_path_LD="$ac_dir/$ac_prog"
12374 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012375 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012376 # Break only if it was the GNU/non-GNU ld that we prefer.
12377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12378 *GNU* | *'with BFD'*)
12379 test "$with_gnu_ld" != no && break
12380 ;;
12381 *)
12382 test "$with_gnu_ld" != yes && break
12383 ;;
12384 esac
12385 fi
12386 done
12387 IFS="$lt_save_ifs"
12388else
12389 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12390fi
12391fi
12392
12393LD="$lt_cv_path_LD"
12394if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012395 { echo "$as_me:$LINENO: result: $LD" >&5
12396echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012397else
Reid Spencera773bd52006-08-04 18:18:08 +000012398 { echo "$as_me:$LINENO: result: no" >&5
12399echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012400fi
12401test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12402echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12403 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012404{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12405echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012406if test "${lt_cv_prog_gnu_ld+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408else
Reid Spencera773bd52006-08-04 18:18:08 +000012409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012410case `$LD -v 2>&1 </dev/null` in
12411*GNU* | *'with BFD'*)
12412 lt_cv_prog_gnu_ld=yes
12413 ;;
12414*)
12415 lt_cv_prog_gnu_ld=no
12416 ;;
12417esac
12418fi
Reid Spencera773bd52006-08-04 18:18:08 +000012419{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12420echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012421with_gnu_ld=$lt_cv_prog_gnu_ld
12422
12423
Reid Spencera773bd52006-08-04 18:18:08 +000012424{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12425echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426if test "${lt_cv_ld_reload_flag+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429 lt_cv_ld_reload_flag='-r'
12430fi
Reid Spencera773bd52006-08-04 18:18:08 +000012431{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12432echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012433reload_flag=$lt_cv_ld_reload_flag
12434case $reload_flag in
12435"" | " "*) ;;
12436*) reload_flag=" $reload_flag" ;;
12437esac
12438reload_cmds='$LD$reload_flag -o $output$reload_objs'
12439case $host_os in
12440 darwin*)
12441 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012442 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012443 else
12444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12445 fi
12446 ;;
12447esac
12448
Reid Spencera773bd52006-08-04 18:18:08 +000012449{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12450echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012451if test "${lt_cv_deplibs_check_method+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453else
12454 lt_cv_file_magic_cmd='$MAGIC_CMD'
12455lt_cv_file_magic_test_file=
12456lt_cv_deplibs_check_method='unknown'
12457# Need to set the preceding variable on all platforms that support
12458# interlibrary dependencies.
12459# 'none' -- dependencies not supported.
12460# `unknown' -- same as none, but documents that we really don't know.
12461# 'pass_all' -- all dependencies passed with no checks.
12462# 'test_compile' -- check by making test program.
12463# 'file_magic [[regex]]' -- check by looking for files in library path
12464# which responds to the $file_magic_cmd with a given extended regex.
12465# If you have `file' or equivalent on your system and you're not sure
12466# whether `pass_all' will *always* work, you probably want this one.
12467
12468case $host_os in
12469aix4* | aix5*)
12470 lt_cv_deplibs_check_method=pass_all
12471 ;;
12472
12473beos*)
12474 lt_cv_deplibs_check_method=pass_all
12475 ;;
12476
12477bsdi[45]*)
12478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12479 lt_cv_file_magic_cmd='/usr/bin/file -L'
12480 lt_cv_file_magic_test_file=/shlib/libc.so
12481 ;;
12482
12483cygwin*)
12484 # func_win32_libid is a shell function defined in ltmain.sh
12485 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12486 lt_cv_file_magic_cmd='func_win32_libid'
12487 ;;
12488
12489mingw* | pw32*)
12490 # Base MSYS/MinGW do not provide the 'file' command needed by
12491 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12492 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12493 lt_cv_file_magic_cmd='$OBJDUMP -f'
12494 ;;
12495
12496darwin* | rhapsody*)
12497 lt_cv_deplibs_check_method=pass_all
12498 ;;
12499
Reid Spencera773bd52006-08-04 18:18:08 +000012500freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012501 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12502 case $host_cpu in
12503 i*86 )
12504 # Not sure whether the presence of OpenBSD here was a mistake.
12505 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012506 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 +000012507 lt_cv_file_magic_cmd=/usr/bin/file
12508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12509 ;;
12510 esac
12511 else
12512 lt_cv_deplibs_check_method=pass_all
12513 fi
12514 ;;
12515
12516gnu*)
12517 lt_cv_deplibs_check_method=pass_all
12518 ;;
12519
12520hpux10.20* | hpux11*)
12521 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012522 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012523 ia64*)
12524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12525 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12526 ;;
12527 hppa*64*)
12528 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]'
12529 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12530 ;;
12531 *)
12532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12534 ;;
12535 esac
12536 ;;
12537
Reid Spencera773bd52006-08-04 18:18:08 +000012538interix3*)
12539 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12541 ;;
12542
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012543irix5* | irix6* | nonstopux*)
12544 case $LD in
12545 *-32|*"-32 ") libmagic=32-bit;;
12546 *-n32|*"-n32 ") libmagic=N32;;
12547 *-64|*"-64 ") libmagic=64-bit;;
12548 *) libmagic=never-match;;
12549 esac
12550 lt_cv_deplibs_check_method=pass_all
12551 ;;
12552
12553# This must be Linux ELF.
12554linux*)
12555 lt_cv_deplibs_check_method=pass_all
12556 ;;
12557
12558netbsd*)
12559 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12561 else
12562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12563 fi
12564 ;;
12565
12566newos6*)
12567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12568 lt_cv_file_magic_cmd=/usr/bin/file
12569 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12570 ;;
12571
12572nto-qnx*)
12573 lt_cv_deplibs_check_method=unknown
12574 ;;
12575
12576openbsd*)
12577 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12579 else
12580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12581 fi
12582 ;;
12583
12584osf3* | osf4* | osf5*)
12585 lt_cv_deplibs_check_method=pass_all
12586 ;;
12587
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588solaris*)
12589 lt_cv_deplibs_check_method=pass_all
12590 ;;
12591
Reid Spencera773bd52006-08-04 18:18:08 +000012592sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012593 case $host_vendor in
12594 motorola)
12595 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]'
12596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12597 ;;
12598 ncr)
12599 lt_cv_deplibs_check_method=pass_all
12600 ;;
12601 sequent)
12602 lt_cv_file_magic_cmd='/bin/file'
12603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12604 ;;
12605 sni)
12606 lt_cv_file_magic_cmd='/bin/file'
12607 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12608 lt_cv_file_magic_test_file=/lib/libc.so
12609 ;;
12610 siemens)
12611 lt_cv_deplibs_check_method=pass_all
12612 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012613 pc)
12614 lt_cv_deplibs_check_method=pass_all
12615 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012616 esac
12617 ;;
12618
Reid Spencera773bd52006-08-04 18:18:08 +000012619sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012620 lt_cv_deplibs_check_method=pass_all
12621 ;;
12622esac
12623
12624fi
Reid Spencera773bd52006-08-04 18:18:08 +000012625{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12626echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012627file_magic_cmd=$lt_cv_file_magic_cmd
12628deplibs_check_method=$lt_cv_deplibs_check_method
12629test -z "$deplibs_check_method" && deplibs_check_method=unknown
12630
12631
12632
12633# If no C compiler was specified, use CC.
12634LTCC=${LTCC-"$CC"}
12635
Reid Spencera773bd52006-08-04 18:18:08 +000012636# If no C compiler flags were specified, use CFLAGS.
12637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12638
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012639# Allow CC to be a program name with arguments.
12640compiler=$CC
12641
Reid Spencera773bd52006-08-04 18:18:08 +000012642# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012643if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012644 enableval=$enable_libtool_lock;
12645fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012646
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012647test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12648
12649# Some flags need to be propagated to the compiler or linker for good
12650# libtool support.
12651case $host in
12652ia64-*-hpux*)
12653 # Find out which ABI we are using.
12654 echo 'int i;' > conftest.$ac_ext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656 (eval $ac_compile) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; then
12660 case `/usr/bin/file conftest.$ac_objext` in
12661 *ELF-32*)
12662 HPUX_IA64_MODE="32"
12663 ;;
12664 *ELF-64*)
12665 HPUX_IA64_MODE="64"
12666 ;;
12667 esac
12668 fi
12669 rm -rf conftest*
12670 ;;
12671*-*-irix6*)
12672 # Find out which ABI we are using.
Gordon Henriksenc0efff82007-10-02 09:50:32 +000012673 echo '#line 12673 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; then
12679 if test "$lt_cv_prog_gnu_ld" = yes; then
12680 case `/usr/bin/file conftest.$ac_objext` in
12681 *32-bit*)
12682 LD="${LD-ld} -melf32bsmip"
12683 ;;
12684 *N32*)
12685 LD="${LD-ld} -melf32bmipn32"
12686 ;;
12687 *64-bit*)
12688 LD="${LD-ld} -melf64bmip"
12689 ;;
12690 esac
12691 else
12692 case `/usr/bin/file conftest.$ac_objext` in
12693 *32-bit*)
12694 LD="${LD-ld} -32"
12695 ;;
12696 *N32*)
12697 LD="${LD-ld} -n32"
12698 ;;
12699 *64-bit*)
12700 LD="${LD-ld} -64"
12701 ;;
12702 esac
12703 fi
12704 fi
12705 rm -rf conftest*
12706 ;;
12707
12708x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12709 # Find out which ABI we are using.
12710 echo 'int i;' > conftest.$ac_ext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012716 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012717 *32-bit*)
12718 case $host in
12719 x86_64-*linux*)
12720 LD="${LD-ld} -m elf_i386"
12721 ;;
12722 ppc64-*linux*|powerpc64-*linux*)
12723 LD="${LD-ld} -m elf32ppclinux"
12724 ;;
12725 s390x-*linux*)
12726 LD="${LD-ld} -m elf_s390"
12727 ;;
12728 sparc64-*linux*)
12729 LD="${LD-ld} -m elf32_sparc"
12730 ;;
12731 esac
12732 ;;
12733 *64-bit*)
12734 case $host in
12735 x86_64-*linux*)
12736 LD="${LD-ld} -m elf_x86_64"
12737 ;;
12738 ppc*-*linux*|powerpc*-*linux*)
12739 LD="${LD-ld} -m elf64ppc"
12740 ;;
12741 s390*-*linux*)
12742 LD="${LD-ld} -m elf64_s390"
12743 ;;
12744 sparc*-*linux*)
12745 LD="${LD-ld} -m elf64_sparc"
12746 ;;
12747 esac
12748 ;;
12749 esac
12750 fi
12751 rm -rf conftest*
12752 ;;
12753
12754*-*-sco3.2v5*)
12755 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12756 SAVE_CFLAGS="$CFLAGS"
12757 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012758 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12759echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012760if test "${lt_cv_cc_needs_belf+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762else
12763 ac_ext=c
12764ac_cpp='$CPP $CPPFLAGS'
12765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767ac_compiler_gnu=$ac_cv_c_compiler_gnu
12768
12769 cat >conftest.$ac_ext <<_ACEOF
12770/* confdefs.h. */
12771_ACEOF
12772cat confdefs.h >>conftest.$ac_ext
12773cat >>conftest.$ac_ext <<_ACEOF
12774/* end confdefs.h. */
12775
Reid Spencera773bd52006-08-04 18:18:08 +000012776int
12777main ()
12778{
12779
12780 ;
12781 return 0;
12782}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012783_ACEOF
12784rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012785if { (ac_try="$ac_link"
12786case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789esac
12790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012809 { (case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812esac
12813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 lt_cv_cc_needs_belf=yes
12819else
12820 echo "$as_me: failed program was:" >&5
12821sed 's/^/| /' conftest.$ac_ext >&5
12822
Reid Spencera773bd52006-08-04 18:18:08 +000012823 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012824fi
Reid Spencera773bd52006-08-04 18:18:08 +000012825
12826rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827 conftest$ac_exeext conftest.$ac_ext
12828 ac_ext=c
12829ac_cpp='$CPP $CPPFLAGS'
12830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12832ac_compiler_gnu=$ac_cv_c_compiler_gnu
12833
12834fi
Reid Spencera773bd52006-08-04 18:18:08 +000012835{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12836echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12839 CFLAGS="$SAVE_CFLAGS"
12840 fi
12841 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012842sparc*-*solaris*)
12843 # Find out which ABI we are using.
12844 echo 'int i;' > conftest.$ac_ext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846 (eval $ac_compile) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; then
12850 case `/usr/bin/file conftest.o` in
12851 *64-bit*)
12852 case $lt_cv_prog_gnu_ld in
12853 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12854 *) LD="${LD-ld} -64" ;;
12855 esac
12856 ;;
12857 esac
12858 fi
12859 rm -rf conftest*
12860 ;;
12861
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012862
12863esac
12864
12865need_locks="$enable_libtool_lock"
12866
12867
Reid Spencer2706f8c2004-09-19 23:53:36 +000012868
12869
12870if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12871 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12872 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012873 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012874ac_cpp='$CXXCPP $CPPFLAGS'
12875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012878{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12879echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012880if test -z "$CXXCPP"; then
12881 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
John Criswell47fdd832003-07-14 16:52:07 +000012884 # Double quotes because CXXCPP needs to be expanded
12885 for CXXCPP in "$CXX -E" "/lib/cpp"
12886 do
12887 ac_preproc_ok=false
12888for ac_cxx_preproc_warn_flag in '' yes
12889do
12890 # Use a header file that comes with gcc, so configuring glibc
12891 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12893 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012894 # On the NeXT, cc -E runs the code through the compiler's parser,
12895 # not just through cpp. "Syntax error" is here to catch this case.
12896 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012897/* confdefs.h. */
12898_ACEOF
12899cat confdefs.h >>conftest.$ac_ext
12900cat >>conftest.$ac_ext <<_ACEOF
12901/* end confdefs.h. */
12902#ifdef __STDC__
12903# include <limits.h>
12904#else
12905# include <assert.h>
12906#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012907 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012908_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012909if { (ac_try="$ac_cpp conftest.$ac_ext"
12910case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12913esac
12914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012916 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012917 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } >/dev/null; then
12922 if test -s conftest.err; then
12923 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012924 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012925 else
John Criswell47fdd832003-07-14 16:52:07 +000012926 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012927 fi
John Criswell47fdd832003-07-14 16:52:07 +000012928else
12929 ac_cpp_err=yes
12930fi
12931if test -z "$ac_cpp_err"; then
12932 :
12933else
12934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012935sed 's/^/| /' conftest.$ac_ext >&5
12936
John Criswell47fdd832003-07-14 16:52:07 +000012937 # Broken: fails on valid input.
12938continue
12939fi
Reid Spencera773bd52006-08-04 18:18:08 +000012940
John Criswell47fdd832003-07-14 16:52:07 +000012941rm -f conftest.err conftest.$ac_ext
12942
Reid Spencera773bd52006-08-04 18:18:08 +000012943 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012944 # can be detected and how.
12945 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012951#include <ac_nonexistent.h>
12952_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012953if { (ac_try="$ac_cpp conftest.$ac_ext"
12954case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012960 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012961 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } >/dev/null; then
12966 if test -s conftest.err; then
12967 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012969 else
12970 ac_cpp_err=
12971 fi
12972else
12973 ac_cpp_err=yes
12974fi
12975if test -z "$ac_cpp_err"; then
12976 # Broken: success on invalid input.
12977continue
12978else
12979 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012980sed 's/^/| /' conftest.$ac_ext >&5
12981
John Criswell47fdd832003-07-14 16:52:07 +000012982 # Passes both tests.
12983ac_preproc_ok=:
12984break
12985fi
Reid Spencera773bd52006-08-04 18:18:08 +000012986
John Criswell47fdd832003-07-14 16:52:07 +000012987rm -f conftest.err conftest.$ac_ext
12988
12989done
12990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12991rm -f conftest.err conftest.$ac_ext
12992if $ac_preproc_ok; then
12993 break
John Criswell7a73b802003-06-30 21:59:07 +000012994fi
12995
John Criswell47fdd832003-07-14 16:52:07 +000012996 done
12997 ac_cv_prog_CXXCPP=$CXXCPP
12998
12999fi
13000 CXXCPP=$ac_cv_prog_CXXCPP
13001else
13002 ac_cv_prog_CXXCPP=$CXXCPP
13003fi
Reid Spencera773bd52006-08-04 18:18:08 +000013004{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13005echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013006ac_preproc_ok=false
13007for ac_cxx_preproc_warn_flag in '' yes
13008do
13009 # Use a header file that comes with gcc, so configuring glibc
13010 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13012 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013013 # On the NeXT, cc -E runs the code through the compiler's parser,
13014 # not just through cpp. "Syntax error" is here to catch this case.
13015 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021#ifdef __STDC__
13022# include <limits.h>
13023#else
13024# include <assert.h>
13025#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013026 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013027_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013028if { (ac_try="$ac_cpp conftest.$ac_ext"
13029case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13032esac
13033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013035 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013036 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013037 rm -f conftest.er1
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } >/dev/null; then
13041 if test -s conftest.err; then
13042 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013043 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013044 else
13045 ac_cpp_err=
13046 fi
13047else
13048 ac_cpp_err=yes
13049fi
13050if test -z "$ac_cpp_err"; then
13051 :
13052else
13053 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013054sed 's/^/| /' conftest.$ac_ext >&5
13055
John Criswell47fdd832003-07-14 16:52:07 +000013056 # Broken: fails on valid input.
13057continue
13058fi
Reid Spencera773bd52006-08-04 18:18:08 +000013059
John Criswell47fdd832003-07-14 16:52:07 +000013060rm -f conftest.err conftest.$ac_ext
13061
Reid Spencera773bd52006-08-04 18:18:08 +000013062 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013063 # can be detected and how.
13064 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013065/* confdefs.h. */
13066_ACEOF
13067cat confdefs.h >>conftest.$ac_ext
13068cat >>conftest.$ac_ext <<_ACEOF
13069/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013070#include <ac_nonexistent.h>
13071_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013072if { (ac_try="$ac_cpp conftest.$ac_ext"
13073case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076esac
13077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013079 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013080 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } >/dev/null; then
13085 if test -s conftest.err; then
13086 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013088 else
13089 ac_cpp_err=
13090 fi
13091else
13092 ac_cpp_err=yes
13093fi
13094if test -z "$ac_cpp_err"; then
13095 # Broken: success on invalid input.
13096continue
13097else
13098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013099sed 's/^/| /' conftest.$ac_ext >&5
13100
John Criswell47fdd832003-07-14 16:52:07 +000013101 # Passes both tests.
13102ac_preproc_ok=:
13103break
13104fi
Reid Spencera773bd52006-08-04 18:18:08 +000013105
John Criswell47fdd832003-07-14 16:52:07 +000013106rm -f conftest.err conftest.$ac_ext
13107
13108done
13109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13110rm -f conftest.err conftest.$ac_ext
13111if $ac_preproc_ok; then
13112 :
13113else
John Criswell0c38eaf2003-09-10 15:17:25 +000013114 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13115See \`config.log' for more details." >&5
13116echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13117See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013118 { (exit 1); exit 1; }; }
13119fi
13120
Reid Spencera773bd52006-08-04 18:18:08 +000013121ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013122ac_cpp='$CXXCPP $CPPFLAGS'
13123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13126
Reid Spencer2706f8c2004-09-19 23:53:36 +000013127fi
13128
John Criswell47fdd832003-07-14 16:52:07 +000013129
13130ac_ext=f
13131ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13134if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013135 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 +000013136 do
13137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13138set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013141if test "${ac_cv_prog_F77+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143else
13144 if test -n "$F77"; then
13145 ac_cv_prog_F77="$F77" # Let the user override the test.
13146else
13147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148for as_dir in $PATH
13149do
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013153 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 +000013154 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13157 fi
13158done
13159done
Reid Spencera773bd52006-08-04 18:18:08 +000013160IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013161
13162fi
13163fi
13164F77=$ac_cv_prog_F77
13165if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013166 { echo "$as_me:$LINENO: result: $F77" >&5
13167echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013168else
Reid Spencera773bd52006-08-04 18:18:08 +000013169 { echo "$as_me:$LINENO: result: no" >&5
13170echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013171fi
13172
Reid Spencera773bd52006-08-04 18:18:08 +000013173
John Criswell47fdd832003-07-14 16:52:07 +000013174 test -n "$F77" && break
13175 done
13176fi
13177if test -z "$F77"; then
13178 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000013179 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 +000013180do
13181 # Extract the first word of "$ac_prog", so it can be a program name with args.
13182set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013185if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188 if test -n "$ac_ct_F77"; then
13189 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13190else
13191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192for as_dir in $PATH
13193do
13194 IFS=$as_save_IFS
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013197 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 +000013198 ac_cv_prog_ac_ct_F77="$ac_prog"
13199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13200 break 2
13201 fi
13202done
13203done
Reid Spencera773bd52006-08-04 18:18:08 +000013204IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013205
13206fi
13207fi
13208ac_ct_F77=$ac_cv_prog_ac_ct_F77
13209if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013210 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13211echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013212else
Reid Spencera773bd52006-08-04 18:18:08 +000013213 { echo "$as_me:$LINENO: result: no" >&5
13214echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013215fi
13216
Reid Spencera773bd52006-08-04 18:18:08 +000013217
John Criswell47fdd832003-07-14 16:52:07 +000013218 test -n "$ac_ct_F77" && break
13219done
13220
Reid Spencera773bd52006-08-04 18:18:08 +000013221 if test "x$ac_ct_F77" = x; then
13222 F77=""
13223 else
13224 case $cross_compiling:$ac_tool_warned in
13225yes:)
13226{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13227whose name does not start with the host triplet. If you think this
13228configuration is useful to you, please write to autoconf@gnu.org." >&5
13229echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13230whose name does not start with the host triplet. If you think this
13231configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13232ac_tool_warned=yes ;;
13233esac
13234 F77=$ac_ct_F77
13235 fi
John Criswell47fdd832003-07-14 16:52:07 +000013236fi
13237
13238
13239# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013240echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013241ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013242{ (ac_try="$ac_compiler --version >&5"
13243case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13246esac
13247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013252{ (ac_try="$ac_compiler -v >&5"
13253case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256esac
13257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013262{ (ac_try="$ac_compiler -V >&5"
13263case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266esac
13267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013272rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013273
13274# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013275# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013276ac_save_ext=$ac_ext
13277ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013278{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13279echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013280if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282else
13283 cat >conftest.$ac_ext <<_ACEOF
13284 program main
13285#ifndef __GNUC__
13286 choke me
13287#endif
13288
13289 end
13290_ACEOF
13291rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013292if { (ac_try="$ac_compile"
13293case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013299 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013305 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13306 { (case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319esac
13320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_compiler_gnu=yes
13326else
13327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013328sed 's/^/| /' conftest.$ac_ext >&5
13329
Reid Spencera773bd52006-08-04 18:18:08 +000013330 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013331fi
Reid Spencera773bd52006-08-04 18:18:08 +000013332
13333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013334ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13335
13336fi
Reid Spencera773bd52006-08-04 18:18:08 +000013337{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13338echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013339ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013340ac_test_FFLAGS=${FFLAGS+set}
13341ac_save_FFLAGS=$FFLAGS
13342FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013343{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13344echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013345if test "${ac_cv_prog_f77_g+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
13348 FFLAGS=-g
13349cat >conftest.$ac_ext <<_ACEOF
13350 program main
13351
13352 end
13353_ACEOF
13354rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013355if { (ac_try="$ac_compile"
13356case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013362 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013368 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13369 { (case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372esac
13373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; } &&
13378 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_prog_f77_g=yes
13389else
13390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013391sed 's/^/| /' conftest.$ac_ext >&5
13392
Reid Spencera773bd52006-08-04 18:18:08 +000013393 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013394fi
Reid Spencera773bd52006-08-04 18:18:08 +000013395
13396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013397
13398fi
Reid Spencera773bd52006-08-04 18:18:08 +000013399{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13400echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013401if test "$ac_test_FFLAGS" = set; then
13402 FFLAGS=$ac_save_FFLAGS
13403elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013404 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013405 FFLAGS="-g -O2"
13406 else
13407 FFLAGS="-g"
13408 fi
13409else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013410 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013411 FFLAGS="-O2"
13412 else
13413 FFLAGS=
13414 fi
13415fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013416
13417G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013418ac_ext=c
13419ac_cpp='$CPP $CPPFLAGS'
13420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13422ac_compiler_gnu=$ac_cv_c_compiler_gnu
13423
13424
13425
13426# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13427
13428# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013429{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13430echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013431if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433else
13434 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013435 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013436
13437 case $build_os in
13438 msdosdjgpp*)
13439 # On DJGPP, this test can blow up pretty badly due to problems in libc
13440 # (any single argument exceeding 2000 bytes causes a buffer overrun
13441 # during glob expansion). Even if it were fixed, the result of this
13442 # check would be larger than it should be.
13443 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13444 ;;
13445
13446 gnu*)
13447 # Under GNU Hurd, this test is not required because there is
13448 # no limit to the length of command line arguments.
13449 # Libtool will interpret -1 as no limit whatsoever
13450 lt_cv_sys_max_cmd_len=-1;
13451 ;;
13452
13453 cygwin* | mingw*)
13454 # On Win9x/ME, this test blows up -- it succeeds, but takes
13455 # about 5 minutes as the teststring grows exponentially.
13456 # Worse, since 9x/ME are not pre-emptively multitasking,
13457 # you end up with a "frozen" computer, even though with patience
13458 # the test eventually succeeds (with a max line length of 256k).
13459 # Instead, let's just punt: use the minimum linelength reported by
13460 # all of the supported platforms: 8192 (on NT/2K/XP).
13461 lt_cv_sys_max_cmd_len=8192;
13462 ;;
13463
Reid Spencer2706f8c2004-09-19 23:53:36 +000013464 amigaos*)
13465 # On AmigaOS with pdksh, this test takes hours, literally.
13466 # So we just punt and use a minimum line length of 8192.
13467 lt_cv_sys_max_cmd_len=8192;
13468 ;;
13469
Reid Spencera773bd52006-08-04 18:18:08 +000013470 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013471 # This has been around since 386BSD, at least. Likely further.
13472 if test -x /sbin/sysctl; then
13473 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13474 elif test -x /usr/sbin/sysctl; then
13475 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13476 else
Reid Spencera773bd52006-08-04 18:18:08 +000013477 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013478 fi
13479 # And add a safety zone
13480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013482 ;;
13483
Reid Spencera773bd52006-08-04 18:18:08 +000013484 interix*)
13485 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13486 lt_cv_sys_max_cmd_len=196608
13487 ;;
13488
13489 osf*)
13490 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13491 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13492 # nice to cause kernel panics so lets avoid the loop below.
13493 # First set a reasonable default.
13494 lt_cv_sys_max_cmd_len=16384
13495 #
13496 if test -x /sbin/sysconfig; then
13497 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13498 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13499 esac
13500 fi
13501 ;;
13502 sco3.2v5*)
13503 lt_cv_sys_max_cmd_len=102400
13504 ;;
13505 sysv5* | sco5v6* | sysv4.2uw2*)
13506 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13507 if test -n "$kargmax"; then
13508 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13509 else
13510 lt_cv_sys_max_cmd_len=32768
13511 fi
13512 ;;
13513 *)
John Criswell47fdd832003-07-14 16:52:07 +000013514 # If test is not a shell built-in, we'll probably end up computing a
13515 # maximum length that is only half of the actual maximum length, but
13516 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13518 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13519 = "XX$teststring") >/dev/null 2>&1 &&
13520 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013521 lt_cv_sys_max_cmd_len=$new_result &&
13522 test $i != 17 # 1/2 MB should be enough
13523 do
13524 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013525 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013526 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013527 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013528 # Add a significant safety factor because C++ compilers can tack on massive
13529 # amounts of additional arguments before passing them to the linker.
13530 # It appears as though 1/2 is a usable value.
13531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13532 ;;
13533 esac
13534
13535fi
13536
13537if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013538 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13539echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013540else
Reid Spencera773bd52006-08-04 18:18:08 +000013541 { echo "$as_me:$LINENO: result: none" >&5
13542echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013543fi
13544
13545
13546
13547
13548# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013549{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13550echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013551if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553else
13554
13555# These are sane defaults that work on at least a few old systems.
13556# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13557
13558# Character class describing NM global symbol codes.
13559symcode='[BCDEGRST]'
13560
13561# Regexp to match symbols that can be accessed directly from C.
13562sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13563
John Criswell47fdd832003-07-14 16:52:07 +000013564# Transform an extracted symbol line into a proper C declaration
13565lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13566
13567# Transform an extracted symbol line into symbol name and symbol address
13568lt_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'"
13569
13570# Define system-specific variables.
13571case $host_os in
13572aix*)
13573 symcode='[BCDT]'
13574 ;;
13575cygwin* | mingw* | pw32*)
13576 symcode='[ABCDGISTW]'
13577 ;;
13578hpux*) # Its linker distinguishes data from code symbols
13579 if test "$host_cpu" = ia64; then
13580 symcode='[ABCDEGRST]'
13581 fi
13582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13583 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'"
13584 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013585linux*)
13586 if test "$host_cpu" = ia64; then
13587 symcode='[ABCDGIRSTW]'
13588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13589 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'"
13590 fi
13591 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013592irix* | nonstopux*)
13593 symcode='[BCDEGRST]'
13594 ;;
13595osf*)
13596 symcode='[BCDEGQRST]'
13597 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013598solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013599 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013600 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013601sco3.2v5*)
13602 symcode='[DT]'
13603 ;;
13604sysv4.2uw2*)
13605 symcode='[DT]'
13606 ;;
13607sysv5* | sco5v6* | unixware* | OpenUNIX*)
13608 symcode='[ABDT]'
13609 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013610sysv4)
13611 symcode='[DFNSTU]'
13612 ;;
13613esac
13614
13615# Handle CRLF in mingw tool chain
13616opt_cr=
13617case $build_os in
13618mingw*)
13619 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13620 ;;
13621esac
13622
13623# If we're using GNU nm, then use its standard symbol codes.
13624case `$NM -V 2>&1` in
13625*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013626 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013627esac
13628
13629# Try without a prefix undercore, then with it.
13630for ac_symprfx in "" "_"; do
13631
Reid Spencera773bd52006-08-04 18:18:08 +000013632 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13633 symxfrm="\\1 $ac_symprfx\\2 \\2"
13634
John Criswell47fdd832003-07-14 16:52:07 +000013635 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013636 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 +000013637
13638 # Check to see that the pipe works correctly.
13639 pipe_works=no
13640
13641 rm -f conftest*
13642 cat > conftest.$ac_ext <<EOF
13643#ifdef __cplusplus
13644extern "C" {
13645#endif
13646char nm_test_var;
13647void nm_test_func(){}
13648#ifdef __cplusplus
13649}
13650#endif
13651int main(){nm_test_var='a';nm_test_func();return(0);}
13652EOF
13653
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; then
13659 # Now try to grab the symbols.
13660 nlist=conftest.nm
13661 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13662 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } && test -s "$nlist"; then
13666 # Try sorting and uniquifying the output.
13667 if sort "$nlist" | uniq > "$nlist"T; then
13668 mv -f "$nlist"T "$nlist"
13669 else
13670 rm -f "$nlist"T
13671 fi
13672
13673 # Make sure that we snagged all the symbols we need.
13674 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13675 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13676 cat <<EOF > conftest.$ac_ext
13677#ifdef __cplusplus
13678extern "C" {
13679#endif
13680
13681EOF
13682 # Now generate the symbol file.
13683 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13684
13685 cat <<EOF >> conftest.$ac_ext
13686#if defined (__STDC__) && __STDC__
13687# define lt_ptr_t void *
13688#else
13689# define lt_ptr_t char *
13690# define const
13691#endif
13692
13693/* The mapping between symbol names and symbols. */
13694const struct {
13695 const char *name;
13696 lt_ptr_t address;
13697}
13698lt_preloaded_symbols[] =
13699{
13700EOF
13701 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13702 cat <<\EOF >> conftest.$ac_ext
13703 {0, (lt_ptr_t) 0}
13704};
13705
13706#ifdef __cplusplus
13707}
13708#endif
13709EOF
13710 # Now try linking the two files.
13711 mv conftest.$ac_objext conftstm.$ac_objext
13712 lt_save_LIBS="$LIBS"
13713 lt_save_CFLAGS="$CFLAGS"
13714 LIBS="conftstm.$ac_objext"
13715 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717 (eval $ac_link) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13721 pipe_works=yes
13722 fi
13723 LIBS="$lt_save_LIBS"
13724 CFLAGS="$lt_save_CFLAGS"
13725 else
13726 echo "cannot find nm_test_func in $nlist" >&5
13727 fi
13728 else
13729 echo "cannot find nm_test_var in $nlist" >&5
13730 fi
13731 else
13732 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13733 fi
13734 else
13735 echo "$progname: failed program was:" >&5
13736 cat conftest.$ac_ext >&5
13737 fi
13738 rm -f conftest* conftst*
13739
13740 # Do not use the global_symbol_pipe unless it works.
13741 if test "$pipe_works" = yes; then
13742 break
13743 else
13744 lt_cv_sys_global_symbol_pipe=
13745 fi
13746done
13747
13748fi
13749
13750if test -z "$lt_cv_sys_global_symbol_pipe"; then
13751 lt_cv_sys_global_symbol_to_cdecl=
13752fi
13753if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013754 { echo "$as_me:$LINENO: result: failed" >&5
13755echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013756else
Reid Spencera773bd52006-08-04 18:18:08 +000013757 { echo "$as_me:$LINENO: result: ok" >&5
13758echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013759fi
13760
Reid Spencera773bd52006-08-04 18:18:08 +000013761{ echo "$as_me:$LINENO: checking for objdir" >&5
13762echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013763if test "${lt_cv_objdir+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13765else
13766 rm -f .libs 2>/dev/null
13767mkdir .libs 2>/dev/null
13768if test -d .libs; then
13769 lt_cv_objdir=.libs
13770else
13771 # MS-DOS does not allow filenames that begin with a dot.
13772 lt_cv_objdir=_libs
13773fi
13774rmdir .libs 2>/dev/null
13775fi
Reid Spencera773bd52006-08-04 18:18:08 +000013776{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13777echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013778objdir=$lt_cv_objdir
13779
13780
13781
13782
13783
13784case $host_os in
13785aix3*)
13786 # AIX sometimes has problems with the GCC collect2 program. For some
13787 # reason, if we set the COLLECT_NAMES environment variable, the problems
13788 # vanish in a puff of smoke.
13789 if test "X${COLLECT_NAMES+set}" != Xset; then
13790 COLLECT_NAMES=
13791 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013792 fi
13793 ;;
13794esac
13795
John Criswell47fdd832003-07-14 16:52:07 +000013796# Sed substitution that helps us do robust quoting. It backslashifies
13797# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013798Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013799sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13800
13801# Same as above, but do not quote variable references.
13802double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13803
13804# Sed substitution to delay expansion of an escaped shell variable in a
13805# double_quote_subst'ed string.
13806delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13807
13808# Sed substitution to avoid accidental globbing in evaled expressions
13809no_glob_subst='s/\*/\\\*/g'
13810
13811# Constants:
13812rm="rm -f"
13813
13814# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013815default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013816can_build_shared=yes
13817
Reid Spencera773bd52006-08-04 18:18:08 +000013818# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013819# which needs '.lib').
13820libext=a
13821ltmain="$ac_aux_dir/ltmain.sh"
13822ofile="$default_ofile"
13823with_gnu_ld="$lt_cv_prog_gnu_ld"
13824
13825if test -n "$ac_tool_prefix"; then
13826 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13827set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013830if test "${ac_cv_prog_AR+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13832else
13833 if test -n "$AR"; then
13834 ac_cv_prog_AR="$AR" # Let the user override the test.
13835else
13836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837for as_dir in $PATH
13838do
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013843 ac_cv_prog_AR="${ac_tool_prefix}ar"
13844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 break 2
13846 fi
13847done
13848done
Reid Spencera773bd52006-08-04 18:18:08 +000013849IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013850
13851fi
13852fi
13853AR=$ac_cv_prog_AR
13854if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013855 { echo "$as_me:$LINENO: result: $AR" >&5
13856echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013857else
Reid Spencera773bd52006-08-04 18:18:08 +000013858 { echo "$as_me:$LINENO: result: no" >&5
13859echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013860fi
13861
Reid Spencera773bd52006-08-04 18:18:08 +000013862
John Criswell47fdd832003-07-14 16:52:07 +000013863fi
13864if test -z "$ac_cv_prog_AR"; then
13865 ac_ct_AR=$AR
13866 # Extract the first word of "ar", so it can be a program name with args.
13867set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013870if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 if test -n "$ac_ct_AR"; then
13874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13875else
13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013883 ac_cv_prog_ac_ct_AR="ar"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888done
Reid Spencera773bd52006-08-04 18:18:08 +000013889IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013890
John Criswell47fdd832003-07-14 16:52:07 +000013891fi
13892fi
13893ac_ct_AR=$ac_cv_prog_ac_ct_AR
13894if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013895 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13896echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013897else
Reid Spencera773bd52006-08-04 18:18:08 +000013898 { echo "$as_me:$LINENO: result: no" >&5
13899echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013900fi
13901
Reid Spencera773bd52006-08-04 18:18:08 +000013902 if test "x$ac_ct_AR" = x; then
13903 AR="false"
13904 else
13905 case $cross_compiling:$ac_tool_warned in
13906yes:)
13907{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13908whose name does not start with the host triplet. If you think this
13909configuration is useful to you, please write to autoconf@gnu.org." >&5
13910echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13911whose name does not start with the host triplet. If you think this
13912configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13913ac_tool_warned=yes ;;
13914esac
13915 AR=$ac_ct_AR
13916 fi
John Criswell47fdd832003-07-14 16:52:07 +000013917else
13918 AR="$ac_cv_prog_AR"
13919fi
13920
John Criswell7a73b802003-06-30 21:59:07 +000013921if test -n "$ac_tool_prefix"; then
13922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13923set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013926if test "${ac_cv_prog_RANLIB+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928else
13929 if test -n "$RANLIB"; then
13930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13931else
13932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933for as_dir in $PATH
13934do
13935 IFS=$as_save_IFS
13936 test -z "$as_dir" && as_dir=.
13937 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013938 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 +000013939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 break 2
13942 fi
13943done
13944done
Reid Spencera773bd52006-08-04 18:18:08 +000013945IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013946
13947fi
13948fi
13949RANLIB=$ac_cv_prog_RANLIB
13950if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013951 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13952echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013953else
Reid Spencera773bd52006-08-04 18:18:08 +000013954 { echo "$as_me:$LINENO: result: no" >&5
13955echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013956fi
13957
Reid Spencera773bd52006-08-04 18:18:08 +000013958
John Criswell7a73b802003-06-30 21:59:07 +000013959fi
13960if test -z "$ac_cv_prog_RANLIB"; then
13961 ac_ct_RANLIB=$RANLIB
13962 # Extract the first word of "ranlib", so it can be a program name with args.
13963set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013966if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968else
13969 if test -n "$ac_ct_RANLIB"; then
13970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13971else
13972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13973for as_dir in $PATH
13974do
13975 IFS=$as_save_IFS
13976 test -z "$as_dir" && as_dir=.
13977 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013978 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 +000013979 ac_cv_prog_ac_ct_RANLIB="ranlib"
13980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13981 break 2
13982 fi
13983done
13984done
Reid Spencera773bd52006-08-04 18:18:08 +000013985IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013986
John Criswell7a73b802003-06-30 21:59:07 +000013987fi
13988fi
13989ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13990if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013991 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13992echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013993else
Reid Spencera773bd52006-08-04 18:18:08 +000013994 { echo "$as_me:$LINENO: result: no" >&5
13995echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013996fi
13997
Reid Spencera773bd52006-08-04 18:18:08 +000013998 if test "x$ac_ct_RANLIB" = x; then
13999 RANLIB=":"
14000 else
14001 case $cross_compiling:$ac_tool_warned in
14002yes:)
14003{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14004whose name does not start with the host triplet. If you think this
14005configuration is useful to you, please write to autoconf@gnu.org." >&5
14006echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14007whose name does not start with the host triplet. If you think this
14008configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14009ac_tool_warned=yes ;;
14010esac
14011 RANLIB=$ac_ct_RANLIB
14012 fi
John Criswell7a73b802003-06-30 21:59:07 +000014013else
14014 RANLIB="$ac_cv_prog_RANLIB"
14015fi
14016
14017if test -n "$ac_tool_prefix"; then
14018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14019set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014022if test "${ac_cv_prog_STRIP+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024else
14025 if test -n "$STRIP"; then
14026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14027else
14028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029for as_dir in $PATH
14030do
14031 IFS=$as_save_IFS
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014034 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 +000014035 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 break 2
14038 fi
14039done
14040done
Reid Spencera773bd52006-08-04 18:18:08 +000014041IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014042
14043fi
14044fi
14045STRIP=$ac_cv_prog_STRIP
14046if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014047 { echo "$as_me:$LINENO: result: $STRIP" >&5
14048echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014049else
Reid Spencera773bd52006-08-04 18:18:08 +000014050 { echo "$as_me:$LINENO: result: no" >&5
14051echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014052fi
14053
Reid Spencera773bd52006-08-04 18:18:08 +000014054
John Criswell7a73b802003-06-30 21:59:07 +000014055fi
14056if test -z "$ac_cv_prog_STRIP"; then
14057 ac_ct_STRIP=$STRIP
14058 # Extract the first word of "strip", so it can be a program name with args.
14059set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014062if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064else
14065 if test -n "$ac_ct_STRIP"; then
14066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14067else
14068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069for as_dir in $PATH
14070do
14071 IFS=$as_save_IFS
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014074 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 +000014075 ac_cv_prog_ac_ct_STRIP="strip"
14076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14077 break 2
14078 fi
14079done
14080done
Reid Spencera773bd52006-08-04 18:18:08 +000014081IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014082
John Criswell7a73b802003-06-30 21:59:07 +000014083fi
14084fi
14085ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14086if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014087 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14088echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014089else
Reid Spencera773bd52006-08-04 18:18:08 +000014090 { echo "$as_me:$LINENO: result: no" >&5
14091echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014092fi
14093
Reid Spencera773bd52006-08-04 18:18:08 +000014094 if test "x$ac_ct_STRIP" = x; then
14095 STRIP=":"
14096 else
14097 case $cross_compiling:$ac_tool_warned in
14098yes:)
14099{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14100whose name does not start with the host triplet. If you think this
14101configuration is useful to you, please write to autoconf@gnu.org." >&5
14102echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14103whose name does not start with the host triplet. If you think this
14104configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14105ac_tool_warned=yes ;;
14106esac
14107 STRIP=$ac_ct_STRIP
14108 fi
John Criswell7a73b802003-06-30 21:59:07 +000014109else
14110 STRIP="$ac_cv_prog_STRIP"
14111fi
14112
14113
John Criswell7a73b802003-06-30 21:59:07 +000014114old_CC="$CC"
14115old_CFLAGS="$CFLAGS"
14116
14117# Set sane defaults for various variables
14118test -z "$AR" && AR=ar
14119test -z "$AR_FLAGS" && AR_FLAGS=cru
14120test -z "$AS" && AS=as
14121test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014122test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014123test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014124test -z "$DLLTOOL" && DLLTOOL=dlltool
14125test -z "$LD" && LD=ld
14126test -z "$LN_S" && LN_S="ln -s"
14127test -z "$MAGIC_CMD" && MAGIC_CMD=file
14128test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014129test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014130test -z "$OBJDUMP" && OBJDUMP=objdump
14131test -z "$RANLIB" && RANLIB=:
14132test -z "$STRIP" && STRIP=:
14133test -z "$ac_objext" && ac_objext=o
14134
John Criswell7a73b802003-06-30 21:59:07 +000014135# Determine commands to create old-style static archives.
14136old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14137old_postinstall_cmds='chmod 644 $oldlib'
14138old_postuninstall_cmds=
14139
14140if test -n "$RANLIB"; then
14141 case $host_os in
14142 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014143 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014144 ;;
14145 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014146 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014147 ;;
14148 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014149 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014150fi
14151
Reid Spencera773bd52006-08-04 18:18:08 +000014152for cc_temp in $compiler""; do
14153 case $cc_temp in
14154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14156 \-*) ;;
14157 *) break;;
14158 esac
14159done
14160cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14161
Reid Spencer2706f8c2004-09-19 23:53:36 +000014162
John Criswell47fdd832003-07-14 16:52:07 +000014163# Only perform the check for file, if the check method requires it
14164case $deplibs_check_method in
14165file_magic*)
14166 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014167 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14168echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014169if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014171else
John Criswell47fdd832003-07-14 16:52:07 +000014172 case $MAGIC_CMD in
14173[\\/*] | ?:[\\/]*)
14174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14175 ;;
14176*)
14177 lt_save_MAGIC_CMD="$MAGIC_CMD"
14178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14180 for ac_dir in $ac_dummy; do
14181 IFS="$lt_save_ifs"
14182 test -z "$ac_dir" && ac_dir=.
14183 if test -f $ac_dir/${ac_tool_prefix}file; then
14184 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14185 if test -n "$file_magic_test_file"; then
14186 case $deplibs_check_method in
14187 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14191 $EGREP "$file_magic_regex" > /dev/null; then
14192 :
14193 else
14194 cat <<EOF 1>&2
14195
14196*** Warning: the command libtool uses to detect shared libraries,
14197*** $file_magic_cmd, produces output that libtool cannot recognize.
14198*** The result is that libtool may fail to recognize shared libraries
14199*** as such. This will affect the creation of libtool libraries that
14200*** depend on shared libraries, but programs linked with such libtool
14201*** libraries will work regardless of this problem. Nevertheless, you
14202*** may want to report the problem to your system manager and/or to
14203*** bug-libtool@gnu.org
14204
14205EOF
14206 fi ;;
14207 esac
14208 fi
14209 break
14210 fi
14211 done
14212 IFS="$lt_save_ifs"
14213 MAGIC_CMD="$lt_save_MAGIC_CMD"
14214 ;;
14215esac
John Criswell7a73b802003-06-30 21:59:07 +000014216fi
John Criswell7a73b802003-06-30 21:59:07 +000014217
John Criswell47fdd832003-07-14 16:52:07 +000014218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14219if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014220 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14221echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014222else
Reid Spencera773bd52006-08-04 18:18:08 +000014223 { echo "$as_me:$LINENO: result: no" >&5
14224echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014225fi
John Criswell7a73b802003-06-30 21:59:07 +000014226
John Criswell47fdd832003-07-14 16:52:07 +000014227if test -z "$lt_cv_path_MAGIC_CMD"; then
14228 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014229 { echo "$as_me:$LINENO: checking for file" >&5
14230echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014231if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233else
14234 case $MAGIC_CMD in
14235[\\/*] | ?:[\\/]*)
14236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14237 ;;
14238*)
14239 lt_save_MAGIC_CMD="$MAGIC_CMD"
14240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14242 for ac_dir in $ac_dummy; do
14243 IFS="$lt_save_ifs"
14244 test -z "$ac_dir" && ac_dir=.
14245 if test -f $ac_dir/file; then
14246 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14247 if test -n "$file_magic_test_file"; then
14248 case $deplibs_check_method in
14249 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014250 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14253 $EGREP "$file_magic_regex" > /dev/null; then
14254 :
14255 else
14256 cat <<EOF 1>&2
14257
14258*** Warning: the command libtool uses to detect shared libraries,
14259*** $file_magic_cmd, produces output that libtool cannot recognize.
14260*** The result is that libtool may fail to recognize shared libraries
14261*** as such. This will affect the creation of libtool libraries that
14262*** depend on shared libraries, but programs linked with such libtool
14263*** libraries will work regardless of this problem. Nevertheless, you
14264*** may want to report the problem to your system manager and/or to
14265*** bug-libtool@gnu.org
14266
14267EOF
14268 fi ;;
14269 esac
14270 fi
14271 break
14272 fi
14273 done
14274 IFS="$lt_save_ifs"
14275 MAGIC_CMD="$lt_save_MAGIC_CMD"
14276 ;;
14277esac
14278fi
14279
14280MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14281if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014282 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14283echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014284else
Reid Spencera773bd52006-08-04 18:18:08 +000014285 { echo "$as_me:$LINENO: result: no" >&5
14286echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014287fi
14288
14289 else
14290 MAGIC_CMD=:
14291 fi
14292fi
14293
14294 fi
14295 ;;
14296esac
14297
Reid Spencer17795972004-11-18 09:47:37 +000014298enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014299enable_win32_dll=no
14300
Reid Spencera773bd52006-08-04 18:18:08 +000014301# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014302if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014303 enableval=$enable_libtool_lock;
14304fi
John Criswell47fdd832003-07-14 16:52:07 +000014305
John Criswell47fdd832003-07-14 16:52:07 +000014306test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14307
John Criswell7a73b802003-06-30 21:59:07 +000014308
Reid Spencera773bd52006-08-04 18:18:08 +000014309# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014310if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014311 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014312else
14313 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014314fi
14315
John Criswell7a73b802003-06-30 21:59:07 +000014316test -z "$pic_mode" && pic_mode=default
14317
John Criswell47fdd832003-07-14 16:52:07 +000014318# Use C for the default configuration in the libtool script
14319tagname=
14320lt_save_CC="$CC"
14321ac_ext=c
14322ac_cpp='$CPP $CPPFLAGS'
14323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14325ac_compiler_gnu=$ac_cv_c_compiler_gnu
14326
14327
14328# Source file extension for C test sources.
14329ac_ext=c
14330
14331# Object file extension for compiled C test sources.
14332objext=o
14333objext=$objext
14334
14335# Code to be used in simple compile tests
14336lt_simple_compile_test_code="int some_variable = 0;\n"
14337
14338# Code to be used in simple link tests
14339lt_simple_link_test_code='int main(){return(0);}\n'
14340
14341
14342# If no C compiler was specified, use CC.
14343LTCC=${LTCC-"$CC"}
14344
Reid Spencera773bd52006-08-04 18:18:08 +000014345# If no C compiler flags were specified, use CFLAGS.
14346LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14347
John Criswell47fdd832003-07-14 16:52:07 +000014348# Allow CC to be a program name with arguments.
14349compiler=$CC
14350
14351
Reid Spencera773bd52006-08-04 18:18:08 +000014352# save warnings/boilerplate of simple test code
14353ac_outfile=conftest.$ac_objext
14354printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14355eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14356_lt_compiler_boilerplate=`cat conftest.err`
14357$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014358
Reid Spencera773bd52006-08-04 18:18:08 +000014359ac_outfile=conftest.$ac_objext
14360printf "$lt_simple_link_test_code" >conftest.$ac_ext
14361eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14362_lt_linker_boilerplate=`cat conftest.err`
14363$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014364
14365
John Criswell47fdd832003-07-14 16:52:07 +000014366
14367lt_prog_compiler_no_builtin_flag=
14368
14369if test "$GCC" = yes; then
14370 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14371
Reid Spencer2706f8c2004-09-19 23:53:36 +000014372
Reid Spencera773bd52006-08-04 18:18:08 +000014373{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14374echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014375if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14377else
14378 lt_cv_prog_compiler_rtti_exceptions=no
14379 ac_outfile=conftest.$ac_objext
14380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14381 lt_compiler_flag="-fno-rtti -fno-exceptions"
14382 # Insert the option either (1) after the last *FLAGS variable, or
14383 # (2) before a word containing "conftest.", or (3) at the end.
14384 # Note that $ac_compile itself does not contain backslashes and begins
14385 # with a dollar sign (not a hyphen), so the echo should work correctly.
14386 # The option is referenced via a variable to avoid confusing sed.
14387 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000014391 (eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014392 (eval "$lt_compile" 2>conftest.err)
14393 ac_status=$?
14394 cat conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000014395 echo "$as_me:14395: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014396 if (exit $ac_status) && test -s "$ac_outfile"; then
14397 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014398 # So say no if there are warnings other than the usual output.
14399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014402 lt_cv_prog_compiler_rtti_exceptions=yes
14403 fi
14404 fi
14405 $rm conftest*
14406
14407fi
Reid Spencera773bd52006-08-04 18:18:08 +000014408{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14409echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014410
14411if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14412 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14413else
14414 :
14415fi
14416
14417fi
14418
14419lt_prog_compiler_wl=
14420lt_prog_compiler_pic=
14421lt_prog_compiler_static=
14422
Reid Spencera773bd52006-08-04 18:18:08 +000014423{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14424echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014425
14426 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014427 lt_prog_compiler_wl='-Wl,'
14428 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014429
14430 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014431 aix*)
14432 # All AIX code is PIC.
14433 if test "$host_cpu" = ia64; then
14434 # AIX 5 now supports IA64 processor
14435 lt_prog_compiler_static='-Bstatic'
14436 fi
John Criswell7a73b802003-06-30 21:59:07 +000014437 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014438
John Criswell7a73b802003-06-30 21:59:07 +000014439 amigaos*)
14440 # FIXME: we need at least 68020 code to build shared libraries, but
14441 # adding the `-m68020' flag to GCC prevents building anything better,
14442 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014443 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014444 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014445
14446 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014447 # PIC is the default for these OSes.
14448 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014449
14450 mingw* | pw32* | os2*)
14451 # This hack is so that the source file can tell whether it is being
14452 # built for inclusion in a dll (and should export symbols for example).
14453 lt_prog_compiler_pic='-DDLL_EXPORT'
14454 ;;
14455
John Criswell7a73b802003-06-30 21:59:07 +000014456 darwin* | rhapsody*)
14457 # PIC is the default on this platform
14458 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014459 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014460 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014461
Reid Spencera773bd52006-08-04 18:18:08 +000014462 interix3*)
14463 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14464 # Instead, we relocate shared libraries at runtime.
14465 ;;
14466
John Criswell47fdd832003-07-14 16:52:07 +000014467 msdosdjgpp*)
14468 # Just because we use GCC doesn't mean we suddenly get shared libraries
14469 # on systems that don't support them.
14470 lt_prog_compiler_can_build_shared=no
14471 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014472 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014473
John Criswell7a73b802003-06-30 21:59:07 +000014474 sysv4*MP*)
14475 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014476 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014477 fi
14478 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014479
14480 hpux*)
14481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14482 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014483 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014484 hppa*64*|ia64*)
14485 # +Z the default
14486 ;;
14487 *)
14488 lt_prog_compiler_pic='-fPIC'
14489 ;;
14490 esac
14491 ;;
14492
John Criswell7a73b802003-06-30 21:59:07 +000014493 *)
John Criswell47fdd832003-07-14 16:52:07 +000014494 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014495 ;;
14496 esac
14497 else
John Criswell47fdd832003-07-14 16:52:07 +000014498 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014499 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014500 aix*)
14501 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014502 if test "$host_cpu" = ia64; then
14503 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014504 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014505 else
John Criswell47fdd832003-07-14 16:52:07 +000014506 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014507 fi
14508 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014509 darwin*)
14510 # PIC is the default on this platform
14511 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014512 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014513 xlc*)
14514 lt_prog_compiler_pic='-qnocommon'
14515 lt_prog_compiler_wl='-Wl,'
14516 ;;
14517 esac
14518 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014519
John Criswell47fdd832003-07-14 16:52:07 +000014520 mingw* | pw32* | os2*)
14521 # This hack is so that the source file can tell whether it is being
14522 # built for inclusion in a dll (and should export symbols for example).
14523 lt_prog_compiler_pic='-DDLL_EXPORT'
14524 ;;
14525
John Criswell7a73b802003-06-30 21:59:07 +000014526 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014527 lt_prog_compiler_wl='-Wl,'
14528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14529 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014530 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014531 hppa*64*|ia64*)
14532 # +Z the default
14533 ;;
14534 *)
14535 lt_prog_compiler_pic='+Z'
14536 ;;
14537 esac
14538 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14539 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014540 ;;
14541
John Criswell47fdd832003-07-14 16:52:07 +000014542 irix5* | irix6* | nonstopux*)
14543 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014544 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014545 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014546 ;;
14547
14548 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014549 lt_prog_compiler_pic='-KPIC'
14550 lt_prog_compiler_static='-Bstatic'
14551 ;;
14552
14553 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014554 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014555 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014556 lt_prog_compiler_wl='-Wl,'
14557 lt_prog_compiler_pic='-KPIC'
14558 lt_prog_compiler_static='-static'
14559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014560 pgcc* | pgf77* | pgf90* | pgf95*)
14561 # Portland Group compilers (*not* the Pentium gcc compiler,
14562 # which looks to be a dead project)
14563 lt_prog_compiler_wl='-Wl,'
14564 lt_prog_compiler_pic='-fpic'
14565 lt_prog_compiler_static='-Bstatic'
14566 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014567 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014568 lt_prog_compiler_wl='-Wl,'
14569 # All Alpha code is PIC.
14570 lt_prog_compiler_static='-non_shared'
14571 ;;
14572 esac
John Criswell7a73b802003-06-30 21:59:07 +000014573 ;;
14574
14575 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014576 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014577 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014578 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014579 ;;
14580
John Criswell7a73b802003-06-30 21:59:07 +000014581 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014582 lt_prog_compiler_pic='-KPIC'
14583 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014584 case $cc_basename in
14585 f77* | f90* | f95*)
14586 lt_prog_compiler_wl='-Qoption ld ';;
14587 *)
14588 lt_prog_compiler_wl='-Wl,';;
14589 esac
John Criswell7a73b802003-06-30 21:59:07 +000014590 ;;
14591
14592 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014593 lt_prog_compiler_wl='-Qoption ld '
14594 lt_prog_compiler_pic='-PIC'
14595 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014596 ;;
14597
Reid Spencera773bd52006-08-04 18:18:08 +000014598 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014599 lt_prog_compiler_wl='-Wl,'
14600 lt_prog_compiler_pic='-KPIC'
14601 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014602 ;;
14603
14604 sysv4*MP*)
14605 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014606 lt_prog_compiler_pic='-Kconform_pic'
14607 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014608 fi
14609 ;;
14610
Reid Spencera773bd52006-08-04 18:18:08 +000014611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14612 lt_prog_compiler_wl='-Wl,'
14613 lt_prog_compiler_pic='-KPIC'
14614 lt_prog_compiler_static='-Bstatic'
14615 ;;
14616
14617 unicos*)
14618 lt_prog_compiler_wl='-Wl,'
14619 lt_prog_compiler_can_build_shared=no
14620 ;;
14621
John Criswell47fdd832003-07-14 16:52:07 +000014622 uts4*)
14623 lt_prog_compiler_pic='-pic'
14624 lt_prog_compiler_static='-Bstatic'
14625 ;;
14626
John Criswell7a73b802003-06-30 21:59:07 +000014627 *)
John Criswell47fdd832003-07-14 16:52:07 +000014628 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014629 ;;
14630 esac
14631 fi
14632
Reid Spencera773bd52006-08-04 18:18:08 +000014633{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14634echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014635
John Criswell47fdd832003-07-14 16:52:07 +000014636#
14637# Check to make sure the PIC flag actually works.
14638#
14639if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014640
Reid Spencera773bd52006-08-04 18:18:08 +000014641{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14642echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014643if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else
John Criswell47fdd832003-07-14 16:52:07 +000014646 lt_prog_compiler_pic_works=no
14647 ac_outfile=conftest.$ac_objext
14648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14650 # Insert the option either (1) after the last *FLAGS variable, or
14651 # (2) before a word containing "conftest.", or (3) at the end.
14652 # Note that $ac_compile itself does not contain backslashes and begins
14653 # with a dollar sign (not a hyphen), so the echo should work correctly.
14654 # The option is referenced via a variable to avoid confusing sed.
14655 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14658 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000014659 (eval echo "\"\$as_me:14659: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014660 (eval "$lt_compile" 2>conftest.err)
14661 ac_status=$?
14662 cat conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000014663 echo "$as_me:14663: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014664 if (exit $ac_status) && test -s "$ac_outfile"; then
14665 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014666 # So say no if there are warnings other than the usual output.
14667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014670 lt_prog_compiler_pic_works=yes
14671 fi
14672 fi
14673 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014674
John Criswell47fdd832003-07-14 16:52:07 +000014675fi
Reid Spencera773bd52006-08-04 18:18:08 +000014676{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14677echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014678
John Criswell47fdd832003-07-14 16:52:07 +000014679if test x"$lt_prog_compiler_pic_works" = xyes; then
14680 case $lt_prog_compiler_pic in
14681 "" | " "*) ;;
14682 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14683 esac
John Criswell7a73b802003-06-30 21:59:07 +000014684else
John Criswell47fdd832003-07-14 16:52:07 +000014685 lt_prog_compiler_pic=
14686 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014687fi
14688
John Criswell7a73b802003-06-30 21:59:07 +000014689fi
Reid Spencera773bd52006-08-04 18:18:08 +000014690case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014691 # For platforms which do not support PIC, -DPIC is meaningless:
14692 *djgpp*)
14693 lt_prog_compiler_pic=
14694 ;;
14695 *)
14696 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14697 ;;
14698esac
John Criswell7a73b802003-06-30 21:59:07 +000014699
Reid Spencera773bd52006-08-04 18:18:08 +000014700#
14701# Check to make sure the static flag actually works.
14702#
14703wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14704{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14705echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14706if test "${lt_prog_compiler_static_works+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708else
14709 lt_prog_compiler_static_works=no
14710 save_LDFLAGS="$LDFLAGS"
14711 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14712 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14714 # The linker can only warn and ignore the option if not recognized
14715 # So say no if there are warnings
14716 if test -s conftest.err; then
14717 # Append any errors to the config.log.
14718 cat conftest.err 1>&5
14719 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14721 if diff conftest.exp conftest.er2 >/dev/null; then
14722 lt_prog_compiler_static_works=yes
14723 fi
14724 else
14725 lt_prog_compiler_static_works=yes
14726 fi
14727 fi
14728 $rm conftest*
14729 LDFLAGS="$save_LDFLAGS"
14730
14731fi
14732{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14733echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14734
14735if test x"$lt_prog_compiler_static_works" = xyes; then
14736 :
14737else
14738 lt_prog_compiler_static=
14739fi
14740
14741
14742{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14743echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014744if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746else
John Criswell47fdd832003-07-14 16:52:07 +000014747 lt_cv_prog_compiler_c_o=no
14748 $rm -r conftest 2>/dev/null
14749 mkdir conftest
14750 cd conftest
14751 mkdir out
14752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014753
John Criswell47fdd832003-07-14 16:52:07 +000014754 lt_compiler_flag="-o out/conftest2.$ac_objext"
14755 # Insert the option either (1) after the last *FLAGS variable, or
14756 # (2) before a word containing "conftest.", or (3) at the end.
14757 # Note that $ac_compile itself does not contain backslashes and begins
14758 # with a dollar sign (not a hyphen), so the echo should work correctly.
14759 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14762 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000014763 (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014764 (eval "$lt_compile" 2>out/conftest.err)
14765 ac_status=$?
14766 cat out/conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000014767 echo "$as_me:14767: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14769 then
14770 # The compiler can only warn and ignore the option if not recognized
14771 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014775 lt_cv_prog_compiler_c_o=yes
14776 fi
14777 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014778 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014779 $rm conftest*
14780 # SGI C++ compiler will create directory out/ii_files/ for
14781 # template instantiation
14782 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14783 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014784 cd ..
14785 rmdir conftest
14786 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014787
14788fi
Reid Spencera773bd52006-08-04 18:18:08 +000014789{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14790echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014791
John Criswell7a73b802003-06-30 21:59:07 +000014792
John Criswell7a73b802003-06-30 21:59:07 +000014793hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014794if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014795 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014796 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14797echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014798 hard_links=yes
14799 $rm conftest*
14800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14801 touch conftest.a
14802 ln conftest.a conftest.b 2>&5 || hard_links=no
14803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014804 { echo "$as_me:$LINENO: result: $hard_links" >&5
14805echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014806 if test "$hard_links" = no; then
14807 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14808echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14809 need_locks=warn
14810 fi
14811else
14812 need_locks=no
14813fi
John Criswell7a73b802003-06-30 21:59:07 +000014814
Reid Spencera773bd52006-08-04 18:18:08 +000014815{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14816echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014817
14818 runpath_var=
14819 allow_undefined_flag=
14820 enable_shared_with_static_runtimes=no
14821 archive_cmds=
14822 archive_expsym_cmds=
14823 old_archive_From_new_cmds=
14824 old_archive_from_expsyms_cmds=
14825 export_dynamic_flag_spec=
14826 whole_archive_flag_spec=
14827 thread_safe_flag_spec=
14828 hardcode_libdir_flag_spec=
14829 hardcode_libdir_flag_spec_ld=
14830 hardcode_libdir_separator=
14831 hardcode_direct=no
14832 hardcode_minus_L=no
14833 hardcode_shlibpath_var=unsupported
14834 link_all_deplibs=unknown
14835 hardcode_automatic=no
14836 module_cmds=
14837 module_expsym_cmds=
14838 always_export_symbols=no
14839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14840 # include_expsyms should be a list of space-separated symbols to be *always*
14841 # included in the symbol list
14842 include_expsyms=
14843 # exclude_expsyms can be an extended regexp of symbols to exclude
14844 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14845 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14846 # as well as any symbol that contains `d'.
14847 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14848 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14849 # platforms (ab)use it in PIC code, but their linkers get confused if
14850 # the symbol is explicitly referenced. Since portable code cannot
14851 # rely on this symbol name, it's probably fine to never include it in
14852 # preloaded symbol tables.
14853 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014854 # Just being paranoid about ensuring that cc_basename is set.
14855 for cc_temp in $compiler""; do
14856 case $cc_temp in
14857 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14858 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14859 \-*) ;;
14860 *) break;;
14861 esac
14862done
14863cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014864
14865 case $host_os in
14866 cygwin* | mingw* | pw32*)
14867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14868 # When not using gcc, we currently assume that we are using
14869 # Microsoft Visual C++.
14870 if test "$GCC" != yes; then
14871 with_gnu_ld=no
14872 fi
14873 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014874 interix*)
14875 # we just hope/assume this is gcc and not c89 (= MSVC++)
14876 with_gnu_ld=yes
14877 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014878 openbsd*)
14879 with_gnu_ld=no
14880 ;;
14881 esac
14882
14883 ld_shlibs=yes
14884 if test "$with_gnu_ld" = yes; then
14885 # If archive_cmds runs LD, not CC, wlarc should be empty
14886 wlarc='${wl}'
14887
Reid Spencera773bd52006-08-04 18:18:08 +000014888 # Set some defaults for GNU ld with shared library support. These
14889 # are reset later if shared libraries are not supported. Putting them
14890 # here allows them to be overridden if necessary.
14891 runpath_var=LD_RUN_PATH
14892 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14893 export_dynamic_flag_spec='${wl}--export-dynamic'
14894 # ancient GNU ld didn't support --whole-archive et. al.
14895 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14896 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14897 else
14898 whole_archive_flag_spec=
14899 fi
14900 supports_anon_versioning=no
14901 case `$LD -v 2>/dev/null` in
14902 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14903 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14904 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14905 *\ 2.11.*) ;; # other 2.11 versions
14906 *) supports_anon_versioning=yes ;;
14907 esac
14908
John Criswell47fdd832003-07-14 16:52:07 +000014909 # See if GNU ld supports shared libraries.
14910 case $host_os in
14911 aix3* | aix4* | aix5*)
14912 # On AIX/PPC, the GNU linker is very broken
14913 if test "$host_cpu" != ia64; then
14914 ld_shlibs=no
14915 cat <<EOF 1>&2
14916
14917*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14918*** to be unable to reliably create shared libraries on AIX.
14919*** Therefore, libtool is disabling shared libraries support. If you
14920*** really care for shared libraries, you may want to modify your PATH
14921*** so that a non-GNU linker is found, and then restart.
14922
14923EOF
14924 fi
14925 ;;
14926
14927 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014928 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 +000014929 hardcode_libdir_flag_spec='-L$libdir'
14930 hardcode_minus_L=yes
14931
14932 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14933 # that the semantics of dynamic libraries on AmigaOS, at least up
14934 # to version 4, is to share data among multiple programs linked
14935 # with the same dynamic library. Since this doesn't match the
14936 # behavior of shared libraries on other platforms, we can't use
14937 # them.
14938 ld_shlibs=no
14939 ;;
14940
14941 beos*)
14942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14943 allow_undefined_flag=unsupported
14944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14945 # support --undefined. This deserves some investigation. FIXME
14946 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947 else
14948 ld_shlibs=no
14949 fi
14950 ;;
14951
14952 cygwin* | mingw* | pw32*)
14953 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14954 # as there is no search path for DLLs.
14955 hardcode_libdir_flag_spec='-L$libdir'
14956 allow_undefined_flag=unsupported
14957 always_export_symbols=no
14958 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014959 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 +000014960
14961 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014962 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 +000014963 # If the export-symbols file already is a .def file (1st line
14964 # is EXPORTS), use it as is; otherwise, prepend...
14965 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14966 cp $export_symbols $output_objdir/$soname.def;
14967 else
14968 echo EXPORTS > $output_objdir/$soname.def;
14969 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014970 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14972 else
14973 ld_shlibs=no
14974 fi
14975 ;;
14976
14977 interix3*)
14978 hardcode_direct=no
14979 hardcode_shlibpath_var=no
14980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14981 export_dynamic_flag_spec='${wl}-E'
14982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14983 # Instead, shared libraries are loaded at an image base (0x10000000 by
14984 # default) and relocated if they conflict, which is a slow very memory
14985 # consuming and fragmenting process. To avoid this, we pick a random,
14986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14989 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'
14990 ;;
14991
14992 linux*)
14993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14994 tmp_addflag=
14995 case $cc_basename,$host_cpu in
14996 pgcc*) # Portland Group C compiler
14997 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'
14998 tmp_addflag=' $pic_flag'
14999 ;;
15000 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15001 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'
15002 tmp_addflag=' $pic_flag -Mnomain' ;;
15003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15004 tmp_addflag=' -i_dynamic' ;;
15005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15006 tmp_addflag=' -i_dynamic -nofor_main' ;;
15007 ifc* | ifort*) # Intel Fortran compiler
15008 tmp_addflag=' -nofor_main' ;;
15009 esac
15010 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011
15012 if test $supports_anon_versioning = yes; then
15013 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15015 $echo "local: *; };" >> $output_objdir/$libname.ver~
15016 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15017 fi
John Criswell47fdd832003-07-14 16:52:07 +000015018 else
15019 ld_shlibs=no
15020 fi
15021 ;;
15022
15023 netbsd*)
15024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15025 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15026 wlarc=
15027 else
15028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15030 fi
15031 ;;
15032
Reid Spencera773bd52006-08-04 18:18:08 +000015033 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015034 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15035 ld_shlibs=no
15036 cat <<EOF 1>&2
15037
15038*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15039*** create shared libraries on Solaris systems. Therefore, libtool
15040*** is disabling shared libraries support. We urge you to upgrade GNU
15041*** binutils to release 2.9.1 or newer. Another option is to modify
15042*** your PATH or compiler configuration so that the native linker is
15043*** used, and then restart.
15044
15045EOF
15046 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15049 else
15050 ld_shlibs=no
15051 fi
15052 ;;
15053
Reid Spencera773bd52006-08-04 18:18:08 +000015054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15055 case `$LD -v 2>&1` in
15056 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15057 ld_shlibs=no
15058 cat <<_LT_EOF 1>&2
15059
15060*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15061*** reliably create shared libraries on SCO systems. Therefore, libtool
15062*** is disabling shared libraries support. We urge you to upgrade GNU
15063*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15064*** your PATH or compiler configuration so that the native linker is
15065*** used, and then restart.
15066
15067_LT_EOF
15068 ;;
15069 *)
15070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15074 else
15075 ld_shlibs=no
15076 fi
15077 ;;
15078 esac
15079 ;;
15080
John Criswell47fdd832003-07-14 16:52:07 +000015081 sunos4*)
15082 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15083 wlarc=
15084 hardcode_direct=yes
15085 hardcode_shlibpath_var=no
15086 ;;
15087
15088 *)
15089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15092 else
15093 ld_shlibs=no
15094 fi
15095 ;;
15096 esac
15097
Reid Spencera773bd52006-08-04 18:18:08 +000015098 if test "$ld_shlibs" = no; then
15099 runpath_var=
15100 hardcode_libdir_flag_spec=
15101 export_dynamic_flag_spec=
15102 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015103 fi
15104 else
15105 # PORTME fill in a description of your system's linker (not GNU ld)
15106 case $host_os in
15107 aix3*)
15108 allow_undefined_flag=unsupported
15109 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015110 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 +000015111 # Note: this linker hardcodes the directories in LIBPATH if there
15112 # are no directories specified by -L.
15113 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015114 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015115 # Neither direct hardcoding nor static linking is supported with a
15116 # broken collect2.
15117 hardcode_direct=unsupported
15118 fi
15119 ;;
15120
15121 aix4* | aix5*)
15122 if test "$host_cpu" = ia64; then
15123 # On IA64, the linker does run time linking by default, so we don't
15124 # have to do anything special.
15125 aix_use_runtimelinking=no
15126 exp_sym_flag='-Bexport'
15127 no_entry_flag=""
15128 else
15129 # If we're using GNU nm, then we don't want the "-C" option.
15130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15131 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15132 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'
15133 else
15134 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'
15135 fi
15136 aix_use_runtimelinking=no
15137
15138 # Test if we are trying to use run time linking or normal
15139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15140 # need to do runtime linking.
15141 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15142 for ld_flag in $LDFLAGS; do
15143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15144 aix_use_runtimelinking=yes
15145 break
15146 fi
15147 done
Reid Spencera773bd52006-08-04 18:18:08 +000015148 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015149 esac
15150
15151 exp_sym_flag='-bexport'
15152 no_entry_flag='-bnoentry'
15153 fi
15154
15155 # When large executables or shared objects are built, AIX ld can
15156 # have problems creating the table of contents. If linking a library
15157 # or program results in "error TOC overflow" add -mminimal-toc to
15158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15160
15161 archive_cmds=''
15162 hardcode_direct=yes
15163 hardcode_libdir_separator=':'
15164 link_all_deplibs=yes
15165
15166 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015167 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015168 # We only want to do this on AIX 4.2 and lower, the check
15169 # below for broken collect2 doesn't work under 4.3+
15170 collect2name=`${CC} -print-prog-name=collect2`
15171 if test -f "$collect2name" && \
15172 strings "$collect2name" | grep resolve_lib_name >/dev/null
15173 then
15174 # We have reworked collect2
15175 hardcode_direct=yes
15176 else
15177 # We have old collect2
15178 hardcode_direct=unsupported
15179 # It fails to find uninstalled libraries when the uninstalled
15180 # path is not listed in the libpath. Setting hardcode_minus_L
15181 # to unsupported forces relinking
15182 hardcode_minus_L=yes
15183 hardcode_libdir_flag_spec='-L$libdir'
15184 hardcode_libdir_separator=
15185 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015186 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015187 esac
15188 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015189 if test "$aix_use_runtimelinking" = yes; then
15190 shared_flag="$shared_flag "'${wl}-G'
15191 fi
John Criswell47fdd832003-07-14 16:52:07 +000015192 else
15193 # not using gcc
15194 if test "$host_cpu" = ia64; then
15195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15196 # chokes on -Wl,-G. The following line is correct:
15197 shared_flag='-G'
15198 else
Reid Spencera773bd52006-08-04 18:18:08 +000015199 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015200 shared_flag='${wl}-G'
15201 else
15202 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015203 fi
John Criswell47fdd832003-07-14 16:52:07 +000015204 fi
15205 fi
15206
15207 # It seems that -bexpall does not export symbols beginning with
15208 # underscore (_), so it is better to generate a list of symbols to export.
15209 always_export_symbols=yes
15210 if test "$aix_use_runtimelinking" = yes; then
15211 # Warning - without using the other runtime loading flags (-brtl),
15212 # -berok will link without error, but may produce a broken library.
15213 allow_undefined_flag='-berok'
15214 # Determine the default libpath from the value encoded in an empty executable.
15215 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015221
John Criswell7a73b802003-06-30 21:59:07 +000015222int
15223main ()
15224{
John Criswell47fdd832003-07-14 16:52:07 +000015225
John Criswell7a73b802003-06-30 21:59:07 +000015226 ;
15227 return 0;
15228}
15229_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015230rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015231if { (ac_try="$ac_link"
15232case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015238 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248esac
15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015264
John Criswell47fdd832003-07-14 16:52:07 +000015265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15266}'`
15267# Check for a 64-bit object if we didn't find anything.
15268if 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; }
15269}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015270else
15271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015272sed 's/^/| /' conftest.$ac_ext >&5
15273
Reid Spencera773bd52006-08-04 18:18:08 +000015274
John Criswell7a73b802003-06-30 21:59:07 +000015275fi
Reid Spencera773bd52006-08-04 18:18:08 +000015276
15277rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015278 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015279if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015280
John Criswell47fdd832003-07-14 16:52:07 +000015281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015282 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 +000015283 else
15284 if test "$host_cpu" = ia64; then
15285 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15286 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015287 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 +000015288 else
15289 # Determine the default libpath from the value encoded in an empty executable.
15290 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015296
John Criswell47fdd832003-07-14 16:52:07 +000015297int
15298main ()
15299{
John Criswell7a73b802003-06-30 21:59:07 +000015300
John Criswell47fdd832003-07-14 16:52:07 +000015301 ;
15302 return 0;
15303}
15304_ACEOF
15305rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015306if { (ac_try="$ac_link"
15307case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15310esac
15311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15323esac
15324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15333esac
15334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015339
John Criswell47fdd832003-07-14 16:52:07 +000015340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15341}'`
15342# Check for a 64-bit object if we didn't find anything.
15343if 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; }
15344}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015345else
John Criswell47fdd832003-07-14 16:52:07 +000015346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015347sed 's/^/| /' conftest.$ac_ext >&5
15348
Reid Spencera773bd52006-08-04 18:18:08 +000015349
John Criswell47fdd832003-07-14 16:52:07 +000015350fi
Reid Spencera773bd52006-08-04 18:18:08 +000015351
15352rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015353 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015355
John Criswell47fdd832003-07-14 16:52:07 +000015356 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15357 # Warning - without using the other run time loading flags,
15358 # -berok will link without error, but may produce a broken library.
15359 no_undefined_flag=' ${wl}-bernotok'
15360 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015361 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015362 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015363 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015364 # This is similar to how AIX traditionally builds its shared libraries.
15365 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 +000015366 fi
15367 fi
John Criswell7a73b802003-06-30 21:59:07 +000015368 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015369
15370 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015371 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 +000015372 hardcode_libdir_flag_spec='-L$libdir'
15373 hardcode_minus_L=yes
15374 # see comment about different semantics on the GNU ld section
15375 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015376 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015377
Reid Spencer2706f8c2004-09-19 23:53:36 +000015378 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015379 export_dynamic_flag_spec=-rdynamic
15380 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015381
John Criswell47fdd832003-07-14 16:52:07 +000015382 cygwin* | mingw* | pw32*)
15383 # When not using gcc, we currently assume that we are using
15384 # Microsoft Visual C++.
15385 # hardcode_libdir_flag_spec is actually meaningless, as there is
15386 # no search path for DLLs.
15387 hardcode_libdir_flag_spec=' '
15388 allow_undefined_flag=unsupported
15389 # Tell ltmain to make .lib files, not .a files.
15390 libext=lib
15391 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015392 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015393 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015394 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015395 # The linker will automatically build a .lib file if we build a DLL.
15396 old_archive_From_new_cmds='true'
15397 # FIXME: Should let the user specify the lib program.
15398 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15399 fix_srcfile_path='`cygpath -w "$srcfile"`'
15400 enable_shared_with_static_runtimes=yes
15401 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015402
John Criswell47fdd832003-07-14 16:52:07 +000015403 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015404 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015405 rhapsody* | darwin1.[012])
15406 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15407 ;;
15408 *) # Darwin 1.3 on
15409 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15410 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15411 else
15412 case ${MACOSX_DEPLOYMENT_TARGET} in
15413 10.[012])
15414 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15415 ;;
15416 10.*)
15417 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15418 ;;
15419 esac
15420 fi
15421 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015422 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015423 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015424 hardcode_direct=no
15425 hardcode_automatic=yes
15426 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015427 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015428 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015429 if test "$GCC" = yes ; then
15430 output_verbose_link_cmd='echo'
15431 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15432 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015433 # 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 +000015434 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}'
15435 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 +000015436 else
Reid Spencera773bd52006-08-04 18:18:08 +000015437 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015438 xlc*)
15439 output_verbose_link_cmd='echo'
15440 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15441 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015442 # 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 +000015443 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}'
15444 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 +000015445 ;;
15446 *)
15447 ld_shlibs=no
15448 ;;
15449 esac
John Criswell7a73b802003-06-30 21:59:07 +000015450 fi
John Criswell47fdd832003-07-14 16:52:07 +000015451 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015452
John Criswell47fdd832003-07-14 16:52:07 +000015453 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_shlibpath_var=no
15457 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015458
John Criswell47fdd832003-07-14 16:52:07 +000015459 freebsd1*)
15460 ld_shlibs=no
15461 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015462
John Criswell47fdd832003-07-14 16:52:07 +000015463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15464 # support. Future versions do this automatically, but an explicit c++rt0.o
15465 # does not break anything, and helps significantly (at the cost of a little
15466 # extra space).
15467 freebsd2.2*)
15468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15469 hardcode_libdir_flag_spec='-R$libdir'
15470 hardcode_direct=yes
15471 hardcode_shlibpath_var=no
15472 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015473
John Criswell47fdd832003-07-14 16:52:07 +000015474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15475 freebsd2*)
15476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_direct=yes
15478 hardcode_minus_L=yes
15479 hardcode_shlibpath_var=no
15480 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015481
John Criswell47fdd832003-07-14 16:52:07 +000015482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015483 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015484 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15485 hardcode_libdir_flag_spec='-R$libdir'
15486 hardcode_direct=yes
15487 hardcode_shlibpath_var=no
15488 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015489
John Criswell47fdd832003-07-14 16:52:07 +000015490 hpux9*)
15491 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015492 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 +000015493 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015494 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 +000015495 fi
15496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15497 hardcode_libdir_separator=:
15498 hardcode_direct=yes
15499
15500 # hardcode_minus_L: Not really in the search PATH,
15501 # but as the default location of the library.
15502 hardcode_minus_L=yes
15503 export_dynamic_flag_spec='${wl}-E'
15504 ;;
15505
Reid Spencera773bd52006-08-04 18:18:08 +000015506 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15509 else
15510 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15511 fi
15512 if test "$with_gnu_ld" = no; then
15513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514 hardcode_libdir_separator=:
15515
15516 hardcode_direct=yes
15517 export_dynamic_flag_spec='${wl}-E'
15518
15519 # hardcode_minus_L: Not really in the search PATH,
15520 # but as the default location of the library.
15521 hardcode_minus_L=yes
15522 fi
15523 ;;
15524
15525 hpux11*)
15526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15527 case $host_cpu in
15528 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015529 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015531 ia64*)
15532 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15533 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015534 *)
15535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15536 ;;
15537 esac
15538 else
Reid Spencera773bd52006-08-04 18:18:08 +000015539 case $host_cpu in
15540 hppa*64*)
15541 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15542 ;;
15543 ia64*)
15544 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015545 ;;
15546 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015547 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 +000015548 ;;
15549 esac
15550 fi
15551 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015552 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15553 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015554
Reid Spencera773bd52006-08-04 18:18:08 +000015555 case $host_cpu in
15556 hppa*64*|ia64*)
15557 hardcode_libdir_flag_spec_ld='+b $libdir'
15558 hardcode_direct=no
15559 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015560 ;;
15561 *)
John Criswell47fdd832003-07-14 16:52:07 +000015562 hardcode_direct=yes
15563 export_dynamic_flag_spec='${wl}-E'
15564
15565 # hardcode_minus_L: Not really in the search PATH,
15566 # but as the default location of the library.
15567 hardcode_minus_L=yes
15568 ;;
15569 esac
15570 fi
15571 ;;
15572
15573 irix5* | irix6* | nonstopux*)
15574 if test "$GCC" = yes; then
15575 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'
15576 else
15577 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'
15578 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15579 fi
15580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15581 hardcode_libdir_separator=:
15582 link_all_deplibs=yes
15583 ;;
15584
15585 netbsd*)
15586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15588 else
15589 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15590 fi
15591 hardcode_libdir_flag_spec='-R$libdir'
15592 hardcode_direct=yes
15593 hardcode_shlibpath_var=no
15594 ;;
15595
15596 newsos6)
15597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_direct=yes
15599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 hardcode_shlibpath_var=no
15602 ;;
15603
15604 openbsd*)
15605 hardcode_direct=yes
15606 hardcode_shlibpath_var=no
15607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015609 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 +000015610 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15611 export_dynamic_flag_spec='${wl}-E'
15612 else
15613 case $host_os in
15614 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_libdir_flag_spec='-R$libdir'
15617 ;;
15618 *)
15619 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15620 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15621 ;;
15622 esac
15623 fi
15624 ;;
15625
15626 os2*)
15627 hardcode_libdir_flag_spec='-L$libdir'
15628 hardcode_minus_L=yes
15629 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015630 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 +000015631 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15632 ;;
15633
15634 osf3*)
15635 if test "$GCC" = yes; then
15636 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15637 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'
15638 else
15639 allow_undefined_flag=' -expect_unresolved \*'
15640 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'
15641 fi
15642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15643 hardcode_libdir_separator=:
15644 ;;
15645
15646 osf4* | osf5*) # as osf3* with the addition of -msym flag
15647 if test "$GCC" = yes; then
15648 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15649 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'
15650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15651 else
15652 allow_undefined_flag=' -expect_unresolved \*'
15653 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 +000015654 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 +000015655 $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 +000015656
John Criswell47fdd832003-07-14 16:52:07 +000015657 # Both c and cxx compiler support -rpath directly
15658 hardcode_libdir_flag_spec='-rpath $libdir'
15659 fi
15660 hardcode_libdir_separator=:
15661 ;;
15662
John Criswell47fdd832003-07-14 16:52:07 +000015663 solaris*)
15664 no_undefined_flag=' -z text'
15665 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015666 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015667 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015668 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15669 $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 +000015670 else
Reid Spencera773bd52006-08-04 18:18:08 +000015671 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015672 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015673 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15674 $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 +000015675 fi
15676 hardcode_libdir_flag_spec='-R$libdir'
15677 hardcode_shlibpath_var=no
15678 case $host_os in
15679 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015680 *)
15681 # The compiler driver will combine linker options so we
15682 # cannot just pass the convience library names through
15683 # without $wl, iff we do not link with $LD.
15684 # Luckily, gcc supports the same syntax we need for Sun Studio.
15685 # Supported since Solaris 2.6 (maybe 2.5.1?)
15686 case $wlarc in
15687 '')
15688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15689 *)
15690 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' ;;
15691 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015692 esac
15693 link_all_deplibs=yes
15694 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015695
John Criswell47fdd832003-07-14 16:52:07 +000015696 sunos4*)
15697 if test "x$host_vendor" = xsequent; then
15698 # Use $CC to link under sequent, because it throws in some extra .o
15699 # files that make .init and .fini sections work.
15700 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15701 else
15702 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15703 fi
15704 hardcode_libdir_flag_spec='-L$libdir'
15705 hardcode_direct=yes
15706 hardcode_minus_L=yes
15707 hardcode_shlibpath_var=no
15708 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015709
John Criswell47fdd832003-07-14 16:52:07 +000015710 sysv4)
15711 case $host_vendor in
15712 sni)
15713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 hardcode_direct=yes # is this really true???
15715 ;;
15716 siemens)
15717 ## LD is ld it makes a PLAMLIB
15718 ## CC just makes a GrossModule.
15719 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15720 reload_cmds='$CC -r -o $output$reload_objs'
15721 hardcode_direct=no
15722 ;;
15723 motorola)
15724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15726 ;;
15727 esac
15728 runpath_var='LD_RUN_PATH'
15729 hardcode_shlibpath_var=no
15730 ;;
15731
15732 sysv4.3*)
15733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734 hardcode_shlibpath_var=no
15735 export_dynamic_flag_spec='-Bexport'
15736 ;;
15737
15738 sysv4*MP*)
15739 if test -d /usr/nec; then
15740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_shlibpath_var=no
15742 runpath_var=LD_RUN_PATH
15743 hardcode_runpath_var=yes
15744 ld_shlibs=yes
15745 fi
15746 ;;
15747
Reid Spencera773bd52006-08-04 18:18:08 +000015748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15749 no_undefined_flag='${wl}-z,text'
15750 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015751 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015752 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015753
John Criswell47fdd832003-07-14 16:52:07 +000015754 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015755 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 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 +000015757 else
Reid Spencera773bd52006-08-04 18:18:08 +000015758 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 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 +000015760 fi
John Criswell47fdd832003-07-14 16:52:07 +000015761 ;;
15762
Reid Spencera773bd52006-08-04 18:18:08 +000015763 sysv5* | sco3.2v5* | sco5v6*)
15764 # Note: We can NOT use -z defs as we might desire, because we do not
15765 # link with -lc, and that would cause any symbols used from libc to
15766 # always be unresolved, which means just about no library would
15767 # ever link correctly. If we're not using GNU ld we use -z text
15768 # though, which does catch some bad symbols but isn't as heavy-handed
15769 # as -z defs.
15770 no_undefined_flag='${wl}-z,text'
15771 allow_undefined_flag='${wl}-z,nodefs'
15772 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015773 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015774 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15775 hardcode_libdir_separator=':'
15776 link_all_deplibs=yes
15777 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015778 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015779
15780 if test "$GCC" = yes; then
15781 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15782 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 else
15784 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15786 fi
John Criswell47fdd832003-07-14 16:52:07 +000015787 ;;
15788
15789 uts4*)
15790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_libdir_flag_spec='-L$libdir'
15792 hardcode_shlibpath_var=no
15793 ;;
15794
15795 *)
15796 ld_shlibs=no
15797 ;;
15798 esac
15799 fi
15800
Reid Spencera773bd52006-08-04 18:18:08 +000015801{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15802echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015803test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015804
John Criswell47fdd832003-07-14 16:52:07 +000015805#
15806# Do we need to explicitly link libc?
15807#
15808case "x$archive_cmds_need_lc" in
15809x|xyes)
15810 # Assume -lc should be added
15811 archive_cmds_need_lc=yes
15812
15813 if test "$enable_shared" = yes && test "$GCC" = yes; then
15814 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015815 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015816 # FIXME: we may have to deal with multi-command sequences.
15817 ;;
15818 '$CC '*)
15819 # Test whether the compiler implicitly links with -lc since on some
15820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15821 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015822 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15823echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015824 $rm conftest*
15825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15826
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828 (eval $ac_compile) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } 2>conftest.err; then
15832 soname=conftest
15833 lib=conftest
15834 libobjs=conftest.$ac_objext
15835 deplibs=
15836 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015837 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015838 compiler_flags=-v
15839 linker_flags=-v
15840 verstring=
15841 output_objdir=.
15842 libname=conftest
15843 lt_save_allow_undefined_flag=$allow_undefined_flag
15844 allow_undefined_flag=
15845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15846 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }
15850 then
15851 archive_cmds_need_lc=no
15852 else
15853 archive_cmds_need_lc=yes
15854 fi
15855 allow_undefined_flag=$lt_save_allow_undefined_flag
15856 else
15857 cat conftest.err 1>&5
15858 fi
15859 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015860 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15861echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015862 ;;
15863 esac
15864 fi
15865 ;;
15866esac
15867
Reid Spencera773bd52006-08-04 18:18:08 +000015868{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15869echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015870library_names_spec=
15871libname_spec='lib$name'
15872soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015873shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015874postinstall_cmds=
15875postuninstall_cmds=
15876finish_cmds=
15877finish_eval=
15878shlibpath_var=
15879shlibpath_overrides_runpath=unknown
15880version_type=none
15881dynamic_linker="$host_os ld.so"
15882sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015883if test "$GCC" = yes; then
15884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15885 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15886 # if the path contains ";" then we assume it to be the separator
15887 # otherwise default to the standard path separator (i.e. ":") - it is
15888 # assumed that no part of a normal pathname contains ";" but that should
15889 # okay in the real world where ";" in dirpaths is itself problematic.
15890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15891 else
15892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15893 fi
15894else
15895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15896fi
15897need_lib_prefix=unknown
15898hardcode_into_libs=no
15899
15900# when you set need_version to no, make sure it does not cause -set_version
15901# flags to be left without arguments
15902need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015903
15904case $host_os in
15905aix3*)
15906 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015908 shlibpath_var=LIBPATH
15909
John Criswell47fdd832003-07-14 16:52:07 +000015910 # AIX 3 has no versioning support, so we append a major version to the name.
15911 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015912 ;;
15913
15914aix4* | aix5*)
15915 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015916 need_lib_prefix=no
15917 need_version=no
15918 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015919 if test "$host_cpu" = ia64; then
15920 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015922 shlibpath_var=LD_LIBRARY_PATH
15923 else
15924 # With GCC up to 2.95.x, collect2 would create an import file
15925 # for dependence libraries. The import file would start with
15926 # the line `#! .'. This would cause the generated library to
15927 # depend on `.', always an invalid library. This was fixed in
15928 # development snapshots of GCC prior to 3.0.
15929 case $host_os in
15930 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15932 echo ' yes '
15933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15934 :
15935 else
15936 can_build_shared=no
15937 fi
15938 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015939 esac
John Criswell47fdd832003-07-14 16:52:07 +000015940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15941 # soname into executable. Probably we can add versioning support to
15942 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015943 if test "$aix_use_runtimelinking" = yes; then
15944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15945 # instead of lib<name>.a to let people know that these are not
15946 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015948 else
15949 # We preserve .a as extension for shared libraries through AIX4.2
15950 # and later when we are not doing run time linking.
15951 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015952 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015953 fi
15954 shlibpath_var=LIBPATH
15955 fi
15956 ;;
15957
15958amigaos*)
15959 library_names_spec='$libname.ixlibrary $libname.a'
15960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015961 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 +000015962 ;;
15963
15964beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015965 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015966 dynamic_linker="$host_os ld.so"
15967 shlibpath_var=LIBRARY_PATH
15968 ;;
15969
Reid Spencer2706f8c2004-09-19 23:53:36 +000015970bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015971 version_type=linux
15972 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015979 # the default ld.so.conf also contains /usr/contrib/lib and
15980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15981 # libtool to hard-code these into programs
15982 ;;
15983
15984cygwin* | mingw* | pw32*)
15985 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015986 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015987 need_version=no
15988 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015989
John Criswell7a73b802003-06-30 21:59:07 +000015990 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015991 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015992 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015994 postinstall_cmds='base_file=`basename \${file}`~
15995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15996 dldir=$destdir/`dirname \$dlpath`~
15997 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015998 $install_prog $dir/$dlname \$dldir/$dlname~
15999 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16001 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016002 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016003 shlibpath_overrides_runpath=yes
16004
16005 case $host_os in
16006 cygwin*)
16007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16008 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 +000016009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016010 ;;
16011 mingw*)
16012 # MinGW DLLs use traditional 'lib' prefix
16013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16015 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16016 # It is most probably a Windows format PATH printed by
16017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16018 # path with ; separators, and with drive letters. We can handle the
16019 # drive letters (cygwin fileutils understands them), so leave them,
16020 # especially as we might pass files found there to a mingw objdump,
16021 # which wouldn't understand a cygwinified path. Ahh.
16022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16023 else
16024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16025 fi
16026 ;;
16027 pw32*)
16028 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016029 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 +000016030 ;;
16031 esac
John Criswell7a73b802003-06-30 21:59:07 +000016032 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016033
John Criswell7a73b802003-06-30 21:59:07 +000016034 *)
John Criswell47fdd832003-07-14 16:52:07 +000016035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016036 ;;
16037 esac
16038 dynamic_linker='Win32 ld.exe'
16039 # FIXME: first we should search . and the directory the executable is in
16040 shlibpath_var=PATH
16041 ;;
16042
16043darwin* | rhapsody*)
16044 dynamic_linker="$host_os dyld"
16045 version_type=darwin
16046 need_lib_prefix=no
16047 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016048 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016049 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016050 shlibpath_overrides_runpath=yes
16051 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016052 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016053 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016054 if test "$GCC" = yes; then
16055 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"`
16056 else
16057 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016058 fi
16059 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16060 ;;
16061
16062dgux*)
16063 version_type=linux
16064 need_lib_prefix=no
16065 need_version=no
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016069 ;;
16070
16071freebsd1*)
16072 dynamic_linker=no
16073 ;;
16074
Reid Spencer2706f8c2004-09-19 23:53:36 +000016075kfreebsd*-gnu)
16076 version_type=linux
16077 need_lib_prefix=no
16078 need_version=no
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=no
16083 hardcode_into_libs=yes
16084 dynamic_linker='GNU ld.so'
16085 ;;
16086
Reid Spencera773bd52006-08-04 18:18:08 +000016087freebsd* | dragonfly*)
16088 # DragonFly does not have aout. When/if they implement a new
16089 # versioning mechanism, adjust this.
16090 if test -x /usr/bin/objformat; then
16091 objformat=`/usr/bin/objformat`
16092 else
16093 case $host_os in
16094 freebsd[123]*) objformat=aout ;;
16095 *) objformat=elf ;;
16096 esac
16097 fi
John Criswell7a73b802003-06-30 21:59:07 +000016098 version_type=freebsd-$objformat
16099 case $version_type in
16100 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016102 need_version=no
16103 need_lib_prefix=no
16104 ;;
16105 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016107 need_version=yes
16108 ;;
16109 esac
16110 shlibpath_var=LD_LIBRARY_PATH
16111 case $host_os in
16112 freebsd2*)
16113 shlibpath_overrides_runpath=yes
16114 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016115 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016116 shlibpath_overrides_runpath=yes
16117 hardcode_into_libs=yes
16118 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016119 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16120 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016121 shlibpath_overrides_runpath=no
16122 hardcode_into_libs=yes
16123 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016124 freebsd*) # from 4.6 on
16125 shlibpath_overrides_runpath=yes
16126 hardcode_into_libs=yes
16127 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016128 esac
16129 ;;
16130
16131gnu*)
16132 version_type=linux
16133 need_lib_prefix=no
16134 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16136 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016137 shlibpath_var=LD_LIBRARY_PATH
16138 hardcode_into_libs=yes
16139 ;;
16140
16141hpux9* | hpux10* | hpux11*)
16142 # Give a soname corresponding to the major version so that dld.sl refuses to
16143 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016144 version_type=sunos
16145 need_lib_prefix=no
16146 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016147 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016148 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016149 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016150 hardcode_into_libs=yes
16151 dynamic_linker="$host_os dld.so"
16152 shlibpath_var=LD_LIBRARY_PATH
16153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 if test "X$HPUX_IA64_MODE" = X32; then
16157 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16158 else
16159 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16160 fi
16161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16162 ;;
16163 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016164 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016165 hardcode_into_libs=yes
16166 dynamic_linker="$host_os dld.sl"
16167 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16173 ;;
16174 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016175 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016176 dynamic_linker="$host_os dld.sl"
16177 shlibpath_var=SHLIB_PATH
16178 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 ;;
16182 esac
John Criswell7a73b802003-06-30 21:59:07 +000016183 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16184 postinstall_cmds='chmod 555 $lib'
16185 ;;
16186
Reid Spencera773bd52006-08-04 18:18:08 +000016187interix3*)
16188 version_type=linux
16189 need_lib_prefix=no
16190 need_version=no
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16192 soname_spec='${libname}${release}${shared_ext}$major'
16193 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=no
16196 hardcode_into_libs=yes
16197 ;;
16198
John Criswell47fdd832003-07-14 16:52:07 +000016199irix5* | irix6* | nonstopux*)
16200 case $host_os in
16201 nonstopux*) version_type=nonstopux ;;
16202 *)
16203 if test "$lt_cv_prog_gnu_ld" = yes; then
16204 version_type=linux
16205 else
16206 version_type=irix
16207 fi ;;
16208 esac
John Criswell7a73b802003-06-30 21:59:07 +000016209 need_lib_prefix=no
16210 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016211 soname_spec='${libname}${release}${shared_ext}$major'
16212 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 +000016213 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016214 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016215 libsuff= shlibsuff=
16216 ;;
16217 *)
16218 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016219 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16220 libsuff= shlibsuff= libmagic=32-bit;;
16221 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16222 libsuff=32 shlibsuff=N32 libmagic=N32;;
16223 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16224 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016225 *) libsuff= shlibsuff= libmagic=never-match;;
16226 esac
16227 ;;
16228 esac
16229 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16230 shlibpath_overrides_runpath=no
16231 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16232 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016233 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016234 ;;
16235
16236# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016237linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016238 dynamic_linker=no
16239 ;;
16240
16241# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016242linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016243 version_type=linux
16244 need_lib_prefix=no
16245 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 shlibpath_overrides_runpath=no
16251 # This implies no fast_install, which is unacceptable.
16252 # Some rework will be needed to allow for fast_install
16253 # before this can be enabled.
16254 hardcode_into_libs=yes
16255
Reid Spencer2706f8c2004-09-19 23:53:36 +000016256 # Append ld.so.conf contents to the search path
16257 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016258 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 +000016259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16260 fi
16261
John Criswell7a73b802003-06-30 21:59:07 +000016262 # We used to test for /lib/ld.so.1 and disable shared libraries on
16263 # powerpc, because MkLinux only supported shared libraries with the
16264 # GNU dynamic linker. Since this was broken with cross compilers,
16265 # most powerpc-linux boxes support dynamic linking these days and
16266 # people can always --disable-shared, the test was removed, and we
16267 # assume the GNU/Linux dynamic linker is in use.
16268 dynamic_linker='GNU/Linux ld.so'
16269 ;;
16270
Reid Spencer2706f8c2004-09-19 23:53:36 +000016271knetbsd*-gnu)
16272 version_type=linux
16273 need_lib_prefix=no
16274 need_version=no
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16276 soname_spec='${libname}${release}${shared_ext}$major'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=no
16279 hardcode_into_libs=yes
16280 dynamic_linker='GNU ld.so'
16281 ;;
16282
John Criswell7a73b802003-06-30 21:59:07 +000016283netbsd*)
16284 version_type=sunos
16285 need_lib_prefix=no
16286 need_version=no
16287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16290 dynamic_linker='NetBSD (a.out) ld.so'
16291 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016293 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016294 dynamic_linker='NetBSD ld.elf_so'
16295 fi
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=yes
16298 hardcode_into_libs=yes
16299 ;;
16300
16301newsos6)
16302 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 shlibpath_overrides_runpath=yes
16306 ;;
16307
Reid Spencer2706f8c2004-09-19 23:53:36 +000016308nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016309 version_type=linux
16310 need_lib_prefix=no
16311 need_version=no
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=yes
16316 ;;
16317
16318openbsd*)
16319 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016320 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016321 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016322 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16323 case $host_os in
16324 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16325 *) need_version=no ;;
16326 esac
John Criswell47fdd832003-07-14 16:52:07 +000016327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16329 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016330 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 +000016331 case $host_os in
16332 openbsd2.[89] | openbsd2.[89].*)
16333 shlibpath_overrides_runpath=no
16334 ;;
16335 *)
16336 shlibpath_overrides_runpath=yes
16337 ;;
16338 esac
John Criswell7a73b802003-06-30 21:59:07 +000016339 else
16340 shlibpath_overrides_runpath=yes
16341 fi
John Criswell7a73b802003-06-30 21:59:07 +000016342 ;;
16343
16344os2*)
16345 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016346 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016347 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016348 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016349 dynamic_linker='OS/2 ld.exe'
16350 shlibpath_var=LIBPATH
16351 ;;
16352
16353osf3* | osf4* | osf5*)
16354 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016355 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016356 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016357 soname_spec='${libname}${release}${shared_ext}$major'
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016359 shlibpath_var=LD_LIBRARY_PATH
16360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16362 ;;
16363
John Criswell7a73b802003-06-30 21:59:07 +000016364solaris*)
16365 version_type=linux
16366 need_lib_prefix=no
16367 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=yes
16372 hardcode_into_libs=yes
16373 # ldd complains unless libraries are executable
16374 postinstall_cmds='chmod +x $lib'
16375 ;;
16376
16377sunos4*)
16378 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 shlibpath_overrides_runpath=yes
16383 if test "$with_gnu_ld" = yes; then
16384 need_lib_prefix=no
16385 fi
16386 need_version=yes
16387 ;;
16388
Reid Spencera773bd52006-08-04 18:18:08 +000016389sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016390 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016393 shlibpath_var=LD_LIBRARY_PATH
16394 case $host_vendor in
16395 sni)
16396 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016397 need_lib_prefix=no
16398 export_dynamic_flag_spec='${wl}-Blargedynsym'
16399 runpath_var=LD_RUN_PATH
16400 ;;
16401 siemens)
16402 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016403 ;;
16404 motorola)
16405 need_lib_prefix=no
16406 need_version=no
16407 shlibpath_overrides_runpath=no
16408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16409 ;;
16410 esac
16411 ;;
16412
John Criswell7a73b802003-06-30 21:59:07 +000016413sysv4*MP*)
16414 if test -d /usr/nec ;then
16415 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16417 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016418 shlibpath_var=LD_LIBRARY_PATH
16419 fi
16420 ;;
16421
Reid Spencera773bd52006-08-04 18:18:08 +000016422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16423 version_type=freebsd-elf
16424 need_lib_prefix=no
16425 need_version=no
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 hardcode_into_libs=yes
16430 if test "$with_gnu_ld" = yes; then
16431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16432 shlibpath_overrides_runpath=no
16433 else
16434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16435 shlibpath_overrides_runpath=yes
16436 case $host_os in
16437 sco3.2v5*)
16438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16439 ;;
16440 esac
16441 fi
16442 sys_lib_dlsearch_path_spec='/usr/lib'
16443 ;;
16444
John Criswell47fdd832003-07-14 16:52:07 +000016445uts4*)
16446 version_type=linux
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448 soname_spec='${libname}${release}${shared_ext}$major'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 ;;
16451
John Criswell7a73b802003-06-30 21:59:07 +000016452*)
16453 dynamic_linker=no
16454 ;;
16455esac
Reid Spencera773bd52006-08-04 18:18:08 +000016456{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16457echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016458test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016459
Reid Spencera773bd52006-08-04 18:18:08 +000016460variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16461if test "$GCC" = yes; then
16462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16463fi
16464
16465{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16466echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016467hardcode_action=
16468if test -n "$hardcode_libdir_flag_spec" || \
16469 test -n "$runpath_var" || \
16470 test "X$hardcode_automatic" = "Xyes" ; then
16471
16472 # We can hardcode non-existant directories.
16473 if test "$hardcode_direct" != no &&
16474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16475 # have to relink, otherwise we might link with an installed library
16476 # when we should be linking with a yet-to-be-installed one
16477 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16478 test "$hardcode_minus_L" != no; then
16479 # Linking always hardcodes the temporary library directory.
16480 hardcode_action=relink
16481 else
16482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16483 hardcode_action=immediate
16484 fi
16485else
16486 # We cannot hardcode anything, or else we can only hardcode existing
16487 # directories.
16488 hardcode_action=unsupported
16489fi
Reid Spencera773bd52006-08-04 18:18:08 +000016490{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16491echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016492
16493if test "$hardcode_action" = relink; then
16494 # Fast installation is not supported
16495 enable_fast_install=no
16496elif test "$shlibpath_overrides_runpath" = yes ||
16497 test "$enable_shared" = no; then
16498 # Fast installation is not necessary
16499 enable_fast_install=needless
16500fi
16501
16502striplib=
16503old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016504{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16505echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016506if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16507 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16508 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016509 { echo "$as_me:$LINENO: result: yes" >&5
16510echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016511else
16512# FIXME - insert some real tests, host_os isn't really good enough
16513 case $host_os in
16514 darwin*)
16515 if test -n "$STRIP" ; then
16516 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016517 { echo "$as_me:$LINENO: result: yes" >&5
16518echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016519 else
Reid Spencera773bd52006-08-04 18:18:08 +000016520 { echo "$as_me:$LINENO: result: no" >&5
16521echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016522fi
16523 ;;
16524 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016525 { echo "$as_me:$LINENO: result: no" >&5
16526echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016527 ;;
16528 esac
16529fi
16530
John Criswell7a73b802003-06-30 21:59:07 +000016531if test "x$enable_dlopen" != xyes; then
16532 enable_dlopen=unknown
16533 enable_dlopen_self=unknown
16534 enable_dlopen_self_static=unknown
16535else
16536 lt_cv_dlopen=no
16537 lt_cv_dlopen_libs=
16538
16539 case $host_os in
16540 beos*)
16541 lt_cv_dlopen="load_add_on"
16542 lt_cv_dlopen_libs=
16543 lt_cv_dlopen_self=yes
16544 ;;
16545
John Criswell47fdd832003-07-14 16:52:07 +000016546 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016547 lt_cv_dlopen="LoadLibrary"
16548 lt_cv_dlopen_libs=
16549 ;;
16550
John Criswell47fdd832003-07-14 16:52:07 +000016551 cygwin*)
16552 lt_cv_dlopen="dlopen"
16553 lt_cv_dlopen_libs=
16554 ;;
16555
16556 darwin*)
16557 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016558 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16559echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016560if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562else
16563 ac_check_lib_save_LIBS=$LIBS
16564LIBS="-ldl $LIBS"
16565cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016566/* confdefs.h. */
16567_ACEOF
16568cat confdefs.h >>conftest.$ac_ext
16569cat >>conftest.$ac_ext <<_ACEOF
16570/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016571
Reid Spencera773bd52006-08-04 18:18:08 +000016572/* Override any GCC internal prototype to avoid an error.
16573 Use char because int might match the return type of a GCC
16574 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016575#ifdef __cplusplus
16576extern "C"
16577#endif
John Criswell47fdd832003-07-14 16:52:07 +000016578char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016579int
16580main ()
16581{
Reid Spencera773bd52006-08-04 18:18:08 +000016582return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016583 ;
16584 return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016588if { (ac_try="$ac_link"
16589case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16592esac
16593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016595 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016596 grep -v '^ *+' conftest.er1 >conftest.err
16597 rm -f conftest.er1
16598 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16602 { (case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16605esac
16606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16615esac
16616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 ac_cv_lib_dl_dlopen=yes
16622else
16623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016624sed 's/^/| /' conftest.$ac_ext >&5
16625
Reid Spencera773bd52006-08-04 18:18:08 +000016626 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016627fi
Reid Spencera773bd52006-08-04 18:18:08 +000016628
16629rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016630 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016631LIBS=$ac_check_lib_save_LIBS
16632fi
Reid Spencera773bd52006-08-04 18:18:08 +000016633{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16634echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016635if test $ac_cv_lib_dl_dlopen = yes; then
16636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16637else
16638
16639 lt_cv_dlopen="dyld"
16640 lt_cv_dlopen_libs=
16641 lt_cv_dlopen_self=yes
16642
16643fi
16644
16645 ;;
16646
John Criswell7a73b802003-06-30 21:59:07 +000016647 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016648 { echo "$as_me:$LINENO: checking for shl_load" >&5
16649echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016650if test "${ac_cv_func_shl_load+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652else
16653 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016654/* confdefs.h. */
16655_ACEOF
16656cat confdefs.h >>conftest.$ac_ext
16657cat >>conftest.$ac_ext <<_ACEOF
16658/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016659/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16661#define shl_load innocuous_shl_load
16662
John Criswell7a73b802003-06-30 21:59:07 +000016663/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016664 which can conflict with char shl_load (); below.
16665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16666 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016667
John Criswell0c38eaf2003-09-10 15:17:25 +000016668#ifdef __STDC__
16669# include <limits.h>
16670#else
16671# include <assert.h>
16672#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016673
16674#undef shl_load
16675
Reid Spencera773bd52006-08-04 18:18:08 +000016676/* Override any GCC internal prototype to avoid an error.
16677 Use char because int might match the return type of a GCC
16678 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016679#ifdef __cplusplus
16680extern "C"
16681#endif
John Criswell7a73b802003-06-30 21:59:07 +000016682char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016683/* The GNU C library defines this for functions which it implements
16684 to always fail with ENOSYS. Some functions are actually named
16685 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016686#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016687choke me
John Criswell7a73b802003-06-30 21:59:07 +000016688#endif
16689
John Criswell0c38eaf2003-09-10 15:17:25 +000016690int
16691main ()
16692{
Reid Spencera773bd52006-08-04 18:18:08 +000016693return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016694 ;
16695 return 0;
16696}
16697_ACEOF
16698rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016699if { (ac_try="$ac_link"
16700case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703esac
16704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16713 { (case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16716esac
16717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016723 { (case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726esac
16727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_func_shl_load=yes
16733else
16734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016735sed 's/^/| /' conftest.$ac_ext >&5
16736
Reid Spencera773bd52006-08-04 18:18:08 +000016737 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016738fi
Reid Spencera773bd52006-08-04 18:18:08 +000016739
16740rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016741 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016742fi
Reid Spencera773bd52006-08-04 18:18:08 +000016743{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16744echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016745if test $ac_cv_func_shl_load = yes; then
16746 lt_cv_dlopen="shl_load"
16747else
Reid Spencera773bd52006-08-04 18:18:08 +000016748 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16749echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016750if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16752else
16753 ac_check_lib_save_LIBS=$LIBS
16754LIBS="-ldld $LIBS"
16755cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016756/* confdefs.h. */
16757_ACEOF
16758cat confdefs.h >>conftest.$ac_ext
16759cat >>conftest.$ac_ext <<_ACEOF
16760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016761
Reid Spencera773bd52006-08-04 18:18:08 +000016762/* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016765#ifdef __cplusplus
16766extern "C"
16767#endif
John Criswell7a73b802003-06-30 21:59:07 +000016768char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016769int
16770main ()
16771{
Reid Spencera773bd52006-08-04 18:18:08 +000016772return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016773 ;
16774 return 0;
16775}
16776_ACEOF
16777rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016778if { (ac_try="$ac_link"
16779case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782esac
16783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016785 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795esac
16796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_lib_dld_shl_load=yes
16812else
16813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016814sed 's/^/| /' conftest.$ac_ext >&5
16815
Reid Spencera773bd52006-08-04 18:18:08 +000016816 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016817fi
Reid Spencera773bd52006-08-04 18:18:08 +000016818
16819rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016820 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016821LIBS=$ac_check_lib_save_LIBS
16822fi
Reid Spencera773bd52006-08-04 18:18:08 +000016823{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16824echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016825if test $ac_cv_lib_dld_shl_load = yes; then
16826 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16827else
Reid Spencera773bd52006-08-04 18:18:08 +000016828 { echo "$as_me:$LINENO: checking for dlopen" >&5
16829echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016830if test "${ac_cv_func_dlopen+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832else
16833 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016839/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16841#define dlopen innocuous_dlopen
16842
John Criswell7a73b802003-06-30 21:59:07 +000016843/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016844 which can conflict with char dlopen (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016847
John Criswell0c38eaf2003-09-10 15:17:25 +000016848#ifdef __STDC__
16849# include <limits.h>
16850#else
16851# include <assert.h>
16852#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016853
16854#undef dlopen
16855
Reid Spencera773bd52006-08-04 18:18:08 +000016856/* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016859#ifdef __cplusplus
16860extern "C"
16861#endif
John Criswell7a73b802003-06-30 21:59:07 +000016862char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016863/* The GNU C library defines this for functions which it implements
16864 to always fail with ENOSYS. Some functions are actually named
16865 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016866#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016867choke me
John Criswell7a73b802003-06-30 21:59:07 +000016868#endif
16869
John Criswell0c38eaf2003-09-10 15:17:25 +000016870int
16871main ()
16872{
Reid Spencera773bd52006-08-04 18:18:08 +000016873return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016874 ;
16875 return 0;
16876}
16877_ACEOF
16878rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016879if { (ac_try="$ac_link"
16880case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16883esac
16884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16893 { (case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896esac
16897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16906esac
16907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16912 ac_cv_func_dlopen=yes
16913else
16914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016915sed 's/^/| /' conftest.$ac_ext >&5
16916
Reid Spencera773bd52006-08-04 18:18:08 +000016917 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016918fi
Reid Spencera773bd52006-08-04 18:18:08 +000016919
16920rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016921 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016922fi
Reid Spencera773bd52006-08-04 18:18:08 +000016923{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16924echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016925if test $ac_cv_func_dlopen = yes; then
16926 lt_cv_dlopen="dlopen"
16927else
Reid Spencera773bd52006-08-04 18:18:08 +000016928 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16929echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016930if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932else
16933 ac_check_lib_save_LIBS=$LIBS
16934LIBS="-ldl $LIBS"
16935cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016941
Reid Spencera773bd52006-08-04 18:18:08 +000016942/* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016945#ifdef __cplusplus
16946extern "C"
16947#endif
John Criswell7a73b802003-06-30 21:59:07 +000016948char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016949int
16950main ()
16951{
Reid Spencera773bd52006-08-04 18:18:08 +000016952return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016958if { (ac_try="$ac_link"
16959case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962esac
16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016965 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_lib_dl_dlopen=yes
16992else
16993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016994sed 's/^/| /' conftest.$ac_ext >&5
16995
Reid Spencera773bd52006-08-04 18:18:08 +000016996 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016997fi
Reid Spencera773bd52006-08-04 18:18:08 +000016998
16999rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017001LIBS=$ac_check_lib_save_LIBS
17002fi
Reid Spencera773bd52006-08-04 18:18:08 +000017003{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17004echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017005if test $ac_cv_lib_dl_dlopen = yes; then
17006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17007else
Reid Spencera773bd52006-08-04 18:18:08 +000017008 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17009echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017010if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012else
17013 ac_check_lib_save_LIBS=$LIBS
17014LIBS="-lsvld $LIBS"
17015cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017016/* confdefs.h. */
17017_ACEOF
17018cat confdefs.h >>conftest.$ac_ext
17019cat >>conftest.$ac_ext <<_ACEOF
17020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017021
Reid Spencera773bd52006-08-04 18:18:08 +000017022/* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017025#ifdef __cplusplus
17026extern "C"
17027#endif
John Criswell7a73b802003-06-30 21:59:07 +000017028char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017029int
17030main ()
17031{
Reid Spencera773bd52006-08-04 18:18:08 +000017032return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017033 ;
17034 return 0;
17035}
17036_ACEOF
17037rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017038if { (ac_try="$ac_link"
17039case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042esac
17043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055esac
17056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017062 { (case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17065esac
17066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_lib_svld_dlopen=yes
17072else
17073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017074sed 's/^/| /' conftest.$ac_ext >&5
17075
Reid Spencera773bd52006-08-04 18:18:08 +000017076 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017077fi
Reid Spencera773bd52006-08-04 18:18:08 +000017078
17079rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017080 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017081LIBS=$ac_check_lib_save_LIBS
17082fi
Reid Spencera773bd52006-08-04 18:18:08 +000017083{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17084echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017085if test $ac_cv_lib_svld_dlopen = yes; then
17086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17087else
Reid Spencera773bd52006-08-04 18:18:08 +000017088 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17089echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017090if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17092else
17093 ac_check_lib_save_LIBS=$LIBS
17094LIBS="-ldld $LIBS"
17095cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017096/* confdefs.h. */
17097_ACEOF
17098cat confdefs.h >>conftest.$ac_ext
17099cat >>conftest.$ac_ext <<_ACEOF
17100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017101
Reid Spencera773bd52006-08-04 18:18:08 +000017102/* Override any GCC internal prototype to avoid an error.
17103 Use char because int might match the return type of a GCC
17104 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017105#ifdef __cplusplus
17106extern "C"
17107#endif
John Criswell7a73b802003-06-30 21:59:07 +000017108char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017109int
17110main ()
17111{
Reid Spencera773bd52006-08-04 18:18:08 +000017112return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017113 ;
17114 return 0;
17115}
17116_ACEOF
17117rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017118if { (ac_try="$ac_link"
17119case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122esac
17123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017125 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17132 { (case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17135esac
17136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017142 { (case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17145esac
17146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; }; then
17151 ac_cv_lib_dld_dld_link=yes
17152else
17153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017154sed 's/^/| /' conftest.$ac_ext >&5
17155
Reid Spencera773bd52006-08-04 18:18:08 +000017156 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017157fi
Reid Spencera773bd52006-08-04 18:18:08 +000017158
17159rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017160 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017161LIBS=$ac_check_lib_save_LIBS
17162fi
Reid Spencera773bd52006-08-04 18:18:08 +000017163{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17164echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017165if test $ac_cv_lib_dld_dld_link = yes; then
17166 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17167fi
17168
17169
17170fi
17171
17172
17173fi
17174
17175
17176fi
17177
17178
17179fi
17180
17181
17182fi
17183
17184 ;;
17185 esac
17186
17187 if test "x$lt_cv_dlopen" != xno; then
17188 enable_dlopen=yes
17189 else
17190 enable_dlopen=no
17191 fi
17192
17193 case $lt_cv_dlopen in
17194 dlopen)
17195 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017196 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017197
17198 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017200
17201 save_LIBS="$LIBS"
17202 LIBS="$lt_cv_dlopen_libs $LIBS"
17203
Reid Spencera773bd52006-08-04 18:18:08 +000017204 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17205echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017206if test "${lt_cv_dlopen_self+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208else
17209 if test "$cross_compiling" = yes; then :
17210 lt_cv_dlopen_self=cross
17211else
John Criswell47fdd832003-07-14 16:52:07 +000017212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017213 lt_status=$lt_dlunknown
17214 cat > conftest.$ac_ext <<EOF
Gordon Henriksenc0efff82007-10-02 09:50:32 +000017215#line 17215 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017216#include "confdefs.h"
17217
17218#if HAVE_DLFCN_H
17219#include <dlfcn.h>
17220#endif
17221
17222#include <stdio.h>
17223
17224#ifdef RTLD_GLOBAL
17225# define LT_DLGLOBAL RTLD_GLOBAL
17226#else
17227# ifdef DL_GLOBAL
17228# define LT_DLGLOBAL DL_GLOBAL
17229# else
17230# define LT_DLGLOBAL 0
17231# endif
17232#endif
17233
17234/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17235 find out it does not work in some platform. */
17236#ifndef LT_DLLAZY_OR_NOW
17237# ifdef RTLD_LAZY
17238# define LT_DLLAZY_OR_NOW RTLD_LAZY
17239# else
17240# ifdef DL_LAZY
17241# define LT_DLLAZY_OR_NOW DL_LAZY
17242# else
17243# ifdef RTLD_NOW
17244# define LT_DLLAZY_OR_NOW RTLD_NOW
17245# else
17246# ifdef DL_NOW
17247# define LT_DLLAZY_OR_NOW DL_NOW
17248# else
17249# define LT_DLLAZY_OR_NOW 0
17250# endif
17251# endif
17252# endif
17253# endif
17254#endif
17255
17256#ifdef __cplusplus
17257extern "C" void exit (int);
17258#endif
17259
17260void fnord() { int i=42;}
17261int main ()
17262{
17263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17264 int status = $lt_dlunknown;
17265
17266 if (self)
17267 {
17268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17269 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17270 /* dlclose (self); */
17271 }
Reid Spencera773bd52006-08-04 18:18:08 +000017272 else
17273 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017274
17275 exit (status);
17276}
17277EOF
17278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279 (eval $ac_link) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017283 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017284 lt_status=$?
17285 case x$lt_status in
17286 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17287 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017288 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017289 esac
17290 else :
17291 # compilation failed
17292 lt_cv_dlopen_self=no
17293 fi
17294fi
17295rm -fr conftest*
17296
17297
17298fi
Reid Spencera773bd52006-08-04 18:18:08 +000017299{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17300echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017301
17302 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017303 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17304 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17305echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017306if test "${lt_cv_dlopen_self_static+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308else
17309 if test "$cross_compiling" = yes; then :
17310 lt_cv_dlopen_self_static=cross
17311else
John Criswell47fdd832003-07-14 16:52:07 +000017312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017313 lt_status=$lt_dlunknown
17314 cat > conftest.$ac_ext <<EOF
Gordon Henriksenc0efff82007-10-02 09:50:32 +000017315#line 17315 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017316#include "confdefs.h"
17317
17318#if HAVE_DLFCN_H
17319#include <dlfcn.h>
17320#endif
17321
17322#include <stdio.h>
17323
17324#ifdef RTLD_GLOBAL
17325# define LT_DLGLOBAL RTLD_GLOBAL
17326#else
17327# ifdef DL_GLOBAL
17328# define LT_DLGLOBAL DL_GLOBAL
17329# else
17330# define LT_DLGLOBAL 0
17331# endif
17332#endif
17333
17334/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17335 find out it does not work in some platform. */
17336#ifndef LT_DLLAZY_OR_NOW
17337# ifdef RTLD_LAZY
17338# define LT_DLLAZY_OR_NOW RTLD_LAZY
17339# else
17340# ifdef DL_LAZY
17341# define LT_DLLAZY_OR_NOW DL_LAZY
17342# else
17343# ifdef RTLD_NOW
17344# define LT_DLLAZY_OR_NOW RTLD_NOW
17345# else
17346# ifdef DL_NOW
17347# define LT_DLLAZY_OR_NOW DL_NOW
17348# else
17349# define LT_DLLAZY_OR_NOW 0
17350# endif
17351# endif
17352# endif
17353# endif
17354#endif
17355
17356#ifdef __cplusplus
17357extern "C" void exit (int);
17358#endif
17359
17360void fnord() { int i=42;}
17361int main ()
17362{
17363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17364 int status = $lt_dlunknown;
17365
17366 if (self)
17367 {
17368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17370 /* dlclose (self); */
17371 }
Reid Spencera773bd52006-08-04 18:18:08 +000017372 else
17373 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017374
17375 exit (status);
17376}
17377EOF
17378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379 (eval $ac_link) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017383 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017384 lt_status=$?
17385 case x$lt_status in
17386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017389 esac
17390 else :
17391 # compilation failed
17392 lt_cv_dlopen_self_static=no
17393 fi
17394fi
17395rm -fr conftest*
17396
17397
17398fi
Reid Spencera773bd52006-08-04 18:18:08 +000017399{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17400echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017401 fi
17402
17403 CPPFLAGS="$save_CPPFLAGS"
17404 LDFLAGS="$save_LDFLAGS"
17405 LIBS="$save_LIBS"
17406 ;;
17407 esac
17408
17409 case $lt_cv_dlopen_self in
17410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17411 *) enable_dlopen_self=unknown ;;
17412 esac
17413
17414 case $lt_cv_dlopen_self_static in
17415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17416 *) enable_dlopen_self_static=unknown ;;
17417 esac
17418fi
17419
17420
Reid Spencera773bd52006-08-04 18:18:08 +000017421# Report which library types will actually be built
17422{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17423echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17424{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17425echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017426
Reid Spencera773bd52006-08-04 18:18:08 +000017427{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17428echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017429test "$can_build_shared" = "no" && enable_shared=no
17430
17431# On AIX, shared libraries and static libraries use the same namespace, and
17432# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017433case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017434aix3*)
17435 test "$enable_shared" = yes && enable_static=no
17436 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017437 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017438 postinstall_cmds='$RANLIB $lib'
17439 fi
17440 ;;
17441
Reid Spencer2706f8c2004-09-19 23:53:36 +000017442aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017443 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17444 test "$enable_shared" = yes && enable_static=no
17445 fi
John Criswell7a73b802003-06-30 21:59:07 +000017446 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017447esac
Reid Spencera773bd52006-08-04 18:18:08 +000017448{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17449echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017450
Reid Spencera773bd52006-08-04 18:18:08 +000017451{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17452echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017453# Make sure either enable_shared or enable_static is yes.
17454test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017455{ echo "$as_me:$LINENO: result: $enable_static" >&5
17456echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017457
17458# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017459# libtool distribution, otherwise you forgot to ship ltmain.sh
17460# with your package, and you will get complaints that there are
17461# no rules to generate ltmain.sh.
17462if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017463 # See if we are running on zsh, and set the options which allow our commands through
17464 # without removal of \ escapes.
17465 if test -n "${ZSH_VERSION+set}" ; then
17466 setopt NO_GLOB_SUBST
17467 fi
John Criswell7a73b802003-06-30 21:59:07 +000017468 # Now quote all the things that may contain metacharacters while being
17469 # careful not to overquote the AC_SUBSTed values. We take copies of the
17470 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017471 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 +000017472 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17475 deplibs_check_method reload_flag reload_cmds need_locks \
17476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17477 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017479 old_postinstall_cmds old_postuninstall_cmds \
17480 compiler \
17481 CC \
17482 LD \
17483 lt_prog_compiler_wl \
17484 lt_prog_compiler_pic \
17485 lt_prog_compiler_static \
17486 lt_prog_compiler_no_builtin_flag \
17487 export_dynamic_flag_spec \
17488 thread_safe_flag_spec \
17489 whole_archive_flag_spec \
17490 enable_shared_with_static_runtimes \
17491 old_archive_cmds \
17492 old_archive_from_new_cmds \
17493 predep_objects \
17494 postdep_objects \
17495 predeps \
17496 postdeps \
17497 compiler_lib_search_path \
17498 archive_cmds \
17499 archive_expsym_cmds \
17500 postinstall_cmds \
17501 postuninstall_cmds \
17502 old_archive_from_expsyms_cmds \
17503 allow_undefined_flag \
17504 no_undefined_flag \
17505 export_symbols_cmds \
17506 hardcode_libdir_flag_spec \
17507 hardcode_libdir_flag_spec_ld \
17508 hardcode_libdir_separator \
17509 hardcode_automatic \
17510 module_cmds \
17511 module_expsym_cmds \
17512 lt_cv_prog_compiler_c_o \
17513 exclude_expsyms \
17514 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017515
17516 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017517 old_archive_cmds | \
17518 old_archive_from_new_cmds | \
17519 archive_cmds | \
17520 archive_expsym_cmds | \
17521 module_cmds | \
17522 module_expsym_cmds | \
17523 old_archive_from_expsyms_cmds | \
17524 export_symbols_cmds | \
17525 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017526 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017527 old_postinstall_cmds | old_postuninstall_cmds | \
17528 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017529 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530 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 +000017531 ;;
17532 *)
17533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17534 ;;
17535 esac
17536 done
17537
John Criswell47fdd832003-07-14 16:52:07 +000017538 case $lt_echo in
17539 *'\$0 --fallback-echo"')
17540 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17541 ;;
17542 esac
17543
17544cfgfile="${ofile}T"
17545 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17546 $rm -f "$cfgfile"
17547 { echo "$as_me:$LINENO: creating $ofile" >&5
17548echo "$as_me: creating $ofile" >&6;}
17549
17550 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017551#! $SHELL
17552
John Criswell47fdd832003-07-14 16:52:07 +000017553# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017554# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17555# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17556#
John Criswell47fdd832003-07-14 16:52:07 +000017557# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17558# Free Software Foundation, Inc.
17559#
17560# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017561# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17562#
17563# This program is free software; you can redistribute it and/or modify
17564# it under the terms of the GNU General Public License as published by
17565# the Free Software Foundation; either version 2 of the License, or
17566# (at your option) any later version.
17567#
17568# This program is distributed in the hope that it will be useful, but
17569# WITHOUT ANY WARRANTY; without even the implied warranty of
17570# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17571# General Public License for more details.
17572#
17573# You should have received a copy of the GNU General Public License
17574# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017575# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017576#
17577# As a special exception to the GNU General Public License, if you
17578# distribute this file as part of a program that contains a
17579# configuration script generated by Autoconf, you may include it under
17580# the same distribution terms that you use for the rest of that program.
17581
John Criswell47fdd832003-07-14 16:52:07 +000017582# A sed program that does not truncate output.
17583SED=$lt_SED
17584
John Criswell7a73b802003-06-30 21:59:07 +000017585# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017586Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017587
17588# The HP-UX ksh and POSIX shell print the target directory to stdout
17589# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017591
John Criswell47fdd832003-07-14 16:52:07 +000017592# The names of the tagged configurations supported by this script.
17593available_tags=
17594
John Criswell7a73b802003-06-30 21:59:07 +000017595# ### BEGIN LIBTOOL CONFIG
17596
17597# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17598
17599# Shell to use when invoking shell scripts.
17600SHELL=$lt_SHELL
17601
17602# Whether or not to build shared libraries.
17603build_libtool_libs=$enable_shared
17604
17605# Whether or not to build static libraries.
17606build_old_libs=$enable_static
17607
17608# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017609build_libtool_need_lc=$archive_cmds_need_lc
17610
17611# Whether or not to disallow shared libs when runtime libs are static
17612allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017613
17614# Whether or not to optimize for fast installation.
17615fast_install=$enable_fast_install
17616
17617# The host system.
17618host_alias=$host_alias
17619host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017620host_os=$host_os
17621
17622# The build system.
17623build_alias=$build_alias
17624build=$build
17625build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017626
17627# An echo program that does not interpret backslashes.
17628echo=$lt_echo
17629
17630# The archiver.
17631AR=$lt_AR
17632AR_FLAGS=$lt_AR_FLAGS
17633
John Criswell47fdd832003-07-14 16:52:07 +000017634# A C compiler.
17635LTCC=$lt_LTCC
17636
Reid Spencera773bd52006-08-04 18:18:08 +000017637# LTCC compiler flags.
17638LTCFLAGS=$lt_LTCFLAGS
17639
John Criswell47fdd832003-07-14 16:52:07 +000017640# A language-specific compiler.
17641CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017642
17643# Is the compiler the GNU C compiler?
17644with_gcc=$GCC
17645
John Criswell47fdd832003-07-14 16:52:07 +000017646# An ERE matcher.
17647EGREP=$lt_EGREP
17648
John Criswell7a73b802003-06-30 21:59:07 +000017649# The linker used to build libraries.
17650LD=$lt_LD
17651
17652# Whether we need hard or soft links.
17653LN_S=$lt_LN_S
17654
17655# A BSD-compatible nm program.
17656NM=$lt_NM
17657
17658# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017659STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017660
17661# Used to examine libraries when file_magic_cmd begins "file"
17662MAGIC_CMD=$MAGIC_CMD
17663
17664# Used on cygwin: DLL creation program.
17665DLLTOOL="$DLLTOOL"
17666
17667# Used on cygwin: object dumper.
17668OBJDUMP="$OBJDUMP"
17669
17670# Used on cygwin: assembler.
17671AS="$AS"
17672
17673# The name of the directory that contains temporary libtool files.
17674objdir=$objdir
17675
17676# How to create reloadable object files.
17677reload_flag=$lt_reload_flag
17678reload_cmds=$lt_reload_cmds
17679
17680# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017681wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017682
17683# Object file suffix (normally "o").
17684objext="$ac_objext"
17685
17686# Old archive suffix (normally "a").
17687libext="$libext"
17688
John Criswell47fdd832003-07-14 16:52:07 +000017689# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017690shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017691
John Criswell7a73b802003-06-30 21:59:07 +000017692# Executable file suffix (normally "").
17693exeext="$exeext"
17694
17695# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017696pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017697pic_mode=$pic_mode
17698
John Criswell47fdd832003-07-14 16:52:07 +000017699# What is the maximum length of a command?
17700max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017701
John Criswell47fdd832003-07-14 16:52:07 +000017702# Does compiler simultaneously support -c and -o options?
17703compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017704
Reid Spencera773bd52006-08-04 18:18:08 +000017705# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017706need_locks=$lt_need_locks
17707
17708# Do we need the lib prefix for modules?
17709need_lib_prefix=$need_lib_prefix
17710
17711# Do we need a version for libraries?
17712need_version=$need_version
17713
17714# Whether dlopen is supported.
17715dlopen_support=$enable_dlopen
17716
17717# Whether dlopen of programs is supported.
17718dlopen_self=$enable_dlopen_self
17719
17720# Whether dlopen of statically linked programs is supported.
17721dlopen_self_static=$enable_dlopen_self_static
17722
17723# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017724link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017725
17726# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017727no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017728
17729# Compiler flag to allow reflexive dlopens.
17730export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17731
17732# Compiler flag to generate shared objects directly from archives.
17733whole_archive_flag_spec=$lt_whole_archive_flag_spec
17734
17735# Compiler flag to generate thread-safe objects.
17736thread_safe_flag_spec=$lt_thread_safe_flag_spec
17737
17738# Library versioning type.
17739version_type=$version_type
17740
17741# Format of library name prefix.
17742libname_spec=$lt_libname_spec
17743
17744# List of archive names. First name is the real one, the rest are links.
17745# The last name is the one that the linker finds with -lNAME.
17746library_names_spec=$lt_library_names_spec
17747
17748# The coded name of the library, if different from the real name.
17749soname_spec=$lt_soname_spec
17750
17751# Commands used to build and install an old-style archive.
17752RANLIB=$lt_RANLIB
17753old_archive_cmds=$lt_old_archive_cmds
17754old_postinstall_cmds=$lt_old_postinstall_cmds
17755old_postuninstall_cmds=$lt_old_postuninstall_cmds
17756
17757# Create an old-style archive from a shared archive.
17758old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17759
17760# Create a temporary old-style archive to link instead of a shared archive.
17761old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17762
17763# Commands used to build and install a shared archive.
17764archive_cmds=$lt_archive_cmds
17765archive_expsym_cmds=$lt_archive_expsym_cmds
17766postinstall_cmds=$lt_postinstall_cmds
17767postuninstall_cmds=$lt_postuninstall_cmds
17768
John Criswell47fdd832003-07-14 16:52:07 +000017769# Commands used to build a loadable module (assumed same as above if empty)
17770module_cmds=$lt_module_cmds
17771module_expsym_cmds=$lt_module_expsym_cmds
17772
John Criswell7a73b802003-06-30 21:59:07 +000017773# Commands to strip libraries.
17774old_striplib=$lt_old_striplib
17775striplib=$lt_striplib
17776
John Criswell47fdd832003-07-14 16:52:07 +000017777# Dependencies to place before the objects being linked to create a
17778# shared library.
17779predep_objects=$lt_predep_objects
17780
17781# Dependencies to place after the objects being linked to create a
17782# shared library.
17783postdep_objects=$lt_postdep_objects
17784
17785# Dependencies to place before the objects being linked to create a
17786# shared library.
17787predeps=$lt_predeps
17788
17789# Dependencies to place after the objects being linked to create a
17790# shared library.
17791postdeps=$lt_postdeps
17792
17793# The library search path used internally by the compiler when linking
17794# a shared library.
17795compiler_lib_search_path=$lt_compiler_lib_search_path
17796
John Criswell7a73b802003-06-30 21:59:07 +000017797# Method to check whether dependent libraries are shared objects.
17798deplibs_check_method=$lt_deplibs_check_method
17799
17800# Command to use when deplibs_check_method == file_magic.
17801file_magic_cmd=$lt_file_magic_cmd
17802
17803# Flag that allows shared libraries with undefined symbols to be built.
17804allow_undefined_flag=$lt_allow_undefined_flag
17805
17806# Flag that forces no undefined symbols.
17807no_undefined_flag=$lt_no_undefined_flag
17808
17809# Commands used to finish a libtool library installation in a directory.
17810finish_cmds=$lt_finish_cmds
17811
17812# Same as above, but a single script fragment to be evaled but not shown.
17813finish_eval=$lt_finish_eval
17814
17815# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017817
17818# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017820
17821# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017823
17824# This is the shared library runtime path variable.
17825runpath_var=$runpath_var
17826
17827# This is the shared library path variable.
17828shlibpath_var=$shlibpath_var
17829
17830# Is shlibpath searched before the hard-coded library search path?
17831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17832
17833# How to hardcode a shared library path into an executable.
17834hardcode_action=$hardcode_action
17835
17836# Whether we should hardcode library paths into libraries.
17837hardcode_into_libs=$hardcode_into_libs
17838
17839# Flag to hardcode \$libdir into a binary during linking.
17840# This must work even if \$libdir does not exist.
17841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17842
John Criswell47fdd832003-07-14 16:52:07 +000017843# If ld is used when linking, flag to hardcode \$libdir into
17844# a binary during linking. This must work even if \$libdir does
17845# not exist.
17846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17847
John Criswell7a73b802003-06-30 21:59:07 +000017848# Whether we need a single -rpath flag with a separated argument.
17849hardcode_libdir_separator=$lt_hardcode_libdir_separator
17850
John Criswell47fdd832003-07-14 16:52:07 +000017851# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017852# resulting binary.
17853hardcode_direct=$hardcode_direct
17854
17855# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17856# resulting binary.
17857hardcode_minus_L=$hardcode_minus_L
17858
17859# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17860# the resulting binary.
17861hardcode_shlibpath_var=$hardcode_shlibpath_var
17862
John Criswell47fdd832003-07-14 16:52:07 +000017863# Set to yes if building a shared library automatically hardcodes DIR into the library
17864# and all subsequent libraries and executables linked against it.
17865hardcode_automatic=$hardcode_automatic
17866
John Criswell7a73b802003-06-30 21:59:07 +000017867# Variables whose values should be saved in libtool wrapper scripts and
17868# restored at relink time.
17869variables_saved_for_relink="$variables_saved_for_relink"
17870
17871# Whether libtool must link a program against all its dependency libraries.
17872link_all_deplibs=$link_all_deplibs
17873
17874# Compile-time system search path for libraries
17875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17876
17877# Run-time system search path for libraries
17878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17879
17880# Fix the shell variable \$srcfile for the compiler.
17881fix_srcfile_path="$fix_srcfile_path"
17882
17883# Set to yes if exported symbols are required.
17884always_export_symbols=$always_export_symbols
17885
17886# The commands to list exported symbols.
17887export_symbols_cmds=$lt_export_symbols_cmds
17888
17889# The commands to extract the exported symbol list from a shared archive.
17890extract_expsyms_cmds=$lt_extract_expsyms_cmds
17891
17892# Symbols that should not be listed in the preloaded symbols.
17893exclude_expsyms=$lt_exclude_expsyms
17894
17895# Symbols that must always be exported.
17896include_expsyms=$lt_include_expsyms
17897
17898# ### END LIBTOOL CONFIG
17899
17900__EOF__
17901
John Criswell47fdd832003-07-14 16:52:07 +000017902
John Criswell7a73b802003-06-30 21:59:07 +000017903 case $host_os in
17904 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017905 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017906
17907# AIX sometimes has problems with the GCC collect2 program. For some
17908# reason, if we set the COLLECT_NAMES environment variable, the problems
17909# vanish in a puff of smoke.
17910if test "X${COLLECT_NAMES+set}" != Xset; then
17911 COLLECT_NAMES=
17912 export COLLECT_NAMES
17913fi
17914EOF
17915 ;;
17916 esac
17917
John Criswell7a73b802003-06-30 21:59:07 +000017918 # We use sed instead of cat because bash on DJGPP gets confused if
17919 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17920 # text mode, it properly converts lines to CR/LF. This bash problem
17921 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017922 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017923
John Criswell47fdd832003-07-14 16:52:07 +000017924 mv -f "$cfgfile" "$ofile" || \
17925 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017926 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017927
17928else
17929 # If there is no Makefile yet, we rely on a make rule to execute
17930 # `config.status --recheck' to rerun these tests and create the
17931 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017932 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17933 if test -f "$ltmain_in"; then
17934 test -f Makefile && make "$ltmain"
17935 fi
John Criswell7a73b802003-06-30 21:59:07 +000017936fi
John Criswell7a73b802003-06-30 21:59:07 +000017937
17938
John Criswell47fdd832003-07-14 16:52:07 +000017939ac_ext=c
17940ac_cpp='$CPP $CPPFLAGS'
17941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943ac_compiler_gnu=$ac_cv_c_compiler_gnu
17944
17945CC="$lt_save_CC"
17946
17947
Reid Spencera773bd52006-08-04 18:18:08 +000017948# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017949if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017950 withval=$with_tags; tagnames="$withval"
17951fi
17952
John Criswell47fdd832003-07-14 16:52:07 +000017953
17954if test -f "$ltmain" && test -n "$tagnames"; then
17955 if test ! -f "${ofile}"; then
17956 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17957echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17958 fi
17959
17960 if test -z "$LTCC"; then
17961 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17962 if test -z "$LTCC"; then
17963 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17964echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17965 else
17966 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17967echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17968 fi
17969 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017970 if test -z "$LTCFLAGS"; then
17971 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17972 fi
John Criswell47fdd832003-07-14 16:52:07 +000017973
17974 # Extract list of available tagged configurations in $ofile.
17975 # Note that this assumes the entire list is on one line.
17976 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17977
17978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17979 for tagname in $tagnames; do
17980 IFS="$lt_save_ifs"
17981 # Check whether tagname contains only valid characters
17982 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17983 "") ;;
17984 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17985echo "$as_me: error: invalid tag name: $tagname" >&2;}
17986 { (exit 1); exit 1; }; }
17987 ;;
17988 esac
17989
17990 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17991 then
17992 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17993echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17994 { (exit 1); exit 1; }; }
17995 fi
17996
17997 # Update the list of available tags.
17998 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017999 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018000
18001 case $tagname in
18002 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018003 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18004 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18005 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018006 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018007ac_cpp='$CXXCPP $CPPFLAGS'
18008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18011
18012
18013
18014
18015archive_cmds_need_lc_CXX=no
18016allow_undefined_flag_CXX=
18017always_export_symbols_CXX=no
18018archive_expsym_cmds_CXX=
18019export_dynamic_flag_spec_CXX=
18020hardcode_direct_CXX=no
18021hardcode_libdir_flag_spec_CXX=
18022hardcode_libdir_flag_spec_ld_CXX=
18023hardcode_libdir_separator_CXX=
18024hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018025hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018026hardcode_automatic_CXX=no
18027module_cmds_CXX=
18028module_expsym_cmds_CXX=
18029link_all_deplibs_CXX=unknown
18030old_archive_cmds_CXX=$old_archive_cmds
18031no_undefined_flag_CXX=
18032whole_archive_flag_spec_CXX=
18033enable_shared_with_static_runtimes_CXX=no
18034
18035# Dependencies to place before and after the object being linked:
18036predep_objects_CXX=
18037postdep_objects_CXX=
18038predeps_CXX=
18039postdeps_CXX=
18040compiler_lib_search_path_CXX=
18041
18042# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018043ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018044
18045# Object file extension for compiled C++ test sources.
18046objext=o
18047objext_CXX=$objext
18048
18049# Code to be used in simple compile tests
18050lt_simple_compile_test_code="int some_variable = 0;\n"
18051
18052# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018053lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018054
18055# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18056
18057# If no C compiler was specified, use CC.
18058LTCC=${LTCC-"$CC"}
18059
Reid Spencera773bd52006-08-04 18:18:08 +000018060# If no C compiler flags were specified, use CFLAGS.
18061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18062
John Criswell47fdd832003-07-14 16:52:07 +000018063# Allow CC to be a program name with arguments.
18064compiler=$CC
18065
18066
Reid Spencera773bd52006-08-04 18:18:08 +000018067# save warnings/boilerplate of simple test code
18068ac_outfile=conftest.$ac_objext
18069printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18071_lt_compiler_boilerplate=`cat conftest.err`
18072$rm conftest*
18073
18074ac_outfile=conftest.$ac_objext
18075printf "$lt_simple_link_test_code" >conftest.$ac_ext
18076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18077_lt_linker_boilerplate=`cat conftest.err`
18078$rm conftest*
18079
18080
John Criswell47fdd832003-07-14 16:52:07 +000018081# Allow CC to be a program name with arguments.
18082lt_save_CC=$CC
18083lt_save_LD=$LD
18084lt_save_GCC=$GCC
18085GCC=$GXX
18086lt_save_with_gnu_ld=$with_gnu_ld
18087lt_save_path_LD=$lt_cv_path_LD
18088if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18089 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18090else
Reid Spencera773bd52006-08-04 18:18:08 +000018091 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018092fi
18093if test -n "${lt_cv_path_LDCXX+set}"; then
18094 lt_cv_path_LD=$lt_cv_path_LDCXX
18095else
Reid Spencera773bd52006-08-04 18:18:08 +000018096 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018097fi
18098test -z "${LDCXX+set}" || LD=$LDCXX
18099CC=${CXX-"c++"}
18100compiler=$CC
18101compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018102for cc_temp in $compiler""; do
18103 case $cc_temp in
18104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18106 \-*) ;;
18107 *) break;;
18108 esac
18109done
18110cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18111
John Criswell47fdd832003-07-14 16:52:07 +000018112
18113# We don't want -fno-exception wen compiling C++ code, so set the
18114# no_builtin_flag separately
18115if test "$GXX" = yes; then
18116 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18117else
18118 lt_prog_compiler_no_builtin_flag_CXX=
18119fi
18120
18121if test "$GXX" = yes; then
18122 # Set up default GNU C++ configuration
18123
18124
Reid Spencera773bd52006-08-04 18:18:08 +000018125# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018126if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018127 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018128else
18129 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018130fi
18131
John Criswell47fdd832003-07-14 16:52:07 +000018132ac_prog=ld
18133if test "$GCC" = yes; then
18134 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018135 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18136echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018137 case $host in
18138 *-*-mingw*)
18139 # gcc leaves a trailing carriage return which upsets mingw
18140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18141 *)
18142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18143 esac
18144 case $ac_prog in
18145 # Accept absolute paths.
18146 [\\/]* | ?:[\\/]*)
18147 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018148 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018149 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18151 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18152 done
18153 test -z "$LD" && LD="$ac_prog"
18154 ;;
18155 "")
18156 # If it fails, then pretend we aren't using GCC.
18157 ac_prog=ld
18158 ;;
18159 *)
18160 # If it is relative, then search for the first ld in PATH.
18161 with_gnu_ld=unknown
18162 ;;
18163 esac
18164elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018165 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18166echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018167else
Reid Spencera773bd52006-08-04 18:18:08 +000018168 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18169echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018170fi
18171if test "${lt_cv_path_LD+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173else
18174 if test -z "$LD"; then
18175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18176 for ac_dir in $PATH; do
18177 IFS="$lt_save_ifs"
18178 test -z "$ac_dir" && ac_dir=.
18179 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18180 lt_cv_path_LD="$ac_dir/$ac_prog"
18181 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018182 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018183 # Break only if it was the GNU/non-GNU ld that we prefer.
18184 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18185 *GNU* | *'with BFD'*)
18186 test "$with_gnu_ld" != no && break
18187 ;;
18188 *)
18189 test "$with_gnu_ld" != yes && break
18190 ;;
18191 esac
18192 fi
18193 done
18194 IFS="$lt_save_ifs"
18195else
18196 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18197fi
18198fi
18199
18200LD="$lt_cv_path_LD"
18201if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018202 { echo "$as_me:$LINENO: result: $LD" >&5
18203echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018204else
Reid Spencera773bd52006-08-04 18:18:08 +000018205 { echo "$as_me:$LINENO: result: no" >&5
18206echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018207fi
18208test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18209echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18210 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018211{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18212echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018213if test "${lt_cv_prog_gnu_ld+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18215else
Reid Spencera773bd52006-08-04 18:18:08 +000018216 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018217case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018218*GNU* | *'with BFD'*)
18219 lt_cv_prog_gnu_ld=yes
18220 ;;
18221*)
18222 lt_cv_prog_gnu_ld=no
18223 ;;
18224esac
18225fi
Reid Spencera773bd52006-08-04 18:18:08 +000018226{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18227echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018228with_gnu_ld=$lt_cv_prog_gnu_ld
18229
18230
18231
18232 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18233 # archiving commands below assume that GNU ld is being used.
18234 if test "$with_gnu_ld" = yes; then
18235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18236 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'
18237
18238 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18239 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18240
18241 # If archive_cmds runs LD, not CC, wlarc should be empty
18242 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18243 # investigate it a little bit more. (MM)
18244 wlarc='${wl}'
18245
18246 # ancient GNU ld didn't support --whole-archive et. al.
18247 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18248 grep 'no-whole-archive' > /dev/null; then
18249 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18250 else
18251 whole_archive_flag_spec_CXX=
18252 fi
18253 else
18254 with_gnu_ld=no
18255 wlarc=
18256
18257 # A generic and very simple default shared library creation
18258 # command for GNU C++ for the case where it uses the native
18259 # linker, instead of GNU ld. If possible, this setting should
18260 # overridden to take advantage of the native linker features on
18261 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018262 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018263 fi
18264
18265 # Commands to make compiler produce verbose output that lists
18266 # what "hidden" libraries, object files and flags are used when
18267 # linking a shared library.
18268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18269
18270else
18271 GXX=no
18272 with_gnu_ld=no
18273 wlarc=
18274fi
18275
18276# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018277{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18278echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018279ld_shlibs_CXX=yes
18280case $host_os in
18281 aix3*)
18282 # FIXME: insert proper C++ library support
18283 ld_shlibs_CXX=no
18284 ;;
18285 aix4* | aix5*)
18286 if test "$host_cpu" = ia64; then
18287 # On IA64, the linker does run time linking by default, so we don't
18288 # have to do anything special.
18289 aix_use_runtimelinking=no
18290 exp_sym_flag='-Bexport'
18291 no_entry_flag=""
18292 else
18293 aix_use_runtimelinking=no
18294
18295 # Test if we are trying to use run time linking or normal
18296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18297 # need to do runtime linking.
18298 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18299 for ld_flag in $LDFLAGS; do
18300 case $ld_flag in
18301 *-brtl*)
18302 aix_use_runtimelinking=yes
18303 break
18304 ;;
18305 esac
18306 done
Reid Spencera773bd52006-08-04 18:18:08 +000018307 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018308 esac
18309
18310 exp_sym_flag='-bexport'
18311 no_entry_flag='-bnoentry'
18312 fi
18313
18314 # When large executables or shared objects are built, AIX ld can
18315 # have problems creating the table of contents. If linking a library
18316 # or program results in "error TOC overflow" add -mminimal-toc to
18317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18319
18320 archive_cmds_CXX=''
18321 hardcode_direct_CXX=yes
18322 hardcode_libdir_separator_CXX=':'
18323 link_all_deplibs_CXX=yes
18324
18325 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018326 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018327 # We only want to do this on AIX 4.2 and lower, the check
18328 # below for broken collect2 doesn't work under 4.3+
18329 collect2name=`${CC} -print-prog-name=collect2`
18330 if test -f "$collect2name" && \
18331 strings "$collect2name" | grep resolve_lib_name >/dev/null
18332 then
18333 # We have reworked collect2
18334 hardcode_direct_CXX=yes
18335 else
18336 # We have old collect2
18337 hardcode_direct_CXX=unsupported
18338 # It fails to find uninstalled libraries when the uninstalled
18339 # path is not listed in the libpath. Setting hardcode_minus_L
18340 # to unsupported forces relinking
18341 hardcode_minus_L_CXX=yes
18342 hardcode_libdir_flag_spec_CXX='-L$libdir'
18343 hardcode_libdir_separator_CXX=
18344 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018345 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018346 esac
18347 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018348 if test "$aix_use_runtimelinking" = yes; then
18349 shared_flag="$shared_flag "'${wl}-G'
18350 fi
John Criswell47fdd832003-07-14 16:52:07 +000018351 else
18352 # not using gcc
18353 if test "$host_cpu" = ia64; then
18354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18355 # chokes on -Wl,-G. The following line is correct:
18356 shared_flag='-G'
18357 else
18358 if test "$aix_use_runtimelinking" = yes; then
18359 shared_flag='${wl}-G'
18360 else
18361 shared_flag='${wl}-bM:SRE'
18362 fi
18363 fi
18364 fi
18365
18366 # It seems that -bexpall does not export symbols beginning with
18367 # underscore (_), so it is better to generate a list of symbols to export.
18368 always_export_symbols_CXX=yes
18369 if test "$aix_use_runtimelinking" = yes; then
18370 # Warning - without using the other runtime loading flags (-brtl),
18371 # -berok will link without error, but may produce a broken library.
18372 allow_undefined_flag_CXX='-berok'
18373 # Determine the default libpath from the value encoded in an empty executable.
18374 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018375/* confdefs.h. */
18376_ACEOF
18377cat confdefs.h >>conftest.$ac_ext
18378cat >>conftest.$ac_ext <<_ACEOF
18379/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018380
John Criswell47fdd832003-07-14 16:52:07 +000018381int
18382main ()
18383{
18384
18385 ;
18386 return 0;
18387}
18388_ACEOF
18389rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018390if { (ac_try="$ac_link"
18391case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18394esac
18395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18404 { (case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18407esac
18408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; } &&
18413 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018414 { (case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18417esac
18418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
18423
18424aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18425}'`
18426# Check for a 64-bit object if we didn't find anything.
18427if 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; }
18428}'`; fi
18429else
18430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018431sed 's/^/| /' conftest.$ac_ext >&5
18432
Reid Spencera773bd52006-08-04 18:18:08 +000018433
John Criswell47fdd832003-07-14 16:52:07 +000018434fi
Reid Spencera773bd52006-08-04 18:18:08 +000018435
18436rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018437 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018438if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18439
18440 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18441
Reid Spencera773bd52006-08-04 18:18:08 +000018442 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 +000018443 else
18444 if test "$host_cpu" = ia64; then
18445 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18446 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018447 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 +000018448 else
18449 # Determine the default libpath from the value encoded in an empty executable.
18450 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018451/* confdefs.h. */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018456
John Criswell47fdd832003-07-14 16:52:07 +000018457int
18458main ()
18459{
18460
18461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018466if { (ac_try="$ac_link"
18467case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470esac
18471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018473 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18480 { (case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18483esac
18484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; } &&
18489 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018490 { (case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18493esac
18494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018496 ac_status=$?
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; }; then
18499
18500aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18501}'`
18502# Check for a 64-bit object if we didn't find anything.
18503if 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; }
18504}'`; fi
18505else
18506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018507sed 's/^/| /' conftest.$ac_ext >&5
18508
Reid Spencera773bd52006-08-04 18:18:08 +000018509
John Criswell47fdd832003-07-14 16:52:07 +000018510fi
Reid Spencera773bd52006-08-04 18:18:08 +000018511
18512rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018513 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18515
18516 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18517 # Warning - without using the other run time loading flags,
18518 # -berok will link without error, but may produce a broken library.
18519 no_undefined_flag_CXX=' ${wl}-bernotok'
18520 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018521 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018522 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018523 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018524 # This is similar to how AIX traditionally builds its shared libraries.
18525 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 +000018526 fi
18527 fi
18528 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018529
18530 beos*)
18531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18532 allow_undefined_flag_CXX=unsupported
18533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18534 # support --undefined. This deserves some investigation. FIXME
18535 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18536 else
18537 ld_shlibs_CXX=no
18538 fi
18539 ;;
18540
John Criswell47fdd832003-07-14 16:52:07 +000018541 chorus*)
18542 case $cc_basename in
18543 *)
18544 # FIXME: insert proper C++ library support
18545 ld_shlibs_CXX=no
18546 ;;
18547 esac
18548 ;;
18549
18550 cygwin* | mingw* | pw32*)
18551 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18552 # as there is no search path for DLLs.
18553 hardcode_libdir_flag_spec_CXX='-L$libdir'
18554 allow_undefined_flag_CXX=unsupported
18555 always_export_symbols_CXX=no
18556 enable_shared_with_static_runtimes_CXX=yes
18557
18558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018559 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 +000018560 # If the export-symbols file already is a .def file (1st line
18561 # is EXPORTS), use it as is; otherwise, prepend...
18562 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18563 cp $export_symbols $output_objdir/$soname.def;
18564 else
18565 echo EXPORTS > $output_objdir/$soname.def;
18566 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018567 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018568 $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 +000018569 else
18570 ld_shlibs_CXX=no
18571 fi
18572 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018573 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018574 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018575 rhapsody* | darwin1.[012])
18576 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18577 ;;
18578 *) # Darwin 1.3 on
18579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18580 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18581 else
18582 case ${MACOSX_DEPLOYMENT_TARGET} in
18583 10.[012])
18584 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18585 ;;
18586 10.*)
18587 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18588 ;;
18589 esac
18590 fi
18591 ;;
18592 esac
18593 archive_cmds_need_lc_CXX=no
18594 hardcode_direct_CXX=no
18595 hardcode_automatic_CXX=yes
18596 hardcode_shlibpath_var_CXX=unsupported
18597 whole_archive_flag_spec_CXX=''
18598 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018599
Reid Spencer2706f8c2004-09-19 23:53:36 +000018600 if test "$GXX" = yes ; then
18601 lt_int_apple_cc_single_mod=no
18602 output_verbose_link_cmd='echo'
18603 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18604 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018605 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018606 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018607 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 +000018608 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018609 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 +000018610 fi
18611 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018612 # 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 +000018613 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018614 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 +000018615 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018616 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 +000018617 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018618 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 +000018619 else
Reid Spencera773bd52006-08-04 18:18:08 +000018620 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018621 xlc*)
18622 output_verbose_link_cmd='echo'
18623 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'
18624 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018625 # 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 +000018626 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}'
18627 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 +000018628 ;;
18629 *)
18630 ld_shlibs_CXX=no
18631 ;;
18632 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018633 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018634 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018635
18636 dgux*)
18637 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018638 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018639 # FIXME: insert proper C++ library support
18640 ld_shlibs_CXX=no
18641 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018642 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018643 # Green Hills C++ Compiler
18644 # FIXME: insert proper C++ library support
18645 ld_shlibs_CXX=no
18646 ;;
18647 *)
18648 # FIXME: insert proper C++ library support
18649 ld_shlibs_CXX=no
18650 ;;
18651 esac
18652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018653 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018654 # C++ shared libraries reported to be fairly broken before switch to ELF
18655 ld_shlibs_CXX=no
18656 ;;
18657 freebsd-elf*)
18658 archive_cmds_need_lc_CXX=no
18659 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018660 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018661 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18662 # conventions
18663 ld_shlibs_CXX=yes
18664 ;;
18665 gnu*)
18666 ;;
18667 hpux9*)
18668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18669 hardcode_libdir_separator_CXX=:
18670 export_dynamic_flag_spec_CXX='${wl}-E'
18671 hardcode_direct_CXX=yes
18672 hardcode_minus_L_CXX=yes # Not in the search PATH,
18673 # but as the default
18674 # location of the library.
18675
18676 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018677 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018678 # FIXME: insert proper C++ library support
18679 ld_shlibs_CXX=no
18680 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018681 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018682 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 +000018683 # Commands to make compiler produce verbose output that lists
18684 # what "hidden" libraries, object files and flags are used when
18685 # linking a shared library.
18686 #
18687 # There doesn't appear to be a way to prevent this compiler from
18688 # explicitly linking system object files so we need to strip them
18689 # from the output so that they don't get included in the library
18690 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018691 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 +000018692 ;;
18693 *)
18694 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018695 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 +000018696 else
18697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 fi
18700 ;;
18701 esac
18702 ;;
18703 hpux10*|hpux11*)
18704 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018705 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18706 hardcode_libdir_separator_CXX=:
18707
18708 case $host_cpu in
18709 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018710 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018711 ;;
18712 *)
John Criswell47fdd832003-07-14 16:52:07 +000018713 export_dynamic_flag_spec_CXX='${wl}-E'
18714 ;;
18715 esac
18716 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018717 case $host_cpu in
18718 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018719 hardcode_direct_CXX=no
18720 hardcode_shlibpath_var_CXX=no
18721 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018722 *)
18723 hardcode_direct_CXX=yes
18724 hardcode_minus_L_CXX=yes # Not in the search PATH,
18725 # but as the default
18726 # location of the library.
18727 ;;
18728 esac
18729
18730 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018731 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018732 # FIXME: insert proper C++ library support
18733 ld_shlibs_CXX=no
18734 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018735 aCC*)
18736 case $host_cpu in
18737 hppa*64*)
18738 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18739 ;;
18740 ia64*)
18741 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 +000018742 ;;
18743 *)
18744 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18745 ;;
18746 esac
18747 # Commands to make compiler produce verbose output that lists
18748 # what "hidden" libraries, object files and flags are used when
18749 # linking a shared library.
18750 #
18751 # There doesn't appear to be a way to prevent this compiler from
18752 # explicitly linking system object files so we need to strip them
18753 # from the output so that they don't get included in the library
18754 # dependencies.
18755 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'
18756 ;;
18757 *)
18758 if test "$GXX" = yes; then
18759 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018760 case $host_cpu in
18761 hppa*64*)
18762 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18763 ;;
18764 ia64*)
18765 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 +000018766 ;;
18767 *)
18768 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'
18769 ;;
18770 esac
18771 fi
18772 else
18773 # FIXME: insert proper C++ library support
18774 ld_shlibs_CXX=no
18775 fi
18776 ;;
18777 esac
18778 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018779 interix3*)
18780 hardcode_direct_CXX=no
18781 hardcode_shlibpath_var_CXX=no
18782 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18783 export_dynamic_flag_spec_CXX='${wl}-E'
18784 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18785 # Instead, shared libraries are loaded at an image base (0x10000000 by
18786 # default) and relocated if they conflict, which is a slow very memory
18787 # consuming and fragmenting process. To avoid this, we pick a random,
18788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18789 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18790 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'
18791 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'
18792 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018793 irix5* | irix6*)
18794 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018795 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018796 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018797 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 +000018798
18799 # Archives containing C++ object files must be created using
18800 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18801 # necessary to make sure instantiated templates are included
18802 # in the archive.
18803 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18804 ;;
18805 *)
18806 if test "$GXX" = yes; then
18807 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018808 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 +000018809 else
18810 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'
18811 fi
18812 fi
18813 link_all_deplibs_CXX=yes
18814 ;;
18815 esac
18816 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18817 hardcode_libdir_separator_CXX=:
18818 ;;
18819 linux*)
18820 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018821 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018822 # Kuck and Associates, Inc. (KAI) C++ Compiler
18823
18824 # KCC will only create a shared library if the output file
18825 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18826 # to its proper name (with version) after linking.
18827 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'
18828 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'
18829 # Commands to make compiler produce verbose output that lists
18830 # what "hidden" libraries, object files and flags are used when
18831 # linking a shared library.
18832 #
18833 # There doesn't appear to be a way to prevent this compiler from
18834 # explicitly linking system object files so we need to strip them
18835 # from the output so that they don't get included in the library
18836 # dependencies.
18837 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'
18838
18839 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18840 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18841
18842 # Archives containing C++ object files must be created using
18843 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18844 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18845 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018846 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018847 # Intel C++
18848 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018849 # version 8.0 and above of icpc choke on multiply defined symbols
18850 # if we add $predep_objects and $postdep_objects, however 7.1 and
18851 # earlier do not add the objects themselves.
18852 case `$CC -V 2>&1` in
18853 *"Version 7."*)
18854 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18855 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'
18856 ;;
18857 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018858 tmp_idyn=
18859 case $host_cpu in
18860 ia64*) tmp_idyn=' -i_dynamic';;
18861 esac
18862 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18863 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 +000018864 ;;
18865 esac
John Criswell47fdd832003-07-14 16:52:07 +000018866 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18869 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18870 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018871 pgCC*)
18872 # Portland Group C++ compiler
18873 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18874 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'
18875
18876 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18877 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18878 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'
18879 ;;
18880 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018881 # Compaq C++
18882 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18883 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'
18884
18885 runpath_var=LD_RUN_PATH
18886 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18887 hardcode_libdir_separator_CXX=:
18888
18889 # Commands to make compiler produce verbose output that lists
18890 # what "hidden" libraries, object files and flags are used when
18891 # linking a shared library.
18892 #
18893 # There doesn't appear to be a way to prevent this compiler from
18894 # explicitly linking system object files so we need to strip them
18895 # from the output so that they don't get included in the library
18896 # dependencies.
18897 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'
18898 ;;
18899 esac
18900 ;;
18901 lynxos*)
18902 # FIXME: insert proper C++ library support
18903 ld_shlibs_CXX=no
18904 ;;
18905 m88k*)
18906 # FIXME: insert proper C++ library support
18907 ld_shlibs_CXX=no
18908 ;;
18909 mvs*)
18910 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018911 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018912 # FIXME: insert proper C++ library support
18913 ld_shlibs_CXX=no
18914 ;;
18915 *)
18916 # FIXME: insert proper C++ library support
18917 ld_shlibs_CXX=no
18918 ;;
18919 esac
18920 ;;
18921 netbsd*)
18922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18923 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18924 wlarc=
18925 hardcode_libdir_flag_spec_CXX='-R$libdir'
18926 hardcode_direct_CXX=yes
18927 hardcode_shlibpath_var_CXX=no
18928 fi
18929 # Workaround some broken pre-1.5 toolchains
18930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18931 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018932 openbsd2*)
18933 # C++ shared libraries are fairly broken
18934 ld_shlibs_CXX=no
18935 ;;
18936 openbsd*)
18937 hardcode_direct_CXX=yes
18938 hardcode_shlibpath_var_CXX=no
18939 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18942 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18943 export_dynamic_flag_spec_CXX='${wl}-E'
18944 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18945 fi
18946 output_verbose_link_cmd='echo'
18947 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018948 osf3*)
18949 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018950 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018951 # Kuck and Associates, Inc. (KAI) C++ Compiler
18952
18953 # KCC will only create a shared library if the output file
18954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18955 # to its proper name (with version) after linking.
18956 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'
18957
18958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18959 hardcode_libdir_separator_CXX=:
18960
18961 # Archives containing C++ object files must be created using
18962 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18963 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18964
18965 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018966 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018967 # Rational C++ 2.4.1
18968 # FIXME: insert proper C++ library support
18969 ld_shlibs_CXX=no
18970 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018971 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018973 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 +000018974
18975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18976 hardcode_libdir_separator_CXX=:
18977
18978 # Commands to make compiler produce verbose output that lists
18979 # what "hidden" libraries, object files and flags are used when
18980 # linking a shared library.
18981 #
18982 # There doesn't appear to be a way to prevent this compiler from
18983 # explicitly linking system object files so we need to strip them
18984 # from the output so that they don't get included in the library
18985 # dependencies.
18986 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'
18987 ;;
18988 *)
18989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018991 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 +000018992
18993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18994 hardcode_libdir_separator_CXX=:
18995
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19000
19001 else
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19004 fi
19005 ;;
19006 esac
19007 ;;
19008 osf4* | osf5*)
19009 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019010 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019011 # Kuck and Associates, Inc. (KAI) C++ Compiler
19012
19013 # KCC will only create a shared library if the output file
19014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19015 # to its proper name (with version) after linking.
19016 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'
19017
19018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19019 hardcode_libdir_separator_CXX=:
19020
19021 # Archives containing C++ object files must be created using
19022 # the KAI C++ compiler.
19023 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19024 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019025 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019026 # Rational C++ 2.4.1
19027 # FIXME: insert proper C++ library support
19028 ld_shlibs_CXX=no
19029 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019030 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019031 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019032 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 +000019033 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19034 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019035 $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 +000019036 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019037
19038 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19039 hardcode_libdir_separator_CXX=:
19040
19041 # Commands to make compiler produce verbose output that lists
19042 # what "hidden" libraries, object files and flags are used when
19043 # linking a shared library.
19044 #
19045 # There doesn't appear to be a way to prevent this compiler from
19046 # explicitly linking system object files so we need to strip them
19047 # from the output so that they don't get included in the library
19048 # dependencies.
19049 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'
19050 ;;
19051 *)
19052 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19053 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019054 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 +000019055
19056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19057 hardcode_libdir_separator_CXX=:
19058
19059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19063
19064 else
19065 # FIXME: insert proper C++ library support
19066 ld_shlibs_CXX=no
19067 fi
19068 ;;
19069 esac
19070 ;;
19071 psos*)
19072 # FIXME: insert proper C++ library support
19073 ld_shlibs_CXX=no
19074 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019075 sunos4*)
19076 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019077 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019078 # Sun C++ 4.x
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19081 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019082 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019083 # Lucid
19084 # FIXME: insert proper C++ library support
19085 ld_shlibs_CXX=no
19086 ;;
19087 *)
19088 # FIXME: insert proper C++ library support
19089 ld_shlibs_CXX=no
19090 ;;
19091 esac
19092 ;;
19093 solaris*)
19094 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019095 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019096 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019097 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019098 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019099 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 +000019100 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 +000019101 $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 +000019102
19103 hardcode_libdir_flag_spec_CXX='-R$libdir'
19104 hardcode_shlibpath_var_CXX=no
19105 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019106 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019107 *)
19108 # The C++ compiler is used as linker so we must use $wl
19109 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019110 # linker. We must also pass each convience library through
19111 # to the system linker between allextract/defaultextract.
19112 # The C++ compiler will combine linker options so we
19113 # cannot just pass the convience library names through
19114 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019115 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019116 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 +000019117 ;;
19118 esac
19119 link_all_deplibs_CXX=yes
19120
Reid Spencera773bd52006-08-04 18:18:08 +000019121 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019122
19123 # Archives containing C++ object files must be created using
19124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19125 # necessary to make sure instantiated templates are included
19126 # in the archive.
19127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19128 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019129 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019130 # Green Hills C++ Compiler
19131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19132
19133 # The C++ compiler must be used to create the archive.
19134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19135 ;;
19136 *)
19137 # GNU C++ compiler with Solaris linker
19138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19140 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019141 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 +000019142 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19144
John Criswell47fdd832003-07-14 16:52:07 +000019145 # Commands to make compiler produce verbose output that lists
19146 # what "hidden" libraries, object files and flags are used when
19147 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019148 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019149 else
19150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19151 # platform.
19152 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 +000019153 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19154 $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 +000019155
19156 # Commands to make compiler produce verbose output that lists
19157 # what "hidden" libraries, object files and flags are used when
19158 # linking a shared library.
19159 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19160 fi
19161
19162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19163 fi
19164 ;;
19165 esac
19166 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19168 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019169 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019170 hardcode_shlibpath_var_CXX=no
19171 runpath_var='LD_RUN_PATH'
19172
19173 case $cc_basename in
19174 CC*)
19175 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19176 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19177 ;;
19178 *)
19179 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19180 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19181 ;;
19182 esac
19183 ;;
19184 sysv5* | sco3.2v5* | sco5v6*)
19185 # Note: We can NOT use -z defs as we might desire, because we do not
19186 # link with -lc, and that would cause any symbols used from libc to
19187 # always be unresolved, which means just about no library would
19188 # ever link correctly. If we're not using GNU ld we use -z text
19189 # though, which does catch some bad symbols but isn't as heavy-handed
19190 # as -z defs.
19191 # For security reasons, it is highly recommended that you always
19192 # use absolute paths for naming shared libraries, and exclude the
19193 # DT_RUNPATH tag from executables and libraries. But doing so
19194 # requires that you compile everything twice, which is a pain.
19195 # So that behaviour is only enabled if SCOABSPATH is set to a
19196 # non-empty value in the environment. Most likely only useful for
19197 # creating official distributions of packages.
19198 # This is a hack until libtool officially supports absolute path
19199 # names for shared libraries.
19200 no_undefined_flag_CXX='${wl}-z,text'
19201 allow_undefined_flag_CXX='${wl}-z,nodefs'
19202 archive_cmds_need_lc_CXX=no
19203 hardcode_shlibpath_var_CXX=no
19204 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19205 hardcode_libdir_separator_CXX=':'
19206 link_all_deplibs_CXX=yes
19207 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19208 runpath_var='LD_RUN_PATH'
19209
19210 case $cc_basename in
19211 CC*)
19212 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19213 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19214 ;;
19215 *)
19216 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19217 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19218 ;;
19219 esac
John Criswell47fdd832003-07-14 16:52:07 +000019220 ;;
19221 tandem*)
19222 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019223 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019224 # NonStop-UX NCC 3.20
19225 # FIXME: insert proper C++ library support
19226 ld_shlibs_CXX=no
19227 ;;
19228 *)
19229 # FIXME: insert proper C++ library support
19230 ld_shlibs_CXX=no
19231 ;;
19232 esac
19233 ;;
19234 vxworks*)
19235 # FIXME: insert proper C++ library support
19236 ld_shlibs_CXX=no
19237 ;;
19238 *)
19239 # FIXME: insert proper C++ library support
19240 ld_shlibs_CXX=no
19241 ;;
19242esac
Reid Spencera773bd52006-08-04 18:18:08 +000019243{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19244echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019245test "$ld_shlibs_CXX" = no && can_build_shared=no
19246
19247GCC_CXX="$GXX"
19248LD_CXX="$LD"
19249
John Criswell47fdd832003-07-14 16:52:07 +000019250
19251cat > conftest.$ac_ext <<EOF
19252class Foo
19253{
19254public:
19255 Foo (void) { a = 0; }
19256private:
19257 int a;
19258};
19259EOF
19260
19261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19262 (eval $ac_compile) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; then
19266 # Parse the compiler output and extract the necessary
19267 # objects, libraries and library flags.
19268
19269 # Sentinel used to keep track of whether or not we are before
19270 # the conftest object file.
19271 pre_test_object_deps_done=no
19272
19273 # The `*' in the case matches for architectures that use `case' in
19274 # $output_verbose_cmd can trigger glob expansion during the loop
19275 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019276 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019277
19278 for p in `eval $output_verbose_link_cmd`; do
19279 case $p in
19280
19281 -L* | -R* | -l*)
19282 # Some compilers place space between "-{L,R}" and the path.
19283 # Remove the space.
19284 if test $p = "-L" \
19285 || test $p = "-R"; then
19286 prev=$p
19287 continue
19288 else
19289 prev=
19290 fi
19291
19292 if test "$pre_test_object_deps_done" = no; then
19293 case $p in
19294 -L* | -R*)
19295 # Internal compiler library paths should come after those
19296 # provided the user. The postdeps already come after the
19297 # user supplied libs so there is no need to process them.
19298 if test -z "$compiler_lib_search_path_CXX"; then
19299 compiler_lib_search_path_CXX="${prev}${p}"
19300 else
19301 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19302 fi
19303 ;;
19304 # The "-l" case would never come before the object being
19305 # linked, so don't bother handling this case.
19306 esac
19307 else
19308 if test -z "$postdeps_CXX"; then
19309 postdeps_CXX="${prev}${p}"
19310 else
19311 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19312 fi
19313 fi
19314 ;;
19315
19316 *.$objext)
19317 # This assumes that the test object file only shows up
19318 # once in the compiler output.
19319 if test "$p" = "conftest.$objext"; then
19320 pre_test_object_deps_done=yes
19321 continue
19322 fi
19323
19324 if test "$pre_test_object_deps_done" = no; then
19325 if test -z "$predep_objects_CXX"; then
19326 predep_objects_CXX="$p"
19327 else
19328 predep_objects_CXX="$predep_objects_CXX $p"
19329 fi
19330 else
19331 if test -z "$postdep_objects_CXX"; then
19332 postdep_objects_CXX="$p"
19333 else
19334 postdep_objects_CXX="$postdep_objects_CXX $p"
19335 fi
19336 fi
19337 ;;
19338
19339 *) ;; # Ignore the rest.
19340
19341 esac
19342 done
19343
19344 # Clean up.
19345 rm -f a.out a.exe
19346else
19347 echo "libtool.m4: error: problem compiling CXX test program"
19348fi
19349
19350$rm -f confest.$objext
19351
Reid Spencera773bd52006-08-04 18:18:08 +000019352# PORTME: override above test on systems where it is broken
19353case $host_os in
19354interix3*)
19355 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19356 # hack all around it, let's just trust "g++" to DTRT.
19357 predep_objects_CXX=
19358 postdep_objects_CXX=
19359 postdeps_CXX=
19360 ;;
19361
19362solaris*)
19363 case $cc_basename in
19364 CC*)
19365 # Adding this requires a known-good setup of shared libraries for
19366 # Sun compiler versions before 5.6, else PIC objects from an old
19367 # archive will be linked into the output, leading to subtle bugs.
19368 postdeps_CXX='-lCstd -lCrun'
19369 ;;
19370 esac
19371 ;;
19372esac
19373
19374
John Criswell47fdd832003-07-14 16:52:07 +000019375case " $postdeps_CXX " in
19376*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19377esac
19378
19379lt_prog_compiler_wl_CXX=
19380lt_prog_compiler_pic_CXX=
19381lt_prog_compiler_static_CXX=
19382
Reid Spencera773bd52006-08-04 18:18:08 +000019383{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19384echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019385
19386 # C++ specific cases for pic, static, wl, etc.
19387 if test "$GXX" = yes; then
19388 lt_prog_compiler_wl_CXX='-Wl,'
19389 lt_prog_compiler_static_CXX='-static'
19390
19391 case $host_os in
19392 aix*)
19393 # All AIX code is PIC.
19394 if test "$host_cpu" = ia64; then
19395 # AIX 5 now supports IA64 processor
19396 lt_prog_compiler_static_CXX='-Bstatic'
19397 fi
19398 ;;
19399 amigaos*)
19400 # FIXME: we need at least 68020 code to build shared libraries, but
19401 # adding the `-m68020' flag to GCC prevents building anything better,
19402 # like `-m68040'.
19403 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19404 ;;
19405 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19406 # PIC is the default for these OSes.
19407 ;;
19408 mingw* | os2* | pw32*)
19409 # This hack is so that the source file can tell whether it is being
19410 # built for inclusion in a dll (and should export symbols for example).
19411 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19412 ;;
19413 darwin* | rhapsody*)
19414 # PIC is the default on this platform
19415 # Common symbols not allowed in MH_DYLIB files
19416 lt_prog_compiler_pic_CXX='-fno-common'
19417 ;;
19418 *djgpp*)
19419 # DJGPP does not support shared libraries at all
19420 lt_prog_compiler_pic_CXX=
19421 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019422 interix3*)
19423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19424 # Instead, we relocate shared libraries at runtime.
19425 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019426 sysv4*MP*)
19427 if test -d /usr/nec; then
19428 lt_prog_compiler_pic_CXX=-Kconform_pic
19429 fi
19430 ;;
19431 hpux*)
19432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19433 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019434 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019435 hppa*64*|ia64*)
19436 ;;
19437 *)
19438 lt_prog_compiler_pic_CXX='-fPIC'
19439 ;;
19440 esac
19441 ;;
19442 *)
19443 lt_prog_compiler_pic_CXX='-fPIC'
19444 ;;
19445 esac
19446 else
19447 case $host_os in
19448 aix4* | aix5*)
19449 # All AIX code is PIC.
19450 if test "$host_cpu" = ia64; then
19451 # AIX 5 now supports IA64 processor
19452 lt_prog_compiler_static_CXX='-Bstatic'
19453 else
19454 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19455 fi
19456 ;;
19457 chorus*)
19458 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019459 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019460 # Green Hills C++ Compiler
19461 # _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"
19462 ;;
19463 esac
19464 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019465 darwin*)
19466 # PIC is the default on this platform
19467 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019468 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019469 xlc*)
19470 lt_prog_compiler_pic_CXX='-qnocommon'
19471 lt_prog_compiler_wl_CXX='-Wl,'
19472 ;;
19473 esac
19474 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019475 dgux*)
19476 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019477 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019478 lt_prog_compiler_pic_CXX='-KPIC'
19479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019480 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019481 # Green Hills C++ Compiler
19482 lt_prog_compiler_pic_CXX='-pic'
19483 ;;
19484 *)
19485 ;;
19486 esac
19487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019488 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019489 # FreeBSD uses GNU C++
19490 ;;
19491 hpux9* | hpux10* | hpux11*)
19492 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019493 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019494 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019495 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019496 if test "$host_cpu" != ia64; then
19497 lt_prog_compiler_pic_CXX='+Z'
19498 fi
19499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019500 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019501 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019502 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19503 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019504 hppa*64*|ia64*)
19505 # +Z the default
19506 ;;
19507 *)
19508 lt_prog_compiler_pic_CXX='+Z'
19509 ;;
19510 esac
19511 ;;
19512 *)
19513 ;;
19514 esac
19515 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019516 interix*)
19517 # This is c89, which is MS Visual C++ (no shared libs)
19518 # Anyone wants to do a port?
19519 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019520 irix5* | irix6* | nonstopux*)
19521 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019522 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019523 lt_prog_compiler_wl_CXX='-Wl,'
19524 lt_prog_compiler_static_CXX='-non_shared'
19525 # CC pic flag -KPIC is the default.
19526 ;;
19527 *)
19528 ;;
19529 esac
19530 ;;
19531 linux*)
19532 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019533 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019534 # KAI C++ Compiler
19535 lt_prog_compiler_wl_CXX='--backend -Wl,'
19536 lt_prog_compiler_pic_CXX='-fPIC'
19537 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019538 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019539 # Intel C++
19540 lt_prog_compiler_wl_CXX='-Wl,'
19541 lt_prog_compiler_pic_CXX='-KPIC'
19542 lt_prog_compiler_static_CXX='-static'
19543 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019544 pgCC*)
19545 # Portland Group C++ compiler.
19546 lt_prog_compiler_wl_CXX='-Wl,'
19547 lt_prog_compiler_pic_CXX='-fpic'
19548 lt_prog_compiler_static_CXX='-Bstatic'
19549 ;;
19550 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019551 # Compaq C++
19552 # Make sure the PIC flag is empty. It appears that all Alpha
19553 # Linux and Compaq Tru64 Unix objects are PIC.
19554 lt_prog_compiler_pic_CXX=
19555 lt_prog_compiler_static_CXX='-non_shared'
19556 ;;
19557 *)
19558 ;;
19559 esac
19560 ;;
19561 lynxos*)
19562 ;;
19563 m88k*)
19564 ;;
19565 mvs*)
19566 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019567 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019568 lt_prog_compiler_pic_CXX='-W c,exportall'
19569 ;;
19570 *)
19571 ;;
19572 esac
19573 ;;
19574 netbsd*)
19575 ;;
19576 osf3* | osf4* | osf5*)
19577 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019578 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019579 lt_prog_compiler_wl_CXX='--backend -Wl,'
19580 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019581 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019582 # Rational C++ 2.4.1
19583 lt_prog_compiler_pic_CXX='-pic'
19584 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019585 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019586 # Digital/Compaq C++
19587 lt_prog_compiler_wl_CXX='-Wl,'
19588 # Make sure the PIC flag is empty. It appears that all Alpha
19589 # Linux and Compaq Tru64 Unix objects are PIC.
19590 lt_prog_compiler_pic_CXX=
19591 lt_prog_compiler_static_CXX='-non_shared'
19592 ;;
19593 *)
19594 ;;
19595 esac
19596 ;;
19597 psos*)
19598 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019599 solaris*)
19600 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019601 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019602 # Sun C++ 4.2, 5.x and Centerline C++
19603 lt_prog_compiler_pic_CXX='-KPIC'
19604 lt_prog_compiler_static_CXX='-Bstatic'
19605 lt_prog_compiler_wl_CXX='-Qoption ld '
19606 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019607 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019608 # Green Hills C++ Compiler
19609 lt_prog_compiler_pic_CXX='-PIC'
19610 ;;
19611 *)
19612 ;;
19613 esac
19614 ;;
19615 sunos4*)
19616 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019617 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019618 # Sun C++ 4.x
19619 lt_prog_compiler_pic_CXX='-pic'
19620 lt_prog_compiler_static_CXX='-Bstatic'
19621 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019622 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019623 # Lucid
19624 lt_prog_compiler_pic_CXX='-pic'
19625 ;;
19626 *)
19627 ;;
19628 esac
19629 ;;
19630 tandem*)
19631 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019632 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019633 # NonStop-UX NCC 3.20
19634 lt_prog_compiler_pic_CXX='-KPIC'
19635 ;;
19636 *)
19637 ;;
19638 esac
19639 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19641 case $cc_basename in
19642 CC*)
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_pic_CXX='-KPIC'
19645 lt_prog_compiler_static_CXX='-Bstatic'
19646 ;;
19647 esac
John Criswell47fdd832003-07-14 16:52:07 +000019648 ;;
19649 vxworks*)
19650 ;;
19651 *)
19652 lt_prog_compiler_can_build_shared_CXX=no
19653 ;;
19654 esac
19655 fi
19656
Reid Spencera773bd52006-08-04 18:18:08 +000019657{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19658echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019659
19660#
19661# Check to make sure the PIC flag actually works.
19662#
19663if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019664
Reid Spencera773bd52006-08-04 18:18:08 +000019665{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19666echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019667if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669else
19670 lt_prog_compiler_pic_works_CXX=no
19671 ac_outfile=conftest.$ac_objext
19672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19673 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19674 # Insert the option either (1) after the last *FLAGS variable, or
19675 # (2) before a word containing "conftest.", or (3) at the end.
19676 # Note that $ac_compile itself does not contain backslashes and begins
19677 # with a dollar sign (not a hyphen), so the echo should work correctly.
19678 # The option is referenced via a variable to avoid confusing sed.
19679 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19682 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019683 (eval echo "\"\$as_me:19683: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019684 (eval "$lt_compile" 2>conftest.err)
19685 ac_status=$?
19686 cat conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019687 echo "$as_me:19687: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019688 if (exit $ac_status) && test -s "$ac_outfile"; then
19689 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019690 # So say no if there are warnings other than the usual output.
19691 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019694 lt_prog_compiler_pic_works_CXX=yes
19695 fi
19696 fi
19697 $rm conftest*
19698
19699fi
Reid Spencera773bd52006-08-04 18:18:08 +000019700{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19701echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019702
19703if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19704 case $lt_prog_compiler_pic_CXX in
19705 "" | " "*) ;;
19706 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19707 esac
19708else
19709 lt_prog_compiler_pic_CXX=
19710 lt_prog_compiler_can_build_shared_CXX=no
19711fi
19712
19713fi
Reid Spencera773bd52006-08-04 18:18:08 +000019714case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019715 # For platforms which do not support PIC, -DPIC is meaningless:
19716 *djgpp*)
19717 lt_prog_compiler_pic_CXX=
19718 ;;
19719 *)
19720 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19721 ;;
19722esac
19723
Reid Spencera773bd52006-08-04 18:18:08 +000019724#
19725# Check to make sure the static flag actually works.
19726#
19727wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19728{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19729echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19730if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19732else
19733 lt_prog_compiler_static_works_CXX=no
19734 save_LDFLAGS="$LDFLAGS"
19735 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19736 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19737 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19738 # The linker can only warn and ignore the option if not recognized
19739 # So say no if there are warnings
19740 if test -s conftest.err; then
19741 # Append any errors to the config.log.
19742 cat conftest.err 1>&5
19743 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19745 if diff conftest.exp conftest.er2 >/dev/null; then
19746 lt_prog_compiler_static_works_CXX=yes
19747 fi
19748 else
19749 lt_prog_compiler_static_works_CXX=yes
19750 fi
19751 fi
19752 $rm conftest*
19753 LDFLAGS="$save_LDFLAGS"
19754
19755fi
19756{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19757echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19758
19759if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19760 :
19761else
19762 lt_prog_compiler_static_CXX=
19763fi
19764
19765
19766{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19767echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019768if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770else
19771 lt_cv_prog_compiler_c_o_CXX=no
19772 $rm -r conftest 2>/dev/null
19773 mkdir conftest
19774 cd conftest
19775 mkdir out
19776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19777
John Criswell47fdd832003-07-14 16:52:07 +000019778 lt_compiler_flag="-o out/conftest2.$ac_objext"
19779 # Insert the option either (1) after the last *FLAGS variable, or
19780 # (2) before a word containing "conftest.", or (3) at the end.
19781 # Note that $ac_compile itself does not contain backslashes and begins
19782 # with a dollar sign (not a hyphen), so the echo should work correctly.
19783 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19786 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019787 (eval echo "\"\$as_me:19787: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019788 (eval "$lt_compile" 2>out/conftest.err)
19789 ac_status=$?
19790 cat out/conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019791 echo "$as_me:19791: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19793 then
19794 # The compiler can only warn and ignore the option if not recognized
19795 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019796 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019799 lt_cv_prog_compiler_c_o_CXX=yes
19800 fi
19801 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019802 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019803 $rm conftest*
19804 # SGI C++ compiler will create directory out/ii_files/ for
19805 # template instantiation
19806 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19807 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019808 cd ..
19809 rmdir conftest
19810 $rm conftest*
19811
19812fi
Reid Spencera773bd52006-08-04 18:18:08 +000019813{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19814echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019815
19816
19817hard_links="nottested"
19818if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19819 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019820 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19821echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019822 hard_links=yes
19823 $rm conftest*
19824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19825 touch conftest.a
19826 ln conftest.a conftest.b 2>&5 || hard_links=no
19827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019828 { echo "$as_me:$LINENO: result: $hard_links" >&5
19829echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019830 if test "$hard_links" = no; then
19831 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19832echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19833 need_locks=warn
19834 fi
19835else
19836 need_locks=no
19837fi
19838
Reid Spencera773bd52006-08-04 18:18:08 +000019839{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19840echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019841
19842 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19843 case $host_os in
19844 aix4* | aix5*)
19845 # If we're using GNU nm, then we don't want the "-C" option.
19846 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19847 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19848 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'
19849 else
19850 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'
19851 fi
19852 ;;
19853 pw32*)
19854 export_symbols_cmds_CXX="$ltdll_cmds"
19855 ;;
19856 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019857 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 +000019858 ;;
19859 *)
19860 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19861 ;;
19862 esac
19863
Reid Spencera773bd52006-08-04 18:18:08 +000019864{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19865echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019866test "$ld_shlibs_CXX" = no && can_build_shared=no
19867
John Criswell47fdd832003-07-14 16:52:07 +000019868#
19869# Do we need to explicitly link libc?
19870#
19871case "x$archive_cmds_need_lc_CXX" in
19872x|xyes)
19873 # Assume -lc should be added
19874 archive_cmds_need_lc_CXX=yes
19875
19876 if test "$enable_shared" = yes && test "$GCC" = yes; then
19877 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019878 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019879 # FIXME: we may have to deal with multi-command sequences.
19880 ;;
19881 '$CC '*)
19882 # Test whether the compiler implicitly links with -lc since on some
19883 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19884 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019885 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19886echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019887 $rm conftest*
19888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19889
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891 (eval $ac_compile) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } 2>conftest.err; then
19895 soname=conftest
19896 lib=conftest
19897 libobjs=conftest.$ac_objext
19898 deplibs=
19899 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019900 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019901 compiler_flags=-v
19902 linker_flags=-v
19903 verstring=
19904 output_objdir=.
19905 libname=conftest
19906 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19907 allow_undefined_flag_CXX=
19908 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19909 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }
19913 then
19914 archive_cmds_need_lc_CXX=no
19915 else
19916 archive_cmds_need_lc_CXX=yes
19917 fi
19918 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19919 else
19920 cat conftest.err 1>&5
19921 fi
19922 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019923 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19924echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019925 ;;
19926 esac
19927 fi
19928 ;;
19929esac
19930
Reid Spencera773bd52006-08-04 18:18:08 +000019931{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19932echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019933library_names_spec=
19934libname_spec='lib$name'
19935soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019936shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019937postinstall_cmds=
19938postuninstall_cmds=
19939finish_cmds=
19940finish_eval=
19941shlibpath_var=
19942shlibpath_overrides_runpath=unknown
19943version_type=none
19944dynamic_linker="$host_os ld.so"
19945sys_lib_dlsearch_path_spec="/lib /usr/lib"
19946if test "$GCC" = yes; then
19947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19948 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19949 # if the path contains ";" then we assume it to be the separator
19950 # otherwise default to the standard path separator (i.e. ":") - it is
19951 # assumed that no part of a normal pathname contains ";" but that should
19952 # okay in the real world where ";" in dirpaths is itself problematic.
19953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19954 else
19955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19956 fi
19957else
19958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19959fi
19960need_lib_prefix=unknown
19961hardcode_into_libs=no
19962
19963# when you set need_version to no, make sure it does not cause -set_version
19964# flags to be left without arguments
19965need_version=unknown
19966
19967case $host_os in
19968aix3*)
19969 version_type=linux
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19971 shlibpath_var=LIBPATH
19972
19973 # AIX 3 has no versioning support, so we append a major version to the name.
19974 soname_spec='${libname}${release}${shared_ext}$major'
19975 ;;
19976
19977aix4* | aix5*)
19978 version_type=linux
19979 need_lib_prefix=no
19980 need_version=no
19981 hardcode_into_libs=yes
19982 if test "$host_cpu" = ia64; then
19983 # AIX 5 supports IA64
19984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19985 shlibpath_var=LD_LIBRARY_PATH
19986 else
19987 # With GCC up to 2.95.x, collect2 would create an import file
19988 # for dependence libraries. The import file would start with
19989 # the line `#! .'. This would cause the generated library to
19990 # depend on `.', always an invalid library. This was fixed in
19991 # development snapshots of GCC prior to 3.0.
19992 case $host_os in
19993 aix4 | aix4.[01] | aix4.[01].*)
19994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19995 echo ' yes '
19996 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19997 :
19998 else
19999 can_build_shared=no
20000 fi
20001 ;;
20002 esac
20003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20004 # soname into executable. Probably we can add versioning support to
20005 # collect2, so additional links can be useful in future.
20006 if test "$aix_use_runtimelinking" = yes; then
20007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20008 # instead of lib<name>.a to let people know that these are not
20009 # typical AIX shared libraries.
20010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20011 else
20012 # We preserve .a as extension for shared libraries through AIX4.2
20013 # and later when we are not doing run time linking.
20014 library_names_spec='${libname}${release}.a $libname.a'
20015 soname_spec='${libname}${release}${shared_ext}$major'
20016 fi
20017 shlibpath_var=LIBPATH
20018 fi
20019 ;;
20020
20021amigaos*)
20022 library_names_spec='$libname.ixlibrary $libname.a'
20023 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020024 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 +000020025 ;;
20026
20027beos*)
20028 library_names_spec='${libname}${shared_ext}'
20029 dynamic_linker="$host_os ld.so"
20030 shlibpath_var=LIBRARY_PATH
20031 ;;
20032
Reid Spencer2706f8c2004-09-19 23:53:36 +000020033bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020034 version_type=linux
20035 need_version=no
20036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20037 soname_spec='${libname}${release}${shared_ext}$major'
20038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20039 shlibpath_var=LD_LIBRARY_PATH
20040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20042 # the default ld.so.conf also contains /usr/contrib/lib and
20043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20044 # libtool to hard-code these into programs
20045 ;;
20046
20047cygwin* | mingw* | pw32*)
20048 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020049 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020050 need_version=no
20051 need_lib_prefix=no
20052
20053 case $GCC,$host_os in
20054 yes,cygwin* | yes,mingw* | yes,pw32*)
20055 library_names_spec='$libname.dll.a'
20056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020057 postinstall_cmds='base_file=`basename \${file}`~
20058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20059 dldir=$destdir/`dirname \$dlpath`~
20060 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020061 $install_prog $dir/$dlname \$dldir/$dlname~
20062 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20064 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020065 $rm \$dlpath'
20066 shlibpath_overrides_runpath=yes
20067
20068 case $host_os in
20069 cygwin*)
20070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20071 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 +000020072 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020073 ;;
20074 mingw*)
20075 # MinGW DLLs use traditional 'lib' prefix
20076 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20078 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20079 # It is most probably a Windows format PATH printed by
20080 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20081 # path with ; separators, and with drive letters. We can handle the
20082 # drive letters (cygwin fileutils understands them), so leave them,
20083 # especially as we might pass files found there to a mingw objdump,
20084 # which wouldn't understand a cygwinified path. Ahh.
20085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20086 else
20087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20088 fi
20089 ;;
20090 pw32*)
20091 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020092 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 +000020093 ;;
20094 esac
20095 ;;
20096
20097 *)
20098 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20099 ;;
20100 esac
20101 dynamic_linker='Win32 ld.exe'
20102 # FIXME: first we should search . and the directory the executable is in
20103 shlibpath_var=PATH
20104 ;;
20105
20106darwin* | rhapsody*)
20107 dynamic_linker="$host_os dyld"
20108 version_type=darwin
20109 need_lib_prefix=no
20110 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020112 soname_spec='${libname}${release}${major}$shared_ext'
20113 shlibpath_overrides_runpath=yes
20114 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020115 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020116 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020117 if test "$GCC" = yes; then
20118 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"`
20119 else
20120 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020121 fi
20122 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20123 ;;
20124
20125dgux*)
20126 version_type=linux
20127 need_lib_prefix=no
20128 need_version=no
20129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20130 soname_spec='${libname}${release}${shared_ext}$major'
20131 shlibpath_var=LD_LIBRARY_PATH
20132 ;;
20133
20134freebsd1*)
20135 dynamic_linker=no
20136 ;;
20137
Reid Spencer2706f8c2004-09-19 23:53:36 +000020138kfreebsd*-gnu)
20139 version_type=linux
20140 need_lib_prefix=no
20141 need_version=no
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 shlibpath_var=LD_LIBRARY_PATH
20145 shlibpath_overrides_runpath=no
20146 hardcode_into_libs=yes
20147 dynamic_linker='GNU ld.so'
20148 ;;
20149
Reid Spencera773bd52006-08-04 18:18:08 +000020150freebsd* | dragonfly*)
20151 # DragonFly does not have aout. When/if they implement a new
20152 # versioning mechanism, adjust this.
20153 if test -x /usr/bin/objformat; then
20154 objformat=`/usr/bin/objformat`
20155 else
20156 case $host_os in
20157 freebsd[123]*) objformat=aout ;;
20158 *) objformat=elf ;;
20159 esac
20160 fi
John Criswell47fdd832003-07-14 16:52:07 +000020161 version_type=freebsd-$objformat
20162 case $version_type in
20163 freebsd-elf*)
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20165 need_version=no
20166 need_lib_prefix=no
20167 ;;
20168 freebsd-*)
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20170 need_version=yes
20171 ;;
20172 esac
20173 shlibpath_var=LD_LIBRARY_PATH
20174 case $host_os in
20175 freebsd2*)
20176 shlibpath_overrides_runpath=yes
20177 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020178 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020179 shlibpath_overrides_runpath=yes
20180 hardcode_into_libs=yes
20181 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020182 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20183 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020184 shlibpath_overrides_runpath=no
20185 hardcode_into_libs=yes
20186 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020187 freebsd*) # from 4.6 on
20188 shlibpath_overrides_runpath=yes
20189 hardcode_into_libs=yes
20190 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020191 esac
20192 ;;
20193
20194gnu*)
20195 version_type=linux
20196 need_lib_prefix=no
20197 need_version=no
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 hardcode_into_libs=yes
20202 ;;
20203
20204hpux9* | hpux10* | hpux11*)
20205 # Give a soname corresponding to the major version so that dld.sl refuses to
20206 # link against other versions.
20207 version_type=sunos
20208 need_lib_prefix=no
20209 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020210 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020211 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020212 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020213 hardcode_into_libs=yes
20214 dynamic_linker="$host_os dld.so"
20215 shlibpath_var=LD_LIBRARY_PATH
20216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20218 soname_spec='${libname}${release}${shared_ext}$major'
20219 if test "X$HPUX_IA64_MODE" = X32; then
20220 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20221 else
20222 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20223 fi
20224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20225 ;;
20226 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020227 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020228 hardcode_into_libs=yes
20229 dynamic_linker="$host_os dld.sl"
20230 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20236 ;;
20237 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020238 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020239 dynamic_linker="$host_os dld.sl"
20240 shlibpath_var=SHLIB_PATH
20241 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20244 ;;
20245 esac
20246 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20247 postinstall_cmds='chmod 555 $lib'
20248 ;;
20249
Reid Spencera773bd52006-08-04 18:18:08 +000020250interix3*)
20251 version_type=linux
20252 need_lib_prefix=no
20253 need_version=no
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=no
20259 hardcode_into_libs=yes
20260 ;;
20261
John Criswell47fdd832003-07-14 16:52:07 +000020262irix5* | irix6* | nonstopux*)
20263 case $host_os in
20264 nonstopux*) version_type=nonstopux ;;
20265 *)
20266 if test "$lt_cv_prog_gnu_ld" = yes; then
20267 version_type=linux
20268 else
20269 version_type=irix
20270 fi ;;
20271 esac
20272 need_lib_prefix=no
20273 need_version=no
20274 soname_spec='${libname}${release}${shared_ext}$major'
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20276 case $host_os in
20277 irix5* | nonstopux*)
20278 libsuff= shlibsuff=
20279 ;;
20280 *)
20281 case $LD in # libtool.m4 will add one of these switches to LD
20282 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20283 libsuff= shlibsuff= libmagic=32-bit;;
20284 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20285 libsuff=32 shlibsuff=N32 libmagic=N32;;
20286 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20287 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20288 *) libsuff= shlibsuff= libmagic=never-match;;
20289 esac
20290 ;;
20291 esac
20292 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20293 shlibpath_overrides_runpath=no
20294 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20295 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20296 hardcode_into_libs=yes
20297 ;;
20298
20299# No shared lib support for Linux oldld, aout, or coff.
20300linux*oldld* | linux*aout* | linux*coff*)
20301 dynamic_linker=no
20302 ;;
20303
20304# This must be Linux ELF.
20305linux*)
20306 version_type=linux
20307 need_lib_prefix=no
20308 need_version=no
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20310 soname_spec='${libname}${release}${shared_ext}$major'
20311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20312 shlibpath_var=LD_LIBRARY_PATH
20313 shlibpath_overrides_runpath=no
20314 # This implies no fast_install, which is unacceptable.
20315 # Some rework will be needed to allow for fast_install
20316 # before this can be enabled.
20317 hardcode_into_libs=yes
20318
Reid Spencer2706f8c2004-09-19 23:53:36 +000020319 # Append ld.so.conf contents to the search path
20320 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020321 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 +000020322 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20323 fi
20324
John Criswell47fdd832003-07-14 16:52:07 +000020325 # We used to test for /lib/ld.so.1 and disable shared libraries on
20326 # powerpc, because MkLinux only supported shared libraries with the
20327 # GNU dynamic linker. Since this was broken with cross compilers,
20328 # most powerpc-linux boxes support dynamic linking these days and
20329 # people can always --disable-shared, the test was removed, and we
20330 # assume the GNU/Linux dynamic linker is in use.
20331 dynamic_linker='GNU/Linux ld.so'
20332 ;;
20333
Reid Spencer2706f8c2004-09-19 23:53:36 +000020334knetbsd*-gnu)
20335 version_type=linux
20336 need_lib_prefix=no
20337 need_version=no
20338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20339 soname_spec='${libname}${release}${shared_ext}$major'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=no
20342 hardcode_into_libs=yes
20343 dynamic_linker='GNU ld.so'
20344 ;;
20345
John Criswell47fdd832003-07-14 16:52:07 +000020346netbsd*)
20347 version_type=sunos
20348 need_lib_prefix=no
20349 need_version=no
20350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20353 dynamic_linker='NetBSD (a.out) ld.so'
20354 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020356 soname_spec='${libname}${release}${shared_ext}$major'
20357 dynamic_linker='NetBSD ld.elf_so'
20358 fi
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=yes
20361 hardcode_into_libs=yes
20362 ;;
20363
20364newsos6)
20365 version_type=linux
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 shlibpath_overrides_runpath=yes
20369 ;;
20370
Reid Spencer2706f8c2004-09-19 23:53:36 +000020371nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020372 version_type=linux
20373 need_lib_prefix=no
20374 need_version=no
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 shlibpath_var=LD_LIBRARY_PATH
20378 shlibpath_overrides_runpath=yes
20379 ;;
20380
20381openbsd*)
20382 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020383 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020384 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020385 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20386 case $host_os in
20387 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20388 *) need_version=no ;;
20389 esac
John Criswell47fdd832003-07-14 16:52:07 +000020390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20392 shlibpath_var=LD_LIBRARY_PATH
20393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20394 case $host_os in
20395 openbsd2.[89] | openbsd2.[89].*)
20396 shlibpath_overrides_runpath=no
20397 ;;
20398 *)
20399 shlibpath_overrides_runpath=yes
20400 ;;
20401 esac
20402 else
20403 shlibpath_overrides_runpath=yes
20404 fi
20405 ;;
20406
20407os2*)
20408 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020409 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020410 need_lib_prefix=no
20411 library_names_spec='$libname${shared_ext} $libname.a'
20412 dynamic_linker='OS/2 ld.exe'
20413 shlibpath_var=LIBPATH
20414 ;;
20415
20416osf3* | osf4* | osf5*)
20417 version_type=osf
20418 need_lib_prefix=no
20419 need_version=no
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20425 ;;
20426
John Criswell47fdd832003-07-14 16:52:07 +000020427solaris*)
20428 version_type=linux
20429 need_lib_prefix=no
20430 need_version=no
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 soname_spec='${libname}${release}${shared_ext}$major'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 shlibpath_overrides_runpath=yes
20435 hardcode_into_libs=yes
20436 # ldd complains unless libraries are executable
20437 postinstall_cmds='chmod +x $lib'
20438 ;;
20439
20440sunos4*)
20441 version_type=sunos
20442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20444 shlibpath_var=LD_LIBRARY_PATH
20445 shlibpath_overrides_runpath=yes
20446 if test "$with_gnu_ld" = yes; then
20447 need_lib_prefix=no
20448 fi
20449 need_version=yes
20450 ;;
20451
Reid Spencera773bd52006-08-04 18:18:08 +000020452sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020453 version_type=linux
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 case $host_vendor in
20458 sni)
20459 shlibpath_overrides_runpath=no
20460 need_lib_prefix=no
20461 export_dynamic_flag_spec='${wl}-Blargedynsym'
20462 runpath_var=LD_RUN_PATH
20463 ;;
20464 siemens)
20465 need_lib_prefix=no
20466 ;;
20467 motorola)
20468 need_lib_prefix=no
20469 need_version=no
20470 shlibpath_overrides_runpath=no
20471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20472 ;;
20473 esac
20474 ;;
20475
20476sysv4*MP*)
20477 if test -d /usr/nec ;then
20478 version_type=linux
20479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20480 soname_spec='$libname${shared_ext}.$major'
20481 shlibpath_var=LD_LIBRARY_PATH
20482 fi
20483 ;;
20484
Reid Spencera773bd52006-08-04 18:18:08 +000020485sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20486 version_type=freebsd-elf
20487 need_lib_prefix=no
20488 need_version=no
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20490 soname_spec='${libname}${release}${shared_ext}$major'
20491 shlibpath_var=LD_LIBRARY_PATH
20492 hardcode_into_libs=yes
20493 if test "$with_gnu_ld" = yes; then
20494 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20495 shlibpath_overrides_runpath=no
20496 else
20497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20498 shlibpath_overrides_runpath=yes
20499 case $host_os in
20500 sco3.2v5*)
20501 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20502 ;;
20503 esac
20504 fi
20505 sys_lib_dlsearch_path_spec='/usr/lib'
20506 ;;
20507
John Criswell47fdd832003-07-14 16:52:07 +000020508uts4*)
20509 version_type=linux
20510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20511 soname_spec='${libname}${release}${shared_ext}$major'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 ;;
20514
20515*)
20516 dynamic_linker=no
20517 ;;
20518esac
Reid Spencera773bd52006-08-04 18:18:08 +000020519{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20520echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020521test "$dynamic_linker" = no && can_build_shared=no
20522
Reid Spencera773bd52006-08-04 18:18:08 +000020523variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20524if test "$GCC" = yes; then
20525 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20526fi
20527
20528{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20529echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020530hardcode_action_CXX=
20531if test -n "$hardcode_libdir_flag_spec_CXX" || \
20532 test -n "$runpath_var_CXX" || \
20533 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20534
20535 # We can hardcode non-existant directories.
20536 if test "$hardcode_direct_CXX" != no &&
20537 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20538 # have to relink, otherwise we might link with an installed library
20539 # when we should be linking with a yet-to-be-installed one
20540 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20541 test "$hardcode_minus_L_CXX" != no; then
20542 # Linking always hardcodes the temporary library directory.
20543 hardcode_action_CXX=relink
20544 else
20545 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20546 hardcode_action_CXX=immediate
20547 fi
20548else
20549 # We cannot hardcode anything, or else we can only hardcode existing
20550 # directories.
20551 hardcode_action_CXX=unsupported
20552fi
Reid Spencera773bd52006-08-04 18:18:08 +000020553{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20554echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020555
20556if test "$hardcode_action_CXX" = relink; then
20557 # Fast installation is not supported
20558 enable_fast_install=no
20559elif test "$shlibpath_overrides_runpath" = yes ||
20560 test "$enable_shared" = no; then
20561 # Fast installation is not necessary
20562 enable_fast_install=needless
20563fi
20564
John Criswell47fdd832003-07-14 16:52:07 +000020565
20566# The else clause should only fire when bootstrapping the
20567# libtool distribution, otherwise you forgot to ship ltmain.sh
20568# with your package, and you will get complaints that there are
20569# no rules to generate ltmain.sh.
20570if test -f "$ltmain"; then
20571 # See if we are running on zsh, and set the options which allow our commands through
20572 # without removal of \ escapes.
20573 if test -n "${ZSH_VERSION+set}" ; then
20574 setopt NO_GLOB_SUBST
20575 fi
20576 # Now quote all the things that may contain metacharacters while being
20577 # careful not to overquote the AC_SUBSTed values. We take copies of the
20578 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020579 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 +000020580 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020581 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20582 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20583 deplibs_check_method reload_flag reload_cmds need_locks \
20584 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20585 lt_cv_sys_global_symbol_to_c_name_address \
20586 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20587 old_postinstall_cmds old_postuninstall_cmds \
20588 compiler_CXX \
20589 CC_CXX \
20590 LD_CXX \
20591 lt_prog_compiler_wl_CXX \
20592 lt_prog_compiler_pic_CXX \
20593 lt_prog_compiler_static_CXX \
20594 lt_prog_compiler_no_builtin_flag_CXX \
20595 export_dynamic_flag_spec_CXX \
20596 thread_safe_flag_spec_CXX \
20597 whole_archive_flag_spec_CXX \
20598 enable_shared_with_static_runtimes_CXX \
20599 old_archive_cmds_CXX \
20600 old_archive_from_new_cmds_CXX \
20601 predep_objects_CXX \
20602 postdep_objects_CXX \
20603 predeps_CXX \
20604 postdeps_CXX \
20605 compiler_lib_search_path_CXX \
20606 archive_cmds_CXX \
20607 archive_expsym_cmds_CXX \
20608 postinstall_cmds_CXX \
20609 postuninstall_cmds_CXX \
20610 old_archive_from_expsyms_cmds_CXX \
20611 allow_undefined_flag_CXX \
20612 no_undefined_flag_CXX \
20613 export_symbols_cmds_CXX \
20614 hardcode_libdir_flag_spec_CXX \
20615 hardcode_libdir_flag_spec_ld_CXX \
20616 hardcode_libdir_separator_CXX \
20617 hardcode_automatic_CXX \
20618 module_cmds_CXX \
20619 module_expsym_cmds_CXX \
20620 lt_cv_prog_compiler_c_o_CXX \
20621 exclude_expsyms_CXX \
20622 include_expsyms_CXX; do
20623
20624 case $var in
20625 old_archive_cmds_CXX | \
20626 old_archive_from_new_cmds_CXX | \
20627 archive_cmds_CXX | \
20628 archive_expsym_cmds_CXX | \
20629 module_cmds_CXX | \
20630 module_expsym_cmds_CXX | \
20631 old_archive_from_expsyms_cmds_CXX | \
20632 export_symbols_cmds_CXX | \
20633 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20634 postinstall_cmds | postuninstall_cmds | \
20635 old_postinstall_cmds | old_postuninstall_cmds | \
20636 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20637 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020638 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 +000020639 ;;
20640 *)
20641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20642 ;;
20643 esac
20644 done
20645
20646 case $lt_echo in
20647 *'\$0 --fallback-echo"')
20648 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20649 ;;
20650 esac
20651
20652cfgfile="$ofile"
20653
20654 cat <<__EOF__ >> "$cfgfile"
20655# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20656
20657# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20658
20659# Shell to use when invoking shell scripts.
20660SHELL=$lt_SHELL
20661
20662# Whether or not to build shared libraries.
20663build_libtool_libs=$enable_shared
20664
20665# Whether or not to build static libraries.
20666build_old_libs=$enable_static
20667
20668# Whether or not to add -lc for building shared libraries.
20669build_libtool_need_lc=$archive_cmds_need_lc_CXX
20670
20671# Whether or not to disallow shared libs when runtime libs are static
20672allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20673
20674# Whether or not to optimize for fast installation.
20675fast_install=$enable_fast_install
20676
20677# The host system.
20678host_alias=$host_alias
20679host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020680host_os=$host_os
20681
20682# The build system.
20683build_alias=$build_alias
20684build=$build
20685build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020686
20687# An echo program that does not interpret backslashes.
20688echo=$lt_echo
20689
20690# The archiver.
20691AR=$lt_AR
20692AR_FLAGS=$lt_AR_FLAGS
20693
20694# A C compiler.
20695LTCC=$lt_LTCC
20696
Reid Spencera773bd52006-08-04 18:18:08 +000020697# LTCC compiler flags.
20698LTCFLAGS=$lt_LTCFLAGS
20699
John Criswell47fdd832003-07-14 16:52:07 +000020700# A language-specific compiler.
20701CC=$lt_compiler_CXX
20702
20703# Is the compiler the GNU C compiler?
20704with_gcc=$GCC_CXX
20705
20706# An ERE matcher.
20707EGREP=$lt_EGREP
20708
20709# The linker used to build libraries.
20710LD=$lt_LD_CXX
20711
20712# Whether we need hard or soft links.
20713LN_S=$lt_LN_S
20714
20715# A BSD-compatible nm program.
20716NM=$lt_NM
20717
20718# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020719STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020720
20721# Used to examine libraries when file_magic_cmd begins "file"
20722MAGIC_CMD=$MAGIC_CMD
20723
20724# Used on cygwin: DLL creation program.
20725DLLTOOL="$DLLTOOL"
20726
20727# Used on cygwin: object dumper.
20728OBJDUMP="$OBJDUMP"
20729
20730# Used on cygwin: assembler.
20731AS="$AS"
20732
20733# The name of the directory that contains temporary libtool files.
20734objdir=$objdir
20735
20736# How to create reloadable object files.
20737reload_flag=$lt_reload_flag
20738reload_cmds=$lt_reload_cmds
20739
20740# How to pass a linker flag through the compiler.
20741wl=$lt_lt_prog_compiler_wl_CXX
20742
20743# Object file suffix (normally "o").
20744objext="$ac_objext"
20745
20746# Old archive suffix (normally "a").
20747libext="$libext"
20748
20749# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020750shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020751
20752# Executable file suffix (normally "").
20753exeext="$exeext"
20754
20755# Additional compiler flags for building library objects.
20756pic_flag=$lt_lt_prog_compiler_pic_CXX
20757pic_mode=$pic_mode
20758
20759# What is the maximum length of a command?
20760max_cmd_len=$lt_cv_sys_max_cmd_len
20761
20762# Does compiler simultaneously support -c and -o options?
20763compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20764
Reid Spencera773bd52006-08-04 18:18:08 +000020765# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020766need_locks=$lt_need_locks
20767
20768# Do we need the lib prefix for modules?
20769need_lib_prefix=$need_lib_prefix
20770
20771# Do we need a version for libraries?
20772need_version=$need_version
20773
20774# Whether dlopen is supported.
20775dlopen_support=$enable_dlopen
20776
20777# Whether dlopen of programs is supported.
20778dlopen_self=$enable_dlopen_self
20779
20780# Whether dlopen of statically linked programs is supported.
20781dlopen_self_static=$enable_dlopen_self_static
20782
20783# Compiler flag to prevent dynamic linking.
20784link_static_flag=$lt_lt_prog_compiler_static_CXX
20785
20786# Compiler flag to turn off builtin functions.
20787no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20788
20789# Compiler flag to allow reflexive dlopens.
20790export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20791
20792# Compiler flag to generate shared objects directly from archives.
20793whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20794
20795# Compiler flag to generate thread-safe objects.
20796thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20797
20798# Library versioning type.
20799version_type=$version_type
20800
20801# Format of library name prefix.
20802libname_spec=$lt_libname_spec
20803
20804# List of archive names. First name is the real one, the rest are links.
20805# The last name is the one that the linker finds with -lNAME.
20806library_names_spec=$lt_library_names_spec
20807
20808# The coded name of the library, if different from the real name.
20809soname_spec=$lt_soname_spec
20810
20811# Commands used to build and install an old-style archive.
20812RANLIB=$lt_RANLIB
20813old_archive_cmds=$lt_old_archive_cmds_CXX
20814old_postinstall_cmds=$lt_old_postinstall_cmds
20815old_postuninstall_cmds=$lt_old_postuninstall_cmds
20816
20817# Create an old-style archive from a shared archive.
20818old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20819
20820# Create a temporary old-style archive to link instead of a shared archive.
20821old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20822
20823# Commands used to build and install a shared archive.
20824archive_cmds=$lt_archive_cmds_CXX
20825archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20826postinstall_cmds=$lt_postinstall_cmds
20827postuninstall_cmds=$lt_postuninstall_cmds
20828
20829# Commands used to build a loadable module (assumed same as above if empty)
20830module_cmds=$lt_module_cmds_CXX
20831module_expsym_cmds=$lt_module_expsym_cmds_CXX
20832
20833# Commands to strip libraries.
20834old_striplib=$lt_old_striplib
20835striplib=$lt_striplib
20836
20837# Dependencies to place before the objects being linked to create a
20838# shared library.
20839predep_objects=$lt_predep_objects_CXX
20840
20841# Dependencies to place after the objects being linked to create a
20842# shared library.
20843postdep_objects=$lt_postdep_objects_CXX
20844
20845# Dependencies to place before the objects being linked to create a
20846# shared library.
20847predeps=$lt_predeps_CXX
20848
20849# Dependencies to place after the objects being linked to create a
20850# shared library.
20851postdeps=$lt_postdeps_CXX
20852
20853# The library search path used internally by the compiler when linking
20854# a shared library.
20855compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20856
20857# Method to check whether dependent libraries are shared objects.
20858deplibs_check_method=$lt_deplibs_check_method
20859
20860# Command to use when deplibs_check_method == file_magic.
20861file_magic_cmd=$lt_file_magic_cmd
20862
20863# Flag that allows shared libraries with undefined symbols to be built.
20864allow_undefined_flag=$lt_allow_undefined_flag_CXX
20865
20866# Flag that forces no undefined symbols.
20867no_undefined_flag=$lt_no_undefined_flag_CXX
20868
20869# Commands used to finish a libtool library installation in a directory.
20870finish_cmds=$lt_finish_cmds
20871
20872# Same as above, but a single script fragment to be evaled but not shown.
20873finish_eval=$lt_finish_eval
20874
20875# Take the output of nm and produce a listing of raw symbols and C names.
20876global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20877
20878# Transform the output of nm in a proper C declaration
20879global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20880
20881# Transform the output of nm in a C name address pair
20882global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20883
20884# This is the shared library runtime path variable.
20885runpath_var=$runpath_var
20886
20887# This is the shared library path variable.
20888shlibpath_var=$shlibpath_var
20889
20890# Is shlibpath searched before the hard-coded library search path?
20891shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20892
20893# How to hardcode a shared library path into an executable.
20894hardcode_action=$hardcode_action_CXX
20895
20896# Whether we should hardcode library paths into libraries.
20897hardcode_into_libs=$hardcode_into_libs
20898
20899# Flag to hardcode \$libdir into a binary during linking.
20900# This must work even if \$libdir does not exist.
20901hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20902
20903# If ld is used when linking, flag to hardcode \$libdir into
20904# a binary during linking. This must work even if \$libdir does
20905# not exist.
20906hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20907
20908# Whether we need a single -rpath flag with a separated argument.
20909hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20910
20911# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20912# resulting binary.
20913hardcode_direct=$hardcode_direct_CXX
20914
20915# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20916# resulting binary.
20917hardcode_minus_L=$hardcode_minus_L_CXX
20918
20919# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20920# the resulting binary.
20921hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20922
20923# Set to yes if building a shared library automatically hardcodes DIR into the library
20924# and all subsequent libraries and executables linked against it.
20925hardcode_automatic=$hardcode_automatic_CXX
20926
20927# Variables whose values should be saved in libtool wrapper scripts and
20928# restored at relink time.
20929variables_saved_for_relink="$variables_saved_for_relink"
20930
20931# Whether libtool must link a program against all its dependency libraries.
20932link_all_deplibs=$link_all_deplibs_CXX
20933
20934# Compile-time system search path for libraries
20935sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20936
20937# Run-time system search path for libraries
20938sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20939
20940# Fix the shell variable \$srcfile for the compiler.
20941fix_srcfile_path="$fix_srcfile_path_CXX"
20942
20943# Set to yes if exported symbols are required.
20944always_export_symbols=$always_export_symbols_CXX
20945
20946# The commands to list exported symbols.
20947export_symbols_cmds=$lt_export_symbols_cmds_CXX
20948
20949# The commands to extract the exported symbol list from a shared archive.
20950extract_expsyms_cmds=$lt_extract_expsyms_cmds
20951
20952# Symbols that should not be listed in the preloaded symbols.
20953exclude_expsyms=$lt_exclude_expsyms_CXX
20954
20955# Symbols that must always be exported.
20956include_expsyms=$lt_include_expsyms_CXX
20957
20958# ### END LIBTOOL TAG CONFIG: $tagname
20959
20960__EOF__
20961
20962
20963else
20964 # If there is no Makefile yet, we rely on a make rule to execute
20965 # `config.status --recheck' to rerun these tests and create the
20966 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020967 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20968 if test -f "$ltmain_in"; then
20969 test -f Makefile && make "$ltmain"
20970 fi
John Criswell47fdd832003-07-14 16:52:07 +000020971fi
20972
20973
20974ac_ext=c
20975ac_cpp='$CPP $CPPFLAGS'
20976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978ac_compiler_gnu=$ac_cv_c_compiler_gnu
20979
20980CC=$lt_save_CC
20981LDCXX=$LD
20982LD=$lt_save_LD
20983GCC=$lt_save_GCC
20984with_gnu_ldcxx=$with_gnu_ld
20985with_gnu_ld=$lt_save_with_gnu_ld
20986lt_cv_path_LDCXX=$lt_cv_path_LD
20987lt_cv_path_LD=$lt_save_path_LD
20988lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20989lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20990
20991 else
20992 tagname=""
20993 fi
20994 ;;
20995
20996 F77)
20997 if test -n "$F77" && test "X$F77" != "Xno"; then
20998
20999ac_ext=f
21000ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21001ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21003
21004
21005archive_cmds_need_lc_F77=no
21006allow_undefined_flag_F77=
21007always_export_symbols_F77=no
21008archive_expsym_cmds_F77=
21009export_dynamic_flag_spec_F77=
21010hardcode_direct_F77=no
21011hardcode_libdir_flag_spec_F77=
21012hardcode_libdir_flag_spec_ld_F77=
21013hardcode_libdir_separator_F77=
21014hardcode_minus_L_F77=no
21015hardcode_automatic_F77=no
21016module_cmds_F77=
21017module_expsym_cmds_F77=
21018link_all_deplibs_F77=unknown
21019old_archive_cmds_F77=$old_archive_cmds
21020no_undefined_flag_F77=
21021whole_archive_flag_spec_F77=
21022enable_shared_with_static_runtimes_F77=no
21023
21024# Source file extension for f77 test sources.
21025ac_ext=f
21026
21027# Object file extension for compiled f77 test sources.
21028objext=o
21029objext_F77=$objext
21030
21031# Code to be used in simple compile tests
21032lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21033
21034# Code to be used in simple link tests
21035lt_simple_link_test_code=" program t\n end\n"
21036
21037# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21038
21039# If no C compiler was specified, use CC.
21040LTCC=${LTCC-"$CC"}
21041
Reid Spencera773bd52006-08-04 18:18:08 +000021042# If no C compiler flags were specified, use CFLAGS.
21043LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21044
John Criswell47fdd832003-07-14 16:52:07 +000021045# Allow CC to be a program name with arguments.
21046compiler=$CC
21047
21048
Reid Spencera773bd52006-08-04 18:18:08 +000021049# save warnings/boilerplate of simple test code
21050ac_outfile=conftest.$ac_objext
21051printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21052eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21053_lt_compiler_boilerplate=`cat conftest.err`
21054$rm conftest*
21055
21056ac_outfile=conftest.$ac_objext
21057printf "$lt_simple_link_test_code" >conftest.$ac_ext
21058eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21059_lt_linker_boilerplate=`cat conftest.err`
21060$rm conftest*
21061
21062
John Criswell47fdd832003-07-14 16:52:07 +000021063# Allow CC to be a program name with arguments.
21064lt_save_CC="$CC"
21065CC=${F77-"f77"}
21066compiler=$CC
21067compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021068for cc_temp in $compiler""; do
21069 case $cc_temp in
21070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21072 \-*) ;;
21073 *) break;;
21074 esac
21075done
21076cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021077
John Criswell47fdd832003-07-14 16:52:07 +000021078
Reid Spencera773bd52006-08-04 18:18:08 +000021079{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21080echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21081{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21082echo "${ECHO_T}$can_build_shared" >&6; }
21083
21084{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21085echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021086test "$can_build_shared" = "no" && enable_shared=no
21087
21088# On AIX, shared libraries and static libraries use the same namespace, and
21089# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021090case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021091aix3*)
21092 test "$enable_shared" = yes && enable_static=no
21093 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021094 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021095 postinstall_cmds='$RANLIB $lib'
21096 fi
21097 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021098aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021099 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21100 test "$enable_shared" = yes && enable_static=no
21101 fi
John Criswell47fdd832003-07-14 16:52:07 +000021102 ;;
21103esac
Reid Spencera773bd52006-08-04 18:18:08 +000021104{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21105echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021106
Reid Spencera773bd52006-08-04 18:18:08 +000021107{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21108echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021109# Make sure either enable_shared or enable_static is yes.
21110test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021111{ echo "$as_me:$LINENO: result: $enable_static" >&5
21112echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021113
21114GCC_F77="$G77"
21115LD_F77="$LD"
21116
21117lt_prog_compiler_wl_F77=
21118lt_prog_compiler_pic_F77=
21119lt_prog_compiler_static_F77=
21120
Reid Spencera773bd52006-08-04 18:18:08 +000021121{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021123
21124 if test "$GCC" = yes; then
21125 lt_prog_compiler_wl_F77='-Wl,'
21126 lt_prog_compiler_static_F77='-static'
21127
21128 case $host_os in
21129 aix*)
21130 # All AIX code is PIC.
21131 if test "$host_cpu" = ia64; then
21132 # AIX 5 now supports IA64 processor
21133 lt_prog_compiler_static_F77='-Bstatic'
21134 fi
21135 ;;
21136
21137 amigaos*)
21138 # FIXME: we need at least 68020 code to build shared libraries, but
21139 # adding the `-m68020' flag to GCC prevents building anything better,
21140 # like `-m68040'.
21141 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21142 ;;
21143
21144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21145 # PIC is the default for these OSes.
21146 ;;
21147
21148 mingw* | pw32* | os2*)
21149 # This hack is so that the source file can tell whether it is being
21150 # built for inclusion in a dll (and should export symbols for example).
21151 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21152 ;;
21153
21154 darwin* | rhapsody*)
21155 # PIC is the default on this platform
21156 # Common symbols not allowed in MH_DYLIB files
21157 lt_prog_compiler_pic_F77='-fno-common'
21158 ;;
21159
Reid Spencera773bd52006-08-04 18:18:08 +000021160 interix3*)
21161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21162 # Instead, we relocate shared libraries at runtime.
21163 ;;
21164
John Criswell47fdd832003-07-14 16:52:07 +000021165 msdosdjgpp*)
21166 # Just because we use GCC doesn't mean we suddenly get shared libraries
21167 # on systems that don't support them.
21168 lt_prog_compiler_can_build_shared_F77=no
21169 enable_shared=no
21170 ;;
21171
21172 sysv4*MP*)
21173 if test -d /usr/nec; then
21174 lt_prog_compiler_pic_F77=-Kconform_pic
21175 fi
21176 ;;
21177
21178 hpux*)
21179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21180 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021181 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021182 hppa*64*|ia64*)
21183 # +Z the default
21184 ;;
21185 *)
21186 lt_prog_compiler_pic_F77='-fPIC'
21187 ;;
21188 esac
21189 ;;
21190
21191 *)
21192 lt_prog_compiler_pic_F77='-fPIC'
21193 ;;
21194 esac
21195 else
21196 # PORTME Check for flag to pass linker flags through the system compiler.
21197 case $host_os in
21198 aix*)
21199 lt_prog_compiler_wl_F77='-Wl,'
21200 if test "$host_cpu" = ia64; then
21201 # AIX 5 now supports IA64 processor
21202 lt_prog_compiler_static_F77='-Bstatic'
21203 else
21204 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21205 fi
21206 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021207 darwin*)
21208 # PIC is the default on this platform
21209 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021210 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021211 xlc*)
21212 lt_prog_compiler_pic_F77='-qnocommon'
21213 lt_prog_compiler_wl_F77='-Wl,'
21214 ;;
21215 esac
21216 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021217
21218 mingw* | pw32* | os2*)
21219 # This hack is so that the source file can tell whether it is being
21220 # built for inclusion in a dll (and should export symbols for example).
21221 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21222 ;;
21223
21224 hpux9* | hpux10* | hpux11*)
21225 lt_prog_compiler_wl_F77='-Wl,'
21226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21227 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021228 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021229 hppa*64*|ia64*)
21230 # +Z the default
21231 ;;
21232 *)
21233 lt_prog_compiler_pic_F77='+Z'
21234 ;;
21235 esac
21236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21237 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21238 ;;
21239
21240 irix5* | irix6* | nonstopux*)
21241 lt_prog_compiler_wl_F77='-Wl,'
21242 # PIC (with -KPIC) is the default.
21243 lt_prog_compiler_static_F77='-non_shared'
21244 ;;
21245
21246 newsos6)
21247 lt_prog_compiler_pic_F77='-KPIC'
21248 lt_prog_compiler_static_F77='-Bstatic'
21249 ;;
21250
21251 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021252 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021253 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021254 lt_prog_compiler_wl_F77='-Wl,'
21255 lt_prog_compiler_pic_F77='-KPIC'
21256 lt_prog_compiler_static_F77='-static'
21257 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021258 pgcc* | pgf77* | pgf90* | pgf95*)
21259 # Portland Group compilers (*not* the Pentium gcc compiler,
21260 # which looks to be a dead project)
21261 lt_prog_compiler_wl_F77='-Wl,'
21262 lt_prog_compiler_pic_F77='-fpic'
21263 lt_prog_compiler_static_F77='-Bstatic'
21264 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021265 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021266 lt_prog_compiler_wl_F77='-Wl,'
21267 # All Alpha code is PIC.
21268 lt_prog_compiler_static_F77='-non_shared'
21269 ;;
21270 esac
21271 ;;
21272
21273 osf3* | osf4* | osf5*)
21274 lt_prog_compiler_wl_F77='-Wl,'
21275 # All OSF/1 code is PIC.
21276 lt_prog_compiler_static_F77='-non_shared'
21277 ;;
21278
John Criswell47fdd832003-07-14 16:52:07 +000021279 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021280 lt_prog_compiler_pic_F77='-KPIC'
21281 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021282 case $cc_basename in
21283 f77* | f90* | f95*)
21284 lt_prog_compiler_wl_F77='-Qoption ld ';;
21285 *)
21286 lt_prog_compiler_wl_F77='-Wl,';;
21287 esac
John Criswell47fdd832003-07-14 16:52:07 +000021288 ;;
21289
21290 sunos4*)
21291 lt_prog_compiler_wl_F77='-Qoption ld '
21292 lt_prog_compiler_pic_F77='-PIC'
21293 lt_prog_compiler_static_F77='-Bstatic'
21294 ;;
21295
Reid Spencera773bd52006-08-04 18:18:08 +000021296 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021297 lt_prog_compiler_wl_F77='-Wl,'
21298 lt_prog_compiler_pic_F77='-KPIC'
21299 lt_prog_compiler_static_F77='-Bstatic'
21300 ;;
21301
21302 sysv4*MP*)
21303 if test -d /usr/nec ;then
21304 lt_prog_compiler_pic_F77='-Kconform_pic'
21305 lt_prog_compiler_static_F77='-Bstatic'
21306 fi
21307 ;;
21308
Reid Spencera773bd52006-08-04 18:18:08 +000021309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21310 lt_prog_compiler_wl_F77='-Wl,'
21311 lt_prog_compiler_pic_F77='-KPIC'
21312 lt_prog_compiler_static_F77='-Bstatic'
21313 ;;
21314
21315 unicos*)
21316 lt_prog_compiler_wl_F77='-Wl,'
21317 lt_prog_compiler_can_build_shared_F77=no
21318 ;;
21319
John Criswell47fdd832003-07-14 16:52:07 +000021320 uts4*)
21321 lt_prog_compiler_pic_F77='-pic'
21322 lt_prog_compiler_static_F77='-Bstatic'
21323 ;;
21324
21325 *)
21326 lt_prog_compiler_can_build_shared_F77=no
21327 ;;
21328 esac
21329 fi
21330
Reid Spencera773bd52006-08-04 18:18:08 +000021331{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21332echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021333
21334#
21335# Check to make sure the PIC flag actually works.
21336#
21337if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021338
Reid Spencera773bd52006-08-04 18:18:08 +000021339{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21340echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021341if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21343else
21344 lt_prog_compiler_pic_works_F77=no
21345 ac_outfile=conftest.$ac_objext
21346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21347 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21348 # Insert the option either (1) after the last *FLAGS variable, or
21349 # (2) before a word containing "conftest.", or (3) at the end.
21350 # Note that $ac_compile itself does not contain backslashes and begins
21351 # with a dollar sign (not a hyphen), so the echo should work correctly.
21352 # The option is referenced via a variable to avoid confusing sed.
21353 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21356 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021357 (eval echo "\"\$as_me:21357: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021358 (eval "$lt_compile" 2>conftest.err)
21359 ac_status=$?
21360 cat conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021361 echo "$as_me:21361: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021362 if (exit $ac_status) && test -s "$ac_outfile"; then
21363 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021364 # So say no if there are warnings other than the usual output.
21365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021368 lt_prog_compiler_pic_works_F77=yes
21369 fi
21370 fi
21371 $rm conftest*
21372
21373fi
Reid Spencera773bd52006-08-04 18:18:08 +000021374{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21375echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021376
21377if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21378 case $lt_prog_compiler_pic_F77 in
21379 "" | " "*) ;;
21380 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21381 esac
21382else
21383 lt_prog_compiler_pic_F77=
21384 lt_prog_compiler_can_build_shared_F77=no
21385fi
21386
21387fi
Reid Spencera773bd52006-08-04 18:18:08 +000021388case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021389 # For platforms which do not support PIC, -DPIC is meaningless:
21390 *djgpp*)
21391 lt_prog_compiler_pic_F77=
21392 ;;
21393 *)
21394 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21395 ;;
21396esac
21397
Reid Spencera773bd52006-08-04 18:18:08 +000021398#
21399# Check to make sure the static flag actually works.
21400#
21401wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21402{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21403echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21404if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406else
21407 lt_prog_compiler_static_works_F77=no
21408 save_LDFLAGS="$LDFLAGS"
21409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21410 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21412 # The linker can only warn and ignore the option if not recognized
21413 # So say no if there are warnings
21414 if test -s conftest.err; then
21415 # Append any errors to the config.log.
21416 cat conftest.err 1>&5
21417 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21419 if diff conftest.exp conftest.er2 >/dev/null; then
21420 lt_prog_compiler_static_works_F77=yes
21421 fi
21422 else
21423 lt_prog_compiler_static_works_F77=yes
21424 fi
21425 fi
21426 $rm conftest*
21427 LDFLAGS="$save_LDFLAGS"
21428
21429fi
21430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21431echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21432
21433if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21434 :
21435else
21436 lt_prog_compiler_static_F77=
21437fi
21438
21439
21440{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21441echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021442if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21444else
21445 lt_cv_prog_compiler_c_o_F77=no
21446 $rm -r conftest 2>/dev/null
21447 mkdir conftest
21448 cd conftest
21449 mkdir out
21450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21451
John Criswell47fdd832003-07-14 16:52:07 +000021452 lt_compiler_flag="-o out/conftest2.$ac_objext"
21453 # Insert the option either (1) after the last *FLAGS variable, or
21454 # (2) before a word containing "conftest.", or (3) at the end.
21455 # Note that $ac_compile itself does not contain backslashes and begins
21456 # with a dollar sign (not a hyphen), so the echo should work correctly.
21457 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21460 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021461 (eval echo "\"\$as_me:21461: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021462 (eval "$lt_compile" 2>out/conftest.err)
21463 ac_status=$?
21464 cat out/conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021465 echo "$as_me:21465: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21467 then
21468 # The compiler can only warn and ignore the option if not recognized
21469 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021473 lt_cv_prog_compiler_c_o_F77=yes
21474 fi
21475 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021476 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021477 $rm conftest*
21478 # SGI C++ compiler will create directory out/ii_files/ for
21479 # template instantiation
21480 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21481 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021482 cd ..
21483 rmdir conftest
21484 $rm conftest*
21485
21486fi
Reid Spencera773bd52006-08-04 18:18:08 +000021487{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21488echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021489
21490
21491hard_links="nottested"
21492if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21493 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021494 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21495echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021496 hard_links=yes
21497 $rm conftest*
21498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21499 touch conftest.a
21500 ln conftest.a conftest.b 2>&5 || hard_links=no
21501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021502 { echo "$as_me:$LINENO: result: $hard_links" >&5
21503echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021504 if test "$hard_links" = no; then
21505 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21506echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21507 need_locks=warn
21508 fi
21509else
21510 need_locks=no
21511fi
21512
Reid Spencera773bd52006-08-04 18:18:08 +000021513{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21514echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021515
21516 runpath_var=
21517 allow_undefined_flag_F77=
21518 enable_shared_with_static_runtimes_F77=no
21519 archive_cmds_F77=
21520 archive_expsym_cmds_F77=
21521 old_archive_From_new_cmds_F77=
21522 old_archive_from_expsyms_cmds_F77=
21523 export_dynamic_flag_spec_F77=
21524 whole_archive_flag_spec_F77=
21525 thread_safe_flag_spec_F77=
21526 hardcode_libdir_flag_spec_F77=
21527 hardcode_libdir_flag_spec_ld_F77=
21528 hardcode_libdir_separator_F77=
21529 hardcode_direct_F77=no
21530 hardcode_minus_L_F77=no
21531 hardcode_shlibpath_var_F77=unsupported
21532 link_all_deplibs_F77=unknown
21533 hardcode_automatic_F77=no
21534 module_cmds_F77=
21535 module_expsym_cmds_F77=
21536 always_export_symbols_F77=no
21537 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21538 # include_expsyms should be a list of space-separated symbols to be *always*
21539 # included in the symbol list
21540 include_expsyms_F77=
21541 # exclude_expsyms can be an extended regexp of symbols to exclude
21542 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21543 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21544 # as well as any symbol that contains `d'.
21545 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21546 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21547 # platforms (ab)use it in PIC code, but their linkers get confused if
21548 # the symbol is explicitly referenced. Since portable code cannot
21549 # rely on this symbol name, it's probably fine to never include it in
21550 # preloaded symbol tables.
21551 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021552 # Just being paranoid about ensuring that cc_basename is set.
21553 for cc_temp in $compiler""; do
21554 case $cc_temp in
21555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21557 \-*) ;;
21558 *) break;;
21559 esac
21560done
21561cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021562
21563 case $host_os in
21564 cygwin* | mingw* | pw32*)
21565 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21566 # When not using gcc, we currently assume that we are using
21567 # Microsoft Visual C++.
21568 if test "$GCC" != yes; then
21569 with_gnu_ld=no
21570 fi
21571 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021572 interix*)
21573 # we just hope/assume this is gcc and not c89 (= MSVC++)
21574 with_gnu_ld=yes
21575 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021576 openbsd*)
21577 with_gnu_ld=no
21578 ;;
21579 esac
21580
21581 ld_shlibs_F77=yes
21582 if test "$with_gnu_ld" = yes; then
21583 # If archive_cmds runs LD, not CC, wlarc should be empty
21584 wlarc='${wl}'
21585
Reid Spencera773bd52006-08-04 18:18:08 +000021586 # Set some defaults for GNU ld with shared library support. These
21587 # are reset later if shared libraries are not supported. Putting them
21588 # here allows them to be overridden if necessary.
21589 runpath_var=LD_RUN_PATH
21590 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21591 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21592 # ancient GNU ld didn't support --whole-archive et. al.
21593 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21594 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21595 else
21596 whole_archive_flag_spec_F77=
21597 fi
21598 supports_anon_versioning=no
21599 case `$LD -v 2>/dev/null` in
21600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21603 *\ 2.11.*) ;; # other 2.11 versions
21604 *) supports_anon_versioning=yes ;;
21605 esac
21606
John Criswell47fdd832003-07-14 16:52:07 +000021607 # See if GNU ld supports shared libraries.
21608 case $host_os in
21609 aix3* | aix4* | aix5*)
21610 # On AIX/PPC, the GNU linker is very broken
21611 if test "$host_cpu" != ia64; then
21612 ld_shlibs_F77=no
21613 cat <<EOF 1>&2
21614
21615*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21616*** to be unable to reliably create shared libraries on AIX.
21617*** Therefore, libtool is disabling shared libraries support. If you
21618*** really care for shared libraries, you may want to modify your PATH
21619*** so that a non-GNU linker is found, and then restart.
21620
21621EOF
21622 fi
21623 ;;
21624
21625 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021626 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 +000021627 hardcode_libdir_flag_spec_F77='-L$libdir'
21628 hardcode_minus_L_F77=yes
21629
21630 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21631 # that the semantics of dynamic libraries on AmigaOS, at least up
21632 # to version 4, is to share data among multiple programs linked
21633 # with the same dynamic library. Since this doesn't match the
21634 # behavior of shared libraries on other platforms, we can't use
21635 # them.
21636 ld_shlibs_F77=no
21637 ;;
21638
21639 beos*)
21640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21641 allow_undefined_flag_F77=unsupported
21642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21643 # support --undefined. This deserves some investigation. FIXME
21644 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21645 else
21646 ld_shlibs_F77=no
21647 fi
21648 ;;
21649
21650 cygwin* | mingw* | pw32*)
21651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21652 # as there is no search path for DLLs.
21653 hardcode_libdir_flag_spec_F77='-L$libdir'
21654 allow_undefined_flag_F77=unsupported
21655 always_export_symbols_F77=no
21656 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021657 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 +000021658
21659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021660 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 +000021661 # If the export-symbols file already is a .def file (1st line
21662 # is EXPORTS), use it as is; otherwise, prepend...
21663 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21664 cp $export_symbols $output_objdir/$soname.def;
21665 else
21666 echo EXPORTS > $output_objdir/$soname.def;
21667 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021668 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021669 $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 +000021670 else
Reid Spencera773bd52006-08-04 18:18:08 +000021671 ld_shlibs_F77=no
21672 fi
21673 ;;
21674
21675 interix3*)
21676 hardcode_direct_F77=no
21677 hardcode_shlibpath_var_F77=no
21678 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21679 export_dynamic_flag_spec_F77='${wl}-E'
21680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21681 # Instead, shared libraries are loaded at an image base (0x10000000 by
21682 # default) and relocated if they conflict, which is a slow very memory
21683 # consuming and fragmenting process. To avoid this, we pick a random,
21684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21685 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21686 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'
21687 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'
21688 ;;
21689
21690 linux*)
21691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692 tmp_addflag=
21693 case $cc_basename,$host_cpu in
21694 pgcc*) # Portland Group C compiler
21695 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'
21696 tmp_addflag=' $pic_flag'
21697 ;;
21698 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21699 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'
21700 tmp_addflag=' $pic_flag -Mnomain' ;;
21701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21702 tmp_addflag=' -i_dynamic' ;;
21703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21704 tmp_addflag=' -i_dynamic -nofor_main' ;;
21705 ifc* | ifort*) # Intel Fortran compiler
21706 tmp_addflag=' -nofor_main' ;;
21707 esac
21708 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21709
21710 if test $supports_anon_versioning = yes; then
21711 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21713 $echo "local: *; };" >> $output_objdir/$libname.ver~
21714 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21715 fi
21716 else
21717 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021718 fi
21719 ;;
21720
21721 netbsd*)
21722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21723 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21724 wlarc=
21725 else
21726 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21727 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21728 fi
21729 ;;
21730
Reid Spencera773bd52006-08-04 18:18:08 +000021731 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021732 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21733 ld_shlibs_F77=no
21734 cat <<EOF 1>&2
21735
21736*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21737*** create shared libraries on Solaris systems. Therefore, libtool
21738*** is disabling shared libraries support. We urge you to upgrade GNU
21739*** binutils to release 2.9.1 or newer. Another option is to modify
21740*** your PATH or compiler configuration so that the native linker is
21741*** used, and then restart.
21742
21743EOF
21744 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21746 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21747 else
21748 ld_shlibs_F77=no
21749 fi
21750 ;;
21751
Reid Spencera773bd52006-08-04 18:18:08 +000021752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21753 case `$LD -v 2>&1` in
21754 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21755 ld_shlibs_F77=no
21756 cat <<_LT_EOF 1>&2
21757
21758*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21759*** reliably create shared libraries on SCO systems. Therefore, libtool
21760*** is disabling shared libraries support. We urge you to upgrade GNU
21761*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21762*** your PATH or compiler configuration so that the native linker is
21763*** used, and then restart.
21764
21765_LT_EOF
21766 ;;
21767 *)
21768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21769 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21770 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21771 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21772 else
21773 ld_shlibs_F77=no
21774 fi
21775 ;;
21776 esac
21777 ;;
21778
John Criswell47fdd832003-07-14 16:52:07 +000021779 sunos4*)
21780 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21781 wlarc=
21782 hardcode_direct_F77=yes
21783 hardcode_shlibpath_var_F77=no
21784 ;;
21785
21786 *)
21787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21788 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21789 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21790 else
21791 ld_shlibs_F77=no
21792 fi
21793 ;;
21794 esac
21795
Reid Spencera773bd52006-08-04 18:18:08 +000021796 if test "$ld_shlibs_F77" = no; then
21797 runpath_var=
21798 hardcode_libdir_flag_spec_F77=
21799 export_dynamic_flag_spec_F77=
21800 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021801 fi
21802 else
21803 # PORTME fill in a description of your system's linker (not GNU ld)
21804 case $host_os in
21805 aix3*)
21806 allow_undefined_flag_F77=unsupported
21807 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021808 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 +000021809 # Note: this linker hardcodes the directories in LIBPATH if there
21810 # are no directories specified by -L.
21811 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021812 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021813 # Neither direct hardcoding nor static linking is supported with a
21814 # broken collect2.
21815 hardcode_direct_F77=unsupported
21816 fi
21817 ;;
21818
21819 aix4* | aix5*)
21820 if test "$host_cpu" = ia64; then
21821 # On IA64, the linker does run time linking by default, so we don't
21822 # have to do anything special.
21823 aix_use_runtimelinking=no
21824 exp_sym_flag='-Bexport'
21825 no_entry_flag=""
21826 else
21827 # If we're using GNU nm, then we don't want the "-C" option.
21828 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21829 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21830 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'
21831 else
21832 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'
21833 fi
21834 aix_use_runtimelinking=no
21835
21836 # Test if we are trying to use run time linking or normal
21837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21838 # need to do runtime linking.
21839 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21840 for ld_flag in $LDFLAGS; do
21841 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21842 aix_use_runtimelinking=yes
21843 break
21844 fi
21845 done
Reid Spencera773bd52006-08-04 18:18:08 +000021846 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021847 esac
21848
21849 exp_sym_flag='-bexport'
21850 no_entry_flag='-bnoentry'
21851 fi
21852
21853 # When large executables or shared objects are built, AIX ld can
21854 # have problems creating the table of contents. If linking a library
21855 # or program results in "error TOC overflow" add -mminimal-toc to
21856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21858
21859 archive_cmds_F77=''
21860 hardcode_direct_F77=yes
21861 hardcode_libdir_separator_F77=':'
21862 link_all_deplibs_F77=yes
21863
21864 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021865 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021866 # We only want to do this on AIX 4.2 and lower, the check
21867 # below for broken collect2 doesn't work under 4.3+
21868 collect2name=`${CC} -print-prog-name=collect2`
21869 if test -f "$collect2name" && \
21870 strings "$collect2name" | grep resolve_lib_name >/dev/null
21871 then
21872 # We have reworked collect2
21873 hardcode_direct_F77=yes
21874 else
21875 # We have old collect2
21876 hardcode_direct_F77=unsupported
21877 # It fails to find uninstalled libraries when the uninstalled
21878 # path is not listed in the libpath. Setting hardcode_minus_L
21879 # to unsupported forces relinking
21880 hardcode_minus_L_F77=yes
21881 hardcode_libdir_flag_spec_F77='-L$libdir'
21882 hardcode_libdir_separator_F77=
21883 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021884 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021885 esac
21886 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021887 if test "$aix_use_runtimelinking" = yes; then
21888 shared_flag="$shared_flag "'${wl}-G'
21889 fi
John Criswell47fdd832003-07-14 16:52:07 +000021890 else
21891 # not using gcc
21892 if test "$host_cpu" = ia64; then
21893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21894 # chokes on -Wl,-G. The following line is correct:
21895 shared_flag='-G'
21896 else
Reid Spencera773bd52006-08-04 18:18:08 +000021897 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021898 shared_flag='${wl}-G'
21899 else
21900 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021901 fi
John Criswell47fdd832003-07-14 16:52:07 +000021902 fi
21903 fi
21904
21905 # It seems that -bexpall does not export symbols beginning with
21906 # underscore (_), so it is better to generate a list of symbols to export.
21907 always_export_symbols_F77=yes
21908 if test "$aix_use_runtimelinking" = yes; then
21909 # Warning - without using the other runtime loading flags (-brtl),
21910 # -berok will link without error, but may produce a broken library.
21911 allow_undefined_flag_F77='-berok'
21912 # Determine the default libpath from the value encoded in an empty executable.
21913 cat >conftest.$ac_ext <<_ACEOF
21914 program main
21915
21916 end
21917_ACEOF
21918rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021919if { (ac_try="$ac_link"
21920case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21923esac
21924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021926 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021932 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21933 { (case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936esac
21937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021943 { (case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21946esac
21947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952
21953aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21954}'`
21955# Check for a 64-bit object if we didn't find anything.
21956if 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; }
21957}'`; fi
21958else
21959 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021960sed 's/^/| /' conftest.$ac_ext >&5
21961
Reid Spencera773bd52006-08-04 18:18:08 +000021962
John Criswell47fdd832003-07-14 16:52:07 +000021963fi
Reid Spencera773bd52006-08-04 18:18:08 +000021964
21965rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021966 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021967if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21968
21969 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021970 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 +000021971 else
21972 if test "$host_cpu" = ia64; then
21973 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21974 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021975 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 +000021976 else
21977 # Determine the default libpath from the value encoded in an empty executable.
21978 cat >conftest.$ac_ext <<_ACEOF
21979 program main
21980
21981 end
21982_ACEOF
21983rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021984if { (ac_try="$ac_link"
21985case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988esac
21989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021997 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21998 { (case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001esac
22002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000022008 { (case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22011esac
22012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000022014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }; then
22017
22018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22019}'`
22020# Check for a 64-bit object if we didn't find anything.
22021if 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; }
22022}'`; fi
22023else
22024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022025sed 's/^/| /' conftest.$ac_ext >&5
22026
Reid Spencera773bd52006-08-04 18:18:08 +000022027
John Criswell47fdd832003-07-14 16:52:07 +000022028fi
Reid Spencera773bd52006-08-04 18:18:08 +000022029
22030rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022031 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22033
22034 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22035 # Warning - without using the other run time loading flags,
22036 # -berok will link without error, but may produce a broken library.
22037 no_undefined_flag_F77=' ${wl}-bernotok'
22038 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022039 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022040 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022041 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022042 # This is similar to how AIX traditionally builds its shared libraries.
22043 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 +000022044 fi
22045 fi
22046 ;;
22047
22048 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022049 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 +000022050 hardcode_libdir_flag_spec_F77='-L$libdir'
22051 hardcode_minus_L_F77=yes
22052 # see comment about different semantics on the GNU ld section
22053 ld_shlibs_F77=no
22054 ;;
22055
Reid Spencer2706f8c2004-09-19 23:53:36 +000022056 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022057 export_dynamic_flag_spec_F77=-rdynamic
22058 ;;
22059
22060 cygwin* | mingw* | pw32*)
22061 # When not using gcc, we currently assume that we are using
22062 # Microsoft Visual C++.
22063 # hardcode_libdir_flag_spec is actually meaningless, as there is
22064 # no search path for DLLs.
22065 hardcode_libdir_flag_spec_F77=' '
22066 allow_undefined_flag_F77=unsupported
22067 # Tell ltmain to make .lib files, not .a files.
22068 libext=lib
22069 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022070 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022071 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022072 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 +000022073 # The linker will automatically build a .lib file if we build a DLL.
22074 old_archive_From_new_cmds_F77='true'
22075 # FIXME: Should let the user specify the lib program.
22076 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022077 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022078 enable_shared_with_static_runtimes_F77=yes
22079 ;;
22080
22081 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022082 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022083 rhapsody* | darwin1.[012])
22084 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22085 ;;
22086 *) # Darwin 1.3 on
22087 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22088 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22089 else
22090 case ${MACOSX_DEPLOYMENT_TARGET} in
22091 10.[012])
22092 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22093 ;;
22094 10.*)
22095 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22096 ;;
22097 esac
22098 fi
22099 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022100 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022101 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022102 hardcode_direct_F77=no
22103 hardcode_automatic_F77=yes
22104 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022105 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022106 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022107 if test "$GCC" = yes ; then
22108 output_verbose_link_cmd='echo'
22109 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22110 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022111 # 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 +000022112 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}'
22113 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 +000022114 else
Reid Spencera773bd52006-08-04 18:18:08 +000022115 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022116 xlc*)
22117 output_verbose_link_cmd='echo'
22118 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22119 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022120 # 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 +000022121 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}'
22122 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 +000022123 ;;
22124 *)
22125 ld_shlibs_F77=no
22126 ;;
22127 esac
John Criswell47fdd832003-07-14 16:52:07 +000022128 fi
22129 ;;
22130
22131 dgux*)
22132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22133 hardcode_libdir_flag_spec_F77='-L$libdir'
22134 hardcode_shlibpath_var_F77=no
22135 ;;
22136
22137 freebsd1*)
22138 ld_shlibs_F77=no
22139 ;;
22140
22141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22142 # support. Future versions do this automatically, but an explicit c++rt0.o
22143 # does not break anything, and helps significantly (at the cost of a little
22144 # extra space).
22145 freebsd2.2*)
22146 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22147 hardcode_libdir_flag_spec_F77='-R$libdir'
22148 hardcode_direct_F77=yes
22149 hardcode_shlibpath_var_F77=no
22150 ;;
22151
22152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22153 freebsd2*)
22154 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22155 hardcode_direct_F77=yes
22156 hardcode_minus_L_F77=yes
22157 hardcode_shlibpath_var_F77=no
22158 ;;
22159
22160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022161 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022162 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22163 hardcode_libdir_flag_spec_F77='-R$libdir'
22164 hardcode_direct_F77=yes
22165 hardcode_shlibpath_var_F77=no
22166 ;;
22167
22168 hpux9*)
22169 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022170 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 +000022171 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022172 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 +000022173 fi
22174 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22175 hardcode_libdir_separator_F77=:
22176 hardcode_direct_F77=yes
22177
22178 # hardcode_minus_L: Not really in the search PATH,
22179 # but as the default location of the library.
22180 hardcode_minus_L_F77=yes
22181 export_dynamic_flag_spec_F77='${wl}-E'
22182 ;;
22183
Reid Spencera773bd52006-08-04 18:18:08 +000022184 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022186 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22187 else
22188 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22189 fi
22190 if test "$with_gnu_ld" = no; then
22191 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22192 hardcode_libdir_separator_F77=:
22193
22194 hardcode_direct_F77=yes
22195 export_dynamic_flag_spec_F77='${wl}-E'
22196
22197 # hardcode_minus_L: Not really in the search PATH,
22198 # but as the default location of the library.
22199 hardcode_minus_L_F77=yes
22200 fi
22201 ;;
22202
22203 hpux11*)
22204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22205 case $host_cpu in
22206 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022207 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22208 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022209 ia64*)
22210 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22211 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022212 *)
22213 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22214 ;;
22215 esac
22216 else
Reid Spencera773bd52006-08-04 18:18:08 +000022217 case $host_cpu in
22218 hppa*64*)
22219 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22220 ;;
22221 ia64*)
22222 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022223 ;;
22224 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022225 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 +000022226 ;;
22227 esac
22228 fi
22229 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022230 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22231 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022232
Reid Spencera773bd52006-08-04 18:18:08 +000022233 case $host_cpu in
22234 hppa*64*|ia64*)
22235 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22236 hardcode_direct_F77=no
22237 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022238 ;;
22239 *)
John Criswell47fdd832003-07-14 16:52:07 +000022240 hardcode_direct_F77=yes
22241 export_dynamic_flag_spec_F77='${wl}-E'
22242
22243 # hardcode_minus_L: Not really in the search PATH,
22244 # but as the default location of the library.
22245 hardcode_minus_L_F77=yes
22246 ;;
22247 esac
22248 fi
22249 ;;
22250
22251 irix5* | irix6* | nonstopux*)
22252 if test "$GCC" = yes; then
22253 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'
22254 else
22255 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'
22256 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22257 fi
22258 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22259 hardcode_libdir_separator_F77=:
22260 link_all_deplibs_F77=yes
22261 ;;
22262
22263 netbsd*)
22264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22265 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22266 else
22267 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22268 fi
22269 hardcode_libdir_flag_spec_F77='-R$libdir'
22270 hardcode_direct_F77=yes
22271 hardcode_shlibpath_var_F77=no
22272 ;;
22273
22274 newsos6)
22275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22276 hardcode_direct_F77=yes
22277 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22278 hardcode_libdir_separator_F77=:
22279 hardcode_shlibpath_var_F77=no
22280 ;;
22281
22282 openbsd*)
22283 hardcode_direct_F77=yes
22284 hardcode_shlibpath_var_F77=no
22285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22286 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022287 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 +000022288 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22289 export_dynamic_flag_spec_F77='${wl}-E'
22290 else
22291 case $host_os in
22292 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22294 hardcode_libdir_flag_spec_F77='-R$libdir'
22295 ;;
22296 *)
22297 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22298 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22299 ;;
22300 esac
22301 fi
22302 ;;
22303
22304 os2*)
22305 hardcode_libdir_flag_spec_F77='-L$libdir'
22306 hardcode_minus_L_F77=yes
22307 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022308 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 +000022309 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22310 ;;
22311
22312 osf3*)
22313 if test "$GCC" = yes; then
22314 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22315 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'
22316 else
22317 allow_undefined_flag_F77=' -expect_unresolved \*'
22318 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'
22319 fi
22320 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22321 hardcode_libdir_separator_F77=:
22322 ;;
22323
22324 osf4* | osf5*) # as osf3* with the addition of -msym flag
22325 if test "$GCC" = yes; then
22326 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22327 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'
22328 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22329 else
22330 allow_undefined_flag_F77=' -expect_unresolved \*'
22331 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 +000022332 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 +000022333 $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 +000022334
John Criswell47fdd832003-07-14 16:52:07 +000022335 # Both c and cxx compiler support -rpath directly
22336 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22337 fi
22338 hardcode_libdir_separator_F77=:
22339 ;;
22340
John Criswell47fdd832003-07-14 16:52:07 +000022341 solaris*)
22342 no_undefined_flag_F77=' -z text'
22343 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022344 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022345 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022346 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22347 $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 +000022348 else
Reid Spencera773bd52006-08-04 18:18:08 +000022349 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022350 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022351 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22352 $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 +000022353 fi
22354 hardcode_libdir_flag_spec_F77='-R$libdir'
22355 hardcode_shlibpath_var_F77=no
22356 case $host_os in
22357 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022358 *)
22359 # The compiler driver will combine linker options so we
22360 # cannot just pass the convience library names through
22361 # without $wl, iff we do not link with $LD.
22362 # Luckily, gcc supports the same syntax we need for Sun Studio.
22363 # Supported since Solaris 2.6 (maybe 2.5.1?)
22364 case $wlarc in
22365 '')
22366 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22367 *)
22368 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' ;;
22369 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022370 esac
22371 link_all_deplibs_F77=yes
22372 ;;
22373
22374 sunos4*)
22375 if test "x$host_vendor" = xsequent; then
22376 # Use $CC to link under sequent, because it throws in some extra .o
22377 # files that make .init and .fini sections work.
22378 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22379 else
22380 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22381 fi
22382 hardcode_libdir_flag_spec_F77='-L$libdir'
22383 hardcode_direct_F77=yes
22384 hardcode_minus_L_F77=yes
22385 hardcode_shlibpath_var_F77=no
22386 ;;
22387
22388 sysv4)
22389 case $host_vendor in
22390 sni)
22391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22392 hardcode_direct_F77=yes # is this really true???
22393 ;;
22394 siemens)
22395 ## LD is ld it makes a PLAMLIB
22396 ## CC just makes a GrossModule.
22397 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22398 reload_cmds_F77='$CC -r -o $output$reload_objs'
22399 hardcode_direct_F77=no
22400 ;;
22401 motorola)
22402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22403 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22404 ;;
22405 esac
22406 runpath_var='LD_RUN_PATH'
22407 hardcode_shlibpath_var_F77=no
22408 ;;
22409
22410 sysv4.3*)
22411 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22412 hardcode_shlibpath_var_F77=no
22413 export_dynamic_flag_spec_F77='-Bexport'
22414 ;;
22415
22416 sysv4*MP*)
22417 if test -d /usr/nec; then
22418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22419 hardcode_shlibpath_var_F77=no
22420 runpath_var=LD_RUN_PATH
22421 hardcode_runpath_var=yes
22422 ld_shlibs_F77=yes
22423 fi
22424 ;;
22425
Reid Spencera773bd52006-08-04 18:18:08 +000022426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22427 no_undefined_flag_F77='${wl}-z,text'
22428 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022429 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022430 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022431
John Criswell47fdd832003-07-14 16:52:07 +000022432 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022433 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22434 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 +000022435 else
Reid Spencera773bd52006-08-04 18:18:08 +000022436 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22437 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 +000022438 fi
John Criswell47fdd832003-07-14 16:52:07 +000022439 ;;
22440
Reid Spencera773bd52006-08-04 18:18:08 +000022441 sysv5* | sco3.2v5* | sco5v6*)
22442 # Note: We can NOT use -z defs as we might desire, because we do not
22443 # link with -lc, and that would cause any symbols used from libc to
22444 # always be unresolved, which means just about no library would
22445 # ever link correctly. If we're not using GNU ld we use -z text
22446 # though, which does catch some bad symbols but isn't as heavy-handed
22447 # as -z defs.
22448 no_undefined_flag_F77='${wl}-z,text'
22449 allow_undefined_flag_F77='${wl}-z,nodefs'
22450 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022451 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022452 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22453 hardcode_libdir_separator_F77=':'
22454 link_all_deplibs_F77=yes
22455 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022456 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022457
22458 if test "$GCC" = yes; then
22459 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22460 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461 else
22462 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22463 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22464 fi
John Criswell47fdd832003-07-14 16:52:07 +000022465 ;;
22466
22467 uts4*)
22468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469 hardcode_libdir_flag_spec_F77='-L$libdir'
22470 hardcode_shlibpath_var_F77=no
22471 ;;
22472
22473 *)
22474 ld_shlibs_F77=no
22475 ;;
22476 esac
22477 fi
22478
Reid Spencera773bd52006-08-04 18:18:08 +000022479{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22480echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022481test "$ld_shlibs_F77" = no && can_build_shared=no
22482
John Criswell47fdd832003-07-14 16:52:07 +000022483#
22484# Do we need to explicitly link libc?
22485#
22486case "x$archive_cmds_need_lc_F77" in
22487x|xyes)
22488 # Assume -lc should be added
22489 archive_cmds_need_lc_F77=yes
22490
22491 if test "$enable_shared" = yes && test "$GCC" = yes; then
22492 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022493 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022494 # FIXME: we may have to deal with multi-command sequences.
22495 ;;
22496 '$CC '*)
22497 # Test whether the compiler implicitly links with -lc since on some
22498 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22499 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022500 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22501echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022502 $rm conftest*
22503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22504
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } 2>conftest.err; then
22510 soname=conftest
22511 lib=conftest
22512 libobjs=conftest.$ac_objext
22513 deplibs=
22514 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022515 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022516 compiler_flags=-v
22517 linker_flags=-v
22518 verstring=
22519 output_objdir=.
22520 libname=conftest
22521 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22522 allow_undefined_flag_F77=
22523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22524 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }
22528 then
22529 archive_cmds_need_lc_F77=no
22530 else
22531 archive_cmds_need_lc_F77=yes
22532 fi
22533 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22534 else
22535 cat conftest.err 1>&5
22536 fi
22537 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022538 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22539echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022540 ;;
22541 esac
22542 fi
22543 ;;
22544esac
22545
Reid Spencera773bd52006-08-04 18:18:08 +000022546{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22547echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022548library_names_spec=
22549libname_spec='lib$name'
22550soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022551shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022552postinstall_cmds=
22553postuninstall_cmds=
22554finish_cmds=
22555finish_eval=
22556shlibpath_var=
22557shlibpath_overrides_runpath=unknown
22558version_type=none
22559dynamic_linker="$host_os ld.so"
22560sys_lib_dlsearch_path_spec="/lib /usr/lib"
22561if test "$GCC" = yes; then
22562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22564 # if the path contains ";" then we assume it to be the separator
22565 # otherwise default to the standard path separator (i.e. ":") - it is
22566 # assumed that no part of a normal pathname contains ";" but that should
22567 # okay in the real world where ";" in dirpaths is itself problematic.
22568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22569 else
22570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22571 fi
22572else
22573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22574fi
22575need_lib_prefix=unknown
22576hardcode_into_libs=no
22577
22578# when you set need_version to no, make sure it does not cause -set_version
22579# flags to be left without arguments
22580need_version=unknown
22581
22582case $host_os in
22583aix3*)
22584 version_type=linux
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22586 shlibpath_var=LIBPATH
22587
22588 # AIX 3 has no versioning support, so we append a major version to the name.
22589 soname_spec='${libname}${release}${shared_ext}$major'
22590 ;;
22591
22592aix4* | aix5*)
22593 version_type=linux
22594 need_lib_prefix=no
22595 need_version=no
22596 hardcode_into_libs=yes
22597 if test "$host_cpu" = ia64; then
22598 # AIX 5 supports IA64
22599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22600 shlibpath_var=LD_LIBRARY_PATH
22601 else
22602 # With GCC up to 2.95.x, collect2 would create an import file
22603 # for dependence libraries. The import file would start with
22604 # the line `#! .'. This would cause the generated library to
22605 # depend on `.', always an invalid library. This was fixed in
22606 # development snapshots of GCC prior to 3.0.
22607 case $host_os in
22608 aix4 | aix4.[01] | aix4.[01].*)
22609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22610 echo ' yes '
22611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22612 :
22613 else
22614 can_build_shared=no
22615 fi
22616 ;;
22617 esac
22618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22619 # soname into executable. Probably we can add versioning support to
22620 # collect2, so additional links can be useful in future.
22621 if test "$aix_use_runtimelinking" = yes; then
22622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22623 # instead of lib<name>.a to let people know that these are not
22624 # typical AIX shared libraries.
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22626 else
22627 # We preserve .a as extension for shared libraries through AIX4.2
22628 # and later when we are not doing run time linking.
22629 library_names_spec='${libname}${release}.a $libname.a'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22631 fi
22632 shlibpath_var=LIBPATH
22633 fi
22634 ;;
22635
22636amigaos*)
22637 library_names_spec='$libname.ixlibrary $libname.a'
22638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022639 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 +000022640 ;;
22641
22642beos*)
22643 library_names_spec='${libname}${shared_ext}'
22644 dynamic_linker="$host_os ld.so"
22645 shlibpath_var=LIBRARY_PATH
22646 ;;
22647
Reid Spencer2706f8c2004-09-19 23:53:36 +000022648bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022649 version_type=linux
22650 need_version=no
22651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22652 soname_spec='${libname}${release}${shared_ext}$major'
22653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22654 shlibpath_var=LD_LIBRARY_PATH
22655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22657 # the default ld.so.conf also contains /usr/contrib/lib and
22658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22659 # libtool to hard-code these into programs
22660 ;;
22661
22662cygwin* | mingw* | pw32*)
22663 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022664 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022665 need_version=no
22666 need_lib_prefix=no
22667
22668 case $GCC,$host_os in
22669 yes,cygwin* | yes,mingw* | yes,pw32*)
22670 library_names_spec='$libname.dll.a'
22671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022672 postinstall_cmds='base_file=`basename \${file}`~
22673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22674 dldir=$destdir/`dirname \$dlpath`~
22675 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022676 $install_prog $dir/$dlname \$dldir/$dlname~
22677 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22679 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022680 $rm \$dlpath'
22681 shlibpath_overrides_runpath=yes
22682
22683 case $host_os in
22684 cygwin*)
22685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22686 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 +000022687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022688 ;;
22689 mingw*)
22690 # MinGW DLLs use traditional 'lib' prefix
22691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22694 # It is most probably a Windows format PATH printed by
22695 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22696 # path with ; separators, and with drive letters. We can handle the
22697 # drive letters (cygwin fileutils understands them), so leave them,
22698 # especially as we might pass files found there to a mingw objdump,
22699 # which wouldn't understand a cygwinified path. Ahh.
22700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22701 else
22702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22703 fi
22704 ;;
22705 pw32*)
22706 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022707 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 +000022708 ;;
22709 esac
22710 ;;
22711
22712 *)
22713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22714 ;;
22715 esac
22716 dynamic_linker='Win32 ld.exe'
22717 # FIXME: first we should search . and the directory the executable is in
22718 shlibpath_var=PATH
22719 ;;
22720
22721darwin* | rhapsody*)
22722 dynamic_linker="$host_os dyld"
22723 version_type=darwin
22724 need_lib_prefix=no
22725 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022727 soname_spec='${libname}${release}${major}$shared_ext'
22728 shlibpath_overrides_runpath=yes
22729 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022730 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022732 if test "$GCC" = yes; then
22733 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"`
22734 else
22735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022736 fi
22737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22738 ;;
22739
22740dgux*)
22741 version_type=linux
22742 need_lib_prefix=no
22743 need_version=no
22744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22745 soname_spec='${libname}${release}${shared_ext}$major'
22746 shlibpath_var=LD_LIBRARY_PATH
22747 ;;
22748
22749freebsd1*)
22750 dynamic_linker=no
22751 ;;
22752
Reid Spencer2706f8c2004-09-19 23:53:36 +000022753kfreebsd*-gnu)
22754 version_type=linux
22755 need_lib_prefix=no
22756 need_version=no
22757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22758 soname_spec='${libname}${release}${shared_ext}$major'
22759 shlibpath_var=LD_LIBRARY_PATH
22760 shlibpath_overrides_runpath=no
22761 hardcode_into_libs=yes
22762 dynamic_linker='GNU ld.so'
22763 ;;
22764
Reid Spencera773bd52006-08-04 18:18:08 +000022765freebsd* | dragonfly*)
22766 # DragonFly does not have aout. When/if they implement a new
22767 # versioning mechanism, adjust this.
22768 if test -x /usr/bin/objformat; then
22769 objformat=`/usr/bin/objformat`
22770 else
22771 case $host_os in
22772 freebsd[123]*) objformat=aout ;;
22773 *) objformat=elf ;;
22774 esac
22775 fi
John Criswell47fdd832003-07-14 16:52:07 +000022776 version_type=freebsd-$objformat
22777 case $version_type in
22778 freebsd-elf*)
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22780 need_version=no
22781 need_lib_prefix=no
22782 ;;
22783 freebsd-*)
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22785 need_version=yes
22786 ;;
22787 esac
22788 shlibpath_var=LD_LIBRARY_PATH
22789 case $host_os in
22790 freebsd2*)
22791 shlibpath_overrides_runpath=yes
22792 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022793 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022794 shlibpath_overrides_runpath=yes
22795 hardcode_into_libs=yes
22796 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022797 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22798 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022799 shlibpath_overrides_runpath=no
22800 hardcode_into_libs=yes
22801 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022802 freebsd*) # from 4.6 on
22803 shlibpath_overrides_runpath=yes
22804 hardcode_into_libs=yes
22805 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022806 esac
22807 ;;
22808
22809gnu*)
22810 version_type=linux
22811 need_lib_prefix=no
22812 need_version=no
22813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22814 soname_spec='${libname}${release}${shared_ext}$major'
22815 shlibpath_var=LD_LIBRARY_PATH
22816 hardcode_into_libs=yes
22817 ;;
22818
22819hpux9* | hpux10* | hpux11*)
22820 # Give a soname corresponding to the major version so that dld.sl refuses to
22821 # link against other versions.
22822 version_type=sunos
22823 need_lib_prefix=no
22824 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022825 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022826 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022827 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022828 hardcode_into_libs=yes
22829 dynamic_linker="$host_os dld.so"
22830 shlibpath_var=LD_LIBRARY_PATH
22831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22833 soname_spec='${libname}${release}${shared_ext}$major'
22834 if test "X$HPUX_IA64_MODE" = X32; then
22835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22836 else
22837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22838 fi
22839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22840 ;;
22841 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022842 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022843 hardcode_into_libs=yes
22844 dynamic_linker="$host_os dld.sl"
22845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22851 ;;
22852 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022853 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022854 dynamic_linker="$host_os dld.sl"
22855 shlibpath_var=SHLIB_PATH
22856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22859 ;;
22860 esac
22861 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22862 postinstall_cmds='chmod 555 $lib'
22863 ;;
22864
Reid Spencera773bd52006-08-04 18:18:08 +000022865interix3*)
22866 version_type=linux
22867 need_lib_prefix=no
22868 need_version=no
22869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22870 soname_spec='${libname}${release}${shared_ext}$major'
22871 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath=no
22874 hardcode_into_libs=yes
22875 ;;
22876
John Criswell47fdd832003-07-14 16:52:07 +000022877irix5* | irix6* | nonstopux*)
22878 case $host_os in
22879 nonstopux*) version_type=nonstopux ;;
22880 *)
22881 if test "$lt_cv_prog_gnu_ld" = yes; then
22882 version_type=linux
22883 else
22884 version_type=irix
22885 fi ;;
22886 esac
22887 need_lib_prefix=no
22888 need_version=no
22889 soname_spec='${libname}${release}${shared_ext}$major'
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22891 case $host_os in
22892 irix5* | nonstopux*)
22893 libsuff= shlibsuff=
22894 ;;
22895 *)
22896 case $LD in # libtool.m4 will add one of these switches to LD
22897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22898 libsuff= shlibsuff= libmagic=32-bit;;
22899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22900 libsuff=32 shlibsuff=N32 libmagic=N32;;
22901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22903 *) libsuff= shlibsuff= libmagic=never-match;;
22904 esac
22905 ;;
22906 esac
22907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22908 shlibpath_overrides_runpath=no
22909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22911 hardcode_into_libs=yes
22912 ;;
22913
22914# No shared lib support for Linux oldld, aout, or coff.
22915linux*oldld* | linux*aout* | linux*coff*)
22916 dynamic_linker=no
22917 ;;
22918
22919# This must be Linux ELF.
22920linux*)
22921 version_type=linux
22922 need_lib_prefix=no
22923 need_version=no
22924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22925 soname_spec='${libname}${release}${shared_ext}$major'
22926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22927 shlibpath_var=LD_LIBRARY_PATH
22928 shlibpath_overrides_runpath=no
22929 # This implies no fast_install, which is unacceptable.
22930 # Some rework will be needed to allow for fast_install
22931 # before this can be enabled.
22932 hardcode_into_libs=yes
22933
Reid Spencer2706f8c2004-09-19 23:53:36 +000022934 # Append ld.so.conf contents to the search path
22935 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022936 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 +000022937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22938 fi
22939
John Criswell47fdd832003-07-14 16:52:07 +000022940 # We used to test for /lib/ld.so.1 and disable shared libraries on
22941 # powerpc, because MkLinux only supported shared libraries with the
22942 # GNU dynamic linker. Since this was broken with cross compilers,
22943 # most powerpc-linux boxes support dynamic linking these days and
22944 # people can always --disable-shared, the test was removed, and we
22945 # assume the GNU/Linux dynamic linker is in use.
22946 dynamic_linker='GNU/Linux ld.so'
22947 ;;
22948
Reid Spencer2706f8c2004-09-19 23:53:36 +000022949knetbsd*-gnu)
22950 version_type=linux
22951 need_lib_prefix=no
22952 need_version=no
22953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22954 soname_spec='${libname}${release}${shared_ext}$major'
22955 shlibpath_var=LD_LIBRARY_PATH
22956 shlibpath_overrides_runpath=no
22957 hardcode_into_libs=yes
22958 dynamic_linker='GNU ld.so'
22959 ;;
22960
John Criswell47fdd832003-07-14 16:52:07 +000022961netbsd*)
22962 version_type=sunos
22963 need_lib_prefix=no
22964 need_version=no
22965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22968 dynamic_linker='NetBSD (a.out) ld.so'
22969 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022971 soname_spec='${libname}${release}${shared_ext}$major'
22972 dynamic_linker='NetBSD ld.elf_so'
22973 fi
22974 shlibpath_var=LD_LIBRARY_PATH
22975 shlibpath_overrides_runpath=yes
22976 hardcode_into_libs=yes
22977 ;;
22978
22979newsos6)
22980 version_type=linux
22981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22982 shlibpath_var=LD_LIBRARY_PATH
22983 shlibpath_overrides_runpath=yes
22984 ;;
22985
Reid Spencer2706f8c2004-09-19 23:53:36 +000022986nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022987 version_type=linux
22988 need_lib_prefix=no
22989 need_version=no
22990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22991 soname_spec='${libname}${release}${shared_ext}$major'
22992 shlibpath_var=LD_LIBRARY_PATH
22993 shlibpath_overrides_runpath=yes
22994 ;;
22995
22996openbsd*)
22997 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022998 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022999 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23001 case $host_os in
23002 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23003 *) need_version=no ;;
23004 esac
John Criswell47fdd832003-07-14 16:52:07 +000023005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23007 shlibpath_var=LD_LIBRARY_PATH
23008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23009 case $host_os in
23010 openbsd2.[89] | openbsd2.[89].*)
23011 shlibpath_overrides_runpath=no
23012 ;;
23013 *)
23014 shlibpath_overrides_runpath=yes
23015 ;;
23016 esac
23017 else
23018 shlibpath_overrides_runpath=yes
23019 fi
23020 ;;
23021
23022os2*)
23023 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023024 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023025 need_lib_prefix=no
23026 library_names_spec='$libname${shared_ext} $libname.a'
23027 dynamic_linker='OS/2 ld.exe'
23028 shlibpath_var=LIBPATH
23029 ;;
23030
23031osf3* | osf4* | osf5*)
23032 version_type=osf
23033 need_lib_prefix=no
23034 need_version=no
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23037 shlibpath_var=LD_LIBRARY_PATH
23038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23040 ;;
23041
John Criswell47fdd832003-07-14 16:52:07 +000023042solaris*)
23043 version_type=linux
23044 need_lib_prefix=no
23045 need_version=no
23046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23047 soname_spec='${libname}${release}${shared_ext}$major'
23048 shlibpath_var=LD_LIBRARY_PATH
23049 shlibpath_overrides_runpath=yes
23050 hardcode_into_libs=yes
23051 # ldd complains unless libraries are executable
23052 postinstall_cmds='chmod +x $lib'
23053 ;;
23054
23055sunos4*)
23056 version_type=sunos
23057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23059 shlibpath_var=LD_LIBRARY_PATH
23060 shlibpath_overrides_runpath=yes
23061 if test "$with_gnu_ld" = yes; then
23062 need_lib_prefix=no
23063 fi
23064 need_version=yes
23065 ;;
23066
Reid Spencera773bd52006-08-04 18:18:08 +000023067sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023068 version_type=linux
23069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23070 soname_spec='${libname}${release}${shared_ext}$major'
23071 shlibpath_var=LD_LIBRARY_PATH
23072 case $host_vendor in
23073 sni)
23074 shlibpath_overrides_runpath=no
23075 need_lib_prefix=no
23076 export_dynamic_flag_spec='${wl}-Blargedynsym'
23077 runpath_var=LD_RUN_PATH
23078 ;;
23079 siemens)
23080 need_lib_prefix=no
23081 ;;
23082 motorola)
23083 need_lib_prefix=no
23084 need_version=no
23085 shlibpath_overrides_runpath=no
23086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23087 ;;
23088 esac
23089 ;;
23090
23091sysv4*MP*)
23092 if test -d /usr/nec ;then
23093 version_type=linux
23094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23095 soname_spec='$libname${shared_ext}.$major'
23096 shlibpath_var=LD_LIBRARY_PATH
23097 fi
23098 ;;
23099
Reid Spencera773bd52006-08-04 18:18:08 +000023100sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23101 version_type=freebsd-elf
23102 need_lib_prefix=no
23103 need_version=no
23104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23105 soname_spec='${libname}${release}${shared_ext}$major'
23106 shlibpath_var=LD_LIBRARY_PATH
23107 hardcode_into_libs=yes
23108 if test "$with_gnu_ld" = yes; then
23109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23110 shlibpath_overrides_runpath=no
23111 else
23112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23113 shlibpath_overrides_runpath=yes
23114 case $host_os in
23115 sco3.2v5*)
23116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23117 ;;
23118 esac
23119 fi
23120 sys_lib_dlsearch_path_spec='/usr/lib'
23121 ;;
23122
John Criswell47fdd832003-07-14 16:52:07 +000023123uts4*)
23124 version_type=linux
23125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23126 soname_spec='${libname}${release}${shared_ext}$major'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 ;;
23129
23130*)
23131 dynamic_linker=no
23132 ;;
23133esac
Reid Spencera773bd52006-08-04 18:18:08 +000023134{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23135echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023136test "$dynamic_linker" = no && can_build_shared=no
23137
Reid Spencera773bd52006-08-04 18:18:08 +000023138variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23139if test "$GCC" = yes; then
23140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23141fi
23142
23143{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23144echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023145hardcode_action_F77=
23146if test -n "$hardcode_libdir_flag_spec_F77" || \
23147 test -n "$runpath_var_F77" || \
23148 test "X$hardcode_automatic_F77" = "Xyes" ; then
23149
23150 # We can hardcode non-existant directories.
23151 if test "$hardcode_direct_F77" != no &&
23152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23153 # have to relink, otherwise we might link with an installed library
23154 # when we should be linking with a yet-to-be-installed one
23155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23156 test "$hardcode_minus_L_F77" != no; then
23157 # Linking always hardcodes the temporary library directory.
23158 hardcode_action_F77=relink
23159 else
23160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23161 hardcode_action_F77=immediate
23162 fi
23163else
23164 # We cannot hardcode anything, or else we can only hardcode existing
23165 # directories.
23166 hardcode_action_F77=unsupported
23167fi
Reid Spencera773bd52006-08-04 18:18:08 +000023168{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23169echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023170
23171if test "$hardcode_action_F77" = relink; then
23172 # Fast installation is not supported
23173 enable_fast_install=no
23174elif test "$shlibpath_overrides_runpath" = yes ||
23175 test "$enable_shared" = no; then
23176 # Fast installation is not necessary
23177 enable_fast_install=needless
23178fi
23179
John Criswell47fdd832003-07-14 16:52:07 +000023180
23181# The else clause should only fire when bootstrapping the
23182# libtool distribution, otherwise you forgot to ship ltmain.sh
23183# with your package, and you will get complaints that there are
23184# no rules to generate ltmain.sh.
23185if test -f "$ltmain"; then
23186 # See if we are running on zsh, and set the options which allow our commands through
23187 # without removal of \ escapes.
23188 if test -n "${ZSH_VERSION+set}" ; then
23189 setopt NO_GLOB_SUBST
23190 fi
23191 # Now quote all the things that may contain metacharacters while being
23192 # careful not to overquote the AC_SUBSTed values. We take copies of the
23193 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023194 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 +000023195 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23198 deplibs_check_method reload_flag reload_cmds need_locks \
23199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23200 lt_cv_sys_global_symbol_to_c_name_address \
23201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23202 old_postinstall_cmds old_postuninstall_cmds \
23203 compiler_F77 \
23204 CC_F77 \
23205 LD_F77 \
23206 lt_prog_compiler_wl_F77 \
23207 lt_prog_compiler_pic_F77 \
23208 lt_prog_compiler_static_F77 \
23209 lt_prog_compiler_no_builtin_flag_F77 \
23210 export_dynamic_flag_spec_F77 \
23211 thread_safe_flag_spec_F77 \
23212 whole_archive_flag_spec_F77 \
23213 enable_shared_with_static_runtimes_F77 \
23214 old_archive_cmds_F77 \
23215 old_archive_from_new_cmds_F77 \
23216 predep_objects_F77 \
23217 postdep_objects_F77 \
23218 predeps_F77 \
23219 postdeps_F77 \
23220 compiler_lib_search_path_F77 \
23221 archive_cmds_F77 \
23222 archive_expsym_cmds_F77 \
23223 postinstall_cmds_F77 \
23224 postuninstall_cmds_F77 \
23225 old_archive_from_expsyms_cmds_F77 \
23226 allow_undefined_flag_F77 \
23227 no_undefined_flag_F77 \
23228 export_symbols_cmds_F77 \
23229 hardcode_libdir_flag_spec_F77 \
23230 hardcode_libdir_flag_spec_ld_F77 \
23231 hardcode_libdir_separator_F77 \
23232 hardcode_automatic_F77 \
23233 module_cmds_F77 \
23234 module_expsym_cmds_F77 \
23235 lt_cv_prog_compiler_c_o_F77 \
23236 exclude_expsyms_F77 \
23237 include_expsyms_F77; do
23238
23239 case $var in
23240 old_archive_cmds_F77 | \
23241 old_archive_from_new_cmds_F77 | \
23242 archive_cmds_F77 | \
23243 archive_expsym_cmds_F77 | \
23244 module_cmds_F77 | \
23245 module_expsym_cmds_F77 | \
23246 old_archive_from_expsyms_cmds_F77 | \
23247 export_symbols_cmds_F77 | \
23248 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23249 postinstall_cmds | postuninstall_cmds | \
23250 old_postinstall_cmds | old_postuninstall_cmds | \
23251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23252 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023253 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 +000023254 ;;
23255 *)
23256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23257 ;;
23258 esac
23259 done
23260
23261 case $lt_echo in
23262 *'\$0 --fallback-echo"')
23263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23264 ;;
23265 esac
23266
23267cfgfile="$ofile"
23268
23269 cat <<__EOF__ >> "$cfgfile"
23270# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23271
23272# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23273
23274# Shell to use when invoking shell scripts.
23275SHELL=$lt_SHELL
23276
23277# Whether or not to build shared libraries.
23278build_libtool_libs=$enable_shared
23279
23280# Whether or not to build static libraries.
23281build_old_libs=$enable_static
23282
23283# Whether or not to add -lc for building shared libraries.
23284build_libtool_need_lc=$archive_cmds_need_lc_F77
23285
23286# Whether or not to disallow shared libs when runtime libs are static
23287allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23288
23289# Whether or not to optimize for fast installation.
23290fast_install=$enable_fast_install
23291
23292# The host system.
23293host_alias=$host_alias
23294host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023295host_os=$host_os
23296
23297# The build system.
23298build_alias=$build_alias
23299build=$build
23300build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023301
23302# An echo program that does not interpret backslashes.
23303echo=$lt_echo
23304
23305# The archiver.
23306AR=$lt_AR
23307AR_FLAGS=$lt_AR_FLAGS
23308
23309# A C compiler.
23310LTCC=$lt_LTCC
23311
Reid Spencera773bd52006-08-04 18:18:08 +000023312# LTCC compiler flags.
23313LTCFLAGS=$lt_LTCFLAGS
23314
John Criswell47fdd832003-07-14 16:52:07 +000023315# A language-specific compiler.
23316CC=$lt_compiler_F77
23317
23318# Is the compiler the GNU C compiler?
23319with_gcc=$GCC_F77
23320
23321# An ERE matcher.
23322EGREP=$lt_EGREP
23323
23324# The linker used to build libraries.
23325LD=$lt_LD_F77
23326
23327# Whether we need hard or soft links.
23328LN_S=$lt_LN_S
23329
23330# A BSD-compatible nm program.
23331NM=$lt_NM
23332
23333# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023334STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023335
23336# Used to examine libraries when file_magic_cmd begins "file"
23337MAGIC_CMD=$MAGIC_CMD
23338
23339# Used on cygwin: DLL creation program.
23340DLLTOOL="$DLLTOOL"
23341
23342# Used on cygwin: object dumper.
23343OBJDUMP="$OBJDUMP"
23344
23345# Used on cygwin: assembler.
23346AS="$AS"
23347
23348# The name of the directory that contains temporary libtool files.
23349objdir=$objdir
23350
23351# How to create reloadable object files.
23352reload_flag=$lt_reload_flag
23353reload_cmds=$lt_reload_cmds
23354
23355# How to pass a linker flag through the compiler.
23356wl=$lt_lt_prog_compiler_wl_F77
23357
23358# Object file suffix (normally "o").
23359objext="$ac_objext"
23360
23361# Old archive suffix (normally "a").
23362libext="$libext"
23363
23364# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023365shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023366
23367# Executable file suffix (normally "").
23368exeext="$exeext"
23369
23370# Additional compiler flags for building library objects.
23371pic_flag=$lt_lt_prog_compiler_pic_F77
23372pic_mode=$pic_mode
23373
23374# What is the maximum length of a command?
23375max_cmd_len=$lt_cv_sys_max_cmd_len
23376
23377# Does compiler simultaneously support -c and -o options?
23378compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23379
Reid Spencera773bd52006-08-04 18:18:08 +000023380# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023381need_locks=$lt_need_locks
23382
23383# Do we need the lib prefix for modules?
23384need_lib_prefix=$need_lib_prefix
23385
23386# Do we need a version for libraries?
23387need_version=$need_version
23388
23389# Whether dlopen is supported.
23390dlopen_support=$enable_dlopen
23391
23392# Whether dlopen of programs is supported.
23393dlopen_self=$enable_dlopen_self
23394
23395# Whether dlopen of statically linked programs is supported.
23396dlopen_self_static=$enable_dlopen_self_static
23397
23398# Compiler flag to prevent dynamic linking.
23399link_static_flag=$lt_lt_prog_compiler_static_F77
23400
23401# Compiler flag to turn off builtin functions.
23402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23403
23404# Compiler flag to allow reflexive dlopens.
23405export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23406
23407# Compiler flag to generate shared objects directly from archives.
23408whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23409
23410# Compiler flag to generate thread-safe objects.
23411thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23412
23413# Library versioning type.
23414version_type=$version_type
23415
23416# Format of library name prefix.
23417libname_spec=$lt_libname_spec
23418
23419# List of archive names. First name is the real one, the rest are links.
23420# The last name is the one that the linker finds with -lNAME.
23421library_names_spec=$lt_library_names_spec
23422
23423# The coded name of the library, if different from the real name.
23424soname_spec=$lt_soname_spec
23425
23426# Commands used to build and install an old-style archive.
23427RANLIB=$lt_RANLIB
23428old_archive_cmds=$lt_old_archive_cmds_F77
23429old_postinstall_cmds=$lt_old_postinstall_cmds
23430old_postuninstall_cmds=$lt_old_postuninstall_cmds
23431
23432# Create an old-style archive from a shared archive.
23433old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23434
23435# Create a temporary old-style archive to link instead of a shared archive.
23436old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23437
23438# Commands used to build and install a shared archive.
23439archive_cmds=$lt_archive_cmds_F77
23440archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23441postinstall_cmds=$lt_postinstall_cmds
23442postuninstall_cmds=$lt_postuninstall_cmds
23443
23444# Commands used to build a loadable module (assumed same as above if empty)
23445module_cmds=$lt_module_cmds_F77
23446module_expsym_cmds=$lt_module_expsym_cmds_F77
23447
23448# Commands to strip libraries.
23449old_striplib=$lt_old_striplib
23450striplib=$lt_striplib
23451
23452# Dependencies to place before the objects being linked to create a
23453# shared library.
23454predep_objects=$lt_predep_objects_F77
23455
23456# Dependencies to place after the objects being linked to create a
23457# shared library.
23458postdep_objects=$lt_postdep_objects_F77
23459
23460# Dependencies to place before the objects being linked to create a
23461# shared library.
23462predeps=$lt_predeps_F77
23463
23464# Dependencies to place after the objects being linked to create a
23465# shared library.
23466postdeps=$lt_postdeps_F77
23467
23468# The library search path used internally by the compiler when linking
23469# a shared library.
23470compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23471
23472# Method to check whether dependent libraries are shared objects.
23473deplibs_check_method=$lt_deplibs_check_method
23474
23475# Command to use when deplibs_check_method == file_magic.
23476file_magic_cmd=$lt_file_magic_cmd
23477
23478# Flag that allows shared libraries with undefined symbols to be built.
23479allow_undefined_flag=$lt_allow_undefined_flag_F77
23480
23481# Flag that forces no undefined symbols.
23482no_undefined_flag=$lt_no_undefined_flag_F77
23483
23484# Commands used to finish a libtool library installation in a directory.
23485finish_cmds=$lt_finish_cmds
23486
23487# Same as above, but a single script fragment to be evaled but not shown.
23488finish_eval=$lt_finish_eval
23489
23490# Take the output of nm and produce a listing of raw symbols and C names.
23491global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23492
23493# Transform the output of nm in a proper C declaration
23494global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23495
23496# Transform the output of nm in a C name address pair
23497global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23498
23499# This is the shared library runtime path variable.
23500runpath_var=$runpath_var
23501
23502# This is the shared library path variable.
23503shlibpath_var=$shlibpath_var
23504
23505# Is shlibpath searched before the hard-coded library search path?
23506shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23507
23508# How to hardcode a shared library path into an executable.
23509hardcode_action=$hardcode_action_F77
23510
23511# Whether we should hardcode library paths into libraries.
23512hardcode_into_libs=$hardcode_into_libs
23513
23514# Flag to hardcode \$libdir into a binary during linking.
23515# This must work even if \$libdir does not exist.
23516hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23517
23518# If ld is used when linking, flag to hardcode \$libdir into
23519# a binary during linking. This must work even if \$libdir does
23520# not exist.
23521hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23522
23523# Whether we need a single -rpath flag with a separated argument.
23524hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23525
23526# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23527# resulting binary.
23528hardcode_direct=$hardcode_direct_F77
23529
23530# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23531# resulting binary.
23532hardcode_minus_L=$hardcode_minus_L_F77
23533
23534# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23535# the resulting binary.
23536hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23537
23538# Set to yes if building a shared library automatically hardcodes DIR into the library
23539# and all subsequent libraries and executables linked against it.
23540hardcode_automatic=$hardcode_automatic_F77
23541
23542# Variables whose values should be saved in libtool wrapper scripts and
23543# restored at relink time.
23544variables_saved_for_relink="$variables_saved_for_relink"
23545
23546# Whether libtool must link a program against all its dependency libraries.
23547link_all_deplibs=$link_all_deplibs_F77
23548
23549# Compile-time system search path for libraries
23550sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23551
23552# Run-time system search path for libraries
23553sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23554
23555# Fix the shell variable \$srcfile for the compiler.
23556fix_srcfile_path="$fix_srcfile_path_F77"
23557
23558# Set to yes if exported symbols are required.
23559always_export_symbols=$always_export_symbols_F77
23560
23561# The commands to list exported symbols.
23562export_symbols_cmds=$lt_export_symbols_cmds_F77
23563
23564# The commands to extract the exported symbol list from a shared archive.
23565extract_expsyms_cmds=$lt_extract_expsyms_cmds
23566
23567# Symbols that should not be listed in the preloaded symbols.
23568exclude_expsyms=$lt_exclude_expsyms_F77
23569
23570# Symbols that must always be exported.
23571include_expsyms=$lt_include_expsyms_F77
23572
23573# ### END LIBTOOL TAG CONFIG: $tagname
23574
23575__EOF__
23576
23577
23578else
23579 # If there is no Makefile yet, we rely on a make rule to execute
23580 # `config.status --recheck' to rerun these tests and create the
23581 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23583 if test -f "$ltmain_in"; then
23584 test -f Makefile && make "$ltmain"
23585 fi
John Criswell47fdd832003-07-14 16:52:07 +000023586fi
23587
23588
23589ac_ext=c
23590ac_cpp='$CPP $CPPFLAGS'
23591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23593ac_compiler_gnu=$ac_cv_c_compiler_gnu
23594
23595CC="$lt_save_CC"
23596
23597 else
23598 tagname=""
23599 fi
23600 ;;
23601
23602 GCJ)
23603 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023604 ac_ext=c
23605ac_cpp='$CPP $CPPFLAGS'
23606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23608ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023609
23610
23611# Source file extension for Java test sources.
23612ac_ext=java
23613
23614# Object file extension for compiled Java test sources.
23615objext=o
23616objext_GCJ=$objext
23617
23618# Code to be used in simple compile tests
23619lt_simple_compile_test_code="class foo {}\n"
23620
23621# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023622lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023623
23624# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23625
23626# If no C compiler was specified, use CC.
23627LTCC=${LTCC-"$CC"}
23628
Reid Spencera773bd52006-08-04 18:18:08 +000023629# If no C compiler flags were specified, use CFLAGS.
23630LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23631
John Criswell47fdd832003-07-14 16:52:07 +000023632# Allow CC to be a program name with arguments.
23633compiler=$CC
23634
23635
Reid Spencera773bd52006-08-04 18:18:08 +000023636# save warnings/boilerplate of simple test code
23637ac_outfile=conftest.$ac_objext
23638printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23640_lt_compiler_boilerplate=`cat conftest.err`
23641$rm conftest*
23642
23643ac_outfile=conftest.$ac_objext
23644printf "$lt_simple_link_test_code" >conftest.$ac_ext
23645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23646_lt_linker_boilerplate=`cat conftest.err`
23647$rm conftest*
23648
23649
John Criswell47fdd832003-07-14 16:52:07 +000023650# Allow CC to be a program name with arguments.
23651lt_save_CC="$CC"
23652CC=${GCJ-"gcj"}
23653compiler=$CC
23654compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023655for cc_temp in $compiler""; do
23656 case $cc_temp in
23657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23659 \-*) ;;
23660 *) break;;
23661 esac
23662done
23663cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23664
John Criswell47fdd832003-07-14 16:52:07 +000023665
23666# GCJ did not exist at the time GCC didn't implicitly link libc in.
23667archive_cmds_need_lc_GCJ=no
23668
Reid Spencera773bd52006-08-04 18:18:08 +000023669old_archive_cmds_GCJ=$old_archive_cmds
23670
John Criswell47fdd832003-07-14 16:52:07 +000023671
23672lt_prog_compiler_no_builtin_flag_GCJ=
23673
23674if test "$GCC" = yes; then
23675 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23676
Reid Spencer2706f8c2004-09-19 23:53:36 +000023677
Reid Spencera773bd52006-08-04 18:18:08 +000023678{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23679echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023680if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23682else
23683 lt_cv_prog_compiler_rtti_exceptions=no
23684 ac_outfile=conftest.$ac_objext
23685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23686 lt_compiler_flag="-fno-rtti -fno-exceptions"
23687 # Insert the option either (1) after the last *FLAGS variable, or
23688 # (2) before a word containing "conftest.", or (3) at the end.
23689 # Note that $ac_compile itself does not contain backslashes and begins
23690 # with a dollar sign (not a hyphen), so the echo should work correctly.
23691 # The option is referenced via a variable to avoid confusing sed.
23692 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23695 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000023696 (eval echo "\"\$as_me:23696: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023697 (eval "$lt_compile" 2>conftest.err)
23698 ac_status=$?
23699 cat conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000023700 echo "$as_me:23700: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023701 if (exit $ac_status) && test -s "$ac_outfile"; then
23702 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023703 # So say no if there are warnings other than the usual output.
23704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023707 lt_cv_prog_compiler_rtti_exceptions=yes
23708 fi
23709 fi
23710 $rm conftest*
23711
23712fi
Reid Spencera773bd52006-08-04 18:18:08 +000023713{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23714echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023715
23716if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23717 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23718else
23719 :
23720fi
23721
23722fi
23723
23724lt_prog_compiler_wl_GCJ=
23725lt_prog_compiler_pic_GCJ=
23726lt_prog_compiler_static_GCJ=
23727
Reid Spencera773bd52006-08-04 18:18:08 +000023728{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23729echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023730
23731 if test "$GCC" = yes; then
23732 lt_prog_compiler_wl_GCJ='-Wl,'
23733 lt_prog_compiler_static_GCJ='-static'
23734
23735 case $host_os in
23736 aix*)
23737 # All AIX code is PIC.
23738 if test "$host_cpu" = ia64; then
23739 # AIX 5 now supports IA64 processor
23740 lt_prog_compiler_static_GCJ='-Bstatic'
23741 fi
23742 ;;
23743
23744 amigaos*)
23745 # FIXME: we need at least 68020 code to build shared libraries, but
23746 # adding the `-m68020' flag to GCC prevents building anything better,
23747 # like `-m68040'.
23748 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23749 ;;
23750
23751 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23752 # PIC is the default for these OSes.
23753 ;;
23754
23755 mingw* | pw32* | os2*)
23756 # This hack is so that the source file can tell whether it is being
23757 # built for inclusion in a dll (and should export symbols for example).
23758 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23759 ;;
23760
23761 darwin* | rhapsody*)
23762 # PIC is the default on this platform
23763 # Common symbols not allowed in MH_DYLIB files
23764 lt_prog_compiler_pic_GCJ='-fno-common'
23765 ;;
23766
Reid Spencera773bd52006-08-04 18:18:08 +000023767 interix3*)
23768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23769 # Instead, we relocate shared libraries at runtime.
23770 ;;
23771
John Criswell47fdd832003-07-14 16:52:07 +000023772 msdosdjgpp*)
23773 # Just because we use GCC doesn't mean we suddenly get shared libraries
23774 # on systems that don't support them.
23775 lt_prog_compiler_can_build_shared_GCJ=no
23776 enable_shared=no
23777 ;;
23778
23779 sysv4*MP*)
23780 if test -d /usr/nec; then
23781 lt_prog_compiler_pic_GCJ=-Kconform_pic
23782 fi
23783 ;;
23784
23785 hpux*)
23786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23787 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023788 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023789 hppa*64*|ia64*)
23790 # +Z the default
23791 ;;
23792 *)
23793 lt_prog_compiler_pic_GCJ='-fPIC'
23794 ;;
23795 esac
23796 ;;
23797
23798 *)
23799 lt_prog_compiler_pic_GCJ='-fPIC'
23800 ;;
23801 esac
23802 else
23803 # PORTME Check for flag to pass linker flags through the system compiler.
23804 case $host_os in
23805 aix*)
23806 lt_prog_compiler_wl_GCJ='-Wl,'
23807 if test "$host_cpu" = ia64; then
23808 # AIX 5 now supports IA64 processor
23809 lt_prog_compiler_static_GCJ='-Bstatic'
23810 else
23811 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23812 fi
23813 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023814 darwin*)
23815 # PIC is the default on this platform
23816 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023817 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023818 xlc*)
23819 lt_prog_compiler_pic_GCJ='-qnocommon'
23820 lt_prog_compiler_wl_GCJ='-Wl,'
23821 ;;
23822 esac
23823 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023824
23825 mingw* | pw32* | os2*)
23826 # This hack is so that the source file can tell whether it is being
23827 # built for inclusion in a dll (and should export symbols for example).
23828 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23829 ;;
23830
23831 hpux9* | hpux10* | hpux11*)
23832 lt_prog_compiler_wl_GCJ='-Wl,'
23833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23834 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023835 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023836 hppa*64*|ia64*)
23837 # +Z the default
23838 ;;
23839 *)
23840 lt_prog_compiler_pic_GCJ='+Z'
23841 ;;
23842 esac
23843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23844 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23845 ;;
23846
23847 irix5* | irix6* | nonstopux*)
23848 lt_prog_compiler_wl_GCJ='-Wl,'
23849 # PIC (with -KPIC) is the default.
23850 lt_prog_compiler_static_GCJ='-non_shared'
23851 ;;
23852
23853 newsos6)
23854 lt_prog_compiler_pic_GCJ='-KPIC'
23855 lt_prog_compiler_static_GCJ='-Bstatic'
23856 ;;
23857
23858 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023859 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023860 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023861 lt_prog_compiler_wl_GCJ='-Wl,'
23862 lt_prog_compiler_pic_GCJ='-KPIC'
23863 lt_prog_compiler_static_GCJ='-static'
23864 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023865 pgcc* | pgf77* | pgf90* | pgf95*)
23866 # Portland Group compilers (*not* the Pentium gcc compiler,
23867 # which looks to be a dead project)
23868 lt_prog_compiler_wl_GCJ='-Wl,'
23869 lt_prog_compiler_pic_GCJ='-fpic'
23870 lt_prog_compiler_static_GCJ='-Bstatic'
23871 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023872 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023873 lt_prog_compiler_wl_GCJ='-Wl,'
23874 # All Alpha code is PIC.
23875 lt_prog_compiler_static_GCJ='-non_shared'
23876 ;;
23877 esac
23878 ;;
23879
23880 osf3* | osf4* | osf5*)
23881 lt_prog_compiler_wl_GCJ='-Wl,'
23882 # All OSF/1 code is PIC.
23883 lt_prog_compiler_static_GCJ='-non_shared'
23884 ;;
23885
John Criswell47fdd832003-07-14 16:52:07 +000023886 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023887 lt_prog_compiler_pic_GCJ='-KPIC'
23888 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023889 case $cc_basename in
23890 f77* | f90* | f95*)
23891 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23892 *)
23893 lt_prog_compiler_wl_GCJ='-Wl,';;
23894 esac
John Criswell47fdd832003-07-14 16:52:07 +000023895 ;;
23896
23897 sunos4*)
23898 lt_prog_compiler_wl_GCJ='-Qoption ld '
23899 lt_prog_compiler_pic_GCJ='-PIC'
23900 lt_prog_compiler_static_GCJ='-Bstatic'
23901 ;;
23902
Reid Spencera773bd52006-08-04 18:18:08 +000023903 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023904 lt_prog_compiler_wl_GCJ='-Wl,'
23905 lt_prog_compiler_pic_GCJ='-KPIC'
23906 lt_prog_compiler_static_GCJ='-Bstatic'
23907 ;;
23908
23909 sysv4*MP*)
23910 if test -d /usr/nec ;then
23911 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23912 lt_prog_compiler_static_GCJ='-Bstatic'
23913 fi
23914 ;;
23915
Reid Spencera773bd52006-08-04 18:18:08 +000023916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23917 lt_prog_compiler_wl_GCJ='-Wl,'
23918 lt_prog_compiler_pic_GCJ='-KPIC'
23919 lt_prog_compiler_static_GCJ='-Bstatic'
23920 ;;
23921
23922 unicos*)
23923 lt_prog_compiler_wl_GCJ='-Wl,'
23924 lt_prog_compiler_can_build_shared_GCJ=no
23925 ;;
23926
John Criswell47fdd832003-07-14 16:52:07 +000023927 uts4*)
23928 lt_prog_compiler_pic_GCJ='-pic'
23929 lt_prog_compiler_static_GCJ='-Bstatic'
23930 ;;
23931
23932 *)
23933 lt_prog_compiler_can_build_shared_GCJ=no
23934 ;;
23935 esac
23936 fi
23937
Reid Spencera773bd52006-08-04 18:18:08 +000023938{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23939echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023940
23941#
23942# Check to make sure the PIC flag actually works.
23943#
23944if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023945
Reid Spencera773bd52006-08-04 18:18:08 +000023946{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23947echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023948if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23949 echo $ECHO_N "(cached) $ECHO_C" >&6
23950else
23951 lt_prog_compiler_pic_works_GCJ=no
23952 ac_outfile=conftest.$ac_objext
23953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23954 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23955 # Insert the option either (1) after the last *FLAGS variable, or
23956 # (2) before a word containing "conftest.", or (3) at the end.
23957 # Note that $ac_compile itself does not contain backslashes and begins
23958 # with a dollar sign (not a hyphen), so the echo should work correctly.
23959 # The option is referenced via a variable to avoid confusing sed.
23960 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23963 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000023964 (eval echo "\"\$as_me:23964: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023965 (eval "$lt_compile" 2>conftest.err)
23966 ac_status=$?
23967 cat conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000023968 echo "$as_me:23968: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023969 if (exit $ac_status) && test -s "$ac_outfile"; then
23970 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023971 # So say no if there are warnings other than the usual output.
23972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023975 lt_prog_compiler_pic_works_GCJ=yes
23976 fi
23977 fi
23978 $rm conftest*
23979
23980fi
Reid Spencera773bd52006-08-04 18:18:08 +000023981{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23982echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023983
23984if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23985 case $lt_prog_compiler_pic_GCJ in
23986 "" | " "*) ;;
23987 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23988 esac
23989else
23990 lt_prog_compiler_pic_GCJ=
23991 lt_prog_compiler_can_build_shared_GCJ=no
23992fi
23993
23994fi
Reid Spencera773bd52006-08-04 18:18:08 +000023995case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023996 # For platforms which do not support PIC, -DPIC is meaningless:
23997 *djgpp*)
23998 lt_prog_compiler_pic_GCJ=
23999 ;;
24000 *)
24001 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24002 ;;
24003esac
24004
Reid Spencera773bd52006-08-04 18:18:08 +000024005#
24006# Check to make sure the static flag actually works.
24007#
24008wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24009{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24010echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24011if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24013else
24014 lt_prog_compiler_static_works_GCJ=no
24015 save_LDFLAGS="$LDFLAGS"
24016 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24017 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24019 # The linker can only warn and ignore the option if not recognized
24020 # So say no if there are warnings
24021 if test -s conftest.err; then
24022 # Append any errors to the config.log.
24023 cat conftest.err 1>&5
24024 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24026 if diff conftest.exp conftest.er2 >/dev/null; then
24027 lt_prog_compiler_static_works_GCJ=yes
24028 fi
24029 else
24030 lt_prog_compiler_static_works_GCJ=yes
24031 fi
24032 fi
24033 $rm conftest*
24034 LDFLAGS="$save_LDFLAGS"
24035
24036fi
24037{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24038echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24039
24040if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24041 :
24042else
24043 lt_prog_compiler_static_GCJ=
24044fi
24045
24046
24047{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24048echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024049if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24051else
24052 lt_cv_prog_compiler_c_o_GCJ=no
24053 $rm -r conftest 2>/dev/null
24054 mkdir conftest
24055 cd conftest
24056 mkdir out
24057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24058
John Criswell47fdd832003-07-14 16:52:07 +000024059 lt_compiler_flag="-o out/conftest2.$ac_objext"
24060 # Insert the option either (1) after the last *FLAGS variable, or
24061 # (2) before a word containing "conftest.", or (3) at the end.
24062 # Note that $ac_compile itself does not contain backslashes and begins
24063 # with a dollar sign (not a hyphen), so the echo should work correctly.
24064 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24067 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenc0efff82007-10-02 09:50:32 +000024068 (eval echo "\"\$as_me:24068: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024069 (eval "$lt_compile" 2>out/conftest.err)
24070 ac_status=$?
24071 cat out/conftest.err >&5
Gordon Henriksenc0efff82007-10-02 09:50:32 +000024072 echo "$as_me:24072: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24074 then
24075 # The compiler can only warn and ignore the option if not recognized
24076 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024080 lt_cv_prog_compiler_c_o_GCJ=yes
24081 fi
24082 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024083 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024084 $rm conftest*
24085 # SGI C++ compiler will create directory out/ii_files/ for
24086 # template instantiation
24087 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24088 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024089 cd ..
24090 rmdir conftest
24091 $rm conftest*
24092
24093fi
Reid Spencera773bd52006-08-04 18:18:08 +000024094{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24095echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024096
24097
24098hard_links="nottested"
24099if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24100 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024101 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24102echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024103 hard_links=yes
24104 $rm conftest*
24105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24106 touch conftest.a
24107 ln conftest.a conftest.b 2>&5 || hard_links=no
24108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024109 { echo "$as_me:$LINENO: result: $hard_links" >&5
24110echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024111 if test "$hard_links" = no; then
24112 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24113echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24114 need_locks=warn
24115 fi
24116else
24117 need_locks=no
24118fi
24119
Reid Spencera773bd52006-08-04 18:18:08 +000024120{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24121echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024122
24123 runpath_var=
24124 allow_undefined_flag_GCJ=
24125 enable_shared_with_static_runtimes_GCJ=no
24126 archive_cmds_GCJ=
24127 archive_expsym_cmds_GCJ=
24128 old_archive_From_new_cmds_GCJ=
24129 old_archive_from_expsyms_cmds_GCJ=
24130 export_dynamic_flag_spec_GCJ=
24131 whole_archive_flag_spec_GCJ=
24132 thread_safe_flag_spec_GCJ=
24133 hardcode_libdir_flag_spec_GCJ=
24134 hardcode_libdir_flag_spec_ld_GCJ=
24135 hardcode_libdir_separator_GCJ=
24136 hardcode_direct_GCJ=no
24137 hardcode_minus_L_GCJ=no
24138 hardcode_shlibpath_var_GCJ=unsupported
24139 link_all_deplibs_GCJ=unknown
24140 hardcode_automatic_GCJ=no
24141 module_cmds_GCJ=
24142 module_expsym_cmds_GCJ=
24143 always_export_symbols_GCJ=no
24144 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24145 # include_expsyms should be a list of space-separated symbols to be *always*
24146 # included in the symbol list
24147 include_expsyms_GCJ=
24148 # exclude_expsyms can be an extended regexp of symbols to exclude
24149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24151 # as well as any symbol that contains `d'.
24152 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24154 # platforms (ab)use it in PIC code, but their linkers get confused if
24155 # the symbol is explicitly referenced. Since portable code cannot
24156 # rely on this symbol name, it's probably fine to never include it in
24157 # preloaded symbol tables.
24158 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024159 # Just being paranoid about ensuring that cc_basename is set.
24160 for cc_temp in $compiler""; do
24161 case $cc_temp in
24162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24164 \-*) ;;
24165 *) break;;
24166 esac
24167done
24168cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024169
24170 case $host_os in
24171 cygwin* | mingw* | pw32*)
24172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24173 # When not using gcc, we currently assume that we are using
24174 # Microsoft Visual C++.
24175 if test "$GCC" != yes; then
24176 with_gnu_ld=no
24177 fi
24178 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024179 interix*)
24180 # we just hope/assume this is gcc and not c89 (= MSVC++)
24181 with_gnu_ld=yes
24182 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024183 openbsd*)
24184 with_gnu_ld=no
24185 ;;
24186 esac
24187
24188 ld_shlibs_GCJ=yes
24189 if test "$with_gnu_ld" = yes; then
24190 # If archive_cmds runs LD, not CC, wlarc should be empty
24191 wlarc='${wl}'
24192
Reid Spencera773bd52006-08-04 18:18:08 +000024193 # Set some defaults for GNU ld with shared library support. These
24194 # are reset later if shared libraries are not supported. Putting them
24195 # here allows them to be overridden if necessary.
24196 runpath_var=LD_RUN_PATH
24197 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24198 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24199 # ancient GNU ld didn't support --whole-archive et. al.
24200 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24201 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24202 else
24203 whole_archive_flag_spec_GCJ=
24204 fi
24205 supports_anon_versioning=no
24206 case `$LD -v 2>/dev/null` in
24207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24210 *\ 2.11.*) ;; # other 2.11 versions
24211 *) supports_anon_versioning=yes ;;
24212 esac
24213
John Criswell47fdd832003-07-14 16:52:07 +000024214 # See if GNU ld supports shared libraries.
24215 case $host_os in
24216 aix3* | aix4* | aix5*)
24217 # On AIX/PPC, the GNU linker is very broken
24218 if test "$host_cpu" != ia64; then
24219 ld_shlibs_GCJ=no
24220 cat <<EOF 1>&2
24221
24222*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24223*** to be unable to reliably create shared libraries on AIX.
24224*** Therefore, libtool is disabling shared libraries support. If you
24225*** really care for shared libraries, you may want to modify your PATH
24226*** so that a non-GNU linker is found, and then restart.
24227
24228EOF
24229 fi
24230 ;;
24231
24232 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024233 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 +000024234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24235 hardcode_minus_L_GCJ=yes
24236
24237 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24238 # that the semantics of dynamic libraries on AmigaOS, at least up
24239 # to version 4, is to share data among multiple programs linked
24240 # with the same dynamic library. Since this doesn't match the
24241 # behavior of shared libraries on other platforms, we can't use
24242 # them.
24243 ld_shlibs_GCJ=no
24244 ;;
24245
24246 beos*)
24247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24248 allow_undefined_flag_GCJ=unsupported
24249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24250 # support --undefined. This deserves some investigation. FIXME
24251 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24252 else
24253 ld_shlibs_GCJ=no
24254 fi
24255 ;;
24256
24257 cygwin* | mingw* | pw32*)
24258 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24259 # as there is no search path for DLLs.
24260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24261 allow_undefined_flag_GCJ=unsupported
24262 always_export_symbols_GCJ=no
24263 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024264 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 +000024265
24266 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024267 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 +000024268 # If the export-symbols file already is a .def file (1st line
24269 # is EXPORTS), use it as is; otherwise, prepend...
24270 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24271 cp $export_symbols $output_objdir/$soname.def;
24272 else
24273 echo EXPORTS > $output_objdir/$soname.def;
24274 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024275 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024276 $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 +000024277 else
Reid Spencera773bd52006-08-04 18:18:08 +000024278 ld_shlibs_GCJ=no
24279 fi
24280 ;;
24281
24282 interix3*)
24283 hardcode_direct_GCJ=no
24284 hardcode_shlibpath_var_GCJ=no
24285 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24286 export_dynamic_flag_spec_GCJ='${wl}-E'
24287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24288 # Instead, shared libraries are loaded at an image base (0x10000000 by
24289 # default) and relocated if they conflict, which is a slow very memory
24290 # consuming and fragmenting process. To avoid this, we pick a random,
24291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24293 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'
24294 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'
24295 ;;
24296
24297 linux*)
24298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24299 tmp_addflag=
24300 case $cc_basename,$host_cpu in
24301 pgcc*) # Portland Group C compiler
24302 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'
24303 tmp_addflag=' $pic_flag'
24304 ;;
24305 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24306 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'
24307 tmp_addflag=' $pic_flag -Mnomain' ;;
24308 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24309 tmp_addflag=' -i_dynamic' ;;
24310 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24311 tmp_addflag=' -i_dynamic -nofor_main' ;;
24312 ifc* | ifort*) # Intel Fortran compiler
24313 tmp_addflag=' -nofor_main' ;;
24314 esac
24315 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24316
24317 if test $supports_anon_versioning = yes; then
24318 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24320 $echo "local: *; };" >> $output_objdir/$libname.ver~
24321 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24322 fi
24323 else
24324 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024325 fi
24326 ;;
24327
24328 netbsd*)
24329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24330 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24331 wlarc=
24332 else
24333 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24334 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24335 fi
24336 ;;
24337
Reid Spencera773bd52006-08-04 18:18:08 +000024338 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024339 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24340 ld_shlibs_GCJ=no
24341 cat <<EOF 1>&2
24342
24343*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24344*** create shared libraries on Solaris systems. Therefore, libtool
24345*** is disabling shared libraries support. We urge you to upgrade GNU
24346*** binutils to release 2.9.1 or newer. Another option is to modify
24347*** your PATH or compiler configuration so that the native linker is
24348*** used, and then restart.
24349
24350EOF
24351 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24352 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24353 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24354 else
24355 ld_shlibs_GCJ=no
24356 fi
24357 ;;
24358
Reid Spencera773bd52006-08-04 18:18:08 +000024359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24360 case `$LD -v 2>&1` in
24361 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24362 ld_shlibs_GCJ=no
24363 cat <<_LT_EOF 1>&2
24364
24365*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24366*** reliably create shared libraries on SCO systems. Therefore, libtool
24367*** is disabling shared libraries support. We urge you to upgrade GNU
24368*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24369*** your PATH or compiler configuration so that the native linker is
24370*** used, and then restart.
24371
24372_LT_EOF
24373 ;;
24374 *)
24375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24376 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24377 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24378 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24379 else
24380 ld_shlibs_GCJ=no
24381 fi
24382 ;;
24383 esac
24384 ;;
24385
John Criswell47fdd832003-07-14 16:52:07 +000024386 sunos4*)
24387 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24388 wlarc=
24389 hardcode_direct_GCJ=yes
24390 hardcode_shlibpath_var_GCJ=no
24391 ;;
24392
24393 *)
24394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24395 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24396 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24397 else
24398 ld_shlibs_GCJ=no
24399 fi
24400 ;;
24401 esac
24402
Reid Spencera773bd52006-08-04 18:18:08 +000024403 if test "$ld_shlibs_GCJ" = no; then
24404 runpath_var=
24405 hardcode_libdir_flag_spec_GCJ=
24406 export_dynamic_flag_spec_GCJ=
24407 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024408 fi
24409 else
24410 # PORTME fill in a description of your system's linker (not GNU ld)
24411 case $host_os in
24412 aix3*)
24413 allow_undefined_flag_GCJ=unsupported
24414 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024415 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 +000024416 # Note: this linker hardcodes the directories in LIBPATH if there
24417 # are no directories specified by -L.
24418 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024419 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024420 # Neither direct hardcoding nor static linking is supported with a
24421 # broken collect2.
24422 hardcode_direct_GCJ=unsupported
24423 fi
24424 ;;
24425
24426 aix4* | aix5*)
24427 if test "$host_cpu" = ia64; then
24428 # On IA64, the linker does run time linking by default, so we don't
24429 # have to do anything special.
24430 aix_use_runtimelinking=no
24431 exp_sym_flag='-Bexport'
24432 no_entry_flag=""
24433 else
24434 # If we're using GNU nm, then we don't want the "-C" option.
24435 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24436 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24437 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'
24438 else
24439 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'
24440 fi
24441 aix_use_runtimelinking=no
24442
24443 # Test if we are trying to use run time linking or normal
24444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24445 # need to do runtime linking.
24446 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24447 for ld_flag in $LDFLAGS; do
24448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24449 aix_use_runtimelinking=yes
24450 break
24451 fi
24452 done
Reid Spencera773bd52006-08-04 18:18:08 +000024453 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024454 esac
24455
24456 exp_sym_flag='-bexport'
24457 no_entry_flag='-bnoentry'
24458 fi
24459
24460 # When large executables or shared objects are built, AIX ld can
24461 # have problems creating the table of contents. If linking a library
24462 # or program results in "error TOC overflow" add -mminimal-toc to
24463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24465
24466 archive_cmds_GCJ=''
24467 hardcode_direct_GCJ=yes
24468 hardcode_libdir_separator_GCJ=':'
24469 link_all_deplibs_GCJ=yes
24470
24471 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024472 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024473 # We only want to do this on AIX 4.2 and lower, the check
24474 # below for broken collect2 doesn't work under 4.3+
24475 collect2name=`${CC} -print-prog-name=collect2`
24476 if test -f "$collect2name" && \
24477 strings "$collect2name" | grep resolve_lib_name >/dev/null
24478 then
24479 # We have reworked collect2
24480 hardcode_direct_GCJ=yes
24481 else
24482 # We have old collect2
24483 hardcode_direct_GCJ=unsupported
24484 # It fails to find uninstalled libraries when the uninstalled
24485 # path is not listed in the libpath. Setting hardcode_minus_L
24486 # to unsupported forces relinking
24487 hardcode_minus_L_GCJ=yes
24488 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24489 hardcode_libdir_separator_GCJ=
24490 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024491 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024492 esac
24493 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024494 if test "$aix_use_runtimelinking" = yes; then
24495 shared_flag="$shared_flag "'${wl}-G'
24496 fi
John Criswell47fdd832003-07-14 16:52:07 +000024497 else
24498 # not using gcc
24499 if test "$host_cpu" = ia64; then
24500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24501 # chokes on -Wl,-G. The following line is correct:
24502 shared_flag='-G'
24503 else
Reid Spencera773bd52006-08-04 18:18:08 +000024504 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024505 shared_flag='${wl}-G'
24506 else
24507 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024508 fi
John Criswell47fdd832003-07-14 16:52:07 +000024509 fi
24510 fi
24511
24512 # It seems that -bexpall does not export symbols beginning with
24513 # underscore (_), so it is better to generate a list of symbols to export.
24514 always_export_symbols_GCJ=yes
24515 if test "$aix_use_runtimelinking" = yes; then
24516 # Warning - without using the other runtime loading flags (-brtl),
24517 # -berok will link without error, but may produce a broken library.
24518 allow_undefined_flag_GCJ='-berok'
24519 # Determine the default libpath from the value encoded in an empty executable.
24520 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024521/* confdefs.h. */
24522_ACEOF
24523cat confdefs.h >>conftest.$ac_ext
24524cat >>conftest.$ac_ext <<_ACEOF
24525/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024526
John Criswell47fdd832003-07-14 16:52:07 +000024527int
24528main ()
24529{
24530
24531 ;
24532 return 0;
24533}
24534_ACEOF
24535rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024536if { (ac_try="$ac_link"
24537case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24540esac
24541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024544 grep -v '^ *+' conftest.er1 >conftest.err
24545 rm -f conftest.er1
24546 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24550 { (case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24553esac
24554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024556 ac_status=$?
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; } &&
24559 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024560 { (case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24563esac
24564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024566 ac_status=$?
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24569
24570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24571}'`
24572# Check for a 64-bit object if we didn't find anything.
24573if 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; }
24574}'`; fi
24575else
24576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024577sed 's/^/| /' conftest.$ac_ext >&5
24578
Reid Spencera773bd52006-08-04 18:18:08 +000024579
John Criswell47fdd832003-07-14 16:52:07 +000024580fi
Reid Spencera773bd52006-08-04 18:18:08 +000024581
24582rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024583 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24585
24586 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024587 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 +000024588 else
24589 if test "$host_cpu" = ia64; then
24590 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24591 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024592 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 +000024593 else
24594 # Determine the default libpath from the value encoded in an empty executable.
24595 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024596/* confdefs.h. */
24597_ACEOF
24598cat confdefs.h >>conftest.$ac_ext
24599cat >>conftest.$ac_ext <<_ACEOF
24600/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024601
John Criswell47fdd832003-07-14 16:52:07 +000024602int
24603main ()
24604{
24605
24606 ;
24607 return 0;
24608}
24609_ACEOF
24610rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024611if { (ac_try="$ac_link"
24612case "(($ac_try" in
24613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614 *) ac_try_echo=$ac_try;;
24615esac
24616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24617 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024619 grep -v '^ *+' conftest.er1 >conftest.err
24620 rm -f conftest.er1
24621 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24625 { (case "(($ac_try" in
24626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627 *) ac_try_echo=$ac_try;;
24628esac
24629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024635 { (case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24638esac
24639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024641 ac_status=$?
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); }; }; then
24644
24645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24646}'`
24647# Check for a 64-bit object if we didn't find anything.
24648if 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; }
24649}'`; fi
24650else
24651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024652sed 's/^/| /' conftest.$ac_ext >&5
24653
Reid Spencera773bd52006-08-04 18:18:08 +000024654
John Criswell47fdd832003-07-14 16:52:07 +000024655fi
Reid Spencera773bd52006-08-04 18:18:08 +000024656
24657rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024658 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24660
24661 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24662 # Warning - without using the other run time loading flags,
24663 # -berok will link without error, but may produce a broken library.
24664 no_undefined_flag_GCJ=' ${wl}-bernotok'
24665 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024666 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024667 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024668 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024669 # This is similar to how AIX traditionally builds its shared libraries.
24670 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 +000024671 fi
24672 fi
24673 ;;
24674
24675 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024676 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 +000024677 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24678 hardcode_minus_L_GCJ=yes
24679 # see comment about different semantics on the GNU ld section
24680 ld_shlibs_GCJ=no
24681 ;;
24682
Reid Spencer2706f8c2004-09-19 23:53:36 +000024683 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024684 export_dynamic_flag_spec_GCJ=-rdynamic
24685 ;;
24686
24687 cygwin* | mingw* | pw32*)
24688 # When not using gcc, we currently assume that we are using
24689 # Microsoft Visual C++.
24690 # hardcode_libdir_flag_spec is actually meaningless, as there is
24691 # no search path for DLLs.
24692 hardcode_libdir_flag_spec_GCJ=' '
24693 allow_undefined_flag_GCJ=unsupported
24694 # Tell ltmain to make .lib files, not .a files.
24695 libext=lib
24696 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024697 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024698 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024699 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 +000024700 # The linker will automatically build a .lib file if we build a DLL.
24701 old_archive_From_new_cmds_GCJ='true'
24702 # FIXME: Should let the user specify the lib program.
24703 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024704 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024705 enable_shared_with_static_runtimes_GCJ=yes
24706 ;;
24707
24708 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024709 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024710 rhapsody* | darwin1.[012])
24711 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24712 ;;
24713 *) # Darwin 1.3 on
24714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24715 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24716 else
24717 case ${MACOSX_DEPLOYMENT_TARGET} in
24718 10.[012])
24719 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24720 ;;
24721 10.*)
24722 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24723 ;;
24724 esac
24725 fi
24726 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024727 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024728 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024729 hardcode_direct_GCJ=no
24730 hardcode_automatic_GCJ=yes
24731 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024732 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024733 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024734 if test "$GCC" = yes ; then
24735 output_verbose_link_cmd='echo'
24736 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24737 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024738 # 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 +000024739 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}'
24740 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 +000024741 else
Reid Spencera773bd52006-08-04 18:18:08 +000024742 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024743 xlc*)
24744 output_verbose_link_cmd='echo'
24745 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24746 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024747 # 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 +000024748 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}'
24749 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 +000024750 ;;
24751 *)
24752 ld_shlibs_GCJ=no
24753 ;;
24754 esac
John Criswell47fdd832003-07-14 16:52:07 +000024755 fi
24756 ;;
24757
24758 dgux*)
24759 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761 hardcode_shlibpath_var_GCJ=no
24762 ;;
24763
24764 freebsd1*)
24765 ld_shlibs_GCJ=no
24766 ;;
24767
24768 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24769 # support. Future versions do this automatically, but an explicit c++rt0.o
24770 # does not break anything, and helps significantly (at the cost of a little
24771 # extra space).
24772 freebsd2.2*)
24773 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24775 hardcode_direct_GCJ=yes
24776 hardcode_shlibpath_var_GCJ=no
24777 ;;
24778
24779 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24780 freebsd2*)
24781 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24782 hardcode_direct_GCJ=yes
24783 hardcode_minus_L_GCJ=yes
24784 hardcode_shlibpath_var_GCJ=no
24785 ;;
24786
24787 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024788 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024789 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24790 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24791 hardcode_direct_GCJ=yes
24792 hardcode_shlibpath_var_GCJ=no
24793 ;;
24794
24795 hpux9*)
24796 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024797 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 +000024798 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024799 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 +000024800 fi
24801 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24802 hardcode_libdir_separator_GCJ=:
24803 hardcode_direct_GCJ=yes
24804
24805 # hardcode_minus_L: Not really in the search PATH,
24806 # but as the default location of the library.
24807 hardcode_minus_L_GCJ=yes
24808 export_dynamic_flag_spec_GCJ='${wl}-E'
24809 ;;
24810
Reid Spencera773bd52006-08-04 18:18:08 +000024811 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024813 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24814 else
24815 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24816 fi
24817 if test "$with_gnu_ld" = no; then
24818 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24819 hardcode_libdir_separator_GCJ=:
24820
24821 hardcode_direct_GCJ=yes
24822 export_dynamic_flag_spec_GCJ='${wl}-E'
24823
24824 # hardcode_minus_L: Not really in the search PATH,
24825 # but as the default location of the library.
24826 hardcode_minus_L_GCJ=yes
24827 fi
24828 ;;
24829
24830 hpux11*)
24831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24832 case $host_cpu in
24833 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024834 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024836 ia64*)
24837 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24838 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024839 *)
24840 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24841 ;;
24842 esac
24843 else
Reid Spencera773bd52006-08-04 18:18:08 +000024844 case $host_cpu in
24845 hppa*64*)
24846 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24847 ;;
24848 ia64*)
24849 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024850 ;;
24851 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024852 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 +000024853 ;;
24854 esac
24855 fi
24856 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024857 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24858 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024859
Reid Spencera773bd52006-08-04 18:18:08 +000024860 case $host_cpu in
24861 hppa*64*|ia64*)
24862 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24863 hardcode_direct_GCJ=no
24864 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024865 ;;
24866 *)
John Criswell47fdd832003-07-14 16:52:07 +000024867 hardcode_direct_GCJ=yes
24868 export_dynamic_flag_spec_GCJ='${wl}-E'
24869
24870 # hardcode_minus_L: Not really in the search PATH,
24871 # but as the default location of the library.
24872 hardcode_minus_L_GCJ=yes
24873 ;;
24874 esac
24875 fi
24876 ;;
24877
24878 irix5* | irix6* | nonstopux*)
24879 if test "$GCC" = yes; then
24880 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'
24881 else
24882 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'
24883 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24884 fi
24885 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24886 hardcode_libdir_separator_GCJ=:
24887 link_all_deplibs_GCJ=yes
24888 ;;
24889
24890 netbsd*)
24891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24892 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24893 else
24894 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24895 fi
24896 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24897 hardcode_direct_GCJ=yes
24898 hardcode_shlibpath_var_GCJ=no
24899 ;;
24900
24901 newsos6)
24902 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24903 hardcode_direct_GCJ=yes
24904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24905 hardcode_libdir_separator_GCJ=:
24906 hardcode_shlibpath_var_GCJ=no
24907 ;;
24908
24909 openbsd*)
24910 hardcode_direct_GCJ=yes
24911 hardcode_shlibpath_var_GCJ=no
24912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24913 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024914 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 +000024915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24916 export_dynamic_flag_spec_GCJ='${wl}-E'
24917 else
24918 case $host_os in
24919 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24920 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24921 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24922 ;;
24923 *)
24924 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24925 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24926 ;;
24927 esac
24928 fi
24929 ;;
24930
24931 os2*)
24932 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24933 hardcode_minus_L_GCJ=yes
24934 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024935 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 +000024936 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24937 ;;
24938
24939 osf3*)
24940 if test "$GCC" = yes; then
24941 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24942 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'
24943 else
24944 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24945 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'
24946 fi
24947 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24948 hardcode_libdir_separator_GCJ=:
24949 ;;
24950
24951 osf4* | osf5*) # as osf3* with the addition of -msym flag
24952 if test "$GCC" = yes; then
24953 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24954 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'
24955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24956 else
24957 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24958 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 +000024959 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 +000024960 $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 +000024961
John Criswell47fdd832003-07-14 16:52:07 +000024962 # Both c and cxx compiler support -rpath directly
24963 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24964 fi
24965 hardcode_libdir_separator_GCJ=:
24966 ;;
24967
John Criswell47fdd832003-07-14 16:52:07 +000024968 solaris*)
24969 no_undefined_flag_GCJ=' -z text'
24970 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024971 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024972 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024973 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24974 $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 +000024975 else
Reid Spencera773bd52006-08-04 18:18:08 +000024976 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024977 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024978 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24979 $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 +000024980 fi
24981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24982 hardcode_shlibpath_var_GCJ=no
24983 case $host_os in
24984 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024985 *)
24986 # The compiler driver will combine linker options so we
24987 # cannot just pass the convience library names through
24988 # without $wl, iff we do not link with $LD.
24989 # Luckily, gcc supports the same syntax we need for Sun Studio.
24990 # Supported since Solaris 2.6 (maybe 2.5.1?)
24991 case $wlarc in
24992 '')
24993 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24994 *)
24995 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' ;;
24996 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024997 esac
24998 link_all_deplibs_GCJ=yes
24999 ;;
25000
25001 sunos4*)
25002 if test "x$host_vendor" = xsequent; then
25003 # Use $CC to link under sequent, because it throws in some extra .o
25004 # files that make .init and .fini sections work.
25005 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25006 else
25007 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25008 fi
25009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25010 hardcode_direct_GCJ=yes
25011 hardcode_minus_L_GCJ=yes
25012 hardcode_shlibpath_var_GCJ=no
25013 ;;
25014
25015 sysv4)
25016 case $host_vendor in
25017 sni)
25018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25019 hardcode_direct_GCJ=yes # is this really true???
25020 ;;
25021 siemens)
25022 ## LD is ld it makes a PLAMLIB
25023 ## CC just makes a GrossModule.
25024 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25025 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25026 hardcode_direct_GCJ=no
25027 ;;
25028 motorola)
25029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25030 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25031 ;;
25032 esac
25033 runpath_var='LD_RUN_PATH'
25034 hardcode_shlibpath_var_GCJ=no
25035 ;;
25036
25037 sysv4.3*)
25038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25039 hardcode_shlibpath_var_GCJ=no
25040 export_dynamic_flag_spec_GCJ='-Bexport'
25041 ;;
25042
25043 sysv4*MP*)
25044 if test -d /usr/nec; then
25045 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25046 hardcode_shlibpath_var_GCJ=no
25047 runpath_var=LD_RUN_PATH
25048 hardcode_runpath_var=yes
25049 ld_shlibs_GCJ=yes
25050 fi
25051 ;;
25052
Reid Spencera773bd52006-08-04 18:18:08 +000025053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25054 no_undefined_flag_GCJ='${wl}-z,text'
25055 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025056 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025057 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025058
John Criswell47fdd832003-07-14 16:52:07 +000025059 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025060 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25061 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 +000025062 else
Reid Spencera773bd52006-08-04 18:18:08 +000025063 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25064 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 +000025065 fi
John Criswell47fdd832003-07-14 16:52:07 +000025066 ;;
25067
Reid Spencera773bd52006-08-04 18:18:08 +000025068 sysv5* | sco3.2v5* | sco5v6*)
25069 # Note: We can NOT use -z defs as we might desire, because we do not
25070 # link with -lc, and that would cause any symbols used from libc to
25071 # always be unresolved, which means just about no library would
25072 # ever link correctly. If we're not using GNU ld we use -z text
25073 # though, which does catch some bad symbols but isn't as heavy-handed
25074 # as -z defs.
25075 no_undefined_flag_GCJ='${wl}-z,text'
25076 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25077 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025078 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025079 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25080 hardcode_libdir_separator_GCJ=':'
25081 link_all_deplibs_GCJ=yes
25082 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025083 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025084
25085 if test "$GCC" = yes; then
25086 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25087 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25088 else
25089 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25090 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25091 fi
John Criswell47fdd832003-07-14 16:52:07 +000025092 ;;
25093
25094 uts4*)
25095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25097 hardcode_shlibpath_var_GCJ=no
25098 ;;
25099
25100 *)
25101 ld_shlibs_GCJ=no
25102 ;;
25103 esac
25104 fi
25105
Reid Spencera773bd52006-08-04 18:18:08 +000025106{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25107echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025108test "$ld_shlibs_GCJ" = no && can_build_shared=no
25109
John Criswell47fdd832003-07-14 16:52:07 +000025110#
25111# Do we need to explicitly link libc?
25112#
25113case "x$archive_cmds_need_lc_GCJ" in
25114x|xyes)
25115 # Assume -lc should be added
25116 archive_cmds_need_lc_GCJ=yes
25117
25118 if test "$enable_shared" = yes && test "$GCC" = yes; then
25119 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025120 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025121 # FIXME: we may have to deal with multi-command sequences.
25122 ;;
25123 '$CC '*)
25124 # Test whether the compiler implicitly links with -lc since on some
25125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25126 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025127 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25128echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025129 $rm conftest*
25130 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25131
25132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25133 (eval $ac_compile) 2>&5
25134 ac_status=$?
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } 2>conftest.err; then
25137 soname=conftest
25138 lib=conftest
25139 libobjs=conftest.$ac_objext
25140 deplibs=
25141 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025142 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025143 compiler_flags=-v
25144 linker_flags=-v
25145 verstring=
25146 output_objdir=.
25147 libname=conftest
25148 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25149 allow_undefined_flag_GCJ=
25150 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25151 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25152 ac_status=$?
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }
25155 then
25156 archive_cmds_need_lc_GCJ=no
25157 else
25158 archive_cmds_need_lc_GCJ=yes
25159 fi
25160 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25161 else
25162 cat conftest.err 1>&5
25163 fi
25164 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025165 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25166echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025167 ;;
25168 esac
25169 fi
25170 ;;
25171esac
25172
Reid Spencera773bd52006-08-04 18:18:08 +000025173{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25174echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025175library_names_spec=
25176libname_spec='lib$name'
25177soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025178shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025179postinstall_cmds=
25180postuninstall_cmds=
25181finish_cmds=
25182finish_eval=
25183shlibpath_var=
25184shlibpath_overrides_runpath=unknown
25185version_type=none
25186dynamic_linker="$host_os ld.so"
25187sys_lib_dlsearch_path_spec="/lib /usr/lib"
25188if test "$GCC" = yes; then
25189 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25190 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25191 # if the path contains ";" then we assume it to be the separator
25192 # otherwise default to the standard path separator (i.e. ":") - it is
25193 # assumed that no part of a normal pathname contains ";" but that should
25194 # okay in the real world where ";" in dirpaths is itself problematic.
25195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25196 else
25197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25198 fi
25199else
25200 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25201fi
25202need_lib_prefix=unknown
25203hardcode_into_libs=no
25204
25205# when you set need_version to no, make sure it does not cause -set_version
25206# flags to be left without arguments
25207need_version=unknown
25208
25209case $host_os in
25210aix3*)
25211 version_type=linux
25212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25213 shlibpath_var=LIBPATH
25214
25215 # AIX 3 has no versioning support, so we append a major version to the name.
25216 soname_spec='${libname}${release}${shared_ext}$major'
25217 ;;
25218
25219aix4* | aix5*)
25220 version_type=linux
25221 need_lib_prefix=no
25222 need_version=no
25223 hardcode_into_libs=yes
25224 if test "$host_cpu" = ia64; then
25225 # AIX 5 supports IA64
25226 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25227 shlibpath_var=LD_LIBRARY_PATH
25228 else
25229 # With GCC up to 2.95.x, collect2 would create an import file
25230 # for dependence libraries. The import file would start with
25231 # the line `#! .'. This would cause the generated library to
25232 # depend on `.', always an invalid library. This was fixed in
25233 # development snapshots of GCC prior to 3.0.
25234 case $host_os in
25235 aix4 | aix4.[01] | aix4.[01].*)
25236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25237 echo ' yes '
25238 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25239 :
25240 else
25241 can_build_shared=no
25242 fi
25243 ;;
25244 esac
25245 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25246 # soname into executable. Probably we can add versioning support to
25247 # collect2, so additional links can be useful in future.
25248 if test "$aix_use_runtimelinking" = yes; then
25249 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25250 # instead of lib<name>.a to let people know that these are not
25251 # typical AIX shared libraries.
25252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25253 else
25254 # We preserve .a as extension for shared libraries through AIX4.2
25255 # and later when we are not doing run time linking.
25256 library_names_spec='${libname}${release}.a $libname.a'
25257 soname_spec='${libname}${release}${shared_ext}$major'
25258 fi
25259 shlibpath_var=LIBPATH
25260 fi
25261 ;;
25262
25263amigaos*)
25264 library_names_spec='$libname.ixlibrary $libname.a'
25265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025266 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 +000025267 ;;
25268
25269beos*)
25270 library_names_spec='${libname}${shared_ext}'
25271 dynamic_linker="$host_os ld.so"
25272 shlibpath_var=LIBRARY_PATH
25273 ;;
25274
Reid Spencer2706f8c2004-09-19 23:53:36 +000025275bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025276 version_type=linux
25277 need_version=no
25278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25279 soname_spec='${libname}${release}${shared_ext}$major'
25280 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25281 shlibpath_var=LD_LIBRARY_PATH
25282 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25283 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25284 # the default ld.so.conf also contains /usr/contrib/lib and
25285 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25286 # libtool to hard-code these into programs
25287 ;;
25288
25289cygwin* | mingw* | pw32*)
25290 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025291 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025292 need_version=no
25293 need_lib_prefix=no
25294
25295 case $GCC,$host_os in
25296 yes,cygwin* | yes,mingw* | yes,pw32*)
25297 library_names_spec='$libname.dll.a'
25298 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025299 postinstall_cmds='base_file=`basename \${file}`~
25300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25301 dldir=$destdir/`dirname \$dlpath`~
25302 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025303 $install_prog $dir/$dlname \$dldir/$dlname~
25304 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25306 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025307 $rm \$dlpath'
25308 shlibpath_overrides_runpath=yes
25309
25310 case $host_os in
25311 cygwin*)
25312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25313 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 +000025314 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025315 ;;
25316 mingw*)
25317 # MinGW DLLs use traditional 'lib' prefix
25318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25321 # It is most probably a Windows format PATH printed by
25322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25323 # path with ; separators, and with drive letters. We can handle the
25324 # drive letters (cygwin fileutils understands them), so leave them,
25325 # especially as we might pass files found there to a mingw objdump,
25326 # which wouldn't understand a cygwinified path. Ahh.
25327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25328 else
25329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25330 fi
25331 ;;
25332 pw32*)
25333 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025334 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 +000025335 ;;
25336 esac
25337 ;;
25338
25339 *)
25340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25341 ;;
25342 esac
25343 dynamic_linker='Win32 ld.exe'
25344 # FIXME: first we should search . and the directory the executable is in
25345 shlibpath_var=PATH
25346 ;;
25347
25348darwin* | rhapsody*)
25349 dynamic_linker="$host_os dyld"
25350 version_type=darwin
25351 need_lib_prefix=no
25352 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025353 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025354 soname_spec='${libname}${release}${major}$shared_ext'
25355 shlibpath_overrides_runpath=yes
25356 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025357 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025358 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025359 if test "$GCC" = yes; then
25360 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"`
25361 else
25362 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025363 fi
25364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25365 ;;
25366
25367dgux*)
25368 version_type=linux
25369 need_lib_prefix=no
25370 need_version=no
25371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25372 soname_spec='${libname}${release}${shared_ext}$major'
25373 shlibpath_var=LD_LIBRARY_PATH
25374 ;;
25375
25376freebsd1*)
25377 dynamic_linker=no
25378 ;;
25379
Reid Spencer2706f8c2004-09-19 23:53:36 +000025380kfreebsd*-gnu)
25381 version_type=linux
25382 need_lib_prefix=no
25383 need_version=no
25384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25385 soname_spec='${libname}${release}${shared_ext}$major'
25386 shlibpath_var=LD_LIBRARY_PATH
25387 shlibpath_overrides_runpath=no
25388 hardcode_into_libs=yes
25389 dynamic_linker='GNU ld.so'
25390 ;;
25391
Reid Spencera773bd52006-08-04 18:18:08 +000025392freebsd* | dragonfly*)
25393 # DragonFly does not have aout. When/if they implement a new
25394 # versioning mechanism, adjust this.
25395 if test -x /usr/bin/objformat; then
25396 objformat=`/usr/bin/objformat`
25397 else
25398 case $host_os in
25399 freebsd[123]*) objformat=aout ;;
25400 *) objformat=elf ;;
25401 esac
25402 fi
John Criswell47fdd832003-07-14 16:52:07 +000025403 version_type=freebsd-$objformat
25404 case $version_type in
25405 freebsd-elf*)
25406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25407 need_version=no
25408 need_lib_prefix=no
25409 ;;
25410 freebsd-*)
25411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25412 need_version=yes
25413 ;;
25414 esac
25415 shlibpath_var=LD_LIBRARY_PATH
25416 case $host_os in
25417 freebsd2*)
25418 shlibpath_overrides_runpath=yes
25419 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025420 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025421 shlibpath_overrides_runpath=yes
25422 hardcode_into_libs=yes
25423 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025424 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25425 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025426 shlibpath_overrides_runpath=no
25427 hardcode_into_libs=yes
25428 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025429 freebsd*) # from 4.6 on
25430 shlibpath_overrides_runpath=yes
25431 hardcode_into_libs=yes
25432 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025433 esac
25434 ;;
25435
25436gnu*)
25437 version_type=linux
25438 need_lib_prefix=no
25439 need_version=no
25440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25441 soname_spec='${libname}${release}${shared_ext}$major'
25442 shlibpath_var=LD_LIBRARY_PATH
25443 hardcode_into_libs=yes
25444 ;;
25445
25446hpux9* | hpux10* | hpux11*)
25447 # Give a soname corresponding to the major version so that dld.sl refuses to
25448 # link against other versions.
25449 version_type=sunos
25450 need_lib_prefix=no
25451 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025452 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025453 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025454 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025455 hardcode_into_libs=yes
25456 dynamic_linker="$host_os dld.so"
25457 shlibpath_var=LD_LIBRARY_PATH
25458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25460 soname_spec='${libname}${release}${shared_ext}$major'
25461 if test "X$HPUX_IA64_MODE" = X32; then
25462 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25463 else
25464 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25465 fi
25466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25467 ;;
25468 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025469 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025470 hardcode_into_libs=yes
25471 dynamic_linker="$host_os dld.sl"
25472 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25478 ;;
25479 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025480 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025481 dynamic_linker="$host_os dld.sl"
25482 shlibpath_var=SHLIB_PATH
25483 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25485 soname_spec='${libname}${release}${shared_ext}$major'
25486 ;;
25487 esac
25488 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25489 postinstall_cmds='chmod 555 $lib'
25490 ;;
25491
Reid Spencera773bd52006-08-04 18:18:08 +000025492interix3*)
25493 version_type=linux
25494 need_lib_prefix=no
25495 need_version=no
25496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25497 soname_spec='${libname}${release}${shared_ext}$major'
25498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25499 shlibpath_var=LD_LIBRARY_PATH
25500 shlibpath_overrides_runpath=no
25501 hardcode_into_libs=yes
25502 ;;
25503
John Criswell47fdd832003-07-14 16:52:07 +000025504irix5* | irix6* | nonstopux*)
25505 case $host_os in
25506 nonstopux*) version_type=nonstopux ;;
25507 *)
25508 if test "$lt_cv_prog_gnu_ld" = yes; then
25509 version_type=linux
25510 else
25511 version_type=irix
25512 fi ;;
25513 esac
25514 need_lib_prefix=no
25515 need_version=no
25516 soname_spec='${libname}${release}${shared_ext}$major'
25517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25518 case $host_os in
25519 irix5* | nonstopux*)
25520 libsuff= shlibsuff=
25521 ;;
25522 *)
25523 case $LD in # libtool.m4 will add one of these switches to LD
25524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25525 libsuff= shlibsuff= libmagic=32-bit;;
25526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25527 libsuff=32 shlibsuff=N32 libmagic=N32;;
25528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25530 *) libsuff= shlibsuff= libmagic=never-match;;
25531 esac
25532 ;;
25533 esac
25534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25535 shlibpath_overrides_runpath=no
25536 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25537 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25538 hardcode_into_libs=yes
25539 ;;
25540
25541# No shared lib support for Linux oldld, aout, or coff.
25542linux*oldld* | linux*aout* | linux*coff*)
25543 dynamic_linker=no
25544 ;;
25545
25546# This must be Linux ELF.
25547linux*)
25548 version_type=linux
25549 need_lib_prefix=no
25550 need_version=no
25551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25552 soname_spec='${libname}${release}${shared_ext}$major'
25553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25554 shlibpath_var=LD_LIBRARY_PATH
25555 shlibpath_overrides_runpath=no
25556 # This implies no fast_install, which is unacceptable.
25557 # Some rework will be needed to allow for fast_install
25558 # before this can be enabled.
25559 hardcode_into_libs=yes
25560
Reid Spencer2706f8c2004-09-19 23:53:36 +000025561 # Append ld.so.conf contents to the search path
25562 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025563 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 +000025564 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25565 fi
25566
John Criswell47fdd832003-07-14 16:52:07 +000025567 # We used to test for /lib/ld.so.1 and disable shared libraries on
25568 # powerpc, because MkLinux only supported shared libraries with the
25569 # GNU dynamic linker. Since this was broken with cross compilers,
25570 # most powerpc-linux boxes support dynamic linking these days and
25571 # people can always --disable-shared, the test was removed, and we
25572 # assume the GNU/Linux dynamic linker is in use.
25573 dynamic_linker='GNU/Linux ld.so'
25574 ;;
25575
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576knetbsd*-gnu)
25577 version_type=linux
25578 need_lib_prefix=no
25579 need_version=no
25580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25581 soname_spec='${libname}${release}${shared_ext}$major'
25582 shlibpath_var=LD_LIBRARY_PATH
25583 shlibpath_overrides_runpath=no
25584 hardcode_into_libs=yes
25585 dynamic_linker='GNU ld.so'
25586 ;;
25587
John Criswell47fdd832003-07-14 16:52:07 +000025588netbsd*)
25589 version_type=sunos
25590 need_lib_prefix=no
25591 need_version=no
25592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25595 dynamic_linker='NetBSD (a.out) ld.so'
25596 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025598 soname_spec='${libname}${release}${shared_ext}$major'
25599 dynamic_linker='NetBSD ld.elf_so'
25600 fi
25601 shlibpath_var=LD_LIBRARY_PATH
25602 shlibpath_overrides_runpath=yes
25603 hardcode_into_libs=yes
25604 ;;
25605
25606newsos6)
25607 version_type=linux
25608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25609 shlibpath_var=LD_LIBRARY_PATH
25610 shlibpath_overrides_runpath=yes
25611 ;;
25612
Reid Spencer2706f8c2004-09-19 23:53:36 +000025613nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025614 version_type=linux
25615 need_lib_prefix=no
25616 need_version=no
25617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25618 soname_spec='${libname}${release}${shared_ext}$major'
25619 shlibpath_var=LD_LIBRARY_PATH
25620 shlibpath_overrides_runpath=yes
25621 ;;
25622
25623openbsd*)
25624 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025625 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025626 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025627 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25628 case $host_os in
25629 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25630 *) need_version=no ;;
25631 esac
John Criswell47fdd832003-07-14 16:52:07 +000025632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25634 shlibpath_var=LD_LIBRARY_PATH
25635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25636 case $host_os in
25637 openbsd2.[89] | openbsd2.[89].*)
25638 shlibpath_overrides_runpath=no
25639 ;;
25640 *)
25641 shlibpath_overrides_runpath=yes
25642 ;;
25643 esac
25644 else
25645 shlibpath_overrides_runpath=yes
25646 fi
25647 ;;
25648
25649os2*)
25650 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025651 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025652 need_lib_prefix=no
25653 library_names_spec='$libname${shared_ext} $libname.a'
25654 dynamic_linker='OS/2 ld.exe'
25655 shlibpath_var=LIBPATH
25656 ;;
25657
25658osf3* | osf4* | osf5*)
25659 version_type=osf
25660 need_lib_prefix=no
25661 need_version=no
25662 soname_spec='${libname}${release}${shared_ext}$major'
25663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25664 shlibpath_var=LD_LIBRARY_PATH
25665 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25666 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25667 ;;
25668
John Criswell47fdd832003-07-14 16:52:07 +000025669solaris*)
25670 version_type=linux
25671 need_lib_prefix=no
25672 need_version=no
25673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25674 soname_spec='${libname}${release}${shared_ext}$major'
25675 shlibpath_var=LD_LIBRARY_PATH
25676 shlibpath_overrides_runpath=yes
25677 hardcode_into_libs=yes
25678 # ldd complains unless libraries are executable
25679 postinstall_cmds='chmod +x $lib'
25680 ;;
25681
25682sunos4*)
25683 version_type=sunos
25684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25686 shlibpath_var=LD_LIBRARY_PATH
25687 shlibpath_overrides_runpath=yes
25688 if test "$with_gnu_ld" = yes; then
25689 need_lib_prefix=no
25690 fi
25691 need_version=yes
25692 ;;
25693
Reid Spencera773bd52006-08-04 18:18:08 +000025694sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025695 version_type=linux
25696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25697 soname_spec='${libname}${release}${shared_ext}$major'
25698 shlibpath_var=LD_LIBRARY_PATH
25699 case $host_vendor in
25700 sni)
25701 shlibpath_overrides_runpath=no
25702 need_lib_prefix=no
25703 export_dynamic_flag_spec='${wl}-Blargedynsym'
25704 runpath_var=LD_RUN_PATH
25705 ;;
25706 siemens)
25707 need_lib_prefix=no
25708 ;;
25709 motorola)
25710 need_lib_prefix=no
25711 need_version=no
25712 shlibpath_overrides_runpath=no
25713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25714 ;;
25715 esac
25716 ;;
25717
25718sysv4*MP*)
25719 if test -d /usr/nec ;then
25720 version_type=linux
25721 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25722 soname_spec='$libname${shared_ext}.$major'
25723 shlibpath_var=LD_LIBRARY_PATH
25724 fi
25725 ;;
25726
Reid Spencera773bd52006-08-04 18:18:08 +000025727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25728 version_type=freebsd-elf
25729 need_lib_prefix=no
25730 need_version=no
25731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25732 soname_spec='${libname}${release}${shared_ext}$major'
25733 shlibpath_var=LD_LIBRARY_PATH
25734 hardcode_into_libs=yes
25735 if test "$with_gnu_ld" = yes; then
25736 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25737 shlibpath_overrides_runpath=no
25738 else
25739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25740 shlibpath_overrides_runpath=yes
25741 case $host_os in
25742 sco3.2v5*)
25743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25744 ;;
25745 esac
25746 fi
25747 sys_lib_dlsearch_path_spec='/usr/lib'
25748 ;;
25749
John Criswell47fdd832003-07-14 16:52:07 +000025750uts4*)
25751 version_type=linux
25752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25753 soname_spec='${libname}${release}${shared_ext}$major'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 ;;
25756
25757*)
25758 dynamic_linker=no
25759 ;;
25760esac
Reid Spencera773bd52006-08-04 18:18:08 +000025761{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25762echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025763test "$dynamic_linker" = no && can_build_shared=no
25764
Reid Spencera773bd52006-08-04 18:18:08 +000025765variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25766if test "$GCC" = yes; then
25767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25768fi
25769
25770{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25771echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025772hardcode_action_GCJ=
25773if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25774 test -n "$runpath_var_GCJ" || \
25775 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25776
25777 # We can hardcode non-existant directories.
25778 if test "$hardcode_direct_GCJ" != no &&
25779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25780 # have to relink, otherwise we might link with an installed library
25781 # when we should be linking with a yet-to-be-installed one
25782 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25783 test "$hardcode_minus_L_GCJ" != no; then
25784 # Linking always hardcodes the temporary library directory.
25785 hardcode_action_GCJ=relink
25786 else
25787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25788 hardcode_action_GCJ=immediate
25789 fi
25790else
25791 # We cannot hardcode anything, or else we can only hardcode existing
25792 # directories.
25793 hardcode_action_GCJ=unsupported
25794fi
Reid Spencera773bd52006-08-04 18:18:08 +000025795{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25796echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025797
25798if test "$hardcode_action_GCJ" = relink; then
25799 # Fast installation is not supported
25800 enable_fast_install=no
25801elif test "$shlibpath_overrides_runpath" = yes ||
25802 test "$enable_shared" = no; then
25803 # Fast installation is not necessary
25804 enable_fast_install=needless
25805fi
25806
John Criswell47fdd832003-07-14 16:52:07 +000025807
25808# The else clause should only fire when bootstrapping the
25809# libtool distribution, otherwise you forgot to ship ltmain.sh
25810# with your package, and you will get complaints that there are
25811# no rules to generate ltmain.sh.
25812if test -f "$ltmain"; then
25813 # See if we are running on zsh, and set the options which allow our commands through
25814 # without removal of \ escapes.
25815 if test -n "${ZSH_VERSION+set}" ; then
25816 setopt NO_GLOB_SUBST
25817 fi
25818 # Now quote all the things that may contain metacharacters while being
25819 # careful not to overquote the AC_SUBSTed values. We take copies of the
25820 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025821 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 +000025822 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025823 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25824 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25825 deplibs_check_method reload_flag reload_cmds need_locks \
25826 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25827 lt_cv_sys_global_symbol_to_c_name_address \
25828 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25829 old_postinstall_cmds old_postuninstall_cmds \
25830 compiler_GCJ \
25831 CC_GCJ \
25832 LD_GCJ \
25833 lt_prog_compiler_wl_GCJ \
25834 lt_prog_compiler_pic_GCJ \
25835 lt_prog_compiler_static_GCJ \
25836 lt_prog_compiler_no_builtin_flag_GCJ \
25837 export_dynamic_flag_spec_GCJ \
25838 thread_safe_flag_spec_GCJ \
25839 whole_archive_flag_spec_GCJ \
25840 enable_shared_with_static_runtimes_GCJ \
25841 old_archive_cmds_GCJ \
25842 old_archive_from_new_cmds_GCJ \
25843 predep_objects_GCJ \
25844 postdep_objects_GCJ \
25845 predeps_GCJ \
25846 postdeps_GCJ \
25847 compiler_lib_search_path_GCJ \
25848 archive_cmds_GCJ \
25849 archive_expsym_cmds_GCJ \
25850 postinstall_cmds_GCJ \
25851 postuninstall_cmds_GCJ \
25852 old_archive_from_expsyms_cmds_GCJ \
25853 allow_undefined_flag_GCJ \
25854 no_undefined_flag_GCJ \
25855 export_symbols_cmds_GCJ \
25856 hardcode_libdir_flag_spec_GCJ \
25857 hardcode_libdir_flag_spec_ld_GCJ \
25858 hardcode_libdir_separator_GCJ \
25859 hardcode_automatic_GCJ \
25860 module_cmds_GCJ \
25861 module_expsym_cmds_GCJ \
25862 lt_cv_prog_compiler_c_o_GCJ \
25863 exclude_expsyms_GCJ \
25864 include_expsyms_GCJ; do
25865
25866 case $var in
25867 old_archive_cmds_GCJ | \
25868 old_archive_from_new_cmds_GCJ | \
25869 archive_cmds_GCJ | \
25870 archive_expsym_cmds_GCJ | \
25871 module_cmds_GCJ | \
25872 module_expsym_cmds_GCJ | \
25873 old_archive_from_expsyms_cmds_GCJ | \
25874 export_symbols_cmds_GCJ | \
25875 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25876 postinstall_cmds | postuninstall_cmds | \
25877 old_postinstall_cmds | old_postuninstall_cmds | \
25878 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25879 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025880 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 +000025881 ;;
25882 *)
25883 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25884 ;;
25885 esac
25886 done
25887
25888 case $lt_echo in
25889 *'\$0 --fallback-echo"')
25890 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25891 ;;
25892 esac
25893
25894cfgfile="$ofile"
25895
25896 cat <<__EOF__ >> "$cfgfile"
25897# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25898
25899# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25900
25901# Shell to use when invoking shell scripts.
25902SHELL=$lt_SHELL
25903
25904# Whether or not to build shared libraries.
25905build_libtool_libs=$enable_shared
25906
25907# Whether or not to build static libraries.
25908build_old_libs=$enable_static
25909
25910# Whether or not to add -lc for building shared libraries.
25911build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25912
25913# Whether or not to disallow shared libs when runtime libs are static
25914allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25915
25916# Whether or not to optimize for fast installation.
25917fast_install=$enable_fast_install
25918
25919# The host system.
25920host_alias=$host_alias
25921host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025922host_os=$host_os
25923
25924# The build system.
25925build_alias=$build_alias
25926build=$build
25927build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025928
25929# An echo program that does not interpret backslashes.
25930echo=$lt_echo
25931
25932# The archiver.
25933AR=$lt_AR
25934AR_FLAGS=$lt_AR_FLAGS
25935
25936# A C compiler.
25937LTCC=$lt_LTCC
25938
Reid Spencera773bd52006-08-04 18:18:08 +000025939# LTCC compiler flags.
25940LTCFLAGS=$lt_LTCFLAGS
25941
John Criswell47fdd832003-07-14 16:52:07 +000025942# A language-specific compiler.
25943CC=$lt_compiler_GCJ
25944
25945# Is the compiler the GNU C compiler?
25946with_gcc=$GCC_GCJ
25947
25948# An ERE matcher.
25949EGREP=$lt_EGREP
25950
25951# The linker used to build libraries.
25952LD=$lt_LD_GCJ
25953
25954# Whether we need hard or soft links.
25955LN_S=$lt_LN_S
25956
25957# A BSD-compatible nm program.
25958NM=$lt_NM
25959
25960# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025961STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025962
25963# Used to examine libraries when file_magic_cmd begins "file"
25964MAGIC_CMD=$MAGIC_CMD
25965
25966# Used on cygwin: DLL creation program.
25967DLLTOOL="$DLLTOOL"
25968
25969# Used on cygwin: object dumper.
25970OBJDUMP="$OBJDUMP"
25971
25972# Used on cygwin: assembler.
25973AS="$AS"
25974
25975# The name of the directory that contains temporary libtool files.
25976objdir=$objdir
25977
25978# How to create reloadable object files.
25979reload_flag=$lt_reload_flag
25980reload_cmds=$lt_reload_cmds
25981
25982# How to pass a linker flag through the compiler.
25983wl=$lt_lt_prog_compiler_wl_GCJ
25984
25985# Object file suffix (normally "o").
25986objext="$ac_objext"
25987
25988# Old archive suffix (normally "a").
25989libext="$libext"
25990
25991# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025992shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025993
25994# Executable file suffix (normally "").
25995exeext="$exeext"
25996
25997# Additional compiler flags for building library objects.
25998pic_flag=$lt_lt_prog_compiler_pic_GCJ
25999pic_mode=$pic_mode
26000
26001# What is the maximum length of a command?
26002max_cmd_len=$lt_cv_sys_max_cmd_len
26003
26004# Does compiler simultaneously support -c and -o options?
26005compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26006
Reid Spencera773bd52006-08-04 18:18:08 +000026007# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026008need_locks=$lt_need_locks
26009
26010# Do we need the lib prefix for modules?
26011need_lib_prefix=$need_lib_prefix
26012
26013# Do we need a version for libraries?
26014need_version=$need_version
26015
26016# Whether dlopen is supported.
26017dlopen_support=$enable_dlopen
26018
26019# Whether dlopen of programs is supported.
26020dlopen_self=$enable_dlopen_self
26021
26022# Whether dlopen of statically linked programs is supported.
26023dlopen_self_static=$enable_dlopen_self_static
26024
26025# Compiler flag to prevent dynamic linking.
26026link_static_flag=$lt_lt_prog_compiler_static_GCJ
26027
26028# Compiler flag to turn off builtin functions.
26029no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26030
26031# Compiler flag to allow reflexive dlopens.
26032export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26033
26034# Compiler flag to generate shared objects directly from archives.
26035whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26036
26037# Compiler flag to generate thread-safe objects.
26038thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26039
26040# Library versioning type.
26041version_type=$version_type
26042
26043# Format of library name prefix.
26044libname_spec=$lt_libname_spec
26045
26046# List of archive names. First name is the real one, the rest are links.
26047# The last name is the one that the linker finds with -lNAME.
26048library_names_spec=$lt_library_names_spec
26049
26050# The coded name of the library, if different from the real name.
26051soname_spec=$lt_soname_spec
26052
26053# Commands used to build and install an old-style archive.
26054RANLIB=$lt_RANLIB
26055old_archive_cmds=$lt_old_archive_cmds_GCJ
26056old_postinstall_cmds=$lt_old_postinstall_cmds
26057old_postuninstall_cmds=$lt_old_postuninstall_cmds
26058
26059# Create an old-style archive from a shared archive.
26060old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26061
26062# Create a temporary old-style archive to link instead of a shared archive.
26063old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26064
26065# Commands used to build and install a shared archive.
26066archive_cmds=$lt_archive_cmds_GCJ
26067archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26068postinstall_cmds=$lt_postinstall_cmds
26069postuninstall_cmds=$lt_postuninstall_cmds
26070
26071# Commands used to build a loadable module (assumed same as above if empty)
26072module_cmds=$lt_module_cmds_GCJ
26073module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26074
26075# Commands to strip libraries.
26076old_striplib=$lt_old_striplib
26077striplib=$lt_striplib
26078
26079# Dependencies to place before the objects being linked to create a
26080# shared library.
26081predep_objects=$lt_predep_objects_GCJ
26082
26083# Dependencies to place after the objects being linked to create a
26084# shared library.
26085postdep_objects=$lt_postdep_objects_GCJ
26086
26087# Dependencies to place before the objects being linked to create a
26088# shared library.
26089predeps=$lt_predeps_GCJ
26090
26091# Dependencies to place after the objects being linked to create a
26092# shared library.
26093postdeps=$lt_postdeps_GCJ
26094
26095# The library search path used internally by the compiler when linking
26096# a shared library.
26097compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26098
26099# Method to check whether dependent libraries are shared objects.
26100deplibs_check_method=$lt_deplibs_check_method
26101
26102# Command to use when deplibs_check_method == file_magic.
26103file_magic_cmd=$lt_file_magic_cmd
26104
26105# Flag that allows shared libraries with undefined symbols to be built.
26106allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26107
26108# Flag that forces no undefined symbols.
26109no_undefined_flag=$lt_no_undefined_flag_GCJ
26110
26111# Commands used to finish a libtool library installation in a directory.
26112finish_cmds=$lt_finish_cmds
26113
26114# Same as above, but a single script fragment to be evaled but not shown.
26115finish_eval=$lt_finish_eval
26116
26117# Take the output of nm and produce a listing of raw symbols and C names.
26118global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26119
26120# Transform the output of nm in a proper C declaration
26121global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26122
26123# Transform the output of nm in a C name address pair
26124global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26125
26126# This is the shared library runtime path variable.
26127runpath_var=$runpath_var
26128
26129# This is the shared library path variable.
26130shlibpath_var=$shlibpath_var
26131
26132# Is shlibpath searched before the hard-coded library search path?
26133shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26134
26135# How to hardcode a shared library path into an executable.
26136hardcode_action=$hardcode_action_GCJ
26137
26138# Whether we should hardcode library paths into libraries.
26139hardcode_into_libs=$hardcode_into_libs
26140
26141# Flag to hardcode \$libdir into a binary during linking.
26142# This must work even if \$libdir does not exist.
26143hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26144
26145# If ld is used when linking, flag to hardcode \$libdir into
26146# a binary during linking. This must work even if \$libdir does
26147# not exist.
26148hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26149
26150# Whether we need a single -rpath flag with a separated argument.
26151hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26152
26153# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26154# resulting binary.
26155hardcode_direct=$hardcode_direct_GCJ
26156
26157# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26158# resulting binary.
26159hardcode_minus_L=$hardcode_minus_L_GCJ
26160
26161# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26162# the resulting binary.
26163hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26164
26165# Set to yes if building a shared library automatically hardcodes DIR into the library
26166# and all subsequent libraries and executables linked against it.
26167hardcode_automatic=$hardcode_automatic_GCJ
26168
26169# Variables whose values should be saved in libtool wrapper scripts and
26170# restored at relink time.
26171variables_saved_for_relink="$variables_saved_for_relink"
26172
26173# Whether libtool must link a program against all its dependency libraries.
26174link_all_deplibs=$link_all_deplibs_GCJ
26175
26176# Compile-time system search path for libraries
26177sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26178
26179# Run-time system search path for libraries
26180sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26181
26182# Fix the shell variable \$srcfile for the compiler.
26183fix_srcfile_path="$fix_srcfile_path_GCJ"
26184
26185# Set to yes if exported symbols are required.
26186always_export_symbols=$always_export_symbols_GCJ
26187
26188# The commands to list exported symbols.
26189export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26190
26191# The commands to extract the exported symbol list from a shared archive.
26192extract_expsyms_cmds=$lt_extract_expsyms_cmds
26193
26194# Symbols that should not be listed in the preloaded symbols.
26195exclude_expsyms=$lt_exclude_expsyms_GCJ
26196
26197# Symbols that must always be exported.
26198include_expsyms=$lt_include_expsyms_GCJ
26199
26200# ### END LIBTOOL TAG CONFIG: $tagname
26201
26202__EOF__
26203
26204
26205else
26206 # If there is no Makefile yet, we rely on a make rule to execute
26207 # `config.status --recheck' to rerun these tests and create the
26208 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026209 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26210 if test -f "$ltmain_in"; then
26211 test -f Makefile && make "$ltmain"
26212 fi
John Criswell47fdd832003-07-14 16:52:07 +000026213fi
26214
26215
26216ac_ext=c
26217ac_cpp='$CPP $CPPFLAGS'
26218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26220ac_compiler_gnu=$ac_cv_c_compiler_gnu
26221
26222CC="$lt_save_CC"
26223
26224 else
26225 tagname=""
26226 fi
26227 ;;
26228
26229 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026230 ac_ext=c
26231ac_cpp='$CPP $CPPFLAGS'
26232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26234ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026235
26236
26237# Source file extension for RC test sources.
26238ac_ext=rc
26239
26240# Object file extension for compiled RC test sources.
26241objext=o
26242objext_RC=$objext
26243
26244# Code to be used in simple compile tests
26245lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26246
26247# Code to be used in simple link tests
26248lt_simple_link_test_code="$lt_simple_compile_test_code"
26249
26250# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26251
26252# If no C compiler was specified, use CC.
26253LTCC=${LTCC-"$CC"}
26254
Reid Spencera773bd52006-08-04 18:18:08 +000026255# If no C compiler flags were specified, use CFLAGS.
26256LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26257
John Criswell47fdd832003-07-14 16:52:07 +000026258# Allow CC to be a program name with arguments.
26259compiler=$CC
26260
26261
Reid Spencera773bd52006-08-04 18:18:08 +000026262# save warnings/boilerplate of simple test code
26263ac_outfile=conftest.$ac_objext
26264printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26265eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26266_lt_compiler_boilerplate=`cat conftest.err`
26267$rm conftest*
26268
26269ac_outfile=conftest.$ac_objext
26270printf "$lt_simple_link_test_code" >conftest.$ac_ext
26271eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26272_lt_linker_boilerplate=`cat conftest.err`
26273$rm conftest*
26274
26275
John Criswell47fdd832003-07-14 16:52:07 +000026276# Allow CC to be a program name with arguments.
26277lt_save_CC="$CC"
26278CC=${RC-"windres"}
26279compiler=$CC
26280compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026281for cc_temp in $compiler""; do
26282 case $cc_temp in
26283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26285 \-*) ;;
26286 *) break;;
26287 esac
26288done
26289cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26290
John Criswell47fdd832003-07-14 16:52:07 +000026291lt_cv_prog_compiler_c_o_RC=yes
26292
26293# The else clause should only fire when bootstrapping the
26294# libtool distribution, otherwise you forgot to ship ltmain.sh
26295# with your package, and you will get complaints that there are
26296# no rules to generate ltmain.sh.
26297if test -f "$ltmain"; then
26298 # See if we are running on zsh, and set the options which allow our commands through
26299 # without removal of \ escapes.
26300 if test -n "${ZSH_VERSION+set}" ; then
26301 setopt NO_GLOB_SUBST
26302 fi
26303 # Now quote all the things that may contain metacharacters while being
26304 # careful not to overquote the AC_SUBSTed values. We take copies of the
26305 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026306 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 +000026307 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026308 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26309 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26310 deplibs_check_method reload_flag reload_cmds need_locks \
26311 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26312 lt_cv_sys_global_symbol_to_c_name_address \
26313 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26314 old_postinstall_cmds old_postuninstall_cmds \
26315 compiler_RC \
26316 CC_RC \
26317 LD_RC \
26318 lt_prog_compiler_wl_RC \
26319 lt_prog_compiler_pic_RC \
26320 lt_prog_compiler_static_RC \
26321 lt_prog_compiler_no_builtin_flag_RC \
26322 export_dynamic_flag_spec_RC \
26323 thread_safe_flag_spec_RC \
26324 whole_archive_flag_spec_RC \
26325 enable_shared_with_static_runtimes_RC \
26326 old_archive_cmds_RC \
26327 old_archive_from_new_cmds_RC \
26328 predep_objects_RC \
26329 postdep_objects_RC \
26330 predeps_RC \
26331 postdeps_RC \
26332 compiler_lib_search_path_RC \
26333 archive_cmds_RC \
26334 archive_expsym_cmds_RC \
26335 postinstall_cmds_RC \
26336 postuninstall_cmds_RC \
26337 old_archive_from_expsyms_cmds_RC \
26338 allow_undefined_flag_RC \
26339 no_undefined_flag_RC \
26340 export_symbols_cmds_RC \
26341 hardcode_libdir_flag_spec_RC \
26342 hardcode_libdir_flag_spec_ld_RC \
26343 hardcode_libdir_separator_RC \
26344 hardcode_automatic_RC \
26345 module_cmds_RC \
26346 module_expsym_cmds_RC \
26347 lt_cv_prog_compiler_c_o_RC \
26348 exclude_expsyms_RC \
26349 include_expsyms_RC; do
26350
26351 case $var in
26352 old_archive_cmds_RC | \
26353 old_archive_from_new_cmds_RC | \
26354 archive_cmds_RC | \
26355 archive_expsym_cmds_RC | \
26356 module_cmds_RC | \
26357 module_expsym_cmds_RC | \
26358 old_archive_from_expsyms_cmds_RC | \
26359 export_symbols_cmds_RC | \
26360 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26361 postinstall_cmds | postuninstall_cmds | \
26362 old_postinstall_cmds | old_postuninstall_cmds | \
26363 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26364 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026365 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 +000026366 ;;
26367 *)
26368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26369 ;;
26370 esac
26371 done
26372
26373 case $lt_echo in
26374 *'\$0 --fallback-echo"')
26375 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26376 ;;
26377 esac
26378
26379cfgfile="$ofile"
26380
26381 cat <<__EOF__ >> "$cfgfile"
26382# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26383
26384# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26385
26386# Shell to use when invoking shell scripts.
26387SHELL=$lt_SHELL
26388
26389# Whether or not to build shared libraries.
26390build_libtool_libs=$enable_shared
26391
26392# Whether or not to build static libraries.
26393build_old_libs=$enable_static
26394
26395# Whether or not to add -lc for building shared libraries.
26396build_libtool_need_lc=$archive_cmds_need_lc_RC
26397
26398# Whether or not to disallow shared libs when runtime libs are static
26399allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26400
26401# Whether or not to optimize for fast installation.
26402fast_install=$enable_fast_install
26403
26404# The host system.
26405host_alias=$host_alias
26406host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026407host_os=$host_os
26408
26409# The build system.
26410build_alias=$build_alias
26411build=$build
26412build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026413
26414# An echo program that does not interpret backslashes.
26415echo=$lt_echo
26416
26417# The archiver.
26418AR=$lt_AR
26419AR_FLAGS=$lt_AR_FLAGS
26420
26421# A C compiler.
26422LTCC=$lt_LTCC
26423
Reid Spencera773bd52006-08-04 18:18:08 +000026424# LTCC compiler flags.
26425LTCFLAGS=$lt_LTCFLAGS
26426
John Criswell47fdd832003-07-14 16:52:07 +000026427# A language-specific compiler.
26428CC=$lt_compiler_RC
26429
26430# Is the compiler the GNU C compiler?
26431with_gcc=$GCC_RC
26432
26433# An ERE matcher.
26434EGREP=$lt_EGREP
26435
26436# The linker used to build libraries.
26437LD=$lt_LD_RC
26438
26439# Whether we need hard or soft links.
26440LN_S=$lt_LN_S
26441
26442# A BSD-compatible nm program.
26443NM=$lt_NM
26444
26445# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026446STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026447
26448# Used to examine libraries when file_magic_cmd begins "file"
26449MAGIC_CMD=$MAGIC_CMD
26450
26451# Used on cygwin: DLL creation program.
26452DLLTOOL="$DLLTOOL"
26453
26454# Used on cygwin: object dumper.
26455OBJDUMP="$OBJDUMP"
26456
26457# Used on cygwin: assembler.
26458AS="$AS"
26459
26460# The name of the directory that contains temporary libtool files.
26461objdir=$objdir
26462
26463# How to create reloadable object files.
26464reload_flag=$lt_reload_flag
26465reload_cmds=$lt_reload_cmds
26466
26467# How to pass a linker flag through the compiler.
26468wl=$lt_lt_prog_compiler_wl_RC
26469
26470# Object file suffix (normally "o").
26471objext="$ac_objext"
26472
26473# Old archive suffix (normally "a").
26474libext="$libext"
26475
26476# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026477shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026478
26479# Executable file suffix (normally "").
26480exeext="$exeext"
26481
26482# Additional compiler flags for building library objects.
26483pic_flag=$lt_lt_prog_compiler_pic_RC
26484pic_mode=$pic_mode
26485
26486# What is the maximum length of a command?
26487max_cmd_len=$lt_cv_sys_max_cmd_len
26488
26489# Does compiler simultaneously support -c and -o options?
26490compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26491
Reid Spencera773bd52006-08-04 18:18:08 +000026492# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026493need_locks=$lt_need_locks
26494
26495# Do we need the lib prefix for modules?
26496need_lib_prefix=$need_lib_prefix
26497
26498# Do we need a version for libraries?
26499need_version=$need_version
26500
26501# Whether dlopen is supported.
26502dlopen_support=$enable_dlopen
26503
26504# Whether dlopen of programs is supported.
26505dlopen_self=$enable_dlopen_self
26506
26507# Whether dlopen of statically linked programs is supported.
26508dlopen_self_static=$enable_dlopen_self_static
26509
26510# Compiler flag to prevent dynamic linking.
26511link_static_flag=$lt_lt_prog_compiler_static_RC
26512
26513# Compiler flag to turn off builtin functions.
26514no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26515
26516# Compiler flag to allow reflexive dlopens.
26517export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26518
26519# Compiler flag to generate shared objects directly from archives.
26520whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26521
26522# Compiler flag to generate thread-safe objects.
26523thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26524
26525# Library versioning type.
26526version_type=$version_type
26527
26528# Format of library name prefix.
26529libname_spec=$lt_libname_spec
26530
26531# List of archive names. First name is the real one, the rest are links.
26532# The last name is the one that the linker finds with -lNAME.
26533library_names_spec=$lt_library_names_spec
26534
26535# The coded name of the library, if different from the real name.
26536soname_spec=$lt_soname_spec
26537
26538# Commands used to build and install an old-style archive.
26539RANLIB=$lt_RANLIB
26540old_archive_cmds=$lt_old_archive_cmds_RC
26541old_postinstall_cmds=$lt_old_postinstall_cmds
26542old_postuninstall_cmds=$lt_old_postuninstall_cmds
26543
26544# Create an old-style archive from a shared archive.
26545old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26546
26547# Create a temporary old-style archive to link instead of a shared archive.
26548old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26549
26550# Commands used to build and install a shared archive.
26551archive_cmds=$lt_archive_cmds_RC
26552archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26553postinstall_cmds=$lt_postinstall_cmds
26554postuninstall_cmds=$lt_postuninstall_cmds
26555
26556# Commands used to build a loadable module (assumed same as above if empty)
26557module_cmds=$lt_module_cmds_RC
26558module_expsym_cmds=$lt_module_expsym_cmds_RC
26559
26560# Commands to strip libraries.
26561old_striplib=$lt_old_striplib
26562striplib=$lt_striplib
26563
26564# Dependencies to place before the objects being linked to create a
26565# shared library.
26566predep_objects=$lt_predep_objects_RC
26567
26568# Dependencies to place after the objects being linked to create a
26569# shared library.
26570postdep_objects=$lt_postdep_objects_RC
26571
26572# Dependencies to place before the objects being linked to create a
26573# shared library.
26574predeps=$lt_predeps_RC
26575
26576# Dependencies to place after the objects being linked to create a
26577# shared library.
26578postdeps=$lt_postdeps_RC
26579
26580# The library search path used internally by the compiler when linking
26581# a shared library.
26582compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26583
26584# Method to check whether dependent libraries are shared objects.
26585deplibs_check_method=$lt_deplibs_check_method
26586
26587# Command to use when deplibs_check_method == file_magic.
26588file_magic_cmd=$lt_file_magic_cmd
26589
26590# Flag that allows shared libraries with undefined symbols to be built.
26591allow_undefined_flag=$lt_allow_undefined_flag_RC
26592
26593# Flag that forces no undefined symbols.
26594no_undefined_flag=$lt_no_undefined_flag_RC
26595
26596# Commands used to finish a libtool library installation in a directory.
26597finish_cmds=$lt_finish_cmds
26598
26599# Same as above, but a single script fragment to be evaled but not shown.
26600finish_eval=$lt_finish_eval
26601
26602# Take the output of nm and produce a listing of raw symbols and C names.
26603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26604
26605# Transform the output of nm in a proper C declaration
26606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26607
26608# Transform the output of nm in a C name address pair
26609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26610
26611# This is the shared library runtime path variable.
26612runpath_var=$runpath_var
26613
26614# This is the shared library path variable.
26615shlibpath_var=$shlibpath_var
26616
26617# Is shlibpath searched before the hard-coded library search path?
26618shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26619
26620# How to hardcode a shared library path into an executable.
26621hardcode_action=$hardcode_action_RC
26622
26623# Whether we should hardcode library paths into libraries.
26624hardcode_into_libs=$hardcode_into_libs
26625
26626# Flag to hardcode \$libdir into a binary during linking.
26627# This must work even if \$libdir does not exist.
26628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26629
26630# If ld is used when linking, flag to hardcode \$libdir into
26631# a binary during linking. This must work even if \$libdir does
26632# not exist.
26633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26634
26635# Whether we need a single -rpath flag with a separated argument.
26636hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26637
26638# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26639# resulting binary.
26640hardcode_direct=$hardcode_direct_RC
26641
26642# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26643# resulting binary.
26644hardcode_minus_L=$hardcode_minus_L_RC
26645
26646# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26647# the resulting binary.
26648hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26649
26650# Set to yes if building a shared library automatically hardcodes DIR into the library
26651# and all subsequent libraries and executables linked against it.
26652hardcode_automatic=$hardcode_automatic_RC
26653
26654# Variables whose values should be saved in libtool wrapper scripts and
26655# restored at relink time.
26656variables_saved_for_relink="$variables_saved_for_relink"
26657
26658# Whether libtool must link a program against all its dependency libraries.
26659link_all_deplibs=$link_all_deplibs_RC
26660
26661# Compile-time system search path for libraries
26662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26663
26664# Run-time system search path for libraries
26665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26666
26667# Fix the shell variable \$srcfile for the compiler.
26668fix_srcfile_path="$fix_srcfile_path_RC"
26669
26670# Set to yes if exported symbols are required.
26671always_export_symbols=$always_export_symbols_RC
26672
26673# The commands to list exported symbols.
26674export_symbols_cmds=$lt_export_symbols_cmds_RC
26675
26676# The commands to extract the exported symbol list from a shared archive.
26677extract_expsyms_cmds=$lt_extract_expsyms_cmds
26678
26679# Symbols that should not be listed in the preloaded symbols.
26680exclude_expsyms=$lt_exclude_expsyms_RC
26681
26682# Symbols that must always be exported.
26683include_expsyms=$lt_include_expsyms_RC
26684
26685# ### END LIBTOOL TAG CONFIG: $tagname
26686
26687__EOF__
26688
26689
26690else
26691 # If there is no Makefile yet, we rely on a make rule to execute
26692 # `config.status --recheck' to rerun these tests and create the
26693 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026694 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26695 if test -f "$ltmain_in"; then
26696 test -f Makefile && make "$ltmain"
26697 fi
John Criswell47fdd832003-07-14 16:52:07 +000026698fi
26699
26700
26701ac_ext=c
26702ac_cpp='$CPP $CPPFLAGS'
26703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26705ac_compiler_gnu=$ac_cv_c_compiler_gnu
26706
26707CC="$lt_save_CC"
26708
26709 ;;
26710
26711 *)
26712 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26713echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26714 { (exit 1); exit 1; }; }
26715 ;;
26716 esac
26717
26718 # Append the new tag name to the list of available tags.
26719 if test -n "$tagname" ; then
26720 available_tags="$available_tags $tagname"
26721 fi
26722 fi
26723 done
26724 IFS="$lt_save_ifs"
26725
26726 # Now substitute the updated list of available tags.
26727 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26728 mv "${ofile}T" "$ofile"
26729 chmod +x "$ofile"
26730 else
26731 rm -f "${ofile}T"
26732 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26733echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26734 { (exit 1); exit 1; }; }
26735 fi
26736fi
John Criswell7a73b802003-06-30 21:59:07 +000026737
26738
26739
26740# This can be used to rebuild libtool when needed
26741LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26742
26743# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026744LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026745
26746# Prevent multiple expansion
26747
26748
26749
John Criswell47fdd832003-07-14 16:52:07 +000026750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026767
Reid Spencer582a23c2004-12-29 07:07:57 +000026768if test "$lt_cv_dlopen_self" = "yes" ; then
26769
26770cat >>confdefs.h <<\_ACEOF
26771#define CAN_DLOPEN_SELF 1
26772_ACEOF
26773
26774fi
26775
Reid Spencer7931a782004-12-27 06:15:02 +000026776if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026777 LLVMGCC="llvm-gcc${EXEEXT}"
26778 LLVMGXX="llvm-g++${EXEEXT}"
26779 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26780set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026783if test "${ac_cv_path_LLVMGCC+set}" = set; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26785else
26786 case $LLVMGCC in
26787 [\\/]* | ?:[\\/]*)
26788 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26789 ;;
26790 *)
26791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26792for as_dir in $PATH
26793do
26794 IFS=$as_save_IFS
26795 test -z "$as_dir" && as_dir=.
26796 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026797 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 +000026798 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26800 break 2
26801 fi
26802done
26803done
Reid Spencera773bd52006-08-04 18:18:08 +000026804IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026805
Reid Spencer59473af2004-12-25 07:31:29 +000026806 ;;
26807esac
26808fi
26809LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026810if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026811 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26812echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026813else
Reid Spencera773bd52006-08-04 18:18:08 +000026814 { echo "$as_me:$LINENO: result: no" >&5
26815echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026816fi
26817
Reid Spencera773bd52006-08-04 18:18:08 +000026818
Reid Spencerc84492c2005-06-02 22:34:49 +000026819 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26820set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026823if test "${ac_cv_path_LLVMGXX+set}" = set; then
26824 echo $ECHO_N "(cached) $ECHO_C" >&6
26825else
26826 case $LLVMGXX in
26827 [\\/]* | ?:[\\/]*)
26828 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26829 ;;
26830 *)
26831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26832for as_dir in $PATH
26833do
26834 IFS=$as_save_IFS
26835 test -z "$as_dir" && as_dir=.
26836 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026837 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 +000026838 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26840 break 2
26841 fi
26842done
26843done
Reid Spencera773bd52006-08-04 18:18:08 +000026844IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026845
Reid Spencer59473af2004-12-25 07:31:29 +000026846 ;;
26847esac
26848fi
26849LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026850if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026851 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26852echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026853else
Reid Spencera773bd52006-08-04 18:18:08 +000026854 { echo "$as_me:$LINENO: result: no" >&5
26855echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026856fi
26857
Reid Spencera773bd52006-08-04 18:18:08 +000026858
Reid Spencer59473af2004-12-25 07:31:29 +000026859else
Reid Spencerc84492c2005-06-02 22:34:49 +000026860 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26861 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026862 LLVMGCC=$LLVMGCC
26863
26864 LLVMGXX=$LLVMGXX
26865
26866fi
26867
Reid Spencera773bd52006-08-04 18:18:08 +000026868{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26869echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026870
Reid Spencer86901802004-12-08 23:07:27 +000026871ICC=no
26872IXX=no
26873case $CC in
26874 icc*|icpc*)
26875 ICC=yes
26876 IXX=yes
26877 ;;
26878 *)
26879 ;;
26880esac
26881
Duraid Madina937c60a2006-02-15 07:57:42 +000026882if test "$GCC" != "yes" && test "$ICC" != "yes"
26883then
26884 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26885echo "$as_me: error: gcc|icc required but not found" >&2;}
26886 { (exit 1); exit 1; }; }
26887fi
26888
26889if test "$GXX" != "yes" && test "$IXX" != "yes"
26890then
26891 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26892echo "$as_me: error: g++|icc required but not found" >&2;}
26893 { (exit 1); exit 1; }; }
26894fi
26895
Reid Spencer86901802004-12-08 23:07:27 +000026896if test "$GCC" = "yes"
26897then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026898 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026899 if test "$gccmajor" -lt "3"
26900 then
26901 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026902echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26903 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026904 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026905fi
26906
26907if test -z "$llvm_cv_gnu_make_command"
26908then
26909 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26910echo "$as_me: error: GNU Make required but not found" >&2;}
26911 { (exit 1); exit 1; }; }
26912fi
26913
Reid Spencera773bd52006-08-04 18:18:08 +000026914{ echo "$as_me:$LINENO: result: ok" >&5
26915echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026916
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026917
John Criswell7a73b802003-06-30 21:59:07 +000026918
Reid Spencera773bd52006-08-04 18:18:08 +000026919{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26920echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026921if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26923else
26924 ac_check_lib_save_LIBS=$LIBS
26925LIBS="-lelf $LIBS"
26926cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026927/* confdefs.h. */
26928_ACEOF
26929cat confdefs.h >>conftest.$ac_ext
26930cat >>conftest.$ac_ext <<_ACEOF
26931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026932
Reid Spencera773bd52006-08-04 18:18:08 +000026933/* Override any GCC internal prototype to avoid an error.
26934 Use char because int might match the return type of a GCC
26935 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026936#ifdef __cplusplus
26937extern "C"
26938#endif
John Criswell7a73b802003-06-30 21:59:07 +000026939char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026940int
26941main ()
26942{
Reid Spencera773bd52006-08-04 18:18:08 +000026943return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026944 ;
26945 return 0;
26946}
26947_ACEOF
26948rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026949if { (ac_try="$ac_link"
26950case "(($ac_try" in
26951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952 *) ac_try_echo=$ac_try;;
26953esac
26954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026956 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026957 grep -v '^ *+' conftest.er1 >conftest.err
26958 rm -f conftest.er1
26959 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26963 { (case "(($ac_try" in
26964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26965 *) ac_try_echo=$ac_try;;
26966esac
26967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26968 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026969 ac_status=$?
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); }; } &&
26972 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026973 { (case "(($ac_try" in
26974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975 *) ac_try_echo=$ac_try;;
26976esac
26977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026979 ac_status=$?
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); }; }; then
26982 ac_cv_lib_elf_elf_begin=yes
26983else
26984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026985sed 's/^/| /' conftest.$ac_ext >&5
26986
Reid Spencera773bd52006-08-04 18:18:08 +000026987 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026988fi
Reid Spencera773bd52006-08-04 18:18:08 +000026989
26990rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026991 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026992LIBS=$ac_check_lib_save_LIBS
26993fi
Reid Spencera773bd52006-08-04 18:18:08 +000026994{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26995echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026996if test $ac_cv_lib_elf_elf_begin = yes; then
26997 cat >>confdefs.h <<_ACEOF
26998#define HAVE_LIBELF 1
26999_ACEOF
27000
27001 LIBS="-lelf $LIBS"
27002
27003fi
27004
27005
Reid Spencera773bd52006-08-04 18:18:08 +000027006{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27007echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027008if test "${ac_cv_lib_m_sin+set}" = set; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27010else
27011 ac_check_lib_save_LIBS=$LIBS
27012LIBS="-lm $LIBS"
27013cat >conftest.$ac_ext <<_ACEOF
27014/* confdefs.h. */
27015_ACEOF
27016cat confdefs.h >>conftest.$ac_ext
27017cat >>conftest.$ac_ext <<_ACEOF
27018/* end confdefs.h. */
27019
Reid Spencera773bd52006-08-04 18:18:08 +000027020/* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027023#ifdef __cplusplus
27024extern "C"
27025#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027026char sin ();
27027int
27028main ()
27029{
Reid Spencera773bd52006-08-04 18:18:08 +000027030return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027031 ;
27032 return 0;
27033}
27034_ACEOF
27035rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027036if { (ac_try="$ac_link"
27037case "(($ac_try" in
27038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039 *) ac_try_echo=$ac_try;;
27040esac
27041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27042 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027043 ac_status=$?
27044 grep -v '^ *+' conftest.er1 >conftest.err
27045 rm -f conftest.er1
27046 cat conftest.err >&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27050 { (case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27053esac
27054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000027056 ac_status=$?
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; } &&
27059 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027060 { (case "(($ac_try" in
27061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062 *) ac_try_echo=$ac_try;;
27063esac
27064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000027066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; }; then
27069 ac_cv_lib_m_sin=yes
27070else
27071 echo "$as_me: failed program was:" >&5
27072sed 's/^/| /' conftest.$ac_ext >&5
27073
Reid Spencera773bd52006-08-04 18:18:08 +000027074 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027075fi
Reid Spencera773bd52006-08-04 18:18:08 +000027076
27077rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027078 conftest$ac_exeext conftest.$ac_ext
27079LIBS=$ac_check_lib_save_LIBS
27080fi
Reid Spencera773bd52006-08-04 18:18:08 +000027081{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27082echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027083if test $ac_cv_lib_m_sin = yes; then
27084 cat >>confdefs.h <<_ACEOF
27085#define HAVE_LIBM 1
27086_ACEOF
27087
27088 LIBS="-lm $LIBS"
27089
27090fi
27091
Jeff Cohen28783c32007-01-12 18:22:38 +000027092if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027093
Reid Spencera773bd52006-08-04 18:18:08 +000027094{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27095echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027096if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027097 echo $ECHO_N "(cached) $ECHO_C" >&6
27098else
27099 ac_check_lib_save_LIBS=$LIBS
27100LIBS="-limagehlp $LIBS"
27101cat >conftest.$ac_ext <<_ACEOF
27102/* confdefs.h. */
27103_ACEOF
27104cat confdefs.h >>conftest.$ac_ext
27105cat >>conftest.$ac_ext <<_ACEOF
27106/* end confdefs.h. */
27107
Reid Spencer48fdf912006-06-01 19:03:21 +000027108
Reid Spencer484fc8e2006-06-01 16:55:59 +000027109int
27110main ()
27111{
Reid Spencera773bd52006-08-04 18:18:08 +000027112return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027113 ;
27114 return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027118if { (ac_try="$ac_link"
27119case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122esac
27123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027125 ac_status=$?
27126 grep -v '^ *+' conftest.er1 >conftest.err
27127 rm -f conftest.er1
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27135esac
27136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027142 { (case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27145esac
27146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027151 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027152else
27153 echo "$as_me: failed program was:" >&5
27154sed 's/^/| /' conftest.$ac_ext >&5
27155
Reid Spencera773bd52006-08-04 18:18:08 +000027156 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027157fi
Reid Spencera773bd52006-08-04 18:18:08 +000027158
27159rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027160 conftest$ac_exeext conftest.$ac_ext
27161LIBS=$ac_check_lib_save_LIBS
27162fi
Reid Spencera773bd52006-08-04 18:18:08 +000027163{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27164echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027165if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027166 cat >>confdefs.h <<_ACEOF
27167#define HAVE_LIBIMAGEHLP 1
27168_ACEOF
27169
27170 LIBS="-limagehlp $LIBS"
27171
27172fi
27173
27174
Reid Spencera773bd52006-08-04 18:18:08 +000027175{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27176echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027177if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027178 echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180 ac_check_lib_save_LIBS=$LIBS
27181LIBS="-lpsapi $LIBS"
27182cat >conftest.$ac_ext <<_ACEOF
27183/* confdefs.h. */
27184_ACEOF
27185cat confdefs.h >>conftest.$ac_ext
27186cat >>conftest.$ac_ext <<_ACEOF
27187/* end confdefs.h. */
27188
Reid Spencer48fdf912006-06-01 19:03:21 +000027189
Reid Spencer484fc8e2006-06-01 16:55:59 +000027190int
27191main ()
27192{
Reid Spencera773bd52006-08-04 18:18:08 +000027193return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027194 ;
27195 return 0;
27196}
27197_ACEOF
27198rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027199if { (ac_try="$ac_link"
27200case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27203esac
27204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027206 ac_status=$?
27207 grep -v '^ *+' conftest.er1 >conftest.err
27208 rm -f conftest.er1
27209 cat conftest.err >&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27213 { (case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27216esac
27217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027219 ac_status=$?
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; } &&
27222 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027223 { (case "(($ac_try" in
27224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225 *) ac_try_echo=$ac_try;;
27226esac
27227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027229 ac_status=$?
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027232 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027233else
27234 echo "$as_me: failed program was:" >&5
27235sed 's/^/| /' conftest.$ac_ext >&5
27236
Reid Spencera773bd52006-08-04 18:18:08 +000027237 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027238fi
Reid Spencera773bd52006-08-04 18:18:08 +000027239
27240rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027241 conftest$ac_exeext conftest.$ac_ext
27242LIBS=$ac_check_lib_save_LIBS
27243fi
Reid Spencera773bd52006-08-04 18:18:08 +000027244{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27245echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027246if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027247 cat >>confdefs.h <<_ACEOF
27248#define HAVE_LIBPSAPI 1
27249_ACEOF
27250
27251 LIBS="-lpsapi $LIBS"
27252
27253fi
27254
27255fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027256
Reid Spencera773bd52006-08-04 18:18:08 +000027257{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27258echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027259if test "${ac_cv_search_lt_dlopen+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27261else
27262 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027263cat >conftest.$ac_ext <<_ACEOF
27264/* confdefs.h. */
27265_ACEOF
27266cat confdefs.h >>conftest.$ac_ext
27267cat >>conftest.$ac_ext <<_ACEOF
27268/* end confdefs.h. */
27269
Reid Spencera773bd52006-08-04 18:18:08 +000027270/* Override any GCC internal prototype to avoid an error.
27271 Use char because int might match the return type of a GCC
27272 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027273#ifdef __cplusplus
27274extern "C"
27275#endif
Reid Spencer17795972004-11-18 09:47:37 +000027276char lt_dlopen ();
27277int
27278main ()
27279{
Reid Spencera773bd52006-08-04 18:18:08 +000027280return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027281 ;
27282 return 0;
27283}
27284_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027285for ac_lib in '' ltdl; do
27286 if test -z "$ac_lib"; then
27287 ac_res="none required"
27288 else
27289 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027291 fi
27292 rm -f conftest.$ac_objext conftest$ac_exeext
27293if { (ac_try="$ac_link"
27294case "(($ac_try" in
27295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296 *) ac_try_echo=$ac_try;;
27297esac
27298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027300 ac_status=$?
27301 grep -v '^ *+' conftest.er1 >conftest.err
27302 rm -f conftest.er1
27303 cat conftest.err >&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27307 { (case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27310esac
27311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027313 ac_status=$?
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; } &&
27316 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027317 { (case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27320esac
27321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027323 ac_status=$?
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027326 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027327else
27328 echo "$as_me: failed program was:" >&5
27329sed 's/^/| /' conftest.$ac_ext >&5
27330
Reid Spencera773bd52006-08-04 18:18:08 +000027331
Reid Spencer17795972004-11-18 09:47:37 +000027332fi
Reid Spencera773bd52006-08-04 18:18:08 +000027333
27334rm -f core conftest.err conftest.$ac_objext \
27335 conftest$ac_exeext
27336 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27337 break
Reid Spencer17795972004-11-18 09:47:37 +000027338fi
Reid Spencera773bd52006-08-04 18:18:08 +000027339done
27340if test "${ac_cv_search_lt_dlopen+set}" = set; then
27341 :
27342else
27343 ac_cv_search_lt_dlopen=no
27344fi
27345rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027346LIBS=$ac_func_search_save_LIBS
27347fi
Reid Spencera773bd52006-08-04 18:18:08 +000027348{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27349echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27350ac_res=$ac_cv_search_lt_dlopen
27351if test "$ac_res" != no; then
27352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027353
27354cat >>confdefs.h <<\_ACEOF
27355#define HAVE_LT_DLOPEN 1
27356_ACEOF
27357
27358else
27359 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27360 not be available" >&5
27361echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27362 not be available" >&2;}
27363fi
27364
27365
Reid Spencera773bd52006-08-04 18:18:08 +000027366{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27367echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027368if test "${ac_cv_search_dlopen+set}" = set; then
27369 echo $ECHO_N "(cached) $ECHO_C" >&6
27370else
27371 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027372cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027373/* confdefs.h. */
27374_ACEOF
27375cat confdefs.h >>conftest.$ac_ext
27376cat >>conftest.$ac_ext <<_ACEOF
27377/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027378
Reid Spencera773bd52006-08-04 18:18:08 +000027379/* Override any GCC internal prototype to avoid an error.
27380 Use char because int might match the return type of a GCC
27381 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027382#ifdef __cplusplus
27383extern "C"
27384#endif
John Criswell7a73b802003-06-30 21:59:07 +000027385char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027386int
27387main ()
27388{
Reid Spencera773bd52006-08-04 18:18:08 +000027389return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027390 ;
27391 return 0;
27392}
27393_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027394for ac_lib in '' dl; do
27395 if test -z "$ac_lib"; then
27396 ac_res="none required"
27397 else
27398 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027400 fi
27401 rm -f conftest.$ac_objext conftest$ac_exeext
27402if { (ac_try="$ac_link"
27403case "(($ac_try" in
27404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27405 *) ac_try_echo=$ac_try;;
27406esac
27407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27408 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027410 grep -v '^ *+' conftest.er1 >conftest.err
27411 rm -f conftest.er1
27412 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27416 { (case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27419esac
27420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027422 ac_status=$?
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; } &&
27425 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027426 { (case "(($ac_try" in
27427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428 *) ac_try_echo=$ac_try;;
27429esac
27430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027432 ac_status=$?
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027435 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027436else
27437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027438sed 's/^/| /' conftest.$ac_ext >&5
27439
Reid Spencera773bd52006-08-04 18:18:08 +000027440
John Criswell7a73b802003-06-30 21:59:07 +000027441fi
Reid Spencera773bd52006-08-04 18:18:08 +000027442
27443rm -f core conftest.err conftest.$ac_objext \
27444 conftest$ac_exeext
27445 if test "${ac_cv_search_dlopen+set}" = set; then
27446 break
John Criswell7a73b802003-06-30 21:59:07 +000027447fi
Reid Spencera773bd52006-08-04 18:18:08 +000027448done
27449if test "${ac_cv_search_dlopen+set}" = set; then
27450 :
27451else
27452 ac_cv_search_dlopen=no
27453fi
27454rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027455LIBS=$ac_func_search_save_LIBS
27456fi
Reid Spencera773bd52006-08-04 18:18:08 +000027457{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27458echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27459ac_res=$ac_cv_search_dlopen
27460if test "$ac_res" != no; then
27461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027462
27463cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027464#define HAVE_DLOPEN 1
27465_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027466
27467else
Brian Gaekec45be042003-10-07 06:01:34 +000027468 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27469echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027470fi
27471
27472
Reid Spencera773bd52006-08-04 18:18:08 +000027473{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27474echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027475if test "${ac_cv_search_mallinfo+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
27477else
27478 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027479cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027480/* confdefs.h. */
27481_ACEOF
27482cat confdefs.h >>conftest.$ac_ext
27483cat >>conftest.$ac_ext <<_ACEOF
27484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027485
Reid Spencera773bd52006-08-04 18:18:08 +000027486/* Override any GCC internal prototype to avoid an error.
27487 Use char because int might match the return type of a GCC
27488 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027489#ifdef __cplusplus
27490extern "C"
27491#endif
John Criswell7a73b802003-06-30 21:59:07 +000027492char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027493int
27494main ()
27495{
Reid Spencera773bd52006-08-04 18:18:08 +000027496return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027497 ;
27498 return 0;
27499}
27500_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027501for ac_lib in '' malloc; do
27502 if test -z "$ac_lib"; then
27503 ac_res="none required"
27504 else
27505 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027507 fi
27508 rm -f conftest.$ac_objext conftest$ac_exeext
27509if { (ac_try="$ac_link"
27510case "(($ac_try" in
27511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27512 *) ac_try_echo=$ac_try;;
27513esac
27514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27515 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027516 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027517 grep -v '^ *+' conftest.er1 >conftest.err
27518 rm -f conftest.er1
27519 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27523 { (case "(($ac_try" in
27524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27525 *) ac_try_echo=$ac_try;;
27526esac
27527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27528 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027529 ac_status=$?
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; } &&
27532 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027533 { (case "(($ac_try" in
27534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535 *) ac_try_echo=$ac_try;;
27536esac
27537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027539 ac_status=$?
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027542 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027543else
27544 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027545sed 's/^/| /' conftest.$ac_ext >&5
27546
Reid Spencera773bd52006-08-04 18:18:08 +000027547
John Criswell7a73b802003-06-30 21:59:07 +000027548fi
Reid Spencera773bd52006-08-04 18:18:08 +000027549
27550rm -f core conftest.err conftest.$ac_objext \
27551 conftest$ac_exeext
27552 if test "${ac_cv_search_mallinfo+set}" = set; then
27553 break
John Criswell7a73b802003-06-30 21:59:07 +000027554fi
Reid Spencera773bd52006-08-04 18:18:08 +000027555done
27556if test "${ac_cv_search_mallinfo+set}" = set; then
27557 :
27558else
27559 ac_cv_search_mallinfo=no
27560fi
27561rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027562LIBS=$ac_func_search_save_LIBS
27563fi
Reid Spencera773bd52006-08-04 18:18:08 +000027564{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27565echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27566ac_res=$ac_cv_search_mallinfo
27567if test "$ac_res" != no; then
27568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027569
27570cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027571#define HAVE_MALLINFO 1
27572_ACEOF
27573
27574fi
27575
27576
Reid Spencer0a262ba2005-08-24 10:07:20 +000027577if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027578
Reid Spencera773bd52006-08-04 18:18:08 +000027579{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27580echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027581if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27582 echo $ECHO_N "(cached) $ECHO_C" >&6
27583else
27584 ac_check_lib_save_LIBS=$LIBS
27585LIBS="-lpthread $LIBS"
27586cat >conftest.$ac_ext <<_ACEOF
27587/* confdefs.h. */
27588_ACEOF
27589cat confdefs.h >>conftest.$ac_ext
27590cat >>conftest.$ac_ext <<_ACEOF
27591/* end confdefs.h. */
27592
Reid Spencera773bd52006-08-04 18:18:08 +000027593/* Override any GCC internal prototype to avoid an error.
27594 Use char because int might match the return type of a GCC
27595 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027596#ifdef __cplusplus
27597extern "C"
27598#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027599char pthread_mutex_init ();
27600int
27601main ()
27602{
Reid Spencera773bd52006-08-04 18:18:08 +000027603return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027604 ;
27605 return 0;
27606}
27607_ACEOF
27608rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027609if { (ac_try="$ac_link"
27610case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27613esac
27614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027616 ac_status=$?
27617 grep -v '^ *+' conftest.er1 >conftest.err
27618 rm -f conftest.er1
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27623 { (case "(($ac_try" in
27624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625 *) ac_try_echo=$ac_try;;
27626esac
27627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027629 ac_status=$?
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } &&
27632 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027633 { (case "(($ac_try" in
27634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635 *) ac_try_echo=$ac_try;;
27636esac
27637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027639 ac_status=$?
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
27642 ac_cv_lib_pthread_pthread_mutex_init=yes
27643else
27644 echo "$as_me: failed program was:" >&5
27645sed 's/^/| /' conftest.$ac_ext >&5
27646
Reid Spencera773bd52006-08-04 18:18:08 +000027647 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027648fi
Reid Spencera773bd52006-08-04 18:18:08 +000027649
27650rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027651 conftest$ac_exeext conftest.$ac_ext
27652LIBS=$ac_check_lib_save_LIBS
27653fi
Reid Spencera773bd52006-08-04 18:18:08 +000027654{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27655echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027656if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27657 cat >>confdefs.h <<_ACEOF
27658#define HAVE_LIBPTHREAD 1
27659_ACEOF
27660
27661 LIBS="-lpthread $LIBS"
27662
27663fi
27664
Reid Spencera773bd52006-08-04 18:18:08 +000027665 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27666echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027667if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27669else
27670 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027671cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027672/* confdefs.h. */
27673_ACEOF
27674cat confdefs.h >>conftest.$ac_ext
27675cat >>conftest.$ac_ext <<_ACEOF
27676/* end confdefs.h. */
27677
Reid Spencera773bd52006-08-04 18:18:08 +000027678/* Override any GCC internal prototype to avoid an error.
27679 Use char because int might match the return type of a GCC
27680 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027681#ifdef __cplusplus
27682extern "C"
27683#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027684char pthread_mutex_lock ();
27685int
27686main ()
27687{
Reid Spencera773bd52006-08-04 18:18:08 +000027688return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027689 ;
27690 return 0;
27691}
27692_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027693for ac_lib in '' pthread; do
27694 if test -z "$ac_lib"; then
27695 ac_res="none required"
27696 else
27697 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027699 fi
27700 rm -f conftest.$ac_objext conftest$ac_exeext
27701if { (ac_try="$ac_link"
27702case "(($ac_try" in
27703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704 *) ac_try_echo=$ac_try;;
27705esac
27706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027709 grep -v '^ *+' conftest.er1 >conftest.err
27710 rm -f conftest.er1
27711 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27715 { (case "(($ac_try" in
27716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717 *) ac_try_echo=$ac_try;;
27718esac
27719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; } &&
27724 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027725 { (case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27728esac
27729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27730 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027731 ac_status=$?
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027734 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027735else
27736 echo "$as_me: failed program was:" >&5
27737sed 's/^/| /' conftest.$ac_ext >&5
27738
Reid Spencera773bd52006-08-04 18:18:08 +000027739
Brian Gaeke5f268f72003-12-05 19:29:01 +000027740fi
Reid Spencera773bd52006-08-04 18:18:08 +000027741
27742rm -f core conftest.err conftest.$ac_objext \
27743 conftest$ac_exeext
27744 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27745 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027746fi
Reid Spencera773bd52006-08-04 18:18:08 +000027747done
27748if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27749 :
27750else
27751 ac_cv_search_pthread_mutex_lock=no
27752fi
27753rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027754LIBS=$ac_func_search_save_LIBS
27755fi
Reid Spencera773bd52006-08-04 18:18:08 +000027756{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27757echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27758ac_res=$ac_cv_search_pthread_mutex_lock
27759if test "$ac_res" != no; then
27760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027761
John Criswell40468462004-09-24 21:19:06 +000027762cat >>confdefs.h <<\_ACEOF
27763#define HAVE_PTHREAD_MUTEX_LOCK 1
27764_ACEOF
27765
27766fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027767
Reid Spencer0a262ba2005-08-24 10:07:20 +000027768fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027769
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027770
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027771# Check whether --with-udis86 was given.
27772if test "${with_udis86+set}" = set; then
27773 withval=$with_udis86;
27774 USE_UDIS86=1
27775
27776 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027777 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027778 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27779 esac
27780
27781{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27782echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27783if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27784 echo $ECHO_N "(cached) $ECHO_C" >&6
27785else
27786 ac_check_lib_save_LIBS=$LIBS
27787LIBS="-ludis86 $LIBS"
27788cat >conftest.$ac_ext <<_ACEOF
27789/* confdefs.h. */
27790_ACEOF
27791cat confdefs.h >>conftest.$ac_ext
27792cat >>conftest.$ac_ext <<_ACEOF
27793/* end confdefs.h. */
27794
27795/* Override any GCC internal prototype to avoid an error.
27796 Use char because int might match the return type of a GCC
27797 builtin and then its argument prototype would still apply. */
27798#ifdef __cplusplus
27799extern "C"
27800#endif
27801char ud_init ();
27802int
27803main ()
27804{
27805return ud_init ();
27806 ;
27807 return 0;
27808}
27809_ACEOF
27810rm -f conftest.$ac_objext conftest$ac_exeext
27811if { (ac_try="$ac_link"
27812case "(($ac_try" in
27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27815esac
27816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_link") 2>conftest.er1
27818 ac_status=$?
27819 grep -v '^ *+' conftest.er1 >conftest.err
27820 rm -f conftest.er1
27821 cat conftest.err >&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); } &&
27824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27825 { (case "(($ac_try" in
27826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827 *) ac_try_echo=$ac_try;;
27828esac
27829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830 (eval "$ac_try") 2>&5
27831 ac_status=$?
27832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); }; } &&
27834 { ac_try='test -s conftest$ac_exeext'
27835 { (case "(($ac_try" in
27836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837 *) ac_try_echo=$ac_try;;
27838esac
27839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840 (eval "$ac_try") 2>&5
27841 ac_status=$?
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; }; then
27844 ac_cv_lib_udis86_ud_init=yes
27845else
27846 echo "$as_me: failed program was:" >&5
27847sed 's/^/| /' conftest.$ac_ext >&5
27848
27849 ac_cv_lib_udis86_ud_init=no
27850fi
27851
27852rm -f core conftest.err conftest.$ac_objext \
27853 conftest$ac_exeext conftest.$ac_ext
27854LIBS=$ac_check_lib_save_LIBS
27855fi
27856{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27857echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27858if test $ac_cv_lib_udis86_ud_init = yes; then
27859 cat >>confdefs.h <<_ACEOF
27860#define HAVE_LIBUDIS86 1
27861_ACEOF
27862
27863 LIBS="-ludis86 $LIBS"
27864
27865else
27866
27867 echo "Error! You need to have libudis86 around."
27868 exit -1
27869
27870fi
27871
27872
27873else
27874 USE_UDIS86=0
27875
27876fi
27877
27878
27879cat >>confdefs.h <<_ACEOF
27880#define USE_UDIS86 $USE_UDIS86
27881_ACEOF
27882
27883
27884
Reid Spencer59473af2004-12-25 07:31:29 +000027885
27886
27887
27888
27889
27890ac_header_dirent=no
27891for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27892 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027893{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27894echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027896 echo $ECHO_N "(cached) $ECHO_C" >&6
27897else
27898 cat >conftest.$ac_ext <<_ACEOF
27899/* confdefs.h. */
27900_ACEOF
27901cat confdefs.h >>conftest.$ac_ext
27902cat >>conftest.$ac_ext <<_ACEOF
27903/* end confdefs.h. */
27904#include <sys/types.h>
27905#include <$ac_hdr>
27906
27907int
27908main ()
27909{
27910if ((DIR *) 0)
27911return 0;
27912 ;
27913 return 0;
27914}
27915_ACEOF
27916rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027917if { (ac_try="$ac_compile"
27918case "(($ac_try" in
27919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920 *) ac_try_echo=$ac_try;;
27921esac
27922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27923 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027924 ac_status=$?
27925 grep -v '^ *+' conftest.er1 >conftest.err
27926 rm -f conftest.er1
27927 cat conftest.err >&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27931 { (case "(($ac_try" in
27932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27933 *) ac_try_echo=$ac_try;;
27934esac
27935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27936 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027937 ac_status=$?
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); }; } &&
27940 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027941 { (case "(($ac_try" in
27942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943 *) ac_try_echo=$ac_try;;
27944esac
27945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27946 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027947 ac_status=$?
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); }; }; then
27950 eval "$as_ac_Header=yes"
27951else
27952 echo "$as_me: failed program was:" >&5
27953sed 's/^/| /' conftest.$ac_ext >&5
27954
Reid Spencera773bd52006-08-04 18:18:08 +000027955 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027956fi
Reid Spencera773bd52006-08-04 18:18:08 +000027957
27958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027959fi
Reid Spencera773bd52006-08-04 18:18:08 +000027960ac_res=`eval echo '${'$as_ac_Header'}'`
27961 { echo "$as_me:$LINENO: result: $ac_res" >&5
27962echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027963if test `eval echo '${'$as_ac_Header'}'` = yes; then
27964 cat >>confdefs.h <<_ACEOF
27965#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27966_ACEOF
27967
27968ac_header_dirent=$ac_hdr; break
27969fi
27970
27971done
27972# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27973if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027974 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27975echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027976if test "${ac_cv_search_opendir+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27978else
27979 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027980cat >conftest.$ac_ext <<_ACEOF
27981/* confdefs.h. */
27982_ACEOF
27983cat confdefs.h >>conftest.$ac_ext
27984cat >>conftest.$ac_ext <<_ACEOF
27985/* end confdefs.h. */
27986
Reid Spencera773bd52006-08-04 18:18:08 +000027987/* Override any GCC internal prototype to avoid an error.
27988 Use char because int might match the return type of a GCC
27989 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027990#ifdef __cplusplus
27991extern "C"
27992#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027993char opendir ();
27994int
27995main ()
27996{
Reid Spencera773bd52006-08-04 18:18:08 +000027997return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027998 ;
27999 return 0;
28000}
28001_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028002for ac_lib in '' dir; do
28003 if test -z "$ac_lib"; then
28004 ac_res="none required"
28005 else
28006 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028008 fi
28009 rm -f conftest.$ac_objext conftest$ac_exeext
28010if { (ac_try="$ac_link"
28011case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28014esac
28015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028017 ac_status=$?
28018 grep -v '^ *+' conftest.er1 >conftest.err
28019 rm -f conftest.er1
28020 cat conftest.err >&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28024 { (case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28027esac
28028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028030 ac_status=$?
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); }; } &&
28033 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028034 { (case "(($ac_try" in
28035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036 *) ac_try_echo=$ac_try;;
28037esac
28038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028043 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028044else
28045 echo "$as_me: failed program was:" >&5
28046sed 's/^/| /' conftest.$ac_ext >&5
28047
Reid Spencera773bd52006-08-04 18:18:08 +000028048
Reid Spencer59473af2004-12-25 07:31:29 +000028049fi
Reid Spencera773bd52006-08-04 18:18:08 +000028050
28051rm -f core conftest.err conftest.$ac_objext \
28052 conftest$ac_exeext
28053 if test "${ac_cv_search_opendir+set}" = set; then
28054 break
Reid Spencer59473af2004-12-25 07:31:29 +000028055fi
Reid Spencera773bd52006-08-04 18:18:08 +000028056done
28057if test "${ac_cv_search_opendir+set}" = set; then
28058 :
28059else
28060 ac_cv_search_opendir=no
28061fi
28062rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028063LIBS=$ac_func_search_save_LIBS
28064fi
Reid Spencera773bd52006-08-04 18:18:08 +000028065{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28066echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28067ac_res=$ac_cv_search_opendir
28068if test "$ac_res" != no; then
28069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028070
28071fi
28072
28073else
Reid Spencera773bd52006-08-04 18:18:08 +000028074 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28075echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028076if test "${ac_cv_search_opendir+set}" = set; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28078else
28079 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028080cat >conftest.$ac_ext <<_ACEOF
28081/* confdefs.h. */
28082_ACEOF
28083cat confdefs.h >>conftest.$ac_ext
28084cat >>conftest.$ac_ext <<_ACEOF
28085/* end confdefs.h. */
28086
Reid Spencera773bd52006-08-04 18:18:08 +000028087/* Override any GCC internal prototype to avoid an error.
28088 Use char because int might match the return type of a GCC
28089 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028090#ifdef __cplusplus
28091extern "C"
28092#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028093char opendir ();
28094int
28095main ()
28096{
Reid Spencera773bd52006-08-04 18:18:08 +000028097return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028098 ;
28099 return 0;
28100}
28101_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028102for ac_lib in '' x; do
28103 if test -z "$ac_lib"; then
28104 ac_res="none required"
28105 else
28106 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028108 fi
28109 rm -f conftest.$ac_objext conftest$ac_exeext
28110if { (ac_try="$ac_link"
28111case "(($ac_try" in
28112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28114esac
28115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028117 ac_status=$?
28118 grep -v '^ *+' conftest.er1 >conftest.err
28119 rm -f conftest.er1
28120 cat conftest.err >&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28124 { (case "(($ac_try" in
28125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126 *) ac_try_echo=$ac_try;;
28127esac
28128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028130 ac_status=$?
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; } &&
28133 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028134 { (case "(($ac_try" in
28135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136 *) ac_try_echo=$ac_try;;
28137esac
28138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028143 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028144else
28145 echo "$as_me: failed program was:" >&5
28146sed 's/^/| /' conftest.$ac_ext >&5
28147
Reid Spencera773bd52006-08-04 18:18:08 +000028148
Reid Spencer59473af2004-12-25 07:31:29 +000028149fi
Reid Spencera773bd52006-08-04 18:18:08 +000028150
28151rm -f core conftest.err conftest.$ac_objext \
28152 conftest$ac_exeext
28153 if test "${ac_cv_search_opendir+set}" = set; then
28154 break
Reid Spencer59473af2004-12-25 07:31:29 +000028155fi
Reid Spencera773bd52006-08-04 18:18:08 +000028156done
28157if test "${ac_cv_search_opendir+set}" = set; then
28158 :
28159else
28160 ac_cv_search_opendir=no
28161fi
28162rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028163LIBS=$ac_func_search_save_LIBS
28164fi
Reid Spencera773bd52006-08-04 18:18:08 +000028165{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28166echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28167ac_res=$ac_cv_search_opendir
28168if test "$ac_res" != no; then
28169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028170
28171fi
28172
28173fi
28174
Reid Spencera773bd52006-08-04 18:18:08 +000028175{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28176echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028177if test "${ac_cv_header_mmap_anon+set}" = set; then
28178 echo $ECHO_N "(cached) $ECHO_C" >&6
28179else
28180 ac_ext=c
28181ac_cpp='$CPP $CPPFLAGS'
28182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28184ac_compiler_gnu=$ac_cv_c_compiler_gnu
28185
28186 cat >conftest.$ac_ext <<_ACEOF
28187/* confdefs.h. */
28188_ACEOF
28189cat confdefs.h >>conftest.$ac_ext
28190cat >>conftest.$ac_ext <<_ACEOF
28191/* end confdefs.h. */
28192#include <sys/mman.h>
28193#include <unistd.h>
28194#include <fcntl.h>
28195int
28196main ()
28197{
28198mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28199 ;
28200 return 0;
28201}
28202_ACEOF
28203rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028204if { (ac_try="$ac_compile"
28205case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28208esac
28209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028211 ac_status=$?
28212 grep -v '^ *+' conftest.er1 >conftest.err
28213 rm -f conftest.er1
28214 cat conftest.err >&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28218 { (case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28221esac
28222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028224 ac_status=$?
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; } &&
28227 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028228 { (case "(($ac_try" in
28229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230 *) ac_try_echo=$ac_try;;
28231esac
28232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028234 ac_status=$?
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28237 ac_cv_header_mmap_anon=yes
28238else
28239 echo "$as_me: failed program was:" >&5
28240sed 's/^/| /' conftest.$ac_ext >&5
28241
Reid Spencera773bd52006-08-04 18:18:08 +000028242 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028243fi
Reid Spencera773bd52006-08-04 18:18:08 +000028244
28245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028246 ac_ext=c
28247ac_cpp='$CPP $CPPFLAGS'
28248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28250ac_compiler_gnu=$ac_cv_c_compiler_gnu
28251
28252
28253fi
Reid Spencera773bd52006-08-04 18:18:08 +000028254{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28255echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028256if test "$ac_cv_header_mmap_anon" = yes; then
28257
28258cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028259#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028260_ACEOF
28261
28262fi
28263
Reid Spencera773bd52006-08-04 18:18:08 +000028264{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28265echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028266if test "${ac_cv_header_stat_broken+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268else
28269 cat >conftest.$ac_ext <<_ACEOF
28270/* confdefs.h. */
28271_ACEOF
28272cat confdefs.h >>conftest.$ac_ext
28273cat >>conftest.$ac_ext <<_ACEOF
28274/* end confdefs.h. */
28275#include <sys/types.h>
28276#include <sys/stat.h>
28277
Reid Spencera773bd52006-08-04 18:18:08 +000028278#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028279# if S_ISBLK (S_IFDIR)
28280You lose.
28281# endif
28282#endif
28283
Reid Spencera773bd52006-08-04 18:18:08 +000028284#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028285# if S_ISBLK (S_IFCHR)
28286You lose.
28287# endif
28288#endif
28289
Reid Spencera773bd52006-08-04 18:18:08 +000028290#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028291# if S_ISLNK (S_IFREG)
28292You lose.
28293# endif
28294#endif
28295
Reid Spencera773bd52006-08-04 18:18:08 +000028296#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028297# if S_ISSOCK (S_IFREG)
28298You lose.
28299# endif
28300#endif
28301
28302_ACEOF
28303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28304 $EGREP "You lose" >/dev/null 2>&1; then
28305 ac_cv_header_stat_broken=yes
28306else
28307 ac_cv_header_stat_broken=no
28308fi
28309rm -f conftest*
28310
28311fi
Reid Spencera773bd52006-08-04 18:18:08 +000028312{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28313echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028314if test $ac_cv_header_stat_broken = yes; then
28315
28316cat >>confdefs.h <<\_ACEOF
28317#define STAT_MACROS_BROKEN 1
28318_ACEOF
28319
28320fi
28321
Reid Spencera773bd52006-08-04 18:18:08 +000028322{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28323echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028324if test "${ac_cv_header_stdc+set}" = set; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28326else
28327 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028328/* confdefs.h. */
28329_ACEOF
28330cat confdefs.h >>conftest.$ac_ext
28331cat >>conftest.$ac_ext <<_ACEOF
28332/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028333#include <stdlib.h>
28334#include <stdarg.h>
28335#include <string.h>
28336#include <float.h>
28337
John Criswell0c38eaf2003-09-10 15:17:25 +000028338int
28339main ()
28340{
28341
28342 ;
28343 return 0;
28344}
John Criswell7a73b802003-06-30 21:59:07 +000028345_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028346rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028347if { (ac_try="$ac_compile"
28348case "(($ac_try" in
28349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350 *) ac_try_echo=$ac_try;;
28351esac
28352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028354 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028355 grep -v '^ *+' conftest.er1 >conftest.err
28356 rm -f conftest.er1
28357 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028359 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28361 { (case "(($ac_try" in
28362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363 *) ac_try_echo=$ac_try;;
28364esac
28365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028367 ac_status=$?
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; } &&
28370 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028371 { (case "(($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_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028377 ac_status=$?
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028380 ac_cv_header_stdc=yes
28381else
28382 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028383sed 's/^/| /' conftest.$ac_ext >&5
28384
Reid Spencera773bd52006-08-04 18:18:08 +000028385 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028386fi
Reid Spencera773bd52006-08-04 18:18:08 +000028387
28388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028389
28390if test $ac_cv_header_stdc = yes; then
28391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28392 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028393/* confdefs.h. */
28394_ACEOF
28395cat confdefs.h >>conftest.$ac_ext
28396cat >>conftest.$ac_ext <<_ACEOF
28397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028398#include <string.h>
28399
28400_ACEOF
28401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028402 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028403 :
28404else
28405 ac_cv_header_stdc=no
28406fi
28407rm -f conftest*
28408
28409fi
28410
28411if test $ac_cv_header_stdc = yes; then
28412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028414/* confdefs.h. */
28415_ACEOF
28416cat confdefs.h >>conftest.$ac_ext
28417cat >>conftest.$ac_ext <<_ACEOF
28418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028419#include <stdlib.h>
28420
28421_ACEOF
28422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028423 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028424 :
28425else
28426 ac_cv_header_stdc=no
28427fi
28428rm -f conftest*
28429
28430fi
28431
28432if test $ac_cv_header_stdc = yes; then
28433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28434 if test "$cross_compiling" = yes; then
28435 :
28436else
28437 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028438/* confdefs.h. */
28439_ACEOF
28440cat confdefs.h >>conftest.$ac_ext
28441cat >>conftest.$ac_ext <<_ACEOF
28442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028443#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028444#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028445#if ((' ' & 0x0FF) == 0x020)
28446# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28447# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28448#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028449# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028450 (('a' <= (c) && (c) <= 'i') \
28451 || ('j' <= (c) && (c) <= 'r') \
28452 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028453# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28454#endif
28455
28456#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28457int
28458main ()
28459{
28460 int i;
28461 for (i = 0; i < 256; i++)
28462 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028463 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028464 return 2;
28465 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028466}
28467_ACEOF
28468rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028469if { (ac_try="$ac_link"
28470case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28473esac
28474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028476 ac_status=$?
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028479 { (case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28482esac
28483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028485 ac_status=$?
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
28488 :
28489else
28490 echo "$as_me: program exited with status $ac_status" >&5
28491echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028492sed 's/^/| /' conftest.$ac_ext >&5
28493
John Criswell7a73b802003-06-30 21:59:07 +000028494( exit $ac_status )
28495ac_cv_header_stdc=no
28496fi
Reid Spencera773bd52006-08-04 18:18:08 +000028497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28498fi
28499
28500
John Criswell7a73b802003-06-30 21:59:07 +000028501fi
28502fi
Reid Spencera773bd52006-08-04 18:18:08 +000028503{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28504echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028505if test $ac_cv_header_stdc = yes; then
28506
28507cat >>confdefs.h <<\_ACEOF
28508#define STDC_HEADERS 1
28509_ACEOF
28510
28511fi
28512
Reid Spencera773bd52006-08-04 18:18:08 +000028513{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28514echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028515if test "${ac_cv_header_sys_wait_h+set}" = set; then
28516 echo $ECHO_N "(cached) $ECHO_C" >&6
28517else
28518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028519/* confdefs.h. */
28520_ACEOF
28521cat confdefs.h >>conftest.$ac_ext
28522cat >>conftest.$ac_ext <<_ACEOF
28523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028524#include <sys/types.h>
28525#include <sys/wait.h>
28526#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028527# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028528#endif
28529#ifndef WIFEXITED
28530# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28531#endif
28532
John Criswell7a73b802003-06-30 21:59:07 +000028533int
28534main ()
28535{
28536 int s;
28537 wait (&s);
28538 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28539 ;
28540 return 0;
28541}
28542_ACEOF
28543rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028544if { (ac_try="$ac_compile"
28545case "(($ac_try" in
28546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28548esac
28549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028551 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028552 grep -v '^ *+' conftest.er1 >conftest.err
28553 rm -f conftest.er1
28554 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28558 { (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 Spencer2706f8c2004-09-19 23:53:36 +000028564 ac_status=$?
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; } &&
28567 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028568 { (case "(($ac_try" in
28569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28570 *) ac_try_echo=$ac_try;;
28571esac
28572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28573 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028574 ac_status=$?
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; }; then
28577 ac_cv_header_sys_wait_h=yes
28578else
28579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028580sed 's/^/| /' conftest.$ac_ext >&5
28581
Reid Spencera773bd52006-08-04 18:18:08 +000028582 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028583fi
Reid Spencera773bd52006-08-04 18:18:08 +000028584
28585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028586fi
Reid Spencera773bd52006-08-04 18:18:08 +000028587{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28588echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028589if test $ac_cv_header_sys_wait_h = yes; then
28590
28591cat >>confdefs.h <<\_ACEOF
28592#define HAVE_SYS_WAIT_H 1
28593_ACEOF
28594
28595fi
28596
Reid Spencera773bd52006-08-04 18:18:08 +000028597{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28598echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028599if test "${ac_cv_header_time+set}" = set; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28601else
28602 cat >conftest.$ac_ext <<_ACEOF
28603/* confdefs.h. */
28604_ACEOF
28605cat confdefs.h >>conftest.$ac_ext
28606cat >>conftest.$ac_ext <<_ACEOF
28607/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028608#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028609#include <sys/time.h>
28610#include <time.h>
28611
28612int
28613main ()
28614{
28615if ((struct tm *) 0)
28616return 0;
28617 ;
28618 return 0;
28619}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028620_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028621rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028622if { (ac_try="$ac_compile"
28623case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28626esac
28627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028629 ac_status=$?
28630 grep -v '^ *+' conftest.er1 >conftest.err
28631 rm -f conftest.er1
28632 cat conftest.err >&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028634 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28636 { (case "(($ac_try" in
28637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638 *) ac_try_echo=$ac_try;;
28639esac
28640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; } &&
28645 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028646 { (case "(($ac_try" in
28647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648 *) ac_try_echo=$ac_try;;
28649esac
28650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028652 ac_status=$?
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; }; then
28655 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028656else
28657 echo "$as_me: failed program was:" >&5
28658sed 's/^/| /' conftest.$ac_ext >&5
28659
Reid Spencera773bd52006-08-04 18:18:08 +000028660 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028661fi
Reid Spencera773bd52006-08-04 18:18:08 +000028662
28663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028664fi
Reid Spencera773bd52006-08-04 18:18:08 +000028665{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28666echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028667if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028668
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028669cat >>confdefs.h <<\_ACEOF
28670#define TIME_WITH_SYS_TIME 1
28671_ACEOF
28672
28673fi
28674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028675
Reid Spencer59473af2004-12-25 07:31:29 +000028676
28677
28678
28679
28680
28681
28682for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28683do
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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028699/* confdefs.h. */
28700_ACEOF
28701cat confdefs.h >>conftest.$ac_ext
28702cat >>conftest.$ac_ext <<_ACEOF
28703/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028704$ac_includes_default
28705#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028706_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 Spencer5e1d9a52004-11-25 04:51:04 +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 Spencer5e1d9a52004-11-25 04:51:04 +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 Spencer5e1d9a52004-11-25 04:51:04 +000028738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028741 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028742else
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
Brian Gaeke6c3fd812004-02-23 22:07:00 +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 Spencer5e1d9a52004-11-25 04:51:04 +000028752
Reid Spencer59473af2004-12-25 07:31:29 +000028753# 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 Spencer5e1d9a52004-11-25 04:51:04 +000028839
28840fi
Reid Spencer59473af2004-12-25 07:31:29 +000028841if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842 cat >>confdefs.h <<_ACEOF
28843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028844_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028845
28846fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028847
Reid Spencer59473af2004-12-25 07:31:29 +000028848done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028849
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028850
28851
Reid Spencer59473af2004-12-25 07:31:29 +000028852
28853
28854
28855
Reid Spencercdb08a32006-06-05 16:11:07 +000028856for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028857do
28858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028863 echo $ECHO_N "(cached) $ECHO_C" >&6
28864fi
Reid Spencera773bd52006-08-04 18:18:08 +000028865ac_res=`eval echo '${'$as_ac_Header'}'`
28866 { echo "$as_me:$LINENO: result: $ac_res" >&5
28867echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028868else
28869 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028870{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028872cat >conftest.$ac_ext <<_ACEOF
28873/* confdefs.h. */
28874_ACEOF
28875cat confdefs.h >>conftest.$ac_ext
28876cat >>conftest.$ac_ext <<_ACEOF
28877/* end confdefs.h. */
28878$ac_includes_default
28879#include <$ac_header>
28880_ACEOF
28881rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028882if { (ac_try="$ac_compile"
28883case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28886esac
28887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028889 ac_status=$?
28890 grep -v '^ *+' conftest.er1 >conftest.err
28891 rm -f conftest.er1
28892 cat conftest.err >&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28896 { (case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28899esac
28900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028902 ac_status=$?
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; } &&
28905 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028906 { (case "(($ac_try" in
28907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28908 *) ac_try_echo=$ac_try;;
28909esac
28910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28911 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028912 ac_status=$?
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28915 ac_header_compiler=yes
28916else
28917 echo "$as_me: failed program was:" >&5
28918sed 's/^/| /' conftest.$ac_ext >&5
28919
Reid Spencera773bd52006-08-04 18:18:08 +000028920 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028921fi
Reid Spencera773bd52006-08-04 18:18:08 +000028922
28923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28924{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28925echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028926
28927# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028928{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028930cat >conftest.$ac_ext <<_ACEOF
28931/* confdefs.h. */
28932_ACEOF
28933cat confdefs.h >>conftest.$ac_ext
28934cat >>conftest.$ac_ext <<_ACEOF
28935/* end confdefs.h. */
28936#include <$ac_header>
28937_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028938if { (ac_try="$ac_cpp conftest.$ac_ext"
28939case "(($ac_try" in
28940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941 *) ac_try_echo=$ac_try;;
28942esac
28943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028945 ac_status=$?
28946 grep -v '^ *+' conftest.er1 >conftest.err
28947 rm -f conftest.er1
28948 cat conftest.err >&5
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } >/dev/null; then
28951 if test -s conftest.err; then
28952 ac_cpp_err=$ac_c_preproc_warn_flag
28953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28954 else
28955 ac_cpp_err=
28956 fi
28957else
28958 ac_cpp_err=yes
28959fi
28960if test -z "$ac_cpp_err"; then
28961 ac_header_preproc=yes
28962else
28963 echo "$as_me: failed program was:" >&5
28964sed 's/^/| /' conftest.$ac_ext >&5
28965
28966 ac_header_preproc=no
28967fi
Reid Spencera773bd52006-08-04 18:18:08 +000028968
Reid Spencer59473af2004-12-25 07:31:29 +000028969rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028970{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28971echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028972
28973# So? What about this header?
28974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28975 yes:no: )
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28977echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28979echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28980 ac_header_preproc=yes
28981 ;;
28982 no:yes:* )
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28984echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28986echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28988echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28990echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28992echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28994echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028995 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028996## ----------------------------------- ##
28997## Report this to llvmbugs@cs.uiuc.edu ##
28998## ----------------------------------- ##
28999_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029000 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029001 ;;
29002esac
Reid Spencera773bd52006-08-04 18:18:08 +000029003{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029006 echo $ECHO_N "(cached) $ECHO_C" >&6
29007else
29008 eval "$as_ac_Header=\$ac_header_preproc"
29009fi
Reid Spencera773bd52006-08-04 18:18:08 +000029010ac_res=`eval echo '${'$as_ac_Header'}'`
29011 { echo "$as_me:$LINENO: result: $ac_res" >&5
29012echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029013
29014fi
29015if test `eval echo '${'$as_ac_Header'}'` = yes; then
29016 cat >>confdefs.h <<_ACEOF
29017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29018_ACEOF
29019
29020fi
29021
29022done
29023
29024
Reid Spencerbe3e4192007-08-17 05:45:26 +000029025for ac_header in windows.h
29026do
29027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29033fi
29034ac_res=`eval echo '${'$as_ac_Header'}'`
29035 { echo "$as_me:$LINENO: result: $ac_res" >&5
29036echo "${ECHO_T}$ac_res" >&6; }
29037else
29038 # Is the header compilable?
29039{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29041cat >conftest.$ac_ext <<_ACEOF
29042/* confdefs.h. */
29043_ACEOF
29044cat confdefs.h >>conftest.$ac_ext
29045cat >>conftest.$ac_ext <<_ACEOF
29046/* end confdefs.h. */
29047$ac_includes_default
29048#include <$ac_header>
29049_ACEOF
29050rm -f conftest.$ac_objext
29051if { (ac_try="$ac_compile"
29052case "(($ac_try" in
29053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29054 *) ac_try_echo=$ac_try;;
29055esac
29056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29057 (eval "$ac_compile") 2>conftest.er1
29058 ac_status=$?
29059 grep -v '^ *+' conftest.er1 >conftest.err
29060 rm -f conftest.er1
29061 cat conftest.err >&5
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); } &&
29064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29065 { (case "(($ac_try" in
29066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067 *) ac_try_echo=$ac_try;;
29068esac
29069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070 (eval "$ac_try") 2>&5
29071 ac_status=$?
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; } &&
29074 { ac_try='test -s conftest.$ac_objext'
29075 { (case "(($ac_try" in
29076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29077 *) ac_try_echo=$ac_try;;
29078esac
29079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29080 (eval "$ac_try") 2>&5
29081 ac_status=$?
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); }; }; then
29084 ac_header_compiler=yes
29085else
29086 echo "$as_me: failed program was:" >&5
29087sed 's/^/| /' conftest.$ac_ext >&5
29088
29089 ac_header_compiler=no
29090fi
29091
29092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29093{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29094echo "${ECHO_T}$ac_header_compiler" >&6; }
29095
29096# Is the header present?
29097{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29099cat >conftest.$ac_ext <<_ACEOF
29100/* confdefs.h. */
29101_ACEOF
29102cat confdefs.h >>conftest.$ac_ext
29103cat >>conftest.$ac_ext <<_ACEOF
29104/* end confdefs.h. */
29105#include <$ac_header>
29106_ACEOF
29107if { (ac_try="$ac_cpp conftest.$ac_ext"
29108case "(($ac_try" in
29109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110 *) ac_try_echo=$ac_try;;
29111esac
29112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29114 ac_status=$?
29115 grep -v '^ *+' conftest.er1 >conftest.err
29116 rm -f conftest.er1
29117 cat conftest.err >&5
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } >/dev/null; then
29120 if test -s conftest.err; then
29121 ac_cpp_err=$ac_c_preproc_warn_flag
29122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29123 else
29124 ac_cpp_err=
29125 fi
29126else
29127 ac_cpp_err=yes
29128fi
29129if test -z "$ac_cpp_err"; then
29130 ac_header_preproc=yes
29131else
29132 echo "$as_me: failed program was:" >&5
29133sed 's/^/| /' conftest.$ac_ext >&5
29134
29135 ac_header_preproc=no
29136fi
29137
29138rm -f conftest.err conftest.$ac_ext
29139{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29140echo "${ECHO_T}$ac_header_preproc" >&6; }
29141
29142# So? What about this header?
29143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29144 yes:no: )
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29149 ac_header_preproc=yes
29150 ;;
29151 no:yes:* )
29152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29164 ( cat <<\_ASBOX
29165## ----------------------------------- ##
29166## Report this to llvmbugs@cs.uiuc.edu ##
29167## ----------------------------------- ##
29168_ASBOX
29169 ) | sed "s/^/$as_me: WARNING: /" >&2
29170 ;;
29171esac
29172{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29175 echo $ECHO_N "(cached) $ECHO_C" >&6
29176else
29177 eval "$as_ac_Header=\$ac_header_preproc"
29178fi
29179ac_res=`eval echo '${'$as_ac_Header'}'`
29180 { echo "$as_me:$LINENO: result: $ac_res" >&5
29181echo "${ECHO_T}$ac_res" >&6; }
29182
29183fi
29184if test `eval echo '${'$as_ac_Header'}'` = yes; then
29185 cat >>confdefs.h <<_ACEOF
29186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29187_ACEOF
29188
29189fi
29190
29191done
Reid Spencer59473af2004-12-25 07:31:29 +000029192
29193
29194
29195
Reid Spencerbe3e4192007-08-17 05:45:26 +000029196
29197for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029198do
29199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029204 echo $ECHO_N "(cached) $ECHO_C" >&6
29205fi
Reid Spencera773bd52006-08-04 18:18:08 +000029206ac_res=`eval echo '${'$as_ac_Header'}'`
29207 { echo "$as_me:$LINENO: result: $ac_res" >&5
29208echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029209else
29210 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029211{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029213cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029214/* confdefs.h. */
29215_ACEOF
29216cat confdefs.h >>conftest.$ac_ext
29217cat >>conftest.$ac_ext <<_ACEOF
29218/* end confdefs.h. */
29219$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029220#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029221_ACEOF
29222rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029223if { (ac_try="$ac_compile"
29224case "(($ac_try" in
29225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226 *) ac_try_echo=$ac_try;;
29227esac
29228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029230 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029231 grep -v '^ *+' conftest.er1 >conftest.err
29232 rm -f conftest.er1
29233 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237 { (case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29240esac
29241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029247 { (case "(($ac_try" in
29248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249 *) ac_try_echo=$ac_try;;
29250esac
29251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
29256 ac_header_compiler=yes
29257else
29258 echo "$as_me: failed program was:" >&5
29259sed 's/^/| /' conftest.$ac_ext >&5
29260
Reid Spencera773bd52006-08-04 18:18:08 +000029261 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029262fi
Reid Spencera773bd52006-08-04 18:18:08 +000029263
29264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29265{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29266echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029267
29268# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029269{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029271cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029272/* confdefs.h. */
29273_ACEOF
29274cat confdefs.h >>conftest.$ac_ext
29275cat >>conftest.$ac_ext <<_ACEOF
29276/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029277#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029278_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029279if { (ac_try="$ac_cpp conftest.$ac_ext"
29280case "(($ac_try" in
29281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282 *) ac_try_echo=$ac_try;;
29283esac
29284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029286 ac_status=$?
29287 grep -v '^ *+' conftest.er1 >conftest.err
29288 rm -f conftest.er1
29289 cat conftest.err >&5
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); } >/dev/null; then
29292 if test -s conftest.err; then
29293 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029295 else
29296 ac_cpp_err=
29297 fi
29298else
29299 ac_cpp_err=yes
29300fi
29301if test -z "$ac_cpp_err"; then
29302 ac_header_preproc=yes
29303else
29304 echo "$as_me: failed program was:" >&5
29305sed 's/^/| /' conftest.$ac_ext >&5
29306
29307 ac_header_preproc=no
29308fi
Reid Spencera773bd52006-08-04 18:18:08 +000029309
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029310rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029311{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29312echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029313
29314# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29316 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029321 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029322 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029323 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029336 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029337## ----------------------------------- ##
29338## Report this to llvmbugs@cs.uiuc.edu ##
29339## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029340_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029341 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029342 ;;
29343esac
Reid Spencera773bd52006-08-04 18:18:08 +000029344{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029347 echo $ECHO_N "(cached) $ECHO_C" >&6
29348else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029349 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029350fi
Reid Spencera773bd52006-08-04 18:18:08 +000029351ac_res=`eval echo '${'$as_ac_Header'}'`
29352 { echo "$as_me:$LINENO: result: $ac_res" >&5
29353echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029354
29355fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029356if test `eval echo '${'$as_ac_Header'}'` = yes; then
29357 cat >>confdefs.h <<_ACEOF
29358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029359_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029360
29361fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029362
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029363done
29364
John Criswell7ed43ad2004-07-19 16:12:29 +000029365
Reid Spencercdb08a32006-06-05 16:11:07 +000029366
Reid Spencera6d990a2006-09-14 06:17:21 +000029367
29368for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029369do
29370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029375 echo $ECHO_N "(cached) $ECHO_C" >&6
29376fi
Reid Spencera773bd52006-08-04 18:18:08 +000029377ac_res=`eval echo '${'$as_ac_Header'}'`
29378 { echo "$as_me:$LINENO: result: $ac_res" >&5
29379echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029380else
29381 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029382{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029384cat >conftest.$ac_ext <<_ACEOF
29385/* confdefs.h. */
29386_ACEOF
29387cat confdefs.h >>conftest.$ac_ext
29388cat >>conftest.$ac_ext <<_ACEOF
29389/* end confdefs.h. */
29390$ac_includes_default
29391#include <$ac_header>
29392_ACEOF
29393rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029394if { (ac_try="$ac_compile"
29395case "(($ac_try" in
29396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397 *) ac_try_echo=$ac_try;;
29398esac
29399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029401 ac_status=$?
29402 grep -v '^ *+' conftest.er1 >conftest.err
29403 rm -f conftest.er1
29404 cat conftest.err >&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29408 { (case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29411esac
29412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029414 ac_status=$?
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; } &&
29417 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029418 { (case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29421esac
29422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029424 ac_status=$?
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; }; then
29427 ac_header_compiler=yes
29428else
29429 echo "$as_me: failed program was:" >&5
29430sed 's/^/| /' conftest.$ac_ext >&5
29431
Reid Spencera773bd52006-08-04 18:18:08 +000029432 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029433fi
Reid Spencera773bd52006-08-04 18:18:08 +000029434
29435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29436{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29437echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029438
29439# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029440{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029442cat >conftest.$ac_ext <<_ACEOF
29443/* confdefs.h. */
29444_ACEOF
29445cat confdefs.h >>conftest.$ac_ext
29446cat >>conftest.$ac_ext <<_ACEOF
29447/* end confdefs.h. */
29448#include <$ac_header>
29449_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029450if { (ac_try="$ac_cpp conftest.$ac_ext"
29451case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29454esac
29455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029457 ac_status=$?
29458 grep -v '^ *+' conftest.er1 >conftest.err
29459 rm -f conftest.er1
29460 cat conftest.err >&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); } >/dev/null; then
29463 if test -s conftest.err; then
29464 ac_cpp_err=$ac_c_preproc_warn_flag
29465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29466 else
29467 ac_cpp_err=
29468 fi
29469else
29470 ac_cpp_err=yes
29471fi
29472if test -z "$ac_cpp_err"; then
29473 ac_header_preproc=yes
29474else
29475 echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
29478 ac_header_preproc=no
29479fi
Reid Spencera773bd52006-08-04 18:18:08 +000029480
Chris Lattner0b142592005-11-14 06:57:34 +000029481rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029482{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29483echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029484
29485# So? What about this header?
29486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29487 yes:no: )
29488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29489echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29491echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29492 ac_header_preproc=yes
29493 ;;
29494 no:yes:* )
29495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29500echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29502echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29506echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029507 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029508## ----------------------------------- ##
29509## Report this to llvmbugs@cs.uiuc.edu ##
29510## ----------------------------------- ##
29511_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029512 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029513 ;;
29514esac
Reid Spencera773bd52006-08-04 18:18:08 +000029515{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029518 echo $ECHO_N "(cached) $ECHO_C" >&6
29519else
29520 eval "$as_ac_Header=\$ac_header_preproc"
29521fi
Reid Spencera773bd52006-08-04 18:18:08 +000029522ac_res=`eval echo '${'$as_ac_Header'}'`
29523 { echo "$as_me:$LINENO: result: $ac_res" >&5
29524echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029525
29526fi
29527if test `eval echo '${'$as_ac_Header'}'` = yes; then
29528 cat >>confdefs.h <<_ACEOF
29529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29530_ACEOF
29531
29532fi
29533
29534done
29535
Reid Spencer0a262ba2005-08-24 10:07:20 +000029536if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029537
29538for ac_header in pthread.h
29539do
29540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029545 echo $ECHO_N "(cached) $ECHO_C" >&6
29546fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029547ac_res=`eval echo '${'$as_ac_Header'}'`
29548 { echo "$as_me:$LINENO: result: $ac_res" >&5
29549echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029550else
29551 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029552{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029554cat >conftest.$ac_ext <<_ACEOF
29555/* confdefs.h. */
29556_ACEOF
29557cat confdefs.h >>conftest.$ac_ext
29558cat >>conftest.$ac_ext <<_ACEOF
29559/* end confdefs.h. */
29560$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029561#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029562_ACEOF
29563rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029564if { (ac_try="$ac_compile"
29565case "(($ac_try" in
29566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567 *) ac_try_echo=$ac_try;;
29568esac
29569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029571 ac_status=$?
29572 grep -v '^ *+' conftest.er1 >conftest.err
29573 rm -f conftest.er1
29574 cat conftest.err >&5
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29578 { (case "(($ac_try" in
29579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29581esac
29582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029584 ac_status=$?
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; } &&
29587 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029588 { (case "(($ac_try" in
29589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29590 *) ac_try_echo=$ac_try;;
29591esac
29592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29593 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029594 ac_status=$?
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; }; then
29597 ac_header_compiler=yes
29598else
29599 echo "$as_me: failed program was:" >&5
29600sed 's/^/| /' conftest.$ac_ext >&5
29601
Reid Spencera773bd52006-08-04 18:18:08 +000029602 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029603fi
Reid Spencera773bd52006-08-04 18:18:08 +000029604
29605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29607echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029608
29609# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029610{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029612cat >conftest.$ac_ext <<_ACEOF
29613/* confdefs.h. */
29614_ACEOF
29615cat confdefs.h >>conftest.$ac_ext
29616cat >>conftest.$ac_ext <<_ACEOF
29617/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029618#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029619_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029620if { (ac_try="$ac_cpp conftest.$ac_ext"
29621case "(($ac_try" in
29622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29624esac
29625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029627 ac_status=$?
29628 grep -v '^ *+' conftest.er1 >conftest.err
29629 rm -f conftest.er1
29630 cat conftest.err >&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } >/dev/null; then
29633 if test -s conftest.err; then
29634 ac_cpp_err=$ac_c_preproc_warn_flag
29635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29636 else
29637 ac_cpp_err=
29638 fi
29639else
29640 ac_cpp_err=yes
29641fi
29642if test -z "$ac_cpp_err"; then
29643 ac_header_preproc=yes
29644else
29645 echo "$as_me: failed program was:" >&5
29646sed 's/^/| /' conftest.$ac_ext >&5
29647
29648 ac_header_preproc=no
29649fi
Reid Spencera773bd52006-08-04 18:18:08 +000029650
Reid Spencer0a262ba2005-08-24 10:07:20 +000029651rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029652{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29653echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029654
29655# So? What about this header?
29656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29657 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029662 ac_header_preproc=yes
29663 ;;
29664 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029677 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029678## ----------------------------------- ##
29679## Report this to llvmbugs@cs.uiuc.edu ##
29680## ----------------------------------- ##
29681_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029682 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029683 ;;
29684esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029685{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029688 echo $ECHO_N "(cached) $ECHO_C" >&6
29689else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029690 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029691fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029692ac_res=`eval echo '${'$as_ac_Header'}'`
29693 { echo "$as_me:$LINENO: result: $ac_res" >&5
29694echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029695
29696fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029697if test `eval echo '${'$as_ac_Header'}'` = yes; then
29698 cat >>confdefs.h <<_ACEOF
29699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29700_ACEOF
29701 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029702
29703else
29704 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029705
29706fi
29707
Reid Spencerbe3e4192007-08-17 05:45:26 +000029708done
Reid Spencer1000b732006-12-01 00:37:14 +000029709
29710else
29711 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029712
29713fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029714
29715
Reid Spencerb2ed05262006-11-03 18:04:08 +000029716
29717 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29718echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29719if test "${ac_cv_huge_val_sanity+set}" = set; then
29720 echo $ECHO_N "(cached) $ECHO_C" >&6
29721else
29722
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029723 ac_ext=cpp
29724ac_cpp='$CXXCPP $CPPFLAGS'
29725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029728
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029729 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029730 if test "$cross_compiling" = yes; then
29731 ac_cv_huge_val_sanity=yes
29732else
29733 cat >conftest.$ac_ext <<_ACEOF
29734/* confdefs.h. */
29735_ACEOF
29736cat confdefs.h >>conftest.$ac_ext
29737cat >>conftest.$ac_ext <<_ACEOF
29738/* end confdefs.h. */
29739#include <math.h>
29740int
29741main ()
29742{
29743double x = HUGE_VAL; return x != x;
29744 ;
29745 return 0;
29746}
29747_ACEOF
29748rm -f conftest$ac_exeext
29749if { (ac_try="$ac_link"
29750case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29753esac
29754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_link") 2>&5
29756 ac_status=$?
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29759 { (case "(($ac_try" in
29760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761 *) ac_try_echo=$ac_try;;
29762esac
29763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764 (eval "$ac_try") 2>&5
29765 ac_status=$?
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; }; then
29768 ac_cv_huge_val_sanity=yes
29769else
29770 echo "$as_me: program exited with status $ac_status" >&5
29771echo "$as_me: failed program was:" >&5
29772sed 's/^/| /' conftest.$ac_ext >&5
29773
29774( exit $ac_status )
29775ac_cv_huge_val_sanity=no
29776fi
29777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29778fi
29779
29780
29781 ac_ext=c
29782ac_cpp='$CPP $CPPFLAGS'
29783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29785ac_compiler_gnu=$ac_cv_c_compiler_gnu
29786
29787
29788fi
29789{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29790echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29791 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29792
29793
Reid Spencera773bd52006-08-04 18:18:08 +000029794{ echo "$as_me:$LINENO: checking for pid_t" >&5
29795echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029796if test "${ac_cv_type_pid_t+set}" = set; then
29797 echo $ECHO_N "(cached) $ECHO_C" >&6
29798else
29799 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029800/* confdefs.h. */
29801_ACEOF
29802cat confdefs.h >>conftest.$ac_ext
29803cat >>conftest.$ac_ext <<_ACEOF
29804/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029805$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029806typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029807int
29808main ()
29809{
Reid Spencera773bd52006-08-04 18:18:08 +000029810if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029811 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029812if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029813 return 0;
29814 ;
29815 return 0;
29816}
29817_ACEOF
29818rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029819if { (ac_try="$ac_compile"
29820case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29823esac
29824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029826 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029827 grep -v '^ *+' conftest.er1 >conftest.err
29828 rm -f conftest.er1
29829 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29833 { (case "(($ac_try" in
29834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835 *) ac_try_echo=$ac_try;;
29836esac
29837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029839 ac_status=$?
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; } &&
29842 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029843 { (case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29846esac
29847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029849 ac_status=$?
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; }; then
29852 ac_cv_type_pid_t=yes
29853else
29854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029855sed 's/^/| /' conftest.$ac_ext >&5
29856
Reid Spencera773bd52006-08-04 18:18:08 +000029857 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029858fi
Reid Spencera773bd52006-08-04 18:18:08 +000029859
29860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029861fi
Reid Spencera773bd52006-08-04 18:18:08 +000029862{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29863echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029864if test $ac_cv_type_pid_t = yes; then
29865 :
29866else
29867
29868cat >>confdefs.h <<_ACEOF
29869#define pid_t int
29870_ACEOF
29871
29872fi
29873
Reid Spencera773bd52006-08-04 18:18:08 +000029874{ echo "$as_me:$LINENO: checking for size_t" >&5
29875echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029876if test "${ac_cv_type_size_t+set}" = set; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29878else
29879 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029880/* confdefs.h. */
29881_ACEOF
29882cat confdefs.h >>conftest.$ac_ext
29883cat >>conftest.$ac_ext <<_ACEOF
29884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029885$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029886typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029887int
29888main ()
29889{
Reid Spencera773bd52006-08-04 18:18:08 +000029890if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029891 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029892if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029893 return 0;
29894 ;
29895 return 0;
29896}
29897_ACEOF
29898rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029899if { (ac_try="$ac_compile"
29900case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29903esac
29904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029907 grep -v '^ *+' conftest.er1 >conftest.err
29908 rm -f conftest.er1
29909 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29913 { (case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29916esac
29917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029919 ac_status=$?
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029923 { (case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29926esac
29927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029929 ac_status=$?
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; }; then
29932 ac_cv_type_size_t=yes
29933else
29934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029935sed 's/^/| /' conftest.$ac_ext >&5
29936
Reid Spencera773bd52006-08-04 18:18:08 +000029937 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029938fi
Reid Spencera773bd52006-08-04 18:18:08 +000029939
29940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029941fi
Reid Spencera773bd52006-08-04 18:18:08 +000029942{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29943echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029944if test $ac_cv_type_size_t = yes; then
29945 :
29946else
29947
29948cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029949#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029950_ACEOF
29951
29952fi
29953
Reid Spencera773bd52006-08-04 18:18:08 +000029954{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29955echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029956if test "${ac_cv_type_signal+set}" = set; then
29957 echo $ECHO_N "(cached) $ECHO_C" >&6
29958else
29959 cat >conftest.$ac_ext <<_ACEOF
29960/* confdefs.h. */
29961_ACEOF
29962cat confdefs.h >>conftest.$ac_ext
29963cat >>conftest.$ac_ext <<_ACEOF
29964/* end confdefs.h. */
29965#include <sys/types.h>
29966#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029967
29968int
29969main ()
29970{
Reid Spencera773bd52006-08-04 18:18:08 +000029971return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029972 ;
29973 return 0;
29974}
29975_ACEOF
29976rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029977if { (ac_try="$ac_compile"
29978case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29981esac
29982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029984 ac_status=$?
29985 grep -v '^ *+' conftest.er1 >conftest.err
29986 rm -f conftest.er1
29987 cat conftest.err >&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29991 { (case "(($ac_try" in
29992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993 *) ac_try_echo=$ac_try;;
29994esac
29995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029997 ac_status=$?
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; } &&
30000 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030001 { (case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30004esac
30005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030010 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030011else
30012 echo "$as_me: failed program was:" >&5
30013sed 's/^/| /' conftest.$ac_ext >&5
30014
Reid Spencera773bd52006-08-04 18:18:08 +000030015 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030016fi
Reid Spencera773bd52006-08-04 18:18:08 +000030017
30018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030019fi
Reid Spencera773bd52006-08-04 18:18:08 +000030020{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30021echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030022
30023cat >>confdefs.h <<_ACEOF
30024#define RETSIGTYPE $ac_cv_type_signal
30025_ACEOF
30026
30027
Reid Spencera773bd52006-08-04 18:18:08 +000030028{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30029echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030030if test "${ac_cv_struct_tm+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30032else
30033 cat >conftest.$ac_ext <<_ACEOF
30034/* confdefs.h. */
30035_ACEOF
30036cat confdefs.h >>conftest.$ac_ext
30037cat >>conftest.$ac_ext <<_ACEOF
30038/* end confdefs.h. */
30039#include <sys/types.h>
30040#include <time.h>
30041
30042int
30043main ()
30044{
30045struct tm *tp; tp->tm_sec;
30046 ;
30047 return 0;
30048}
30049_ACEOF
30050rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030051if { (ac_try="$ac_compile"
30052case "(($ac_try" in
30053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054 *) ac_try_echo=$ac_try;;
30055esac
30056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030058 ac_status=$?
30059 grep -v '^ *+' conftest.er1 >conftest.err
30060 rm -f conftest.er1
30061 cat conftest.err >&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30065 { (case "(($ac_try" in
30066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30067 *) ac_try_echo=$ac_try;;
30068esac
30069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; } &&
30074 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030075 { (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 Spencer5e1d9a52004-11-25 04:51:04 +000030081 ac_status=$?
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); }; }; then
30084 ac_cv_struct_tm=time.h
30085else
30086 echo "$as_me: failed program was:" >&5
30087sed 's/^/| /' conftest.$ac_ext >&5
30088
Reid Spencera773bd52006-08-04 18:18:08 +000030089 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030090fi
Reid Spencera773bd52006-08-04 18:18:08 +000030091
30092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030093fi
Reid Spencera773bd52006-08-04 18:18:08 +000030094{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30095echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030096if test $ac_cv_struct_tm = sys/time.h; then
30097
30098cat >>confdefs.h <<\_ACEOF
30099#define TM_IN_SYS_TIME 1
30100_ACEOF
30101
30102fi
30103
Reid Spencera773bd52006-08-04 18:18:08 +000030104{ echo "$as_me:$LINENO: checking for int64_t" >&5
30105echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030106if test "${ac_cv_type_int64_t+set}" = set; then
30107 echo $ECHO_N "(cached) $ECHO_C" >&6
30108else
30109 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030110/* confdefs.h. */
30111_ACEOF
30112cat confdefs.h >>conftest.$ac_ext
30113cat >>conftest.$ac_ext <<_ACEOF
30114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030115$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030116typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030117int
30118main ()
30119{
Reid Spencera773bd52006-08-04 18:18:08 +000030120if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030121 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030122if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030123 return 0;
30124 ;
30125 return 0;
30126}
30127_ACEOF
30128rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030129if { (ac_try="$ac_compile"
30130case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30133esac
30134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030136 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030137 grep -v '^ *+' conftest.er1 >conftest.err
30138 rm -f conftest.er1
30139 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30143 { (case "(($ac_try" in
30144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145 *) ac_try_echo=$ac_try;;
30146esac
30147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030153 { (case "(($ac_try" in
30154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155 *) ac_try_echo=$ac_try;;
30156esac
30157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030159 ac_status=$?
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); }; }; then
30162 ac_cv_type_int64_t=yes
30163else
30164 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030165sed 's/^/| /' conftest.$ac_ext >&5
30166
Reid Spencera773bd52006-08-04 18:18:08 +000030167 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030168fi
Reid Spencera773bd52006-08-04 18:18:08 +000030169
30170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030171fi
Reid Spencera773bd52006-08-04 18:18:08 +000030172{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30173echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030174if test $ac_cv_type_int64_t = yes; then
30175
30176cat >>confdefs.h <<_ACEOF
30177#define HAVE_INT64_T 1
30178_ACEOF
30179
30180
30181else
30182 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30183echo "$as_me: error: Type int64_t required but not found" >&2;}
30184 { (exit 1); exit 1; }; }
30185fi
30186
Reid Spencera773bd52006-08-04 18:18:08 +000030187{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30188echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030189if test "${ac_cv_type_uint64_t+set}" = set; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30191else
30192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030193/* confdefs.h. */
30194_ACEOF
30195cat confdefs.h >>conftest.$ac_ext
30196cat >>conftest.$ac_ext <<_ACEOF
30197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030198$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030199typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030200int
30201main ()
30202{
Reid Spencera773bd52006-08-04 18:18:08 +000030203if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030204 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030205if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030206 return 0;
30207 ;
30208 return 0;
30209}
30210_ACEOF
30211rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030212if { (ac_try="$ac_compile"
30213case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30216esac
30217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30218 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030219 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030220 grep -v '^ *+' conftest.er1 >conftest.err
30221 rm -f conftest.er1
30222 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30226 { (case "(($ac_try" in
30227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228 *) ac_try_echo=$ac_try;;
30229esac
30230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030232 ac_status=$?
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); }; } &&
30235 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030236 { (case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30239esac
30240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030242 ac_status=$?
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; }; then
30245 ac_cv_type_uint64_t=yes
30246else
30247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030248sed 's/^/| /' conftest.$ac_ext >&5
30249
Reid Spencera773bd52006-08-04 18:18:08 +000030250 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030251fi
Reid Spencera773bd52006-08-04 18:18:08 +000030252
30253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030254fi
Reid Spencera773bd52006-08-04 18:18:08 +000030255{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30256echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030257if test $ac_cv_type_uint64_t = yes; then
30258
30259cat >>confdefs.h <<_ACEOF
30260#define HAVE_UINT64_T 1
30261_ACEOF
30262
30263
30264else
Reid Spencera773bd52006-08-04 18:18:08 +000030265 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30266echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030267if test "${ac_cv_type_u_int64_t+set}" = set; then
30268 echo $ECHO_N "(cached) $ECHO_C" >&6
30269else
30270 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030271/* confdefs.h. */
30272_ACEOF
30273cat confdefs.h >>conftest.$ac_ext
30274cat >>conftest.$ac_ext <<_ACEOF
30275/* end confdefs.h. */
30276$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030277typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030278int
30279main ()
30280{
Reid Spencera773bd52006-08-04 18:18:08 +000030281if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030282 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030283if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030284 return 0;
30285 ;
30286 return 0;
30287}
30288_ACEOF
30289rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030290if { (ac_try="$ac_compile"
30291case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30294esac
30295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030297 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030298 grep -v '^ *+' conftest.er1 >conftest.err
30299 rm -f conftest.er1
30300 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30304 { (case "(($ac_try" in
30305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30306 *) ac_try_echo=$ac_try;;
30307esac
30308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30309 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030310 ac_status=$?
30311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312 (exit $ac_status); }; } &&
30313 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030314 { (case "(($ac_try" in
30315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316 *) ac_try_echo=$ac_try;;
30317esac
30318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30319 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000030320 ac_status=$?
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); }; }; then
30323 ac_cv_type_u_int64_t=yes
30324else
30325 echo "$as_me: failed program was:" >&5
30326sed 's/^/| /' conftest.$ac_ext >&5
30327
Reid Spencera773bd52006-08-04 18:18:08 +000030328 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030329fi
Reid Spencera773bd52006-08-04 18:18:08 +000030330
30331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030332fi
Reid Spencera773bd52006-08-04 18:18:08 +000030333{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30334echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030335if test $ac_cv_type_u_int64_t = yes; then
30336
30337cat >>confdefs.h <<_ACEOF
30338#define HAVE_U_INT64_T 1
30339_ACEOF
30340
30341
Misha Brukmanceca9042004-09-02 23:02:30 +000030342else
30343 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30344echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30345 { (exit 1); exit 1; }; }
30346fi
30347
John Criswell679ff312004-09-02 18:44:44 +000030348fi
30349
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030350
30351
30352
30353
30354
30355
30356
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030357
30358
Reid Spencerdf3be822006-01-23 08:15:53 +000030359for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030360do
30361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030362{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30364if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030365 echo $ECHO_N "(cached) $ECHO_C" >&6
30366else
30367 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030368/* confdefs.h. */
30369_ACEOF
30370cat confdefs.h >>conftest.$ac_ext
30371cat >>conftest.$ac_ext <<_ACEOF
30372/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30375#define $ac_func innocuous_$ac_func
30376
30377/* System header to define __stub macros and hopefully few prototypes,
30378 which can conflict with char $ac_func (); below.
30379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30380 <limits.h> exists even on freestanding compilers. */
30381
30382#ifdef __STDC__
30383# include <limits.h>
30384#else
30385# include <assert.h>
30386#endif
30387
30388#undef $ac_func
30389
Reid Spencera773bd52006-08-04 18:18:08 +000030390/* Override any GCC internal prototype to avoid an error.
30391 Use char because int might match the return type of a GCC
30392 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030393#ifdef __cplusplus
30394extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030395#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030396char $ac_func ();
30397/* The GNU C library defines this for functions which it implements
30398 to always fail with ENOSYS. Some functions are actually named
30399 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030400#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030401choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030402#endif
John Criswell7a73b802003-06-30 21:59:07 +000030403
John Criswell7a73b802003-06-30 21:59:07 +000030404int
30405main ()
30406{
Reid Spencera773bd52006-08-04 18:18:08 +000030407return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030408 ;
30409 return 0;
30410}
30411_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030412rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030413if { (ac_try="$ac_link"
30414case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30417esac
30418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030421 grep -v '^ *+' conftest.er1 >conftest.err
30422 rm -f conftest.er1
30423 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30427 { (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 Spencer2706f8c2004-09-19 23:53:36 +000030433 ac_status=$?
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030436 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030437 { (case "(($ac_try" in
30438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439 *) ac_try_echo=$ac_try;;
30440esac
30441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030446 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030447else
30448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030449sed 's/^/| /' conftest.$ac_ext >&5
30450
Reid Spencera773bd52006-08-04 18:18:08 +000030451 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030452fi
Reid Spencera773bd52006-08-04 18:18:08 +000030453
30454rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030455 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030456fi
Reid Spencera773bd52006-08-04 18:18:08 +000030457ac_res=`eval echo '${'$as_ac_var'}'`
30458 { echo "$as_me:$LINENO: result: $ac_res" >&5
30459echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030460if test `eval echo '${'$as_ac_var'}'` = yes; then
30461 cat >>confdefs.h <<_ACEOF
30462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030463_ACEOF
30464
30465fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030466done
John Criswell7a73b802003-06-30 21:59:07 +000030467
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030468
30469
30470
Reid Spencer6af3d262004-12-15 04:01:48 +000030471
Reid Spencer96cf5872007-07-13 10:05:30 +000030472for ac_func in powf fmodf strtof round
30473do
30474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30475{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30478 echo $ECHO_N "(cached) $ECHO_C" >&6
30479else
30480 cat >conftest.$ac_ext <<_ACEOF
30481/* confdefs.h. */
30482_ACEOF
30483cat confdefs.h >>conftest.$ac_ext
30484cat >>conftest.$ac_ext <<_ACEOF
30485/* end confdefs.h. */
30486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30488#define $ac_func innocuous_$ac_func
30489
30490/* System header to define __stub macros and hopefully few prototypes,
30491 which can conflict with char $ac_func (); below.
30492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30493 <limits.h> exists even on freestanding compilers. */
30494
30495#ifdef __STDC__
30496# include <limits.h>
30497#else
30498# include <assert.h>
30499#endif
30500
30501#undef $ac_func
30502
30503/* Override any GCC internal prototype to avoid an error.
30504 Use char because int might match the return type of a GCC
30505 builtin and then its argument prototype would still apply. */
30506#ifdef __cplusplus
30507extern "C"
30508#endif
30509char $ac_func ();
30510/* The GNU C library defines this for functions which it implements
30511 to always fail with ENOSYS. Some functions are actually named
30512 something starting with __ and the normal name is an alias. */
30513#if defined __stub_$ac_func || defined __stub___$ac_func
30514choke me
30515#endif
30516
30517int
30518main ()
30519{
30520return $ac_func ();
30521 ;
30522 return 0;
30523}
30524_ACEOF
30525rm -f conftest.$ac_objext conftest$ac_exeext
30526if { (ac_try="$ac_link"
30527case "(($ac_try" in
30528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529 *) ac_try_echo=$ac_try;;
30530esac
30531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532 (eval "$ac_link") 2>conftest.er1
30533 ac_status=$?
30534 grep -v '^ *+' conftest.er1 >conftest.err
30535 rm -f conftest.er1
30536 cat conftest.err >&5
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); } &&
30539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30540 { (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
30546 ac_status=$?
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; } &&
30549 { ac_try='test -s conftest$ac_exeext'
30550 { (case "(($ac_try" in
30551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552 *) ac_try_echo=$ac_try;;
30553esac
30554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555 (eval "$ac_try") 2>&5
30556 ac_status=$?
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; }; then
30559 eval "$as_ac_var=yes"
30560else
30561 echo "$as_me: failed program was:" >&5
30562sed 's/^/| /' conftest.$ac_ext >&5
30563
30564 eval "$as_ac_var=no"
30565fi
30566
30567rm -f core conftest.err conftest.$ac_objext \
30568 conftest$ac_exeext conftest.$ac_ext
30569fi
30570ac_res=`eval echo '${'$as_ac_var'}'`
30571 { echo "$as_me:$LINENO: result: $ac_res" >&5
30572echo "${ECHO_T}$ac_res" >&6; }
30573if test `eval echo '${'$as_ac_var'}'` = yes; then
30574 cat >>confdefs.h <<_ACEOF
30575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30576_ACEOF
30577
30578fi
30579done
30580
30581
30582
30583
30584
Reid Spencer6af3d262004-12-15 04:01:48 +000030585
Reid Spencerb90645c2007-02-16 19:17:20 +000030586for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30587do
30588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30589{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30592 echo $ECHO_N "(cached) $ECHO_C" >&6
30593else
30594 cat >conftest.$ac_ext <<_ACEOF
30595/* confdefs.h. */
30596_ACEOF
30597cat confdefs.h >>conftest.$ac_ext
30598cat >>conftest.$ac_ext <<_ACEOF
30599/* end confdefs.h. */
30600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30602#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030603
Reid Spencerb90645c2007-02-16 19:17:20 +000030604/* System header to define __stub macros and hopefully few prototypes,
30605 which can conflict with char $ac_func (); below.
30606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30607 <limits.h> exists even on freestanding compilers. */
30608
30609#ifdef __STDC__
30610# include <limits.h>
30611#else
30612# include <assert.h>
30613#endif
30614
30615#undef $ac_func
30616
30617/* Override any GCC internal prototype to avoid an error.
30618 Use char because int might match the return type of a GCC
30619 builtin and then its argument prototype would still apply. */
30620#ifdef __cplusplus
30621extern "C"
30622#endif
30623char $ac_func ();
30624/* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627#if defined __stub_$ac_func || defined __stub___$ac_func
30628choke me
30629#endif
30630
30631int
30632main ()
30633{
30634return $ac_func ();
30635 ;
30636 return 0;
30637}
30638_ACEOF
30639rm -f conftest.$ac_objext conftest$ac_exeext
30640if { (ac_try="$ac_link"
30641case "(($ac_try" in
30642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30643 *) ac_try_echo=$ac_try;;
30644esac
30645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646 (eval "$ac_link") 2>conftest.er1
30647 ac_status=$?
30648 grep -v '^ *+' conftest.er1 >conftest.err
30649 rm -f conftest.er1
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
30653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30654 { (case "(($ac_try" in
30655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656 *) ac_try_echo=$ac_try;;
30657esac
30658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659 (eval "$ac_try") 2>&5
30660 ac_status=$?
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest$ac_exeext'
30664 { (case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30667esac
30668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669 (eval "$ac_try") 2>&5
30670 ac_status=$?
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); }; }; then
30673 eval "$as_ac_var=yes"
30674else
30675 echo "$as_me: failed program was:" >&5
30676sed 's/^/| /' conftest.$ac_ext >&5
30677
30678 eval "$as_ac_var=no"
30679fi
30680
30681rm -f core conftest.err conftest.$ac_objext \
30682 conftest$ac_exeext conftest.$ac_ext
30683fi
30684ac_res=`eval echo '${'$as_ac_var'}'`
30685 { echo "$as_me:$LINENO: result: $ac_res" >&5
30686echo "${ECHO_T}$ac_res" >&6; }
30687if test `eval echo '${'$as_ac_var'}'` = yes; then
30688 cat >>confdefs.h <<_ACEOF
30689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30690_ACEOF
30691
30692fi
30693done
30694
30695
30696
30697
30698for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030699do
30700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030701{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30703if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030704 echo $ECHO_N "(cached) $ECHO_C" >&6
30705else
30706 cat >conftest.$ac_ext <<_ACEOF
30707/* confdefs.h. */
30708_ACEOF
30709cat confdefs.h >>conftest.$ac_ext
30710cat >>conftest.$ac_ext <<_ACEOF
30711/* end confdefs.h. */
30712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30714#define $ac_func innocuous_$ac_func
30715
30716/* System header to define __stub macros and hopefully few prototypes,
30717 which can conflict with char $ac_func (); below.
30718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30719 <limits.h> exists even on freestanding compilers. */
30720
30721#ifdef __STDC__
30722# include <limits.h>
30723#else
30724# include <assert.h>
30725#endif
30726
30727#undef $ac_func
30728
Reid Spencera773bd52006-08-04 18:18:08 +000030729/* Override any GCC internal prototype to avoid an error.
30730 Use char because int might match the return type of a GCC
30731 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030732#ifdef __cplusplus
30733extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030734#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030735char $ac_func ();
30736/* The GNU C library defines this for functions which it implements
30737 to always fail with ENOSYS. Some functions are actually named
30738 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030739#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030740choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030741#endif
30742
30743int
30744main ()
30745{
Reid Spencera773bd52006-08-04 18:18:08 +000030746return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030747 ;
30748 return 0;
30749}
30750_ACEOF
30751rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030752if { (ac_try="$ac_link"
30753case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30756esac
30757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030759 ac_status=$?
30760 grep -v '^ *+' conftest.er1 >conftest.err
30761 rm -f conftest.er1
30762 cat conftest.err >&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30766 { (case "(($ac_try" in
30767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768 *) ac_try_echo=$ac_try;;
30769esac
30770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030772 ac_status=$?
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; } &&
30775 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030776 { (case "(($ac_try" in
30777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30779esac
30780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030782 ac_status=$?
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; }; then
30785 eval "$as_ac_var=yes"
30786else
30787 echo "$as_me: failed program was:" >&5
30788sed 's/^/| /' conftest.$ac_ext >&5
30789
Reid Spencera773bd52006-08-04 18:18:08 +000030790 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030791fi
Reid Spencera773bd52006-08-04 18:18:08 +000030792
30793rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030794 conftest$ac_exeext conftest.$ac_ext
30795fi
Reid Spencera773bd52006-08-04 18:18:08 +000030796ac_res=`eval echo '${'$as_ac_var'}'`
30797 { echo "$as_me:$LINENO: result: $ac_res" >&5
30798echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030799if test `eval echo '${'$as_ac_var'}'` = yes; then
30800 cat >>confdefs.h <<_ACEOF
30801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30802_ACEOF
30803
30804fi
30805done
30806
30807
30808
30809
30810
30811
30812
30813
30814for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030815do
30816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030820 echo $ECHO_N "(cached) $ECHO_C" >&6
30821else
30822 cat >conftest.$ac_ext <<_ACEOF
30823/* confdefs.h. */
30824_ACEOF
30825cat confdefs.h >>conftest.$ac_ext
30826cat >>conftest.$ac_ext <<_ACEOF
30827/* end confdefs.h. */
30828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30830#define $ac_func innocuous_$ac_func
30831
30832/* System header to define __stub macros and hopefully few prototypes,
30833 which can conflict with char $ac_func (); below.
30834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30835 <limits.h> exists even on freestanding compilers. */
30836
30837#ifdef __STDC__
30838# include <limits.h>
30839#else
30840# include <assert.h>
30841#endif
30842
30843#undef $ac_func
30844
Reid Spencera773bd52006-08-04 18:18:08 +000030845/* Override any GCC internal prototype to avoid an error.
30846 Use char because int might match the return type of a GCC
30847 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030848#ifdef __cplusplus
30849extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030850#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030851char $ac_func ();
30852/* The GNU C library defines this for functions which it implements
30853 to always fail with ENOSYS. Some functions are actually named
30854 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030855#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030856choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030857#endif
30858
30859int
30860main ()
30861{
Reid Spencera773bd52006-08-04 18:18:08 +000030862return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030863 ;
30864 return 0;
30865}
30866_ACEOF
30867rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030868if { (ac_try="$ac_link"
30869case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30872esac
30873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030875 ac_status=$?
30876 grep -v '^ *+' conftest.er1 >conftest.err
30877 rm -f conftest.er1
30878 cat conftest.err >&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882 { (case "(($ac_try" in
30883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884 *) ac_try_echo=$ac_try;;
30885esac
30886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030888 ac_status=$?
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030892 { (case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30895esac
30896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
30901 eval "$as_ac_var=yes"
30902else
30903 echo "$as_me: failed program was:" >&5
30904sed 's/^/| /' conftest.$ac_ext >&5
30905
Reid Spencera773bd52006-08-04 18:18:08 +000030906 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030907fi
Reid Spencera773bd52006-08-04 18:18:08 +000030908
30909rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030910 conftest$ac_exeext conftest.$ac_ext
30911fi
Reid Spencera773bd52006-08-04 18:18:08 +000030912ac_res=`eval echo '${'$as_ac_var'}'`
30913 { echo "$as_me:$LINENO: result: $ac_res" >&5
30914echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030915if test `eval echo '${'$as_ac_var'}'` = yes; then
30916 cat >>confdefs.h <<_ACEOF
30917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30918_ACEOF
30919
30920fi
30921done
30922
30923
Reid Spencerba46ca32004-12-31 05:49:15 +000030924
30925
Chris Lattner0b142592005-11-14 06:57:34 +000030926
Chris Lattner511f11d2005-11-14 07:25:50 +000030927for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030928do
30929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030930{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30932if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030933 echo $ECHO_N "(cached) $ECHO_C" >&6
30934else
30935 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030936/* confdefs.h. */
30937_ACEOF
30938cat confdefs.h >>conftest.$ac_ext
30939cat >>conftest.$ac_ext <<_ACEOF
30940/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30943#define $ac_func innocuous_$ac_func
30944
30945/* System header to define __stub macros and hopefully few prototypes,
30946 which can conflict with char $ac_func (); below.
30947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30948 <limits.h> exists even on freestanding compilers. */
30949
30950#ifdef __STDC__
30951# include <limits.h>
30952#else
30953# include <assert.h>
30954#endif
30955
30956#undef $ac_func
30957
Reid Spencera773bd52006-08-04 18:18:08 +000030958/* Override any GCC internal prototype to avoid an error.
30959 Use char because int might match the return type of a GCC
30960 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030961#ifdef __cplusplus
30962extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030963#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030964char $ac_func ();
30965/* The GNU C library defines this for functions which it implements
30966 to always fail with ENOSYS. Some functions are actually named
30967 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030968#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030969choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030970#endif
John Criswell7a73b802003-06-30 21:59:07 +000030971
John Criswell7a73b802003-06-30 21:59:07 +000030972int
30973main ()
30974{
Reid Spencera773bd52006-08-04 18:18:08 +000030975return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030976 ;
30977 return 0;
30978}
30979_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030980rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030981if { (ac_try="$ac_link"
30982case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30985esac
30986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030988 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030989 grep -v '^ *+' conftest.er1 >conftest.err
30990 rm -f conftest.er1
30991 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30995 { (case "(($ac_try" in
30996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30997 *) ac_try_echo=$ac_try;;
30998esac
30999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31000 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031001 ac_status=$?
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031004 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031005 { (case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31008esac
31009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031011 ac_status=$?
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031014 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031015else
31016 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031017sed 's/^/| /' conftest.$ac_ext >&5
31018
Reid Spencera773bd52006-08-04 18:18:08 +000031019 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031020fi
Reid Spencera773bd52006-08-04 18:18:08 +000031021
31022rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031023 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031024fi
Reid Spencera773bd52006-08-04 18:18:08 +000031025ac_res=`eval echo '${'$as_ac_var'}'`
31026 { echo "$as_me:$LINENO: result: $ac_res" >&5
31027echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031028if test `eval echo '${'$as_ac_var'}'` = yes; then
31029 cat >>confdefs.h <<_ACEOF
31030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031031_ACEOF
31032
31033fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031034done
John Criswell7a73b802003-06-30 21:59:07 +000031035
Reid Spencercdb08a32006-06-05 16:11:07 +000031036
31037
31038
31039
Reid Spencerafa22e22006-12-10 23:29:19 +000031040for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031041do
31042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031043{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31045if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031046 echo $ECHO_N "(cached) $ECHO_C" >&6
31047else
31048 cat >conftest.$ac_ext <<_ACEOF
31049/* confdefs.h. */
31050_ACEOF
31051cat confdefs.h >>conftest.$ac_ext
31052cat >>conftest.$ac_ext <<_ACEOF
31053/* end confdefs.h. */
31054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31056#define $ac_func innocuous_$ac_func
31057
31058/* System header to define __stub macros and hopefully few prototypes,
31059 which can conflict with char $ac_func (); below.
31060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31061 <limits.h> exists even on freestanding compilers. */
31062
31063#ifdef __STDC__
31064# include <limits.h>
31065#else
31066# include <assert.h>
31067#endif
31068
31069#undef $ac_func
31070
Reid Spencera773bd52006-08-04 18:18:08 +000031071/* Override any GCC internal prototype to avoid an error.
31072 Use char because int might match the return type of a GCC
31073 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031074#ifdef __cplusplus
31075extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031076#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031077char $ac_func ();
31078/* The GNU C library defines this for functions which it implements
31079 to always fail with ENOSYS. Some functions are actually named
31080 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031081#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031082choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031083#endif
31084
31085int
31086main ()
31087{
Reid Spencera773bd52006-08-04 18:18:08 +000031088return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031089 ;
31090 return 0;
31091}
31092_ACEOF
31093rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031094if { (ac_try="$ac_link"
31095case "(($ac_try" in
31096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31097 *) ac_try_echo=$ac_try;;
31098esac
31099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31100 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031101 ac_status=$?
31102 grep -v '^ *+' conftest.er1 >conftest.err
31103 rm -f conftest.er1
31104 cat conftest.err >&5
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31108 { (case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31111esac
31112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000031114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); }; } &&
31117 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031118 { (case "(($ac_try" in
31119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31120 *) ac_try_echo=$ac_try;;
31121esac
31122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31123 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000031124 ac_status=$?
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; }; then
31127 eval "$as_ac_var=yes"
31128else
31129 echo "$as_me: failed program was:" >&5
31130sed 's/^/| /' conftest.$ac_ext >&5
31131
Reid Spencera773bd52006-08-04 18:18:08 +000031132 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031133fi
Reid Spencera773bd52006-08-04 18:18:08 +000031134
31135rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031136 conftest$ac_exeext conftest.$ac_ext
31137fi
Reid Spencera773bd52006-08-04 18:18:08 +000031138ac_res=`eval echo '${'$as_ac_var'}'`
31139 { echo "$as_me:$LINENO: result: $ac_res" >&5
31140echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031141if test `eval echo '${'$as_ac_var'}'` = yes; then
31142 cat >>confdefs.h <<_ACEOF
31143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31144_ACEOF
31145
31146fi
31147done
31148
Reid Spencera773bd52006-08-04 18:18:08 +000031149{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31150echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031151if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031152 echo $ECHO_N "(cached) $ECHO_C" >&6
31153else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031154 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031155ac_cpp='$CPP $CPPFLAGS'
31156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31158ac_compiler_gnu=$ac_cv_c_compiler_gnu
31159
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031160 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031161 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031162else
31163 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031164
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031165 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031166_ACEOF
31167cat confdefs.h >>conftest.$ac_ext
31168cat >>conftest.$ac_ext <<_ACEOF
31169/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031170
John Criswella0137d32003-10-13 16:22:01 +000031171#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031172#include <stdlib.h>
31173
John Criswella0137d32003-10-13 16:22:01 +000031174int
31175main ()
31176{
31177
Reid Spencer2706f8c2004-09-19 23:53:36 +000031178volatile double A, B;
31179char Buffer[100];
31180A = 1;
31181A /= 10.0;
31182sprintf(Buffer, "%a", A);
31183B = atof(Buffer);
31184if (A != B)
31185 return (1);
31186if (A != 0x1.999999999999ap-4)
31187 return (1);
31188return (0);
John Criswella0137d32003-10-13 16:22:01 +000031189 ;
31190 return 0;
31191}
31192_ACEOF
31193rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031194if { (ac_try="$ac_link"
31195case "(($ac_try" in
31196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197 *) ac_try_echo=$ac_try;;
31198esac
31199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031201 ac_status=$?
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031204 { (case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31207esac
31208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031210 ac_status=$?
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031213 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031214else
31215 echo "$as_me: program exited with status $ac_status" >&5
31216echo "$as_me: failed program was:" >&5
31217sed 's/^/| /' conftest.$ac_ext >&5
31218
31219( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031220llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031221fi
Reid Spencera773bd52006-08-04 18:18:08 +000031222rm -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 +000031223fi
Reid Spencera773bd52006-08-04 18:18:08 +000031224
31225
Reid Spencer2706f8c2004-09-19 23:53:36 +000031226 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031227ac_cpp='$CPP $CPPFLAGS'
31228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31230ac_compiler_gnu=$ac_cv_c_compiler_gnu
31231
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031232fi
Reid Spencera773bd52006-08-04 18:18:08 +000031233{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31234echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031235 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031236
31237cat >>confdefs.h <<\_ACEOF
31238#define HAVE_PRINTF_A 1
31239_ACEOF
31240
Reid Spencer2706f8c2004-09-19 23:53:36 +000031241 fi
John Criswella0137d32003-10-13 16:22:01 +000031242
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031243# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31244# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031245{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31246echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031247if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031248 echo $ECHO_N "(cached) $ECHO_C" >&6
31249else
John Criswell0021c312004-02-13 21:57:29 +000031250 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031251/* confdefs.h. */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031256#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031257int
31258main ()
31259{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031260char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031261 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031262 ;
31263 return 0;
31264}
31265_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031266rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031267if { (ac_try="$ac_link"
31268case "(($ac_try" in
31269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270 *) ac_try_echo=$ac_try;;
31271esac
31272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031275 grep -v '^ *+' conftest.er1 >conftest.err
31276 rm -f conftest.er1
31277 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31284esac
31285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031290 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31294esac
31295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031300 ac_cv_working_alloca_h=yes
31301else
31302 echo "$as_me: failed program was:" >&5
31303sed 's/^/| /' conftest.$ac_ext >&5
31304
Reid Spencera773bd52006-08-04 18:18:08 +000031305 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031306fi
Reid Spencera773bd52006-08-04 18:18:08 +000031307
31308rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031309 conftest$ac_exeext conftest.$ac_ext
31310fi
Reid Spencera773bd52006-08-04 18:18:08 +000031311{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31312echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031313if test $ac_cv_working_alloca_h = yes; then
31314
31315cat >>confdefs.h <<\_ACEOF
31316#define HAVE_ALLOCA_H 1
31317_ACEOF
31318
31319fi
31320
Reid Spencera773bd52006-08-04 18:18:08 +000031321{ echo "$as_me:$LINENO: checking for alloca" >&5
31322echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031323if test "${ac_cv_func_alloca_works+set}" = set; then
31324 echo $ECHO_N "(cached) $ECHO_C" >&6
31325else
31326 cat >conftest.$ac_ext <<_ACEOF
31327/* confdefs.h. */
31328_ACEOF
31329cat confdefs.h >>conftest.$ac_ext
31330cat >>conftest.$ac_ext <<_ACEOF
31331/* end confdefs.h. */
31332#ifdef __GNUC__
31333# define alloca __builtin_alloca
31334#else
31335# ifdef _MSC_VER
31336# include <malloc.h>
31337# define alloca _alloca
31338# else
31339# if HAVE_ALLOCA_H
31340# include <alloca.h>
31341# else
31342# ifdef _AIX
31343 #pragma alloca
31344# else
31345# ifndef alloca /* predefined by HP cc +Olibcalls */
31346char *alloca ();
31347# endif
31348# endif
31349# endif
31350# endif
31351#endif
31352
31353int
31354main ()
31355{
31356char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031357 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031358 ;
31359 return 0;
31360}
31361_ACEOF
31362rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031363if { (ac_try="$ac_link"
31364case "(($ac_try" in
31365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366 *) ac_try_echo=$ac_try;;
31367esac
31368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031370 ac_status=$?
31371 grep -v '^ *+' conftest.er1 >conftest.err
31372 rm -f conftest.er1
31373 cat conftest.err >&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31377 { (case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31380esac
31381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031383 ac_status=$?
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; } &&
31386 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031387 { (case "(($ac_try" in
31388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389 *) ac_try_echo=$ac_try;;
31390esac
31391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31396 ac_cv_func_alloca_works=yes
31397else
31398 echo "$as_me: failed program was:" >&5
31399sed 's/^/| /' conftest.$ac_ext >&5
31400
Reid Spencera773bd52006-08-04 18:18:08 +000031401 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031402fi
Reid Spencera773bd52006-08-04 18:18:08 +000031403
31404rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031405 conftest$ac_exeext conftest.$ac_ext
31406fi
Reid Spencera773bd52006-08-04 18:18:08 +000031407{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31408echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031409
31410if test $ac_cv_func_alloca_works = yes; then
31411
31412cat >>confdefs.h <<\_ACEOF
31413#define HAVE_ALLOCA 1
31414_ACEOF
31415
31416else
31417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31418# that cause trouble. Some versions do not even contain alloca or
31419# contain a buggy version. If you still want to use their alloca,
31420# use ar to extract alloca.o from them instead of compiling alloca.c.
31421
Reid Spencera773bd52006-08-04 18:18:08 +000031422ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031423
31424cat >>confdefs.h <<\_ACEOF
31425#define C_ALLOCA 1
31426_ACEOF
31427
31428
Reid Spencera773bd52006-08-04 18:18:08 +000031429{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31430echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031431if test "${ac_cv_os_cray+set}" = set; then
31432 echo $ECHO_N "(cached) $ECHO_C" >&6
31433else
31434 cat >conftest.$ac_ext <<_ACEOF
31435/* confdefs.h. */
31436_ACEOF
31437cat confdefs.h >>conftest.$ac_ext
31438cat >>conftest.$ac_ext <<_ACEOF
31439/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031440#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031441webecray
31442#else
31443wenotbecray
31444#endif
31445
31446_ACEOF
31447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31448 $EGREP "webecray" >/dev/null 2>&1; then
31449 ac_cv_os_cray=yes
31450else
31451 ac_cv_os_cray=no
31452fi
31453rm -f conftest*
31454
31455fi
Reid Spencera773bd52006-08-04 18:18:08 +000031456{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31457echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031458if test $ac_cv_os_cray = yes; then
31459 for ac_func in _getb67 GETB67 getb67; do
31460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031461{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31463if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031464 echo $ECHO_N "(cached) $ECHO_C" >&6
31465else
31466 cat >conftest.$ac_ext <<_ACEOF
31467/* confdefs.h. */
31468_ACEOF
31469cat confdefs.h >>conftest.$ac_ext
31470cat >>conftest.$ac_ext <<_ACEOF
31471/* end confdefs.h. */
31472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31474#define $ac_func innocuous_$ac_func
31475
31476/* System header to define __stub macros and hopefully few prototypes,
31477 which can conflict with char $ac_func (); below.
31478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31479 <limits.h> exists even on freestanding compilers. */
31480
31481#ifdef __STDC__
31482# include <limits.h>
31483#else
31484# include <assert.h>
31485#endif
31486
31487#undef $ac_func
31488
Reid Spencera773bd52006-08-04 18:18:08 +000031489/* Override any GCC internal prototype to avoid an error.
31490 Use char because int might match the return type of a GCC
31491 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031492#ifdef __cplusplus
31493extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031494#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031495char $ac_func ();
31496/* The GNU C library defines this for functions which it implements
31497 to always fail with ENOSYS. Some functions are actually named
31498 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031499#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031500choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031501#endif
31502
31503int
31504main ()
31505{
Reid Spencera773bd52006-08-04 18:18:08 +000031506return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031507 ;
31508 return 0;
31509}
31510_ACEOF
31511rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031512if { (ac_try="$ac_link"
31513case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516esac
31517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031519 ac_status=$?
31520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 eval "$as_ac_var=yes"
31546else
31547 echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
Reid Spencera773bd52006-08-04 18:18:08 +000031550 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031551fi
Reid Spencera773bd52006-08-04 18:18:08 +000031552
31553rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031554 conftest$ac_exeext conftest.$ac_ext
31555fi
Reid Spencera773bd52006-08-04 18:18:08 +000031556ac_res=`eval echo '${'$as_ac_var'}'`
31557 { echo "$as_me:$LINENO: result: $ac_res" >&5
31558echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031559if test `eval echo '${'$as_ac_var'}'` = yes; then
31560
31561cat >>confdefs.h <<_ACEOF
31562#define CRAY_STACKSEG_END $ac_func
31563_ACEOF
31564
31565 break
31566fi
31567
31568 done
31569fi
31570
Reid Spencera773bd52006-08-04 18:18:08 +000031571{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31572echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031573if test "${ac_cv_c_stack_direction+set}" = set; then
31574 echo $ECHO_N "(cached) $ECHO_C" >&6
31575else
31576 if test "$cross_compiling" = yes; then
31577 ac_cv_c_stack_direction=0
31578else
31579 cat >conftest.$ac_ext <<_ACEOF
31580/* confdefs.h. */
31581_ACEOF
31582cat confdefs.h >>conftest.$ac_ext
31583cat >>conftest.$ac_ext <<_ACEOF
31584/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031585$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031586int
31587find_stack_direction ()
31588{
31589 static char *addr = 0;
31590 auto char dummy;
31591 if (addr == 0)
31592 {
31593 addr = &dummy;
31594 return find_stack_direction ();
31595 }
John Criswell0021c312004-02-13 21:57:29 +000031596 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031597 return (&dummy > addr) ? 1 : -1;
31598}
John Criswell0021c312004-02-13 21:57:29 +000031599
John Criswell0021c312004-02-13 21:57:29 +000031600int
31601main ()
31602{
Reid Spencera773bd52006-08-04 18:18:08 +000031603 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031604}
31605_ACEOF
31606rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031607if { (ac_try="$ac_link"
31608case "(($ac_try" in
31609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610 *) ac_try_echo=$ac_try;;
31611esac
31612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031617 { (case "(($ac_try" in
31618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619 *) ac_try_echo=$ac_try;;
31620esac
31621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031623 ac_status=$?
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031626 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031627else
31628 echo "$as_me: program exited with status $ac_status" >&5
31629echo "$as_me: failed program was:" >&5
31630sed 's/^/| /' conftest.$ac_ext >&5
31631
31632( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031633ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031634fi
Reid Spencera773bd52006-08-04 18:18:08 +000031635rm -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 +000031636fi
Reid Spencera773bd52006-08-04 18:18:08 +000031637
31638
John Criswell0021c312004-02-13 21:57:29 +000031639fi
Reid Spencera773bd52006-08-04 18:18:08 +000031640{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31641echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031642
31643cat >>confdefs.h <<_ACEOF
31644#define STACK_DIRECTION $ac_cv_c_stack_direction
31645_ACEOF
31646
31647
John Criswell0021c312004-02-13 21:57:29 +000031648fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031649
31650
Reid Spencera773bd52006-08-04 18:18:08 +000031651{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31652echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031653if test "${ac_cv_func_rand48+set}" = set; then
31654 echo $ECHO_N "(cached) $ECHO_C" >&6
31655else
Reid Spencera773bd52006-08-04 18:18:08 +000031656 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031657ac_cpp='$CXXCPP $CPPFLAGS'
31658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31661
31662 cat >conftest.$ac_ext <<_ACEOF
31663/* confdefs.h. */
31664_ACEOF
31665cat confdefs.h >>conftest.$ac_ext
31666cat >>conftest.$ac_ext <<_ACEOF
31667/* end confdefs.h. */
31668#include <stdlib.h>
31669int
31670main ()
31671{
31672srand48(0);lrand48();drand48();
31673 ;
31674 return 0;
31675}
31676_ACEOF
31677rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031678if { (ac_try="$ac_compile"
31679case "(($ac_try" in
31680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681 *) ac_try_echo=$ac_try;;
31682esac
31683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031685 ac_status=$?
31686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31692 { (case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31695esac
31696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; } &&
31701 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031702 { (case "(($ac_try" in
31703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 *) ac_try_echo=$ac_try;;
31705esac
31706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708 ac_status=$?
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); }; }; then
31711 ac_cv_func_rand48=yes
31712else
31713 echo "$as_me: failed program was:" >&5
31714sed 's/^/| /' conftest.$ac_ext >&5
31715
Reid Spencera773bd52006-08-04 18:18:08 +000031716 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031717fi
Reid Spencera773bd52006-08-04 18:18:08 +000031718
31719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031720 ac_ext=c
31721ac_cpp='$CPP $CPPFLAGS'
31722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31724ac_compiler_gnu=$ac_cv_c_compiler_gnu
31725
31726fi
Reid Spencera773bd52006-08-04 18:18:08 +000031727{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31728echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031729
31730if test "$ac_cv_func_rand48" = "yes" ; then
31731
31732cat >>confdefs.h <<\_ACEOF
31733#define HAVE_RAND48 1
31734_ACEOF
31735
31736fi
John Criswell0021c312004-02-13 21:57:29 +000031737
31738
Reid Spencera773bd52006-08-04 18:18:08 +000031739{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31740echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031741if test "${ac_cv_cxx_namespaces+set}" = set; then
31742 echo $ECHO_N "(cached) $ECHO_C" >&6
31743else
Reid Spencera773bd52006-08-04 18:18:08 +000031744 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031745ac_cpp='$CXXCPP $CPPFLAGS'
31746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31749
31750 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031751/* confdefs.h. */
31752_ACEOF
31753cat confdefs.h >>conftest.$ac_ext
31754cat >>conftest.$ac_ext <<_ACEOF
31755/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031756namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031757int
31758main ()
31759{
31760using namespace Outer::Inner; return i;
31761 ;
31762 return 0;
31763}
31764_ACEOF
31765rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031766if { (ac_try="$ac_compile"
31767case "(($ac_try" in
31768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31769 *) ac_try_echo=$ac_try;;
31770esac
31771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31772 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031774 grep -v '^ *+' conftest.er1 >conftest.err
31775 rm -f conftest.er1
31776 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31780 { (case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31783esac
31784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031786 ac_status=$?
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; } &&
31789 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031790 { (case "(($ac_try" in
31791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792 *) ac_try_echo=$ac_try;;
31793esac
31794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31795 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031796 ac_status=$?
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); }; }; then
31799 ac_cv_cxx_namespaces=yes
31800else
31801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031802sed 's/^/| /' conftest.$ac_ext >&5
31803
Reid Spencera773bd52006-08-04 18:18:08 +000031804 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031805fi
Reid Spencera773bd52006-08-04 18:18:08 +000031806
31807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031808 ac_ext=c
31809ac_cpp='$CPP $CPPFLAGS'
31810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31812ac_compiler_gnu=$ac_cv_c_compiler_gnu
31813
31814
31815fi
Reid Spencera773bd52006-08-04 18:18:08 +000031816{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31817echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031818if test "$ac_cv_cxx_namespaces" = yes; then
31819
31820cat >>confdefs.h <<\_ACEOF
31821#define HAVE_NAMESPACES
31822_ACEOF
31823
31824fi
31825
Reid Spencera773bd52006-08-04 18:18:08 +000031826{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31827echo $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 +000031828if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031829 echo $ECHO_N "(cached) $ECHO_C" >&6
31830else
31831
Reid Spencera773bd52006-08-04 18:18:08 +000031832 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031833ac_cpp='$CXXCPP $CPPFLAGS'
31834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31837
31838 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031839/* confdefs.h. */
31840_ACEOF
31841cat confdefs.h >>conftest.$ac_ext
31842cat >>conftest.$ac_ext <<_ACEOF
31843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031844#include <ext/hash_map>
31845#ifdef HAVE_NAMESPACES
31846using namespace std;
31847#endif
John Criswell7a73b802003-06-30 21:59:07 +000031848int
31849main ()
31850{
Brian Gaeke90583492003-11-10 03:06:28 +000031851hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031852 ;
31853 return 0;
31854}
31855_ACEOF
31856rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031857if { (ac_try="$ac_compile"
31858case "(($ac_try" in
31859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31860 *) ac_try_echo=$ac_try;;
31861esac
31862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31863 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031865 grep -v '^ *+' conftest.er1 >conftest.err
31866 rm -f conftest.er1
31867 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31871 { (case "(($ac_try" in
31872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31873 *) ac_try_echo=$ac_try;;
31874esac
31875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31876 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; } &&
31880 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031881 { (case "(($ac_try" in
31882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883 *) ac_try_echo=$ac_try;;
31884esac
31885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031887 ac_status=$?
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031890 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031891else
31892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031893sed 's/^/| /' conftest.$ac_ext >&5
31894
Reid Spencera773bd52006-08-04 18:18:08 +000031895 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031896fi
Reid Spencera773bd52006-08-04 18:18:08 +000031897
31898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031899 ac_ext=c
31900ac_cpp='$CPP $CPPFLAGS'
31901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31903ac_compiler_gnu=$ac_cv_c_compiler_gnu
31904
John Criswell7a73b802003-06-30 21:59:07 +000031905fi
Reid Spencera773bd52006-08-04 18:18:08 +000031906{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31907echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031908 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31909 then
John Criswell9f011862004-09-24 18:28:00 +000031910
31911cat >>confdefs.h <<\_ACEOF
31912#define HAVE_STD_EXT_HASH_MAP 1
31913_ACEOF
31914
31915 else
31916
31917cat >>confdefs.h <<\_ACEOF
31918#define HAVE_STD_EXT_HASH_MAP 0
31919_ACEOF
31920
Brian Gaeke90583492003-11-10 03:06:28 +000031921 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031922
Reid Spencera773bd52006-08-04 18:18:08 +000031923 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31924echo $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 +000031925if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31926 echo $ECHO_N "(cached) $ECHO_C" >&6
31927else
31928
Reid Spencera773bd52006-08-04 18:18:08 +000031929 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031930ac_cpp='$CXXCPP $CPPFLAGS'
31931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31934
31935 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031936/* confdefs.h. */
31937_ACEOF
31938cat confdefs.h >>conftest.$ac_ext
31939cat >>conftest.$ac_ext <<_ACEOF
31940/* end confdefs.h. */
31941#include <ext/hash_map>
31942#ifdef HAVE_NAMESPACES
31943using namespace __gnu_cxx;
31944#endif
31945int
31946main ()
31947{
31948hash_map<int,int> t;
31949 ;
31950 return 0;
31951}
31952_ACEOF
31953rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031954if { (ac_try="$ac_compile"
31955case "(($ac_try" in
31956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957 *) ac_try_echo=$ac_try;;
31958esac
31959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031962 grep -v '^ *+' conftest.er1 >conftest.err
31963 rm -f conftest.er1
31964 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31968 { (case "(($ac_try" in
31969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31970 *) ac_try_echo=$ac_try;;
31971esac
31972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31973 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031974 ac_status=$?
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; } &&
31977 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031978 { (case "(($ac_try" in
31979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31980 *) ac_try_echo=$ac_try;;
31981esac
31982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31983 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031984 ac_status=$?
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); }; }; then
31987 ac_cv_cxx_have_gnu_ext_hash_map=yes
31988else
31989 echo "$as_me: failed program was:" >&5
31990sed 's/^/| /' conftest.$ac_ext >&5
31991
Reid Spencera773bd52006-08-04 18:18:08 +000031992 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031993fi
Reid Spencera773bd52006-08-04 18:18:08 +000031994
31995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031996 ac_ext=c
31997ac_cpp='$CPP $CPPFLAGS'
31998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32000ac_compiler_gnu=$ac_cv_c_compiler_gnu
32001
32002fi
Reid Spencera773bd52006-08-04 18:18:08 +000032003{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32004echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032005 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32006 then
John Criswell9f011862004-09-24 18:28:00 +000032007
32008cat >>confdefs.h <<\_ACEOF
32009#define HAVE_GNU_EXT_HASH_MAP 1
32010_ACEOF
32011
32012 else
32013
32014cat >>confdefs.h <<\_ACEOF
32015#define HAVE_GNU_EXT_HASH_MAP 0
32016_ACEOF
32017
Brian Gaeke90583492003-11-10 03:06:28 +000032018 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032019
Reid Spencera773bd52006-08-04 18:18:08 +000032020 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32021echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032022if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32023 echo $ECHO_N "(cached) $ECHO_C" >&6
32024else
John Criswell7a73b802003-06-30 21:59:07 +000032025
Reid Spencera773bd52006-08-04 18:18:08 +000032026 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032027ac_cpp='$CXXCPP $CPPFLAGS'
32028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32031
32032 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032033/* confdefs.h. */
32034_ACEOF
32035cat confdefs.h >>conftest.$ac_ext
32036cat >>conftest.$ac_ext <<_ACEOF
32037/* end confdefs.h. */
32038#include <hash_map>
32039int
32040main ()
32041{
32042hash_map<int,int> t;
32043 ;
32044 return 0;
32045}
32046_ACEOF
32047rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032048if { (ac_try="$ac_compile"
32049case "(($ac_try" in
32050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051 *) ac_try_echo=$ac_try;;
32052esac
32053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032055 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032056 grep -v '^ *+' conftest.er1 >conftest.err
32057 rm -f conftest.er1
32058 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32062 { (case "(($ac_try" in
32063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32064 *) ac_try_echo=$ac_try;;
32065esac
32066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32067 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032068 ac_status=$?
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); }; } &&
32071 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032072 { (case "(($ac_try" in
32073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074 *) ac_try_echo=$ac_try;;
32075esac
32076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032078 ac_status=$?
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); }; }; then
32081 ac_cv_cxx_have_global_hash_map=yes
32082else
32083 echo "$as_me: failed program was:" >&5
32084sed 's/^/| /' conftest.$ac_ext >&5
32085
Reid Spencera773bd52006-08-04 18:18:08 +000032086 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032087fi
Reid Spencera773bd52006-08-04 18:18:08 +000032088
32089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032090 ac_ext=c
32091ac_cpp='$CPP $CPPFLAGS'
32092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32094ac_compiler_gnu=$ac_cv_c_compiler_gnu
32095
32096fi
Reid Spencera773bd52006-08-04 18:18:08 +000032097{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32098echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032099 if test "$ac_cv_cxx_have_global_hash_map" = yes
32100 then
John Criswell9f011862004-09-24 18:28:00 +000032101
32102cat >>confdefs.h <<\_ACEOF
32103#define HAVE_GLOBAL_HASH_MAP 1
32104_ACEOF
32105
32106 else
32107
32108cat >>confdefs.h <<\_ACEOF
32109#define HAVE_GLOBAL_HASH_MAP 0
32110_ACEOF
32111
Brian Gaeke90583492003-11-10 03:06:28 +000032112 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032113
Reid Spencera773bd52006-08-04 18:18:08 +000032114{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32115echo $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 +000032116if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032117 echo $ECHO_N "(cached) $ECHO_C" >&6
32118else
32119
Reid Spencera773bd52006-08-04 18:18:08 +000032120 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032121ac_cpp='$CXXCPP $CPPFLAGS'
32122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32125
32126 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032127/* confdefs.h. */
32128_ACEOF
32129cat confdefs.h >>conftest.$ac_ext
32130cat >>conftest.$ac_ext <<_ACEOF
32131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032132#include <ext/hash_set>
32133#ifdef HAVE_NAMESPACES
32134using namespace std;
32135#endif
John Criswell7a73b802003-06-30 21:59:07 +000032136int
32137main ()
32138{
Brian Gaeke90583492003-11-10 03:06:28 +000032139hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032140 ;
32141 return 0;
32142}
32143_ACEOF
32144rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032145if { (ac_try="$ac_compile"
32146case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32149esac
32150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032153 grep -v '^ *+' conftest.er1 >conftest.err
32154 rm -f conftest.er1
32155 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32159 { (case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32162esac
32163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; } &&
32168 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032169 { (case "(($ac_try" in
32170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32171 *) ac_try_echo=$ac_try;;
32172esac
32173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32174 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032175 ac_status=$?
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032178 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032179else
32180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032181sed 's/^/| /' conftest.$ac_ext >&5
32182
Reid Spencera773bd52006-08-04 18:18:08 +000032183 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032184fi
Reid Spencera773bd52006-08-04 18:18:08 +000032185
32186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032187 ac_ext=c
32188ac_cpp='$CPP $CPPFLAGS'
32189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32191ac_compiler_gnu=$ac_cv_c_compiler_gnu
32192
32193fi
Reid Spencera773bd52006-08-04 18:18:08 +000032194{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32195echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032196 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32197 then
John Criswell9f011862004-09-24 18:28:00 +000032198
32199cat >>confdefs.h <<\_ACEOF
32200#define HAVE_STD_EXT_HASH_SET 1
32201_ACEOF
32202
32203 else
32204
32205cat >>confdefs.h <<\_ACEOF
32206#define HAVE_STD_EXT_HASH_SET 0
32207_ACEOF
32208
Brian Gaeke90583492003-11-10 03:06:28 +000032209 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032210
Reid Spencera773bd52006-08-04 18:18:08 +000032211 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32212echo $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 +000032213if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32214 echo $ECHO_N "(cached) $ECHO_C" >&6
32215else
32216
Reid Spencera773bd52006-08-04 18:18:08 +000032217 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032218ac_cpp='$CXXCPP $CPPFLAGS'
32219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32222
John Criswell7a73b802003-06-30 21:59:07 +000032223 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032224/* confdefs.h. */
32225_ACEOF
32226cat confdefs.h >>conftest.$ac_ext
32227cat >>conftest.$ac_ext <<_ACEOF
32228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032229#include <ext/hash_set>
32230#ifdef HAVE_NAMESPACES
32231using namespace __gnu_cxx;
32232#endif
John Criswell7a73b802003-06-30 21:59:07 +000032233int
32234main ()
32235{
Brian Gaeke90583492003-11-10 03:06:28 +000032236hash_set<int> t;
32237 ;
32238 return 0;
32239}
32240_ACEOF
32241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032242if { (ac_try="$ac_compile"
32243case "(($ac_try" in
32244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32246esac
32247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032249 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032250 grep -v '^ *+' conftest.er1 >conftest.err
32251 rm -f conftest.er1
32252 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32259esac
32260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; } &&
32265 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032266 { (case "(($ac_try" in
32267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268 *) ac_try_echo=$ac_try;;
32269esac
32270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032272 ac_status=$?
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); }; }; then
32275 ac_cv_cxx_have_gnu_ext_hash_set=yes
32276else
32277 echo "$as_me: failed program was:" >&5
32278sed 's/^/| /' conftest.$ac_ext >&5
32279
Reid Spencera773bd52006-08-04 18:18:08 +000032280 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032281fi
Reid Spencera773bd52006-08-04 18:18:08 +000032282
32283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032284 ac_ext=c
32285ac_cpp='$CPP $CPPFLAGS'
32286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32288ac_compiler_gnu=$ac_cv_c_compiler_gnu
32289
32290fi
Reid Spencera773bd52006-08-04 18:18:08 +000032291{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32292echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032293 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32294 then
John Criswell9f011862004-09-24 18:28:00 +000032295
32296cat >>confdefs.h <<\_ACEOF
32297#define HAVE_GNU_EXT_HASH_SET 1
32298_ACEOF
32299
32300 else
32301
32302cat >>confdefs.h <<\_ACEOF
32303#define HAVE_GNU_EXT_HASH_SET 0
32304_ACEOF
32305
Brian Gaeke90583492003-11-10 03:06:28 +000032306 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032307
Reid Spencera773bd52006-08-04 18:18:08 +000032308 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32309echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032310if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32312else
32313
Reid Spencera773bd52006-08-04 18:18:08 +000032314 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032315ac_cpp='$CXXCPP $CPPFLAGS'
32316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32319
32320 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032321/* confdefs.h. */
32322_ACEOF
32323cat confdefs.h >>conftest.$ac_ext
32324cat >>conftest.$ac_ext <<_ACEOF
32325/* end confdefs.h. */
32326#include <hash_set>
32327int
32328main ()
32329{
John Criswell7a73b802003-06-30 21:59:07 +000032330hash_set<int> t; return 0;
32331 ;
32332 return 0;
32333}
32334_ACEOF
32335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032336if { (ac_try="$ac_compile"
32337case "(($ac_try" in
32338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339 *) ac_try_echo=$ac_try;;
32340esac
32341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32342 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032344 grep -v '^ *+' conftest.er1 >conftest.err
32345 rm -f conftest.er1
32346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32350 { (case "(($ac_try" in
32351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352 *) ac_try_echo=$ac_try;;
32353esac
32354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032356 ac_status=$?
32357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358 (exit $ac_status); }; } &&
32359 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032360 { (case "(($ac_try" in
32361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362 *) ac_try_echo=$ac_try;;
32363esac
32364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032366 ac_status=$?
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032369 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032370else
32371 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032372sed 's/^/| /' conftest.$ac_ext >&5
32373
Reid Spencera773bd52006-08-04 18:18:08 +000032374 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032375fi
Reid Spencera773bd52006-08-04 18:18:08 +000032376
32377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032378 ac_ext=c
32379ac_cpp='$CPP $CPPFLAGS'
32380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32382ac_compiler_gnu=$ac_cv_c_compiler_gnu
32383
John Criswell7a73b802003-06-30 21:59:07 +000032384fi
Reid Spencera773bd52006-08-04 18:18:08 +000032385{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32386echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032387 if test "$ac_cv_cxx_have_global_hash_set" = yes
32388 then
John Criswell9f011862004-09-24 18:28:00 +000032389
32390cat >>confdefs.h <<\_ACEOF
32391#define HAVE_GLOBAL_HASH_SET 1
32392_ACEOF
32393
32394 else
32395
32396cat >>confdefs.h <<\_ACEOF
32397#define HAVE_GLOBAL_HASH_SET 0
32398_ACEOF
32399
Brian Gaeke90583492003-11-10 03:06:28 +000032400 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032401
Reid Spencera773bd52006-08-04 18:18:08 +000032402{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32403echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032404if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32406else
32407
Reid Spencera773bd52006-08-04 18:18:08 +000032408 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032409ac_cpp='$CXXCPP $CPPFLAGS'
32410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32413
32414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032415/* confdefs.h. */
32416_ACEOF
32417cat confdefs.h >>conftest.$ac_ext
32418cat >>conftest.$ac_ext <<_ACEOF
32419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032420#include <iterator>
32421#ifdef HAVE_NAMESPACES
32422using namespace std;
32423#endif
John Criswell7a73b802003-06-30 21:59:07 +000032424int
32425main ()
32426{
32427iterator<int,int,int> t; return 0;
32428 ;
32429 return 0;
32430}
32431_ACEOF
32432rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032433if { (ac_try="$ac_compile"
32434case "(($ac_try" in
32435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436 *) ac_try_echo=$ac_try;;
32437esac
32438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032441 grep -v '^ *+' conftest.er1 >conftest.err
32442 rm -f conftest.er1
32443 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32447 { (case "(($ac_try" in
32448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449 *) ac_try_echo=$ac_try;;
32450esac
32451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032453 ac_status=$?
32454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455 (exit $ac_status); }; } &&
32456 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032457 { (case "(($ac_try" in
32458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32459 *) ac_try_echo=$ac_try;;
32460esac
32461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32462 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032463 ac_status=$?
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); }; }; then
32466 ac_cv_cxx_have_std_iterator=yes
32467else
32468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032469sed 's/^/| /' conftest.$ac_ext >&5
32470
Reid Spencera773bd52006-08-04 18:18:08 +000032471 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032472fi
Reid Spencera773bd52006-08-04 18:18:08 +000032473
32474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032475 ac_ext=c
32476ac_cpp='$CPP $CPPFLAGS'
32477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32479ac_compiler_gnu=$ac_cv_c_compiler_gnu
32480
32481
32482fi
Reid Spencera773bd52006-08-04 18:18:08 +000032483{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32484echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032485if test "$ac_cv_cxx_have_std_iterator" = yes
32486then
John Criswell40468462004-09-24 21:19:06 +000032487
32488cat >>confdefs.h <<\_ACEOF
32489#define HAVE_STD_ITERATOR 1
32490_ACEOF
32491
32492else
32493
32494cat >>confdefs.h <<\_ACEOF
32495#define HAVE_STD_ITERATOR 0
32496_ACEOF
32497
John Criswell7a73b802003-06-30 21:59:07 +000032498fi
32499
Reid Spencera773bd52006-08-04 18:18:08 +000032500{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32501echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032502if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32503 echo $ECHO_N "(cached) $ECHO_C" >&6
32504else
32505
Reid Spencera773bd52006-08-04 18:18:08 +000032506 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032507ac_cpp='$CXXCPP $CPPFLAGS'
32508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32511
32512 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032513/* confdefs.h. */
32514_ACEOF
32515cat confdefs.h >>conftest.$ac_ext
32516cat >>conftest.$ac_ext <<_ACEOF
32517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032518#include <iterator>
32519#ifdef HAVE_NAMESPACES
32520using namespace std;
32521#endif
John Criswell7a73b802003-06-30 21:59:07 +000032522int
32523main ()
32524{
John Criswellc78022e2003-07-29 19:11:58 +000032525bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032526 ;
32527 return 0;
32528}
32529_ACEOF
32530rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032531if { (ac_try="$ac_compile"
32532case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32535esac
32536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032538 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032539 grep -v '^ *+' conftest.er1 >conftest.err
32540 rm -f conftest.er1
32541 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32545 { (case "(($ac_try" in
32546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547 *) ac_try_echo=$ac_try;;
32548esac
32549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032551 ac_status=$?
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); }; } &&
32554 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032555 { (case "(($ac_try" in
32556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557 *) ac_try_echo=$ac_try;;
32558esac
32559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032561 ac_status=$?
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; }; then
32564 ac_cv_cxx_have_bi_iterator=yes
32565else
32566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032567sed 's/^/| /' conftest.$ac_ext >&5
32568
Reid Spencera773bd52006-08-04 18:18:08 +000032569 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032570fi
Reid Spencera773bd52006-08-04 18:18:08 +000032571
32572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032573 ac_ext=c
32574ac_cpp='$CPP $CPPFLAGS'
32575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32577ac_compiler_gnu=$ac_cv_c_compiler_gnu
32578
32579
32580fi
Reid Spencera773bd52006-08-04 18:18:08 +000032581{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32582echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032583if test "$ac_cv_cxx_have_bi_iterator" = yes
32584then
John Criswell40468462004-09-24 21:19:06 +000032585
32586cat >>confdefs.h <<\_ACEOF
32587#define HAVE_BI_ITERATOR 1
32588_ACEOF
32589
32590else
32591
32592cat >>confdefs.h <<\_ACEOF
32593#define HAVE_BI_ITERATOR 0
32594_ACEOF
32595
John Criswell7a73b802003-06-30 21:59:07 +000032596fi
32597
Reid Spencera773bd52006-08-04 18:18:08 +000032598{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32599echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032600if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32601 echo $ECHO_N "(cached) $ECHO_C" >&6
32602else
32603
Reid Spencera773bd52006-08-04 18:18:08 +000032604 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032605ac_cpp='$CXXCPP $CPPFLAGS'
32606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32609
32610 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032611/* confdefs.h. */
32612_ACEOF
32613cat confdefs.h >>conftest.$ac_ext
32614cat >>conftest.$ac_ext <<_ACEOF
32615/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032616#include <iterator>
32617#ifdef HAVE_NAMESPACES
32618using namespace std;
32619#endif
John Criswell7a73b802003-06-30 21:59:07 +000032620int
32621main ()
32622{
John Criswellc78022e2003-07-29 19:11:58 +000032623forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032624 ;
32625 return 0;
32626}
32627_ACEOF
32628rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032629if { (ac_try="$ac_compile"
32630case "(($ac_try" in
32631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632 *) ac_try_echo=$ac_try;;
32633esac
32634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032636 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032637 grep -v '^ *+' conftest.er1 >conftest.err
32638 rm -f conftest.er1
32639 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32643 { (case "(($ac_try" in
32644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32645 *) ac_try_echo=$ac_try;;
32646esac
32647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32648 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032649 ac_status=$?
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; } &&
32652 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032653 { (case "(($ac_try" in
32654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32655 *) ac_try_echo=$ac_try;;
32656esac
32657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32658 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032659 ac_status=$?
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); }; }; then
32662 ac_cv_cxx_have_fwd_iterator=yes
32663else
32664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032665sed 's/^/| /' conftest.$ac_ext >&5
32666
Reid Spencera773bd52006-08-04 18:18:08 +000032667 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032668fi
Reid Spencera773bd52006-08-04 18:18:08 +000032669
32670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032671 ac_ext=c
32672ac_cpp='$CPP $CPPFLAGS'
32673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675ac_compiler_gnu=$ac_cv_c_compiler_gnu
32676
32677
32678fi
Reid Spencera773bd52006-08-04 18:18:08 +000032679{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32680echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032681if test "$ac_cv_cxx_have_fwd_iterator" = yes
32682then
John Criswell40468462004-09-24 21:19:06 +000032683
32684cat >>confdefs.h <<\_ACEOF
32685#define HAVE_FWD_ITERATOR 1
32686_ACEOF
32687
32688else
32689
32690cat >>confdefs.h <<\_ACEOF
32691#define HAVE_FWD_ITERATOR 0
32692_ACEOF
32693
John Criswell7a73b802003-06-30 21:59:07 +000032694fi
32695
32696
Reid Spencera773bd52006-08-04 18:18:08 +000032697{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32698echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032699if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32700 echo $ECHO_N "(cached) $ECHO_C" >&6
32701else
Reid Spencera773bd52006-08-04 18:18:08 +000032702 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032703ac_cpp='$CXXCPP $CPPFLAGS'
32704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32707
Reid Spencerabec8f92004-10-27 23:03:44 +000032708 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032709/* confdefs.h. */
32710_ACEOF
32711cat confdefs.h >>conftest.$ac_ext
32712cat >>conftest.$ac_ext <<_ACEOF
32713/* end confdefs.h. */
32714#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032715int
32716main ()
32717{
32718float f; isnan(f);
32719 ;
32720 return 0;
32721}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032722_ACEOF
32723rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032724if { (ac_try="$ac_compile"
32725case "(($ac_try" in
32726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32727 *) ac_try_echo=$ac_try;;
32728esac
32729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32730 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032731 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032732 grep -v '^ *+' conftest.er1 >conftest.err
32733 rm -f conftest.er1
32734 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32738 { (case "(($ac_try" in
32739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740 *) ac_try_echo=$ac_try;;
32741esac
32742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032744 ac_status=$?
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; } &&
32747 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032748 { (case "(($ac_try" in
32749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750 *) ac_try_echo=$ac_try;;
32751esac
32752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032754 ac_status=$?
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); }; }; then
32757 ac_cv_func_isnan_in_math_h=yes
32758else
32759 echo "$as_me: failed program was:" >&5
32760sed 's/^/| /' conftest.$ac_ext >&5
32761
Reid Spencera773bd52006-08-04 18:18:08 +000032762 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032763fi
Reid Spencera773bd52006-08-04 18:18:08 +000032764
32765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032766 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032767ac_cpp='$CPP $CPPFLAGS'
32768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32770ac_compiler_gnu=$ac_cv_c_compiler_gnu
32771
32772fi
Reid Spencera773bd52006-08-04 18:18:08 +000032773{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32774echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032775
32776
32777if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032778
32779cat >>confdefs.h <<\_ACEOF
32780#define HAVE_ISNAN_IN_MATH_H 1
32781_ACEOF
32782
Reid Spencerabec8f92004-10-27 23:03:44 +000032783fi
32784
Reid Spencera773bd52006-08-04 18:18:08 +000032785{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32786echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032787if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32788 echo $ECHO_N "(cached) $ECHO_C" >&6
32789else
Reid Spencera773bd52006-08-04 18:18:08 +000032790 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032791ac_cpp='$CXXCPP $CPPFLAGS'
32792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32795
Reid Spencerabec8f92004-10-27 23:03:44 +000032796 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032797/* confdefs.h. */
32798_ACEOF
32799cat confdefs.h >>conftest.$ac_ext
32800cat >>conftest.$ac_ext <<_ACEOF
32801/* end confdefs.h. */
32802#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032803int
32804main ()
32805{
32806float f; isnan(f);
32807 ;
32808 return 0;
32809}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032810_ACEOF
32811rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032812if { (ac_try="$ac_compile"
32813case "(($ac_try" in
32814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32815 *) ac_try_echo=$ac_try;;
32816esac
32817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32818 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032820 grep -v '^ *+' conftest.er1 >conftest.err
32821 rm -f conftest.er1
32822 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32826 { (case "(($ac_try" in
32827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32828 *) ac_try_echo=$ac_try;;
32829esac
32830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32831 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032832 ac_status=$?
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); }; } &&
32835 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032836 { (case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32839esac
32840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032842 ac_status=$?
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); }; }; then
32845 ac_cv_func_isnan_in_cmath=yes
32846else
32847 echo "$as_me: failed program was:" >&5
32848sed 's/^/| /' conftest.$ac_ext >&5
32849
Reid Spencera773bd52006-08-04 18:18:08 +000032850 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032851fi
Reid Spencera773bd52006-08-04 18:18:08 +000032852
32853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032854 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032855ac_cpp='$CPP $CPPFLAGS'
32856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32858ac_compiler_gnu=$ac_cv_c_compiler_gnu
32859
32860fi
Reid Spencera773bd52006-08-04 18:18:08 +000032861{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32862echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032863
32864if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032865
32866cat >>confdefs.h <<\_ACEOF
32867#define HAVE_ISNAN_IN_CMATH 1
32868_ACEOF
32869
Reid Spencerabec8f92004-10-27 23:03:44 +000032870fi
32871
Reid Spencera773bd52006-08-04 18:18:08 +000032872{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32873echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032874if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32875 echo $ECHO_N "(cached) $ECHO_C" >&6
32876else
Reid Spencera773bd52006-08-04 18:18:08 +000032877 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032878ac_cpp='$CXXCPP $CPPFLAGS'
32879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32882
Reid Spencerabec8f92004-10-27 23:03:44 +000032883 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032884/* confdefs.h. */
32885_ACEOF
32886cat confdefs.h >>conftest.$ac_ext
32887cat >>conftest.$ac_ext <<_ACEOF
32888/* end confdefs.h. */
32889#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032890int
32891main ()
32892{
32893float f; std::isnan(f);
32894 ;
32895 return 0;
32896}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032897_ACEOF
32898rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032899if { (ac_try="$ac_compile"
32900case "(($ac_try" in
32901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32902 *) ac_try_echo=$ac_try;;
32903esac
32904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32905 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032907 grep -v '^ *+' conftest.er1 >conftest.err
32908 rm -f conftest.er1
32909 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32913 { (case "(($ac_try" in
32914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32915 *) ac_try_echo=$ac_try;;
32916esac
32917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32918 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032919 ac_status=$?
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); }; } &&
32922 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032923 { (case "(($ac_try" in
32924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925 *) ac_try_echo=$ac_try;;
32926esac
32927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032929 ac_status=$?
32930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32931 (exit $ac_status); }; }; then
32932 ac_cv_func_std_isnan_in_cmath=yes
32933else
32934 echo "$as_me: failed program was:" >&5
32935sed 's/^/| /' conftest.$ac_ext >&5
32936
Reid Spencera773bd52006-08-04 18:18:08 +000032937 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032938fi
Reid Spencera773bd52006-08-04 18:18:08 +000032939
32940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032941 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032942ac_cpp='$CPP $CPPFLAGS'
32943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32945ac_compiler_gnu=$ac_cv_c_compiler_gnu
32946
32947fi
Reid Spencera773bd52006-08-04 18:18:08 +000032948{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32949echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032950
32951if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032952
32953cat >>confdefs.h <<\_ACEOF
32954#define HAVE_STD_ISNAN_IN_CMATH 1
32955_ACEOF
32956
Reid Spencerabec8f92004-10-27 23:03:44 +000032957fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032958
32959
Reid Spencera773bd52006-08-04 18:18:08 +000032960{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32961echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032962if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32963 echo $ECHO_N "(cached) $ECHO_C" >&6
32964else
Reid Spencera773bd52006-08-04 18:18:08 +000032965 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032966ac_cpp='$CXXCPP $CPPFLAGS'
32967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32970
Reid Spencerabec8f92004-10-27 23:03:44 +000032971 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032972/* confdefs.h. */
32973_ACEOF
32974cat confdefs.h >>conftest.$ac_ext
32975cat >>conftest.$ac_ext <<_ACEOF
32976/* end confdefs.h. */
32977#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032978int
32979main ()
32980{
32981float f; isinf(f);
32982 ;
32983 return 0;
32984}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032985_ACEOF
32986rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032987if { (ac_try="$ac_compile"
32988case "(($ac_try" in
32989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990 *) ac_try_echo=$ac_try;;
32991esac
32992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032994 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032995 grep -v '^ *+' conftest.er1 >conftest.err
32996 rm -f conftest.er1
32997 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33001 { (case "(($ac_try" in
33002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003 *) ac_try_echo=$ac_try;;
33004esac
33005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033007 ac_status=$?
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; } &&
33010 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033011 { (case "(($ac_try" in
33012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013 *) ac_try_echo=$ac_try;;
33014esac
33015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033017 ac_status=$?
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; }; then
33020 ac_cv_func_isinf_in_math_h=yes
33021else
33022 echo "$as_me: failed program was:" >&5
33023sed 's/^/| /' conftest.$ac_ext >&5
33024
Reid Spencera773bd52006-08-04 18:18:08 +000033025 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033026fi
Reid Spencera773bd52006-08-04 18:18:08 +000033027
33028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033029 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033030ac_cpp='$CPP $CPPFLAGS'
33031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33033ac_compiler_gnu=$ac_cv_c_compiler_gnu
33034
33035fi
Reid Spencera773bd52006-08-04 18:18:08 +000033036{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33037echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033038
33039if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033040
33041cat >>confdefs.h <<\_ACEOF
33042#define HAVE_ISINF_IN_MATH_H 1
33043_ACEOF
33044
Reid Spencerabec8f92004-10-27 23:03:44 +000033045fi
33046
Reid Spencera773bd52006-08-04 18:18:08 +000033047{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33048echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033049if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33050 echo $ECHO_N "(cached) $ECHO_C" >&6
33051else
Reid Spencera773bd52006-08-04 18:18:08 +000033052 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033053ac_cpp='$CXXCPP $CPPFLAGS'
33054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33057
Reid Spencerabec8f92004-10-27 23:03:44 +000033058 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033059/* confdefs.h. */
33060_ACEOF
33061cat confdefs.h >>conftest.$ac_ext
33062cat >>conftest.$ac_ext <<_ACEOF
33063/* end confdefs.h. */
33064#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033065int
33066main ()
33067{
33068float f; isinf(f);
33069 ;
33070 return 0;
33071}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033072_ACEOF
33073rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033074if { (ac_try="$ac_compile"
33075case "(($ac_try" in
33076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33077 *) ac_try_echo=$ac_try;;
33078esac
33079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33080 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033081 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033082 grep -v '^ *+' conftest.er1 >conftest.err
33083 rm -f conftest.er1
33084 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33088 { (case "(($ac_try" in
33089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090 *) ac_try_echo=$ac_try;;
33091esac
33092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033094 ac_status=$?
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); }; } &&
33097 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033098 { (case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33101esac
33102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033104 ac_status=$?
33105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); }; }; then
33107 ac_cv_func_isinf_in_cmath=yes
33108else
33109 echo "$as_me: failed program was:" >&5
33110sed 's/^/| /' conftest.$ac_ext >&5
33111
Reid Spencera773bd52006-08-04 18:18:08 +000033112 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033113fi
Reid Spencera773bd52006-08-04 18:18:08 +000033114
33115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033116 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033117ac_cpp='$CPP $CPPFLAGS'
33118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33120ac_compiler_gnu=$ac_cv_c_compiler_gnu
33121
33122fi
Reid Spencera773bd52006-08-04 18:18:08 +000033123{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33124echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033125
33126if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033127
33128cat >>confdefs.h <<\_ACEOF
33129#define HAVE_ISINF_IN_CMATH 1
33130_ACEOF
33131
Reid Spencerabec8f92004-10-27 23:03:44 +000033132fi
33133
Reid Spencera773bd52006-08-04 18:18:08 +000033134{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33135echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033136if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33137 echo $ECHO_N "(cached) $ECHO_C" >&6
33138else
Reid Spencera773bd52006-08-04 18:18:08 +000033139 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033140ac_cpp='$CXXCPP $CPPFLAGS'
33141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33144
Reid Spencerabec8f92004-10-27 23:03:44 +000033145 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033146/* confdefs.h. */
33147_ACEOF
33148cat confdefs.h >>conftest.$ac_ext
33149cat >>conftest.$ac_ext <<_ACEOF
33150/* end confdefs.h. */
33151#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033152int
33153main ()
33154{
33155float f; std::isinf(f)}
33156 ;
33157 return 0;
33158}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033159_ACEOF
33160rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033161if { (ac_try="$ac_compile"
33162case "(($ac_try" in
33163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164 *) ac_try_echo=$ac_try;;
33165esac
33166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033168 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033169 grep -v '^ *+' conftest.er1 >conftest.err
33170 rm -f conftest.er1
33171 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33175 { (case "(($ac_try" in
33176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33177 *) ac_try_echo=$ac_try;;
33178esac
33179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33180 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033181 ac_status=$?
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); }; } &&
33184 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033185 { (case "(($ac_try" in
33186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33187 *) ac_try_echo=$ac_try;;
33188esac
33189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33190 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033191 ac_status=$?
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; }; then
33194 ac_cv_func_std_isinf_in_cmath=yes
33195else
33196 echo "$as_me: failed program was:" >&5
33197sed 's/^/| /' conftest.$ac_ext >&5
33198
Reid Spencera773bd52006-08-04 18:18:08 +000033199 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033200fi
Reid Spencera773bd52006-08-04 18:18:08 +000033201
33202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033203 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033204ac_cpp='$CPP $CPPFLAGS'
33205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33207ac_compiler_gnu=$ac_cv_c_compiler_gnu
33208
33209fi
Reid Spencera773bd52006-08-04 18:18:08 +000033210{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33211echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033212
33213if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033214
33215cat >>confdefs.h <<\_ACEOF
33216#define HAVE_STD_ISINF_IN_CMATH 1
33217_ACEOF
33218
Reid Spencerabec8f92004-10-27 23:03:44 +000033219fi
33220
Reid Spencera773bd52006-08-04 18:18:08 +000033221{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33222echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033223if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33224 echo $ECHO_N "(cached) $ECHO_C" >&6
33225else
Reid Spencera773bd52006-08-04 18:18:08 +000033226 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033227ac_cpp='$CXXCPP $CPPFLAGS'
33228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33231
Reid Spencerabec8f92004-10-27 23:03:44 +000033232 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033233/* confdefs.h. */
33234_ACEOF
33235cat confdefs.h >>conftest.$ac_ext
33236cat >>conftest.$ac_ext <<_ACEOF
33237/* end confdefs.h. */
33238#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033239int
33240main ()
33241{
33242float f; finite(f);
33243 ;
33244 return 0;
33245}
Brian Gaeked59a6472004-07-21 03:33:58 +000033246_ACEOF
33247rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033248if { (ac_try="$ac_compile"
33249case "(($ac_try" in
33250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251 *) ac_try_echo=$ac_try;;
33252esac
33253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033255 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033256 grep -v '^ *+' conftest.er1 >conftest.err
33257 rm -f conftest.er1
33258 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33262 { (case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33265esac
33266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033268 ac_status=$?
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; } &&
33271 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033272 { (case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33275esac
33276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033278 ac_status=$?
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; }; then
33281 ac_cv_func_finite_in_ieeefp_h=yes
33282else
33283 echo "$as_me: failed program was:" >&5
33284sed 's/^/| /' conftest.$ac_ext >&5
33285
Reid Spencera773bd52006-08-04 18:18:08 +000033286 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033287fi
Reid Spencera773bd52006-08-04 18:18:08 +000033288
33289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033290 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033291ac_cpp='$CPP $CPPFLAGS'
33292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33294ac_compiler_gnu=$ac_cv_c_compiler_gnu
33295
33296fi
Reid Spencera773bd52006-08-04 18:18:08 +000033297{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33298echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033299
Brian Gaeke6802b552004-10-28 05:06:45 +000033300if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033301
33302cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033303#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033304_ACEOF
33305
Reid Spencerabec8f92004-10-27 23:03:44 +000033306fi
33307
33308
33309
Reid Spencer30fe5262007-01-20 07:48:49 +000033310if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033311
33312
33313for ac_header in stdlib.h unistd.h
33314do
33315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033320 echo $ECHO_N "(cached) $ECHO_C" >&6
33321fi
Reid Spencera773bd52006-08-04 18:18:08 +000033322ac_res=`eval echo '${'$as_ac_Header'}'`
33323 { echo "$as_me:$LINENO: result: $ac_res" >&5
33324echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033325else
33326 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033327{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033329cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033330/* confdefs.h. */
33331_ACEOF
33332cat confdefs.h >>conftest.$ac_ext
33333cat >>conftest.$ac_ext <<_ACEOF
33334/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033335$ac_includes_default
33336#include <$ac_header>
33337_ACEOF
33338rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033339if { (ac_try="$ac_compile"
33340case "(($ac_try" in
33341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33342 *) ac_try_echo=$ac_try;;
33343esac
33344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033347 grep -v '^ *+' conftest.er1 >conftest.err
33348 rm -f conftest.er1
33349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33353 { (case "(($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_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; } &&
33362 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033363 { (case "(($ac_try" in
33364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33365 *) ac_try_echo=$ac_try;;
33366esac
33367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33368 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033369 ac_status=$?
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; }; then
33372 ac_header_compiler=yes
33373else
33374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033375sed 's/^/| /' conftest.$ac_ext >&5
33376
Reid Spencera773bd52006-08-04 18:18:08 +000033377 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033378fi
Reid Spencera773bd52006-08-04 18:18:08 +000033379
33380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33382echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033383
33384# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033385{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033387cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033388/* confdefs.h. */
33389_ACEOF
33390cat confdefs.h >>conftest.$ac_ext
33391cat >>conftest.$ac_ext <<_ACEOF
33392/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033393#include <$ac_header>
33394_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033395if { (ac_try="$ac_cpp conftest.$ac_ext"
33396case "(($ac_try" in
33397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398 *) ac_try_echo=$ac_try;;
33399esac
33400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033402 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033403 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033404 rm -f conftest.er1
33405 cat conftest.err >&5
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } >/dev/null; then
33408 if test -s conftest.err; then
33409 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000033410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000033411 else
33412 ac_cpp_err=
33413 fi
33414else
33415 ac_cpp_err=yes
33416fi
33417if test -z "$ac_cpp_err"; then
33418 ac_header_preproc=yes
33419else
33420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033421sed 's/^/| /' conftest.$ac_ext >&5
33422
John Criswell7a73b802003-06-30 21:59:07 +000033423 ac_header_preproc=no
33424fi
Reid Spencera773bd52006-08-04 18:18:08 +000033425
John Criswell7a73b802003-06-30 21:59:07 +000033426rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033427{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33428echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033429
33430# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33432 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33434echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33436echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33437 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033438 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033439 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33441echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33443echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33445echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33447echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33451echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033452 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033453## ----------------------------------- ##
33454## Report this to llvmbugs@cs.uiuc.edu ##
33455## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033456_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033457 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033458 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033459esac
Reid Spencera773bd52006-08-04 18:18:08 +000033460{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033463 echo $ECHO_N "(cached) $ECHO_C" >&6
33464else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033465 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033466fi
Reid Spencera773bd52006-08-04 18:18:08 +000033467ac_res=`eval echo '${'$as_ac_Header'}'`
33468 { echo "$as_me:$LINENO: result: $ac_res" >&5
33469echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033470
33471fi
33472if test `eval echo '${'$as_ac_Header'}'` = yes; then
33473 cat >>confdefs.h <<_ACEOF
33474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33475_ACEOF
33476
33477fi
33478
33479done
33480
33481
33482for ac_func in getpagesize
33483do
33484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033485{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33487if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033488 echo $ECHO_N "(cached) $ECHO_C" >&6
33489else
33490 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033491/* confdefs.h. */
33492_ACEOF
33493cat confdefs.h >>conftest.$ac_ext
33494cat >>conftest.$ac_ext <<_ACEOF
33495/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33498#define $ac_func innocuous_$ac_func
33499
John Criswell7a73b802003-06-30 21:59:07 +000033500/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033501 which can conflict with char $ac_func (); below.
33502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33503 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033504
John Criswell0c38eaf2003-09-10 15:17:25 +000033505#ifdef __STDC__
33506# include <limits.h>
33507#else
33508# include <assert.h>
33509#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033510
33511#undef $ac_func
33512
Reid Spencera773bd52006-08-04 18:18:08 +000033513/* Override any GCC internal prototype to avoid an error.
33514 Use char because int might match the return type of a GCC
33515 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033516#ifdef __cplusplus
33517extern "C"
33518#endif
John Criswell7a73b802003-06-30 21:59:07 +000033519char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033520/* The GNU C library defines this for functions which it implements
33521 to always fail with ENOSYS. Some functions are actually named
33522 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033523#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033524choke me
John Criswell7a73b802003-06-30 21:59:07 +000033525#endif
33526
John Criswell0c38eaf2003-09-10 15:17:25 +000033527int
33528main ()
33529{
Reid Spencera773bd52006-08-04 18:18:08 +000033530return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033531 ;
33532 return 0;
33533}
33534_ACEOF
33535rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033536if { (ac_try="$ac_link"
33537case "(($ac_try" in
33538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33539 *) ac_try_echo=$ac_try;;
33540esac
33541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33542 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033544 grep -v '^ *+' conftest.er1 >conftest.err
33545 rm -f conftest.er1
33546 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33550 { (case "(($ac_try" in
33551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552 *) ac_try_echo=$ac_try;;
33553esac
33554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033556 ac_status=$?
33557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558 (exit $ac_status); }; } &&
33559 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033560 { (case "(($ac_try" in
33561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33562 *) ac_try_echo=$ac_try;;
33563esac
33564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33565 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033566 ac_status=$?
33567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568 (exit $ac_status); }; }; then
33569 eval "$as_ac_var=yes"
33570else
33571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033572sed 's/^/| /' conftest.$ac_ext >&5
33573
Reid Spencera773bd52006-08-04 18:18:08 +000033574 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033575fi
Reid Spencera773bd52006-08-04 18:18:08 +000033576
33577rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033578 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033579fi
Reid Spencera773bd52006-08-04 18:18:08 +000033580ac_res=`eval echo '${'$as_ac_var'}'`
33581 { echo "$as_me:$LINENO: result: $ac_res" >&5
33582echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033583if test `eval echo '${'$as_ac_var'}'` = yes; then
33584 cat >>confdefs.h <<_ACEOF
33585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33586_ACEOF
33587
33588fi
33589done
33590
Reid Spencera773bd52006-08-04 18:18:08 +000033591{ echo "$as_me:$LINENO: checking for working mmap" >&5
33592echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033593if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33594 echo $ECHO_N "(cached) $ECHO_C" >&6
33595else
33596 if test "$cross_compiling" = yes; then
33597 ac_cv_func_mmap_fixed_mapped=no
33598else
33599 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033600/* confdefs.h. */
33601_ACEOF
33602cat confdefs.h >>conftest.$ac_ext
33603cat >>conftest.$ac_ext <<_ACEOF
33604/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033605$ac_includes_default
33606/* malloc might have been renamed as rpl_malloc. */
33607#undef malloc
33608
33609/* Thanks to Mike Haertel and Jim Avera for this test.
33610 Here is a matrix of mmap possibilities:
33611 mmap private not fixed
33612 mmap private fixed at somewhere currently unmapped
33613 mmap private fixed at somewhere already mapped
33614 mmap shared not fixed
33615 mmap shared fixed at somewhere currently unmapped
33616 mmap shared fixed at somewhere already mapped
33617 For private mappings, we should verify that changes cannot be read()
33618 back from the file, nor mmap's back from the file at a different
33619 address. (There have been systems where private was not correctly
33620 implemented like the infamous i386 svr4.0, and systems where the
33621 VM page cache was not coherent with the file system buffer cache
33622 like early versions of FreeBSD and possibly contemporary NetBSD.)
33623 For shared mappings, we should conversely verify that changes get
33624 propagated back to all the places they're supposed to be.
33625
33626 Grep wants private fixed already mapped.
33627 The main things grep needs to know about mmap are:
33628 * does it exist and is it safe to write into the mmap'd area
33629 * how to use it (BSD variants) */
33630
33631#include <fcntl.h>
33632#include <sys/mman.h>
33633
33634#if !STDC_HEADERS && !HAVE_STDLIB_H
33635char *malloc ();
33636#endif
33637
33638/* This mess was copied from the GNU getpagesize.h. */
33639#if !HAVE_GETPAGESIZE
33640/* Assume that all systems that can run configure have sys/param.h. */
33641# if !HAVE_SYS_PARAM_H
33642# define HAVE_SYS_PARAM_H 1
33643# endif
33644
33645# ifdef _SC_PAGESIZE
33646# define getpagesize() sysconf(_SC_PAGESIZE)
33647# else /* no _SC_PAGESIZE */
33648# if HAVE_SYS_PARAM_H
33649# include <sys/param.h>
33650# ifdef EXEC_PAGESIZE
33651# define getpagesize() EXEC_PAGESIZE
33652# else /* no EXEC_PAGESIZE */
33653# ifdef NBPG
33654# define getpagesize() NBPG * CLSIZE
33655# ifndef CLSIZE
33656# define CLSIZE 1
33657# endif /* no CLSIZE */
33658# else /* no NBPG */
33659# ifdef NBPC
33660# define getpagesize() NBPC
33661# else /* no NBPC */
33662# ifdef PAGESIZE
33663# define getpagesize() PAGESIZE
33664# endif /* PAGESIZE */
33665# endif /* no NBPC */
33666# endif /* no NBPG */
33667# endif /* no EXEC_PAGESIZE */
33668# else /* no HAVE_SYS_PARAM_H */
33669# define getpagesize() 8192 /* punt totally */
33670# endif /* no HAVE_SYS_PARAM_H */
33671# endif /* no _SC_PAGESIZE */
33672
33673#endif /* no HAVE_GETPAGESIZE */
33674
33675int
33676main ()
33677{
33678 char *data, *data2, *data3;
33679 int i, pagesize;
33680 int fd;
33681
33682 pagesize = getpagesize ();
33683
33684 /* First, make a file with some known garbage in it. */
33685 data = (char *) malloc (pagesize);
33686 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033687 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033688 for (i = 0; i < pagesize; ++i)
33689 *(data + i) = rand ();
33690 umask (0);
33691 fd = creat ("conftest.mmap", 0600);
33692 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033693 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033694 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033695 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033696 close (fd);
33697
33698 /* Next, try to mmap the file at a fixed address which already has
33699 something else allocated at it. If we can, also make sure that
33700 we see the same garbage. */
33701 fd = open ("conftest.mmap", O_RDWR);
33702 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033703 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033704 data2 = (char *) malloc (2 * pagesize);
33705 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033706 return 1;
33707 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033708 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033709 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033710 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033711 for (i = 0; i < pagesize; ++i)
33712 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033713 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033714
33715 /* Finally, make sure that changes to the mapped area do not
33716 percolate back to the file as seen by read(). (This is a bug on
33717 some variants of i386 svr4.0.) */
33718 for (i = 0; i < pagesize; ++i)
33719 *(data2 + i) = *(data2 + i) + 1;
33720 data3 = (char *) malloc (pagesize);
33721 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033722 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033723 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033724 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033725 for (i = 0; i < pagesize; ++i)
33726 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033727 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033728 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033729 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033730}
33731_ACEOF
33732rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033733if { (ac_try="$ac_link"
33734case "(($ac_try" in
33735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736 *) ac_try_echo=$ac_try;;
33737esac
33738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033740 ac_status=$?
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033743 { (case "(($ac_try" in
33744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745 *) ac_try_echo=$ac_try;;
33746esac
33747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033749 ac_status=$?
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); }; }; then
33752 ac_cv_func_mmap_fixed_mapped=yes
33753else
33754 echo "$as_me: program exited with status $ac_status" >&5
33755echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033756sed 's/^/| /' conftest.$ac_ext >&5
33757
John Criswell7a73b802003-06-30 21:59:07 +000033758( exit $ac_status )
33759ac_cv_func_mmap_fixed_mapped=no
33760fi
Reid Spencera773bd52006-08-04 18:18:08 +000033761rm -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 +000033762fi
Reid Spencera773bd52006-08-04 18:18:08 +000033763
33764
John Criswell7a73b802003-06-30 21:59:07 +000033765fi
Reid Spencera773bd52006-08-04 18:18:08 +000033766{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33767echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033768if test $ac_cv_func_mmap_fixed_mapped = yes; then
33769
33770cat >>confdefs.h <<\_ACEOF
33771#define HAVE_MMAP 1
33772_ACEOF
33773
33774fi
33775rm -f conftest.mmap
33776
Reid Spencer30fe5262007-01-20 07:48:49 +000033777 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033778echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033779if test "${ac_cv_func_mmap_file+set}" = set; then
33780 echo $ECHO_N "(cached) $ECHO_C" >&6
33781else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033782 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033783ac_cpp='$CPP $CPPFLAGS'
33784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33786ac_compiler_gnu=$ac_cv_c_compiler_gnu
33787
33788 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033789 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033790else
33791 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033792
Reid Spencer777ce172004-09-20 04:09:56 +000033793 /* confdefs.h. */
33794_ACEOF
33795cat confdefs.h >>conftest.$ac_ext
33796cat >>conftest.$ac_ext <<_ACEOF
33797/* end confdefs.h. */
33798
John Criswell7a73b802003-06-30 21:59:07 +000033799#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033800#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033801#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033802
33803int
33804main ()
33805{
John Criswell7a73b802003-06-30 21:59:07 +000033806
33807 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033808 fd = creat ("foo",0777);
33809 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33810 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033811 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033812 ;
33813 return 0;
33814}
John Criswell7a73b802003-06-30 21:59:07 +000033815_ACEOF
33816rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033817if { (ac_try="$ac_link"
33818case "(($ac_try" in
33819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33820 *) ac_try_echo=$ac_try;;
33821esac
33822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33823 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033824 ac_status=$?
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033827 { (case "(($ac_try" in
33828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829 *) ac_try_echo=$ac_try;;
33830esac
33831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033833 ac_status=$?
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); }; }; then
33836 ac_cv_func_mmap_file=yes
33837else
33838 echo "$as_me: program exited with status $ac_status" >&5
33839echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033840sed 's/^/| /' conftest.$ac_ext >&5
33841
John Criswell7a73b802003-06-30 21:59:07 +000033842( exit $ac_status )
33843ac_cv_func_mmap_file=no
33844fi
Reid Spencera773bd52006-08-04 18:18:08 +000033845rm -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 +000033846fi
Reid Spencera773bd52006-08-04 18:18:08 +000033847
33848
John Criswell7a73b802003-06-30 21:59:07 +000033849 ac_ext=c
33850ac_cpp='$CPP $CPPFLAGS'
33851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33853ac_compiler_gnu=$ac_cv_c_compiler_gnu
33854
33855
33856fi
Reid Spencera773bd52006-08-04 18:18:08 +000033857{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33858echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033859if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033860
33861cat >>confdefs.h <<\_ACEOF
33862#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033863_ACEOF
33864
33865 MMAP_FILE=yes
33866
33867fi
33868
Reid Spencer30fe5262007-01-20 07:48:49 +000033869 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033870echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033871if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33872 echo $ECHO_N "(cached) $ECHO_C" >&6
33873else
Reid Spencer582a23c2004-12-29 07:07:57 +000033874 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033875 ac_cv_need_dev_zero_for_mmap=yes
33876 else
33877 ac_cv_need_dev_zero_for_mmap=no
33878 fi
33879
33880fi
Reid Spencera773bd52006-08-04 18:18:08 +000033881{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33882echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033883if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33884
33885cat >>confdefs.h <<\_ACEOF
33886#define NEED_DEV_ZERO_FOR_MMAP 1
33887_ACEOF
33888
33889fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033890
Reid Spencer30fe5262007-01-20 07:48:49 +000033891 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33892 then
33893 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033894echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033895 fi
33896 if test "$ac_cv_func_mmap_file" = "no"
33897 then
33898 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033899echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033900 fi
John Criswellb13092b2003-07-22 21:00:24 +000033901fi
John Criswell7a73b802003-06-30 21:59:07 +000033902
33903
Reid Spencer9372f152007-07-30 20:13:24 +000033904
33905for ac_func in __dso_handle
33906do
33907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33908{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33911 echo $ECHO_N "(cached) $ECHO_C" >&6
33912else
33913 cat >conftest.$ac_ext <<_ACEOF
33914/* confdefs.h. */
33915_ACEOF
33916cat confdefs.h >>conftest.$ac_ext
33917cat >>conftest.$ac_ext <<_ACEOF
33918/* end confdefs.h. */
33919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33921#define $ac_func innocuous_$ac_func
33922
33923/* System header to define __stub macros and hopefully few prototypes,
33924 which can conflict with char $ac_func (); below.
33925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33926 <limits.h> exists even on freestanding compilers. */
33927
33928#ifdef __STDC__
33929# include <limits.h>
33930#else
33931# include <assert.h>
33932#endif
33933
33934#undef $ac_func
33935
33936/* Override any GCC internal prototype to avoid an error.
33937 Use char because int might match the return type of a GCC
33938 builtin and then its argument prototype would still apply. */
33939#ifdef __cplusplus
33940extern "C"
33941#endif
33942char $ac_func ();
33943/* The GNU C library defines this for functions which it implements
33944 to always fail with ENOSYS. Some functions are actually named
33945 something starting with __ and the normal name is an alias. */
33946#if defined __stub_$ac_func || defined __stub___$ac_func
33947choke me
33948#endif
33949
33950int
33951main ()
33952{
33953return $ac_func ();
33954 ;
33955 return 0;
33956}
33957_ACEOF
33958rm -f conftest.$ac_objext conftest$ac_exeext
33959if { (ac_try="$ac_link"
33960case "(($ac_try" in
33961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33962 *) ac_try_echo=$ac_try;;
33963esac
33964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33965 (eval "$ac_link") 2>conftest.er1
33966 ac_status=$?
33967 grep -v '^ *+' conftest.er1 >conftest.err
33968 rm -f conftest.er1
33969 cat conftest.err >&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); } &&
33972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33973 { (case "(($ac_try" in
33974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975 *) ac_try_echo=$ac_try;;
33976esac
33977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978 (eval "$ac_try") 2>&5
33979 ac_status=$?
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; } &&
33982 { ac_try='test -s conftest$ac_exeext'
33983 { (case "(($ac_try" in
33984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985 *) ac_try_echo=$ac_try;;
33986esac
33987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988 (eval "$ac_try") 2>&5
33989 ac_status=$?
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; }; then
33992 eval "$as_ac_var=yes"
33993else
33994 echo "$as_me: failed program was:" >&5
33995sed 's/^/| /' conftest.$ac_ext >&5
33996
33997 eval "$as_ac_var=no"
33998fi
33999
34000rm -f core conftest.err conftest.$ac_objext \
34001 conftest$ac_exeext conftest.$ac_ext
34002fi
34003ac_res=`eval echo '${'$as_ac_var'}'`
34004 { echo "$as_me:$LINENO: result: $ac_res" >&5
34005echo "${ECHO_T}$ac_res" >&6; }
34006if test `eval echo '${'$as_ac_var'}'` = yes; then
34007 cat >>confdefs.h <<_ACEOF
34008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34009_ACEOF
34010
34011fi
34012done
34013
34014
Reid Spencera773bd52006-08-04 18:18:08 +000034015{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34016echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034017if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34018 echo $ECHO_N "(cached) $ECHO_C" >&6
34019else
34020 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034021if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034022 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034023 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34024 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034025 if test $? -eq 0 ; then
34026 llvm_cv_llvmgcc_sanity="yes"
34027 fi
34028 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034029fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034030fi
Reid Spencera773bd52006-08-04 18:18:08 +000034031{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34032echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034033
34034if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034035 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34036echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034037 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034038 LLVMCC1=$llvmcc1path
34039
Reid Spencer502935f2004-12-22 05:56:56 +000034040 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034041 LLVMCC1PLUS=$llvmcc1pluspath
34042
Reid Spencer502935f2004-12-22 05:56:56 +000034043 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34044 LLVMGCCDIR=$llvmgccdir
34045
Reid Spencer282d8c12006-12-21 22:55:41 +000034046 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34047 LLVMGCCLIBEXEC=$llvmgcclibexec
34048
Reid Spencerb5d75b82006-05-09 00:31:01 +000034049 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034050 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34051 LLVMGCC_VERSION=$llvmgccversion
34052
34053 LLVMGCC_MAJVERS=$llvmgccmajvers
34054
Reid Spencer0d238182007-04-21 21:28:52 +000034055 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34056 LLVMGCC_LANGS=$llvmgcclangs
34057
34058 { echo "$as_me:$LINENO: result: ok" >&5
34059echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034060fi
34061
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034062SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034063
34064
Reid Spencere9de0912004-08-20 09:03:57 +000034065# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034066# information into substitutions that will end up in Makefile.config.in
34067# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034068if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034069 prefix="/usr/local"
34070fi
Reid Spencere9de0912004-08-20 09:03:57 +000034071eval LLVM_PREFIX="${prefix}";
34072eval LLVM_BINDIR="${prefix}/bin";
34073eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034074eval LLVM_DATADIR="${prefix}/share/llvm";
34075eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34076eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034077eval LLVM_INCLUDEDIR="${prefix}/include";
34078eval LLVM_INFODIR="${prefix}/info";
34079eval LLVM_MANDIR="${prefix}/man";
34080LLVM_CONFIGTIME=`date`
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034092# Place the various directores into the config.h file as #defines so that we
34093# can know about the installation paths within LLVM.
34094
Reid Spencere9de0912004-08-20 09:03:57 +000034095cat >>confdefs.h <<_ACEOF
34096#define LLVM_PREFIX "$LLVM_PREFIX"
34097_ACEOF
34098
34099
34100cat >>confdefs.h <<_ACEOF
34101#define LLVM_BINDIR "$LLVM_BINDIR"
34102_ACEOF
34103
34104
34105cat >>confdefs.h <<_ACEOF
34106#define LLVM_LIBDIR "$LLVM_LIBDIR"
34107_ACEOF
34108
34109
34110cat >>confdefs.h <<_ACEOF
34111#define LLVM_DATADIR "$LLVM_DATADIR"
34112_ACEOF
34113
34114
34115cat >>confdefs.h <<_ACEOF
34116#define LLVM_DATADIR "$LLVM_DOCSDIR"
34117_ACEOF
34118
34119
34120cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034121#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034122_ACEOF
34123
34124
34125cat >>confdefs.h <<_ACEOF
34126#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34127_ACEOF
34128
34129
34130cat >>confdefs.h <<_ACEOF
34131#define LLVM_INFODIR "$LLVM_INFODIR"
34132_ACEOF
34133
34134
34135cat >>confdefs.h <<_ACEOF
34136#define LLVM_MANDIR "$LLVM_MANDIR"
34137_ACEOF
34138
34139
34140cat >>confdefs.h <<_ACEOF
34141#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34142_ACEOF
34143
34144
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034145# Determine which bindings to build.
34146if test "$BINDINGS_TO_BUILD" = auto ; then
34147 BINDINGS_TO_BUILD=""
34148 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34149 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34150 fi
34151fi
34152BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34153
34154
34155# This isn't really configurey, but it avoids having to repeat the list in
34156# other files.
34157ALL_BINDINGS=ocaml
34158
34159
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034160
Reid Spencera773bd52006-08-04 18:18:08 +000034161ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034162
Reid Spencera773bd52006-08-04 18:18:08 +000034163ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034164
Reid Spencera773bd52006-08-04 18:18:08 +000034165ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034166
Reid Spencera773bd52006-08-04 18:18:08 +000034167ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034168
Reid Spencera773bd52006-08-04 18:18:08 +000034169ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034170
34171
Reid Spencera773bd52006-08-04 18:18:08 +000034172ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034173
34174
Reid Spencerea949cf2006-08-16 00:45:38 +000034175ac_config_files="$ac_config_files llvm.spec"
34176
34177
Reid Spencera773bd52006-08-04 18:18:08 +000034178ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034179
34180
Reid Spencera773bd52006-08-04 18:18:08 +000034181ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034182
34183
Reid Spencera773bd52006-08-04 18:18:08 +000034184ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034185
Reid Spencera773bd52006-08-04 18:18:08 +000034186ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034187
34188
Reid Spencera773bd52006-08-04 18:18:08 +000034189ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034190
34191
Reid Spencera773bd52006-08-04 18:18:08 +000034192ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034193
34194
Reid Spencera773bd52006-08-04 18:18:08 +000034195ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034196
34197
Reid Spencer8b2e1412006-11-17 03:32:33 +000034198ac_config_commands="$ac_config_commands runtime/Makefile"
34199
34200
Reid Spencera773bd52006-08-04 18:18:08 +000034201ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034202
34203
Reid Spencera773bd52006-08-04 18:18:08 +000034204ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034205
34206
Reid Spencera773bd52006-08-04 18:18:08 +000034207ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034208
34209
Reid Spencera773bd52006-08-04 18:18:08 +000034210ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034211
34212
Reid Spencera773bd52006-08-04 18:18:08 +000034213ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034214
34215
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034216ac_config_commands="$ac_config_commands bindings/Makefile"
34217
34218
34219ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34220
34221
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034222
John Criswell7a73b802003-06-30 21:59:07 +000034223cat >confcache <<\_ACEOF
34224# This file is a shell script that caches the results of configure
34225# tests run on this system so they can be shared between configure
34226# scripts and configure runs, see configure's option --config-cache.
34227# It is not useful on other systems. If it contains results you don't
34228# want to keep, you may remove or edit it.
34229#
34230# config.status only pays attention to the cache file if you give it
34231# the --recheck option to rerun configure.
34232#
John Criswell0c38eaf2003-09-10 15:17:25 +000034233# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034234# loading this file, other *unset* `ac_cv_foo' will be assigned the
34235# following values.
34236
34237_ACEOF
34238
34239# The following way of writing the cache mishandles newlines in values,
34240# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034241# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034242# Ultrix sh set writes to stderr and can't be redirected directly,
34243# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034244(
34245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34246 eval ac_val=\$$ac_var
34247 case $ac_val in #(
34248 *${as_nl}*)
34249 case $ac_var in #(
34250 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34251echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34252 esac
34253 case $ac_var in #(
34254 _ | IFS | as_nl) ;; #(
34255 *) $as_unset $ac_var ;;
34256 esac ;;
34257 esac
34258 done
34259
John Criswell7a73b802003-06-30 21:59:07 +000034260 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034261 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34262 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034263 # `set' does not quote correctly, so add quotes (double-quote
34264 # substitution turns \\\\ into \\, and sed turns \\ into \).
34265 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034266 "s/'/'\\\\''/g;
34267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034268 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034269 *)
34270 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034272 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034273 esac |
34274 sort
34275) |
John Criswell7a73b802003-06-30 21:59:07 +000034276 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034277 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034278 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034279 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34281 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034282 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34283 :end' >>confcache
34284if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34285 if test -w "$cache_file"; then
34286 test "x$cache_file" != "x/dev/null" &&
34287 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34288echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034289 cat confcache >$cache_file
34290 else
Reid Spencera773bd52006-08-04 18:18:08 +000034291 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34292echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034293 fi
34294fi
34295rm -f confcache
34296
34297test "x$prefix" = xNONE && prefix=$ac_default_prefix
34298# Let make expand exec_prefix.
34299test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34300
John Criswell7a73b802003-06-30 21:59:07 +000034301DEFS=-DHAVE_CONFIG_H
34302
John Criswell0c38eaf2003-09-10 15:17:25 +000034303ac_libobjs=
34304ac_ltlibobjs=
34305for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34306 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34308 ac_i=`echo "$ac_i" | sed "$ac_script"`
34309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34310 # will be set to the directory where LIBOBJS objects are built.
34311 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34312 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034313done
34314LIBOBJS=$ac_libobjs
34315
34316LTLIBOBJS=$ac_ltlibobjs
34317
34318
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034319if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34320 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34321Usually this means the macro was only invoked conditionally." >&5
34322echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34323Usually this means the macro was only invoked conditionally." >&2;}
34324 { (exit 1); exit 1; }; }
34325fi
34326if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34327 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34328Usually this means the macro was only invoked conditionally." >&5
34329echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34330Usually this means the macro was only invoked conditionally." >&2;}
34331 { (exit 1); exit 1; }; }
34332fi
John Criswell7a73b802003-06-30 21:59:07 +000034333
34334: ${CONFIG_STATUS=./config.status}
34335ac_clean_files_save=$ac_clean_files
34336ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34337{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34338echo "$as_me: creating $CONFIG_STATUS" >&6;}
34339cat >$CONFIG_STATUS <<_ACEOF
34340#! $SHELL
34341# Generated by $as_me.
34342# Run this file to recreate the current configuration.
34343# Compiler output produced by configure, useful for debugging
34344# configure, is in config.log if it exists.
34345
34346debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034347ac_cs_recheck=false
34348ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034349SHELL=\${CONFIG_SHELL-$SHELL}
34350_ACEOF
34351
34352cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034353## --------------------- ##
34354## M4sh Initialization. ##
34355## --------------------- ##
34356
34357# Be Bourne compatible
34358if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34359 emulate sh
34360 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34362 # is contrary to our usage. Disable this feature.
34363 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034364 setopt NO_GLOB_SUBST
34365else
34366 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034367fi
Reid Spencera773bd52006-08-04 18:18:08 +000034368BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000034369DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034370
John Criswell7a73b802003-06-30 21:59:07 +000034371
Reid Spencera773bd52006-08-04 18:18:08 +000034372# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034373# Avoid depending upon Character Ranges.
34374as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34375as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34376as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34377as_cr_digits='0123456789'
34378as_cr_alnum=$as_cr_Letters$as_cr_digits
34379
34380# The user is always right.
34381if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034382 echo "#! /bin/sh" >conf$$.sh
34383 echo "exit 0" >>conf$$.sh
34384 chmod +x conf$$.sh
34385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034386 PATH_SEPARATOR=';'
34387 else
34388 PATH_SEPARATOR=:
34389 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034390 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034391fi
34392
Reid Spencera773bd52006-08-04 18:18:08 +000034393# Support unset when possible.
34394if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34395 as_unset=unset
34396else
34397 as_unset=false
34398fi
John Criswell7a73b802003-06-30 21:59:07 +000034399
Reid Spencera773bd52006-08-04 18:18:08 +000034400
34401# IFS
34402# We need space, tab and new line, in precisely that order. Quoting is
34403# there to prevent editors from complaining about space-tab.
34404# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34405# splitting by setting IFS to empty value.)
34406as_nl='
34407'
34408IFS=" "" $as_nl"
34409
34410# Find who we are. Look in the path if we contain no directory separator.
34411case $0 in
34412 *[\\/]* ) as_myself=$0 ;;
34413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034414for as_dir in $PATH
34415do
34416 IFS=$as_save_IFS
34417 test -z "$as_dir" && as_dir=.
34418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34419done
Reid Spencera773bd52006-08-04 18:18:08 +000034420IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034421
Reid Spencera773bd52006-08-04 18:18:08 +000034422 ;;
34423esac
34424# We did not find ourselves, most probably we were run as `sh COMMAND'
34425# in which case we are not to be found in the path.
34426if test "x$as_myself" = x; then
34427 as_myself=$0
34428fi
34429if test ! -f "$as_myself"; then
34430 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34431 { (exit 1); exit 1; }
34432fi
34433
34434# Work around bugs in pre-3.0 UWIN ksh.
34435for as_var in ENV MAIL MAILPATH
34436do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34437done
34438PS1='$ '
34439PS2='> '
34440PS4='+ '
34441
34442# NLS nuisances.
34443for as_var in \
34444 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34445 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34446 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034447do
Reid Spencera773bd52006-08-04 18:18:08 +000034448 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34449 eval $as_var=C; export $as_var
34450 else
34451 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34452 fi
34453done
34454
34455# Required to use basename.
34456if expr a : '\(a\)' >/dev/null 2>&1 &&
34457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34458 as_expr=expr
34459else
34460 as_expr=false
34461fi
34462
34463if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34464 as_basename=basename
34465else
34466 as_basename=false
34467fi
34468
34469
34470# Name of the executable.
34471as_me=`$as_basename -- "$0" ||
34472$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34473 X"$0" : 'X\(//\)$' \| \
34474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34475echo X/"$0" |
34476 sed '/^.*\/\([^/][^/]*\)\/*$/{
34477 s//\1/
34478 q
34479 }
34480 /^X\/\(\/\/\)$/{
34481 s//\1/
34482 q
34483 }
34484 /^X\/\(\/\).*/{
34485 s//\1/
34486 q
34487 }
34488 s/.*/./; q'`
34489
34490# CDPATH.
34491$as_unset CDPATH
34492
34493
34494
John Criswell7a73b802003-06-30 21:59:07 +000034495 as_lineno_1=$LINENO
34496 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034497 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034498 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034499
34500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34501 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034502 # line-number line after each line using $LINENO; the second 'sed'
34503 # does the real work. The second script uses 'N' to pair each
34504 # line-number line with the line containing $LINENO, and appends
34505 # trailing '-' during substitution so that $LINENO is not a special
34506 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034508 # scripts with optimization help from Paolo Bonzini. Blame Lee
34509 # E. McMahon (1931-1989) for sed's syntax. :-)
34510 sed -n '
34511 p
34512 /[$]LINENO/=
34513 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034514 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034515 s/[$]LINENO.*/&-/
34516 t lineno
34517 b
34518 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034519 N
Reid Spencera773bd52006-08-04 18:18:08 +000034520 :loop
34521 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034522 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034523 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034524 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034525 chmod +x "$as_me.lineno" ||
34526 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034527 { (exit 1); exit 1; }; }
34528
34529 # Don't try to exec as it changes $[0], causing all sort of problems
34530 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034531 # original and so on. Autoconf is especially sensitive to this).
34532 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034533 # Exit status is that of the last command.
34534 exit
34535}
34536
34537
Reid Spencera773bd52006-08-04 18:18:08 +000034538if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34539 as_dirname=dirname
34540else
34541 as_dirname=false
34542fi
34543
34544ECHO_C= ECHO_N= ECHO_T=
34545case `echo -n x` in
34546-n*)
34547 case `echo 'x\c'` in
34548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34549 *) ECHO_C='\c';;
34550 esac;;
34551*)
34552 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034553esac
34554
Reid Spencera773bd52006-08-04 18:18:08 +000034555if expr a : '\(a\)' >/dev/null 2>&1 &&
34556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034557 as_expr=expr
34558else
34559 as_expr=false
34560fi
34561
34562rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034563if test -d conf$$.dir; then
34564 rm -f conf$$.dir/conf$$.file
34565else
34566 rm -f conf$$.dir
34567 mkdir conf$$.dir
34568fi
John Criswell7a73b802003-06-30 21:59:07 +000034569echo >conf$$.file
34570if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034571 as_ln_s='ln -s'
34572 # ... but there are two gotchas:
34573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34575 # In both cases, we have to default to `cp -p'.
34576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034577 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034578elif ln conf$$.file conf$$ 2>/dev/null; then
34579 as_ln_s=ln
34580else
34581 as_ln_s='cp -p'
34582fi
Reid Spencera773bd52006-08-04 18:18:08 +000034583rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34584rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034585
John Criswell0c38eaf2003-09-10 15:17:25 +000034586if mkdir -p . 2>/dev/null; then
34587 as_mkdir_p=:
34588else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034589 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034590 as_mkdir_p=false
34591fi
34592
Reid Spencera773bd52006-08-04 18:18:08 +000034593# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34594# systems may use methods other than mode bits to determine executability.
34595cat >conf$$.file <<_ASEOF
34596#! /bin/sh
34597exit 0
34598_ASEOF
34599chmod +x conf$$.file
34600if test -x conf$$.file >/dev/null 2>&1; then
34601 as_executable_p="test -x"
34602else
34603 as_executable_p=:
34604fi
34605rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034606
34607# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034608as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034609
34610# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034611as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034612
34613
John Criswell7a73b802003-06-30 21:59:07 +000034614exec 6>&1
34615
Reid Spencera773bd52006-08-04 18:18:08 +000034616# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034617# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034618# values after options handling.
34619ac_log="
Tanya Lattner5c709542007-09-14 01:24:13 +000034620This file was extended by llvm $as_me 2.2svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034621generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034622
34623 CONFIG_FILES = $CONFIG_FILES
34624 CONFIG_HEADERS = $CONFIG_HEADERS
34625 CONFIG_LINKS = $CONFIG_LINKS
34626 CONFIG_COMMANDS = $CONFIG_COMMANDS
34627 $ $0 $@
34628
Reid Spencera773bd52006-08-04 18:18:08 +000034629on `(hostname || uname -n) 2>/dev/null | sed 1q`
34630"
34631
John Criswell7a73b802003-06-30 21:59:07 +000034632_ACEOF
34633
Reid Spencera773bd52006-08-04 18:18:08 +000034634cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034635# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034636config_files="$ac_config_files"
34637config_headers="$ac_config_headers"
34638config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034639
Reid Spencera773bd52006-08-04 18:18:08 +000034640_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034641
34642cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034643ac_cs_usage="\
34644\`$as_me' instantiates files from templates according to the
34645current configuration.
34646
34647Usage: $0 [OPTIONS] [FILE]...
34648
34649 -h, --help print this help, then exit
34650 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034651 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034652 -d, --debug don't remove temporary files
34653 --recheck update $as_me by reconfiguring in the same conditions
34654 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034655 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034656 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034657 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034658
34659Configuration files:
34660$config_files
34661
34662Configuration headers:
34663$config_headers
34664
John Criswellc764fbc2003-09-06 15:17:13 +000034665Configuration commands:
34666$config_commands
34667
John Criswell7a73b802003-06-30 21:59:07 +000034668Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034669
Reid Spencera773bd52006-08-04 18:18:08 +000034670_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034671cat >>$CONFIG_STATUS <<_ACEOF
34672ac_cs_version="\\
Tanya Lattner5c709542007-09-14 01:24:13 +000034673llvm config.status 2.2svn
Reid Spencera773bd52006-08-04 18:18:08 +000034674configured by $0, generated by GNU Autoconf 2.60,
34675 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034676
Reid Spencera773bd52006-08-04 18:18:08 +000034677Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034678This config.status script is free software; the Free Software Foundation
34679gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034680
34681ac_pwd='$ac_pwd'
34682srcdir='$srcdir'
34683INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034684_ACEOF
34685
34686cat >>$CONFIG_STATUS <<\_ACEOF
34687# If no file are specified by the user, then we need to provide default
34688# value. By we need to know if files were specified by the user.
34689ac_need_defaults=:
34690while test $# != 0
34691do
34692 case $1 in
34693 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034694 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34695 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034696 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034697 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034698 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034699 ac_option=$1
34700 ac_optarg=$2
34701 ac_shift=shift
34702 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034703 esac
34704
John Criswell0c38eaf2003-09-10 15:17:25 +000034705 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034706 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34708 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34710 echo "$ac_cs_version"; exit ;;
34711 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034712 debug=: ;;
34713 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034714 $ac_shift
34715 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034716 ac_need_defaults=false;;
34717 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034718 $ac_shift
34719 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034720 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034721 --he | --h)
34722 # Conflict between --help and --header
34723 { echo "$as_me: error: ambiguous option: $1
34724Try \`$0 --help' for more information." >&2
34725 { (exit 1); exit 1; }; };;
34726 --help | --hel | -h )
34727 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34729 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34730 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034731
34732 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034733 -*) { echo "$as_me: error: unrecognized option: $1
34734Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034735 { (exit 1); exit 1; }; } ;;
34736
Reid Spencera773bd52006-08-04 18:18:08 +000034737 *) ac_config_targets="$ac_config_targets $1"
34738 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034739
34740 esac
34741 shift
34742done
34743
John Criswell0c38eaf2003-09-10 15:17:25 +000034744ac_configure_extra_args=
34745
34746if $ac_cs_silent; then
34747 exec 6>/dev/null
34748 ac_configure_extra_args="$ac_configure_extra_args --silent"
34749fi
34750
34751_ACEOF
34752cat >>$CONFIG_STATUS <<_ACEOF
34753if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034754 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34755 CONFIG_SHELL=$SHELL
34756 export CONFIG_SHELL
34757 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034758fi
34759
John Criswell7a73b802003-06-30 21:59:07 +000034760_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034761cat >>$CONFIG_STATUS <<\_ACEOF
34762exec 5>>config.log
34763{
34764 echo
34765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34766## Running $as_me. ##
34767_ASBOX
34768 echo "$ac_log"
34769} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034770
Reid Spencera773bd52006-08-04 18:18:08 +000034771_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034772cat >>$CONFIG_STATUS <<_ACEOF
34773#
Reid Spencera773bd52006-08-04 18:18:08 +000034774# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034775#
Reid Spencerc0682832005-02-24 19:05:19 +000034776llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034777
34778_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034779
John Criswell7a73b802003-06-30 21:59:07 +000034780cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034781
34782# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034783for ac_config_target in $ac_config_targets
34784do
Reid Spencera773bd52006-08-04 18:18:08 +000034785 case $ac_config_target in
34786 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34787 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34788 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34789 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34790 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34791 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034792 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034793 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34794 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34795 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34796 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34797 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34798 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34799 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034800 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034801 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34802 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34803 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34804 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34805 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034806 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34807 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034808
John Criswell7a73b802003-06-30 21:59:07 +000034809 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34810echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34811 { (exit 1); exit 1; }; };;
34812 esac
34813done
34814
Reid Spencera773bd52006-08-04 18:18:08 +000034815
John Criswell7a73b802003-06-30 21:59:07 +000034816# If the user did not use the arguments to specify the items to instantiate,
34817# then the envvar interface is used. Set only those that are not.
34818# We use the long form for the default assignment because of an extremely
34819# bizarre bug on SunOS 4.1.3.
34820if $ac_need_defaults; then
34821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034824fi
34825
John Criswell0c38eaf2003-09-10 15:17:25 +000034826# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034827# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034828# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034829# Hook for its removal unless debugging.
34830# Note that there is a small window in which the directory will not be cleaned:
34831# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034832$debug ||
34833{
Reid Spencera773bd52006-08-04 18:18:08 +000034834 tmp=
34835 trap 'exit_status=$?
34836 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34837' 0
John Criswell7a73b802003-06-30 21:59:07 +000034838 trap '{ (exit 1); exit 1; }' 1 2 13 15
34839}
John Criswell7a73b802003-06-30 21:59:07 +000034840# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034841
John Criswell7a73b802003-06-30 21:59:07 +000034842{
Reid Spencera773bd52006-08-04 18:18:08 +000034843 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034844 test -n "$tmp" && test -d "$tmp"
34845} ||
34846{
Reid Spencera773bd52006-08-04 18:18:08 +000034847 tmp=./conf$$-$RANDOM
34848 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034849} ||
34850{
John Criswell0c38eaf2003-09-10 15:17:25 +000034851 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034852 { (exit 1); exit 1; }
34853}
34854
John Criswell7a73b802003-06-30 21:59:07 +000034855#
Reid Spencera773bd52006-08-04 18:18:08 +000034856# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034857#
34858
34859# No need to generate the scripts if there are no CONFIG_FILES.
34860# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034861if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034862
34863_ACEOF
34864
Reid Spencera773bd52006-08-04 18:18:08 +000034865
34866
34867ac_delim='%!_!# '
34868for ac_last_try in false false false false false :; do
34869 cat >conf$$subs.sed <<_ACEOF
34870SHELL!$SHELL$ac_delim
34871PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34872PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34873PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34874PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34875PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34876PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34877exec_prefix!$exec_prefix$ac_delim
34878prefix!$prefix$ac_delim
34879program_transform_name!$program_transform_name$ac_delim
34880bindir!$bindir$ac_delim
34881sbindir!$sbindir$ac_delim
34882libexecdir!$libexecdir$ac_delim
34883datarootdir!$datarootdir$ac_delim
34884datadir!$datadir$ac_delim
34885sysconfdir!$sysconfdir$ac_delim
34886sharedstatedir!$sharedstatedir$ac_delim
34887localstatedir!$localstatedir$ac_delim
34888includedir!$includedir$ac_delim
34889oldincludedir!$oldincludedir$ac_delim
34890docdir!$docdir$ac_delim
34891infodir!$infodir$ac_delim
34892htmldir!$htmldir$ac_delim
34893dvidir!$dvidir$ac_delim
34894pdfdir!$pdfdir$ac_delim
34895psdir!$psdir$ac_delim
34896libdir!$libdir$ac_delim
34897localedir!$localedir$ac_delim
34898mandir!$mandir$ac_delim
34899DEFS!$DEFS$ac_delim
34900ECHO_C!$ECHO_C$ac_delim
34901ECHO_N!$ECHO_N$ac_delim
34902ECHO_T!$ECHO_T$ac_delim
34903LIBS!$LIBS$ac_delim
34904build_alias!$build_alias$ac_delim
34905host_alias!$host_alias$ac_delim
34906target_alias!$target_alias$ac_delim
34907LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34908subdirs!$subdirs$ac_delim
34909build!$build$ac_delim
34910build_cpu!$build_cpu$ac_delim
34911build_vendor!$build_vendor$ac_delim
34912build_os!$build_os$ac_delim
34913host!$host$ac_delim
34914host_cpu!$host_cpu$ac_delim
34915host_vendor!$host_vendor$ac_delim
34916host_os!$host_os$ac_delim
34917target!$target$ac_delim
34918target_cpu!$target_cpu$ac_delim
34919target_vendor!$target_vendor$ac_delim
34920target_os!$target_os$ac_delim
34921OS!$OS$ac_delim
34922LINKALL!$LINKALL$ac_delim
34923NOLINKALL!$NOLINKALL$ac_delim
34924LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34925LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34926ARCH!$ARCH$ac_delim
34927ENDIAN!$ENDIAN$ac_delim
34928CC!$CC$ac_delim
34929CFLAGS!$CFLAGS$ac_delim
34930LDFLAGS!$LDFLAGS$ac_delim
34931CPPFLAGS!$CPPFLAGS$ac_delim
34932ac_ct_CC!$ac_ct_CC$ac_delim
34933EXEEXT!$EXEEXT$ac_delim
34934OBJEXT!$OBJEXT$ac_delim
34935CPP!$CPP$ac_delim
34936GREP!$GREP$ac_delim
34937EGREP!$EGREP$ac_delim
34938LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34939BUILD_CC!$BUILD_CC$ac_delim
34940BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34941CVSBUILD!$CVSBUILD$ac_delim
34942ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34943DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034944ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34945EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034946DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034947JIT!$JIT$ac_delim
34948TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34949ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34950ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034951ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034952TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034953ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034954EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34955CXX!$CXX$ac_delim
34956CXXFLAGS!$CXXFLAGS$ac_delim
34957ac_ct_CXX!$ac_ct_CXX$ac_delim
34958LEX!$LEX$ac_delim
34959LEXLIB!$LEXLIB$ac_delim
34960LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34961FLEX!$FLEX$ac_delim
34962YACC!$YACC$ac_delim
34963YFLAGS!$YFLAGS$ac_delim
34964BISON!$BISON$ac_delim
34965NM!$NM$ac_delim
34966ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034967_ACEOF
34968
34969 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34970 break
34971 elif $ac_last_try; then
34972 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34973echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34974 { (exit 1); exit 1; }; }
34975 else
34976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034977 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034978done
34979
34980ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34981if test -n "$ac_eof"; then
34982 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34983 ac_eof=`expr $ac_eof + 1`
34984fi
34985
34986cat >>$CONFIG_STATUS <<_ACEOF
34987cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34988/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34989_ACEOF
34990sed '
34991s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34992s/^/s,@/; s/!/@,|#_!!_#|/
34993:n
34994t n
34995s/'"$ac_delim"'$/,g/; t
34996s/$/\\/; p
34997N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34998' >>$CONFIG_STATUS <conf$$subs.sed
34999rm -f conf$$subs.sed
35000cat >>$CONFIG_STATUS <<_ACEOF
35001CEOF$ac_eof
35002_ACEOF
35003
35004
35005ac_delim='%!_!# '
35006for ac_last_try in false false false false false :; do
35007 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035008LN_S!$LN_S$ac_delim
35009CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035010CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035011DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035012FIND!$FIND$ac_delim
35013MKDIR!$MKDIR$ac_delim
35014MV!$MV$ac_delim
35015RANLIB!$RANLIB$ac_delim
35016RM!$RM$ac_delim
35017SED!$SED$ac_delim
35018TAR!$TAR$ac_delim
35019BINPWD!$BINPWD$ac_delim
35020GRAPHVIZ!$GRAPHVIZ$ac_delim
35021DOT!$DOT$ac_delim
35022GV!$GV$ac_delim
35023DOTTY!$DOTTY$ac_delim
35024PERL!$PERL$ac_delim
35025HAVE_PERL!$HAVE_PERL$ac_delim
35026INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35027INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35028INSTALL_DATA!$INSTALL_DATA$ac_delim
35029BZIP2!$BZIP2$ac_delim
35030DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035031GROFF!$GROFF$ac_delim
35032GZIP!$GZIP$ac_delim
35033POD2HTML!$POD2HTML$ac_delim
35034POD2MAN!$POD2MAN$ac_delim
35035RUNTEST!$RUNTEST$ac_delim
35036TCLSH!$TCLSH$ac_delim
35037ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035038OCAMLC!$OCAMLC$ac_delim
35039OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035040OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035041INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35042INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35043CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35044CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35045LIBADD_DL!$LIBADD_DL$ac_delim
35046ECHO!$ECHO$ac_delim
35047AR!$AR$ac_delim
35048STRIP!$STRIP$ac_delim
35049CXXCPP!$CXXCPP$ac_delim
35050F77!$F77$ac_delim
35051FFLAGS!$FFLAGS$ac_delim
35052ac_ct_F77!$ac_ct_F77$ac_delim
35053LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035054LLVMGCC!$LLVMGCC$ac_delim
35055LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035056USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035057HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035058HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035059ALLOCA!$ALLOCA$ac_delim
35060MMAP_FILE!$MMAP_FILE$ac_delim
35061LLVMCC1!$LLVMCC1$ac_delim
35062LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35063LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035064LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035065LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35066LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035067LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035068SHLIBEXT!$SHLIBEXT$ac_delim
35069LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35070LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35071LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35072LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35073LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35074LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35075LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35076LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35077LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35078LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035079BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35080ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035081LIBOBJS!$LIBOBJS$ac_delim
35082LTLIBOBJS!$LTLIBOBJS$ac_delim
35083_ACEOF
35084
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035085 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
Reid Spencera773bd52006-08-04 18:18:08 +000035086 break
35087 elif $ac_last_try; then
35088 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35089echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35090 { (exit 1); exit 1; }; }
35091 else
35092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35093 fi
35094done
35095
35096ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35097if test -n "$ac_eof"; then
35098 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35099 ac_eof=`expr $ac_eof + 1`
35100fi
35101
35102cat >>$CONFIG_STATUS <<_ACEOF
35103cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35104/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35105_ACEOF
35106sed '
35107s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35108s/^/s,@/; s/!/@,|#_!!_#|/
35109:n
35110t n
35111s/'"$ac_delim"'$/,g/; t
35112s/$/\\/; p
35113N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35114' >>$CONFIG_STATUS <conf$$subs.sed
35115rm -f conf$$subs.sed
35116cat >>$CONFIG_STATUS <<_ACEOF
35117:end
35118s/|#_!!_#|//g
35119CEOF$ac_eof
35120_ACEOF
35121
35122
35123# VPATH may cause trouble with some makes, so we remove $(srcdir),
35124# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35125# trailing colons and then remove the whole line if VPATH becomes empty
35126# (actually we leave an empty line to preserve line numbers).
35127if test "x$srcdir" = x.; then
35128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35129s/:*\$(srcdir):*/:/
35130s/:*\${srcdir}:*/:/
35131s/:*@srcdir@:*/:/
35132s/^\([^=]*=[ ]*\):*/\1/
35133s/:*$//
35134s/^[^=]*=[ ]*$//
35135}'
35136fi
35137
35138cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035139fi # test -n "$CONFIG_FILES"
35140
Reid Spencera773bd52006-08-04 18:18:08 +000035141
35142for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35143do
35144 case $ac_tag in
35145 :[FHLC]) ac_mode=$ac_tag; continue;;
35146 esac
35147 case $ac_mode$ac_tag in
35148 :[FHL]*:*);;
35149 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35150echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35151 { (exit 1); exit 1; }; };;
35152 :[FH]-) ac_tag=-:-;;
35153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35154 esac
35155 ac_save_IFS=$IFS
35156 IFS=:
35157 set x $ac_tag
35158 IFS=$ac_save_IFS
35159 shift
35160 ac_file=$1
35161 shift
35162
35163 case $ac_mode in
35164 :L) ac_source=$1;;
35165 :[FH])
35166 ac_file_inputs=
35167 for ac_f
35168 do
35169 case $ac_f in
35170 -) ac_f="$tmp/stdin";;
35171 *) # Look for the file first in the build tree, then in the source tree
35172 # (if the path is not absolute). The absolute path cannot be DOS-style,
35173 # because $ac_f cannot contain `:'.
35174 test -f "$ac_f" ||
35175 case $ac_f in
35176 [\\/$]*) false;;
35177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35178 esac ||
35179 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35180echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35181 { (exit 1); exit 1; }; };;
35182 esac
35183 ac_file_inputs="$ac_file_inputs $ac_f"
35184 done
35185
35186 # Let's still pretend it is `configure' which instantiates (i.e., don't
35187 # use $as_me), people would be surprised to read:
35188 # /* config.h. Generated by config.status. */
35189 configure_input="Generated from "`IFS=:
35190 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35191 if test x"$ac_file" != x-; then
35192 configure_input="$ac_file. $configure_input"
35193 { echo "$as_me:$LINENO: creating $ac_file" >&5
35194echo "$as_me: creating $ac_file" >&6;}
35195 fi
35196
35197 case $ac_tag in
35198 *:-:* | *:-) cat >"$tmp/stdin";;
35199 esac
35200 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035201 esac
35202
Reid Spencera773bd52006-08-04 18:18:08 +000035203 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035204$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035205 X"$ac_file" : 'X\(//\)[^/]' \| \
35206 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035207 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035208echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35210 s//\1/
35211 q
35212 }
35213 /^X\(\/\/\)[^/].*/{
35214 s//\1/
35215 q
35216 }
35217 /^X\(\/\/\)$/{
35218 s//\1/
35219 q
35220 }
35221 /^X\(\/\).*/{
35222 s//\1/
35223 q
35224 }
35225 s/.*/./; q'`
35226 { as_dir="$ac_dir"
35227 case $as_dir in #(
35228 -*) as_dir=./$as_dir;;
35229 esac
35230 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035231 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035232 while :; do
35233 case $as_dir in #(
35234 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35235 *) as_qdir=$as_dir;;
35236 esac
35237 as_dirs="'$as_qdir' $as_dirs"
35238 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035239$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035240 X"$as_dir" : 'X\(//\)[^/]' \| \
35241 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035243echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35245 s//\1/
35246 q
35247 }
35248 /^X\(\/\/\)[^/].*/{
35249 s//\1/
35250 q
35251 }
35252 /^X\(\/\/\)$/{
35253 s//\1/
35254 q
35255 }
35256 /^X\(\/\).*/{
35257 s//\1/
35258 q
35259 }
35260 s/.*/./; q'`
35261 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035262 done
Reid Spencera773bd52006-08-04 18:18:08 +000035263 test -z "$as_dirs" || eval "mkdir $as_dirs"
35264 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35265echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035266 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035267 ac_builddir=.
35268
Reid Spencera773bd52006-08-04 18:18:08 +000035269case "$ac_dir" in
35270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35271*)
John Criswell7a73b802003-06-30 21:59:07 +000035272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035273 # A ".." for each directory in $ac_dir_suffix.
35274 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35275 case $ac_top_builddir_sub in
35276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35278 esac ;;
35279esac
35280ac_abs_top_builddir=$ac_pwd
35281ac_abs_builddir=$ac_pwd$ac_dir_suffix
35282# for backward compatibility:
35283ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035284
35285case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035286 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035287 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035288 ac_top_srcdir=$ac_top_builddir_sub
35289 ac_abs_top_srcdir=$ac_pwd ;;
35290 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035291 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035292 ac_top_srcdir=$srcdir
35293 ac_abs_top_srcdir=$srcdir ;;
35294 *) # Relative name.
35295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35296 ac_top_srcdir=$ac_top_build_prefix$srcdir
35297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035298esac
Reid Spencera773bd52006-08-04 18:18:08 +000035299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035300
John Criswell7a73b802003-06-30 21:59:07 +000035301
Reid Spencera773bd52006-08-04 18:18:08 +000035302 case $ac_mode in
35303 :F)
35304 #
35305 # CONFIG_FILE
35306 #
John Criswell7a73b802003-06-30 21:59:07 +000035307
35308 case $INSTALL in
35309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035311 esac
John Criswell7a73b802003-06-30 21:59:07 +000035312_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035313
35314cat >>$CONFIG_STATUS <<\_ACEOF
35315# If the template does not know about datarootdir, expand it.
35316# FIXME: This hack should be removed a few years after 2.60.
35317ac_datarootdir_hack=; ac_datarootdir_seen=
35318
35319case `sed -n '/datarootdir/ {
35320 p
35321 q
35322}
35323/@datadir@/p
35324/@docdir@/p
35325/@infodir@/p
35326/@localedir@/p
35327/@mandir@/p
35328' $ac_file_inputs` in
35329*datarootdir*) ac_datarootdir_seen=yes;;
35330*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35331 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35332echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35333_ACEOF
35334cat >>$CONFIG_STATUS <<_ACEOF
35335 ac_datarootdir_hack='
35336 s&@datadir@&$datadir&g
35337 s&@docdir@&$docdir&g
35338 s&@infodir@&$infodir&g
35339 s&@localedir@&$localedir&g
35340 s&@mandir@&$mandir&g
35341 s&\\\${datarootdir}&$datarootdir&g' ;;
35342esac
35343_ACEOF
35344
35345# Neutralize VPATH when `$srcdir' = `.'.
35346# Shell code in configure.ac might set extrasub.
35347# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035348cat >>$CONFIG_STATUS <<_ACEOF
35349 sed "$ac_vpsub
35350$extrasub
35351_ACEOF
35352cat >>$CONFIG_STATUS <<\_ACEOF
35353:t
35354/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035355s&@configure_input@&$configure_input&;t t
35356s&@top_builddir@&$ac_top_builddir_sub&;t t
35357s&@srcdir@&$ac_srcdir&;t t
35358s&@abs_srcdir@&$ac_abs_srcdir&;t t
35359s&@top_srcdir@&$ac_top_srcdir&;t t
35360s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35361s&@builddir@&$ac_builddir&;t t
35362s&@abs_builddir@&$ac_abs_builddir&;t t
35363s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35364s&@INSTALL@&$ac_INSTALL&;t t
35365$ac_datarootdir_hack
35366" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035367
Reid Spencera773bd52006-08-04 18:18:08 +000035368test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35369 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35371 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35372which seems to be undefined. Please make sure it is defined." >&5
35373echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35374which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035375
Reid Spencera773bd52006-08-04 18:18:08 +000035376 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035377 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035378 -) cat "$tmp/out"; rm -f "$tmp/out";;
35379 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035380 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035381 ;;
35382 :H)
35383 #
35384 # CONFIG_HEADER
35385 #
John Criswell7a73b802003-06-30 21:59:07 +000035386_ACEOF
35387
Reid Spencera773bd52006-08-04 18:18:08 +000035388# Transform confdefs.h into a sed script `conftest.defines', that
35389# substitutes the proper values into config.h.in to produce config.h.
35390rm -f conftest.defines conftest.tail
35391# First, append a space to every undef/define line, to ease matching.
35392echo 's/$/ /' >conftest.defines
35393# Then, protect against being on the right side of a sed subst, or in
35394# an unquoted here document, in config.status. If some macros were
35395# called several times there might be several #defines for the same
35396# symbol, which is useless. But do not sort them, since the last
35397# AC_DEFINE must be honored.
35398ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35399# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35400# NAME is the cpp macro being defined, VALUE is the value it is being given.
35401# PARAMS is the parameter list in the macro definition--in most cases, it's
35402# just an empty string.
35403ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35404ac_dB='\\)[ (].*,\\1define\\2'
35405ac_dC=' '
35406ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035407
Reid Spencera773bd52006-08-04 18:18:08 +000035408uniq confdefs.h |
35409 sed -n '
35410 t rset
35411 :rset
35412 s/^[ ]*#[ ]*define[ ][ ]*//
35413 t ok
35414 d
35415 :ok
35416 s/[\\&,]/\\&/g
35417 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35418 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35419 ' >>conftest.defines
35420
35421# Remove the space that was appended to ease matching.
35422# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035423# example, in the case of _POSIX_SOURCE, which is predefined and required
35424# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035425# (The regexp can be short, since the line contains either #define or #undef.)
35426echo 's/ $//
35427s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035428
Reid Spencera773bd52006-08-04 18:18:08 +000035429# Break up conftest.defines:
35430ac_max_sed_lines=50
35431
35432# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35433# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35434# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35435# et cetera.
35436ac_in='$ac_file_inputs'
35437ac_out='"$tmp/out1"'
35438ac_nxt='"$tmp/out2"'
35439
35440while :
John Criswell7a73b802003-06-30 21:59:07 +000035441do
Reid Spencera773bd52006-08-04 18:18:08 +000035442 # Write a here document:
35443 cat >>$CONFIG_STATUS <<_ACEOF
35444 # First, check the format of the line:
35445 cat >"\$tmp/defines.sed" <<\\CEOF
35446/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35447/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35448b
35449:def
35450_ACEOF
35451 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035452 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035453 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35454 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35455 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35456 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035457 rm -f conftest.defines
35458 mv conftest.tail conftest.defines
35459done
Reid Spencera773bd52006-08-04 18:18:08 +000035460rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035461
Reid Spencera773bd52006-08-04 18:18:08 +000035462echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035463cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035464 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035465 echo "/* $configure_input */" >"$tmp/config.h"
35466 cat "$ac_result" >>"$tmp/config.h"
35467 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035468 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35469echo "$as_me: $ac_file is unchanged" >&6;}
35470 else
John Criswell7a73b802003-06-30 21:59:07 +000035471 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035472 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035473 fi
35474 else
Reid Spencera773bd52006-08-04 18:18:08 +000035475 echo "/* $configure_input */"
35476 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035477 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035478 rm -f "$tmp/out12"
35479 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035480
Reid Spencera773bd52006-08-04 18:18:08 +000035481 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35482echo "$as_me: executing $ac_file commands" >&6;}
35483 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035484 esac
John Criswell7a73b802003-06-30 21:59:07 +000035485
Reid Spencera773bd52006-08-04 18:18:08 +000035486
35487 case $ac_file$ac_mode in
35488 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35489 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35490 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35491 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35492 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35493 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35494 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35495 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035496 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35497 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035498 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35499 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35500 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35501 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35502 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35503 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35504 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35505 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35506 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35507 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035508 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35509 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35510 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35511 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035512
35513 esac
35514done # for ac_tag
35515
John Criswell7a73b802003-06-30 21:59:07 +000035516
35517{ (exit 0); exit 0; }
35518_ACEOF
35519chmod +x $CONFIG_STATUS
35520ac_clean_files=$ac_clean_files_save
35521
35522
35523# configure is writing to config.log, and then calls config.status.
35524# config.status does its own redirection, appending to config.log.
35525# Unfortunately, on DOS this fails, as config.log is still kept open
35526# by configure, so config.status won't be able to write to it; its
35527# output is simply discarded. So we exec the FD to /dev/null,
35528# effectively closing config.log, so it can be properly (re)opened and
35529# appended to by config.status. When coming back to configure, we
35530# need to make the FD available again.
35531if test "$no_create" != yes; then
35532 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035533 ac_config_status_args=
35534 test "$silent" = yes &&
35535 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035536 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035538 exec 5>>config.log
35539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35540 # would make configure fail if this is the last instruction.
35541 $ac_cs_success || { (exit 1); exit 1; }
35542fi
35543
John Criswell12399a12003-09-30 15:55:44 +000035544#
35545# CONFIG_SUBDIRS section.
35546#
35547if test "$no_recursion" != yes; then
35548
35549 # Remove --cache-file and --srcdir arguments so they do not pile up.
35550 ac_sub_configure_args=
35551 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035552 eval "set x $ac_configure_args"
35553 shift
35554 for ac_arg
35555 do
John Criswell12399a12003-09-30 15:55:44 +000035556 if test -n "$ac_prev"; then
35557 ac_prev=
35558 continue
35559 fi
35560 case $ac_arg in
35561 -cache-file | --cache-file | --cache-fil | --cache-fi \
35562 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35563 ac_prev=cache_file ;;
35564 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35565 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35566 | --c=*)
35567 ;;
35568 --config-cache | -C)
35569 ;;
35570 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35571 ac_prev=srcdir ;;
35572 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35573 ;;
35574 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35575 ac_prev=prefix ;;
35576 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35577 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035578 *)
35579 case $ac_arg in
35580 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35581 esac
35582 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035583 esac
35584 done
35585
35586 # Always prepend --prefix to ensure using the same prefix
35587 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035588 ac_arg="--prefix=$prefix"
35589 case $ac_arg in
35590 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35591 esac
35592 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035593
35594 ac_popdir=`pwd`
35595 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35596
35597 # Do not complain, so a configure script can configure whichever
35598 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035599 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035600
Reid Spencera773bd52006-08-04 18:18:08 +000035601 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35602 echo "$as_me:$LINENO: $ac_msg" >&5
35603 echo "$ac_msg" >&6
35604 { as_dir="$ac_dir"
35605 case $as_dir in #(
35606 -*) as_dir=./$as_dir;;
35607 esac
35608 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035609 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035610 while :; do
35611 case $as_dir in #(
35612 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35613 *) as_qdir=$as_dir;;
35614 esac
35615 as_dirs="'$as_qdir' $as_dirs"
35616 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035617$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035618 X"$as_dir" : 'X\(//\)[^/]' \| \
35619 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035621echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35623 s//\1/
35624 q
35625 }
35626 /^X\(\/\/\)[^/].*/{
35627 s//\1/
35628 q
35629 }
35630 /^X\(\/\/\)$/{
35631 s//\1/
35632 q
35633 }
35634 /^X\(\/\).*/{
35635 s//\1/
35636 q
35637 }
35638 s/.*/./; q'`
35639 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035640 done
Reid Spencera773bd52006-08-04 18:18:08 +000035641 test -z "$as_dirs" || eval "mkdir $as_dirs"
35642 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35643echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035644 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035645 ac_builddir=.
35646
Reid Spencera773bd52006-08-04 18:18:08 +000035647case "$ac_dir" in
35648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35649*)
John Criswell12399a12003-09-30 15:55:44 +000035650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035651 # A ".." for each directory in $ac_dir_suffix.
35652 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35653 case $ac_top_builddir_sub in
35654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35656 esac ;;
35657esac
35658ac_abs_top_builddir=$ac_pwd
35659ac_abs_builddir=$ac_pwd$ac_dir_suffix
35660# for backward compatibility:
35661ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035662
35663case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035664 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035665 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035666 ac_top_srcdir=$ac_top_builddir_sub
35667 ac_abs_top_srcdir=$ac_pwd ;;
35668 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035669 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035670 ac_top_srcdir=$srcdir
35671 ac_abs_top_srcdir=$srcdir ;;
35672 *) # Relative name.
35673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35674 ac_top_srcdir=$ac_top_build_prefix$srcdir
35675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035676esac
Reid Spencera773bd52006-08-04 18:18:08 +000035677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035678
35679
Reid Spencera773bd52006-08-04 18:18:08 +000035680 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035681
35682 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035683 if test -f "$ac_srcdir/configure.gnu"; then
35684 ac_sub_configure=$ac_srcdir/configure.gnu
35685 elif test -f "$ac_srcdir/configure"; then
35686 ac_sub_configure=$ac_srcdir/configure
35687 elif test -f "$ac_srcdir/configure.in"; then
35688 # This should be Cygnus configure.
35689 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035690 else
35691 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35692echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35693 ac_sub_configure=
35694 fi
35695
35696 # The recursion is here.
35697 if test -n "$ac_sub_configure"; then
35698 # Make the cache file name correct relative to the subdirectory.
35699 case $cache_file in
35700 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035701 *) # Relative name.
35702 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035703 esac
35704
Reid Spencera773bd52006-08-04 18:18:08 +000035705 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35706echo "$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 +000035707 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035708 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35709 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035710 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035711echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35712 { (exit 1); exit 1; }; }
35713 fi
35714
Reid Spencera773bd52006-08-04 18:18:08 +000035715 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035716 done
35717fi
35718
Brian Gaekef3b24102003-11-16 18:38:14 +000035719