blob: 25bbe720278a603b66b654f81ec8d3050f223a84 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencera773bd52006-08-04 18:18:08 +00003# Generated by GNU Autoconf 2.60 for llvm 1.9cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswellc0c186d2005-11-08 21:11:33 +000012# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Reid Spencera773bd52006-08-04 18:18:08 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528else
529 as_executable_p=:
530fi
531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Reid Spencer1bc68642006-07-27 23:00:30 +0000718PACKAGE_VERSION='1.9cvs'
719PACKAGE_STRING='llvm 1.9cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
833DEBUG_RUNTIME
834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
838TARGETS_TO_BUILD
839EXTRA_OPTIONS
840CXX
841CXXFLAGS
842ac_ct_CXX
843LEX
844LEXLIB
845LEX_OUTPUT_ROOT
846FLEX
847YACC
848YFLAGS
849BISON
850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
882INSTALL_LTDL_TRUE
883INSTALL_LTDL_FALSE
884CONVENIENCE_LTDL_TRUE
885CONVENIENCE_LTDL_FALSE
886LIBADD_DL
887ECHO
888AR
889STRIP
890CXXCPP
891F77
892FFLAGS
893ac_ct_F77
894LIBTOOL
895ETAGSFLAGS
896LLVMGCC
897LLVMGXX
898ALLOCA
899MMAP_FILE
900LLVMCC1
901LLVMCC1PLUS
902LLVMGCCDIR
903LLVMGCC_VERSION
904LLVMGCC_MAJVERS
905SHLIBEXT
906LLVM_PREFIX
907LLVM_BINDIR
908LLVM_LIBDIR
909LLVM_DATADIR
910LLVM_DOCSDIR
911LLVM_ETCDIR
912LLVM_INCLUDEDIR
913LLVM_INFODIR
914LLVM_MANDIR
915LLVM_CONFIGTIME
916LIBOBJS
917LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000918ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000919 ac_precious_vars='build_alias
920host_alias
921target_alias
922CC
923CFLAGS
924LDFLAGS
925CPPFLAGS
926CPP
927CXX
928CXXFLAGS
929CCC
930YACC
931YFLAGS
932CXXCPP
933F77
934FFLAGS'
935ac_subdirs_all='projects/sample
936projects/Stacker
937projects/privbracket
938projects/llvm-test
939projects/llvm-reopt
940projects/llvm-gcc
941projects/llvm-java
942projects/llvm-tv
943projects/llvm-poolalloc
944projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000945
946# Initialize some variables set by options.
947ac_init_help=
948ac_init_version=false
949# The variables have the same names as the options, with
950# dashes changed to underlines.
951cache_file=/dev/null
952exec_prefix=NONE
953no_create=
954no_recursion=
955prefix=NONE
956program_prefix=NONE
957program_suffix=NONE
958program_transform_name=s,x,x,
959silent=
960site=
961srcdir=
962verbose=
963x_includes=NONE
964x_libraries=NONE
965
966# Installation directory options.
967# These are left unexpanded so users can "make install exec_prefix=/foo"
968# and all the variables that are supposed to be based on exec_prefix
969# by default will actually change.
970# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000971# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000972bindir='${exec_prefix}/bin'
973sbindir='${exec_prefix}/sbin'
974libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000975datarootdir='${prefix}/share'
976datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000977sysconfdir='${prefix}/etc'
978sharedstatedir='${prefix}/com'
979localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000980includedir='${prefix}/include'
981oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000982docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983infodir='${datarootdir}/info'
984htmldir='${docdir}'
985dvidir='${docdir}'
986pdfdir='${docdir}'
987psdir='${docdir}'
988libdir='${exec_prefix}/lib'
989localedir='${datarootdir}/locale'
990mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000991
992ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000993ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000994for ac_option
995do
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000998 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000999 ac_prev=
1000 continue
1001 fi
1002
Reid Spencera773bd52006-08-04 18:18:08 +00001003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
John Criswell7a73b802003-06-30 21:59:07 +00001007
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1009
Reid Spencera773bd52006-08-04 18:18:08 +00001010 case $ac_dashdash$ac_option in
1011 --)
1012 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001013
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1018
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1023
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1030
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1033
Reid Spencera773bd52006-08-04 18:18:08 +00001034 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001035 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001037 datadir=$ac_optarg ;;
1038
Reid Spencera773bd52006-08-04 18:18:08 +00001039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1045
John Criswell7a73b802003-06-30 21:59:07 +00001046 -disable-* | --disable-*)
1047 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1050 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1051 { (exit 1); exit 1; }; }
1052 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001053 eval enable_$ac_feature=no ;;
1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001064
1065 -enable-* | --enable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001072 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001073
1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076 | --exec | --exe | --ex)
1077 ac_prev=exec_prefix ;;
1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080 | --exec=* | --exe=* | --ex=*)
1081 exec_prefix=$ac_optarg ;;
1082
1083 -gas | --gas | --ga | --g)
1084 # Obsolete; use --with-gas.
1085 with_gas=yes ;;
1086
1087 -help | --help | --hel | --he | -h)
1088 ac_init_help=long ;;
1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090 ac_init_help=recursive ;;
1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092 ac_init_help=short ;;
1093
1094 -host | --host | --hos | --ho)
1095 ac_prev=host_alias ;;
1096 -host=* | --host=* | --hos=* | --ho=*)
1097 host_alias=$ac_optarg ;;
1098
Reid Spencera773bd52006-08-04 18:18:08 +00001099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 ac_prev=htmldir ;;
1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 | --ht=*)
1103 htmldir=$ac_optarg ;;
1104
John Criswell7a73b802003-06-30 21:59:07 +00001105 -includedir | --includedir | --includedi | --included | --include \
1106 | --includ | --inclu | --incl | --inc)
1107 ac_prev=includedir ;;
1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109 | --includ=* | --inclu=* | --incl=* | --inc=*)
1110 includedir=$ac_optarg ;;
1111
1112 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 ac_prev=infodir ;;
1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115 infodir=$ac_optarg ;;
1116
1117 -libdir | --libdir | --libdi | --libd)
1118 ac_prev=libdir ;;
1119 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120 libdir=$ac_optarg ;;
1121
1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123 | --libexe | --libex | --libe)
1124 ac_prev=libexecdir ;;
1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126 | --libexe=* | --libex=* | --libe=*)
1127 libexecdir=$ac_optarg ;;
1128
Reid Spencera773bd52006-08-04 18:18:08 +00001129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1133
John Criswell7a73b802003-06-30 21:59:07 +00001134 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001135 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001139 localstatedir=$ac_optarg ;;
1140
1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 ac_prev=mandir ;;
1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144 mandir=$ac_optarg ;;
1145
1146 -nfp | --nfp | --nf)
1147 # Obsolete; use --without-fp.
1148 with_fp=no ;;
1149
1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151 | --no-cr | --no-c | -n)
1152 no_create=yes ;;
1153
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 no_recursion=yes ;;
1157
1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160 | --oldin | --oldi | --old | --ol | --o)
1161 ac_prev=oldincludedir ;;
1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165 oldincludedir=$ac_optarg ;;
1166
1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 ac_prev=prefix ;;
1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170 prefix=$ac_optarg ;;
1171
1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173 | --program-pre | --program-pr | --program-p)
1174 ac_prev=program_prefix ;;
1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177 program_prefix=$ac_optarg ;;
1178
1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180 | --program-suf | --program-su | --program-s)
1181 ac_prev=program_suffix ;;
1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184 program_suffix=$ac_optarg ;;
1185
1186 -program-transform-name | --program-transform-name \
1187 | --program-transform-nam | --program-transform-na \
1188 | --program-transform-n | --program-transform- \
1189 | --program-transform | --program-transfor \
1190 | --program-transfo | --program-transf \
1191 | --program-trans | --program-tran \
1192 | --progr-tra | --program-tr | --program-t)
1193 ac_prev=program_transform_name ;;
1194 -program-transform-name=* | --program-transform-name=* \
1195 | --program-transform-nam=* | --program-transform-na=* \
1196 | --program-transform-n=* | --program-transform-=* \
1197 | --program-transform=* | --program-transfor=* \
1198 | --program-transfo=* | --program-transf=* \
1199 | --program-trans=* | --program-tran=* \
1200 | --progr-tra=* | --program-tr=* | --program-t=*)
1201 program_transform_name=$ac_optarg ;;
1202
Reid Spencera773bd52006-08-04 18:18:08 +00001203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 ac_prev=pdfdir ;;
1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206 pdfdir=$ac_optarg ;;
1207
1208 -psdir | --psdir | --psdi | --psd | --ps)
1209 ac_prev=psdir ;;
1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 psdir=$ac_optarg ;;
1212
John Criswell7a73b802003-06-30 21:59:07 +00001213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 silent=yes ;;
1216
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
1221 sbindir=$ac_optarg ;;
1222
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
1232 sharedstatedir=$ac_optarg ;;
1233
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
1237 site=$ac_optarg ;;
1238
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1243
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1250
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1255
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1258
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1261
1262 -with-* | --with-*)
1263 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1266 { echo "$as_me: error: invalid package name: $ac_package" >&2
1267 { (exit 1); exit 1; }; }
1268 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001269 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001270
1271 -without-* | --without-*)
1272 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid package name: $ac_package" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001278 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001279
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1283
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1290
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1297
1298 -*) { echo "$as_me: error: unrecognized option: $ac_option
1299Try \`$0 --help' for more information." >&2
1300 { (exit 1); exit 1; }; }
1301 ;;
1302
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1307 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1308 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001309 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001310 export $ac_envvar ;;
1311
1312 *)
1313 # FIXME: should be removed in autoconf 3.0.
1314 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1318 ;;
1319
1320 esac
1321done
1322
1323if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 { echo "$as_me: error: missing argument to $ac_option" >&2
1326 { (exit 1); exit 1; }; }
1327fi
1328
Reid Spencera773bd52006-08-04 18:18:08 +00001329# Be sure to have absolute directory names.
1330for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001334do
Reid Spencera773bd52006-08-04 18:18:08 +00001335 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001336 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001339 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001340 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1341 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001342done
1343
1344# There might be people who depend on the old broken behavior: `$host'
1345# used to hold the argument of --host etc.
1346# FIXME: To remove some day.
1347build=$build_alias
1348host=$host_alias
1349target=$target_alias
1350
1351# FIXME: To remove some day.
1352if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
1355 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1356 If a cross compiler is detected then cross compile mode will be used." >&2
1357 elif test "x$build_alias" != "x$host_alias"; then
1358 cross_compiling=yes
1359 fi
1360fi
1361
1362ac_tool_prefix=
1363test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365test "$silent" = yes && exec 6>/dev/null
1366
1367
Reid Spencera773bd52006-08-04 18:18:08 +00001368ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369ac_ls_di=`ls -di .` &&
1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 { echo "$as_me: error: Working directory cannot be determined" >&2
1372 { (exit 1); exit 1; }; }
1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 { echo "$as_me: error: pwd does not report name of working directory" >&2
1375 { (exit 1); exit 1; }; }
1376
1377
John Criswell7a73b802003-06-30 21:59:07 +00001378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001383$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001384 X"$0" : 'X\(//\)[^/]' \| \
1385 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001386 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001387echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\/\)[^/].*/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\).*/{
1401 s//\1/
1402 q
1403 }
1404 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001405 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001406 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001407 srcdir=..
1408 fi
1409else
1410 ac_srcdir_defaulted=no
1411fi
Reid Spencera773bd52006-08-04 18:18:08 +00001412if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001415 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001416fi
Reid Spencera773bd52006-08-04 18:18:08 +00001417ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418ac_abs_confdir=`(
1419 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001420 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001421 pwd)`
1422# When building in place, set srcdir=.
1423if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425fi
1426# Remove unnecessary trailing slashes from srcdir.
1427# Double slashes in file names in object file debugging info
1428# mess up M-x gdb in Emacs.
1429case $srcdir in
1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431esac
1432for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
John Criswell7a73b802003-06-30 21:59:07 +00001438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
Reid Spencer1bc68642006-07-27 23:00:30 +00001446\`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465
John Criswell7a73b802003-06-30 21:59:07 +00001466Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001499_ACEOF
1500
1501 cat <<\_ACEOF
1502
1503System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 --target=TARGET configure for building compilers for TARGET [HOST]
1507_ACEOF
1508fi
1509
1510if test -n "$ac_init_help"; then
1511 case $ac_init_help in
Reid Spencer1bc68642006-07-27 23:00:30 +00001512 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001513 esac
1514 cat <<\_ACEOF
1515
1516Optional Features:
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001519 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001520 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001521 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001522 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001523 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001524 --enable-threads Use threads if available (default is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001525 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001526 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001527 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001528 --enable-shared[=PKGS] build shared libraries
1529 [default=enable_shared_default]
1530 --enable-static[=PKGS] build static libraries
1531 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001532 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001533 optimize for fast installation
1534 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001535 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001536
1537Optional Packages:
1538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001540 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1541 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001542 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001543 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-pic try to use only PIC/non-PIC objects [default=use
1546 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001547 --with-tags[=TAGS] include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001548
1549Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001550 CC C compiler command
1551 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001556 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001557 CXX C++ compiler command
1558 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001559 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1560 the first program found out of: `bison -y', `byacc', `yacc'.
1561 YFLAGS The list of arguments that will be passed by default to $YACC.
1562 This script will default YFLAGS to the empty string to avoid a
1563 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001564 CXXCPP C++ preprocessor
1565 F77 Fortran 77 compiler command
1566 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001567
1568Use these variables to override the choices made by `configure' or to help
1569it to find libraries and programs with nonstandard names/locations.
1570
1571Report bugs to <llvmbugs@cs.uiuc.edu>.
1572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001573ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001574fi
1575
1576if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001579 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001580 ac_builddir=.
1581
Reid Spencera773bd52006-08-04 18:18:08 +00001582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
John Criswell7a73b802003-06-30 21:59:07 +00001585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001599 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001600 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001604 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001611esac
Reid Spencera773bd52006-08-04 18:18:08 +00001612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001613
Reid Spencera773bd52006-08-04 18:18:08 +00001614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001622 else
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001626 done
1627fi
1628
Reid Spencera773bd52006-08-04 18:18:08 +00001629test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001630if $ac_init_version; then
1631 cat <<\_ACEOF
Reid Spencer1bc68642006-07-27 23:00:30 +00001632llvm configure 1.9cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001633generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001634
Reid Spencera773bd52006-08-04 18:18:08 +00001635Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001637This configure script is free software; the Free Software Foundation
1638gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001639
John Criswellc0c186d2005-11-08 21:11:33 +00001640Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001641_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001642 exit
John Criswell7a73b802003-06-30 21:59:07 +00001643fi
Reid Spencera773bd52006-08-04 18:18:08 +00001644cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001645This file contains any messages produced by compilers while
1646running configure, to aid debugging if configure makes a mistake.
1647
Reid Spencer1bc68642006-07-27 23:00:30 +00001648It was created by llvm $as_me 1.9cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001649generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001650
1651 $ $0 $@
1652
1653_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001654exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001655{
1656cat <<_ASUNAME
1657## --------- ##
1658## Platform. ##
1659## --------- ##
1660
1661hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665uname -v = `(uname -v) 2>/dev/null || echo unknown`
1666
1667/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1669
1670/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1671/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1672/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001673/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001674/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1675/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1676/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1677
1678_ASUNAME
1679
1680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1686done
Reid Spencera773bd52006-08-04 18:18:08 +00001687IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001688
1689} >&5
1690
1691cat >&5 <<_ACEOF
1692
1693
1694## ----------- ##
1695## Core tests. ##
1696## ----------- ##
1697
1698_ACEOF
1699
1700
1701# Keep a trace of the command line.
1702# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001703# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001704# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001705# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001706ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001707ac_configure_args0=
1708ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001709ac_must_keep_next=false
1710for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001711do
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 for ac_arg
1713 do
1714 case $ac_arg in
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1718 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001719 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 esac
1722 case $ac_pass in
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724 2)
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001727 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001729 case $ac_arg in
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 esac
1737 ;;
1738 -* ) ac_must_keep_next=true ;;
1739 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001741 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ;;
1743 esac
1744 done
John Criswell7a73b802003-06-30 21:59:07 +00001745done
John Criswell0c38eaf2003-09-10 15:17:25 +00001746$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747$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 +00001748
1749# When interrupted or exit'd, cleanup temporary files, and complete
1750# config.log. We remove comments because anyway the quotes in there
1751# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001752# WARNING: Use '\'' to represent an apostrophe within the trap.
1753# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001754trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1756 {
1757 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001758
John Criswell7a73b802003-06-30 21:59:07 +00001759 cat <<\_ASBOX
1760## ---------------- ##
1761## Cache variables. ##
1762## ---------------- ##
1763_ASBOX
1764 echo
1765 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001766(
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1769 case $ac_val in #(
1770 *${as_nl}*)
1771 case $ac_var in #(
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774 esac
1775 case $ac_var in #(
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1778 esac ;;
1779 esac
1780 done
John Criswell7a73b802003-06-30 21:59:07 +00001781 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001784 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001788 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001790 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001791 esac |
1792 sort
1793)
John Criswell7a73b802003-06-30 21:59:07 +00001794 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001795
1796 cat <<\_ASBOX
1797## ----------------- ##
1798## Output variables. ##
1799## ----------------- ##
1800_ASBOX
1801 echo
1802 for ac_var in $ac_subst_vars
1803 do
Reid Spencera773bd52006-08-04 18:18:08 +00001804 eval ac_val=\$$ac_var
1805 case $ac_val in
1806 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 esac
1808 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001809 done | sort
1810 echo
1811
1812 if test -n "$ac_subst_files"; then
1813 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001814## ------------------- ##
1815## File substitutions. ##
1816## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001817_ASBOX
1818 echo
1819 for ac_var in $ac_subst_files
1820 do
Reid Spencera773bd52006-08-04 18:18:08 +00001821 eval ac_val=\$$ac_var
1822 case $ac_val in
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 esac
1825 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001826 done | sort
1827 echo
1828 fi
1829
John Criswell7a73b802003-06-30 21:59:07 +00001830 if test -s confdefs.h; then
1831 cat <<\_ASBOX
1832## ----------- ##
1833## confdefs.h. ##
1834## ----------- ##
1835_ASBOX
1836 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001837 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001838 echo
1839 fi
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1843 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001846 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001847' 0
John Criswell7a73b802003-06-30 21:59:07 +00001848for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850done
1851ac_signal=0
1852
1853# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001854rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001855
1856# Predefined preprocessor variables.
1857
1858cat >>confdefs.h <<_ACEOF
1859#define PACKAGE_NAME "$PACKAGE_NAME"
1860_ACEOF
1861
1862
1863cat >>confdefs.h <<_ACEOF
1864#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865_ACEOF
1866
1867
1868cat >>confdefs.h <<_ACEOF
1869#define PACKAGE_VERSION "$PACKAGE_VERSION"
1870_ACEOF
1871
1872
1873cat >>confdefs.h <<_ACEOF
1874#define PACKAGE_STRING "$PACKAGE_STRING"
1875_ACEOF
1876
1877
1878cat >>confdefs.h <<_ACEOF
1879#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880_ACEOF
1881
1882
1883# Let the site file select an alternate cache file if it wants to.
1884# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001885if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889else
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001892fi
Reid Spencera773bd52006-08-04 18:18:08 +00001893shift
1894for ac_site_file
1895do
John Criswell7a73b802003-06-30 21:59:07 +00001896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1900 . "$ac_site_file"
1901 fi
1902done
1903
1904if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909echo "$as_me: loading cache $cache_file" >&6;}
1910 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001913 esac
1914 fi
1915else
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917echo "$as_me: creating cache $cache_file" >&6;}
1918 >$cache_file
1919fi
1920
1921# Check that the precious variables saved in the cache have kept the same
1922# value.
1923ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001924for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001929 case $ac_old_set,$ac_new_set in
1930 set,)
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1934 ,set)
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1938 ,);;
1939 *)
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001942echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001943 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001944echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001945 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001946echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001947 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001948 fi;;
1949 esac
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1952 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001954 *) ac_arg=$ac_var=$ac_new_val ;;
1955 esac
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959 esac
1960 fi
1961done
1962if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1968fi
1969
Reid Spencera773bd52006-08-04 18:18:08 +00001970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
John Criswell7a73b802003-06-30 21:59:07 +00001994ac_ext=c
1995ac_cpp='$CPP $CPPFLAGS'
1996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999
2000
2001
Misha Brukman19098e52005-05-12 22:15:34 +00002002LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002003
2004
2005
2006
2007
2008
2009
John Criswell7a73b802003-06-30 21:59:07 +00002010ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002011for ac_dir in autoconf "$srcdir"/autoconf; do
2012 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002013 ac_aux_dir=$ac_dir
2014 ac_install_sh="$ac_aux_dir/install-sh -c"
2015 break
Reid Spencera773bd52006-08-04 18:18:08 +00002016 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002017 ac_aux_dir=$ac_dir
2018 ac_install_sh="$ac_aux_dir/install.sh -c"
2019 break
Reid Spencera773bd52006-08-04 18:18:08 +00002020 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/shtool install -c"
2023 break
2024 fi
2025done
2026if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002027 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2028echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002029 { (exit 1); exit 1; }; }
2030fi
Reid Spencera773bd52006-08-04 18:18:08 +00002031
2032# These three variables are undocumented and unsupported,
2033# and are intended to be withdrawn in a future Autoconf release.
2034# They can cause serious problems if a builder's source tree is in a directory
2035# whose full name contains unusual characters.
2036ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2037ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2038ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2039
John Criswell7a73b802003-06-30 21:59:07 +00002040
John Criswell392aaa32003-07-22 19:18:09 +00002041
Reid Spencer2706f8c2004-09-19 23:53:36 +00002042if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2044 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002045echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2046 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002047 fi
John Criswell93e1c722003-09-15 17:04:06 +00002048fi
2049
John Criswell33a911a2003-11-25 20:36:46 +00002050for i in `ls ${srcdir}/projects`
2051do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002052 if test -d ${srcdir}/projects/${i} ; then
2053 case ${i} in
2054 "CVS") ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002055 "sample") subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002056 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002057 "Stacker") subdirs="$subdirs projects/Stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002059 "privbracket") subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002060 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002061 "llvm-test") subdirs="$subdirs projects/llvm-test"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002063 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002064;;
Reid Spencera773bd52006-08-04 18:18:08 +00002065 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002066 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002067 "llvm-java") subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002069 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002071 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002072 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002073 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002074 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002075 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002076 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2077echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002078 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002079 esac
John Criswell33a911a2003-11-25 20:36:46 +00002080 fi
2081done
John Criswell559a6c12003-09-30 16:31:48 +00002082
John Criswell7a73b802003-06-30 21:59:07 +00002083
2084# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002085$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2086 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002088 { (exit 1); exit 1; }; }
2089
Reid Spencera773bd52006-08-04 18:18:08 +00002090{ echo "$as_me:$LINENO: checking build system type" >&5
2091echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002092if test "${ac_cv_build+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
Reid Spencera773bd52006-08-04 18:18:08 +00002095 ac_build_alias=$build_alias
2096test "x$ac_build_alias" = x &&
2097 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2098test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002099 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2101 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002102ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002105 { (exit 1); exit 1; }; }
2106
2107fi
Reid Spencera773bd52006-08-04 18:18:08 +00002108{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109echo "${ECHO_T}$ac_cv_build" >&6; }
2110case $ac_cv_build in
2111*-*-*) ;;
2112*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113echo "$as_me: error: invalid value of canonical build" >&2;}
2114 { (exit 1); exit 1; }; };;
2115esac
John Criswell7a73b802003-06-30 21:59:07 +00002116build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002117ac_save_IFS=$IFS; IFS='-'
2118set x $ac_cv_build
2119shift
2120build_cpu=$1
2121build_vendor=$2
2122shift; shift
2123# Remember, the first character of IFS is used to create $*,
2124# except with old shells:
2125build_os=$*
2126IFS=$ac_save_IFS
2127case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002128
2129
Reid Spencera773bd52006-08-04 18:18:08 +00002130{ echo "$as_me:$LINENO: checking host system type" >&5
2131echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002132if test "${ac_cv_host+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
Reid Spencera773bd52006-08-04 18:18:08 +00002135 if test "x$host_alias" = x; then
2136 ac_cv_host=$ac_cv_build
2137else
2138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002141 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002142fi
John Criswell7a73b802003-06-30 21:59:07 +00002143
2144fi
Reid Spencera773bd52006-08-04 18:18:08 +00002145{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146echo "${ECHO_T}$ac_cv_host" >&6; }
2147case $ac_cv_host in
2148*-*-*) ;;
2149*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150echo "$as_me: error: invalid value of canonical host" >&2;}
2151 { (exit 1); exit 1; }; };;
2152esac
John Criswell7a73b802003-06-30 21:59:07 +00002153host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002154ac_save_IFS=$IFS; IFS='-'
2155set x $ac_cv_host
2156shift
2157host_cpu=$1
2158host_vendor=$2
2159shift; shift
2160# Remember, the first character of IFS is used to create $*,
2161# except with old shells:
2162host_os=$*
2163IFS=$ac_save_IFS
2164case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002165
2166
Reid Spencera773bd52006-08-04 18:18:08 +00002167{ echo "$as_me:$LINENO: checking target system type" >&5
2168echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002169if test "${ac_cv_target+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
Reid Spencera773bd52006-08-04 18:18:08 +00002172 if test "x$target_alias" = x; then
2173 ac_cv_target=$ac_cv_host
2174else
2175 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2176 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2177echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002178 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002179fi
John Criswell7a73b802003-06-30 21:59:07 +00002180
2181fi
Reid Spencera773bd52006-08-04 18:18:08 +00002182{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2183echo "${ECHO_T}$ac_cv_target" >&6; }
2184case $ac_cv_target in
2185*-*-*) ;;
2186*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2187echo "$as_me: error: invalid value of canonical target" >&2;}
2188 { (exit 1); exit 1; }; };;
2189esac
John Criswell7a73b802003-06-30 21:59:07 +00002190target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002191ac_save_IFS=$IFS; IFS='-'
2192set x $ac_cv_target
2193shift
2194target_cpu=$1
2195target_vendor=$2
2196shift; shift
2197# Remember, the first character of IFS is used to create $*,
2198# except with old shells:
2199target_os=$*
2200IFS=$ac_save_IFS
2201case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002202
2203
2204# The aliases save the names the user supplied, while $host etc.
2205# will get canonicalized.
2206test -n "$target_alias" &&
2207 test "$program_prefix$program_suffix$program_transform_name" = \
2208 NONENONEs,x,x, &&
2209 program_prefix=${target_alias}-
2210
Reid Spencera773bd52006-08-04 18:18:08 +00002211{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2212echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002216 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002217 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002218 llvm_cv_link_all_option="-Wl,--whole-archive"
2219 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002220 llvm_cv_os_type="AIX"
2221 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002222 *-*-irix*)
2223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225 llvm_cv_os_type="IRIX"
2226 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002227 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002230 llvm_cv_os_type="Cygwin"
2231 llvm_cv_platform_type="Unix" ;;
2232 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002233 llvm_cv_link_all_option="-Wl,-all_load"
2234 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002235 llvm_cv_os_type="Darwin"
2236 llvm_cv_platform_type="Unix" ;;
2237 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002240 llvm_cv_os_type="FreeBSD"
2241 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002242 *-*-openbsd*)
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 Spencer1014ab42006-04-19 23:47:16 +00002245 llvm_cv_os_type="OpenBSD"
2246 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002247 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002250 llvm_cv_os_type="HP-UX"
2251 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 *-*-interix*)
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="Interix"
2256 llvm_cv_platform_type="Unix" ;;
2257 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="Linux"
2261 llvm_cv_platform_type="Unix" ;;
2262 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 llvm_cv_os_type="SunOS"
2266 llvm_cv_platform_type="Unix" ;;
2267 *-*-win32*)
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 Spencer7b3e8512004-12-24 06:29:05 +00002270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2272 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
2277 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002278 llvm_cv_link_all_option=""
2279 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002280 llvm_cv_os_type="Unknown"
2281 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002282esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002283fi
Reid Spencera773bd52006-08-04 18:18:08 +00002284{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2285echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002286
Reid Spencer7b3e8512004-12-24 06:29:05 +00002287if test "$llvm_cv_os_type" = "Unknown" ; then
2288 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2289echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002290 { (exit 1); exit 1; }; }
2291fi
2292
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002294
2295
Reid Spencera773bd52006-08-04 18:18:08 +00002296LINKALL=$llvm_cv_link_all_option
2297
2298NOLINKALL=$llvm_cv_no_link_all_option
2299
2300
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301case $llvm_cv_platform_type in
2302 Unix)
2303
2304cat >>confdefs.h <<\_ACEOF
2305#define LLVM_ON_UNIX 1
2306_ACEOF
2307
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002308 LLVM_ON_UNIX=1
2309
2310 LLVM_ON_WIN32=0
2311
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 ;;
2313 Win32)
2314
2315cat >>confdefs.h <<\_ACEOF
2316#define LLVM_ON_WIN32 1
2317_ACEOF
2318
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002319 LLVM_ON_UNIX=0
2320
2321 LLVM_ON_WIN32=1
2322
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 ;;
2324esac
2325
Reid Spencera773bd52006-08-04 18:18:08 +00002326{ echo "$as_me:$LINENO: checking target architecture" >&5
2327echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002328if test "${llvm_cv_target_arch+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002332 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002333 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002334 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2335 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002336 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002337 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002338 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002339esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002340fi
Reid Spencera773bd52006-08-04 18:18:08 +00002341{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2342echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002343
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344if test "$llvm_cv_target_arch" = "Unknown" ; then
2345 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2346echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2347fi
John Criswell76595452003-07-01 22:07:39 +00002348
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002350
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002351
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002357if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2359set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2367else
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002374 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 +00002375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379done
2380done
Reid Spencera773bd52006-08-04 18:18:08 +00002381IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002382
2383fi
2384fi
2385CC=$ac_cv_prog_CC
2386if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002387 { echo "$as_me:$LINENO: result: $CC" >&5
2388echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389else
Reid Spencera773bd52006-08-04 18:18:08 +00002390 { echo "$as_me:$LINENO: result: no" >&5
2391echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392fi
2393
Reid Spencera773bd52006-08-04 18:18:08 +00002394
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395fi
2396if test -z "$ac_cv_prog_CC"; then
2397 ac_ct_CC=$CC
2398 # Extract the first word of "gcc", so it can be a program name with args.
2399set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 if test -n "$ac_ct_CC"; then
2406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002414 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 +00002415 ac_cv_prog_ac_ct_CC="gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
2420done
Reid Spencera773bd52006-08-04 18:18:08 +00002421IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422
2423fi
2424fi
2425ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002427 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429else
Reid Spencera773bd52006-08-04 18:18:08 +00002430 { echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432fi
2433
Reid Spencera773bd52006-08-04 18:18:08 +00002434 if test "x$ac_ct_CC" = x; then
2435 CC=""
2436 else
2437 case $cross_compiling:$ac_tool_warned in
2438yes:)
2439{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2440whose name does not start with the host triplet. If you think this
2441configuration is useful to you, please write to autoconf@gnu.org." >&5
2442echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2443whose name does not start with the host triplet. If you think this
2444configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2445ac_tool_warned=yes ;;
2446esac
2447 CC=$ac_ct_CC
2448 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449else
2450 CC="$ac_cv_prog_CC"
2451fi
2452
2453if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002454 if test -n "$ac_tool_prefix"; then
2455 # 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 +00002456set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459if test "${ac_cv_prog_CC+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC="$CC" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002471 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 +00002472 ac_cv_prog_CC="${ac_tool_prefix}cc"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2475 fi
2476done
2477done
Reid Spencera773bd52006-08-04 18:18:08 +00002478IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479
2480fi
2481fi
2482CC=$ac_cv_prog_CC
2483if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002484 { echo "$as_me:$LINENO: result: $CC" >&5
2485echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486else
Reid Spencera773bd52006-08-04 18:18:08 +00002487 { echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489fi
2490
Reid Spencera773bd52006-08-04 18:18:08 +00002491
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002492 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493fi
2494if test -z "$CC"; then
2495 # Extract the first word of "cc", so it can be a program name with args.
2496set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505 ac_prog_rejected=no
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002512 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 +00002513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2514 ac_prog_rejected=yes
2515 continue
2516 fi
2517 ac_cv_prog_CC="cc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2520 fi
2521done
2522done
Reid Spencera773bd52006-08-04 18:18:08 +00002523IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524
2525if test $ac_prog_rejected = yes; then
2526 # We found a bogon in the path, so make sure we never use it.
2527 set dummy $ac_cv_prog_CC
2528 shift
2529 if test $# != 0; then
2530 # We chose a different compiler from the bogus one.
2531 # However, it has the same basename, so the bogon will be chosen
2532 # first if we set CC to just the basename; use the full file name.
2533 shift
2534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2535 fi
2536fi
2537fi
2538fi
2539CC=$ac_cv_prog_CC
2540if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002541 { echo "$as_me:$LINENO: result: $CC" >&5
2542echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543else
Reid Spencera773bd52006-08-04 18:18:08 +00002544 { echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546fi
2547
Reid Spencera773bd52006-08-04 18:18:08 +00002548
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549fi
2550if test -z "$CC"; then
2551 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002552 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002553 do
2554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002570 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 +00002571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575done
2576done
Reid Spencera773bd52006-08-04 18:18:08 +00002577IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002578
2579fi
2580fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581CC=$ac_cv_prog_CC
2582if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002583 { echo "$as_me:$LINENO: result: $CC" >&5
2584echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002585else
Reid Spencera773bd52006-08-04 18:18:08 +00002586 { echo "$as_me:$LINENO: result: no" >&5
2587echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002588fi
2589
Reid Spencera773bd52006-08-04 18:18:08 +00002590
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002591 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002592 done
2593fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594if test -z "$CC"; then
2595 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002596 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002597do
2598 # Extract the first word of "$ac_prog", so it can be a program name with args.
2599set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002614 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 +00002615 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619done
2620done
Reid Spencera773bd52006-08-04 18:18:08 +00002621IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002622
2623fi
2624fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002629else
Reid Spencera773bd52006-08-04 18:18:08 +00002630 { echo "$as_me:$LINENO: result: no" >&5
2631echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002632fi
2633
Reid Spencera773bd52006-08-04 18:18:08 +00002634
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002636done
John Criswell7a73b802003-06-30 21:59:07 +00002637
Reid Spencera773bd52006-08-04 18:18:08 +00002638 if test "x$ac_ct_CC" = x; then
2639 CC=""
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642yes:)
2643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2644whose name does not start with the host triplet. If you think this
2645configuration is useful to you, please write to autoconf@gnu.org." >&5
2646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2647whose name does not start with the host triplet. If you think this
2648configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2649ac_tool_warned=yes ;;
2650esac
2651 CC=$ac_ct_CC
2652 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653fi
2654
John Criswell7a73b802003-06-30 21:59:07 +00002655fi
2656
2657
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2659See \`config.log' for more details." >&5
2660echo "$as_me: error: no acceptable C compiler found in \$PATH
2661See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2663
John Criswell7a73b802003-06-30 21:59:07 +00002664# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002665echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002666ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002667{ (ac_try="$ac_compiler --version >&5"
2668case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671esac
2672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002677{ (ac_try="$ac_compiler -v >&5"
2678case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681esac
2682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002687{ (ac_try="$ac_compiler -V >&5"
2688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
2692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }
2697
2698cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002699/* confdefs.h. */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
2703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002704
John Criswell7a73b802003-06-30 21:59:07 +00002705int
2706main ()
2707{
2708
2709 ;
2710 return 0;
2711}
2712_ACEOF
2713ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002714ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002715# Try to create an executable without -o first, disregard a.out.
2716# It will help us diagnose broken compilers, and finding out an intuition
2717# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002718{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2719echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002720ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002721#
2722# List of possible output files, starting from the most likely.
2723# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2724# only as a last resort. b.out is created by i960 compilers.
2725ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2726#
2727# The IRIX 6 linker writes into existing files which may not be
2728# executable, retaining their permissions. Remove them first so a
2729# subsequent execution test works.
2730ac_rmfiles=
2731for ac_file in $ac_files
2732do
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2736 esac
2737done
2738rm -f $ac_rmfiles
2739
2740if { (ac_try="$ac_link_default"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2751# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2752# in a Makefile. We should not override ac_cv_exeext if it was cached,
2753# so that the user can short-circuit this test for compilers unknown to
2754# Autoconf.
2755for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002756do
2757 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002758 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002760 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002761 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002762 # We found the default executable, but exeext='' is most
2763 # certainly right.
2764 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002765 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2767 then :; else
2768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 fi
2770 # We set ac_cv_exeext here because the later test for it is not
2771 # safe: cross compilers may not add the suffix if given an `-o'
2772 # argument, so we may need to know it at that point already.
2773 # Even if this section looks crufty: it has the advantage of
2774 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002775 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002776 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002777 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002778 esac
2779done
Reid Spencera773bd52006-08-04 18:18:08 +00002780test "$ac_cv_exeext" = no && ac_cv_exeext=
2781
John Criswell7a73b802003-06-30 21:59:07 +00002782else
2783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002784sed 's/^/| /' conftest.$ac_ext >&5
2785
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002786{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002787See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002788echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002789See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002790 { (exit 77); exit 77; }; }
2791fi
2792
2793ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002794{ echo "$as_me:$LINENO: result: $ac_file" >&5
2795echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002796
Reid Spencera773bd52006-08-04 18:18:08 +00002797# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002798# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002799{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002801# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802# If not cross compiling, check that we can run a simple program.
2803if test "$cross_compiling" != yes; then
2804 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002805 { (case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 cross_compiling=no
2815 else
2816 if test "$cross_compiling" = maybe; then
2817 cross_compiling=yes
2818 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002820If you meant to cross compile, use \`--host'.
2821See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002822echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002823If you meant to cross compile, use \`--host'.
2824See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002825 { (exit 1); exit 1; }; }
2826 fi
2827 fi
2828fi
Reid Spencera773bd52006-08-04 18:18:08 +00002829{ echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002831
John Criswell0c38eaf2003-09-10 15:17:25 +00002832rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002833ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002834# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002835# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002836{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002840
Reid Spencera773bd52006-08-04 18:18:08 +00002841{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843if { (ac_try="$ac_link"
2844case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; then
2853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2855# work properly (i.e., refer to `conftest.exe'), while it won't with
2856# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002857for ac_file in conftest.exe conftest conftest.*; do
2858 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002859 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002862 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002863 * ) break;;
2864 esac
2865done
2866else
John Criswell0c38eaf2003-09-10 15:17:25 +00002867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868See \`config.log' for more details." >&5
2869echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002871 { (exit 1); exit 1; }; }
2872fi
2873
2874rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002875{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002877
2878rm -f conftest.$ac_ext
2879EXEEXT=$ac_cv_exeext
2880ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002881{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002883if test "${ac_cv_objext+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
2886 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002892
John Criswell7a73b802003-06-30 21:59:07 +00002893int
2894main ()
2895{
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002902if { (ac_try="$ac_compile"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002912 for ac_file in conftest.o conftest.obj conftest.*; do
2913 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002914 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2917 break;;
2918 esac
2919done
2920else
2921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925See \`config.log' for more details." >&5
2926echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002928 { (exit 1); exit 1; }; }
2929fi
2930
2931rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932fi
Reid Spencera773bd52006-08-04 18:18:08 +00002933{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002935OBJEXT=$ac_cv_objext
2936ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002937{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002939if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
2942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002948
John Criswell7a73b802003-06-30 21:59:07 +00002949int
2950main ()
2951{
2952#ifndef __GNUC__
2953 choke me
2954#endif
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002961if { (ac_try="$ac_compile"
2962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002968 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 ac_compiler_gnu=yes
2995else
2996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002997sed 's/^/| /' conftest.$ac_ext >&5
2998
Reid Spencera773bd52006-08-04 18:18:08 +00002999 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003000fi
Reid Spencera773bd52006-08-04 18:18:08 +00003001
3002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003003ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003004
3005fi
Reid Spencera773bd52006-08-04 18:18:08 +00003006{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3007echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003008GCC=`test $ac_compiler_gnu = yes && echo yes`
3009ac_test_CFLAGS=${CFLAGS+set}
3010ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003011{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3012echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003013if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
Reid Spencera773bd52006-08-04 18:18:08 +00003016 ac_save_c_werror_flag=$ac_c_werror_flag
3017 ac_c_werror_flag=yes
3018 ac_cv_prog_cc_g=no
3019 CFLAGS="-g"
3020 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003026
John Criswell7a73b802003-06-30 21:59:07 +00003027int
3028main ()
3029{
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003036if { (ac_try="$ac_compile"
3037case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003043 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
3064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003069 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003070else
3071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003072sed 's/^/| /' conftest.$ac_ext >&5
3073
Reid Spencera773bd52006-08-04 18:18:08 +00003074 CFLAGS=""
3075 cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h. */
3081
3082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (ac_try="$ac_compile"
3092case "(($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_compile") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 :
3125else
3126 echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3130 CFLAGS="-g"
3131 cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h. */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h. */
3137
3138int
3139main ()
3140{
3141
3142 ;
3143 return 0;
3144}
3145_ACEOF
3146rm -f conftest.$ac_objext
3147if { (ac_try="$ac_compile"
3148case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
3175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 ac_cv_prog_cc_g=yes
3181else
3182 echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185
John Criswell7a73b802003-06-30 21:59:07 +00003186fi
Reid Spencera773bd52006-08-04 18:18:08 +00003187
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003189fi
Reid Spencera773bd52006-08-04 18:18:08 +00003190
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3196fi
3197{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3198echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003199if test "$ac_test_CFLAGS" = set; then
3200 CFLAGS=$ac_save_CFLAGS
3201elif test $ac_cv_prog_cc_g = yes; then
3202 if test "$GCC" = yes; then
3203 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003204 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003205 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003206 fi
3207else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003208 if test "$GCC" = yes; then
3209 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003210 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003211 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003212 fi
3213fi
Reid Spencera773bd52006-08-04 18:18:08 +00003214{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3215echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3216if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
Reid Spencera773bd52006-08-04 18:18:08 +00003219 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003220ac_save_CC=$CC
3221cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227#include <stdarg.h>
3228#include <stdio.h>
3229#include <sys/types.h>
3230#include <sys/stat.h>
3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232struct buf { int x; };
3233FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234static char *e (p, i)
3235 char **p;
3236 int i;
3237{
3238 return p[i];
3239}
3240static char *f (char * (*g) (char **, int), char **p, ...)
3241{
3242 char *s;
3243 va_list v;
3244 va_start (v,p);
3245 s = g (p, va_arg (v,int));
3246 va_end (v);
3247 return s;
3248}
3249
3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003253 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003256 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258
Reid Spencera773bd52006-08-04 18:18:08 +00003259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3261#define FOO(x) 'x'
3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264int test (int i, double x);
3265struct s1 {int (*f) (int a);};
3266struct s2 {int (*f) (double a);};
3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268int argc;
3269char **argv;
3270int
3271main ()
3272{
3273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 ;
3275 return 0;
3276}
3277_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280do
3281 CC="$ac_save_CC $ac_arg"
3282 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003283if { (ac_try="$ac_compile"
3284case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287esac
3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3297 { (case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003307 { (case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310esac
3311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003316 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317else
3318 echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
Reid Spencera773bd52006-08-04 18:18:08 +00003321
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322fi
Reid Spencera773bd52006-08-04 18:18:08 +00003323
3324rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003326done
Reid Spencera773bd52006-08-04 18:18:08 +00003327rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328CC=$ac_save_CC
3329
3330fi
Reid Spencera773bd52006-08-04 18:18:08 +00003331# AC_CACHE_VAL
3332case "x$ac_cv_prog_cc_c89" in
3333 x)
3334 { echo "$as_me:$LINENO: result: none needed" >&5
3335echo "${ECHO_T}none needed" >&6; } ;;
3336 xno)
3337 { echo "$as_me:$LINENO: result: unsupported" >&5
3338echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003340 CC="$CC $ac_cv_prog_cc_c89"
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343esac
3344
John Criswell0c38eaf2003-09-10 15:17:25 +00003345
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346ac_ext=c
3347ac_cpp='$CPP $CPPFLAGS'
3348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353ac_ext=c
3354ac_cpp='$CPP $CPPFLAGS'
3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003358{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3359echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360# On Suns, sometimes $CPP names a directory.
3361if test -n "$CPP" && test -d "$CPP"; then
3362 CPP=
3363fi
3364if test -z "$CPP"; then
3365 if test "${ac_cv_prog_CPP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368 # Double quotes because CPP needs to be expanded
3369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370 do
3371 ac_preproc_ok=false
3372for ac_c_preproc_warn_flag in '' yes
3373do
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
3380 cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h. */
3386#ifdef __STDC__
3387# include <limits.h>
3388#else
3389# include <assert.h>
3390#endif
3391 Syntax error
3392_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003393if { (ac_try="$ac_cpp conftest.$ac_ext"
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
3412else
3413 ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
3416 :
3417else
3418 echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 # Broken: fails on valid input.
3422continue
3423fi
Reid Spencera773bd52006-08-04 18:18:08 +00003424
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425rm -f conftest.err conftest.$ac_ext
3426
Reid Spencera773bd52006-08-04 18:18:08 +00003427 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428 # can be detected and how.
3429 cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h. */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h. */
3435#include <ac_nonexistent.h>
3436_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003437if { (ac_try="$ac_cpp conftest.$ac_ext"
3438case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
3442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 else
3454 ac_cpp_err=
3455 fi
3456else
3457 ac_cpp_err=yes
3458fi
3459if test -z "$ac_cpp_err"; then
3460 # Broken: success on invalid input.
3461continue
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 # Passes both tests.
3467ac_preproc_ok=:
3468break
3469fi
Reid Spencera773bd52006-08-04 18:18:08 +00003470
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471rm -f conftest.err conftest.$ac_ext
3472
3473done
3474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475rm -f conftest.err conftest.$ac_ext
3476if $ac_preproc_ok; then
3477 break
3478fi
3479
3480 done
3481 ac_cv_prog_CPP=$CPP
3482
3483fi
3484 CPP=$ac_cv_prog_CPP
3485else
3486 ac_cv_prog_CPP=$CPP
3487fi
Reid Spencera773bd52006-08-04 18:18:08 +00003488{ echo "$as_me:$LINENO: result: $CPP" >&5
3489echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003490ac_preproc_ok=false
3491for ac_c_preproc_warn_flag in '' yes
3492do
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */
3505#ifdef __STDC__
3506# include <limits.h>
3507#else
3508# include <assert.h>
3509#endif
3510 Syntax error
3511_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003512if { (ac_try="$ac_cpp conftest.$ac_ext"
3513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3528 else
3529 ac_cpp_err=
3530 fi
3531else
3532 ac_cpp_err=yes
3533fi
3534if test -z "$ac_cpp_err"; then
3535 :
3536else
3537 echo "$as_me: failed program was:" >&5
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 # Broken: fails on valid input.
3541continue
3542fi
Reid Spencera773bd52006-08-04 18:18:08 +00003543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544rm -f conftest.err conftest.$ac_ext
3545
Reid Spencera773bd52006-08-04 18:18:08 +00003546 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003547 # can be detected and how.
3548 cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h. */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h. */
3554#include <ac_nonexistent.h>
3555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003556if { (ac_try="$ac_cpp conftest.$ac_ext"
3557case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572 else
3573 ac_cpp_err=
3574 fi
3575else
3576 ac_cpp_err=yes
3577fi
3578if test -z "$ac_cpp_err"; then
3579 # Broken: success on invalid input.
3580continue
3581else
3582 echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 # Passes both tests.
3586ac_preproc_ok=:
3587break
3588fi
Reid Spencera773bd52006-08-04 18:18:08 +00003589
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590rm -f conftest.err conftest.$ac_ext
3591
3592done
3593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594rm -f conftest.err conftest.$ac_ext
3595if $ac_preproc_ok; then
3596 :
3597else
3598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3599See \`config.log' for more details." >&5
3600echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3601See \`config.log' for more details." >&2;}
3602 { (exit 1); exit 1; }; }
3603fi
3604
John Criswell7a73b802003-06-30 21:59:07 +00003605ac_ext=c
3606ac_cpp='$CPP $CPPFLAGS'
3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610
John Criswell7a73b802003-06-30 21:59:07 +00003611
Reid Spencera773bd52006-08-04 18:18:08 +00003612{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3613echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003614if test "${ac_cv_path_GREP+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
Reid Spencera773bd52006-08-04 18:18:08 +00003617 # Extract the first word of "grep ggrep" to use in msg output
3618if test -z "$GREP"; then
3619set dummy grep ggrep; ac_prog_name=$2
3620if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
Reid Spencera773bd52006-08-04 18:18:08 +00003623 ac_path_GREP_found=false
3624# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003627do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003630 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003631 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3633 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3634 # Check for GNU ac_path_GREP and select it if it is found.
3635 # Check for GNU $ac_path_GREP
3636case `"$ac_path_GREP" --version 2>&1` in
3637*GNU*)
3638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3639*)
3640 ac_count=0
3641 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3642 while :
3643 do
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 echo 'GREP' >> "conftest.nl"
3648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 ac_count=`expr $ac_count + 1`
3651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_GREP="$ac_path_GREP"
3654 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003655 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3658 done
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660esac
3661
3662
3663 $ac_path_GREP_found && break 3
3664 done
3665done
3666
3667done
3668IFS=$as_save_IFS
3669
3670
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003671fi
Reid Spencera773bd52006-08-04 18:18:08 +00003672
3673GREP="$ac_cv_path_GREP"
3674if test -z "$GREP"; then
3675 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3676echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3677 { (exit 1); exit 1; }; }
3678fi
3679
3680else
3681 ac_cv_path_GREP=$GREP
3682fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003683
John Criswell7a73b802003-06-30 21:59:07 +00003684
Reid Spencera773bd52006-08-04 18:18:08 +00003685fi
3686{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3687echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3688 GREP="$ac_cv_path_GREP"
3689
3690
3691{ echo "$as_me:$LINENO: checking for egrep" >&5
3692echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3693if test "${ac_cv_path_EGREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
3696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697 then ac_cv_path_EGREP="$GREP -E"
3698 else
3699 # Extract the first word of "egrep" to use in msg output
3700if test -z "$EGREP"; then
3701set dummy egrep; ac_prog_name=$2
3702if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 ac_path_EGREP_found=false
3706# Loop through the user's path and test for each of PROGNAME-LIST
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in egrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3716 # Check for GNU ac_path_EGREP and select it if it is found.
3717 # Check for GNU $ac_path_EGREP
3718case `"$ac_path_EGREP" --version 2>&1` in
3719*GNU*)
3720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3721*)
3722 ac_count=0
3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724 while :
3725 do
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 echo 'EGREP' >> "conftest.nl"
3730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_EGREP="$ac_path_EGREP"
3736 ac_path_EGREP_max=$ac_count
3737 fi
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742esac
3743
3744
3745 $ac_path_EGREP_found && break 3
3746 done
3747done
3748
3749done
3750IFS=$as_save_IFS
3751
3752
3753fi
3754
3755EGREP="$ac_cv_path_EGREP"
3756if test -z "$EGREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3760fi
3761
3762else
3763 ac_cv_path_EGREP=$EGREP
3764fi
3765
3766
3767 fi
3768fi
3769{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3770echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3771 EGREP="$ac_cv_path_EGREP"
3772
3773
3774{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3775echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003776if test "${ac_cv_header_stdc+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003780/* confdefs.h. */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003785#include <stdlib.h>
3786#include <stdarg.h>
3787#include <string.h>
3788#include <float.h>
3789
John Criswell0c38eaf2003-09-10 15:17:25 +00003790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
John Criswell7a73b802003-06-30 21:59:07 +00003797_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003798rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003799if { (ac_try="$ac_compile"
3800case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803esac
3804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003806 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003811 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3813 { (case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816esac
3817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003823 { (case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826esac
3827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003832 ac_cv_header_stdc=yes
3833else
3834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003835sed 's/^/| /' conftest.$ac_ext >&5
3836
Reid Spencera773bd52006-08-04 18:18:08 +00003837 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003838fi
Reid Spencera773bd52006-08-04 18:18:08 +00003839
3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003841
3842if test $ac_cv_header_stdc = yes; then
3843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3844 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003845/* confdefs.h. */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003850#include <string.h>
3851
3852_ACEOF
3853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003854 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003855 :
3856else
3857 ac_cv_header_stdc=no
3858fi
3859rm -f conftest*
3860
3861fi
3862
3863if test $ac_cv_header_stdc = yes; then
3864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3865 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003866/* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
3870/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003871#include <stdlib.h>
3872
3873_ACEOF
3874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003875 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003876 :
3877else
3878 ac_cv_header_stdc=no
3879fi
3880rm -f conftest*
3881
3882fi
3883
3884if test $ac_cv_header_stdc = yes; then
3885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3886 if test "$cross_compiling" = yes; then
3887 :
3888else
3889 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003890/* confdefs.h. */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003895#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003896#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003897#if ((' ' & 0x0FF) == 0x020)
3898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3900#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003901# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003902 (('a' <= (c) && (c) <= 'i') \
3903 || ('j' <= (c) && (c) <= 'r') \
3904 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3906#endif
3907
3908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3909int
3910main ()
3911{
3912 int i;
3913 for (i = 0; i < 256; i++)
3914 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003915 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003916 return 2;
3917 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003918}
3919_ACEOF
3920rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003921if { (ac_try="$ac_link"
3922case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925esac
3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003931 { (case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934esac
3935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 :
3941else
3942 echo "$as_me: program exited with status $ac_status" >&5
3943echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003944sed 's/^/| /' conftest.$ac_ext >&5
3945
John Criswell7a73b802003-06-30 21:59:07 +00003946( exit $ac_status )
3947ac_cv_header_stdc=no
3948fi
Reid Spencera773bd52006-08-04 18:18:08 +00003949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3950fi
3951
3952
John Criswell7a73b802003-06-30 21:59:07 +00003953fi
3954fi
Reid Spencera773bd52006-08-04 18:18:08 +00003955{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3956echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003957if test $ac_cv_header_stdc = yes; then
3958
3959cat >>confdefs.h <<\_ACEOF
3960#define STDC_HEADERS 1
3961_ACEOF
3962
3963fi
3964
Reid Spencera773bd52006-08-04 18:18:08 +00003965# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3976 inttypes.h stdint.h unistd.h
3977do
3978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3979{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h. */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h. */
3990$ac_includes_default
3991
3992#include <$ac_header>
3993_ACEOF
3994rm -f conftest.$ac_objext
3995if { (ac_try="$ac_compile"
3996case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999esac
4000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012esac
4013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022esac
4023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_try") 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 eval "$as_ac_Header=yes"
4029else
4030 echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 eval "$as_ac_Header=no"
4034fi
4035
4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037fi
4038ac_res=`eval echo '${'$as_ac_Header'}'`
4039 { echo "$as_me:$LINENO: result: $ac_res" >&5
4040echo "${ECHO_T}$ac_res" >&6; }
4041if test `eval echo '${'$as_ac_Header'}'` = yes; then
4042 cat >>confdefs.h <<_ACEOF
4043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4044_ACEOF
4045
4046fi
4047
4048done
4049
4050
4051{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4052echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4053if test "${ac_cv_c_bigendian+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056 # See if sys/param.h defines the BYTE_ORDER macro.
4057cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
4063#include <sys/types.h>
4064#include <sys/param.h>
4065
4066int
4067main ()
4068{
4069#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4070 bogus endian macros
4071#endif
4072
4073 ;
4074 return 0;
4075}
4076_ACEOF
4077rm -f conftest.$ac_objext
4078if { (ac_try="$ac_compile"
4079case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082esac
4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
4096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105esac
4106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_try") 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 # It does; now see whether it defined to BIG_ENDIAN or not.
4112cat >conftest.$ac_ext <<_ACEOF
4113/* confdefs.h. */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h. */
4118#include <sys/types.h>
4119#include <sys/param.h>
4120
4121int
4122main ()
4123{
4124#if BYTE_ORDER != BIG_ENDIAN
4125 not big endian
4126#endif
4127
4128 ;
4129 return 0;
4130}
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($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_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_cv_c_bigendian=yes
4167else
4168 echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 ac_cv_c_bigendian=no
4172fi
4173
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175else
4176 echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 # It does not; compile a test program.
4180if test "$cross_compiling" = yes; then
4181 # try to guess the endianness by grepping values into an object file
4182 ac_cv_c_bigendian=unknown
4183 cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4190short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4191void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4192short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4193short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4194void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4195int
4196main ()
4197{
4198 _ascii (); _ebcdic ();
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203rm -f conftest.$ac_objext
4204if { (ac_try="$ac_compile"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4238 ac_cv_c_bigendian=yes
4239fi
4240if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4241 if test "$ac_cv_c_bigendian" = unknown; then
4242 ac_cv_c_bigendian=no
4243 else
4244 # finding both strings is unlikely to happen, but who knows?
4245 ac_cv_c_bigendian=unknown
4246 fi
4247fi
4248else
4249 echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252
4253fi
4254
4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256else
4257 cat >conftest.$ac_ext <<_ACEOF
4258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h. */
4263$ac_includes_default
4264int
4265main ()
4266{
4267
4268 /* Are we little or big endian? From Harbison&Steele. */
4269 union
4270 {
4271 long int l;
4272 char c[sizeof (long int)];
4273 } u;
4274 u.l = 1;
4275 return u.c[sizeof (long int) - 1] == 1;
4276
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281rm -f conftest$ac_exeext
4282if { (ac_try="$ac_link"
4283case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_link") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_cv_c_bigendian=no
4302else
4303 echo "$as_me: program exited with status $ac_status" >&5
4304echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307( exit $ac_status )
4308ac_cv_c_bigendian=yes
4309fi
4310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4311fi
4312
4313
4314fi
4315
4316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317fi
4318{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4319echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4320case $ac_cv_c_bigendian in
4321 yes)
4322 ENDIAN=big
4323 ;;
4324 no)
4325 ENDIAN=little
4326 ;;
4327 *)
4328 { { echo "$as_me:$LINENO: error: unknown endianness
4329presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4330echo "$as_me: error: unknown endianness
4331presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4332 { (exit 1); exit 1; }; } ;;
4333esac
4334
4335
4336if test "$cross_compiling" = yes; then
4337 LLVM_CROSS_COMPILING=1
4338
4339
4340{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4341echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4342if test "${ac_cv_build_exeext+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4346 ac_cv_build_exeext=.exe
4347else
4348 ac_build_prefix=${build_alias}-
4349
4350 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4351set dummy ${ac_build_prefix}gcc; ac_word=$2
4352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357 if test -n "$BUILD_CC"; then
4358 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371done
4372done
4373IFS=$as_save_IFS
4374
4375fi
4376fi
4377BUILD_CC=$ac_cv_prog_BUILD_CC
4378if test -n "$BUILD_CC"; then
4379 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4380echo "${ECHO_T}$BUILD_CC" >&6; }
4381else
4382 { echo "$as_me:$LINENO: result: no" >&5
4383echo "${ECHO_T}no" >&6; }
4384fi
4385
4386
4387 if test -z "$BUILD_CC"; then
4388 # Extract the first word of "gcc", so it can be a program name with args.
4389set dummy gcc; ac_word=$2
4390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395 if test -n "$BUILD_CC"; then
4396 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4397else
4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_BUILD_CC="gcc"
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409done
4410done
4411IFS=$as_save_IFS
4412
4413fi
4414fi
4415BUILD_CC=$ac_cv_prog_BUILD_CC
4416if test -n "$BUILD_CC"; then
4417 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4418echo "${ECHO_T}$BUILD_CC" >&6; }
4419else
4420 { echo "$as_me:$LINENO: result: no" >&5
4421echo "${ECHO_T}no" >&6; }
4422fi
4423
4424
4425 if test -z "$BUILD_CC"; then
4426 # Extract the first word of "cc", so it can be a program name with args.
4427set dummy cc; ac_word=$2
4428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4430if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433 if test -n "$BUILD_CC"; then
4434 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4435else
4436 ac_prog_rejected=no
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4445 ac_prog_rejected=yes
4446 continue
4447 fi
4448 ac_cv_prog_BUILD_CC="cc"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452done
4453done
4454IFS=$as_save_IFS
4455
4456if test $ac_prog_rejected = yes; then
4457 # We found a bogon in the path, so make sure we never use it.
4458 set dummy $ac_cv_prog_BUILD_CC
4459 shift
4460 if test $# != 0; then
4461 # We chose a different compiler from the bogus one.
4462 # However, it has the same basename, so the bogon will be chosen
4463 # first if we set BUILD_CC to just the basename; use the full file name.
4464 shift
4465 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4466 fi
4467fi
4468fi
4469fi
4470BUILD_CC=$ac_cv_prog_BUILD_CC
4471if test -n "$BUILD_CC"; then
4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473echo "${ECHO_T}$BUILD_CC" >&6; }
4474else
4475 { echo "$as_me:$LINENO: result: no" >&5
4476echo "${ECHO_T}no" >&6; }
4477fi
4478
4479
4480 fi
4481 fi
4482 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4483echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4484 { (exit 1); exit 1; }; }
4485 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4486 rm -f conftest*
4487 echo 'int main () { return 0; }' > conftest.$ac_ext
4488 ac_cv_build_exeext=
4489 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4490 (eval $ac_build_link) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 for file in conftest.*; do
4495 case $file in
4496 *.c | *.o | *.obj) ;;
4497 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4498 esac
4499 done
4500 else
4501 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4502echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4503 { (exit 1); exit 1; }; }
4504 fi
4505 rm -f conftest*
4506 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4507fi
4508fi
4509
4510BUILD_EXEEXT=""
4511test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4512{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4513echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4514ac_build_exeext=$BUILD_EXEEXT
4515
4516else
4517 LLVM_CROSS_COMPILING=0
4518
4519fi
4520
4521if test -d "CVS" -o -d "${srcdir}/CVS"; then
4522 cvsbuild="yes"
4523 optimize="no"
4524 CVSBUILD=CVSBUILD=1
4525
4526else
4527 cvsbuild="no"
4528 optimize="yes"
4529fi
4530
4531
4532# Check whether --enable-optimized was given.
4533if test "${enable_optimized+set}" = set; then
4534 enableval=$enable_optimized;
4535else
4536 enableval=$optimize
4537fi
4538
4539if test ${enableval} = "no" ; then
4540 ENABLE_OPTIMIZED=
4541
4542else
4543 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4544
4545fi
4546
4547# Check whether --enable-assertions was given.
4548if test "${enable_assertions+set}" = set; then
4549 enableval=$enable_assertions;
4550else
4551 enableval="yes"
4552fi
4553
4554if test ${enableval} = "yes" ; then
4555 DISABLE_ASSERTIONS=
4556
4557else
4558 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4559
4560fi
4561
4562# Check whether --enable-debug-runtime was given.
4563if test "${enable_debug_runtime+set}" = set; then
4564 enableval=$enable_debug_runtime;
4565else
4566 enableval=no
4567fi
4568
4569if test ${enableval} = "no" ; then
4570 DEBUG_RUNTIME=
4571
4572else
4573 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4574
4575fi
4576
4577# Check whether --enable-jit was given.
4578if test "${enable_jit+set}" = set; then
4579 enableval=$enable_jit;
4580else
4581 enableval=default
4582fi
4583
4584if test ${enableval} = "no"
4585then
4586 JIT=
4587
4588else
4589 case "$llvm_cv_target_arch" in
4590 x86) TARGET_HAS_JIT=1
4591 ;;
4592 Sparc) TARGET_HAS_JIT=1
4593 ;;
4594 PowerPC) TARGET_HAS_JIT=1
4595 ;;
4596 x86_64) TARGET_HAS_JIT=0
4597 ;;
4598 Alpha) TARGET_HAS_JIT=1
4599 ;;
4600 IA64) TARGET_HAS_JIT=0
4601 ;;
4602 *) TARGET_HAS_JIT=0
4603 ;;
4604 esac
4605fi
4606
4607# Check whether --enable-doxygen was given.
4608if test "${enable_doxygen+set}" = set; then
4609 enableval=$enable_doxygen;
4610else
4611 enableval=default
4612fi
4613
4614case "$enableval" in
4615 yes) ENABLE_DOXYGEN=1
4616 ;;
4617 no) ENABLE_DOXYGEN=0
4618 ;;
4619 default) ENABLE_DOXYGEN=0
4620 ;;
4621 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4622echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4623 { (exit 1); exit 1; }; } ;;
4624esac
4625
4626# Check whether --enable-threads was given.
4627if test "${enable_threads+set}" = set; then
4628 enableval=$enable_threads;
4629else
4630 enableval=yes
4631fi
4632
4633case "$enableval" in
4634 yes) ENABLE_THREADS=1
4635 ;;
4636 no) ENABLE_THREADS=0
4637 ;;
4638 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4639echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4640 { (exit 1); exit 1; }; } ;;
4641esac
4642
4643cat >>confdefs.h <<_ACEOF
4644#define ENABLE_THREADS $ENABLE_THREADS
4645_ACEOF
4646
4647
4648TARGETS_TO_BUILD=""
4649# Check whether --enable-targets was given.
4650if test "${enable_targets+set}" = set; then
4651 enableval=$enable_targets;
4652else
4653 enableval=all
4654fi
4655
4656case "$enableval" in
4657 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4658 host-only)
4659 case "$llvm_cv_target_arch" in
4660 x86) TARGETS_TO_BUILD="X86" ;;
4661 x86_64) TARGETS_TO_BUILD="X86" ;;
4662 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4663 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4664 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4665 IA64) TARGETS_TO_BUILD="IA64" ;;
4666 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4667echo "$as_me: error: Can not set target to build" >&2;}
4668 { (exit 1); exit 1; }; } ;;
4669 esac
4670 ;;
4671 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4672 case "$a_target" in
4673 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4674 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4675 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4676 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4677 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4678 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4679 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4680echo "$as_me: error: Unrecognized target $a_target" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4682 esac
4683 done
4684 ;;
4685esac
4686TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4687TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4688
4689
4690
4691# Check whether --with-llvmgccdir was given.
4692if test "${with_llvmgccdir+set}" = set; then
4693 withval=$with_llvmgccdir;
4694else
4695 withval=default
4696fi
4697
4698case "$withval" in
4699 default) WITH_LLVMGCCDIR=default ;;
4700 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4701 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4702echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4703 { (exit 1); exit 1; }; } ;;
4704esac
4705
4706
4707# Check whether --with-extra-options was given.
4708if test "${with_extra_options+set}" = set; then
4709 withval=$with_extra_options;
4710else
4711 withval=default
4712fi
4713
4714case "$withval" in
4715 default) EXTRA_OPTIONS= ;;
4716 *) EXTRA_OPTIONS=$withval ;;
4717esac
4718EXTRA_OPTIONS=$EXTRA_OPTIONS
4719
4720
4721
4722ac_ext=c
4723ac_cpp='$CPP $CPPFLAGS'
4724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4728echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4729# On Suns, sometimes $CPP names a directory.
4730if test -n "$CPP" && test -d "$CPP"; then
4731 CPP=
4732fi
4733if test -z "$CPP"; then
4734 if test "${ac_cv_prog_CPP+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737 # Double quotes because CPP needs to be expanded
4738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4739 do
4740 ac_preproc_ok=false
4741for ac_c_preproc_warn_flag in '' yes
4742do
4743 # Use a header file that comes with gcc, so configuring glibc
4744 # with a fresh cross-compiler works.
4745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746 # <limits.h> exists even on freestanding compilers.
4747 # On the NeXT, cc -E runs the code through the compiler's parser,
4748 # not just through cpp. "Syntax error" is here to catch this case.
4749 cat >conftest.$ac_ext <<_ACEOF
4750/* confdefs.h. */
4751_ACEOF
4752cat confdefs.h >>conftest.$ac_ext
4753cat >>conftest.$ac_ext <<_ACEOF
4754/* end confdefs.h. */
4755#ifdef __STDC__
4756# include <limits.h>
4757#else
4758# include <assert.h>
4759#endif
4760 Syntax error
4761_ACEOF
4762if { (ac_try="$ac_cpp conftest.$ac_ext"
4763case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766esac
4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4769 ac_status=$?
4770 grep -v '^ *+' conftest.er1 >conftest.err
4771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } >/dev/null; then
4775 if test -s conftest.err; then
4776 ac_cpp_err=$ac_c_preproc_warn_flag
4777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4778 else
4779 ac_cpp_err=
4780 fi
4781else
4782 ac_cpp_err=yes
4783fi
4784if test -z "$ac_cpp_err"; then
4785 :
4786else
4787 echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 # Broken: fails on valid input.
4791continue
4792fi
4793
4794rm -f conftest.err conftest.$ac_ext
4795
4796 # OK, works on sane cases. Now check whether nonexistent headers
4797 # can be detected and how.
4798 cat >conftest.$ac_ext <<_ACEOF
4799/* confdefs.h. */
4800_ACEOF
4801cat confdefs.h >>conftest.$ac_ext
4802cat >>conftest.$ac_ext <<_ACEOF
4803/* end confdefs.h. */
4804#include <ac_nonexistent.h>
4805_ACEOF
4806if { (ac_try="$ac_cpp conftest.$ac_ext"
4807case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810esac
4811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } >/dev/null; then
4819 if test -s conftest.err; then
4820 ac_cpp_err=$ac_c_preproc_warn_flag
4821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4822 else
4823 ac_cpp_err=
4824 fi
4825else
4826 ac_cpp_err=yes
4827fi
4828if test -z "$ac_cpp_err"; then
4829 # Broken: success on invalid input.
4830continue
4831else
4832 echo "$as_me: failed program was:" >&5
4833sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 # Passes both tests.
4836ac_preproc_ok=:
4837break
4838fi
4839
4840rm -f conftest.err conftest.$ac_ext
4841
4842done
4843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4844rm -f conftest.err conftest.$ac_ext
4845if $ac_preproc_ok; then
4846 break
4847fi
4848
4849 done
4850 ac_cv_prog_CPP=$CPP
4851
4852fi
4853 CPP=$ac_cv_prog_CPP
4854else
4855 ac_cv_prog_CPP=$CPP
4856fi
4857{ echo "$as_me:$LINENO: result: $CPP" >&5
4858echo "${ECHO_T}$CPP" >&6; }
4859ac_preproc_ok=false
4860for ac_c_preproc_warn_flag in '' yes
4861do
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat >conftest.$ac_ext <<_ACEOF
4869/* confdefs.h. */
4870_ACEOF
4871cat confdefs.h >>conftest.$ac_ext
4872cat >>conftest.$ac_ext <<_ACEOF
4873/* end confdefs.h. */
4874#ifdef __STDC__
4875# include <limits.h>
4876#else
4877# include <assert.h>
4878#endif
4879 Syntax error
4880_ACEOF
4881if { (ac_try="$ac_cpp conftest.$ac_ext"
4882case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885esac
4886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } >/dev/null; then
4894 if test -s conftest.err; then
4895 ac_cpp_err=$ac_c_preproc_warn_flag
4896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4897 else
4898 ac_cpp_err=
4899 fi
4900else
4901 ac_cpp_err=yes
4902fi
4903if test -z "$ac_cpp_err"; then
4904 :
4905else
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 # Broken: fails on valid input.
4910continue
4911fi
4912
4913rm -f conftest.err conftest.$ac_ext
4914
4915 # OK, works on sane cases. Now check whether nonexistent headers
4916 # can be detected and how.
4917 cat >conftest.$ac_ext <<_ACEOF
4918/* confdefs.h. */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h. */
4923#include <ac_nonexistent.h>
4924_ACEOF
4925if { (ac_try="$ac_cpp conftest.$ac_ext"
4926case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } >/dev/null; then
4938 if test -s conftest.err; then
4939 ac_cpp_err=$ac_c_preproc_warn_flag
4940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4941 else
4942 ac_cpp_err=
4943 fi
4944else
4945 ac_cpp_err=yes
4946fi
4947if test -z "$ac_cpp_err"; then
4948 # Broken: success on invalid input.
4949continue
4950else
4951 echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
4954 # Passes both tests.
4955ac_preproc_ok=:
4956break
4957fi
4958
4959rm -f conftest.err conftest.$ac_ext
4960
4961done
4962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4963rm -f conftest.err conftest.$ac_ext
4964if $ac_preproc_ok; then
4965 :
4966else
4967 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4968See \`config.log' for more details." >&5
4969echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4970See \`config.log' for more details." >&2;}
4971 { (exit 1); exit 1; }; }
4972fi
4973
4974ac_ext=c
4975ac_cpp='$CPP $CPPFLAGS'
4976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979
4980ac_ext=c
4981ac_cpp='$CPP $CPPFLAGS'
4982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985if test -n "$ac_tool_prefix"; then
4986 for ac_prog in gcc
4987 do
4988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992if test "${ac_cv_prog_CC+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995 if test -n "$CC"; then
4996 ac_cv_prog_CC="$CC" # Let the user override the test.
4997else
4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009done
5010done
5011IFS=$as_save_IFS
5012
5013fi
5014fi
5015CC=$ac_cv_prog_CC
5016if test -n "$CC"; then
5017 { echo "$as_me:$LINENO: result: $CC" >&5
5018echo "${ECHO_T}$CC" >&6; }
5019else
5020 { echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6; }
5022fi
5023
5024
5025 test -n "$CC" && break
5026 done
5027fi
5028if test -z "$CC"; then
5029 ac_ct_CC=$CC
5030 for ac_prog in gcc
5031do
5032 # Extract the first word of "$ac_prog", so it can be a program name with args.
5033set dummy $ac_prog; ac_word=$2
5034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038else
5039 if test -n "$ac_ct_CC"; then
5040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5041else
5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_ac_ct_CC="$ac_prog"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053done
5054done
5055IFS=$as_save_IFS
5056
5057fi
5058fi
5059ac_ct_CC=$ac_cv_prog_ac_ct_CC
5060if test -n "$ac_ct_CC"; then
5061 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5062echo "${ECHO_T}$ac_ct_CC" >&6; }
5063else
5064 { echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6; }
5066fi
5067
5068
5069 test -n "$ac_ct_CC" && break
5070done
5071
5072 if test "x$ac_ct_CC" = x; then
5073 CC=""
5074 else
5075 case $cross_compiling:$ac_tool_warned in
5076yes:)
5077{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5078whose name does not start with the host triplet. If you think this
5079configuration is useful to you, please write to autoconf@gnu.org." >&5
5080echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5081whose name does not start with the host triplet. If you think this
5082configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5083ac_tool_warned=yes ;;
5084esac
5085 CC=$ac_ct_CC
5086 fi
5087fi
5088
5089
5090test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5091See \`config.log' for more details." >&5
5092echo "$as_me: error: no acceptable C compiler found in \$PATH
5093See \`config.log' for more details." >&2;}
5094 { (exit 1); exit 1; }; }
5095
5096# Provide some information about the compiler.
5097echo "$as_me:$LINENO: checking for C compiler version" >&5
5098ac_compiler=`set X $ac_compile; echo $2`
5099{ (ac_try="$ac_compiler --version >&5"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compiler --version >&5") 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }
5109{ (ac_try="$ac_compiler -v >&5"
5110case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113esac
5114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_compiler -v >&5") 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }
5119{ (ac_try="$ac_compiler -V >&5"
5120case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123esac
5124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_compiler -V >&5") 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }
5129
5130{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5131echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5132if test "${ac_cv_c_compiler_gnu+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135 cat >conftest.$ac_ext <<_ACEOF
5136/* confdefs.h. */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h. */
5141
5142int
5143main ()
5144{
5145#ifndef __GNUC__
5146 choke me
5147#endif
5148
5149 ;
5150 return 0;
5151}
5152_ACEOF
5153rm -f conftest.$ac_objext
5154if { (ac_try="$ac_compile"
5155case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158esac
5159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_compile") 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5168 { (case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_try") 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181esac
5182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_try") 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_compiler_gnu=yes
5188else
5189 echo "$as_me: failed program was:" >&5
5190sed 's/^/| /' conftest.$ac_ext >&5
5191
5192 ac_compiler_gnu=no
5193fi
5194
5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196ac_cv_c_compiler_gnu=$ac_compiler_gnu
5197
5198fi
5199{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5200echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5201GCC=`test $ac_compiler_gnu = yes && echo yes`
5202ac_test_CFLAGS=${CFLAGS+set}
5203ac_save_CFLAGS=$CFLAGS
5204{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5205echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5206if test "${ac_cv_prog_cc_g+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209 ac_save_c_werror_flag=$ac_c_werror_flag
5210 ac_c_werror_flag=yes
5211 ac_cv_prog_cc_g=no
5212 CFLAGS="-g"
5213 cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h. */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h. */
5219
5220int
5221main ()
5222{
5223
5224 ;
5225 return 0;
5226}
5227_ACEOF
5228rm -f conftest.$ac_objext
5229if { (ac_try="$ac_compile"
5230case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233esac
5234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5243 { (case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
5247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_try") 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256esac
5257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_try") 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_cv_prog_cc_g=yes
5263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 CFLAGS=""
5268 cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h. */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h. */
5274
5275int
5276main ()
5277{
5278
5279 ;
5280 return 0;
5281}
5282_ACEOF
5283rm -f conftest.$ac_objext
5284if { (ac_try="$ac_compile"
5285case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288esac
5289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compile") 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5298 { (case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5301esac
5302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_try") 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311esac
5312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_try") 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 :
5318else
5319 echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 ac_c_werror_flag=$ac_save_c_werror_flag
5323 CFLAGS="-g"
5324 cat >conftest.$ac_ext <<_ACEOF
5325/* confdefs.h. */
5326_ACEOF
5327cat confdefs.h >>conftest.$ac_ext
5328cat >>conftest.$ac_ext <<_ACEOF
5329/* end confdefs.h. */
5330
5331int
5332main ()
5333{
5334
5335 ;
5336 return 0;
5337}
5338_ACEOF
5339rm -f conftest.$ac_objext
5340if { (ac_try="$ac_compile"
5341case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344esac
5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354 { (case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_try") 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_cv_prog_cc_g=yes
5374else
5375 echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378
5379fi
5380
5381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382fi
5383
5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385fi
5386
5387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 ac_c_werror_flag=$ac_save_c_werror_flag
5389fi
5390{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5391echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5392if test "$ac_test_CFLAGS" = set; then
5393 CFLAGS=$ac_save_CFLAGS
5394elif test $ac_cv_prog_cc_g = yes; then
5395 if test "$GCC" = yes; then
5396 CFLAGS="-g -O2"
5397 else
5398 CFLAGS="-g"
5399 fi
5400else
5401 if test "$GCC" = yes; then
5402 CFLAGS="-O2"
5403 else
5404 CFLAGS=
5405 fi
5406fi
5407{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5408echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5409if test "${ac_cv_prog_cc_c89+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412 ac_cv_prog_cc_c89=no
5413ac_save_CC=$CC
5414cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h. */
5420#include <stdarg.h>
5421#include <stdio.h>
5422#include <sys/types.h>
5423#include <sys/stat.h>
5424/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5425struct buf { int x; };
5426FILE * (*rcsopen) (struct buf *, struct stat *, int);
5427static char *e (p, i)
5428 char **p;
5429 int i;
5430{
5431 return p[i];
5432}
5433static char *f (char * (*g) (char **, int), char **p, ...)
5434{
5435 char *s;
5436 va_list v;
5437 va_start (v,p);
5438 s = g (p, va_arg (v,int));
5439 va_end (v);
5440 return s;
5441}
5442
5443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5444 function prototypes and stuff, but not '\xHH' hex character constants.
5445 These don't provoke an error unfortunately, instead are silently treated
5446 as 'x'. The following induces an error, until -std is added to get
5447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5448 array size at least. It's necessary to write '\x00'==0 to get something
5449 that's true only with -std. */
5450int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5451
5452/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5453 inside strings and character constants. */
5454#define FOO(x) 'x'
5455int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5456
5457int test (int i, double x);
5458struct s1 {int (*f) (int a);};
5459struct s2 {int (*f) (double a);};
5460int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5461int argc;
5462char **argv;
5463int
5464main ()
5465{
5466return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5472 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5473do
5474 CC="$ac_save_CC $ac_arg"
5475 rm -f conftest.$ac_objext
5476if { (ac_try="$ac_compile"
5477case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480esac
5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5490 { (case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
5494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_try") 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503esac
5504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_try") 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5509 ac_cv_prog_cc_c89=$ac_arg
5510else
5511 echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514
5515fi
5516
5517rm -f core conftest.err conftest.$ac_objext
5518 test "x$ac_cv_prog_cc_c89" != "xno" && break
5519done
5520rm -f conftest.$ac_ext
5521CC=$ac_save_CC
5522
5523fi
5524# AC_CACHE_VAL
5525case "x$ac_cv_prog_cc_c89" in
5526 x)
5527 { echo "$as_me:$LINENO: result: none needed" >&5
5528echo "${ECHO_T}none needed" >&6; } ;;
5529 xno)
5530 { echo "$as_me:$LINENO: result: unsupported" >&5
5531echo "${ECHO_T}unsupported" >&6; } ;;
5532 *)
5533 CC="$CC $ac_cv_prog_cc_c89"
5534 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5535echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5536esac
5537
5538
5539ac_ext=c
5540ac_cpp='$CPP $CPPFLAGS'
5541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544
5545ac_ext=cpp
5546ac_cpp='$CXXCPP $CPPFLAGS'
5547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5550if test -z "$CXX"; then
5551 if test -n "$CCC"; then
5552 CXX=$CCC
5553 else
5554 if test -n "$ac_tool_prefix"; then
5555 for ac_prog in g++
5556 do
5557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5561if test "${ac_cv_prog_CXX+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564 if test -n "$CXX"; then
5565 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578done
5579done
5580IFS=$as_save_IFS
5581
5582fi
5583fi
5584CXX=$ac_cv_prog_CXX
5585if test -n "$CXX"; then
5586 { echo "$as_me:$LINENO: result: $CXX" >&5
5587echo "${ECHO_T}$CXX" >&6; }
5588else
5589 { echo "$as_me:$LINENO: result: no" >&5
5590echo "${ECHO_T}no" >&6; }
5591fi
5592
5593
5594 test -n "$CXX" && break
5595 done
5596fi
5597if test -z "$CXX"; then
5598 ac_ct_CXX=$CXX
5599 for ac_prog in g++
5600do
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602set dummy $ac_prog; ac_word=$2
5603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5605if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608 if test -n "$ac_ct_CXX"; then
5609 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_CXX="$ac_prog"
5619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622done
5623done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5629if test -n "$ac_ct_CXX"; then
5630 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5631echo "${ECHO_T}$ac_ct_CXX" >&6; }
5632else
5633 { echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6; }
5635fi
5636
5637
5638 test -n "$ac_ct_CXX" && break
5639done
5640
5641 if test "x$ac_ct_CXX" = x; then
5642 CXX="g++"
5643 else
5644 case $cross_compiling:$ac_tool_warned in
5645yes:)
5646{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5647whose name does not start with the host triplet. If you think this
5648configuration is useful to you, please write to autoconf@gnu.org." >&5
5649echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5650whose name does not start with the host triplet. If you think this
5651configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5652ac_tool_warned=yes ;;
5653esac
5654 CXX=$ac_ct_CXX
5655 fi
5656fi
5657
5658 fi
5659fi
5660# Provide some information about the compiler.
5661echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5662ac_compiler=`set X $ac_compile; echo $2`
5663{ (ac_try="$ac_compiler --version >&5"
5664case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compiler --version >&5") 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }
5673{ (ac_try="$ac_compiler -v >&5"
5674case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677esac
5678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_compiler -v >&5") 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }
5683{ (ac_try="$ac_compiler -V >&5"
5684case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687esac
5688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compiler -V >&5") 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }
5693
5694{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5695echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5696if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699 cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h. */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h. */
5705
5706int
5707main ()
5708{
5709#ifndef __GNUC__
5710 choke me
5711#endif
5712
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext
5718if { (ac_try="$ac_compile"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5732 { (case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_try") 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_try") 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_compiler_gnu=yes
5752else
5753 echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_compiler_gnu=no
5757fi
5758
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5761
5762fi
5763{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5764echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5765GXX=`test $ac_compiler_gnu = yes && echo yes`
5766ac_test_CXXFLAGS=${CXXFLAGS+set}
5767ac_save_CXXFLAGS=$CXXFLAGS
5768{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5769echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5770if test "${ac_cv_prog_cxx_g+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5774 ac_cxx_werror_flag=yes
5775 ac_cv_prog_cxx_g=no
5776 CXXFLAGS="-g"
5777 cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h. */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h. */
5783
5784int
5785main ()
5786{
5787
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (ac_try="$ac_compile"
5794case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797esac
5798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5807 { (case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810esac
5811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_try") 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest.$ac_objext'
5817 { (case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_try") 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_cv_prog_cxx_g=yes
5827else
5828 echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 CXXFLAGS=""
5832 cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838
5839int
5840main ()
5841{
5842
5843 ;
5844 return 0;
5845}
5846_ACEOF
5847rm -f conftest.$ac_objext
5848if { (ac_try="$ac_compile"
5849case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852esac
5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_compile") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5862 { (case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865esac
5866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_try") 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875esac
5876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_try") 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 :
5882else
5883 echo "$as_me: failed program was:" >&5
5884sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5887 CXXFLAGS="-g"
5888 cat >conftest.$ac_ext <<_ACEOF
5889/* confdefs.h. */
5890_ACEOF
5891cat confdefs.h >>conftest.$ac_ext
5892cat >>conftest.$ac_ext <<_ACEOF
5893/* end confdefs.h. */
5894
5895int
5896main ()
5897{
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903rm -f conftest.$ac_objext
5904if { (ac_try="$ac_compile"
5905case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_prog_cxx_g=yes
5938else
5939 echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942
5943fi
5944
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946fi
5947
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949fi
5950
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5953fi
5954{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5955echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5956if test "$ac_test_CXXFLAGS" = set; then
5957 CXXFLAGS=$ac_save_CXXFLAGS
5958elif test $ac_cv_prog_cxx_g = yes; then
5959 if test "$GXX" = yes; then
5960 CXXFLAGS="-g -O2"
5961 else
5962 CXXFLAGS="-g"
5963 fi
5964else
5965 if test "$GXX" = yes; then
5966 CXXFLAGS="-O2"
5967 else
5968 CXXFLAGS=
5969 fi
5970fi
5971ac_ext=c
5972ac_cpp='$CPP $CPPFLAGS'
5973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976
5977{ echo "$as_me:$LINENO: checking " >&5
5978echo $ECHO_N "checking ... $ECHO_C" >&6; }
5979if test "${ac_cv_has_flex+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982 for ac_prog in flex lex
5983do
5984 # Extract the first word of "$ac_prog", so it can be a program name with args.
5985set dummy $ac_prog; ac_word=$2
5986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988if test "${ac_cv_prog_LEX+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991 if test -n "$LEX"; then
5992 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_LEX="$ac_prog"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006done
6007IFS=$as_save_IFS
6008
6009fi
6010fi
6011LEX=$ac_cv_prog_LEX
6012if test -n "$LEX"; then
6013 { echo "$as_me:$LINENO: result: $LEX" >&5
6014echo "${ECHO_T}$LEX" >&6; }
6015else
6016 { echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6; }
6018fi
6019
6020
6021 test -n "$LEX" && break
6022done
6023test -n "$LEX" || LEX=":"
6024
6025if test -z "$LEXLIB"
6026then
6027 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6028echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6029if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032 ac_check_lib_save_LIBS=$LIBS
6033LIBS="-lfl $LIBS"
6034cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
6040
6041/* Override any GCC internal prototype to avoid an error.
6042 Use char because int might match the return type of a GCC
6043 builtin and then its argument prototype would still apply. */
6044#ifdef __cplusplus
6045extern "C"
6046#endif
6047char yywrap ();
6048int
6049main ()
6050{
6051return yywrap ();
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext conftest$ac_exeext
6057if { (ac_try="$ac_link"
6058case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_link") 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6071 { (case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_try") 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; } &&
6080 { ac_try='test -s conftest$ac_exeext'
6081 { (case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_try") 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_lib_fl_yywrap=yes
6091else
6092 echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_cv_lib_fl_yywrap=no
6096fi
6097
6098rm -f core conftest.err conftest.$ac_objext \
6099 conftest$ac_exeext conftest.$ac_ext
6100LIBS=$ac_check_lib_save_LIBS
6101fi
6102{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6103echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6104if test $ac_cv_lib_fl_yywrap = yes; then
6105 LEXLIB="-lfl"
6106else
6107 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6108echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6109if test "${ac_cv_lib_l_yywrap+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112 ac_check_lib_save_LIBS=$LIBS
6113LIBS="-ll $LIBS"
6114cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h. */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h. */
6120
6121/* Override any GCC internal prototype to avoid an error.
6122 Use char because int might match the return type of a GCC
6123 builtin and then its argument prototype would still apply. */
6124#ifdef __cplusplus
6125extern "C"
6126#endif
6127char yywrap ();
6128int
6129main ()
6130{
6131return yywrap ();
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext conftest$ac_exeext
6137if { (ac_try="$ac_link"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_link") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest$ac_exeext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_lib_l_yywrap=yes
6171else
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 ac_cv_lib_l_yywrap=no
6176fi
6177
6178rm -f core conftest.err conftest.$ac_objext \
6179 conftest$ac_exeext conftest.$ac_ext
6180LIBS=$ac_check_lib_save_LIBS
6181fi
6182{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6183echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6184if test $ac_cv_lib_l_yywrap = yes; then
6185 LEXLIB="-ll"
6186fi
6187
6188fi
6189
6190fi
6191
6192if test "x$LEX" != "x:"; then
6193 { echo "$as_me:$LINENO: checking lex output file root" >&5
6194echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6195if test "${ac_cv_prog_lex_root+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198 # The minimal lex program is just a single line: %%. But some broken lexes
6199# (Solaris, I think it was) want two %% lines, so accommodate them.
6200cat >conftest.l <<_ACEOF
6201%%
6202%%
6203_ACEOF
6204{ (ac_try="$LEX conftest.l"
6205case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208esac
6209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$LEX conftest.l") 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }
6214if test -f lex.yy.c; then
6215 ac_cv_prog_lex_root=lex.yy
6216elif test -f lexyy.c; then
6217 ac_cv_prog_lex_root=lexyy
6218else
6219 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6220echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6221 { (exit 1); exit 1; }; }
6222fi
6223fi
6224{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6225echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6226rm -f conftest.l
6227LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6228
6229{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6230echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6231if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234 # POSIX says lex can declare yytext either as a pointer or an array; the
6235# default is implementation-dependent. Figure out which it is, since
6236# not all implementations provide the %pointer and %array declarations.
6237ac_cv_prog_lex_yytext_pointer=no
6238echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6239ac_save_LIBS=$LIBS
6240LIBS="$LIBS $LEXLIB"
6241cat >conftest.$ac_ext <<_ACEOF
6242`cat $LEX_OUTPUT_ROOT.c`
6243_ACEOF
6244rm -f conftest.$ac_objext conftest$ac_exeext
6245if { (ac_try="$ac_link"
6246case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_link") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest$ac_exeext'
6269 { (case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272esac
6273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_try") 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_cv_prog_lex_yytext_pointer=yes
6279else
6280 echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283
6284fi
6285
6286rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6288LIBS=$ac_save_LIBS
6289rm -f "${LEX_OUTPUT_ROOT}.c"
6290
6291fi
6292{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6293echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6294if test $ac_cv_prog_lex_yytext_pointer = yes; then
6295
6296cat >>confdefs.h <<\_ACEOF
6297#define YYTEXT_POINTER 1
6298_ACEOF
6299
6300fi
6301
6302fi
6303
6304fi
6305{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6306echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6307if test "$LEX" != "flex"; then
6308 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6309echo "$as_me: error: flex not found but required" >&2;}
6310 { (exit 1); exit 1; }; }
6311else
6312 FLEX=flex
6313
6314fi
6315
6316{ echo "$as_me:$LINENO: checking " >&5
6317echo $ECHO_N "checking ... $ECHO_C" >&6; }
6318if test "${llvm_cv_has_bison+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321 for ac_prog in 'bison -y' byacc
6322do
6323 # Extract the first word of "$ac_prog", so it can be a program name with args.
6324set dummy $ac_prog; ac_word=$2
6325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327if test "${ac_cv_prog_YACC+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330 if test -n "$YACC"; then
6331 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_YACC="$ac_prog"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344done
6345done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350YACC=$ac_cv_prog_YACC
6351if test -n "$YACC"; then
6352 { echo "$as_me:$LINENO: result: $YACC" >&5
6353echo "${ECHO_T}$YACC" >&6; }
6354else
6355 { echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6; }
6357fi
6358
6359
6360 test -n "$YACC" && break
6361done
6362test -n "$YACC" || YACC="yacc"
6363
6364fi
6365{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6366echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6367if test "$YACC" != "bison -y"; then
6368 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
6369echo "$as_me: error: bison not found but required" >&2;}
6370 { (exit 1); exit 1; }; }
6371else
6372 BISON=bison
6373
6374fi
6375
6376{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6377echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6378if test "${lt_cv_path_NM+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 if test -n "$NM"; then
6382 # Let the user override the test.
6383 lt_cv_path_NM="$NM"
6384else
6385 lt_nm_to_check="${ac_tool_prefix}nm"
6386 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6387 lt_nm_to_check="$lt_nm_to_check nm"
6388 fi
6389 for lt_tmp_nm in $lt_nm_to_check; do
6390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6391 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6392 IFS="$lt_save_ifs"
6393 test -z "$ac_dir" && ac_dir=.
6394 tmp_nm="$ac_dir/$lt_tmp_nm"
6395 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6396 # Check to see if the nm accepts a BSD-compat flag.
6397 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6398 # nm: unknown option "B" ignored
6399 # Tru64's nm complains that /dev/null is an invalid object file
6400 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6401 */dev/null* | *'Invalid file or object type'*)
6402 lt_cv_path_NM="$tmp_nm -B"
6403 break
6404 ;;
6405 *)
6406 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6407 */dev/null*)
6408 lt_cv_path_NM="$tmp_nm -p"
6409 break
6410 ;;
6411 *)
6412 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6413 continue # so that we can try to find one that supports BSD flags
6414 ;;
6415 esac
6416 ;;
6417 esac
6418 fi
6419 done
6420 IFS="$lt_save_ifs"
6421 done
6422 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6423fi
6424fi
6425{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6426echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6427NM="$lt_cv_path_NM"
6428
6429
6430
6431{ echo "$as_me:$LINENO: checking for GNU make" >&5
6432echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6433if test "${llvm_cv_gnu_make_command+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435else
6436 llvm_cv_gnu_make_command=''
6437 for a in "$MAKE" make gmake gnumake ; do
6438 if test -z "$a" ; then continue ; fi ;
6439 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6440 then
6441 llvm_cv_gnu_make_command=$a ;
6442 break;
6443 fi
6444 done
6445fi
6446{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6447echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6448 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6449 ifGNUmake='' ;
6450 else
6451 ifGNUmake='#' ;
6452 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6453echo "${ECHO_T}\"Not found\"" >&6; };
6454 fi
6455
6456
6457{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6458echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6459LN_S=$as_ln_s
6460if test "$LN_S" = "ln -s"; then
6461 { echo "$as_me:$LINENO: result: yes" >&5
6462echo "${ECHO_T}yes" >&6; }
6463else
6464 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6465echo "${ECHO_T}no, using $LN_S" >&6; }
6466fi
6467
6468# Extract the first word of "cmp", so it can be a program name with args.
6469set dummy cmp; ac_word=$2
6470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472if test "${ac_cv_path_CMP+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475 case $CMP in
6476 [\\/]* | ?:[\\/]*)
6477 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6478 ;;
6479 *)
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491done
6492done
6493IFS=$as_save_IFS
6494
6495 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6496 ;;
6497esac
6498fi
6499CMP=$ac_cv_path_CMP
6500if test -n "$CMP"; then
6501 { echo "$as_me:$LINENO: result: $CMP" >&5
6502echo "${ECHO_T}$CMP" >&6; }
6503else
6504 { echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6; }
6506fi
6507
6508
6509# Extract the first word of "cp", so it can be a program name with args.
6510set dummy cp; ac_word=$2
6511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513if test "${ac_cv_path_CP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515else
6516 case $CP in
6517 [\\/]* | ?:[\\/]*)
6518 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6519 ;;
6520 *)
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532done
6533done
6534IFS=$as_save_IFS
6535
6536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6537 ;;
6538esac
6539fi
6540CP=$ac_cv_path_CP
6541if test -n "$CP"; then
6542 { echo "$as_me:$LINENO: result: $CP" >&5
6543echo "${ECHO_T}$CP" >&6; }
6544else
6545 { echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6; }
6547fi
6548
6549
6550# Extract the first word of "date", so it can be a program name with args.
6551set dummy date; ac_word=$2
6552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554if test "${ac_cv_path_DATE+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556else
6557 case $DATE in
6558 [\\/]* | ?:[\\/]*)
6559 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6560 ;;
6561 *)
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6572 fi
6573done
6574done
6575IFS=$as_save_IFS
6576
6577 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6578 ;;
6579esac
6580fi
6581DATE=$ac_cv_path_DATE
6582if test -n "$DATE"; then
6583 { echo "$as_me:$LINENO: result: $DATE" >&5
6584echo "${ECHO_T}$DATE" >&6; }
6585else
6586 { echo "$as_me:$LINENO: result: no" >&5
6587echo "${ECHO_T}no" >&6; }
6588fi
6589
6590
6591# Extract the first word of "find", so it can be a program name with args.
6592set dummy find; ac_word=$2
6593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595if test "${ac_cv_path_FIND+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598 case $FIND in
6599 [\\/]* | ?:[\\/]*)
6600 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6601 ;;
6602 *)
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614done
6615done
6616IFS=$as_save_IFS
6617
6618 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6619 ;;
6620esac
6621fi
6622FIND=$ac_cv_path_FIND
6623if test -n "$FIND"; then
6624 { echo "$as_me:$LINENO: result: $FIND" >&5
6625echo "${ECHO_T}$FIND" >&6; }
6626else
6627 { echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6; }
6629fi
6630
6631
6632# Extract the first word of "grep", so it can be a program name with args.
6633set dummy grep; ac_word=$2
6634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636if test "${ac_cv_path_GREP+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638else
6639 case $GREP in
6640 [\\/]* | ?:[\\/]*)
6641 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6642 ;;
6643 *)
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645for as_dir in $PATH
6646do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655done
6656done
6657IFS=$as_save_IFS
6658
6659 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6660 ;;
6661esac
6662fi
6663GREP=$ac_cv_path_GREP
6664if test -n "$GREP"; then
6665 { echo "$as_me:$LINENO: result: $GREP" >&5
6666echo "${ECHO_T}$GREP" >&6; }
6667else
6668 { echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6; }
6670fi
6671
6672
6673# Extract the first word of "mkdir", so it can be a program name with args.
6674set dummy mkdir; ac_word=$2
6675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677if test "${ac_cv_path_MKDIR+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679else
6680 case $MKDIR in
6681 [\\/]* | ?:[\\/]*)
6682 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6683 ;;
6684 *)
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696done
6697done
6698IFS=$as_save_IFS
6699
6700 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6701 ;;
6702esac
6703fi
6704MKDIR=$ac_cv_path_MKDIR
6705if test -n "$MKDIR"; then
6706 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6707echo "${ECHO_T}$MKDIR" >&6; }
6708else
6709 { echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6; }
6711fi
6712
6713
6714# Extract the first word of "mv", so it can be a program name with args.
6715set dummy mv; ac_word=$2
6716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718if test "${ac_cv_path_MV+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721 case $MV in
6722 [\\/]* | ?:[\\/]*)
6723 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6724 ;;
6725 *)
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738done
6739IFS=$as_save_IFS
6740
6741 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6742 ;;
6743esac
6744fi
6745MV=$ac_cv_path_MV
6746if test -n "$MV"; then
6747 { echo "$as_me:$LINENO: result: $MV" >&5
6748echo "${ECHO_T}$MV" >&6; }
6749else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6; }
6752fi
6753
6754
6755if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6757set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760if test "${ac_cv_prog_RANLIB+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763 if test -n "$RANLIB"; then
6764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777done
6778done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783RANLIB=$ac_cv_prog_RANLIB
6784if test -n "$RANLIB"; then
6785 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6786echo "${ECHO_T}$RANLIB" >&6; }
6787else
6788 { echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6; }
6790fi
6791
6792
6793fi
6794if test -z "$ac_cv_prog_RANLIB"; then
6795 ac_ct_RANLIB=$RANLIB
6796 # Extract the first word of "ranlib", so it can be a program name with args.
6797set dummy ranlib; ac_word=$2
6798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802else
6803 if test -n "$ac_ct_RANLIB"; then
6804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_ac_ct_RANLIB="ranlib"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817done
6818done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6824if test -n "$ac_ct_RANLIB"; then
6825 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6826echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6827else
6828 { echo "$as_me:$LINENO: result: no" >&5
6829echo "${ECHO_T}no" >&6; }
6830fi
6831
6832 if test "x$ac_ct_RANLIB" = x; then
6833 RANLIB=":"
6834 else
6835 case $cross_compiling:$ac_tool_warned in
6836yes:)
6837{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6838whose name does not start with the host triplet. If you think this
6839configuration is useful to you, please write to autoconf@gnu.org." >&5
6840echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6841whose name does not start with the host triplet. If you think this
6842configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6843ac_tool_warned=yes ;;
6844esac
6845 RANLIB=$ac_ct_RANLIB
6846 fi
6847else
6848 RANLIB="$ac_cv_prog_RANLIB"
6849fi
6850
6851# Extract the first word of "rm", so it can be a program name with args.
6852set dummy rm; ac_word=$2
6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_path_RM+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 case $RM in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6861 ;;
6862 *)
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874done
6875done
6876IFS=$as_save_IFS
6877
6878 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6879 ;;
6880esac
6881fi
6882RM=$ac_cv_path_RM
6883if test -n "$RM"; then
6884 { echo "$as_me:$LINENO: result: $RM" >&5
6885echo "${ECHO_T}$RM" >&6; }
6886else
6887 { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
6889fi
6890
6891
6892# Extract the first word of "sed", so it can be a program name with args.
6893set dummy sed; ac_word=$2
6894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896if test "${ac_cv_path_SED+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898else
6899 case $SED in
6900 [\\/]* | ?:[\\/]*)
6901 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6902 ;;
6903 *)
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916done
6917IFS=$as_save_IFS
6918
6919 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6920 ;;
6921esac
6922fi
6923SED=$ac_cv_path_SED
6924if test -n "$SED"; then
6925 { echo "$as_me:$LINENO: result: $SED" >&5
6926echo "${ECHO_T}$SED" >&6; }
6927else
6928 { echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6; }
6930fi
6931
6932
6933# Extract the first word of "tar", so it can be a program name with args.
6934set dummy tar; ac_word=$2
6935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_TAR+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940 case $TAR in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956done
6957done
6958IFS=$as_save_IFS
6959
6960 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6961 ;;
6962esac
6963fi
6964TAR=$ac_cv_path_TAR
6965if test -n "$TAR"; then
6966 { echo "$as_me:$LINENO: result: $TAR" >&5
6967echo "${ECHO_T}$TAR" >&6; }
6968else
6969 { echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6; }
6971fi
6972
6973
6974# Extract the first word of "pwd", so it can be a program name with args.
6975set dummy pwd; ac_word=$2
6976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978if test "${ac_cv_path_BINPWD+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980else
6981 case $BINPWD in
6982 [\\/]* | ?:[\\/]*)
6983 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6984 ;;
6985 *)
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997done
6998done
6999IFS=$as_save_IFS
7000
7001 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7002 ;;
7003esac
7004fi
7005BINPWD=$ac_cv_path_BINPWD
7006if test -n "$BINPWD"; then
7007 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7008echo "${ECHO_T}$BINPWD" >&6; }
7009else
7010 { echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6; }
7012fi
7013
7014
7015
7016# Extract the first word of "Graphviz", so it can be a program name with args.
7017set dummy Graphviz; ac_word=$2
7018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 case $GRAPHVIZ in
7024 [\\/]* | ?:[\\/]*)
7025 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7026 ;;
7027 *)
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039done
7040done
7041IFS=$as_save_IFS
7042
7043 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7044 ;;
7045esac
7046fi
7047GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7048if test -n "$GRAPHVIZ"; then
7049 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7050echo "${ECHO_T}$GRAPHVIZ" >&6; }
7051else
7052 { echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6; }
7054fi
7055
7056
7057if test "$GRAPHVIZ" != "echo Graphviz" ; then
7058
7059cat >>confdefs.h <<\_ACEOF
7060#define HAVE_GRAPHVIZ 1
7061_ACEOF
7062
7063 if test "$llvm_cv_os_type" == "MingW" ; then
7064 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7065 fi
7066
7067cat >>confdefs.h <<_ACEOF
7068#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7069_ACEOF
7070
7071fi
7072# Extract the first word of "dot", so it can be a program name with args.
7073set dummy dot; ac_word=$2
7074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_path_DOT+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 case $DOT in
7080 [\\/]* | ?:[\\/]*)
7081 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7082 ;;
7083 *)
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095done
7096done
7097IFS=$as_save_IFS
7098
7099 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7100 ;;
7101esac
7102fi
7103DOT=$ac_cv_path_DOT
7104if test -n "$DOT"; then
7105 { echo "$as_me:$LINENO: result: $DOT" >&5
7106echo "${ECHO_T}$DOT" >&6; }
7107else
7108 { echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6; }
7110fi
7111
7112
7113if test "$DOT" != "echo dot" ; then
7114
7115cat >>confdefs.h <<\_ACEOF
7116#define HAVE_DOT 1
7117_ACEOF
7118
7119 if test "$llvm_cv_os_type" == "MingW" ; then
7120 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7121 fi
7122
7123cat >>confdefs.h <<_ACEOF
7124#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7125_ACEOF
7126
7127fi
7128for ac_prog in gv gsview32
7129do
7130 # Extract the first word of "$ac_prog", so it can be a program name with args.
7131set dummy $ac_prog; ac_word=$2
7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134if test "${ac_cv_path_GV+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137 case $GV in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153done
7154done
7155IFS=$as_save_IFS
7156
7157 ;;
7158esac
7159fi
7160GV=$ac_cv_path_GV
7161if test -n "$GV"; then
7162 { echo "$as_me:$LINENO: result: $GV" >&5
7163echo "${ECHO_T}$GV" >&6; }
7164else
7165 { echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6; }
7167fi
7168
7169
7170 test -n "$GV" && break
7171done
7172test -n "$GV" || GV="echo gv"
7173
7174if test "$GV" != "echo gv" ; then
7175
7176cat >>confdefs.h <<\_ACEOF
7177#define HAVE_GV 1
7178_ACEOF
7179
7180 if test "$llvm_cv_os_type" == "MingW" ; then
7181 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7182 fi
7183
7184cat >>confdefs.h <<_ACEOF
7185#define LLVM_PATH_GV "$GV${EXEEXT}"
7186_ACEOF
7187
7188fi
7189# Extract the first word of "dotty", so it can be a program name with args.
7190set dummy dotty; ac_word=$2
7191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193if test "${ac_cv_path_DOTTY+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 case $DOTTY in
7197 [\\/]* | ?:[\\/]*)
7198 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7199 ;;
7200 *)
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
7214IFS=$as_save_IFS
7215
7216 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7217 ;;
7218esac
7219fi
7220DOTTY=$ac_cv_path_DOTTY
7221if test -n "$DOTTY"; then
7222 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7223echo "${ECHO_T}$DOTTY" >&6; }
7224else
7225 { echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6; }
7227fi
7228
7229
7230if test "$DOTTY" != "echo dotty" ; then
7231
7232cat >>confdefs.h <<\_ACEOF
7233#define HAVE_DOTTY 1
7234_ACEOF
7235
7236 if test "$llvm_cv_os_type" == "MingW" ; then
7237 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7238 fi
7239
7240cat >>confdefs.h <<_ACEOF
7241#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7242_ACEOF
7243
7244fi
7245
7246
7247# Extract the first word of "perl", so it can be a program name with args.
7248set dummy perl; ac_word=$2
7249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251if test "${ac_cv_path_PERL+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254 case $PERL in
7255 [\\/]* | ?:[\\/]*)
7256 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7257 ;;
7258 *)
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270done
7271done
7272IFS=$as_save_IFS
7273
7274 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7275 ;;
7276esac
7277fi
7278PERL=$ac_cv_path_PERL
7279if test -n "$PERL"; then
7280 { echo "$as_me:$LINENO: result: $PERL" >&5
7281echo "${ECHO_T}$PERL" >&6; }
7282else
7283 { echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6; }
7285fi
7286
7287
7288if test "$PERL" != "none"; then
7289 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7290echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7291 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7292 { echo "$as_me:$LINENO: result: yes" >&5
7293echo "${ECHO_T}yes" >&6; }
7294 else
7295 PERL=none
7296 { echo "$as_me:$LINENO: result: not found" >&5
7297echo "${ECHO_T}not found" >&6; }
7298 fi
7299fi
7300
7301
7302if test x"$PERL" = xnone; then
7303 HAVE_PERL=0
7304
7305else
7306 HAVE_PERL=1
7307
7308fi
7309
7310# Find a good install program. We prefer a C program (faster),
7311# so one script is as good as another. But avoid the broken or
7312# incompatible versions:
7313# SysV /etc/install, /usr/sbin/install
7314# SunOS /usr/etc/install
7315# IRIX /sbin/install
7316# AIX /bin/install
7317# AmigaOS /C/install, which installs bootblocks on floppy discs
7318# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7319# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7320# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7321# OS/2's system install, which has a completely different semantic
7322# ./install, which can be erroneously created by make from ./install.sh.
7323{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7324echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7325if test -z "$INSTALL"; then
7326if test "${ac_cv_path_install+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332 IFS=$as_save_IFS
7333 test -z "$as_dir" && as_dir=.
7334 # Account for people who put trailing slashes in PATH elements.
7335case $as_dir/ in
7336 ./ | .// | /cC/* | \
7337 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7338 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7339 /usr/ucb/* ) ;;
7340 *)
7341 # OSF1 and SCO ODT 3.0 have their own names for install.
7342 # Don't use installbsd from OSF since it installs stuff as root
7343 # by default.
7344 for ac_prog in ginstall scoinst install; do
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7347 if test $ac_prog = install &&
7348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7349 # AIX install. It has an incompatible calling convention.
7350 :
7351 elif test $ac_prog = install &&
7352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7353 # program-specific install script used by HP pwplus--don't use.
7354 :
7355 else
7356 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7357 break 3
7358 fi
7359 fi
7360 done
7361 done
7362 ;;
7363esac
7364done
7365IFS=$as_save_IFS
7366
7367
7368fi
7369 if test "${ac_cv_path_install+set}" = set; then
7370 INSTALL=$ac_cv_path_install
7371 else
7372 # As a last resort, use the slow shell script. Don't cache a
7373 # value for INSTALL within a source directory, because that will
7374 # break other packages using the cache if that directory is
7375 # removed, or if the value is a relative name.
7376 INSTALL=$ac_install_sh
7377 fi
7378fi
7379{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7380echo "${ECHO_T}$INSTALL" >&6; }
7381
7382# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7383# It thinks the first close brace ends the variable substitution.
7384test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7385
7386test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7387
7388test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7389
7390
7391# Extract the first word of "bzip2", so it can be a program name with args.
7392set dummy bzip2; ac_word=$2
7393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395if test "${ac_cv_path_BZIP2+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398 case $BZIP2 in
7399 [\\/]* | ?:[\\/]*)
7400 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7401 ;;
7402 *)
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 break 2
7413 fi
7414done
7415done
7416IFS=$as_save_IFS
7417
7418 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7419 ;;
7420esac
7421fi
7422BZIP2=$ac_cv_path_BZIP2
7423if test -n "$BZIP2"; then
7424 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7425echo "${ECHO_T}$BZIP2" >&6; }
7426else
7427 { echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6; }
7429fi
7430
7431
7432# Extract the first word of "doxygen", so it can be a program name with args.
7433set dummy doxygen; ac_word=$2
7434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_DOXYGEN+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439 case $DOXYGEN in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455done
7456done
7457IFS=$as_save_IFS
7458
7459 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7460 ;;
7461esac
7462fi
7463DOXYGEN=$ac_cv_path_DOXYGEN
7464if test -n "$DOXYGEN"; then
7465 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7466echo "${ECHO_T}$DOXYGEN" >&6; }
7467else
7468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
7470fi
7471
7472
Reid Spencera773bd52006-08-04 18:18:08 +00007473# Extract the first word of "groff", so it can be a program name with args.
7474set dummy groff; ac_word=$2
7475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477if test "${ac_cv_path_GROFF+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479else
7480 case $GROFF in
7481 [\\/]* | ?:[\\/]*)
7482 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7483 ;;
7484 *)
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7495 fi
7496done
7497done
7498IFS=$as_save_IFS
7499
7500 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7501 ;;
7502esac
7503fi
7504GROFF=$ac_cv_path_GROFF
7505if test -n "$GROFF"; then
7506 { echo "$as_me:$LINENO: result: $GROFF" >&5
7507echo "${ECHO_T}$GROFF" >&6; }
7508else
7509 { echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6; }
7511fi
7512
7513
7514# Extract the first word of "gzip", so it can be a program name with args.
7515set dummy gzip; ac_word=$2
7516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7518if test "${ac_cv_path_GZIP+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521 case $GZIP in
7522 [\\/]* | ?:[\\/]*)
7523 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7524 ;;
7525 *)
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7533 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537done
7538done
7539IFS=$as_save_IFS
7540
7541 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7542 ;;
7543esac
7544fi
7545GZIP=$ac_cv_path_GZIP
7546if test -n "$GZIP"; then
7547 { echo "$as_me:$LINENO: result: $GZIP" >&5
7548echo "${ECHO_T}$GZIP" >&6; }
7549else
7550 { echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6; }
7552fi
7553
7554
7555# Extract the first word of "pod2html", so it can be a program name with args.
7556set dummy pod2html; ac_word=$2
7557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559if test "${ac_cv_path_POD2HTML+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
7562 case $POD2HTML in
7563 [\\/]* | ?:[\\/]*)
7564 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7565 ;;
7566 *)
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568for as_dir in $PATH
7569do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578done
7579done
7580IFS=$as_save_IFS
7581
7582 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7583 ;;
7584esac
7585fi
7586POD2HTML=$ac_cv_path_POD2HTML
7587if test -n "$POD2HTML"; then
7588 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7589echo "${ECHO_T}$POD2HTML" >&6; }
7590else
7591 { echo "$as_me:$LINENO: result: no" >&5
7592echo "${ECHO_T}no" >&6; }
7593fi
7594
7595
7596# Extract the first word of "pod2man", so it can be a program name with args.
7597set dummy pod2man; ac_word=$2
7598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600if test "${ac_cv_path_POD2MAN+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602else
7603 case $POD2MAN in
7604 [\\/]* | ?:[\\/]*)
7605 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7606 ;;
7607 *)
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619done
7620done
7621IFS=$as_save_IFS
7622
7623 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7624 ;;
7625esac
7626fi
7627POD2MAN=$ac_cv_path_POD2MAN
7628if test -n "$POD2MAN"; then
7629 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7630echo "${ECHO_T}$POD2MAN" >&6; }
7631else
7632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
7634fi
7635
7636
7637# Extract the first word of "runtest", so it can be a program name with args.
7638set dummy runtest; ac_word=$2
7639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7641if test "${ac_cv_path_RUNTEST+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644 case $RUNTEST in
7645 [\\/]* | ?:[\\/]*)
7646 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7647 ;;
7648 *)
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660done
7661done
7662IFS=$as_save_IFS
7663
7664 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7665 ;;
7666esac
7667fi
7668RUNTEST=$ac_cv_path_RUNTEST
7669if test -n "$RUNTEST"; then
7670 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7671echo "${ECHO_T}$RUNTEST" >&6; }
7672else
7673 { echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6; }
7675fi
7676
7677
7678
7679no_itcl=true
7680{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7681echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7682
7683# Check whether --with-tclinclude was given.
7684if test "${with_tclinclude+set}" = set; then
7685 withval=$with_tclinclude; with_tclinclude=${withval}
7686else
7687 with_tclinclude=''
7688fi
7689
7690if test "${ac_cv_path_tclsh+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692else
7693
7694if test x"${with_tclinclude}" != x ; then
7695 if test -f ${with_tclinclude}/tclsh ; then
7696 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7697 elif test -f ${with_tclinclude}/src/tclsh ; then
7698 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7699 else
7700 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7701echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7702 { (exit 1); exit 1; }; }
7703 fi
7704fi
7705
7706if test x"${ac_cv_path_tclsh}" = x ; then
7707 { echo "$as_me:$LINENO: result: none" >&5
7708echo "${ECHO_T}none" >&6; }
7709 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
7710do
7711 # Extract the first word of "$ac_prog", so it can be a program name with args.
7712set dummy $ac_prog; ac_word=$2
7713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7715if test "${ac_cv_path_TCLSH+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718 case $TCLSH in
7719 [\\/]* | ?:[\\/]*)
7720 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7721 ;;
7722 *)
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734done
7735done
7736IFS=$as_save_IFS
7737
7738 ;;
7739esac
7740fi
7741TCLSH=$ac_cv_path_TCLSH
7742if test -n "$TCLSH"; then
7743 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7744echo "${ECHO_T}$TCLSH" >&6; }
7745else
7746 { echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6; }
7748fi
7749
7750
7751 test -n "$TCLSH" && break
7752done
7753
7754 if test x"${TCLSH}" = x ; then
7755 ac_cv_path_tclsh='';
7756 else
7757 ac_cv_path_tclsh="${TCLSH}";
7758 fi
7759else
7760 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7761echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7762 TCLSH="${ac_cv_path_tclsh}"
7763
7764fi
7765
7766fi
7767
7768# Extract the first word of "zip", so it can be a program name with args.
7769set dummy zip; ac_word=$2
7770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772if test "${ac_cv_path_ZIP+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
7775 case $ZIP in
7776 [\\/]* | ?:[\\/]*)
7777 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7778 ;;
7779 *)
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791done
7792done
7793IFS=$as_save_IFS
7794
7795 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7796 ;;
7797esac
7798fi
7799ZIP=$ac_cv_path_ZIP
7800if test -n "$ZIP"; then
7801 { echo "$as_me:$LINENO: result: $ZIP" >&5
7802echo "${ECHO_T}$ZIP" >&6; }
7803else
7804 { echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6; }
7806fi
7807
7808
7809
7810{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7811echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7812if test "${llvm_cv_link_use_r+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821 oldcflags="$CFLAGS"
7822 CFLAGS="$CFLAGS -Wl,-R."
7823 cat >conftest.$ac_ext <<_ACEOF
7824/* confdefs.h. */
7825_ACEOF
7826cat confdefs.h >>conftest.$ac_ext
7827cat >>conftest.$ac_ext <<_ACEOF
7828/* end confdefs.h. */
7829
7830int
7831main ()
7832{
7833int main() { return 0; }
7834 ;
7835 return 0;
7836}
7837_ACEOF
7838rm -f conftest.$ac_objext conftest$ac_exeext
7839if { (ac_try="$ac_link"
7840case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843esac
7844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_link") 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7853 { (case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_try") 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest$ac_exeext'
7863 { (case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866esac
7867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_try") 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 llvm_cv_link_use_r=yes
7873else
7874 echo "$as_me: failed program was:" >&5
7875sed 's/^/| /' conftest.$ac_ext >&5
7876
7877 llvm_cv_link_use_r=no
7878fi
7879
7880rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 CFLAGS="$oldcflags"
7883 ac_ext=c
7884ac_cpp='$CPP $CPPFLAGS'
7885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888
7889
7890fi
7891{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7892echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7893if test "$llvm_cv_link_use_r" = yes ; then
7894
7895cat >>confdefs.h <<\_ACEOF
7896#define HAVE_LINK_R 1
7897_ACEOF
7898
7899 fi
7900
7901
7902
7903
7904{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7905echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7906if test "${ac_cv_c_const+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909 cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915
7916int
7917main ()
7918{
7919/* FIXME: Include the comments suggested by Paul. */
7920#ifndef __cplusplus
7921 /* Ultrix mips cc rejects this. */
7922 typedef int charset[2];
7923 const charset x;
7924 /* SunOS 4.1.1 cc rejects this. */
7925 char const *const *ccp;
7926 char **p;
7927 /* NEC SVR4.0.2 mips cc rejects this. */
7928 struct point {int x, y;};
7929 static struct point const zero = {0,0};
7930 /* AIX XL C 1.02.0.0 rejects this.
7931 It does not let you subtract one const X* pointer from another in
7932 an arm of an if-expression whose if-part is not a constant
7933 expression */
7934 const char *g = "string";
7935 ccp = &g + (g ? g-g : 0);
7936 /* HPUX 7.0 cc rejects these. */
7937 ++ccp;
7938 p = (char**) ccp;
7939 ccp = (char const *const *) p;
7940 { /* SCO 3.2v4 cc rejects this. */
7941 char *t;
7942 char const *s = 0 ? (char *) 0 : (char const *) 0;
7943
7944 *t++ = 0;
7945 if (s) return 0;
7946 }
7947 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7948 int x[] = {25, 17};
7949 const int *foo = &x[0];
7950 ++foo;
7951 }
7952 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7953 typedef const int *iptr;
7954 iptr p = 0;
7955 ++p;
7956 }
7957 { /* AIX XL C 1.02.0.0 rejects this saying
7958 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7959 struct s { int j; const int *ap[3]; };
7960 struct s *b; b->j = 5;
7961 }
7962 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7963 const int foo = 10;
7964 if (!foo) return 0;
7965 }
7966 return !x[0] && !zero.x;
7967#endif
7968
7969 ;
7970 return 0;
7971}
7972_ACEOF
7973rm -f conftest.$ac_objext
7974if { (ac_try="$ac_compile"
7975case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978esac
7979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7988 { (case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_try") 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_try") 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_cv_c_const=yes
8008else
8009 echo "$as_me: failed program was:" >&5
8010sed 's/^/| /' conftest.$ac_ext >&5
8011
8012 ac_cv_c_const=no
8013fi
8014
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016fi
8017{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8018echo "${ECHO_T}$ac_cv_c_const" >&6; }
8019if test $ac_cv_c_const = no; then
8020
8021cat >>confdefs.h <<\_ACEOF
8022#define const
8023_ACEOF
8024
8025fi
8026
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008027
8028
8029
8030
8031
8032ac_header_dirent=no
8033for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8034 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008035{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8036echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040 cat >conftest.$ac_ext <<_ACEOF
8041/* confdefs.h. */
8042_ACEOF
8043cat confdefs.h >>conftest.$ac_ext
8044cat >>conftest.$ac_ext <<_ACEOF
8045/* end confdefs.h. */
8046#include <sys/types.h>
8047#include <$ac_hdr>
8048
8049int
8050main ()
8051{
8052if ((DIR *) 0)
8053return 0;
8054 ;
8055 return 0;
8056}
8057_ACEOF
8058rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008059if { (ac_try="$ac_compile"
8060case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086esac
8087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 eval "$as_ac_Header=yes"
8093else
8094 echo "$as_me: failed program was:" >&5
8095sed 's/^/| /' conftest.$ac_ext >&5
8096
Reid Spencera773bd52006-08-04 18:18:08 +00008097 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008098fi
Reid Spencera773bd52006-08-04 18:18:08 +00008099
8100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008101fi
Reid Spencera773bd52006-08-04 18:18:08 +00008102ac_res=`eval echo '${'$as_ac_Header'}'`
8103 { echo "$as_me:$LINENO: result: $ac_res" >&5
8104echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008105if test `eval echo '${'$as_ac_Header'}'` = yes; then
8106 cat >>confdefs.h <<_ACEOF
8107#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8108_ACEOF
8109
8110ac_header_dirent=$ac_hdr; break
8111fi
8112
8113done
8114# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8115if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008116 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8117echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008118if test "${ac_cv_search_opendir+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008122cat >conftest.$ac_ext <<_ACEOF
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
8128
Reid Spencera773bd52006-08-04 18:18:08 +00008129/* Override any GCC internal prototype to avoid an error.
8130 Use char because int might match the return type of a GCC
8131 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008132#ifdef __cplusplus
8133extern "C"
8134#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008135char opendir ();
8136int
8137main ()
8138{
Reid Spencera773bd52006-08-04 18:18:08 +00008139return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008140 ;
8141 return 0;
8142}
8143_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008144for ac_lib in '' dir; do
8145 if test -z "$ac_lib"; then
8146 ac_res="none required"
8147 else
8148 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008150 fi
8151 rm -f conftest.$ac_objext conftest$ac_exeext
8152if { (ac_try="$ac_link"
8153case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8156esac
8157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8166 { (case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169esac
8170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008176 { (case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179esac
8180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008185 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008186else
8187 echo "$as_me: failed program was:" >&5
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008190
8191fi
8192
Reid Spencera773bd52006-08-04 18:18:08 +00008193rm -f core conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext
8195 if test "${ac_cv_search_opendir+set}" = set; then
8196 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008197fi
John Criswell7a73b802003-06-30 21:59:07 +00008198done
Reid Spencera773bd52006-08-04 18:18:08 +00008199if test "${ac_cv_search_opendir+set}" = set; then
8200 :
8201else
8202 ac_cv_search_opendir=no
8203fi
8204rm conftest.$ac_ext
8205LIBS=$ac_func_search_save_LIBS
8206fi
8207{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8208echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8209ac_res=$ac_cv_search_opendir
8210if test "$ac_res" != no; then
8211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008212
Reid Spencera773bd52006-08-04 18:18:08 +00008213fi
8214
8215else
8216 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8217echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8218if test "${ac_cv_search_opendir+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220else
8221 ac_func_search_save_LIBS=$LIBS
8222cat >conftest.$ac_ext <<_ACEOF
8223/* confdefs.h. */
8224_ACEOF
8225cat confdefs.h >>conftest.$ac_ext
8226cat >>conftest.$ac_ext <<_ACEOF
8227/* end confdefs.h. */
8228
8229/* Override any GCC internal prototype to avoid an error.
8230 Use char because int might match the return type of a GCC
8231 builtin and then its argument prototype would still apply. */
8232#ifdef __cplusplus
8233extern "C"
8234#endif
8235char opendir ();
8236int
8237main ()
8238{
8239return opendir ();
8240 ;
8241 return 0;
8242}
8243_ACEOF
8244for ac_lib in '' x; do
8245 if test -z "$ac_lib"; then
8246 ac_res="none required"
8247 else
8248 ac_res=-l$ac_lib
8249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8250 fi
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252if { (ac_try="$ac_link"
8253case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256esac
8257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_link") 2>conftest.er1
8259 ac_status=$?
8260 grep -v '^ *+' conftest.er1 >conftest.err
8261 rm -f conftest.er1
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269esac
8270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest$ac_exeext'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279esac
8280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_search_opendir=$ac_res
8286else
8287 echo "$as_me: failed program was:" >&5
8288sed 's/^/| /' conftest.$ac_ext >&5
8289
8290
8291fi
8292
8293rm -f core conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext
8295 if test "${ac_cv_search_opendir+set}" = set; then
8296 break
8297fi
8298done
8299if test "${ac_cv_search_opendir+set}" = set; then
8300 :
8301else
8302 ac_cv_search_opendir=no
8303fi
8304rm conftest.$ac_ext
8305LIBS=$ac_func_search_save_LIBS
8306fi
8307{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8308echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8309ac_res=$ac_cv_search_opendir
8310if test "$ac_res" != no; then
8311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8312
8313fi
8314
8315fi
John Criswell7a73b802003-06-30 21:59:07 +00008316
8317
8318for ac_header in dlfcn.h
8319do
8320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008325 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008326fi
Reid Spencera773bd52006-08-04 18:18:08 +00008327ac_res=`eval echo '${'$as_ac_Header'}'`
8328 { echo "$as_me:$LINENO: result: $ac_res" >&5
8329echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008330else
Brian Gaeke0a621332004-09-08 20:38:05 +00008331 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008332{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008334cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008335/* confdefs.h. */
8336_ACEOF
8337cat confdefs.h >>conftest.$ac_ext
8338cat >>conftest.$ac_ext <<_ACEOF
8339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008340$ac_includes_default
8341#include <$ac_header>
8342_ACEOF
8343rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008344if { (ac_try="$ac_compile"
8345case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348esac
8349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371esac
8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008377 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008378else
8379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008380sed 's/^/| /' conftest.$ac_ext >&5
8381
Reid Spencera773bd52006-08-04 18:18:08 +00008382 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008383fi
Reid Spencera773bd52006-08-04 18:18:08 +00008384
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8387echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008388
8389# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008390{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008392cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
8398#include <$ac_header>
8399_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008400if { (ac_try="$ac_cpp conftest.$ac_ext"
8401case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } >/dev/null; then
8413 if test -s conftest.err; then
8414 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008416 else
8417 ac_cpp_err=
8418 fi
8419else
8420 ac_cpp_err=yes
8421fi
8422if test -z "$ac_cpp_err"; then
8423 ac_header_preproc=yes
8424else
8425 echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428 ac_header_preproc=no
8429fi
Reid Spencera773bd52006-08-04 18:18:08 +00008430
Brian Gaeke0a621332004-09-08 20:38:05 +00008431rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008432{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008434
8435# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8437 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008443 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008444 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008457 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008458## ----------------------------------- ##
8459## Report this to llvmbugs@cs.uiuc.edu ##
8460## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008461_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008462 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008463 ;;
8464esac
Reid Spencera773bd52006-08-04 18:18:08 +00008465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008470 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008471fi
Reid Spencera773bd52006-08-04 18:18:08 +00008472ac_res=`eval echo '${'$as_ac_Header'}'`
8473 { echo "$as_me:$LINENO: result: $ac_res" >&5
8474echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008475
8476fi
John Criswell7a73b802003-06-30 21:59:07 +00008477if test `eval echo '${'$as_ac_Header'}'` = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8480_ACEOF
8481
8482fi
8483
8484done
8485
Reid Spencera773bd52006-08-04 18:18:08 +00008486# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008487if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008488 enableval=$enable_ltdl_install;
8489fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008490
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008491
8492
8493
8494if test x"${enable_ltdl_install-no}" != xno; then
8495 INSTALL_LTDL_TRUE=
8496 INSTALL_LTDL_FALSE='#'
8497else
8498 INSTALL_LTDL_TRUE='#'
8499 INSTALL_LTDL_FALSE=
8500fi
8501
8502
8503
8504if test x"${enable_ltdl_convenience-no}" != xno; then
8505 CONVENIENCE_LTDL_TRUE=
8506 CONVENIENCE_LTDL_FALSE='#'
8507else
8508 CONVENIENCE_LTDL_TRUE='#'
8509 CONVENIENCE_LTDL_FALSE=
8510fi
8511
8512
Reid Spencera773bd52006-08-04 18:18:08 +00008513{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8514echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008515library_names_spec=
8516libname_spec='lib$name'
8517soname_spec=
8518shrext_cmds=".so"
8519postinstall_cmds=
8520postuninstall_cmds=
8521finish_cmds=
8522finish_eval=
8523shlibpath_var=
8524shlibpath_overrides_runpath=unknown
8525version_type=none
8526dynamic_linker="$host_os ld.so"
8527sys_lib_dlsearch_path_spec="/lib /usr/lib"
8528if test "$GCC" = yes; then
8529 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8530 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8531 # if the path contains ";" then we assume it to be the separator
8532 # otherwise default to the standard path separator (i.e. ":") - it is
8533 # assumed that no part of a normal pathname contains ";" but that should
8534 # okay in the real world where ";" in dirpaths is itself problematic.
8535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8536 else
8537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8538 fi
8539else
8540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8541fi
8542need_lib_prefix=unknown
8543hardcode_into_libs=no
8544
8545# when you set need_version to no, make sure it does not cause -set_version
8546# flags to be left without arguments
8547need_version=unknown
8548
8549case $host_os in
8550aix3*)
8551 version_type=linux
8552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8553 shlibpath_var=LIBPATH
8554
8555 # AIX 3 has no versioning support, so we append a major version to the name.
8556 soname_spec='${libname}${release}${shared_ext}$major'
8557 ;;
8558
8559aix4* | aix5*)
8560 version_type=linux
8561 need_lib_prefix=no
8562 need_version=no
8563 hardcode_into_libs=yes
8564 if test "$host_cpu" = ia64; then
8565 # AIX 5 supports IA64
8566 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8567 shlibpath_var=LD_LIBRARY_PATH
8568 else
8569 # With GCC up to 2.95.x, collect2 would create an import file
8570 # for dependence libraries. The import file would start with
8571 # the line `#! .'. This would cause the generated library to
8572 # depend on `.', always an invalid library. This was fixed in
8573 # development snapshots of GCC prior to 3.0.
8574 case $host_os in
8575 aix4 | aix4.[01] | aix4.[01].*)
8576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8577 echo ' yes '
8578 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8579 :
8580 else
8581 can_build_shared=no
8582 fi
8583 ;;
8584 esac
8585 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8586 # soname into executable. Probably we can add versioning support to
8587 # collect2, so additional links can be useful in future.
8588 if test "$aix_use_runtimelinking" = yes; then
8589 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8590 # instead of lib<name>.a to let people know that these are not
8591 # typical AIX shared libraries.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593 else
8594 # We preserve .a as extension for shared libraries through AIX4.2
8595 # and later when we are not doing run time linking.
8596 library_names_spec='${libname}${release}.a $libname.a'
8597 soname_spec='${libname}${release}${shared_ext}$major'
8598 fi
8599 shlibpath_var=LIBPATH
8600 fi
8601 ;;
8602
8603amigaos*)
8604 library_names_spec='$libname.ixlibrary $libname.a'
8605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8606 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'
8607 ;;
8608
8609beos*)
8610 library_names_spec='${libname}${shared_ext}'
8611 dynamic_linker="$host_os ld.so"
8612 shlibpath_var=LIBRARY_PATH
8613 ;;
8614
8615bsdi[45]*)
8616 version_type=linux
8617 need_version=no
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8621 shlibpath_var=LD_LIBRARY_PATH
8622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8624 # the default ld.so.conf also contains /usr/contrib/lib and
8625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8626 # libtool to hard-code these into programs
8627 ;;
8628
8629cygwin* | mingw* | pw32*)
8630 version_type=windows
8631 shrext_cmds=".dll"
8632 need_version=no
8633 need_lib_prefix=no
8634
8635 case $GCC,$host_os in
8636 yes,cygwin* | yes,mingw* | yes,pw32*)
8637 library_names_spec='$libname.dll.a'
8638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8639 postinstall_cmds='base_file=`basename \${file}`~
8640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8641 dldir=$destdir/`dirname \$dlpath`~
8642 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008643 $install_prog $dir/$dlname \$dldir/$dlname~
8644 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8646 dlpath=$dir/\$dldll~
8647 $rm \$dlpath'
8648 shlibpath_overrides_runpath=yes
8649
8650 case $host_os in
8651 cygwin*)
8652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8654 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8655 ;;
8656 mingw*)
8657 # MinGW DLLs use traditional 'lib' prefix
8658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8660 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8661 # It is most probably a Windows format PATH printed by
8662 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8663 # path with ; separators, and with drive letters. We can handle the
8664 # drive letters (cygwin fileutils understands them), so leave them,
8665 # especially as we might pass files found there to a mingw objdump,
8666 # which wouldn't understand a cygwinified path. Ahh.
8667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8668 else
8669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8670 fi
8671 ;;
8672 pw32*)
8673 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008674 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 +00008675 ;;
8676 esac
8677 ;;
8678
8679 *)
8680 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8681 ;;
8682 esac
8683 dynamic_linker='Win32 ld.exe'
8684 # FIXME: first we should search . and the directory the executable is in
8685 shlibpath_var=PATH
8686 ;;
8687
8688darwin* | rhapsody*)
8689 dynamic_linker="$host_os dyld"
8690 version_type=darwin
8691 need_lib_prefix=no
8692 need_version=no
8693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8694 soname_spec='${libname}${release}${major}$shared_ext'
8695 shlibpath_overrides_runpath=yes
8696 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008697 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8699 if test "$GCC" = yes; then
8700 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"`
8701 else
8702 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8703 fi
8704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8705 ;;
8706
8707dgux*)
8708 version_type=linux
8709 need_lib_prefix=no
8710 need_version=no
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 shlibpath_var=LD_LIBRARY_PATH
8714 ;;
8715
8716freebsd1*)
8717 dynamic_linker=no
8718 ;;
8719
8720kfreebsd*-gnu)
8721 version_type=linux
8722 need_lib_prefix=no
8723 need_version=no
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 shlibpath_var=LD_LIBRARY_PATH
8727 shlibpath_overrides_runpath=no
8728 hardcode_into_libs=yes
8729 dynamic_linker='GNU ld.so'
8730 ;;
8731
Reid Spencera773bd52006-08-04 18:18:08 +00008732freebsd* | dragonfly*)
8733 # DragonFly does not have aout. When/if they implement a new
8734 # versioning mechanism, adjust this.
8735 if test -x /usr/bin/objformat; then
8736 objformat=`/usr/bin/objformat`
8737 else
8738 case $host_os in
8739 freebsd[123]*) objformat=aout ;;
8740 *) objformat=elf ;;
8741 esac
8742 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008743 version_type=freebsd-$objformat
8744 case $version_type in
8745 freebsd-elf*)
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8747 need_version=no
8748 need_lib_prefix=no
8749 ;;
8750 freebsd-*)
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8752 need_version=yes
8753 ;;
8754 esac
8755 shlibpath_var=LD_LIBRARY_PATH
8756 case $host_os in
8757 freebsd2*)
8758 shlibpath_overrides_runpath=yes
8759 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008760 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008761 shlibpath_overrides_runpath=yes
8762 hardcode_into_libs=yes
8763 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008766 shlibpath_overrides_runpath=no
8767 hardcode_into_libs=yes
8768 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008769 freebsd*) # from 4.6 on
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8772 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008773 esac
8774 ;;
8775
8776gnu*)
8777 version_type=linux
8778 need_lib_prefix=no
8779 need_version=no
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 hardcode_into_libs=yes
8784 ;;
8785
8786hpux9* | hpux10* | hpux11*)
8787 # Give a soname corresponding to the major version so that dld.sl refuses to
8788 # link against other versions.
8789 version_type=sunos
8790 need_lib_prefix=no
8791 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008792 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008793 ia64*)
8794 shrext_cmds='.so'
8795 hardcode_into_libs=yes
8796 dynamic_linker="$host_os dld.so"
8797 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 if test "X$HPUX_IA64_MODE" = X32; then
8802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8803 else
8804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8805 fi
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807 ;;
8808 hppa*64*)
8809 shrext_cmds='.sl'
8810 hardcode_into_libs=yes
8811 dynamic_linker="$host_os dld.sl"
8812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8818 ;;
8819 *)
8820 shrext_cmds='.sl'
8821 dynamic_linker="$host_os dld.sl"
8822 shlibpath_var=SHLIB_PATH
8823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 ;;
8827 esac
8828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8829 postinstall_cmds='chmod 555 $lib'
8830 ;;
8831
Reid Spencera773bd52006-08-04 18:18:08 +00008832interix3*)
8833 version_type=linux
8834 need_lib_prefix=no
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=no
8841 hardcode_into_libs=yes
8842 ;;
8843
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844irix5* | irix6* | nonstopux*)
8845 case $host_os in
8846 nonstopux*) version_type=nonstopux ;;
8847 *)
8848 if test "$lt_cv_prog_gnu_ld" = yes; then
8849 version_type=linux
8850 else
8851 version_type=irix
8852 fi ;;
8853 esac
8854 need_lib_prefix=no
8855 need_version=no
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8858 case $host_os in
8859 irix5* | nonstopux*)
8860 libsuff= shlibsuff=
8861 ;;
8862 *)
8863 case $LD in # libtool.m4 will add one of these switches to LD
8864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8865 libsuff= shlibsuff= libmagic=32-bit;;
8866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8867 libsuff=32 shlibsuff=N32 libmagic=N32;;
8868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8870 *) libsuff= shlibsuff= libmagic=never-match;;
8871 esac
8872 ;;
8873 esac
8874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8875 shlibpath_overrides_runpath=no
8876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8878 hardcode_into_libs=yes
8879 ;;
8880
8881# No shared lib support for Linux oldld, aout, or coff.
8882linux*oldld* | linux*aout* | linux*coff*)
8883 dynamic_linker=no
8884 ;;
8885
8886# This must be Linux ELF.
8887linux*)
8888 version_type=linux
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=no
8896 # This implies no fast_install, which is unacceptable.
8897 # Some rework will be needed to allow for fast_install
8898 # before this can be enabled.
8899 hardcode_into_libs=yes
8900
8901 # Append ld.so.conf contents to the search path
8902 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008903 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 +00008904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8905 fi
8906
8907 # We used to test for /lib/ld.so.1 and disable shared libraries on
8908 # powerpc, because MkLinux only supported shared libraries with the
8909 # GNU dynamic linker. Since this was broken with cross compilers,
8910 # most powerpc-linux boxes support dynamic linking these days and
8911 # people can always --disable-shared, the test was removed, and we
8912 # assume the GNU/Linux dynamic linker is in use.
8913 dynamic_linker='GNU/Linux ld.so'
8914 ;;
8915
8916knetbsd*-gnu)
8917 version_type=linux
8918 need_lib_prefix=no
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8925 dynamic_linker='GNU ld.so'
8926 ;;
8927
8928netbsd*)
8929 version_type=sunos
8930 need_lib_prefix=no
8931 need_version=no
8932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8935 dynamic_linker='NetBSD (a.out) ld.so'
8936 else
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 dynamic_linker='NetBSD ld.elf_so'
8940 fi
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=yes
8943 hardcode_into_libs=yes
8944 ;;
8945
8946newsos6)
8947 version_type=linux
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes
8951 ;;
8952
8953nto-qnx*)
8954 version_type=linux
8955 need_lib_prefix=no
8956 need_version=no
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 shlibpath_var=LD_LIBRARY_PATH
8960 shlibpath_overrides_runpath=yes
8961 ;;
8962
8963openbsd*)
8964 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008965 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008966 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008967 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8968 case $host_os in
8969 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8970 *) need_version=no ;;
8971 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8976 case $host_os in
8977 openbsd2.[89] | openbsd2.[89].*)
8978 shlibpath_overrides_runpath=no
8979 ;;
8980 *)
8981 shlibpath_overrides_runpath=yes
8982 ;;
8983 esac
8984 else
8985 shlibpath_overrides_runpath=yes
8986 fi
8987 ;;
8988
8989os2*)
8990 libname_spec='$name'
8991 shrext_cmds=".dll"
8992 need_lib_prefix=no
8993 library_names_spec='$libname${shared_ext} $libname.a'
8994 dynamic_linker='OS/2 ld.exe'
8995 shlibpath_var=LIBPATH
8996 ;;
8997
8998osf3* | osf4* | osf5*)
8999 version_type=osf
9000 need_lib_prefix=no
9001 need_version=no
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9006 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9007 ;;
9008
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009009solaris*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 hardcode_into_libs=yes
9018 # ldd complains unless libraries are executable
9019 postinstall_cmds='chmod +x $lib'
9020 ;;
9021
9022sunos4*)
9023 version_type=sunos
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 if test "$with_gnu_ld" = yes; then
9029 need_lib_prefix=no
9030 fi
9031 need_version=yes
9032 ;;
9033
Reid Spencera773bd52006-08-04 18:18:08 +00009034sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009035 version_type=linux
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 case $host_vendor in
9040 sni)
9041 shlibpath_overrides_runpath=no
9042 need_lib_prefix=no
9043 export_dynamic_flag_spec='${wl}-Blargedynsym'
9044 runpath_var=LD_RUN_PATH
9045 ;;
9046 siemens)
9047 need_lib_prefix=no
9048 ;;
9049 motorola)
9050 need_lib_prefix=no
9051 need_version=no
9052 shlibpath_overrides_runpath=no
9053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9054 ;;
9055 esac
9056 ;;
9057
9058sysv4*MP*)
9059 if test -d /usr/nec ;then
9060 version_type=linux
9061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9062 soname_spec='$libname${shared_ext}.$major'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 fi
9065 ;;
9066
Reid Spencera773bd52006-08-04 18:18:08 +00009067sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9068 version_type=freebsd-elf
9069 need_lib_prefix=no
9070 need_version=no
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 hardcode_into_libs=yes
9075 if test "$with_gnu_ld" = yes; then
9076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9077 shlibpath_overrides_runpath=no
9078 else
9079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9080 shlibpath_overrides_runpath=yes
9081 case $host_os in
9082 sco3.2v5*)
9083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9084 ;;
9085 esac
9086 fi
9087 sys_lib_dlsearch_path_spec='/usr/lib'
9088 ;;
9089
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009090uts4*)
9091 version_type=linux
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 ;;
9096
9097*)
9098 dynamic_linker=no
9099 ;;
9100esac
Reid Spencera773bd52006-08-04 18:18:08 +00009101{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9102echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009103test "$dynamic_linker" = no && can_build_shared=no
9104
Reid Spencera773bd52006-08-04 18:18:08 +00009105variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9106if test "$GCC" = yes; then
9107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9108fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009109
Reid Spencera773bd52006-08-04 18:18:08 +00009110
9111{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9112echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009113if test "${libltdl_cv_shlibext+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115else
9116
9117module=yes
9118eval libltdl_cv_shlibext=$shrext_cmds
9119
9120fi
Reid Spencera773bd52006-08-04 18:18:08 +00009121{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9122echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009123if test -n "$libltdl_cv_shlibext"; then
9124
9125cat >>confdefs.h <<_ACEOF
9126#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9127_ACEOF
9128
9129fi
9130
9131
Reid Spencera773bd52006-08-04 18:18:08 +00009132{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9133echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134if test "${libltdl_cv_shlibpath_var+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136else
9137 libltdl_cv_shlibpath_var="$shlibpath_var"
9138fi
Reid Spencera773bd52006-08-04 18:18:08 +00009139{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9140echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009141if test -n "$libltdl_cv_shlibpath_var"; then
9142
9143cat >>confdefs.h <<_ACEOF
9144#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9145_ACEOF
9146
9147fi
9148
9149
Reid Spencera773bd52006-08-04 18:18:08 +00009150{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9151echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009152if test "${libltdl_cv_sys_search_path+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9156fi
Reid Spencera773bd52006-08-04 18:18:08 +00009157{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9158echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009159if test -n "$libltdl_cv_sys_search_path"; then
9160 sys_search_path=
9161 for dir in $libltdl_cv_sys_search_path; do
9162 if test -z "$sys_search_path"; then
9163 sys_search_path="$dir"
9164 else
9165 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9166 fi
9167 done
9168
9169cat >>confdefs.h <<_ACEOF
9170#define LTDL_SYSSEARCHPATH "$sys_search_path"
9171_ACEOF
9172
9173fi
9174
Reid Spencera773bd52006-08-04 18:18:08 +00009175{ echo "$as_me:$LINENO: checking for objdir" >&5
9176echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009177if test "${libltdl_cv_objdir+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179else
9180 libltdl_cv_objdir="$objdir"
9181 if test -n "$objdir"; then
9182 :
9183 else
9184 rm -f .libs 2>/dev/null
9185 mkdir .libs 2>/dev/null
9186 if test -d .libs; then
9187 libltdl_cv_objdir=.libs
9188 else
9189 # MS-DOS does not allow filenames that begin with a dot.
9190 libltdl_cv_objdir=_libs
9191 fi
9192 rmdir .libs 2>/dev/null
9193 fi
9194
9195fi
Reid Spencera773bd52006-08-04 18:18:08 +00009196{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9197echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198
9199cat >>confdefs.h <<_ACEOF
9200#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9201_ACEOF
9202
9203
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204
9205
9206
9207
9208# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009209{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9210echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214
9215# These are sane defaults that work on at least a few old systems.
9216# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9217
9218# Character class describing NM global symbol codes.
9219symcode='[BCDEGRST]'
9220
9221# Regexp to match symbols that can be accessed directly from C.
9222sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9223
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224# Transform an extracted symbol line into a proper C declaration
9225lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9226
9227# Transform an extracted symbol line into symbol name and symbol address
9228lt_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'"
9229
9230# Define system-specific variables.
9231case $host_os in
9232aix*)
9233 symcode='[BCDT]'
9234 ;;
9235cygwin* | mingw* | pw32*)
9236 symcode='[ABCDGISTW]'
9237 ;;
9238hpux*) # Its linker distinguishes data from code symbols
9239 if test "$host_cpu" = ia64; then
9240 symcode='[ABCDEGRST]'
9241 fi
9242 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9243 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'"
9244 ;;
9245linux*)
9246 if test "$host_cpu" = ia64; then
9247 symcode='[ABCDGIRSTW]'
9248 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9249 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'"
9250 fi
9251 ;;
9252irix* | nonstopux*)
9253 symcode='[BCDEGRST]'
9254 ;;
9255osf*)
9256 symcode='[BCDEGQRST]'
9257 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009258solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259 symcode='[BDRT]'
9260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009261sco3.2v5*)
9262 symcode='[DT]'
9263 ;;
9264sysv4.2uw2*)
9265 symcode='[DT]'
9266 ;;
9267sysv5* | sco5v6* | unixware* | OpenUNIX*)
9268 symcode='[ABDT]'
9269 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270sysv4)
9271 symcode='[DFNSTU]'
9272 ;;
9273esac
9274
9275# Handle CRLF in mingw tool chain
9276opt_cr=
9277case $build_os in
9278mingw*)
9279 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9280 ;;
9281esac
9282
9283# If we're using GNU nm, then use its standard symbol codes.
9284case `$NM -V 2>&1` in
9285*GNU* | *'with BFD'*)
9286 symcode='[ABCDGIRSTW]' ;;
9287esac
9288
9289# Try without a prefix undercore, then with it.
9290for ac_symprfx in "" "_"; do
9291
Reid Spencera773bd52006-08-04 18:18:08 +00009292 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9293 symxfrm="\\1 $ac_symprfx\\2 \\2"
9294
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009295 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009296 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 +00009297
9298 # Check to see that the pipe works correctly.
9299 pipe_works=no
9300
9301 rm -f conftest*
9302 cat > conftest.$ac_ext <<EOF
9303#ifdef __cplusplus
9304extern "C" {
9305#endif
9306char nm_test_var;
9307void nm_test_func(){}
9308#ifdef __cplusplus
9309}
9310#endif
9311int main(){nm_test_var='a';nm_test_func();return(0);}
9312EOF
9313
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315 (eval $ac_compile) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; then
9319 # Now try to grab the symbols.
9320 nlist=conftest.nm
9321 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9322 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } && test -s "$nlist"; then
9326 # Try sorting and uniquifying the output.
9327 if sort "$nlist" | uniq > "$nlist"T; then
9328 mv -f "$nlist"T "$nlist"
9329 else
9330 rm -f "$nlist"T
9331 fi
9332
9333 # Make sure that we snagged all the symbols we need.
9334 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9335 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9336 cat <<EOF > conftest.$ac_ext
9337#ifdef __cplusplus
9338extern "C" {
9339#endif
9340
9341EOF
9342 # Now generate the symbol file.
9343 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9344
9345 cat <<EOF >> conftest.$ac_ext
9346#if defined (__STDC__) && __STDC__
9347# define lt_ptr_t void *
9348#else
9349# define lt_ptr_t char *
9350# define const
9351#endif
9352
9353/* The mapping between symbol names and symbols. */
9354const struct {
9355 const char *name;
9356 lt_ptr_t address;
9357}
9358lt_preloaded_symbols[] =
9359{
9360EOF
9361 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9362 cat <<\EOF >> conftest.$ac_ext
9363 {0, (lt_ptr_t) 0}
9364};
9365
9366#ifdef __cplusplus
9367}
9368#endif
9369EOF
9370 # Now try linking the two files.
9371 mv conftest.$ac_objext conftstm.$ac_objext
9372 lt_save_LIBS="$LIBS"
9373 lt_save_CFLAGS="$CFLAGS"
9374 LIBS="conftstm.$ac_objext"
9375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9381 pipe_works=yes
9382 fi
9383 LIBS="$lt_save_LIBS"
9384 CFLAGS="$lt_save_CFLAGS"
9385 else
9386 echo "cannot find nm_test_func in $nlist" >&5
9387 fi
9388 else
9389 echo "cannot find nm_test_var in $nlist" >&5
9390 fi
9391 else
9392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9393 fi
9394 else
9395 echo "$progname: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 fi
9398 rm -f conftest* conftst*
9399
9400 # Do not use the global_symbol_pipe unless it works.
9401 if test "$pipe_works" = yes; then
9402 break
9403 else
9404 lt_cv_sys_global_symbol_pipe=
9405 fi
9406done
9407
9408fi
9409
9410if test -z "$lt_cv_sys_global_symbol_pipe"; then
9411 lt_cv_sys_global_symbol_to_cdecl=
9412fi
9413if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009414 { echo "$as_me:$LINENO: result: failed" >&5
9415echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009416else
Reid Spencera773bd52006-08-04 18:18:08 +00009417 { echo "$as_me:$LINENO: result: ok" >&5
9418echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009419fi
9420
9421
Reid Spencera773bd52006-08-04 18:18:08 +00009422{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9423echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009424if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426else
9427 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9428 libltdl_cv_preloaded_symbols=yes
9429 else
9430 libltdl_cv_preloaded_symbols=no
9431 fi
9432
9433fi
Reid Spencera773bd52006-08-04 18:18:08 +00009434{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9435echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9437
9438cat >>confdefs.h <<\_ACEOF
9439#define HAVE_PRELOADED_SYMBOLS 1
9440_ACEOF
9441
9442fi
9443
9444LIBADD_DL=
9445
9446ac_ext=c
9447ac_cpp='$CPP $CPPFLAGS'
9448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9450ac_compiler_gnu=$ac_cv_c_compiler_gnu
9451
9452
Reid Spencera773bd52006-08-04 18:18:08 +00009453{ echo "$as_me:$LINENO: checking for shl_load" >&5
9454echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009455if test "${ac_cv_func_shl_load+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457else
9458 cat >conftest.$ac_ext <<_ACEOF
9459/* confdefs.h. */
9460_ACEOF
9461cat confdefs.h >>conftest.$ac_ext
9462cat >>conftest.$ac_ext <<_ACEOF
9463/* end confdefs.h. */
9464/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9466#define shl_load innocuous_shl_load
9467
9468/* System header to define __stub macros and hopefully few prototypes,
9469 which can conflict with char shl_load (); below.
9470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471 <limits.h> exists even on freestanding compilers. */
9472
9473#ifdef __STDC__
9474# include <limits.h>
9475#else
9476# include <assert.h>
9477#endif
9478
9479#undef shl_load
9480
Reid Spencera773bd52006-08-04 18:18:08 +00009481/* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484#ifdef __cplusplus
9485extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009486#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487char shl_load ();
9488/* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009491#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009492choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493#endif
9494
9495int
9496main ()
9497{
Reid Spencera773bd52006-08-04 18:18:08 +00009498return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499 ;
9500 return 0;
9501}
9502_ACEOF
9503rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009504if { (ac_try="$ac_link"
9505case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508esac
9509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9518 { (case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521esac
9522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009528 { (case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531esac
9532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_func_shl_load=yes
9538else
9539 echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
Reid Spencera773bd52006-08-04 18:18:08 +00009542 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009543fi
Reid Spencera773bd52006-08-04 18:18:08 +00009544
9545rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009546 conftest$ac_exeext conftest.$ac_ext
9547fi
Reid Spencera773bd52006-08-04 18:18:08 +00009548{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9549echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550if test $ac_cv_func_shl_load = yes; then
9551
9552cat >>confdefs.h <<\_ACEOF
9553#define HAVE_SHL_LOAD 1
9554_ACEOF
9555
9556else
Reid Spencera773bd52006-08-04 18:18:08 +00009557 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9558echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561else
9562 ac_check_lib_save_LIBS=$LIBS
9563LIBS="-ldld $LIBS"
9564cat >conftest.$ac_ext <<_ACEOF
9565/* confdefs.h. */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h. */
9570
Reid Spencera773bd52006-08-04 18:18:08 +00009571/* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009574#ifdef __cplusplus
9575extern "C"
9576#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577char shl_load ();
9578int
9579main ()
9580{
Reid Spencera773bd52006-08-04 18:18:08 +00009581return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582 ;
9583 return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009587if { (ac_try="$ac_link"
9588case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591esac
9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9601 { (case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9604esac
9605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; } &&
9610 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009611 { (case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614esac
9615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 ac_cv_lib_dld_shl_load=yes
9621else
9622 echo "$as_me: failed program was:" >&5
9623sed 's/^/| /' conftest.$ac_ext >&5
9624
Reid Spencera773bd52006-08-04 18:18:08 +00009625 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626fi
Reid Spencera773bd52006-08-04 18:18:08 +00009627
9628rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009629 conftest$ac_exeext conftest.$ac_ext
9630LIBS=$ac_check_lib_save_LIBS
9631fi
Reid Spencera773bd52006-08-04 18:18:08 +00009632{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9633echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634if test $ac_cv_lib_dld_shl_load = yes; then
9635
9636cat >>confdefs.h <<\_ACEOF
9637#define HAVE_SHL_LOAD 1
9638_ACEOF
9639
9640 LIBADD_DL="$LIBADD_DL -ldld"
9641else
Reid Spencera773bd52006-08-04 18:18:08 +00009642 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9643echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646else
9647 ac_check_lib_save_LIBS=$LIBS
9648LIBS="-ldl $LIBS"
9649cat >conftest.$ac_ext <<_ACEOF
9650/* confdefs.h. */
9651_ACEOF
9652cat confdefs.h >>conftest.$ac_ext
9653cat >>conftest.$ac_ext <<_ACEOF
9654/* end confdefs.h. */
9655
Reid Spencera773bd52006-08-04 18:18:08 +00009656/* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009659#ifdef __cplusplus
9660extern "C"
9661#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009662char dlopen ();
9663int
9664main ()
9665{
Reid Spencera773bd52006-08-04 18:18:08 +00009666return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667 ;
9668 return 0;
9669}
9670_ACEOF
9671rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009672if { (ac_try="$ac_link"
9673case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676esac
9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699esac
9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_lib_dl_dlopen=yes
9706else
9707 echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
Reid Spencera773bd52006-08-04 18:18:08 +00009710 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711fi
Reid Spencera773bd52006-08-04 18:18:08 +00009712
9713rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009714 conftest$ac_exeext conftest.$ac_ext
9715LIBS=$ac_check_lib_save_LIBS
9716fi
Reid Spencera773bd52006-08-04 18:18:08 +00009717{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009719if test $ac_cv_lib_dl_dlopen = yes; then
9720
9721cat >>confdefs.h <<\_ACEOF
9722#define HAVE_LIBDL 1
9723_ACEOF
9724
9725 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9726else
9727 cat >conftest.$ac_ext <<_ACEOF
9728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
9733#if HAVE_DLFCN_H
9734# include <dlfcn.h>
9735#endif
9736
9737int
9738main ()
9739{
9740dlopen(0, 0);
9741 ;
9742 return 0;
9743}
9744_ACEOF
9745rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009746if { (ac_try="$ac_link"
9747case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750esac
9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9760 { (case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763esac
9764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009770 { (case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773esac
9774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779
9780cat >>confdefs.h <<\_ACEOF
9781#define HAVE_LIBDL 1
9782_ACEOF
9783 libltdl_cv_func_dlopen="yes"
9784else
9785 echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
Reid Spencera773bd52006-08-04 18:18:08 +00009788 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9789echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792else
9793 ac_check_lib_save_LIBS=$LIBS
9794LIBS="-lsvld $LIBS"
9795cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h. */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h. */
9801
Reid Spencera773bd52006-08-04 18:18:08 +00009802/* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009805#ifdef __cplusplus
9806extern "C"
9807#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808char dlopen ();
9809int
9810main ()
9811{
Reid Spencera773bd52006-08-04 18:18:08 +00009812return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813 ;
9814 return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009818if { (ac_try="$ac_link"
9819case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_lib_svld_dlopen=yes
9852else
9853 echo "$as_me: failed program was:" >&5
9854sed 's/^/| /' conftest.$ac_ext >&5
9855
Reid Spencera773bd52006-08-04 18:18:08 +00009856 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857fi
Reid Spencera773bd52006-08-04 18:18:08 +00009858
9859rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860 conftest$ac_exeext conftest.$ac_ext
9861LIBS=$ac_check_lib_save_LIBS
9862fi
Reid Spencera773bd52006-08-04 18:18:08 +00009863{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9864echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865if test $ac_cv_lib_svld_dlopen = yes; then
9866
9867cat >>confdefs.h <<\_ACEOF
9868#define HAVE_LIBDL 1
9869_ACEOF
9870
9871 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9872else
Reid Spencera773bd52006-08-04 18:18:08 +00009873 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9874echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878 ac_check_lib_save_LIBS=$LIBS
9879LIBS="-ldld $LIBS"
9880cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886
Reid Spencera773bd52006-08-04 18:18:08 +00009887/* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890#ifdef __cplusplus
9891extern "C"
9892#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893char dld_link ();
9894int
9895main ()
9896{
Reid Spencera773bd52006-08-04 18:18:08 +00009897return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898 ;
9899 return 0;
9900}
9901_ACEOF
9902rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009903if { (ac_try="$ac_link"
9904case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930esac
9931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_lib_dld_dld_link=yes
9937else
9938 echo "$as_me: failed program was:" >&5
9939sed 's/^/| /' conftest.$ac_ext >&5
9940
Reid Spencera773bd52006-08-04 18:18:08 +00009941 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942fi
Reid Spencera773bd52006-08-04 18:18:08 +00009943
9944rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945 conftest$ac_exeext conftest.$ac_ext
9946LIBS=$ac_check_lib_save_LIBS
9947fi
Reid Spencera773bd52006-08-04 18:18:08 +00009948{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9949echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950if test $ac_cv_lib_dld_dld_link = yes; then
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define HAVE_DLD 1
9954_ACEOF
9955
9956 LIBADD_DL="$LIBADD_DL -ldld"
9957else
Reid Spencera773bd52006-08-04 18:18:08 +00009958 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9959echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963 cat >conftest.$ac_ext <<_ACEOF
9964/* confdefs.h. */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h. */
9969/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9971#define _dyld_func_lookup innocuous__dyld_func_lookup
9972
9973/* System header to define __stub macros and hopefully few prototypes,
9974 which can conflict with char _dyld_func_lookup (); below.
9975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9976 <limits.h> exists even on freestanding compilers. */
9977
9978#ifdef __STDC__
9979# include <limits.h>
9980#else
9981# include <assert.h>
9982#endif
9983
9984#undef _dyld_func_lookup
9985
Reid Spencera773bd52006-08-04 18:18:08 +00009986/* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989#ifdef __cplusplus
9990extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992char _dyld_func_lookup ();
9993/* The GNU C library defines this for functions which it implements
9994 to always fail with ENOSYS. Some functions are actually named
9995 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009996#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998#endif
9999
10000int
10001main ()
10002{
Reid Spencera773bd52006-08-04 18:18:08 +000010003return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004 ;
10005 return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010009if { (ac_try="$ac_link"
10010case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10013esac
10014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023 { (case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010033 { (case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10036esac
10037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_func__dyld_func_lookup=yes
10043else
10044 echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
Reid Spencera773bd52006-08-04 18:18:08 +000010047 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048fi
Reid Spencera773bd52006-08-04 18:18:08 +000010049
10050rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010051 conftest$ac_exeext conftest.$ac_ext
10052fi
Reid Spencera773bd52006-08-04 18:18:08 +000010053{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10054echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055if test $ac_cv_func__dyld_func_lookup = yes; then
10056
10057cat >>confdefs.h <<\_ACEOF
10058#define HAVE_DYLD 1
10059_ACEOF
10060
10061fi
10062
10063
10064fi
10065
10066
10067fi
10068
10069
10070fi
Reid Spencera773bd52006-08-04 18:18:08 +000010071
10072rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073 conftest$ac_exeext conftest.$ac_ext
10074
10075fi
10076
10077
10078fi
10079
10080
10081fi
10082
10083
10084if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10085then
10086 lt_save_LIBS="$LIBS"
10087 LIBS="$LIBS $LIBADD_DL"
10088
10089for ac_func in dlerror
10090do
10091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010092{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10094if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
10097 cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h. */
10103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105#define $ac_func innocuous_$ac_func
10106
10107/* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char $ac_func (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
10111
10112#ifdef __STDC__
10113# include <limits.h>
10114#else
10115# include <assert.h>
10116#endif
10117
10118#undef $ac_func
10119
Reid Spencera773bd52006-08-04 18:18:08 +000010120/* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123#ifdef __cplusplus
10124extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010125#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126char $ac_func ();
10127/* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010130#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132#endif
10133
10134int
10135main ()
10136{
Reid Spencera773bd52006-08-04 18:18:08 +000010137return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138 ;
10139 return 0;
10140}
10141_ACEOF
10142rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010143if { (ac_try="$ac_link"
10144case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150 ac_status=$?
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170esac
10171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 eval "$as_ac_var=yes"
10177else
10178 echo "$as_me: failed program was:" >&5
10179sed 's/^/| /' conftest.$ac_ext >&5
10180
Reid Spencera773bd52006-08-04 18:18:08 +000010181 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182fi
Reid Spencera773bd52006-08-04 18:18:08 +000010183
10184rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185 conftest$ac_exeext conftest.$ac_ext
10186fi
Reid Spencera773bd52006-08-04 18:18:08 +000010187ac_res=`eval echo '${'$as_ac_var'}'`
10188 { echo "$as_me:$LINENO: result: $ac_res" >&5
10189echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190if test `eval echo '${'$as_ac_var'}'` = yes; then
10191 cat >>confdefs.h <<_ACEOF
10192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10193_ACEOF
10194
10195fi
10196done
10197
10198 LIBS="$lt_save_LIBS"
10199fi
10200ac_ext=c
10201ac_cpp='$CPP $CPPFLAGS'
10202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10204ac_compiler_gnu=$ac_cv_c_compiler_gnu
10205
10206
10207
Reid Spencera773bd52006-08-04 18:18:08 +000010208{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10209echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212else
10213 ac_cv_sys_symbol_underscore=no
10214 cat > conftest.$ac_ext <<EOF
10215void nm_test_func(){}
10216int main(){nm_test_func;return 0;}
10217EOF
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; then
10223 # Now try to grab the symbols.
10224 ac_nlist=conftest.nm
10225 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10226 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && test -s "$ac_nlist"; then
10230 # See whether the symbols have a leading underscore.
10231 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10232 ac_cv_sys_symbol_underscore=yes
10233 else
10234 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10235 :
10236 else
10237 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10238 fi
10239 fi
10240 else
10241 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10242 fi
10243 else
10244 echo "configure: failed program was:" >&5
10245 cat conftest.c >&5
10246 fi
10247 rm -rf conftest*
10248
10249fi
Reid Spencera773bd52006-08-04 18:18:08 +000010250{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10251echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010252
10253
10254if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10255 if test x"$libltdl_cv_func_dlopen" = xyes ||
10256 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010257 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10258echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259if test "${libltdl_cv_need_uscore+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10261else
10262 libltdl_cv_need_uscore=unknown
10263 save_LIBS="$LIBS"
10264 LIBS="$LIBS $LIBADD_DL"
10265 if test "$cross_compiling" = yes; then :
10266 libltdl_cv_need_uscore=cross
10267else
10268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10269 lt_status=$lt_dlunknown
10270 cat > conftest.$ac_ext <<EOF
Reid Spencer6ccd01a2006-08-22 22:21:38 +000010271#line 10271 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272#include "confdefs.h"
10273
10274#if HAVE_DLFCN_H
10275#include <dlfcn.h>
10276#endif
10277
10278#include <stdio.h>
10279
10280#ifdef RTLD_GLOBAL
10281# define LT_DLGLOBAL RTLD_GLOBAL
10282#else
10283# ifdef DL_GLOBAL
10284# define LT_DLGLOBAL DL_GLOBAL
10285# else
10286# define LT_DLGLOBAL 0
10287# endif
10288#endif
10289
10290/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10291 find out it does not work in some platform. */
10292#ifndef LT_DLLAZY_OR_NOW
10293# ifdef RTLD_LAZY
10294# define LT_DLLAZY_OR_NOW RTLD_LAZY
10295# else
10296# ifdef DL_LAZY
10297# define LT_DLLAZY_OR_NOW DL_LAZY
10298# else
10299# ifdef RTLD_NOW
10300# define LT_DLLAZY_OR_NOW RTLD_NOW
10301# else
10302# ifdef DL_NOW
10303# define LT_DLLAZY_OR_NOW DL_NOW
10304# else
10305# define LT_DLLAZY_OR_NOW 0
10306# endif
10307# endif
10308# endif
10309# endif
10310#endif
10311
10312#ifdef __cplusplus
10313extern "C" void exit (int);
10314#endif
10315
10316void fnord() { int i=42;}
10317int main ()
10318{
10319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10320 int status = $lt_dlunknown;
10321
10322 if (self)
10323 {
10324 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10325 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10326 /* dlclose (self); */
10327 }
Reid Spencera773bd52006-08-04 18:18:08 +000010328 else
10329 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330
10331 exit (status);
10332}
10333EOF
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335 (eval $ac_link) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010339 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010340 lt_status=$?
10341 case x$lt_status in
10342 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10343 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010344 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345 esac
10346 else :
10347 # compilation failed
10348
10349 fi
10350fi
10351rm -fr conftest*
10352
10353 LIBS="$save_LIBS"
10354
10355fi
Reid Spencera773bd52006-08-04 18:18:08 +000010356{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10357echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358 fi
10359fi
10360
10361if test x"$libltdl_cv_need_uscore" = xyes; then
10362
10363cat >>confdefs.h <<\_ACEOF
10364#define NEED_USCORE 1
10365_ACEOF
10366
10367fi
10368
10369
Reid Spencera773bd52006-08-04 18:18:08 +000010370{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10371echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374else
10375 # PORTME does your system automatically load deplibs for dlopen?
10376 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10377 # For now, we just catch OSes we know something about -- in the
10378 # future, we'll try test this programmatically.
10379 libltdl_cv_sys_dlopen_deplibs=unknown
10380 case "$host_os" in
10381 aix3*|aix4.1.*|aix4.2.*)
10382 # Unknown whether this is true for these versions of AIX, but
10383 # we want this `case' here to explicitly catch those versions.
10384 libltdl_cv_sys_dlopen_deplibs=unknown
10385 ;;
10386 aix[45]*)
10387 libltdl_cv_sys_dlopen_deplibs=yes
10388 ;;
10389 darwin*)
10390 # Assuming the user has installed a libdl from somewhere, this is true
10391 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10392 libltdl_cv_sys_dlopen_deplibs=yes
10393 ;;
10394 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10395 # GNU and its variants, using gnu ld.so (Glibc)
10396 libltdl_cv_sys_dlopen_deplibs=yes
10397 ;;
10398 hpux10*|hpux11*)
10399 libltdl_cv_sys_dlopen_deplibs=yes
10400 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010401 interix*)
10402 libltdl_cv_sys_dlopen_deplibs=yes
10403 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 irix[12345]*|irix6.[01]*)
10405 # Catch all versions of IRIX before 6.2, and indicate that we don't
10406 # know how it worked for any of those versions.
10407 libltdl_cv_sys_dlopen_deplibs=unknown
10408 ;;
10409 irix*)
10410 # The case above catches anything before 6.2, and it's known that
10411 # at 6.2 and later dlopen does load deplibs.
10412 libltdl_cv_sys_dlopen_deplibs=yes
10413 ;;
10414 netbsd*)
10415 libltdl_cv_sys_dlopen_deplibs=yes
10416 ;;
10417 openbsd*)
10418 libltdl_cv_sys_dlopen_deplibs=yes
10419 ;;
10420 osf[1234]*)
10421 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10422 # it did *not* use an RPATH in a shared library to find objects the
10423 # library depends on, so we explictly say `no'.
10424 libltdl_cv_sys_dlopen_deplibs=no
10425 ;;
10426 osf5.0|osf5.0a|osf5.1)
10427 # dlopen *does* load deplibs and with the right loader patch applied
10428 # it even uses RPATH in a shared library to search for shared objects
10429 # that the library depends on, but there's no easy way to know if that
10430 # patch is installed. Since this is the case, all we can really
10431 # say is unknown -- it depends on the patch being installed. If
10432 # it is, this changes to `yes'. Without it, it would be `no'.
10433 libltdl_cv_sys_dlopen_deplibs=unknown
10434 ;;
10435 osf*)
10436 # the two cases above should catch all versions of osf <= 5.1. Read
10437 # the comments above for what we know about them.
10438 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10439 # is used to find them so we can finally say `yes'.
10440 libltdl_cv_sys_dlopen_deplibs=yes
10441 ;;
10442 solaris*)
10443 libltdl_cv_sys_dlopen_deplibs=yes
10444 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10446 libltdl_cv_sys_dlopen_deplibs=yes
10447 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448 esac
10449
10450fi
Reid Spencera773bd52006-08-04 18:18:08 +000010451{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10452echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10454
10455cat >>confdefs.h <<\_ACEOF
10456#define LTDL_DLOPEN_DEPLIBS 1
10457_ACEOF
10458
10459fi
10460
10461
10462for ac_header in argz.h
10463do
10464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470fi
Reid Spencera773bd52006-08-04 18:18:08 +000010471ac_res=`eval echo '${'$as_ac_Header'}'`
10472 { echo "$as_me:$LINENO: result: $ac_res" >&5
10473echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474else
10475 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478cat >conftest.$ac_ext <<_ACEOF
10479/* confdefs.h. */
10480_ACEOF
10481cat confdefs.h >>conftest.$ac_ext
10482cat >>conftest.$ac_ext <<_ACEOF
10483/* end confdefs.h. */
10484$ac_includes_default
10485#include <$ac_header>
10486_ACEOF
10487rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010488if { (ac_try="$ac_compile"
10489case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492esac
10493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502 { (case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505esac
10506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
10516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_header_compiler=yes
10522else
10523 echo "$as_me: failed program was:" >&5
10524sed 's/^/| /' conftest.$ac_ext >&5
10525
Reid Spencera773bd52006-08-04 18:18:08 +000010526 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527fi
Reid Spencera773bd52006-08-04 18:18:08 +000010528
10529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532
10533# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010534{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h. */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h. */
10542#include <$ac_header>
10543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010544if { (ac_try="$ac_cpp conftest.$ac_ext"
10545case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548esac
10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } >/dev/null; then
10557 if test -s conftest.err; then
10558 ac_cpp_err=$ac_c_preproc_warn_flag
10559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10560 else
10561 ac_cpp_err=
10562 fi
10563else
10564 ac_cpp_err=yes
10565fi
10566if test -z "$ac_cpp_err"; then
10567 ac_header_preproc=yes
10568else
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 ac_header_preproc=no
10573fi
Reid Spencera773bd52006-08-04 18:18:08 +000010574
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010578
10579# So? What about this header?
10580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10581 yes:no: )
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc=yes
10587 ;;
10588 no:yes:* )
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010601 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602## ----------------------------------- ##
10603## Report this to llvmbugs@cs.uiuc.edu ##
10604## ----------------------------------- ##
10605_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010606 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607 ;;
10608esac
Reid Spencera773bd52006-08-04 18:18:08 +000010609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613else
10614 eval "$as_ac_Header=\$ac_header_preproc"
10615fi
Reid Spencera773bd52006-08-04 18:18:08 +000010616ac_res=`eval echo '${'$as_ac_Header'}'`
10617 { echo "$as_me:$LINENO: result: $ac_res" >&5
10618echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619
10620fi
10621if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622 cat >>confdefs.h <<_ACEOF
10623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10624_ACEOF
10625
10626fi
10627
10628done
10629
10630
Reid Spencera773bd52006-08-04 18:18:08 +000010631{ echo "$as_me:$LINENO: checking for error_t" >&5
10632echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633if test "${ac_cv_type_error_t+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635else
10636 cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h. */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */
10642#if HAVE_ARGZ_H
10643# include <argz.h>
10644#endif
10645
Reid Spencera773bd52006-08-04 18:18:08 +000010646typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647int
10648main ()
10649{
Reid Spencera773bd52006-08-04 18:18:08 +000010650if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010652if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010653 return 0;
10654 ;
10655 return 0;
10656}
10657_ACEOF
10658rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010659if { (ac_try="$ac_compile"
10660case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10663esac
10664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676esac
10677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010683 { (case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
10687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_type_error_t=yes
10693else
10694 echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
Reid Spencera773bd52006-08-04 18:18:08 +000010697 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010698fi
Reid Spencera773bd52006-08-04 18:18:08 +000010699
10700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701fi
Reid Spencera773bd52006-08-04 18:18:08 +000010702{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10703echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010704if test $ac_cv_type_error_t = yes; then
10705
10706cat >>confdefs.h <<_ACEOF
10707#define HAVE_ERROR_T 1
10708_ACEOF
10709
10710
10711else
10712
10713cat >>confdefs.h <<\_ACEOF
10714#define error_t int
10715_ACEOF
10716
10717fi
10718
10719
10720
10721
10722
10723
10724
10725for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10726do
10727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010728{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731 echo $ECHO_N "(cached) $ECHO_C" >&6
10732else
10733 cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h. */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h. */
10739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10741#define $ac_func innocuous_$ac_func
10742
10743/* System header to define __stub macros and hopefully few prototypes,
10744 which can conflict with char $ac_func (); below.
10745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746 <limits.h> exists even on freestanding compilers. */
10747
10748#ifdef __STDC__
10749# include <limits.h>
10750#else
10751# include <assert.h>
10752#endif
10753
10754#undef $ac_func
10755
Reid Spencera773bd52006-08-04 18:18:08 +000010756/* Override any GCC internal prototype to avoid an error.
10757 Use char because int might match the return type of a GCC
10758 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759#ifdef __cplusplus
10760extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762char $ac_func ();
10763/* The GNU C library defines this for functions which it implements
10764 to always fail with ENOSYS. Some functions are actually named
10765 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010766#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010767choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768#endif
10769
10770int
10771main ()
10772{
Reid Spencera773bd52006-08-04 18:18:08 +000010773return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010774 ;
10775 return 0;
10776}
10777_ACEOF
10778rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010779if { (ac_try="$ac_link"
10780case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783esac
10784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10793 { (case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796esac
10797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; } &&
10802 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010803 { (case "(($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_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 eval "$as_ac_var=yes"
10813else
10814 echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
10816
Reid Spencera773bd52006-08-04 18:18:08 +000010817 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818fi
Reid Spencera773bd52006-08-04 18:18:08 +000010819
10820rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821 conftest$ac_exeext conftest.$ac_ext
10822fi
Reid Spencera773bd52006-08-04 18:18:08 +000010823ac_res=`eval echo '${'$as_ac_var'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010826if test `eval echo '${'$as_ac_var'}'` = yes; then
10827 cat >>confdefs.h <<_ACEOF
10828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10829_ACEOF
10830
10831fi
10832done
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10862 stdio.h unistd.h
10863do
10864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870fi
Reid Spencera773bd52006-08-04 18:18:08 +000010871ac_res=`eval echo '${'$as_ac_Header'}'`
10872 { echo "$as_me:$LINENO: result: $ac_res" >&5
10873echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874else
10875 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010876{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010878cat >conftest.$ac_ext <<_ACEOF
10879/* confdefs.h. */
10880_ACEOF
10881cat confdefs.h >>conftest.$ac_ext
10882cat >>conftest.$ac_ext <<_ACEOF
10883/* end confdefs.h. */
10884$ac_includes_default
10885#include <$ac_header>
10886_ACEOF
10887rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010888if { (ac_try="$ac_compile"
10889case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892esac
10893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905esac
10906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_header_compiler=yes
10922else
10923 echo "$as_me: failed program was:" >&5
10924sed 's/^/| /' conftest.$ac_ext >&5
10925
Reid Spencera773bd52006-08-04 18:18:08 +000010926 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927fi
Reid Spencera773bd52006-08-04 18:18:08 +000010928
10929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10931echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932
10933# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010934{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10935echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936cat >conftest.$ac_ext <<_ACEOF
10937/* confdefs.h. */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h. */
10942#include <$ac_header>
10943_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010944if { (ac_try="$ac_cpp conftest.$ac_ext"
10945case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } >/dev/null; then
10957 if test -s conftest.err; then
10958 ac_cpp_err=$ac_c_preproc_warn_flag
10959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10960 else
10961 ac_cpp_err=
10962 fi
10963else
10964 ac_cpp_err=yes
10965fi
10966if test -z "$ac_cpp_err"; then
10967 ac_header_preproc=yes
10968else
10969 echo "$as_me: failed program was:" >&5
10970sed 's/^/| /' conftest.$ac_ext >&5
10971
10972 ac_header_preproc=no
10973fi
Reid Spencera773bd52006-08-04 18:18:08 +000010974
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010976{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10977echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978
10979# So? What about this header?
10980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10981 yes:no: )
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10983echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10985echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10986 ac_header_preproc=yes
10987 ;;
10988 no:yes:* )
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10990echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10992echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10994echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10996echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11000echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011001 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011002## ----------------------------------- ##
11003## Report this to llvmbugs@cs.uiuc.edu ##
11004## ----------------------------------- ##
11005_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011006 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007 ;;
11008esac
Reid Spencera773bd52006-08-04 18:18:08 +000011009{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 eval "$as_ac_Header=\$ac_header_preproc"
11015fi
Reid Spencera773bd52006-08-04 18:18:08 +000011016ac_res=`eval echo '${'$as_ac_Header'}'`
11017 { echo "$as_me:$LINENO: result: $ac_res" >&5
11018echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019
11020fi
11021if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11024_ACEOF
11025
11026fi
11027
11028done
11029
11030
11031
11032
11033
11034for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11035do
11036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042fi
Reid Spencera773bd52006-08-04 18:18:08 +000011043ac_res=`eval echo '${'$as_ac_Header'}'`
11044 { echo "$as_me:$LINENO: result: $ac_res" >&5
11045echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046else
11047 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011048{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050cat >conftest.$ac_ext <<_ACEOF
11051/* confdefs.h. */
11052_ACEOF
11053cat confdefs.h >>conftest.$ac_ext
11054cat >>conftest.$ac_ext <<_ACEOF
11055/* end confdefs.h. */
11056$ac_includes_default
11057#include <$ac_header>
11058_ACEOF
11059rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011060if { (ac_try="$ac_compile"
11061case "(($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_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11074 { (case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077esac
11078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011084 { (case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087esac
11088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
11093 ac_header_compiler=yes
11094else
11095 echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
Reid Spencera773bd52006-08-04 18:18:08 +000011098 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099fi
Reid Spencera773bd52006-08-04 18:18:08 +000011100
11101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11103echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104
11105# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011106{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11107echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114#include <$ac_header>
11115_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011116if { (ac_try="$ac_cpp conftest.$ac_ext"
11117case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120esac
11121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } >/dev/null; then
11129 if test -s conftest.err; then
11130 ac_cpp_err=$ac_c_preproc_warn_flag
11131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11132 else
11133 ac_cpp_err=
11134 fi
11135else
11136 ac_cpp_err=yes
11137fi
11138if test -z "$ac_cpp_err"; then
11139 ac_header_preproc=yes
11140else
11141 echo "$as_me: failed program was:" >&5
11142sed 's/^/| /' conftest.$ac_ext >&5
11143
11144 ac_header_preproc=no
11145fi
Reid Spencera773bd52006-08-04 18:18:08 +000011146
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011148{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11149echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150
11151# So? What about this header?
11152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11153 yes:no: )
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11158 ac_header_preproc=yes
11159 ;;
11160 no:yes:* )
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11168echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011173 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011174## ----------------------------------- ##
11175## Report this to llvmbugs@cs.uiuc.edu ##
11176## ----------------------------------- ##
11177_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011178 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179 ;;
11180esac
Reid Spencera773bd52006-08-04 18:18:08 +000011181{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185else
11186 eval "$as_ac_Header=\$ac_header_preproc"
11187fi
Reid Spencera773bd52006-08-04 18:18:08 +000011188ac_res=`eval echo '${'$as_ac_Header'}'`
11189 { echo "$as_me:$LINENO: result: $ac_res" >&5
11190echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191
11192fi
11193if test `eval echo '${'$as_ac_Header'}'` = yes; then
11194 cat >>confdefs.h <<_ACEOF
11195#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11196_ACEOF
11197
11198fi
11199
11200done
11201
11202
11203
11204for ac_header in string.h strings.h
11205do
11206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212fi
Reid Spencera773bd52006-08-04 18:18:08 +000011213ac_res=`eval echo '${'$as_ac_Header'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216else
11217 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011218{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226$ac_includes_default
11227#include <$ac_header>
11228_ACEOF
11229rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011230if { (ac_try="$ac_compile"
11231case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234esac
11235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244 { (case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247esac
11248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; } &&
11253 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011254 { (case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_header_compiler=yes
11264else
11265 echo "$as_me: failed program was:" >&5
11266sed 's/^/| /' conftest.$ac_ext >&5
11267
Reid Spencera773bd52006-08-04 18:18:08 +000011268 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269fi
Reid Spencera773bd52006-08-04 18:18:08 +000011270
11271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11273echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274
11275# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011276{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278cat >conftest.$ac_ext <<_ACEOF
11279/* confdefs.h. */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h. */
11284#include <$ac_header>
11285_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011286if { (ac_try="$ac_cpp conftest.$ac_ext"
11287case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } >/dev/null; then
11299 if test -s conftest.err; then
11300 ac_cpp_err=$ac_c_preproc_warn_flag
11301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11302 else
11303 ac_cpp_err=
11304 fi
11305else
11306 ac_cpp_err=yes
11307fi
11308if test -z "$ac_cpp_err"; then
11309 ac_header_preproc=yes
11310else
11311 echo "$as_me: failed program was:" >&5
11312sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 ac_header_preproc=no
11315fi
Reid Spencera773bd52006-08-04 18:18:08 +000011316
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011318{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320
11321# So? What about this header?
11322case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323 yes:no: )
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11329 ;;
11330 no:yes:* )
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11334echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11338echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011343 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011344## ----------------------------------- ##
11345## Report this to llvmbugs@cs.uiuc.edu ##
11346## ----------------------------------- ##
11347_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011348 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349 ;;
11350esac
Reid Spencera773bd52006-08-04 18:18:08 +000011351{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355else
11356 eval "$as_ac_Header=\$ac_header_preproc"
11357fi
Reid Spencera773bd52006-08-04 18:18:08 +000011358ac_res=`eval echo '${'$as_ac_Header'}'`
11359 { echo "$as_me:$LINENO: result: $ac_res" >&5
11360echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361
11362fi
11363if test `eval echo '${'$as_ac_Header'}'` = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11366_ACEOF
11367 break
11368fi
11369
11370done
11371
11372
11373
11374
11375for ac_func in strchr index
11376do
11377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011378{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11380if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382else
11383 cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
11389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11391#define $ac_func innocuous_$ac_func
11392
11393/* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func (); below.
11395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11396 <limits.h> exists even on freestanding compilers. */
11397
11398#ifdef __STDC__
11399# include <limits.h>
11400#else
11401# include <assert.h>
11402#endif
11403
11404#undef $ac_func
11405
Reid Spencera773bd52006-08-04 18:18:08 +000011406/* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011409#ifdef __cplusplus
11410extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412char $ac_func ();
11413/* The GNU C library defines this for functions which it implements
11414 to always fail with ENOSYS. Some functions are actually named
11415 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011416#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011417choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418#endif
11419
11420int
11421main ()
11422{
Reid Spencera773bd52006-08-04 18:18:08 +000011423return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424 ;
11425 return 0;
11426}
11427_ACEOF
11428rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011429if { (ac_try="$ac_link"
11430case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11433esac
11434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011436 ac_status=$?
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11443 { (case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456esac
11457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 eval "$as_ac_var=yes"
11463else
11464 echo "$as_me: failed program was:" >&5
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
Reid Spencera773bd52006-08-04 18:18:08 +000011467 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468fi
Reid Spencera773bd52006-08-04 18:18:08 +000011469
11470rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471 conftest$ac_exeext conftest.$ac_ext
11472fi
Reid Spencera773bd52006-08-04 18:18:08 +000011473ac_res=`eval echo '${'$as_ac_var'}'`
11474 { echo "$as_me:$LINENO: result: $ac_res" >&5
11475echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476if test `eval echo '${'$as_ac_var'}'` = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11479_ACEOF
11480 break
11481fi
11482done
11483
11484
11485
11486for ac_func in strrchr rindex
11487do
11488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011489{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11491if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494 cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11502#define $ac_func innocuous_$ac_func
11503
11504/* System header to define __stub macros and hopefully few prototypes,
11505 which can conflict with char $ac_func (); below.
11506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11507 <limits.h> exists even on freestanding compilers. */
11508
11509#ifdef __STDC__
11510# include <limits.h>
11511#else
11512# include <assert.h>
11513#endif
11514
11515#undef $ac_func
11516
Reid Spencera773bd52006-08-04 18:18:08 +000011517/* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520#ifdef __cplusplus
11521extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523char $ac_func ();
11524/* The GNU C library defines this for functions which it implements
11525 to always fail with ENOSYS. Some functions are actually named
11526 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011527#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011528choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529#endif
11530
11531int
11532main ()
11533{
Reid Spencera773bd52006-08-04 18:18:08 +000011534return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535 ;
11536 return 0;
11537}
11538_ACEOF
11539rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011540if { (ac_try="$ac_link"
11541case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11554 { (case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557esac
11558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011564 { (case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567esac
11568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 eval "$as_ac_var=yes"
11574else
11575 echo "$as_me: failed program was:" >&5
11576sed 's/^/| /' conftest.$ac_ext >&5
11577
Reid Spencera773bd52006-08-04 18:18:08 +000011578 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579fi
Reid Spencera773bd52006-08-04 18:18:08 +000011580
11581rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582 conftest$ac_exeext conftest.$ac_ext
11583fi
Reid Spencera773bd52006-08-04 18:18:08 +000011584ac_res=`eval echo '${'$as_ac_var'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587if test `eval echo '${'$as_ac_var'}'` = yes; then
11588 cat >>confdefs.h <<_ACEOF
11589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11590_ACEOF
11591 break
11592fi
11593done
11594
11595
11596
11597for ac_func in memcpy bcopy
11598do
11599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011600{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11602if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11613#define $ac_func innocuous_$ac_func
11614
11615/* System header to define __stub macros and hopefully few prototypes,
11616 which can conflict with char $ac_func (); below.
11617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11618 <limits.h> exists even on freestanding compilers. */
11619
11620#ifdef __STDC__
11621# include <limits.h>
11622#else
11623# include <assert.h>
11624#endif
11625
11626#undef $ac_func
11627
Reid Spencera773bd52006-08-04 18:18:08 +000011628/* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631#ifdef __cplusplus
11632extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634char $ac_func ();
11635/* The GNU C library defines this for functions which it implements
11636 to always fail with ENOSYS. Some functions are actually named
11637 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011638#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640#endif
11641
11642int
11643main ()
11644{
Reid Spencera773bd52006-08-04 18:18:08 +000011645return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646 ;
11647 return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011651if { (ac_try="$ac_link"
11652case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678esac
11679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 eval "$as_ac_var=yes"
11685else
11686 echo "$as_me: failed program was:" >&5
11687sed 's/^/| /' conftest.$ac_ext >&5
11688
Reid Spencera773bd52006-08-04 18:18:08 +000011689 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011690fi
Reid Spencera773bd52006-08-04 18:18:08 +000011691
11692rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693 conftest$ac_exeext conftest.$ac_ext
11694fi
Reid Spencera773bd52006-08-04 18:18:08 +000011695ac_res=`eval echo '${'$as_ac_var'}'`
11696 { echo "$as_me:$LINENO: result: $ac_res" >&5
11697echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698if test `eval echo '${'$as_ac_var'}'` = yes; then
11699 cat >>confdefs.h <<_ACEOF
11700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11701_ACEOF
11702 break
11703fi
11704done
11705
11706
11707
11708for ac_func in memmove strcmp
11709do
11710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 cat >conftest.$ac_ext <<_ACEOF
11717/* confdefs.h. */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */
11722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11724#define $ac_func innocuous_$ac_func
11725
11726/* System header to define __stub macros and hopefully few prototypes,
11727 which can conflict with char $ac_func (); below.
11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729 <limits.h> exists even on freestanding compilers. */
11730
11731#ifdef __STDC__
11732# include <limits.h>
11733#else
11734# include <assert.h>
11735#endif
11736
11737#undef $ac_func
11738
Reid Spencera773bd52006-08-04 18:18:08 +000011739/* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011742#ifdef __cplusplus
11743extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745char $ac_func ();
11746/* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011749#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751#endif
11752
11753int
11754main ()
11755{
Reid Spencera773bd52006-08-04 18:18:08 +000011756return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757 ;
11758 return 0;
11759}
11760_ACEOF
11761rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011762if { (ac_try="$ac_link"
11763case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766esac
11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776 { (case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779esac
11780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789esac
11790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 eval "$as_ac_var=yes"
11796else
11797 echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
Reid Spencera773bd52006-08-04 18:18:08 +000011800 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011801fi
Reid Spencera773bd52006-08-04 18:18:08 +000011802
11803rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804 conftest$ac_exeext conftest.$ac_ext
11805fi
Reid Spencera773bd52006-08-04 18:18:08 +000011806ac_res=`eval echo '${'$as_ac_var'}'`
11807 { echo "$as_me:$LINENO: result: $ac_res" >&5
11808echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809if test `eval echo '${'$as_ac_var'}'` = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812_ACEOF
11813
11814fi
11815done
11816
11817
11818
11819
11820for ac_func in closedir opendir readdir
11821do
11822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827else
11828 cat >conftest.$ac_ext <<_ACEOF
11829/* confdefs.h. */
11830_ACEOF
11831cat confdefs.h >>conftest.$ac_ext
11832cat >>conftest.$ac_ext <<_ACEOF
11833/* end confdefs.h. */
11834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11836#define $ac_func innocuous_$ac_func
11837
11838/* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char $ac_func (); below.
11840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 <limits.h> exists even on freestanding compilers. */
11842
11843#ifdef __STDC__
11844# include <limits.h>
11845#else
11846# include <assert.h>
11847#endif
11848
11849#undef $ac_func
11850
Reid Spencera773bd52006-08-04 18:18:08 +000011851/* Override any GCC internal prototype to avoid an error.
11852 Use char because int might match the return type of a GCC
11853 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854#ifdef __cplusplus
11855extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857char $ac_func ();
11858/* The GNU C library defines this for functions which it implements
11859 to always fail with ENOSYS. Some functions are actually named
11860 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011861#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011862choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863#endif
11864
11865int
11866main ()
11867{
Reid Spencera773bd52006-08-04 18:18:08 +000011868return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011869 ;
11870 return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011874if { (ac_try="$ac_link"
11875case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878esac
11879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11888 { (case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11891esac
11892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011898 { (case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901esac
11902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 eval "$as_ac_var=yes"
11908else
11909 echo "$as_me: failed program was:" >&5
11910sed 's/^/| /' conftest.$ac_ext >&5
11911
Reid Spencera773bd52006-08-04 18:18:08 +000011912 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913fi
Reid Spencera773bd52006-08-04 18:18:08 +000011914
11915rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916 conftest$ac_exeext conftest.$ac_ext
11917fi
Reid Spencera773bd52006-08-04 18:18:08 +000011918ac_res=`eval echo '${'$as_ac_var'}'`
11919 { echo "$as_me:$LINENO: result: $ac_res" >&5
11920echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011921if test `eval echo '${'$as_ac_var'}'` = yes; then
11922 cat >>confdefs.h <<_ACEOF
11923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11924_ACEOF
11925
11926fi
11927done
11928
11929
Reid Spencera773bd52006-08-04 18:18:08 +000011930# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011932 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933 case $enableval in
11934 yes) enable_shared=yes ;;
11935 no) enable_shared=no ;;
11936 *)
11937 enable_shared=no
11938 # Look at the argument we got. We use all the common list separators.
11939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11940 for pkg in $enableval; do
11941 IFS="$lt_save_ifs"
11942 if test "X$pkg" = "X$p"; then
11943 enable_shared=yes
11944 fi
11945 done
11946 IFS="$lt_save_ifs"
11947 ;;
11948 esac
11949else
11950 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011951fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952
Reid Spencera773bd52006-08-04 18:18:08 +000011953
11954# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011956 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011957 case $enableval in
11958 yes) enable_static=yes ;;
11959 no) enable_static=no ;;
11960 *)
11961 enable_static=no
11962 # Look at the argument we got. We use all the common list separators.
11963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11964 for pkg in $enableval; do
11965 IFS="$lt_save_ifs"
11966 if test "X$pkg" = "X$p"; then
11967 enable_static=yes
11968 fi
11969 done
11970 IFS="$lt_save_ifs"
11971 ;;
11972 esac
11973else
11974 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011975fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011976
Reid Spencera773bd52006-08-04 18:18:08 +000011977
11978# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011980 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011981 case $enableval in
11982 yes) enable_fast_install=yes ;;
11983 no) enable_fast_install=no ;;
11984 *)
11985 enable_fast_install=no
11986 # Look at the argument we got. We use all the common list separators.
11987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11988 for pkg in $enableval; do
11989 IFS="$lt_save_ifs"
11990 if test "X$pkg" = "X$p"; then
11991 enable_fast_install=yes
11992 fi
11993 done
11994 IFS="$lt_save_ifs"
11995 ;;
11996 esac
11997else
11998 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011999fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000
Reid Spencera773bd52006-08-04 18:18:08 +000012001
12002{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12003echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004if test "${lt_cv_path_SED+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006else
12007 # Loop through the user's path and test for sed and gsed.
12008# Then use that list of sed's as ones to test for truncation.
12009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010for as_dir in $PATH
12011do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
12014 for lt_ac_prog in sed gsed; do
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12017 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12018 fi
12019 done
12020 done
12021done
12022lt_ac_max=0
12023lt_ac_count=0
12024# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12025# along with /bin/sed that truncates output.
12026for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012027 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028 cat /dev/null > conftest.in
12029 lt_ac_count=0
12030 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12031 # Check for GNU sed and select it if it is found.
12032 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12033 lt_cv_path_SED=$lt_ac_sed
12034 break
12035 fi
12036 while true; do
12037 cat conftest.in conftest.in >conftest.tmp
12038 mv conftest.tmp conftest.in
12039 cp conftest.in conftest.nl
12040 echo >>conftest.nl
12041 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12042 cmp -s conftest.out conftest.nl || break
12043 # 10000 chars as input seems more than enough
12044 test $lt_ac_count -gt 10 && break
12045 lt_ac_count=`expr $lt_ac_count + 1`
12046 if test $lt_ac_count -gt $lt_ac_max; then
12047 lt_ac_max=$lt_ac_count
12048 lt_cv_path_SED=$lt_ac_sed
12049 fi
12050 done
12051done
12052
12053fi
12054
12055SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012056{ echo "$as_me:$LINENO: result: $SED" >&5
12057echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058
12059
Reid Spencera773bd52006-08-04 18:18:08 +000012060# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012062 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063else
12064 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012065fi
12066
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012067ac_prog=ld
12068if test "$GCC" = yes; then
12069 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012070 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12071echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012072 case $host in
12073 *-*-mingw*)
12074 # gcc leaves a trailing carriage return which upsets mingw
12075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12076 *)
12077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12078 esac
12079 case $ac_prog in
12080 # Accept absolute paths.
12081 [\\/]* | ?:[\\/]*)
12082 re_direlt='/[^/][^/]*/\.\./'
12083 # Canonicalize the pathname of ld
12084 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12085 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12086 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12087 done
12088 test -z "$LD" && LD="$ac_prog"
12089 ;;
12090 "")
12091 # If it fails, then pretend we aren't using GCC.
12092 ac_prog=ld
12093 ;;
12094 *)
12095 # If it is relative, then search for the first ld in PATH.
12096 with_gnu_ld=unknown
12097 ;;
12098 esac
12099elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012100 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12101echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102else
Reid Spencera773bd52006-08-04 18:18:08 +000012103 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12104echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012105fi
12106if test "${lt_cv_path_LD+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
12109 if test -z "$LD"; then
12110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12111 for ac_dir in $PATH; do
12112 IFS="$lt_save_ifs"
12113 test -z "$ac_dir" && ac_dir=.
12114 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12115 lt_cv_path_LD="$ac_dir/$ac_prog"
12116 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012117 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012118 # Break only if it was the GNU/non-GNU ld that we prefer.
12119 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12120 *GNU* | *'with BFD'*)
12121 test "$with_gnu_ld" != no && break
12122 ;;
12123 *)
12124 test "$with_gnu_ld" != yes && break
12125 ;;
12126 esac
12127 fi
12128 done
12129 IFS="$lt_save_ifs"
12130else
12131 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12132fi
12133fi
12134
12135LD="$lt_cv_path_LD"
12136if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012137 { echo "$as_me:$LINENO: result: $LD" >&5
12138echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139else
Reid Spencera773bd52006-08-04 18:18:08 +000012140 { echo "$as_me:$LINENO: result: no" >&5
12141echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012142fi
12143test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12144echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12145 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012146{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12147echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148if test "${lt_cv_prog_gnu_ld+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150else
Reid Spencera773bd52006-08-04 18:18:08 +000012151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012152case `$LD -v 2>&1 </dev/null` in
12153*GNU* | *'with BFD'*)
12154 lt_cv_prog_gnu_ld=yes
12155 ;;
12156*)
12157 lt_cv_prog_gnu_ld=no
12158 ;;
12159esac
12160fi
Reid Spencera773bd52006-08-04 18:18:08 +000012161{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12162echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163with_gnu_ld=$lt_cv_prog_gnu_ld
12164
12165
Reid Spencera773bd52006-08-04 18:18:08 +000012166{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12167echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012168if test "${lt_cv_ld_reload_flag+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170else
12171 lt_cv_ld_reload_flag='-r'
12172fi
Reid Spencera773bd52006-08-04 18:18:08 +000012173{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12174echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012175reload_flag=$lt_cv_ld_reload_flag
12176case $reload_flag in
12177"" | " "*) ;;
12178*) reload_flag=" $reload_flag" ;;
12179esac
12180reload_cmds='$LD$reload_flag -o $output$reload_objs'
12181case $host_os in
12182 darwin*)
12183 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012184 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012185 else
12186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12187 fi
12188 ;;
12189esac
12190
Reid Spencera773bd52006-08-04 18:18:08 +000012191{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12192echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012193if test "${lt_cv_deplibs_check_method+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 lt_cv_file_magic_cmd='$MAGIC_CMD'
12197lt_cv_file_magic_test_file=
12198lt_cv_deplibs_check_method='unknown'
12199# Need to set the preceding variable on all platforms that support
12200# interlibrary dependencies.
12201# 'none' -- dependencies not supported.
12202# `unknown' -- same as none, but documents that we really don't know.
12203# 'pass_all' -- all dependencies passed with no checks.
12204# 'test_compile' -- check by making test program.
12205# 'file_magic [[regex]]' -- check by looking for files in library path
12206# which responds to the $file_magic_cmd with a given extended regex.
12207# If you have `file' or equivalent on your system and you're not sure
12208# whether `pass_all' will *always* work, you probably want this one.
12209
12210case $host_os in
12211aix4* | aix5*)
12212 lt_cv_deplibs_check_method=pass_all
12213 ;;
12214
12215beos*)
12216 lt_cv_deplibs_check_method=pass_all
12217 ;;
12218
12219bsdi[45]*)
12220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12221 lt_cv_file_magic_cmd='/usr/bin/file -L'
12222 lt_cv_file_magic_test_file=/shlib/libc.so
12223 ;;
12224
12225cygwin*)
12226 # func_win32_libid is a shell function defined in ltmain.sh
12227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12228 lt_cv_file_magic_cmd='func_win32_libid'
12229 ;;
12230
12231mingw* | pw32*)
12232 # Base MSYS/MinGW do not provide the 'file' command needed by
12233 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12234 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12235 lt_cv_file_magic_cmd='$OBJDUMP -f'
12236 ;;
12237
12238darwin* | rhapsody*)
12239 lt_cv_deplibs_check_method=pass_all
12240 ;;
12241
Reid Spencera773bd52006-08-04 18:18:08 +000012242freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12244 case $host_cpu in
12245 i*86 )
12246 # Not sure whether the presence of OpenBSD here was a mistake.
12247 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012248 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 +000012249 lt_cv_file_magic_cmd=/usr/bin/file
12250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12251 ;;
12252 esac
12253 else
12254 lt_cv_deplibs_check_method=pass_all
12255 fi
12256 ;;
12257
12258gnu*)
12259 lt_cv_deplibs_check_method=pass_all
12260 ;;
12261
12262hpux10.20* | hpux11*)
12263 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012264 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012265 ia64*)
12266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12267 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12268 ;;
12269 hppa*64*)
12270 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]'
12271 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12272 ;;
12273 *)
12274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12275 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12276 ;;
12277 esac
12278 ;;
12279
Reid Spencera773bd52006-08-04 18:18:08 +000012280interix3*)
12281 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12283 ;;
12284
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012285irix5* | irix6* | nonstopux*)
12286 case $LD in
12287 *-32|*"-32 ") libmagic=32-bit;;
12288 *-n32|*"-n32 ") libmagic=N32;;
12289 *-64|*"-64 ") libmagic=64-bit;;
12290 *) libmagic=never-match;;
12291 esac
12292 lt_cv_deplibs_check_method=pass_all
12293 ;;
12294
12295# This must be Linux ELF.
12296linux*)
12297 lt_cv_deplibs_check_method=pass_all
12298 ;;
12299
12300netbsd*)
12301 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12303 else
12304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12305 fi
12306 ;;
12307
12308newos6*)
12309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12310 lt_cv_file_magic_cmd=/usr/bin/file
12311 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12312 ;;
12313
12314nto-qnx*)
12315 lt_cv_deplibs_check_method=unknown
12316 ;;
12317
12318openbsd*)
12319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12321 else
12322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12323 fi
12324 ;;
12325
12326osf3* | osf4* | osf5*)
12327 lt_cv_deplibs_check_method=pass_all
12328 ;;
12329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012330solaris*)
12331 lt_cv_deplibs_check_method=pass_all
12332 ;;
12333
Reid Spencera773bd52006-08-04 18:18:08 +000012334sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335 case $host_vendor in
12336 motorola)
12337 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]'
12338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12339 ;;
12340 ncr)
12341 lt_cv_deplibs_check_method=pass_all
12342 ;;
12343 sequent)
12344 lt_cv_file_magic_cmd='/bin/file'
12345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12346 ;;
12347 sni)
12348 lt_cv_file_magic_cmd='/bin/file'
12349 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12350 lt_cv_file_magic_test_file=/lib/libc.so
12351 ;;
12352 siemens)
12353 lt_cv_deplibs_check_method=pass_all
12354 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012355 pc)
12356 lt_cv_deplibs_check_method=pass_all
12357 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012358 esac
12359 ;;
12360
Reid Spencera773bd52006-08-04 18:18:08 +000012361sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012362 lt_cv_deplibs_check_method=pass_all
12363 ;;
12364esac
12365
12366fi
Reid Spencera773bd52006-08-04 18:18:08 +000012367{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12368echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012369file_magic_cmd=$lt_cv_file_magic_cmd
12370deplibs_check_method=$lt_cv_deplibs_check_method
12371test -z "$deplibs_check_method" && deplibs_check_method=unknown
12372
12373
12374
12375# If no C compiler was specified, use CC.
12376LTCC=${LTCC-"$CC"}
12377
Reid Spencera773bd52006-08-04 18:18:08 +000012378# If no C compiler flags were specified, use CFLAGS.
12379LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12380
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381# Allow CC to be a program name with arguments.
12382compiler=$CC
12383
Reid Spencera773bd52006-08-04 18:18:08 +000012384# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012385if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012386 enableval=$enable_libtool_lock;
12387fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12390
12391# Some flags need to be propagated to the compiler or linker for good
12392# libtool support.
12393case $host in
12394ia64-*-hpux*)
12395 # Find out which ABI we are using.
12396 echo 'int i;' > conftest.$ac_ext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398 (eval $ac_compile) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; then
12402 case `/usr/bin/file conftest.$ac_objext` in
12403 *ELF-32*)
12404 HPUX_IA64_MODE="32"
12405 ;;
12406 *ELF-64*)
12407 HPUX_IA64_MODE="64"
12408 ;;
12409 esac
12410 fi
12411 rm -rf conftest*
12412 ;;
12413*-*-irix6*)
12414 # Find out which ABI we are using.
Reid Spencer6ccd01a2006-08-22 22:21:38 +000012415 echo '#line 12415 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; then
12421 if test "$lt_cv_prog_gnu_ld" = yes; then
12422 case `/usr/bin/file conftest.$ac_objext` in
12423 *32-bit*)
12424 LD="${LD-ld} -melf32bsmip"
12425 ;;
12426 *N32*)
12427 LD="${LD-ld} -melf32bmipn32"
12428 ;;
12429 *64-bit*)
12430 LD="${LD-ld} -melf64bmip"
12431 ;;
12432 esac
12433 else
12434 case `/usr/bin/file conftest.$ac_objext` in
12435 *32-bit*)
12436 LD="${LD-ld} -32"
12437 ;;
12438 *N32*)
12439 LD="${LD-ld} -n32"
12440 ;;
12441 *64-bit*)
12442 LD="${LD-ld} -64"
12443 ;;
12444 esac
12445 fi
12446 fi
12447 rm -rf conftest*
12448 ;;
12449
12450x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12451 # Find out which ABI we are using.
12452 echo 'int i;' > conftest.$ac_ext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454 (eval $ac_compile) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012458 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012459 *32-bit*)
12460 case $host in
12461 x86_64-*linux*)
12462 LD="${LD-ld} -m elf_i386"
12463 ;;
12464 ppc64-*linux*|powerpc64-*linux*)
12465 LD="${LD-ld} -m elf32ppclinux"
12466 ;;
12467 s390x-*linux*)
12468 LD="${LD-ld} -m elf_s390"
12469 ;;
12470 sparc64-*linux*)
12471 LD="${LD-ld} -m elf32_sparc"
12472 ;;
12473 esac
12474 ;;
12475 *64-bit*)
12476 case $host in
12477 x86_64-*linux*)
12478 LD="${LD-ld} -m elf_x86_64"
12479 ;;
12480 ppc*-*linux*|powerpc*-*linux*)
12481 LD="${LD-ld} -m elf64ppc"
12482 ;;
12483 s390*-*linux*)
12484 LD="${LD-ld} -m elf64_s390"
12485 ;;
12486 sparc*-*linux*)
12487 LD="${LD-ld} -m elf64_sparc"
12488 ;;
12489 esac
12490 ;;
12491 esac
12492 fi
12493 rm -rf conftest*
12494 ;;
12495
12496*-*-sco3.2v5*)
12497 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12498 SAVE_CFLAGS="$CFLAGS"
12499 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012500 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12501echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012502if test "${lt_cv_cc_needs_belf+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504else
12505 ac_ext=c
12506ac_cpp='$CPP $CPPFLAGS'
12507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509ac_compiler_gnu=$ac_cv_c_compiler_gnu
12510
12511 cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517
Reid Spencera773bd52006-08-04 18:18:08 +000012518int
12519main ()
12520{
12521
12522 ;
12523 return 0;
12524}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012525_ACEOF
12526rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012527if { (ac_try="$ac_link"
12528case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012551 { (case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554esac
12555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 lt_cv_cc_needs_belf=yes
12561else
12562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
Reid Spencera773bd52006-08-04 18:18:08 +000012565 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566fi
Reid Spencera773bd52006-08-04 18:18:08 +000012567
12568rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012569 conftest$ac_exeext conftest.$ac_ext
12570 ac_ext=c
12571ac_cpp='$CPP $CPPFLAGS'
12572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576fi
Reid Spencera773bd52006-08-04 18:18:08 +000012577{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12578echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012579 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12580 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12581 CFLAGS="$SAVE_CFLAGS"
12582 fi
12583 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012584sparc*-*solaris*)
12585 # Find out which ABI we are using.
12586 echo 'int i;' > conftest.$ac_ext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; then
12592 case `/usr/bin/file conftest.o` in
12593 *64-bit*)
12594 case $lt_cv_prog_gnu_ld in
12595 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12596 *) LD="${LD-ld} -64" ;;
12597 esac
12598 ;;
12599 esac
12600 fi
12601 rm -rf conftest*
12602 ;;
12603
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012604
12605esac
12606
12607need_locks="$enable_libtool_lock"
12608
12609
Reid Spencer2706f8c2004-09-19 23:53:36 +000012610
12611
12612if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12613 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12614 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012615 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012616ac_cpp='$CXXCPP $CPPFLAGS'
12617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012620{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12621echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012622if test -z "$CXXCPP"; then
12623 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012624 echo $ECHO_N "(cached) $ECHO_C" >&6
12625else
John Criswell47fdd832003-07-14 16:52:07 +000012626 # Double quotes because CXXCPP needs to be expanded
12627 for CXXCPP in "$CXX -E" "/lib/cpp"
12628 do
12629 ac_preproc_ok=false
12630for ac_cxx_preproc_warn_flag in '' yes
12631do
12632 # Use a header file that comes with gcc, so configuring glibc
12633 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12635 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012636 # On the NeXT, cc -E runs the code through the compiler's parser,
12637 # not just through cpp. "Syntax error" is here to catch this case.
12638 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012639/* confdefs.h. */
12640_ACEOF
12641cat confdefs.h >>conftest.$ac_ext
12642cat >>conftest.$ac_ext <<_ACEOF
12643/* end confdefs.h. */
12644#ifdef __STDC__
12645# include <limits.h>
12646#else
12647# include <assert.h>
12648#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012649 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012650_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012651if { (ac_try="$ac_cpp conftest.$ac_ext"
12652case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012658 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012659 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } >/dev/null; then
12664 if test -s conftest.err; then
12665 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012666 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012667 else
John Criswell47fdd832003-07-14 16:52:07 +000012668 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012669 fi
John Criswell47fdd832003-07-14 16:52:07 +000012670else
12671 ac_cpp_err=yes
12672fi
12673if test -z "$ac_cpp_err"; then
12674 :
12675else
12676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012677sed 's/^/| /' conftest.$ac_ext >&5
12678
John Criswell47fdd832003-07-14 16:52:07 +000012679 # Broken: fails on valid input.
12680continue
12681fi
Reid Spencera773bd52006-08-04 18:18:08 +000012682
John Criswell47fdd832003-07-14 16:52:07 +000012683rm -f conftest.err conftest.$ac_ext
12684
Reid Spencera773bd52006-08-04 18:18:08 +000012685 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012686 # can be detected and how.
12687 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
12692/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012693#include <ac_nonexistent.h>
12694_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012695if { (ac_try="$ac_cpp conftest.$ac_ext"
12696case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12699esac
12700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012702 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012703 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } >/dev/null; then
12708 if test -s conftest.err; then
12709 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012710 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012711 else
12712 ac_cpp_err=
12713 fi
12714else
12715 ac_cpp_err=yes
12716fi
12717if test -z "$ac_cpp_err"; then
12718 # Broken: success on invalid input.
12719continue
12720else
12721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012722sed 's/^/| /' conftest.$ac_ext >&5
12723
John Criswell47fdd832003-07-14 16:52:07 +000012724 # Passes both tests.
12725ac_preproc_ok=:
12726break
12727fi
Reid Spencera773bd52006-08-04 18:18:08 +000012728
John Criswell47fdd832003-07-14 16:52:07 +000012729rm -f conftest.err conftest.$ac_ext
12730
12731done
12732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12733rm -f conftest.err conftest.$ac_ext
12734if $ac_preproc_ok; then
12735 break
John Criswell7a73b802003-06-30 21:59:07 +000012736fi
12737
John Criswell47fdd832003-07-14 16:52:07 +000012738 done
12739 ac_cv_prog_CXXCPP=$CXXCPP
12740
12741fi
12742 CXXCPP=$ac_cv_prog_CXXCPP
12743else
12744 ac_cv_prog_CXXCPP=$CXXCPP
12745fi
Reid Spencera773bd52006-08-04 18:18:08 +000012746{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12747echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012748ac_preproc_ok=false
12749for ac_cxx_preproc_warn_flag in '' yes
12750do
12751 # Use a header file that comes with gcc, so configuring glibc
12752 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12754 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012755 # On the NeXT, cc -E runs the code through the compiler's parser,
12756 # not just through cpp. "Syntax error" is here to catch this case.
12757 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012758/* confdefs.h. */
12759_ACEOF
12760cat confdefs.h >>conftest.$ac_ext
12761cat >>conftest.$ac_ext <<_ACEOF
12762/* end confdefs.h. */
12763#ifdef __STDC__
12764# include <limits.h>
12765#else
12766# include <assert.h>
12767#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012768 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012769_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012770if { (ac_try="$ac_cpp conftest.$ac_ext"
12771case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012777 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012778 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } >/dev/null; then
12783 if test -s conftest.err; then
12784 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012786 else
12787 ac_cpp_err=
12788 fi
12789else
12790 ac_cpp_err=yes
12791fi
12792if test -z "$ac_cpp_err"; then
12793 :
12794else
12795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012796sed 's/^/| /' conftest.$ac_ext >&5
12797
John Criswell47fdd832003-07-14 16:52:07 +000012798 # Broken: fails on valid input.
12799continue
12800fi
Reid Spencera773bd52006-08-04 18:18:08 +000012801
John Criswell47fdd832003-07-14 16:52:07 +000012802rm -f conftest.err conftest.$ac_ext
12803
Reid Spencera773bd52006-08-04 18:18:08 +000012804 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012805 # can be detected and how.
12806 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012812#include <ac_nonexistent.h>
12813_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012814if { (ac_try="$ac_cpp conftest.$ac_ext"
12815case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12818esac
12819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012821 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012822 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } >/dev/null; then
12827 if test -s conftest.err; then
12828 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012829 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012830 else
12831 ac_cpp_err=
12832 fi
12833else
12834 ac_cpp_err=yes
12835fi
12836if test -z "$ac_cpp_err"; then
12837 # Broken: success on invalid input.
12838continue
12839else
12840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012841sed 's/^/| /' conftest.$ac_ext >&5
12842
John Criswell47fdd832003-07-14 16:52:07 +000012843 # Passes both tests.
12844ac_preproc_ok=:
12845break
12846fi
Reid Spencera773bd52006-08-04 18:18:08 +000012847
John Criswell47fdd832003-07-14 16:52:07 +000012848rm -f conftest.err conftest.$ac_ext
12849
12850done
12851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12852rm -f conftest.err conftest.$ac_ext
12853if $ac_preproc_ok; then
12854 :
12855else
John Criswell0c38eaf2003-09-10 15:17:25 +000012856 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12857See \`config.log' for more details." >&5
12858echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12859See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012860 { (exit 1); exit 1; }; }
12861fi
12862
Reid Spencera773bd52006-08-04 18:18:08 +000012863ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012864ac_cpp='$CXXCPP $CPPFLAGS'
12865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12868
Reid Spencer2706f8c2004-09-19 23:53:36 +000012869fi
12870
John Criswell47fdd832003-07-14 16:52:07 +000012871
12872ac_ext=f
12873ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12874ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12875ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12876if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012877 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 +000012878 do
12879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012883if test "${ac_cv_prog_F77+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885else
12886 if test -n "$F77"; then
12887 ac_cv_prog_F77="$F77" # Let the user override the test.
12888else
12889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890for as_dir in $PATH
12891do
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012895 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 +000012896 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 break 2
12899 fi
12900done
12901done
Reid Spencera773bd52006-08-04 18:18:08 +000012902IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012903
12904fi
12905fi
12906F77=$ac_cv_prog_F77
12907if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012908 { echo "$as_me:$LINENO: result: $F77" >&5
12909echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012910else
Reid Spencera773bd52006-08-04 18:18:08 +000012911 { echo "$as_me:$LINENO: result: no" >&5
12912echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012913fi
12914
Reid Spencera773bd52006-08-04 18:18:08 +000012915
John Criswell47fdd832003-07-14 16:52:07 +000012916 test -n "$F77" && break
12917 done
12918fi
12919if test -z "$F77"; then
12920 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012921 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 +000012922do
12923 # Extract the first word of "$ac_prog", so it can be a program name with args.
12924set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012927if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12929else
12930 if test -n "$ac_ct_F77"; then
12931 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12932else
12933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934for as_dir in $PATH
12935do
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012939 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 +000012940 ac_cv_prog_ac_ct_F77="$ac_prog"
12941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12943 fi
12944done
12945done
Reid Spencera773bd52006-08-04 18:18:08 +000012946IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012947
12948fi
12949fi
12950ac_ct_F77=$ac_cv_prog_ac_ct_F77
12951if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012952 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12953echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012954else
Reid Spencera773bd52006-08-04 18:18:08 +000012955 { echo "$as_me:$LINENO: result: no" >&5
12956echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012957fi
12958
Reid Spencera773bd52006-08-04 18:18:08 +000012959
John Criswell47fdd832003-07-14 16:52:07 +000012960 test -n "$ac_ct_F77" && break
12961done
12962
Reid Spencera773bd52006-08-04 18:18:08 +000012963 if test "x$ac_ct_F77" = x; then
12964 F77=""
12965 else
12966 case $cross_compiling:$ac_tool_warned in
12967yes:)
12968{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12969whose name does not start with the host triplet. If you think this
12970configuration is useful to you, please write to autoconf@gnu.org." >&5
12971echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12972whose name does not start with the host triplet. If you think this
12973configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12974ac_tool_warned=yes ;;
12975esac
12976 F77=$ac_ct_F77
12977 fi
John Criswell47fdd832003-07-14 16:52:07 +000012978fi
12979
12980
12981# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012982echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012983ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012984{ (ac_try="$ac_compiler --version >&5"
12985case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012994{ (ac_try="$ac_compiler -v >&5"
12995case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998esac
12999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013004{ (ac_try="$ac_compiler -V >&5"
13005case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013014rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013015
13016# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013017# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013018ac_save_ext=$ac_ext
13019ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013020{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13021echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013022if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024else
13025 cat >conftest.$ac_ext <<_ACEOF
13026 program main
13027#ifndef __GNUC__
13028 choke me
13029#endif
13030
13031 end
13032_ACEOF
13033rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013034if { (ac_try="$ac_compile"
13035case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013047 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013058 { (case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061esac
13062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_compiler_gnu=yes
13068else
13069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013070sed 's/^/| /' conftest.$ac_ext >&5
13071
Reid Spencera773bd52006-08-04 18:18:08 +000013072 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013073fi
Reid Spencera773bd52006-08-04 18:18:08 +000013074
13075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013076ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13077
13078fi
Reid Spencera773bd52006-08-04 18:18:08 +000013079{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13080echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013081ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013082ac_test_FFLAGS=${FFLAGS+set}
13083ac_save_FFLAGS=$FFLAGS
13084FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013085{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13086echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013087if test "${ac_cv_prog_f77_g+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089else
13090 FFLAGS=-g
13091cat >conftest.$ac_ext <<_ACEOF
13092 program main
13093
13094 end
13095_ACEOF
13096rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013097if { (ac_try="$ac_compile"
13098case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101esac
13102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013104 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013110 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13111 { (case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114esac
13115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013121 { (case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124esac
13125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_prog_f77_g=yes
13131else
13132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013133sed 's/^/| /' conftest.$ac_ext >&5
13134
Reid Spencera773bd52006-08-04 18:18:08 +000013135 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013136fi
Reid Spencera773bd52006-08-04 18:18:08 +000013137
13138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013139
13140fi
Reid Spencera773bd52006-08-04 18:18:08 +000013141{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13142echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013143if test "$ac_test_FFLAGS" = set; then
13144 FFLAGS=$ac_save_FFLAGS
13145elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013146 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013147 FFLAGS="-g -O2"
13148 else
13149 FFLAGS="-g"
13150 fi
13151else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013152 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013153 FFLAGS="-O2"
13154 else
13155 FFLAGS=
13156 fi
13157fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013158
13159G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013160ac_ext=c
13161ac_cpp='$CPP $CPPFLAGS'
13162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164ac_compiler_gnu=$ac_cv_c_compiler_gnu
13165
13166
13167
13168# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13169
13170# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013171{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13172echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013173if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13175else
13176 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013177 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013178
13179 case $build_os in
13180 msdosdjgpp*)
13181 # On DJGPP, this test can blow up pretty badly due to problems in libc
13182 # (any single argument exceeding 2000 bytes causes a buffer overrun
13183 # during glob expansion). Even if it were fixed, the result of this
13184 # check would be larger than it should be.
13185 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13186 ;;
13187
13188 gnu*)
13189 # Under GNU Hurd, this test is not required because there is
13190 # no limit to the length of command line arguments.
13191 # Libtool will interpret -1 as no limit whatsoever
13192 lt_cv_sys_max_cmd_len=-1;
13193 ;;
13194
13195 cygwin* | mingw*)
13196 # On Win9x/ME, this test blows up -- it succeeds, but takes
13197 # about 5 minutes as the teststring grows exponentially.
13198 # Worse, since 9x/ME are not pre-emptively multitasking,
13199 # you end up with a "frozen" computer, even though with patience
13200 # the test eventually succeeds (with a max line length of 256k).
13201 # Instead, let's just punt: use the minimum linelength reported by
13202 # all of the supported platforms: 8192 (on NT/2K/XP).
13203 lt_cv_sys_max_cmd_len=8192;
13204 ;;
13205
Reid Spencer2706f8c2004-09-19 23:53:36 +000013206 amigaos*)
13207 # On AmigaOS with pdksh, this test takes hours, literally.
13208 # So we just punt and use a minimum line length of 8192.
13209 lt_cv_sys_max_cmd_len=8192;
13210 ;;
13211
Reid Spencera773bd52006-08-04 18:18:08 +000013212 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013213 # This has been around since 386BSD, at least. Likely further.
13214 if test -x /sbin/sysctl; then
13215 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13216 elif test -x /usr/sbin/sysctl; then
13217 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13218 else
Reid Spencera773bd52006-08-04 18:18:08 +000013219 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013220 fi
13221 # And add a safety zone
13222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013224 ;;
13225
Reid Spencera773bd52006-08-04 18:18:08 +000013226 interix*)
13227 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13228 lt_cv_sys_max_cmd_len=196608
13229 ;;
13230
13231 osf*)
13232 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13233 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13234 # nice to cause kernel panics so lets avoid the loop below.
13235 # First set a reasonable default.
13236 lt_cv_sys_max_cmd_len=16384
13237 #
13238 if test -x /sbin/sysconfig; then
13239 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13240 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13241 esac
13242 fi
13243 ;;
13244 sco3.2v5*)
13245 lt_cv_sys_max_cmd_len=102400
13246 ;;
13247 sysv5* | sco5v6* | sysv4.2uw2*)
13248 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13249 if test -n "$kargmax"; then
13250 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13251 else
13252 lt_cv_sys_max_cmd_len=32768
13253 fi
13254 ;;
13255 *)
John Criswell47fdd832003-07-14 16:52:07 +000013256 # If test is not a shell built-in, we'll probably end up computing a
13257 # maximum length that is only half of the actual maximum length, but
13258 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013259 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13260 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13261 = "XX$teststring") >/dev/null 2>&1 &&
13262 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013263 lt_cv_sys_max_cmd_len=$new_result &&
13264 test $i != 17 # 1/2 MB should be enough
13265 do
13266 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013267 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013268 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013269 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013270 # Add a significant safety factor because C++ compilers can tack on massive
13271 # amounts of additional arguments before passing them to the linker.
13272 # It appears as though 1/2 is a usable value.
13273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13274 ;;
13275 esac
13276
13277fi
13278
13279if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013280 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13281echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013282else
Reid Spencera773bd52006-08-04 18:18:08 +000013283 { echo "$as_me:$LINENO: result: none" >&5
13284echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013285fi
13286
13287
13288
13289
13290# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013291{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13292echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013293if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295else
13296
13297# These are sane defaults that work on at least a few old systems.
13298# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13299
13300# Character class describing NM global symbol codes.
13301symcode='[BCDEGRST]'
13302
13303# Regexp to match symbols that can be accessed directly from C.
13304sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13305
John Criswell47fdd832003-07-14 16:52:07 +000013306# Transform an extracted symbol line into a proper C declaration
13307lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13308
13309# Transform an extracted symbol line into symbol name and symbol address
13310lt_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'"
13311
13312# Define system-specific variables.
13313case $host_os in
13314aix*)
13315 symcode='[BCDT]'
13316 ;;
13317cygwin* | mingw* | pw32*)
13318 symcode='[ABCDGISTW]'
13319 ;;
13320hpux*) # Its linker distinguishes data from code symbols
13321 if test "$host_cpu" = ia64; then
13322 symcode='[ABCDEGRST]'
13323 fi
13324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13325 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'"
13326 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013327linux*)
13328 if test "$host_cpu" = ia64; then
13329 symcode='[ABCDGIRSTW]'
13330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13331 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'"
13332 fi
13333 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013334irix* | nonstopux*)
13335 symcode='[BCDEGRST]'
13336 ;;
13337osf*)
13338 symcode='[BCDEGQRST]'
13339 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013340solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013341 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013342 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013343sco3.2v5*)
13344 symcode='[DT]'
13345 ;;
13346sysv4.2uw2*)
13347 symcode='[DT]'
13348 ;;
13349sysv5* | sco5v6* | unixware* | OpenUNIX*)
13350 symcode='[ABDT]'
13351 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013352sysv4)
13353 symcode='[DFNSTU]'
13354 ;;
13355esac
13356
13357# Handle CRLF in mingw tool chain
13358opt_cr=
13359case $build_os in
13360mingw*)
13361 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13362 ;;
13363esac
13364
13365# If we're using GNU nm, then use its standard symbol codes.
13366case `$NM -V 2>&1` in
13367*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013368 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013369esac
13370
13371# Try without a prefix undercore, then with it.
13372for ac_symprfx in "" "_"; do
13373
Reid Spencera773bd52006-08-04 18:18:08 +000013374 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13375 symxfrm="\\1 $ac_symprfx\\2 \\2"
13376
John Criswell47fdd832003-07-14 16:52:07 +000013377 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013378 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 +000013379
13380 # Check to see that the pipe works correctly.
13381 pipe_works=no
13382
13383 rm -f conftest*
13384 cat > conftest.$ac_ext <<EOF
13385#ifdef __cplusplus
13386extern "C" {
13387#endif
13388char nm_test_var;
13389void nm_test_func(){}
13390#ifdef __cplusplus
13391}
13392#endif
13393int main(){nm_test_var='a';nm_test_func();return(0);}
13394EOF
13395
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; then
13401 # Now try to grab the symbols.
13402 nlist=conftest.nm
13403 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13404 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && test -s "$nlist"; then
13408 # Try sorting and uniquifying the output.
13409 if sort "$nlist" | uniq > "$nlist"T; then
13410 mv -f "$nlist"T "$nlist"
13411 else
13412 rm -f "$nlist"T
13413 fi
13414
13415 # Make sure that we snagged all the symbols we need.
13416 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13417 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13418 cat <<EOF > conftest.$ac_ext
13419#ifdef __cplusplus
13420extern "C" {
13421#endif
13422
13423EOF
13424 # Now generate the symbol file.
13425 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13426
13427 cat <<EOF >> conftest.$ac_ext
13428#if defined (__STDC__) && __STDC__
13429# define lt_ptr_t void *
13430#else
13431# define lt_ptr_t char *
13432# define const
13433#endif
13434
13435/* The mapping between symbol names and symbols. */
13436const struct {
13437 const char *name;
13438 lt_ptr_t address;
13439}
13440lt_preloaded_symbols[] =
13441{
13442EOF
13443 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13444 cat <<\EOF >> conftest.$ac_ext
13445 {0, (lt_ptr_t) 0}
13446};
13447
13448#ifdef __cplusplus
13449}
13450#endif
13451EOF
13452 # Now try linking the two files.
13453 mv conftest.$ac_objext conftstm.$ac_objext
13454 lt_save_LIBS="$LIBS"
13455 lt_save_CFLAGS="$CFLAGS"
13456 LIBS="conftstm.$ac_objext"
13457 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13463 pipe_works=yes
13464 fi
13465 LIBS="$lt_save_LIBS"
13466 CFLAGS="$lt_save_CFLAGS"
13467 else
13468 echo "cannot find nm_test_func in $nlist" >&5
13469 fi
13470 else
13471 echo "cannot find nm_test_var in $nlist" >&5
13472 fi
13473 else
13474 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13475 fi
13476 else
13477 echo "$progname: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13479 fi
13480 rm -f conftest* conftst*
13481
13482 # Do not use the global_symbol_pipe unless it works.
13483 if test "$pipe_works" = yes; then
13484 break
13485 else
13486 lt_cv_sys_global_symbol_pipe=
13487 fi
13488done
13489
13490fi
13491
13492if test -z "$lt_cv_sys_global_symbol_pipe"; then
13493 lt_cv_sys_global_symbol_to_cdecl=
13494fi
13495if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013496 { echo "$as_me:$LINENO: result: failed" >&5
13497echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013498else
Reid Spencera773bd52006-08-04 18:18:08 +000013499 { echo "$as_me:$LINENO: result: ok" >&5
13500echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013501fi
13502
Reid Spencera773bd52006-08-04 18:18:08 +000013503{ echo "$as_me:$LINENO: checking for objdir" >&5
13504echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013505if test "${lt_cv_objdir+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507else
13508 rm -f .libs 2>/dev/null
13509mkdir .libs 2>/dev/null
13510if test -d .libs; then
13511 lt_cv_objdir=.libs
13512else
13513 # MS-DOS does not allow filenames that begin with a dot.
13514 lt_cv_objdir=_libs
13515fi
13516rmdir .libs 2>/dev/null
13517fi
Reid Spencera773bd52006-08-04 18:18:08 +000013518{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13519echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013520objdir=$lt_cv_objdir
13521
13522
13523
13524
13525
13526case $host_os in
13527aix3*)
13528 # AIX sometimes has problems with the GCC collect2 program. For some
13529 # reason, if we set the COLLECT_NAMES environment variable, the problems
13530 # vanish in a puff of smoke.
13531 if test "X${COLLECT_NAMES+set}" != Xset; then
13532 COLLECT_NAMES=
13533 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013534 fi
13535 ;;
13536esac
13537
John Criswell47fdd832003-07-14 16:52:07 +000013538# Sed substitution that helps us do robust quoting. It backslashifies
13539# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013540Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013541sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13542
13543# Same as above, but do not quote variable references.
13544double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13545
13546# Sed substitution to delay expansion of an escaped shell variable in a
13547# double_quote_subst'ed string.
13548delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13549
13550# Sed substitution to avoid accidental globbing in evaled expressions
13551no_glob_subst='s/\*/\\\*/g'
13552
13553# Constants:
13554rm="rm -f"
13555
13556# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013557default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013558can_build_shared=yes
13559
Reid Spencera773bd52006-08-04 18:18:08 +000013560# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013561# which needs '.lib').
13562libext=a
13563ltmain="$ac_aux_dir/ltmain.sh"
13564ofile="$default_ofile"
13565with_gnu_ld="$lt_cv_prog_gnu_ld"
13566
13567if test -n "$ac_tool_prefix"; then
13568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13569set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013572if test "${ac_cv_prog_AR+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574else
13575 if test -n "$AR"; then
13576 ac_cv_prog_AR="$AR" # Let the user override the test.
13577else
13578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579for as_dir in $PATH
13580do
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013584 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 +000013585 ac_cv_prog_AR="${ac_tool_prefix}ar"
13586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13588 fi
13589done
13590done
Reid Spencera773bd52006-08-04 18:18:08 +000013591IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013592
13593fi
13594fi
13595AR=$ac_cv_prog_AR
13596if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013597 { echo "$as_me:$LINENO: result: $AR" >&5
13598echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013599else
Reid Spencera773bd52006-08-04 18:18:08 +000013600 { echo "$as_me:$LINENO: result: no" >&5
13601echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013602fi
13603
Reid Spencera773bd52006-08-04 18:18:08 +000013604
John Criswell47fdd832003-07-14 16:52:07 +000013605fi
13606if test -z "$ac_cv_prog_AR"; then
13607 ac_ct_AR=$AR
13608 # Extract the first word of "ar", so it can be a program name with args.
13609set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013612if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614else
13615 if test -n "$ac_ct_AR"; then
13616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13617else
13618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619for as_dir in $PATH
13620do
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013624 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 +000013625 ac_cv_prog_ac_ct_AR="ar"
13626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 break 2
13628 fi
13629done
13630done
Reid Spencera773bd52006-08-04 18:18:08 +000013631IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013632
John Criswell47fdd832003-07-14 16:52:07 +000013633fi
13634fi
13635ac_ct_AR=$ac_cv_prog_ac_ct_AR
13636if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013637 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13638echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013639else
Reid Spencera773bd52006-08-04 18:18:08 +000013640 { echo "$as_me:$LINENO: result: no" >&5
13641echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013642fi
13643
Reid Spencera773bd52006-08-04 18:18:08 +000013644 if test "x$ac_ct_AR" = x; then
13645 AR="false"
13646 else
13647 case $cross_compiling:$ac_tool_warned in
13648yes:)
13649{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13650whose name does not start with the host triplet. If you think this
13651configuration is useful to you, please write to autoconf@gnu.org." >&5
13652echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13653whose name does not start with the host triplet. If you think this
13654configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13655ac_tool_warned=yes ;;
13656esac
13657 AR=$ac_ct_AR
13658 fi
John Criswell47fdd832003-07-14 16:52:07 +000013659else
13660 AR="$ac_cv_prog_AR"
13661fi
13662
John Criswell7a73b802003-06-30 21:59:07 +000013663if test -n "$ac_tool_prefix"; then
13664 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13665set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013668if test "${ac_cv_prog_RANLIB+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671 if test -n "$RANLIB"; then
13672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13673else
13674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675for as_dir in $PATH
13676do
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013680 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 +000013681 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13684 fi
13685done
13686done
Reid Spencera773bd52006-08-04 18:18:08 +000013687IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013688
13689fi
13690fi
13691RANLIB=$ac_cv_prog_RANLIB
13692if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013693 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13694echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013695else
Reid Spencera773bd52006-08-04 18:18:08 +000013696 { echo "$as_me:$LINENO: result: no" >&5
13697echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013698fi
13699
Reid Spencera773bd52006-08-04 18:18:08 +000013700
John Criswell7a73b802003-06-30 21:59:07 +000013701fi
13702if test -z "$ac_cv_prog_RANLIB"; then
13703 ac_ct_RANLIB=$RANLIB
13704 # Extract the first word of "ranlib", so it can be a program name with args.
13705set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013708if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710else
13711 if test -n "$ac_ct_RANLIB"; then
13712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13713else
13714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715for as_dir in $PATH
13716do
13717 IFS=$as_save_IFS
13718 test -z "$as_dir" && as_dir=.
13719 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013720 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 +000013721 ac_cv_prog_ac_ct_RANLIB="ranlib"
13722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13723 break 2
13724 fi
13725done
13726done
Reid Spencera773bd52006-08-04 18:18:08 +000013727IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013728
John Criswell7a73b802003-06-30 21:59:07 +000013729fi
13730fi
13731ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13732if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013733 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13734echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013735else
Reid Spencera773bd52006-08-04 18:18:08 +000013736 { echo "$as_me:$LINENO: result: no" >&5
13737echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013738fi
13739
Reid Spencera773bd52006-08-04 18:18:08 +000013740 if test "x$ac_ct_RANLIB" = x; then
13741 RANLIB=":"
13742 else
13743 case $cross_compiling:$ac_tool_warned in
13744yes:)
13745{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13746whose name does not start with the host triplet. If you think this
13747configuration is useful to you, please write to autoconf@gnu.org." >&5
13748echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13749whose name does not start with the host triplet. If you think this
13750configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13751ac_tool_warned=yes ;;
13752esac
13753 RANLIB=$ac_ct_RANLIB
13754 fi
John Criswell7a73b802003-06-30 21:59:07 +000013755else
13756 RANLIB="$ac_cv_prog_RANLIB"
13757fi
13758
13759if test -n "$ac_tool_prefix"; then
13760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13761set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013764if test "${ac_cv_prog_STRIP+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766else
13767 if test -n "$STRIP"; then
13768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13769else
13770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771for as_dir in $PATH
13772do
13773 IFS=$as_save_IFS
13774 test -z "$as_dir" && as_dir=.
13775 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013776 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 +000013777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13779 break 2
13780 fi
13781done
13782done
Reid Spencera773bd52006-08-04 18:18:08 +000013783IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013784
13785fi
13786fi
13787STRIP=$ac_cv_prog_STRIP
13788if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013789 { echo "$as_me:$LINENO: result: $STRIP" >&5
13790echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013791else
Reid Spencera773bd52006-08-04 18:18:08 +000013792 { echo "$as_me:$LINENO: result: no" >&5
13793echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013794fi
13795
Reid Spencera773bd52006-08-04 18:18:08 +000013796
John Criswell7a73b802003-06-30 21:59:07 +000013797fi
13798if test -z "$ac_cv_prog_STRIP"; then
13799 ac_ct_STRIP=$STRIP
13800 # Extract the first word of "strip", so it can be a program name with args.
13801set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013804if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 if test -n "$ac_ct_STRIP"; then
13808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13809else
13810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811for as_dir in $PATH
13812do
13813 IFS=$as_save_IFS
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013816 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 +000013817 ac_cv_prog_ac_ct_STRIP="strip"
13818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13819 break 2
13820 fi
13821done
13822done
Reid Spencera773bd52006-08-04 18:18:08 +000013823IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013824
John Criswell7a73b802003-06-30 21:59:07 +000013825fi
13826fi
13827ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13828if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013829 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13830echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013831else
Reid Spencera773bd52006-08-04 18:18:08 +000013832 { echo "$as_me:$LINENO: result: no" >&5
13833echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013834fi
13835
Reid Spencera773bd52006-08-04 18:18:08 +000013836 if test "x$ac_ct_STRIP" = x; then
13837 STRIP=":"
13838 else
13839 case $cross_compiling:$ac_tool_warned in
13840yes:)
13841{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13842whose name does not start with the host triplet. If you think this
13843configuration is useful to you, please write to autoconf@gnu.org." >&5
13844echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13845whose name does not start with the host triplet. If you think this
13846configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13847ac_tool_warned=yes ;;
13848esac
13849 STRIP=$ac_ct_STRIP
13850 fi
John Criswell7a73b802003-06-30 21:59:07 +000013851else
13852 STRIP="$ac_cv_prog_STRIP"
13853fi
13854
13855
John Criswell7a73b802003-06-30 21:59:07 +000013856old_CC="$CC"
13857old_CFLAGS="$CFLAGS"
13858
13859# Set sane defaults for various variables
13860test -z "$AR" && AR=ar
13861test -z "$AR_FLAGS" && AR_FLAGS=cru
13862test -z "$AS" && AS=as
13863test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013864test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013865test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013866test -z "$DLLTOOL" && DLLTOOL=dlltool
13867test -z "$LD" && LD=ld
13868test -z "$LN_S" && LN_S="ln -s"
13869test -z "$MAGIC_CMD" && MAGIC_CMD=file
13870test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013871test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013872test -z "$OBJDUMP" && OBJDUMP=objdump
13873test -z "$RANLIB" && RANLIB=:
13874test -z "$STRIP" && STRIP=:
13875test -z "$ac_objext" && ac_objext=o
13876
John Criswell7a73b802003-06-30 21:59:07 +000013877# Determine commands to create old-style static archives.
13878old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13879old_postinstall_cmds='chmod 644 $oldlib'
13880old_postuninstall_cmds=
13881
13882if test -n "$RANLIB"; then
13883 case $host_os in
13884 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013886 ;;
13887 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013889 ;;
13890 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013891 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013892fi
13893
Reid Spencera773bd52006-08-04 18:18:08 +000013894for cc_temp in $compiler""; do
13895 case $cc_temp in
13896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13898 \-*) ;;
13899 *) break;;
13900 esac
13901done
13902cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13903
Reid Spencer2706f8c2004-09-19 23:53:36 +000013904
John Criswell47fdd832003-07-14 16:52:07 +000013905# Only perform the check for file, if the check method requires it
13906case $deplibs_check_method in
13907file_magic*)
13908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013909 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13910echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013911if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013913else
John Criswell47fdd832003-07-14 16:52:07 +000013914 case $MAGIC_CMD in
13915[\\/*] | ?:[\\/]*)
13916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13917 ;;
13918*)
13919 lt_save_MAGIC_CMD="$MAGIC_CMD"
13920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13922 for ac_dir in $ac_dummy; do
13923 IFS="$lt_save_ifs"
13924 test -z "$ac_dir" && ac_dir=.
13925 if test -f $ac_dir/${ac_tool_prefix}file; then
13926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13927 if test -n "$file_magic_test_file"; then
13928 case $deplibs_check_method in
13929 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13933 $EGREP "$file_magic_regex" > /dev/null; then
13934 :
13935 else
13936 cat <<EOF 1>&2
13937
13938*** Warning: the command libtool uses to detect shared libraries,
13939*** $file_magic_cmd, produces output that libtool cannot recognize.
13940*** The result is that libtool may fail to recognize shared libraries
13941*** as such. This will affect the creation of libtool libraries that
13942*** depend on shared libraries, but programs linked with such libtool
13943*** libraries will work regardless of this problem. Nevertheless, you
13944*** may want to report the problem to your system manager and/or to
13945*** bug-libtool@gnu.org
13946
13947EOF
13948 fi ;;
13949 esac
13950 fi
13951 break
13952 fi
13953 done
13954 IFS="$lt_save_ifs"
13955 MAGIC_CMD="$lt_save_MAGIC_CMD"
13956 ;;
13957esac
John Criswell7a73b802003-06-30 21:59:07 +000013958fi
John Criswell7a73b802003-06-30 21:59:07 +000013959
John Criswell47fdd832003-07-14 16:52:07 +000013960MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13961if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013962 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13963echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013964else
Reid Spencera773bd52006-08-04 18:18:08 +000013965 { echo "$as_me:$LINENO: result: no" >&5
13966echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013967fi
John Criswell7a73b802003-06-30 21:59:07 +000013968
John Criswell47fdd832003-07-14 16:52:07 +000013969if test -z "$lt_cv_path_MAGIC_CMD"; then
13970 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013971 { echo "$as_me:$LINENO: checking for file" >&5
13972echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013973if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975else
13976 case $MAGIC_CMD in
13977[\\/*] | ?:[\\/]*)
13978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13979 ;;
13980*)
13981 lt_save_MAGIC_CMD="$MAGIC_CMD"
13982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13984 for ac_dir in $ac_dummy; do
13985 IFS="$lt_save_ifs"
13986 test -z "$ac_dir" && ac_dir=.
13987 if test -f $ac_dir/file; then
13988 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13989 if test -n "$file_magic_test_file"; then
13990 case $deplibs_check_method in
13991 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13995 $EGREP "$file_magic_regex" > /dev/null; then
13996 :
13997 else
13998 cat <<EOF 1>&2
13999
14000*** Warning: the command libtool uses to detect shared libraries,
14001*** $file_magic_cmd, produces output that libtool cannot recognize.
14002*** The result is that libtool may fail to recognize shared libraries
14003*** as such. This will affect the creation of libtool libraries that
14004*** depend on shared libraries, but programs linked with such libtool
14005*** libraries will work regardless of this problem. Nevertheless, you
14006*** may want to report the problem to your system manager and/or to
14007*** bug-libtool@gnu.org
14008
14009EOF
14010 fi ;;
14011 esac
14012 fi
14013 break
14014 fi
14015 done
14016 IFS="$lt_save_ifs"
14017 MAGIC_CMD="$lt_save_MAGIC_CMD"
14018 ;;
14019esac
14020fi
14021
14022MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14023if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014024 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14025echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014026else
Reid Spencera773bd52006-08-04 18:18:08 +000014027 { echo "$as_me:$LINENO: result: no" >&5
14028echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014029fi
14030
14031 else
14032 MAGIC_CMD=:
14033 fi
14034fi
14035
14036 fi
14037 ;;
14038esac
14039
Reid Spencer17795972004-11-18 09:47:37 +000014040enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014041enable_win32_dll=no
14042
Reid Spencera773bd52006-08-04 18:18:08 +000014043# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014044if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014045 enableval=$enable_libtool_lock;
14046fi
John Criswell47fdd832003-07-14 16:52:07 +000014047
John Criswell47fdd832003-07-14 16:52:07 +000014048test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14049
John Criswell7a73b802003-06-30 21:59:07 +000014050
Reid Spencera773bd52006-08-04 18:18:08 +000014051# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014052if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014053 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014054else
14055 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014056fi
14057
John Criswell7a73b802003-06-30 21:59:07 +000014058test -z "$pic_mode" && pic_mode=default
14059
John Criswell47fdd832003-07-14 16:52:07 +000014060# Use C for the default configuration in the libtool script
14061tagname=
14062lt_save_CC="$CC"
14063ac_ext=c
14064ac_cpp='$CPP $CPPFLAGS'
14065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14067ac_compiler_gnu=$ac_cv_c_compiler_gnu
14068
14069
14070# Source file extension for C test sources.
14071ac_ext=c
14072
14073# Object file extension for compiled C test sources.
14074objext=o
14075objext=$objext
14076
14077# Code to be used in simple compile tests
14078lt_simple_compile_test_code="int some_variable = 0;\n"
14079
14080# Code to be used in simple link tests
14081lt_simple_link_test_code='int main(){return(0);}\n'
14082
14083
14084# If no C compiler was specified, use CC.
14085LTCC=${LTCC-"$CC"}
14086
Reid Spencera773bd52006-08-04 18:18:08 +000014087# If no C compiler flags were specified, use CFLAGS.
14088LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14089
John Criswell47fdd832003-07-14 16:52:07 +000014090# Allow CC to be a program name with arguments.
14091compiler=$CC
14092
14093
Reid Spencera773bd52006-08-04 18:18:08 +000014094# save warnings/boilerplate of simple test code
14095ac_outfile=conftest.$ac_objext
14096printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14097eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14098_lt_compiler_boilerplate=`cat conftest.err`
14099$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014100
Reid Spencera773bd52006-08-04 18:18:08 +000014101ac_outfile=conftest.$ac_objext
14102printf "$lt_simple_link_test_code" >conftest.$ac_ext
14103eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14104_lt_linker_boilerplate=`cat conftest.err`
14105$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014106
14107
John Criswell47fdd832003-07-14 16:52:07 +000014108
14109lt_prog_compiler_no_builtin_flag=
14110
14111if test "$GCC" = yes; then
14112 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14113
Reid Spencer2706f8c2004-09-19 23:53:36 +000014114
Reid Spencera773bd52006-08-04 18:18:08 +000014115{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14116echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014117if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119else
14120 lt_cv_prog_compiler_rtti_exceptions=no
14121 ac_outfile=conftest.$ac_objext
14122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14123 lt_compiler_flag="-fno-rtti -fno-exceptions"
14124 # Insert the option either (1) after the last *FLAGS variable, or
14125 # (2) before a word containing "conftest.", or (3) at the end.
14126 # Note that $ac_compile itself does not contain backslashes and begins
14127 # with a dollar sign (not a hyphen), so the echo should work correctly.
14128 # The option is referenced via a variable to avoid confusing sed.
14129 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14132 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000014133 (eval echo "\"\$as_me:14133: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014134 (eval "$lt_compile" 2>conftest.err)
14135 ac_status=$?
14136 cat conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000014137 echo "$as_me:14137: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014138 if (exit $ac_status) && test -s "$ac_outfile"; then
14139 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014140 # So say no if there are warnings other than the usual output.
14141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014144 lt_cv_prog_compiler_rtti_exceptions=yes
14145 fi
14146 fi
14147 $rm conftest*
14148
14149fi
Reid Spencera773bd52006-08-04 18:18:08 +000014150{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14151echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014152
14153if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14154 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14155else
14156 :
14157fi
14158
14159fi
14160
14161lt_prog_compiler_wl=
14162lt_prog_compiler_pic=
14163lt_prog_compiler_static=
14164
Reid Spencera773bd52006-08-04 18:18:08 +000014165{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14166echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014167
14168 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014169 lt_prog_compiler_wl='-Wl,'
14170 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014171
14172 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014173 aix*)
14174 # All AIX code is PIC.
14175 if test "$host_cpu" = ia64; then
14176 # AIX 5 now supports IA64 processor
14177 lt_prog_compiler_static='-Bstatic'
14178 fi
John Criswell7a73b802003-06-30 21:59:07 +000014179 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014180
John Criswell7a73b802003-06-30 21:59:07 +000014181 amigaos*)
14182 # FIXME: we need at least 68020 code to build shared libraries, but
14183 # adding the `-m68020' flag to GCC prevents building anything better,
14184 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014185 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014186 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014187
14188 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014189 # PIC is the default for these OSes.
14190 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014191
14192 mingw* | pw32* | os2*)
14193 # This hack is so that the source file can tell whether it is being
14194 # built for inclusion in a dll (and should export symbols for example).
14195 lt_prog_compiler_pic='-DDLL_EXPORT'
14196 ;;
14197
John Criswell7a73b802003-06-30 21:59:07 +000014198 darwin* | rhapsody*)
14199 # PIC is the default on this platform
14200 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014201 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014202 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014203
Reid Spencera773bd52006-08-04 18:18:08 +000014204 interix3*)
14205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14206 # Instead, we relocate shared libraries at runtime.
14207 ;;
14208
John Criswell47fdd832003-07-14 16:52:07 +000014209 msdosdjgpp*)
14210 # Just because we use GCC doesn't mean we suddenly get shared libraries
14211 # on systems that don't support them.
14212 lt_prog_compiler_can_build_shared=no
14213 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014214 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014215
John Criswell7a73b802003-06-30 21:59:07 +000014216 sysv4*MP*)
14217 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014218 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014219 fi
14220 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014221
14222 hpux*)
14223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14224 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014225 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014226 hppa*64*|ia64*)
14227 # +Z the default
14228 ;;
14229 *)
14230 lt_prog_compiler_pic='-fPIC'
14231 ;;
14232 esac
14233 ;;
14234
John Criswell7a73b802003-06-30 21:59:07 +000014235 *)
John Criswell47fdd832003-07-14 16:52:07 +000014236 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014237 ;;
14238 esac
14239 else
John Criswell47fdd832003-07-14 16:52:07 +000014240 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014241 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014242 aix*)
14243 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014244 if test "$host_cpu" = ia64; then
14245 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014246 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014247 else
John Criswell47fdd832003-07-14 16:52:07 +000014248 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014249 fi
14250 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014251 darwin*)
14252 # PIC is the default on this platform
14253 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014254 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014255 xlc*)
14256 lt_prog_compiler_pic='-qnocommon'
14257 lt_prog_compiler_wl='-Wl,'
14258 ;;
14259 esac
14260 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014261
John Criswell47fdd832003-07-14 16:52:07 +000014262 mingw* | pw32* | os2*)
14263 # This hack is so that the source file can tell whether it is being
14264 # built for inclusion in a dll (and should export symbols for example).
14265 lt_prog_compiler_pic='-DDLL_EXPORT'
14266 ;;
14267
John Criswell7a73b802003-06-30 21:59:07 +000014268 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014269 lt_prog_compiler_wl='-Wl,'
14270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14271 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014272 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014273 hppa*64*|ia64*)
14274 # +Z the default
14275 ;;
14276 *)
14277 lt_prog_compiler_pic='+Z'
14278 ;;
14279 esac
14280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14281 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014282 ;;
14283
John Criswell47fdd832003-07-14 16:52:07 +000014284 irix5* | irix6* | nonstopux*)
14285 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014286 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014287 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014288 ;;
14289
14290 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014291 lt_prog_compiler_pic='-KPIC'
14292 lt_prog_compiler_static='-Bstatic'
14293 ;;
14294
14295 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014296 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014297 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014298 lt_prog_compiler_wl='-Wl,'
14299 lt_prog_compiler_pic='-KPIC'
14300 lt_prog_compiler_static='-static'
14301 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014302 pgcc* | pgf77* | pgf90* | pgf95*)
14303 # Portland Group compilers (*not* the Pentium gcc compiler,
14304 # which looks to be a dead project)
14305 lt_prog_compiler_wl='-Wl,'
14306 lt_prog_compiler_pic='-fpic'
14307 lt_prog_compiler_static='-Bstatic'
14308 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014309 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014310 lt_prog_compiler_wl='-Wl,'
14311 # All Alpha code is PIC.
14312 lt_prog_compiler_static='-non_shared'
14313 ;;
14314 esac
John Criswell7a73b802003-06-30 21:59:07 +000014315 ;;
14316
14317 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014318 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014319 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014320 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014321 ;;
14322
John Criswell7a73b802003-06-30 21:59:07 +000014323 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014324 lt_prog_compiler_pic='-KPIC'
14325 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014326 case $cc_basename in
14327 f77* | f90* | f95*)
14328 lt_prog_compiler_wl='-Qoption ld ';;
14329 *)
14330 lt_prog_compiler_wl='-Wl,';;
14331 esac
John Criswell7a73b802003-06-30 21:59:07 +000014332 ;;
14333
14334 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014335 lt_prog_compiler_wl='-Qoption ld '
14336 lt_prog_compiler_pic='-PIC'
14337 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014338 ;;
14339
Reid Spencera773bd52006-08-04 18:18:08 +000014340 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014341 lt_prog_compiler_wl='-Wl,'
14342 lt_prog_compiler_pic='-KPIC'
14343 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014344 ;;
14345
14346 sysv4*MP*)
14347 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014348 lt_prog_compiler_pic='-Kconform_pic'
14349 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014350 fi
14351 ;;
14352
Reid Spencera773bd52006-08-04 18:18:08 +000014353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14354 lt_prog_compiler_wl='-Wl,'
14355 lt_prog_compiler_pic='-KPIC'
14356 lt_prog_compiler_static='-Bstatic'
14357 ;;
14358
14359 unicos*)
14360 lt_prog_compiler_wl='-Wl,'
14361 lt_prog_compiler_can_build_shared=no
14362 ;;
14363
John Criswell47fdd832003-07-14 16:52:07 +000014364 uts4*)
14365 lt_prog_compiler_pic='-pic'
14366 lt_prog_compiler_static='-Bstatic'
14367 ;;
14368
John Criswell7a73b802003-06-30 21:59:07 +000014369 *)
John Criswell47fdd832003-07-14 16:52:07 +000014370 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014371 ;;
14372 esac
14373 fi
14374
Reid Spencera773bd52006-08-04 18:18:08 +000014375{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14376echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014377
John Criswell47fdd832003-07-14 16:52:07 +000014378#
14379# Check to make sure the PIC flag actually works.
14380#
14381if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014382
Reid Spencera773bd52006-08-04 18:18:08 +000014383{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14384echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014385if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387else
John Criswell47fdd832003-07-14 16:52:07 +000014388 lt_prog_compiler_pic_works=no
14389 ac_outfile=conftest.$ac_objext
14390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14391 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14392 # Insert the option either (1) after the last *FLAGS variable, or
14393 # (2) before a word containing "conftest.", or (3) at the end.
14394 # Note that $ac_compile itself does not contain backslashes and begins
14395 # with a dollar sign (not a hyphen), so the echo should work correctly.
14396 # The option is referenced via a variable to avoid confusing sed.
14397 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14400 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000014401 (eval echo "\"\$as_me:14401: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014402 (eval "$lt_compile" 2>conftest.err)
14403 ac_status=$?
14404 cat conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000014405 echo "$as_me:14405: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014406 if (exit $ac_status) && test -s "$ac_outfile"; then
14407 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014408 # So say no if there are warnings other than the usual output.
14409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014412 lt_prog_compiler_pic_works=yes
14413 fi
14414 fi
14415 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014416
John Criswell47fdd832003-07-14 16:52:07 +000014417fi
Reid Spencera773bd52006-08-04 18:18:08 +000014418{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14419echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014420
John Criswell47fdd832003-07-14 16:52:07 +000014421if test x"$lt_prog_compiler_pic_works" = xyes; then
14422 case $lt_prog_compiler_pic in
14423 "" | " "*) ;;
14424 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14425 esac
John Criswell7a73b802003-06-30 21:59:07 +000014426else
John Criswell47fdd832003-07-14 16:52:07 +000014427 lt_prog_compiler_pic=
14428 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014429fi
14430
John Criswell7a73b802003-06-30 21:59:07 +000014431fi
Reid Spencera773bd52006-08-04 18:18:08 +000014432case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014433 # For platforms which do not support PIC, -DPIC is meaningless:
14434 *djgpp*)
14435 lt_prog_compiler_pic=
14436 ;;
14437 *)
14438 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14439 ;;
14440esac
John Criswell7a73b802003-06-30 21:59:07 +000014441
Reid Spencera773bd52006-08-04 18:18:08 +000014442#
14443# Check to make sure the static flag actually works.
14444#
14445wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14446{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14447echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14448if test "${lt_prog_compiler_static_works+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14450else
14451 lt_prog_compiler_static_works=no
14452 save_LDFLAGS="$LDFLAGS"
14453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14454 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14456 # The linker can only warn and ignore the option if not recognized
14457 # So say no if there are warnings
14458 if test -s conftest.err; then
14459 # Append any errors to the config.log.
14460 cat conftest.err 1>&5
14461 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14463 if diff conftest.exp conftest.er2 >/dev/null; then
14464 lt_prog_compiler_static_works=yes
14465 fi
14466 else
14467 lt_prog_compiler_static_works=yes
14468 fi
14469 fi
14470 $rm conftest*
14471 LDFLAGS="$save_LDFLAGS"
14472
14473fi
14474{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14475echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14476
14477if test x"$lt_prog_compiler_static_works" = xyes; then
14478 :
14479else
14480 lt_prog_compiler_static=
14481fi
14482
14483
14484{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14485echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014486if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488else
John Criswell47fdd832003-07-14 16:52:07 +000014489 lt_cv_prog_compiler_c_o=no
14490 $rm -r conftest 2>/dev/null
14491 mkdir conftest
14492 cd conftest
14493 mkdir out
14494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014495
John Criswell47fdd832003-07-14 16:52:07 +000014496 lt_compiler_flag="-o out/conftest2.$ac_objext"
14497 # Insert the option either (1) after the last *FLAGS variable, or
14498 # (2) before a word containing "conftest.", or (3) at the end.
14499 # Note that $ac_compile itself does not contain backslashes and begins
14500 # with a dollar sign (not a hyphen), so the echo should work correctly.
14501 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14504 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000014505 (eval echo "\"\$as_me:14505: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014506 (eval "$lt_compile" 2>out/conftest.err)
14507 ac_status=$?
14508 cat out/conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000014509 echo "$as_me:14509: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14511 then
14512 # The compiler can only warn and ignore the option if not recognized
14513 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014517 lt_cv_prog_compiler_c_o=yes
14518 fi
14519 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014520 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014521 $rm conftest*
14522 # SGI C++ compiler will create directory out/ii_files/ for
14523 # template instantiation
14524 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14525 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014526 cd ..
14527 rmdir conftest
14528 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014529
14530fi
Reid Spencera773bd52006-08-04 18:18:08 +000014531{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14532echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014533
John Criswell7a73b802003-06-30 21:59:07 +000014534
John Criswell7a73b802003-06-30 21:59:07 +000014535hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014536if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014537 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014538 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14539echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014540 hard_links=yes
14541 $rm conftest*
14542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14543 touch conftest.a
14544 ln conftest.a conftest.b 2>&5 || hard_links=no
14545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014546 { echo "$as_me:$LINENO: result: $hard_links" >&5
14547echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014548 if test "$hard_links" = no; then
14549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14550echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14551 need_locks=warn
14552 fi
14553else
14554 need_locks=no
14555fi
John Criswell7a73b802003-06-30 21:59:07 +000014556
Reid Spencera773bd52006-08-04 18:18:08 +000014557{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14558echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014559
14560 runpath_var=
14561 allow_undefined_flag=
14562 enable_shared_with_static_runtimes=no
14563 archive_cmds=
14564 archive_expsym_cmds=
14565 old_archive_From_new_cmds=
14566 old_archive_from_expsyms_cmds=
14567 export_dynamic_flag_spec=
14568 whole_archive_flag_spec=
14569 thread_safe_flag_spec=
14570 hardcode_libdir_flag_spec=
14571 hardcode_libdir_flag_spec_ld=
14572 hardcode_libdir_separator=
14573 hardcode_direct=no
14574 hardcode_minus_L=no
14575 hardcode_shlibpath_var=unsupported
14576 link_all_deplibs=unknown
14577 hardcode_automatic=no
14578 module_cmds=
14579 module_expsym_cmds=
14580 always_export_symbols=no
14581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14582 # include_expsyms should be a list of space-separated symbols to be *always*
14583 # included in the symbol list
14584 include_expsyms=
14585 # exclude_expsyms can be an extended regexp of symbols to exclude
14586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14588 # as well as any symbol that contains `d'.
14589 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14591 # platforms (ab)use it in PIC code, but their linkers get confused if
14592 # the symbol is explicitly referenced. Since portable code cannot
14593 # rely on this symbol name, it's probably fine to never include it in
14594 # preloaded symbol tables.
14595 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014596 # Just being paranoid about ensuring that cc_basename is set.
14597 for cc_temp in $compiler""; do
14598 case $cc_temp in
14599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14601 \-*) ;;
14602 *) break;;
14603 esac
14604done
14605cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014606
14607 case $host_os in
14608 cygwin* | mingw* | pw32*)
14609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14610 # When not using gcc, we currently assume that we are using
14611 # Microsoft Visual C++.
14612 if test "$GCC" != yes; then
14613 with_gnu_ld=no
14614 fi
14615 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014616 interix*)
14617 # we just hope/assume this is gcc and not c89 (= MSVC++)
14618 with_gnu_ld=yes
14619 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014620 openbsd*)
14621 with_gnu_ld=no
14622 ;;
14623 esac
14624
14625 ld_shlibs=yes
14626 if test "$with_gnu_ld" = yes; then
14627 # If archive_cmds runs LD, not CC, wlarc should be empty
14628 wlarc='${wl}'
14629
Reid Spencera773bd52006-08-04 18:18:08 +000014630 # Set some defaults for GNU ld with shared library support. These
14631 # are reset later if shared libraries are not supported. Putting them
14632 # here allows them to be overridden if necessary.
14633 runpath_var=LD_RUN_PATH
14634 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14635 export_dynamic_flag_spec='${wl}--export-dynamic'
14636 # ancient GNU ld didn't support --whole-archive et. al.
14637 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14638 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14639 else
14640 whole_archive_flag_spec=
14641 fi
14642 supports_anon_versioning=no
14643 case `$LD -v 2>/dev/null` in
14644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14647 *\ 2.11.*) ;; # other 2.11 versions
14648 *) supports_anon_versioning=yes ;;
14649 esac
14650
John Criswell47fdd832003-07-14 16:52:07 +000014651 # See if GNU ld supports shared libraries.
14652 case $host_os in
14653 aix3* | aix4* | aix5*)
14654 # On AIX/PPC, the GNU linker is very broken
14655 if test "$host_cpu" != ia64; then
14656 ld_shlibs=no
14657 cat <<EOF 1>&2
14658
14659*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14660*** to be unable to reliably create shared libraries on AIX.
14661*** Therefore, libtool is disabling shared libraries support. If you
14662*** really care for shared libraries, you may want to modify your PATH
14663*** so that a non-GNU linker is found, and then restart.
14664
14665EOF
14666 fi
14667 ;;
14668
14669 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014670 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 +000014671 hardcode_libdir_flag_spec='-L$libdir'
14672 hardcode_minus_L=yes
14673
14674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14675 # that the semantics of dynamic libraries on AmigaOS, at least up
14676 # to version 4, is to share data among multiple programs linked
14677 # with the same dynamic library. Since this doesn't match the
14678 # behavior of shared libraries on other platforms, we can't use
14679 # them.
14680 ld_shlibs=no
14681 ;;
14682
14683 beos*)
14684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14685 allow_undefined_flag=unsupported
14686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14687 # support --undefined. This deserves some investigation. FIXME
14688 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14689 else
14690 ld_shlibs=no
14691 fi
14692 ;;
14693
14694 cygwin* | mingw* | pw32*)
14695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14696 # as there is no search path for DLLs.
14697 hardcode_libdir_flag_spec='-L$libdir'
14698 allow_undefined_flag=unsupported
14699 always_export_symbols=no
14700 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014701 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 +000014702
14703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014704 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 +000014705 # If the export-symbols file already is a .def file (1st line
14706 # is EXPORTS), use it as is; otherwise, prepend...
14707 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14708 cp $export_symbols $output_objdir/$soname.def;
14709 else
14710 echo EXPORTS > $output_objdir/$soname.def;
14711 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014712 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14714 else
14715 ld_shlibs=no
14716 fi
14717 ;;
14718
14719 interix3*)
14720 hardcode_direct=no
14721 hardcode_shlibpath_var=no
14722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14723 export_dynamic_flag_spec='${wl}-E'
14724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14725 # Instead, shared libraries are loaded at an image base (0x10000000 by
14726 # default) and relocated if they conflict, which is a slow very memory
14727 # consuming and fragmenting process. To avoid this, we pick a random,
14728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14731 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'
14732 ;;
14733
14734 linux*)
14735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14736 tmp_addflag=
14737 case $cc_basename,$host_cpu in
14738 pgcc*) # Portland Group C compiler
14739 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'
14740 tmp_addflag=' $pic_flag'
14741 ;;
14742 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14743 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'
14744 tmp_addflag=' $pic_flag -Mnomain' ;;
14745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14746 tmp_addflag=' -i_dynamic' ;;
14747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14748 tmp_addflag=' -i_dynamic -nofor_main' ;;
14749 ifc* | ifort*) # Intel Fortran compiler
14750 tmp_addflag=' -nofor_main' ;;
14751 esac
14752 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14753
14754 if test $supports_anon_versioning = yes; then
14755 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14757 $echo "local: *; };" >> $output_objdir/$libname.ver~
14758 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14759 fi
John Criswell47fdd832003-07-14 16:52:07 +000014760 else
14761 ld_shlibs=no
14762 fi
14763 ;;
14764
14765 netbsd*)
14766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14768 wlarc=
14769 else
14770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14772 fi
14773 ;;
14774
Reid Spencera773bd52006-08-04 18:18:08 +000014775 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14777 ld_shlibs=no
14778 cat <<EOF 1>&2
14779
14780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14781*** create shared libraries on Solaris systems. Therefore, libtool
14782*** is disabling shared libraries support. We urge you to upgrade GNU
14783*** binutils to release 2.9.1 or newer. Another option is to modify
14784*** your PATH or compiler configuration so that the native linker is
14785*** used, and then restart.
14786
14787EOF
14788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14791 else
14792 ld_shlibs=no
14793 fi
14794 ;;
14795
Reid Spencera773bd52006-08-04 18:18:08 +000014796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14797 case `$LD -v 2>&1` in
14798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14799 ld_shlibs=no
14800 cat <<_LT_EOF 1>&2
14801
14802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14803*** reliably create shared libraries on SCO systems. Therefore, libtool
14804*** is disabling shared libraries support. We urge you to upgrade GNU
14805*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14806*** your PATH or compiler configuration so that the native linker is
14807*** used, and then restart.
14808
14809_LT_EOF
14810 ;;
14811 *)
14812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14813 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14816 else
14817 ld_shlibs=no
14818 fi
14819 ;;
14820 esac
14821 ;;
14822
John Criswell47fdd832003-07-14 16:52:07 +000014823 sunos4*)
14824 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14825 wlarc=
14826 hardcode_direct=yes
14827 hardcode_shlibpath_var=no
14828 ;;
14829
14830 *)
14831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14834 else
14835 ld_shlibs=no
14836 fi
14837 ;;
14838 esac
14839
Reid Spencera773bd52006-08-04 18:18:08 +000014840 if test "$ld_shlibs" = no; then
14841 runpath_var=
14842 hardcode_libdir_flag_spec=
14843 export_dynamic_flag_spec=
14844 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014845 fi
14846 else
14847 # PORTME fill in a description of your system's linker (not GNU ld)
14848 case $host_os in
14849 aix3*)
14850 allow_undefined_flag=unsupported
14851 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014852 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 +000014853 # Note: this linker hardcodes the directories in LIBPATH if there
14854 # are no directories specified by -L.
14855 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014857 # Neither direct hardcoding nor static linking is supported with a
14858 # broken collect2.
14859 hardcode_direct=unsupported
14860 fi
14861 ;;
14862
14863 aix4* | aix5*)
14864 if test "$host_cpu" = ia64; then
14865 # On IA64, the linker does run time linking by default, so we don't
14866 # have to do anything special.
14867 aix_use_runtimelinking=no
14868 exp_sym_flag='-Bexport'
14869 no_entry_flag=""
14870 else
14871 # If we're using GNU nm, then we don't want the "-C" option.
14872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14874 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'
14875 else
14876 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'
14877 fi
14878 aix_use_runtimelinking=no
14879
14880 # Test if we are trying to use run time linking or normal
14881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14882 # need to do runtime linking.
14883 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14884 for ld_flag in $LDFLAGS; do
14885 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14886 aix_use_runtimelinking=yes
14887 break
14888 fi
14889 done
Reid Spencera773bd52006-08-04 18:18:08 +000014890 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014891 esac
14892
14893 exp_sym_flag='-bexport'
14894 no_entry_flag='-bnoentry'
14895 fi
14896
14897 # When large executables or shared objects are built, AIX ld can
14898 # have problems creating the table of contents. If linking a library
14899 # or program results in "error TOC overflow" add -mminimal-toc to
14900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14902
14903 archive_cmds=''
14904 hardcode_direct=yes
14905 hardcode_libdir_separator=':'
14906 link_all_deplibs=yes
14907
14908 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014909 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014910 # We only want to do this on AIX 4.2 and lower, the check
14911 # below for broken collect2 doesn't work under 4.3+
14912 collect2name=`${CC} -print-prog-name=collect2`
14913 if test -f "$collect2name" && \
14914 strings "$collect2name" | grep resolve_lib_name >/dev/null
14915 then
14916 # We have reworked collect2
14917 hardcode_direct=yes
14918 else
14919 # We have old collect2
14920 hardcode_direct=unsupported
14921 # It fails to find uninstalled libraries when the uninstalled
14922 # path is not listed in the libpath. Setting hardcode_minus_L
14923 # to unsupported forces relinking
14924 hardcode_minus_L=yes
14925 hardcode_libdir_flag_spec='-L$libdir'
14926 hardcode_libdir_separator=
14927 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014929 esac
14930 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014931 if test "$aix_use_runtimelinking" = yes; then
14932 shared_flag="$shared_flag "'${wl}-G'
14933 fi
John Criswell47fdd832003-07-14 16:52:07 +000014934 else
14935 # not using gcc
14936 if test "$host_cpu" = ia64; then
14937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14938 # chokes on -Wl,-G. The following line is correct:
14939 shared_flag='-G'
14940 else
Reid Spencera773bd52006-08-04 18:18:08 +000014941 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014942 shared_flag='${wl}-G'
14943 else
14944 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014945 fi
John Criswell47fdd832003-07-14 16:52:07 +000014946 fi
14947 fi
14948
14949 # It seems that -bexpall does not export symbols beginning with
14950 # underscore (_), so it is better to generate a list of symbols to export.
14951 always_export_symbols=yes
14952 if test "$aix_use_runtimelinking" = yes; then
14953 # Warning - without using the other runtime loading flags (-brtl),
14954 # -berok will link without error, but may produce a broken library.
14955 allow_undefined_flag='-berok'
14956 # Determine the default libpath from the value encoded in an empty executable.
14957 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014958/* confdefs.h. */
14959_ACEOF
14960cat confdefs.h >>conftest.$ac_ext
14961cat >>conftest.$ac_ext <<_ACEOF
14962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014963
John Criswell7a73b802003-06-30 21:59:07 +000014964int
14965main ()
14966{
John Criswell47fdd832003-07-14 16:52:07 +000014967
John Criswell7a73b802003-06-30 21:59:07 +000014968 ;
14969 return 0;
14970}
14971_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014972rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014973if { (ac_try="$ac_link"
14974case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977esac
14978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014980 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000014986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000014997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000esac
15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015006
John Criswell47fdd832003-07-14 16:52:07 +000015007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15008}'`
15009# Check for a 64-bit object if we didn't find anything.
15010if 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; }
15011}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015012else
15013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015014sed 's/^/| /' conftest.$ac_ext >&5
15015
Reid Spencera773bd52006-08-04 18:18:08 +000015016
John Criswell7a73b802003-06-30 21:59:07 +000015017fi
Reid Spencera773bd52006-08-04 18:18:08 +000015018
15019rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015020 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015022
John Criswell47fdd832003-07-14 16:52:07 +000015023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015024 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 +000015025 else
15026 if test "$host_cpu" = ia64; then
15027 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15028 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015029 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 +000015030 else
15031 # Determine the default libpath from the value encoded in an empty executable.
15032 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015033/* confdefs.h. */
15034_ACEOF
15035cat confdefs.h >>conftest.$ac_ext
15036cat >>conftest.$ac_ext <<_ACEOF
15037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015038
John Criswell47fdd832003-07-14 16:52:07 +000015039int
15040main ()
15041{
John Criswell7a73b802003-06-30 21:59:07 +000015042
John Criswell47fdd832003-07-14 16:52:07 +000015043 ;
15044 return 0;
15045}
15046_ACEOF
15047rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015048if { (ac_try="$ac_link"
15049case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015055 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015072 { (case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075esac
15076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015081
John Criswell47fdd832003-07-14 16:52:07 +000015082aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15083}'`
15084# Check for a 64-bit object if we didn't find anything.
15085if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15086}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015087else
John Criswell47fdd832003-07-14 16:52:07 +000015088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015089sed 's/^/| /' conftest.$ac_ext >&5
15090
Reid Spencera773bd52006-08-04 18:18:08 +000015091
John Criswell47fdd832003-07-14 16:52:07 +000015092fi
Reid Spencera773bd52006-08-04 18:18:08 +000015093
15094rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015095 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015097
John Criswell47fdd832003-07-14 16:52:07 +000015098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15099 # Warning - without using the other run time loading flags,
15100 # -berok will link without error, but may produce a broken library.
15101 no_undefined_flag=' ${wl}-bernotok'
15102 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015103 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015104 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015105 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015106 # This is similar to how AIX traditionally builds its shared libraries.
15107 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 +000015108 fi
15109 fi
John Criswell7a73b802003-06-30 21:59:07 +000015110 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015111
15112 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015113 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 +000015114 hardcode_libdir_flag_spec='-L$libdir'
15115 hardcode_minus_L=yes
15116 # see comment about different semantics on the GNU ld section
15117 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015118 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015119
Reid Spencer2706f8c2004-09-19 23:53:36 +000015120 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015121 export_dynamic_flag_spec=-rdynamic
15122 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015123
John Criswell47fdd832003-07-14 16:52:07 +000015124 cygwin* | mingw* | pw32*)
15125 # When not using gcc, we currently assume that we are using
15126 # Microsoft Visual C++.
15127 # hardcode_libdir_flag_spec is actually meaningless, as there is
15128 # no search path for DLLs.
15129 hardcode_libdir_flag_spec=' '
15130 allow_undefined_flag=unsupported
15131 # Tell ltmain to make .lib files, not .a files.
15132 libext=lib
15133 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015134 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015135 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015136 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015137 # The linker will automatically build a .lib file if we build a DLL.
15138 old_archive_From_new_cmds='true'
15139 # FIXME: Should let the user specify the lib program.
15140 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15141 fix_srcfile_path='`cygpath -w "$srcfile"`'
15142 enable_shared_with_static_runtimes=yes
15143 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015144
John Criswell47fdd832003-07-14 16:52:07 +000015145 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015146 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015147 rhapsody* | darwin1.[012])
15148 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15149 ;;
15150 *) # Darwin 1.3 on
15151 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15152 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15153 else
15154 case ${MACOSX_DEPLOYMENT_TARGET} in
15155 10.[012])
15156 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15157 ;;
15158 10.*)
15159 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15160 ;;
15161 esac
15162 fi
15163 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015164 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015165 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015166 hardcode_direct=no
15167 hardcode_automatic=yes
15168 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015169 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015170 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015171 if test "$GCC" = yes ; then
15172 output_verbose_link_cmd='echo'
15173 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15174 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015175 # 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 +000015176 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}'
15177 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 +000015178 else
Reid Spencera773bd52006-08-04 18:18:08 +000015179 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015180 xlc*)
15181 output_verbose_link_cmd='echo'
15182 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15183 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015184 # 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 +000015185 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}'
15186 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 +000015187 ;;
15188 *)
15189 ld_shlibs=no
15190 ;;
15191 esac
John Criswell7a73b802003-06-30 21:59:07 +000015192 fi
John Criswell47fdd832003-07-14 16:52:07 +000015193 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015194
John Criswell47fdd832003-07-14 16:52:07 +000015195 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015197 hardcode_libdir_flag_spec='-L$libdir'
15198 hardcode_shlibpath_var=no
15199 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015200
John Criswell47fdd832003-07-14 16:52:07 +000015201 freebsd1*)
15202 ld_shlibs=no
15203 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015204
John Criswell47fdd832003-07-14 16:52:07 +000015205 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15206 # support. Future versions do this automatically, but an explicit c++rt0.o
15207 # does not break anything, and helps significantly (at the cost of a little
15208 # extra space).
15209 freebsd2.2*)
15210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15211 hardcode_libdir_flag_spec='-R$libdir'
15212 hardcode_direct=yes
15213 hardcode_shlibpath_var=no
15214 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015215
John Criswell47fdd832003-07-14 16:52:07 +000015216 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15217 freebsd2*)
15218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15219 hardcode_direct=yes
15220 hardcode_minus_L=yes
15221 hardcode_shlibpath_var=no
15222 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015223
John Criswell47fdd832003-07-14 16:52:07 +000015224 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015225 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015226 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15227 hardcode_libdir_flag_spec='-R$libdir'
15228 hardcode_direct=yes
15229 hardcode_shlibpath_var=no
15230 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015231
John Criswell47fdd832003-07-14 16:52:07 +000015232 hpux9*)
15233 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015234 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 +000015235 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015236 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 +000015237 fi
15238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15239 hardcode_libdir_separator=:
15240 hardcode_direct=yes
15241
15242 # hardcode_minus_L: Not really in the search PATH,
15243 # but as the default location of the library.
15244 hardcode_minus_L=yes
15245 export_dynamic_flag_spec='${wl}-E'
15246 ;;
15247
Reid Spencera773bd52006-08-04 18:18:08 +000015248 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015249 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015250 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15251 else
15252 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15253 fi
15254 if test "$with_gnu_ld" = no; then
15255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15256 hardcode_libdir_separator=:
15257
15258 hardcode_direct=yes
15259 export_dynamic_flag_spec='${wl}-E'
15260
15261 # hardcode_minus_L: Not really in the search PATH,
15262 # but as the default location of the library.
15263 hardcode_minus_L=yes
15264 fi
15265 ;;
15266
15267 hpux11*)
15268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15269 case $host_cpu in
15270 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015271 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15272 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015273 ia64*)
15274 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15275 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015276 *)
15277 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15278 ;;
15279 esac
15280 else
Reid Spencera773bd52006-08-04 18:18:08 +000015281 case $host_cpu in
15282 hppa*64*)
15283 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15284 ;;
15285 ia64*)
15286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015287 ;;
15288 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015289 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 +000015290 ;;
15291 esac
15292 fi
15293 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15295 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015296
Reid Spencera773bd52006-08-04 18:18:08 +000015297 case $host_cpu in
15298 hppa*64*|ia64*)
15299 hardcode_libdir_flag_spec_ld='+b $libdir'
15300 hardcode_direct=no
15301 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015302 ;;
15303 *)
John Criswell47fdd832003-07-14 16:52:07 +000015304 hardcode_direct=yes
15305 export_dynamic_flag_spec='${wl}-E'
15306
15307 # hardcode_minus_L: Not really in the search PATH,
15308 # but as the default location of the library.
15309 hardcode_minus_L=yes
15310 ;;
15311 esac
15312 fi
15313 ;;
15314
15315 irix5* | irix6* | nonstopux*)
15316 if test "$GCC" = yes; then
15317 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'
15318 else
15319 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'
15320 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15321 fi
15322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15323 hardcode_libdir_separator=:
15324 link_all_deplibs=yes
15325 ;;
15326
15327 netbsd*)
15328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15330 else
15331 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15332 fi
15333 hardcode_libdir_flag_spec='-R$libdir'
15334 hardcode_direct=yes
15335 hardcode_shlibpath_var=no
15336 ;;
15337
15338 newsos6)
15339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15340 hardcode_direct=yes
15341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15342 hardcode_libdir_separator=:
15343 hardcode_shlibpath_var=no
15344 ;;
15345
15346 openbsd*)
15347 hardcode_direct=yes
15348 hardcode_shlibpath_var=no
15349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015351 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 +000015352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15353 export_dynamic_flag_spec='${wl}-E'
15354 else
15355 case $host_os in
15356 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15358 hardcode_libdir_flag_spec='-R$libdir'
15359 ;;
15360 *)
15361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15363 ;;
15364 esac
15365 fi
15366 ;;
15367
15368 os2*)
15369 hardcode_libdir_flag_spec='-L$libdir'
15370 hardcode_minus_L=yes
15371 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015372 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 +000015373 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15374 ;;
15375
15376 osf3*)
15377 if test "$GCC" = yes; then
15378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15379 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'
15380 else
15381 allow_undefined_flag=' -expect_unresolved \*'
15382 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'
15383 fi
15384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15385 hardcode_libdir_separator=:
15386 ;;
15387
15388 osf4* | osf5*) # as osf3* with the addition of -msym flag
15389 if test "$GCC" = yes; then
15390 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15391 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'
15392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15393 else
15394 allow_undefined_flag=' -expect_unresolved \*'
15395 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 +000015396 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 +000015397 $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 +000015398
John Criswell47fdd832003-07-14 16:52:07 +000015399 # Both c and cxx compiler support -rpath directly
15400 hardcode_libdir_flag_spec='-rpath $libdir'
15401 fi
15402 hardcode_libdir_separator=:
15403 ;;
15404
John Criswell47fdd832003-07-14 16:52:07 +000015405 solaris*)
15406 no_undefined_flag=' -z text'
15407 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015408 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015409 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015410 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15411 $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 +000015412 else
Reid Spencera773bd52006-08-04 18:18:08 +000015413 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015414 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015415 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15416 $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 +000015417 fi
15418 hardcode_libdir_flag_spec='-R$libdir'
15419 hardcode_shlibpath_var=no
15420 case $host_os in
15421 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015422 *)
15423 # The compiler driver will combine linker options so we
15424 # cannot just pass the convience library names through
15425 # without $wl, iff we do not link with $LD.
15426 # Luckily, gcc supports the same syntax we need for Sun Studio.
15427 # Supported since Solaris 2.6 (maybe 2.5.1?)
15428 case $wlarc in
15429 '')
15430 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15431 *)
15432 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' ;;
15433 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015434 esac
15435 link_all_deplibs=yes
15436 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015437
John Criswell47fdd832003-07-14 16:52:07 +000015438 sunos4*)
15439 if test "x$host_vendor" = xsequent; then
15440 # Use $CC to link under sequent, because it throws in some extra .o
15441 # files that make .init and .fini sections work.
15442 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15443 else
15444 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15445 fi
15446 hardcode_libdir_flag_spec='-L$libdir'
15447 hardcode_direct=yes
15448 hardcode_minus_L=yes
15449 hardcode_shlibpath_var=no
15450 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015451
John Criswell47fdd832003-07-14 16:52:07 +000015452 sysv4)
15453 case $host_vendor in
15454 sni)
15455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_direct=yes # is this really true???
15457 ;;
15458 siemens)
15459 ## LD is ld it makes a PLAMLIB
15460 ## CC just makes a GrossModule.
15461 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15462 reload_cmds='$CC -r -o $output$reload_objs'
15463 hardcode_direct=no
15464 ;;
15465 motorola)
15466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15467 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15468 ;;
15469 esac
15470 runpath_var='LD_RUN_PATH'
15471 hardcode_shlibpath_var=no
15472 ;;
15473
15474 sysv4.3*)
15475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_shlibpath_var=no
15477 export_dynamic_flag_spec='-Bexport'
15478 ;;
15479
15480 sysv4*MP*)
15481 if test -d /usr/nec; then
15482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15483 hardcode_shlibpath_var=no
15484 runpath_var=LD_RUN_PATH
15485 hardcode_runpath_var=yes
15486 ld_shlibs=yes
15487 fi
15488 ;;
15489
Reid Spencera773bd52006-08-04 18:18:08 +000015490 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15491 no_undefined_flag='${wl}-z,text'
15492 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015493 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015494 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015495
John Criswell47fdd832003-07-14 16:52:07 +000015496 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015497 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15498 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 +000015499 else
Reid Spencera773bd52006-08-04 18:18:08 +000015500 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15501 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 +000015502 fi
John Criswell47fdd832003-07-14 16:52:07 +000015503 ;;
15504
Reid Spencera773bd52006-08-04 18:18:08 +000015505 sysv5* | sco3.2v5* | sco5v6*)
15506 # Note: We can NOT use -z defs as we might desire, because we do not
15507 # link with -lc, and that would cause any symbols used from libc to
15508 # always be unresolved, which means just about no library would
15509 # ever link correctly. If we're not using GNU ld we use -z text
15510 # though, which does catch some bad symbols but isn't as heavy-handed
15511 # as -z defs.
15512 no_undefined_flag='${wl}-z,text'
15513 allow_undefined_flag='${wl}-z,nodefs'
15514 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015515 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015516 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15517 hardcode_libdir_separator=':'
15518 link_all_deplibs=yes
15519 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015520 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015521
15522 if test "$GCC" = yes; then
15523 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525 else
15526 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 fi
John Criswell47fdd832003-07-14 16:52:07 +000015529 ;;
15530
15531 uts4*)
15532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533 hardcode_libdir_flag_spec='-L$libdir'
15534 hardcode_shlibpath_var=no
15535 ;;
15536
15537 *)
15538 ld_shlibs=no
15539 ;;
15540 esac
15541 fi
15542
Reid Spencera773bd52006-08-04 18:18:08 +000015543{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15544echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015545test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015546
John Criswell47fdd832003-07-14 16:52:07 +000015547#
15548# Do we need to explicitly link libc?
15549#
15550case "x$archive_cmds_need_lc" in
15551x|xyes)
15552 # Assume -lc should be added
15553 archive_cmds_need_lc=yes
15554
15555 if test "$enable_shared" = yes && test "$GCC" = yes; then
15556 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015557 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015558 # FIXME: we may have to deal with multi-command sequences.
15559 ;;
15560 '$CC '*)
15561 # Test whether the compiler implicitly links with -lc since on some
15562 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15563 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015564 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15565echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015566 $rm conftest*
15567 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15568
15569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15570 (eval $ac_compile) 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } 2>conftest.err; then
15574 soname=conftest
15575 lib=conftest
15576 libobjs=conftest.$ac_objext
15577 deplibs=
15578 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015579 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015580 compiler_flags=-v
15581 linker_flags=-v
15582 verstring=
15583 output_objdir=.
15584 libname=conftest
15585 lt_save_allow_undefined_flag=$allow_undefined_flag
15586 allow_undefined_flag=
15587 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15588 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }
15592 then
15593 archive_cmds_need_lc=no
15594 else
15595 archive_cmds_need_lc=yes
15596 fi
15597 allow_undefined_flag=$lt_save_allow_undefined_flag
15598 else
15599 cat conftest.err 1>&5
15600 fi
15601 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015602 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15603echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015604 ;;
15605 esac
15606 fi
15607 ;;
15608esac
15609
Reid Spencera773bd52006-08-04 18:18:08 +000015610{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15611echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015612library_names_spec=
15613libname_spec='lib$name'
15614soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015615shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015616postinstall_cmds=
15617postuninstall_cmds=
15618finish_cmds=
15619finish_eval=
15620shlibpath_var=
15621shlibpath_overrides_runpath=unknown
15622version_type=none
15623dynamic_linker="$host_os ld.so"
15624sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015625if test "$GCC" = yes; then
15626 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15627 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15628 # if the path contains ";" then we assume it to be the separator
15629 # otherwise default to the standard path separator (i.e. ":") - it is
15630 # assumed that no part of a normal pathname contains ";" but that should
15631 # okay in the real world where ";" in dirpaths is itself problematic.
15632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15633 else
15634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15635 fi
15636else
15637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15638fi
15639need_lib_prefix=unknown
15640hardcode_into_libs=no
15641
15642# when you set need_version to no, make sure it does not cause -set_version
15643# flags to be left without arguments
15644need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015645
15646case $host_os in
15647aix3*)
15648 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015650 shlibpath_var=LIBPATH
15651
John Criswell47fdd832003-07-14 16:52:07 +000015652 # AIX 3 has no versioning support, so we append a major version to the name.
15653 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015654 ;;
15655
15656aix4* | aix5*)
15657 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015658 need_lib_prefix=no
15659 need_version=no
15660 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015661 if test "$host_cpu" = ia64; then
15662 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015664 shlibpath_var=LD_LIBRARY_PATH
15665 else
15666 # With GCC up to 2.95.x, collect2 would create an import file
15667 # for dependence libraries. The import file would start with
15668 # the line `#! .'. This would cause the generated library to
15669 # depend on `.', always an invalid library. This was fixed in
15670 # development snapshots of GCC prior to 3.0.
15671 case $host_os in
15672 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15674 echo ' yes '
15675 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15676 :
15677 else
15678 can_build_shared=no
15679 fi
15680 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015681 esac
John Criswell47fdd832003-07-14 16:52:07 +000015682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15683 # soname into executable. Probably we can add versioning support to
15684 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015685 if test "$aix_use_runtimelinking" = yes; then
15686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15687 # instead of lib<name>.a to let people know that these are not
15688 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015690 else
15691 # We preserve .a as extension for shared libraries through AIX4.2
15692 # and later when we are not doing run time linking.
15693 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015694 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015695 fi
15696 shlibpath_var=LIBPATH
15697 fi
15698 ;;
15699
15700amigaos*)
15701 library_names_spec='$libname.ixlibrary $libname.a'
15702 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015703 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 +000015704 ;;
15705
15706beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015707 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015708 dynamic_linker="$host_os ld.so"
15709 shlibpath_var=LIBRARY_PATH
15710 ;;
15711
Reid Spencer2706f8c2004-09-19 23:53:36 +000015712bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015713 version_type=linux
15714 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015717 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15720 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015721 # the default ld.so.conf also contains /usr/contrib/lib and
15722 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15723 # libtool to hard-code these into programs
15724 ;;
15725
15726cygwin* | mingw* | pw32*)
15727 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015728 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015729 need_version=no
15730 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015731
John Criswell7a73b802003-06-30 21:59:07 +000015732 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015733 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015734 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015735 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015736 postinstall_cmds='base_file=`basename \${file}`~
15737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15738 dldir=$destdir/`dirname \$dlpath`~
15739 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015740 $install_prog $dir/$dlname \$dldir/$dlname~
15741 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15743 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015744 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015745 shlibpath_overrides_runpath=yes
15746
15747 case $host_os in
15748 cygwin*)
15749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15750 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 +000015751 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015752 ;;
15753 mingw*)
15754 # MinGW DLLs use traditional 'lib' prefix
15755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15757 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15758 # It is most probably a Windows format PATH printed by
15759 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15760 # path with ; separators, and with drive letters. We can handle the
15761 # drive letters (cygwin fileutils understands them), so leave them,
15762 # especially as we might pass files found there to a mingw objdump,
15763 # which wouldn't understand a cygwinified path. Ahh.
15764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15765 else
15766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15767 fi
15768 ;;
15769 pw32*)
15770 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015771 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 +000015772 ;;
15773 esac
John Criswell7a73b802003-06-30 21:59:07 +000015774 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015775
John Criswell7a73b802003-06-30 21:59:07 +000015776 *)
John Criswell47fdd832003-07-14 16:52:07 +000015777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015778 ;;
15779 esac
15780 dynamic_linker='Win32 ld.exe'
15781 # FIXME: first we should search . and the directory the executable is in
15782 shlibpath_var=PATH
15783 ;;
15784
15785darwin* | rhapsody*)
15786 dynamic_linker="$host_os dyld"
15787 version_type=darwin
15788 need_lib_prefix=no
15789 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015790 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015791 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015792 shlibpath_overrides_runpath=yes
15793 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015794 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015795 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015796 if test "$GCC" = yes; then
15797 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"`
15798 else
15799 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015800 fi
15801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15802 ;;
15803
15804dgux*)
15805 version_type=linux
15806 need_lib_prefix=no
15807 need_version=no
15808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15809 soname_spec='${libname}${release}${shared_ext}$major'
15810 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015811 ;;
15812
15813freebsd1*)
15814 dynamic_linker=no
15815 ;;
15816
Reid Spencer2706f8c2004-09-19 23:53:36 +000015817kfreebsd*-gnu)
15818 version_type=linux
15819 need_lib_prefix=no
15820 need_version=no
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 shlibpath_var=LD_LIBRARY_PATH
15824 shlibpath_overrides_runpath=no
15825 hardcode_into_libs=yes
15826 dynamic_linker='GNU ld.so'
15827 ;;
15828
Reid Spencera773bd52006-08-04 18:18:08 +000015829freebsd* | dragonfly*)
15830 # DragonFly does not have aout. When/if they implement a new
15831 # versioning mechanism, adjust this.
15832 if test -x /usr/bin/objformat; then
15833 objformat=`/usr/bin/objformat`
15834 else
15835 case $host_os in
15836 freebsd[123]*) objformat=aout ;;
15837 *) objformat=elf ;;
15838 esac
15839 fi
John Criswell7a73b802003-06-30 21:59:07 +000015840 version_type=freebsd-$objformat
15841 case $version_type in
15842 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015844 need_version=no
15845 need_lib_prefix=no
15846 ;;
15847 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015849 need_version=yes
15850 ;;
15851 esac
15852 shlibpath_var=LD_LIBRARY_PATH
15853 case $host_os in
15854 freebsd2*)
15855 shlibpath_overrides_runpath=yes
15856 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015857 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015858 shlibpath_overrides_runpath=yes
15859 hardcode_into_libs=yes
15860 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015861 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15862 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015863 shlibpath_overrides_runpath=no
15864 hardcode_into_libs=yes
15865 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015866 freebsd*) # from 4.6 on
15867 shlibpath_overrides_runpath=yes
15868 hardcode_into_libs=yes
15869 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015870 esac
15871 ;;
15872
15873gnu*)
15874 version_type=linux
15875 need_lib_prefix=no
15876 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015879 shlibpath_var=LD_LIBRARY_PATH
15880 hardcode_into_libs=yes
15881 ;;
15882
15883hpux9* | hpux10* | hpux11*)
15884 # Give a soname corresponding to the major version so that dld.sl refuses to
15885 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015886 version_type=sunos
15887 need_lib_prefix=no
15888 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015889 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015890 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015891 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015892 hardcode_into_libs=yes
15893 dynamic_linker="$host_os dld.so"
15894 shlibpath_var=LD_LIBRARY_PATH
15895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897 soname_spec='${libname}${release}${shared_ext}$major'
15898 if test "X$HPUX_IA64_MODE" = X32; then
15899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15900 else
15901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15902 fi
15903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15904 ;;
15905 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015906 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015907 hardcode_into_libs=yes
15908 dynamic_linker="$host_os dld.sl"
15909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15915 ;;
15916 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015917 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015918 dynamic_linker="$host_os dld.sl"
15919 shlibpath_var=SHLIB_PATH
15920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 ;;
15924 esac
John Criswell7a73b802003-06-30 21:59:07 +000015925 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15926 postinstall_cmds='chmod 555 $lib'
15927 ;;
15928
Reid Spencera773bd52006-08-04 18:18:08 +000015929interix3*)
15930 version_type=linux
15931 need_lib_prefix=no
15932 need_version=no
15933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15934 soname_spec='${libname}${release}${shared_ext}$major'
15935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 shlibpath_overrides_runpath=no
15938 hardcode_into_libs=yes
15939 ;;
15940
John Criswell47fdd832003-07-14 16:52:07 +000015941irix5* | irix6* | nonstopux*)
15942 case $host_os in
15943 nonstopux*) version_type=nonstopux ;;
15944 *)
15945 if test "$lt_cv_prog_gnu_ld" = yes; then
15946 version_type=linux
15947 else
15948 version_type=irix
15949 fi ;;
15950 esac
John Criswell7a73b802003-06-30 21:59:07 +000015951 need_lib_prefix=no
15952 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015953 soname_spec='${libname}${release}${shared_ext}$major'
15954 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 +000015955 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015956 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015957 libsuff= shlibsuff=
15958 ;;
15959 *)
15960 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15962 libsuff= shlibsuff= libmagic=32-bit;;
15963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15964 libsuff=32 shlibsuff=N32 libmagic=N32;;
15965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015967 *) libsuff= shlibsuff= libmagic=never-match;;
15968 esac
15969 ;;
15970 esac
15971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15972 shlibpath_overrides_runpath=no
15973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15974 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015975 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015976 ;;
15977
15978# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015979linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015980 dynamic_linker=no
15981 ;;
15982
15983# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015984linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015985 version_type=linux
15986 need_lib_prefix=no
15987 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15991 shlibpath_var=LD_LIBRARY_PATH
15992 shlibpath_overrides_runpath=no
15993 # This implies no fast_install, which is unacceptable.
15994 # Some rework will be needed to allow for fast_install
15995 # before this can be enabled.
15996 hardcode_into_libs=yes
15997
Reid Spencer2706f8c2004-09-19 23:53:36 +000015998 # Append ld.so.conf contents to the search path
15999 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016000 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 +000016001 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16002 fi
16003
John Criswell7a73b802003-06-30 21:59:07 +000016004 # We used to test for /lib/ld.so.1 and disable shared libraries on
16005 # powerpc, because MkLinux only supported shared libraries with the
16006 # GNU dynamic linker. Since this was broken with cross compilers,
16007 # most powerpc-linux boxes support dynamic linking these days and
16008 # people can always --disable-shared, the test was removed, and we
16009 # assume the GNU/Linux dynamic linker is in use.
16010 dynamic_linker='GNU/Linux ld.so'
16011 ;;
16012
Reid Spencer2706f8c2004-09-19 23:53:36 +000016013knetbsd*-gnu)
16014 version_type=linux
16015 need_lib_prefix=no
16016 need_version=no
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 shlibpath_overrides_runpath=no
16021 hardcode_into_libs=yes
16022 dynamic_linker='GNU ld.so'
16023 ;;
16024
John Criswell7a73b802003-06-30 21:59:07 +000016025netbsd*)
16026 version_type=sunos
16027 need_lib_prefix=no
16028 need_version=no
16029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16032 dynamic_linker='NetBSD (a.out) ld.so'
16033 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016035 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016036 dynamic_linker='NetBSD ld.elf_so'
16037 fi
16038 shlibpath_var=LD_LIBRARY_PATH
16039 shlibpath_overrides_runpath=yes
16040 hardcode_into_libs=yes
16041 ;;
16042
16043newsos6)
16044 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 shlibpath_var=LD_LIBRARY_PATH
16047 shlibpath_overrides_runpath=yes
16048 ;;
16049
Reid Spencer2706f8c2004-09-19 23:53:36 +000016050nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016051 version_type=linux
16052 need_lib_prefix=no
16053 need_version=no
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016056 shlibpath_var=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath=yes
16058 ;;
16059
16060openbsd*)
16061 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016062 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016063 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16065 case $host_os in
16066 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16067 *) need_version=no ;;
16068 esac
John Criswell47fdd832003-07-14 16:52:07 +000016069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16071 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016072 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 +000016073 case $host_os in
16074 openbsd2.[89] | openbsd2.[89].*)
16075 shlibpath_overrides_runpath=no
16076 ;;
16077 *)
16078 shlibpath_overrides_runpath=yes
16079 ;;
16080 esac
John Criswell7a73b802003-06-30 21:59:07 +000016081 else
16082 shlibpath_overrides_runpath=yes
16083 fi
John Criswell7a73b802003-06-30 21:59:07 +000016084 ;;
16085
16086os2*)
16087 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016088 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016089 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016090 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016091 dynamic_linker='OS/2 ld.exe'
16092 shlibpath_var=LIBPATH
16093 ;;
16094
16095osf3* | osf4* | osf5*)
16096 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016097 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016098 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016099 soname_spec='${libname}${release}${shared_ext}$major'
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016101 shlibpath_var=LD_LIBRARY_PATH
16102 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16103 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16104 ;;
16105
John Criswell7a73b802003-06-30 21:59:07 +000016106solaris*)
16107 version_type=linux
16108 need_lib_prefix=no
16109 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016112 shlibpath_var=LD_LIBRARY_PATH
16113 shlibpath_overrides_runpath=yes
16114 hardcode_into_libs=yes
16115 # ldd complains unless libraries are executable
16116 postinstall_cmds='chmod +x $lib'
16117 ;;
16118
16119sunos4*)
16120 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16123 shlibpath_var=LD_LIBRARY_PATH
16124 shlibpath_overrides_runpath=yes
16125 if test "$with_gnu_ld" = yes; then
16126 need_lib_prefix=no
16127 fi
16128 need_version=yes
16129 ;;
16130
Reid Spencera773bd52006-08-04 18:18:08 +000016131sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016132 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016135 shlibpath_var=LD_LIBRARY_PATH
16136 case $host_vendor in
16137 sni)
16138 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016139 need_lib_prefix=no
16140 export_dynamic_flag_spec='${wl}-Blargedynsym'
16141 runpath_var=LD_RUN_PATH
16142 ;;
16143 siemens)
16144 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016145 ;;
16146 motorola)
16147 need_lib_prefix=no
16148 need_version=no
16149 shlibpath_overrides_runpath=no
16150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16151 ;;
16152 esac
16153 ;;
16154
John Criswell7a73b802003-06-30 21:59:07 +000016155sysv4*MP*)
16156 if test -d /usr/nec ;then
16157 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16159 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016160 shlibpath_var=LD_LIBRARY_PATH
16161 fi
16162 ;;
16163
Reid Spencera773bd52006-08-04 18:18:08 +000016164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16165 version_type=freebsd-elf
16166 need_lib_prefix=no
16167 need_version=no
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 hardcode_into_libs=yes
16172 if test "$with_gnu_ld" = yes; then
16173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16174 shlibpath_overrides_runpath=no
16175 else
16176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16177 shlibpath_overrides_runpath=yes
16178 case $host_os in
16179 sco3.2v5*)
16180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16181 ;;
16182 esac
16183 fi
16184 sys_lib_dlsearch_path_spec='/usr/lib'
16185 ;;
16186
John Criswell47fdd832003-07-14 16:52:07 +000016187uts4*)
16188 version_type=linux
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16192 ;;
16193
John Criswell7a73b802003-06-30 21:59:07 +000016194*)
16195 dynamic_linker=no
16196 ;;
16197esac
Reid Spencera773bd52006-08-04 18:18:08 +000016198{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16199echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016200test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016201
Reid Spencera773bd52006-08-04 18:18:08 +000016202variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16203if test "$GCC" = yes; then
16204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16205fi
16206
16207{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16208echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016209hardcode_action=
16210if test -n "$hardcode_libdir_flag_spec" || \
16211 test -n "$runpath_var" || \
16212 test "X$hardcode_automatic" = "Xyes" ; then
16213
16214 # We can hardcode non-existant directories.
16215 if test "$hardcode_direct" != no &&
16216 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16217 # have to relink, otherwise we might link with an installed library
16218 # when we should be linking with a yet-to-be-installed one
16219 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16220 test "$hardcode_minus_L" != no; then
16221 # Linking always hardcodes the temporary library directory.
16222 hardcode_action=relink
16223 else
16224 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16225 hardcode_action=immediate
16226 fi
16227else
16228 # We cannot hardcode anything, or else we can only hardcode existing
16229 # directories.
16230 hardcode_action=unsupported
16231fi
Reid Spencera773bd52006-08-04 18:18:08 +000016232{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16233echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016234
16235if test "$hardcode_action" = relink; then
16236 # Fast installation is not supported
16237 enable_fast_install=no
16238elif test "$shlibpath_overrides_runpath" = yes ||
16239 test "$enable_shared" = no; then
16240 # Fast installation is not necessary
16241 enable_fast_install=needless
16242fi
16243
16244striplib=
16245old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016246{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16247echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016248if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16249 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16250 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016251 { echo "$as_me:$LINENO: result: yes" >&5
16252echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016253else
16254# FIXME - insert some real tests, host_os isn't really good enough
16255 case $host_os in
16256 darwin*)
16257 if test -n "$STRIP" ; then
16258 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016259 { echo "$as_me:$LINENO: result: yes" >&5
16260echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016261 else
Reid Spencera773bd52006-08-04 18:18:08 +000016262 { echo "$as_me:$LINENO: result: no" >&5
16263echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016264fi
16265 ;;
16266 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016267 { echo "$as_me:$LINENO: result: no" >&5
16268echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016269 ;;
16270 esac
16271fi
16272
John Criswell7a73b802003-06-30 21:59:07 +000016273if test "x$enable_dlopen" != xyes; then
16274 enable_dlopen=unknown
16275 enable_dlopen_self=unknown
16276 enable_dlopen_self_static=unknown
16277else
16278 lt_cv_dlopen=no
16279 lt_cv_dlopen_libs=
16280
16281 case $host_os in
16282 beos*)
16283 lt_cv_dlopen="load_add_on"
16284 lt_cv_dlopen_libs=
16285 lt_cv_dlopen_self=yes
16286 ;;
16287
John Criswell47fdd832003-07-14 16:52:07 +000016288 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016289 lt_cv_dlopen="LoadLibrary"
16290 lt_cv_dlopen_libs=
16291 ;;
16292
John Criswell47fdd832003-07-14 16:52:07 +000016293 cygwin*)
16294 lt_cv_dlopen="dlopen"
16295 lt_cv_dlopen_libs=
16296 ;;
16297
16298 darwin*)
16299 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016300 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16301echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016302if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304else
16305 ac_check_lib_save_LIBS=$LIBS
16306LIBS="-ldl $LIBS"
16307cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016313
Reid Spencera773bd52006-08-04 18:18:08 +000016314/* Override any GCC internal prototype to avoid an error.
16315 Use char because int might match the return type of a GCC
16316 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016317#ifdef __cplusplus
16318extern "C"
16319#endif
John Criswell47fdd832003-07-14 16:52:07 +000016320char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016321int
16322main ()
16323{
Reid Spencera773bd52006-08-04 18:18:08 +000016324return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016325 ;
16326 return 0;
16327}
16328_ACEOF
16329rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016330if { (ac_try="$ac_link"
16331case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334esac
16335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016337 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016338 grep -v '^ *+' conftest.er1 >conftest.err
16339 rm -f conftest.er1
16340 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344 { (case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347esac
16348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357esac
16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_cv_lib_dl_dlopen=yes
16364else
16365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016366sed 's/^/| /' conftest.$ac_ext >&5
16367
Reid Spencera773bd52006-08-04 18:18:08 +000016368 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016369fi
Reid Spencera773bd52006-08-04 18:18:08 +000016370
16371rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016372 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016373LIBS=$ac_check_lib_save_LIBS
16374fi
Reid Spencera773bd52006-08-04 18:18:08 +000016375{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16376echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016377if test $ac_cv_lib_dl_dlopen = yes; then
16378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16379else
16380
16381 lt_cv_dlopen="dyld"
16382 lt_cv_dlopen_libs=
16383 lt_cv_dlopen_self=yes
16384
16385fi
16386
16387 ;;
16388
John Criswell7a73b802003-06-30 21:59:07 +000016389 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016390 { echo "$as_me:$LINENO: checking for shl_load" >&5
16391echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016392if test "${ac_cv_func_shl_load+set}" = set; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
16394else
16395 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016396/* confdefs.h. */
16397_ACEOF
16398cat confdefs.h >>conftest.$ac_ext
16399cat >>conftest.$ac_ext <<_ACEOF
16400/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016401/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16403#define shl_load innocuous_shl_load
16404
John Criswell7a73b802003-06-30 21:59:07 +000016405/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016406 which can conflict with char shl_load (); below.
16407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16408 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016409
John Criswell0c38eaf2003-09-10 15:17:25 +000016410#ifdef __STDC__
16411# include <limits.h>
16412#else
16413# include <assert.h>
16414#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016415
16416#undef shl_load
16417
Reid Spencera773bd52006-08-04 18:18:08 +000016418/* Override any GCC internal prototype to avoid an error.
16419 Use char because int might match the return type of a GCC
16420 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016421#ifdef __cplusplus
16422extern "C"
16423#endif
John Criswell7a73b802003-06-30 21:59:07 +000016424char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016425/* The GNU C library defines this for functions which it implements
16426 to always fail with ENOSYS. Some functions are actually named
16427 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016428#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016429choke me
John Criswell7a73b802003-06-30 21:59:07 +000016430#endif
16431
John Criswell0c38eaf2003-09-10 15:17:25 +000016432int
16433main ()
16434{
Reid Spencera773bd52006-08-04 18:18:08 +000016435return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016436 ;
16437 return 0;
16438}
16439_ACEOF
16440rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016441if { (ac_try="$ac_link"
16442case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458esac
16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468esac
16469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_func_shl_load=yes
16475else
16476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016477sed 's/^/| /' conftest.$ac_ext >&5
16478
Reid Spencera773bd52006-08-04 18:18:08 +000016479 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016480fi
Reid Spencera773bd52006-08-04 18:18:08 +000016481
16482rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016483 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016484fi
Reid Spencera773bd52006-08-04 18:18:08 +000016485{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16486echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016487if test $ac_cv_func_shl_load = yes; then
16488 lt_cv_dlopen="shl_load"
16489else
Reid Spencera773bd52006-08-04 18:18:08 +000016490 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16491echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016492if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494else
16495 ac_check_lib_save_LIBS=$LIBS
16496LIBS="-ldld $LIBS"
16497cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016503
Reid Spencera773bd52006-08-04 18:18:08 +000016504/* Override any GCC internal prototype to avoid an error.
16505 Use char because int might match the return type of a GCC
16506 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016507#ifdef __cplusplus
16508extern "C"
16509#endif
John Criswell7a73b802003-06-30 21:59:07 +000016510char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016511int
16512main ()
16513{
Reid Spencera773bd52006-08-04 18:18:08 +000016514return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016515 ;
16516 return 0;
16517}
16518_ACEOF
16519rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016520if { (ac_try="$ac_link"
16521case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016527 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016544 { (case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16547esac
16548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_lib_dld_shl_load=yes
16554else
16555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016556sed 's/^/| /' conftest.$ac_ext >&5
16557
Reid Spencera773bd52006-08-04 18:18:08 +000016558 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016559fi
Reid Spencera773bd52006-08-04 18:18:08 +000016560
16561rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016562 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016563LIBS=$ac_check_lib_save_LIBS
16564fi
Reid Spencera773bd52006-08-04 18:18:08 +000016565{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16566echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016567if test $ac_cv_lib_dld_shl_load = yes; then
16568 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16569else
Reid Spencera773bd52006-08-04 18:18:08 +000016570 { echo "$as_me:$LINENO: checking for dlopen" >&5
16571echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016572if test "${ac_cv_func_dlopen+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
16575 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016581/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16583#define dlopen innocuous_dlopen
16584
John Criswell7a73b802003-06-30 21:59:07 +000016585/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016586 which can conflict with char dlopen (); below.
16587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016589
John Criswell0c38eaf2003-09-10 15:17:25 +000016590#ifdef __STDC__
16591# include <limits.h>
16592#else
16593# include <assert.h>
16594#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016595
16596#undef dlopen
16597
Reid Spencera773bd52006-08-04 18:18:08 +000016598/* Override any GCC internal prototype to avoid an error.
16599 Use char because int might match the return type of a GCC
16600 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016601#ifdef __cplusplus
16602extern "C"
16603#endif
John Criswell7a73b802003-06-30 21:59:07 +000016604char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016605/* The GNU C library defines this for functions which it implements
16606 to always fail with ENOSYS. Some functions are actually named
16607 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016608#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016609choke me
John Criswell7a73b802003-06-30 21:59:07 +000016610#endif
16611
John Criswell0c38eaf2003-09-10 15:17:25 +000016612int
16613main ()
16614{
Reid Spencera773bd52006-08-04 18:18:08 +000016615return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016616 ;
16617 return 0;
16618}
16619_ACEOF
16620rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016621if { (ac_try="$ac_link"
16622case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625esac
16626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016629 grep -v '^ *+' conftest.er1 >conftest.err
16630 rm -f conftest.er1
16631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_func_dlopen=yes
16655else
16656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016657sed 's/^/| /' conftest.$ac_ext >&5
16658
Reid Spencera773bd52006-08-04 18:18:08 +000016659 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016660fi
Reid Spencera773bd52006-08-04 18:18:08 +000016661
16662rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016663 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016664fi
Reid Spencera773bd52006-08-04 18:18:08 +000016665{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16666echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016667if test $ac_cv_func_dlopen = yes; then
16668 lt_cv_dlopen="dlopen"
16669else
Reid Spencera773bd52006-08-04 18:18:08 +000016670 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16671echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016672if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16674else
16675 ac_check_lib_save_LIBS=$LIBS
16676LIBS="-ldl $LIBS"
16677cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016678/* confdefs.h. */
16679_ACEOF
16680cat confdefs.h >>conftest.$ac_ext
16681cat >>conftest.$ac_ext <<_ACEOF
16682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016683
Reid Spencera773bd52006-08-04 18:18:08 +000016684/* Override any GCC internal prototype to avoid an error.
16685 Use char because int might match the return type of a GCC
16686 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016687#ifdef __cplusplus
16688extern "C"
16689#endif
John Criswell7a73b802003-06-30 21:59:07 +000016690char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016691int
16692main ()
16693{
Reid Spencera773bd52006-08-04 18:18:08 +000016694return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016695 ;
16696 return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016700if { (ac_try="$ac_link"
16701case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16704esac
16705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016724 { (case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727esac
16728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_cv_lib_dl_dlopen=yes
16734else
16735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016736sed 's/^/| /' conftest.$ac_ext >&5
16737
Reid Spencera773bd52006-08-04 18:18:08 +000016738 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016739fi
Reid Spencera773bd52006-08-04 18:18:08 +000016740
16741rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016742 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016743LIBS=$ac_check_lib_save_LIBS
16744fi
Reid Spencera773bd52006-08-04 18:18:08 +000016745{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16746echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016747if test $ac_cv_lib_dl_dlopen = yes; then
16748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16749else
Reid Spencera773bd52006-08-04 18:18:08 +000016750 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16751echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016752if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754else
16755 ac_check_lib_save_LIBS=$LIBS
16756LIBS="-lsvld $LIBS"
16757cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016758/* confdefs.h. */
16759_ACEOF
16760cat confdefs.h >>conftest.$ac_ext
16761cat >>conftest.$ac_ext <<_ACEOF
16762/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016763
Reid Spencera773bd52006-08-04 18:18:08 +000016764/* Override any GCC internal prototype to avoid an error.
16765 Use char because int might match the return type of a GCC
16766 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016767#ifdef __cplusplus
16768extern "C"
16769#endif
John Criswell7a73b802003-06-30 21:59:07 +000016770char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016771int
16772main ()
16773{
Reid Spencera773bd52006-08-04 18:18:08 +000016774return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016775 ;
16776 return 0;
16777}
16778_ACEOF
16779rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016780if { (ac_try="$ac_link"
16781case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784esac
16785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016788 grep -v '^ *+' conftest.er1 >conftest.err
16789 rm -f conftest.er1
16790 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794 { (case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797esac
16798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016804 { (case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807esac
16808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_cv_lib_svld_dlopen=yes
16814else
16815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016816sed 's/^/| /' conftest.$ac_ext >&5
16817
Reid Spencera773bd52006-08-04 18:18:08 +000016818 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016819fi
Reid Spencera773bd52006-08-04 18:18:08 +000016820
16821rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016822 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016823LIBS=$ac_check_lib_save_LIBS
16824fi
Reid Spencera773bd52006-08-04 18:18:08 +000016825{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16826echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016827if test $ac_cv_lib_svld_dlopen = yes; then
16828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16829else
Reid Spencera773bd52006-08-04 18:18:08 +000016830 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16831echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016832if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16834else
16835 ac_check_lib_save_LIBS=$LIBS
16836LIBS="-ldld $LIBS"
16837cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016838/* confdefs.h. */
16839_ACEOF
16840cat confdefs.h >>conftest.$ac_ext
16841cat >>conftest.$ac_ext <<_ACEOF
16842/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016843
Reid Spencera773bd52006-08-04 18:18:08 +000016844/* Override any GCC internal prototype to avoid an error.
16845 Use char because int might match the return type of a GCC
16846 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016847#ifdef __cplusplus
16848extern "C"
16849#endif
John Criswell7a73b802003-06-30 21:59:07 +000016850char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016851int
16852main ()
16853{
Reid Spencera773bd52006-08-04 18:18:08 +000016854return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016855 ;
16856 return 0;
16857}
16858_ACEOF
16859rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016860if { (ac_try="$ac_link"
16861case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864esac
16865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016867 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16877esac
16878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887esac
16888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_cv_lib_dld_dld_link=yes
16894else
16895 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016896sed 's/^/| /' conftest.$ac_ext >&5
16897
Reid Spencera773bd52006-08-04 18:18:08 +000016898 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016899fi
Reid Spencera773bd52006-08-04 18:18:08 +000016900
16901rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016902 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016903LIBS=$ac_check_lib_save_LIBS
16904fi
Reid Spencera773bd52006-08-04 18:18:08 +000016905{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16906echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016907if test $ac_cv_lib_dld_dld_link = yes; then
16908 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16909fi
16910
16911
16912fi
16913
16914
16915fi
16916
16917
16918fi
16919
16920
16921fi
16922
16923
16924fi
16925
16926 ;;
16927 esac
16928
16929 if test "x$lt_cv_dlopen" != xno; then
16930 enable_dlopen=yes
16931 else
16932 enable_dlopen=no
16933 fi
16934
16935 case $lt_cv_dlopen in
16936 dlopen)
16937 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016938 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016939
16940 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016942
16943 save_LIBS="$LIBS"
16944 LIBS="$lt_cv_dlopen_libs $LIBS"
16945
Reid Spencera773bd52006-08-04 18:18:08 +000016946 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16947echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016948if test "${lt_cv_dlopen_self+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16950else
16951 if test "$cross_compiling" = yes; then :
16952 lt_cv_dlopen_self=cross
16953else
John Criswell47fdd832003-07-14 16:52:07 +000016954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016955 lt_status=$lt_dlunknown
16956 cat > conftest.$ac_ext <<EOF
Reid Spencer6ccd01a2006-08-22 22:21:38 +000016957#line 16957 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016958#include "confdefs.h"
16959
16960#if HAVE_DLFCN_H
16961#include <dlfcn.h>
16962#endif
16963
16964#include <stdio.h>
16965
16966#ifdef RTLD_GLOBAL
16967# define LT_DLGLOBAL RTLD_GLOBAL
16968#else
16969# ifdef DL_GLOBAL
16970# define LT_DLGLOBAL DL_GLOBAL
16971# else
16972# define LT_DLGLOBAL 0
16973# endif
16974#endif
16975
16976/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16977 find out it does not work in some platform. */
16978#ifndef LT_DLLAZY_OR_NOW
16979# ifdef RTLD_LAZY
16980# define LT_DLLAZY_OR_NOW RTLD_LAZY
16981# else
16982# ifdef DL_LAZY
16983# define LT_DLLAZY_OR_NOW DL_LAZY
16984# else
16985# ifdef RTLD_NOW
16986# define LT_DLLAZY_OR_NOW RTLD_NOW
16987# else
16988# ifdef DL_NOW
16989# define LT_DLLAZY_OR_NOW DL_NOW
16990# else
16991# define LT_DLLAZY_OR_NOW 0
16992# endif
16993# endif
16994# endif
16995# endif
16996#endif
16997
16998#ifdef __cplusplus
16999extern "C" void exit (int);
17000#endif
17001
17002void fnord() { int i=42;}
17003int main ()
17004{
17005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17006 int status = $lt_dlunknown;
17007
17008 if (self)
17009 {
17010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17012 /* dlclose (self); */
17013 }
Reid Spencera773bd52006-08-04 18:18:08 +000017014 else
17015 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017016
17017 exit (status);
17018}
17019EOF
17020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17021 (eval $ac_link) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017025 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017026 lt_status=$?
17027 case x$lt_status in
17028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017031 esac
17032 else :
17033 # compilation failed
17034 lt_cv_dlopen_self=no
17035 fi
17036fi
17037rm -fr conftest*
17038
17039
17040fi
Reid Spencera773bd52006-08-04 18:18:08 +000017041{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17042echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017043
17044 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17046 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17047echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017048if test "${lt_cv_dlopen_self_static+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17050else
17051 if test "$cross_compiling" = yes; then :
17052 lt_cv_dlopen_self_static=cross
17053else
John Criswell47fdd832003-07-14 16:52:07 +000017054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017055 lt_status=$lt_dlunknown
17056 cat > conftest.$ac_ext <<EOF
Reid Spencer6ccd01a2006-08-22 22:21:38 +000017057#line 17057 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017058#include "confdefs.h"
17059
17060#if HAVE_DLFCN_H
17061#include <dlfcn.h>
17062#endif
17063
17064#include <stdio.h>
17065
17066#ifdef RTLD_GLOBAL
17067# define LT_DLGLOBAL RTLD_GLOBAL
17068#else
17069# ifdef DL_GLOBAL
17070# define LT_DLGLOBAL DL_GLOBAL
17071# else
17072# define LT_DLGLOBAL 0
17073# endif
17074#endif
17075
17076/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17077 find out it does not work in some platform. */
17078#ifndef LT_DLLAZY_OR_NOW
17079# ifdef RTLD_LAZY
17080# define LT_DLLAZY_OR_NOW RTLD_LAZY
17081# else
17082# ifdef DL_LAZY
17083# define LT_DLLAZY_OR_NOW DL_LAZY
17084# else
17085# ifdef RTLD_NOW
17086# define LT_DLLAZY_OR_NOW RTLD_NOW
17087# else
17088# ifdef DL_NOW
17089# define LT_DLLAZY_OR_NOW DL_NOW
17090# else
17091# define LT_DLLAZY_OR_NOW 0
17092# endif
17093# endif
17094# endif
17095# endif
17096#endif
17097
17098#ifdef __cplusplus
17099extern "C" void exit (int);
17100#endif
17101
17102void fnord() { int i=42;}
17103int main ()
17104{
17105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17106 int status = $lt_dlunknown;
17107
17108 if (self)
17109 {
17110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17111 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17112 /* dlclose (self); */
17113 }
Reid Spencera773bd52006-08-04 18:18:08 +000017114 else
17115 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017116
17117 exit (status);
17118}
17119EOF
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121 (eval $ac_link) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017125 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017126 lt_status=$?
17127 case x$lt_status in
17128 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17129 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017130 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017131 esac
17132 else :
17133 # compilation failed
17134 lt_cv_dlopen_self_static=no
17135 fi
17136fi
17137rm -fr conftest*
17138
17139
17140fi
Reid Spencera773bd52006-08-04 18:18:08 +000017141{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17142echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017143 fi
17144
17145 CPPFLAGS="$save_CPPFLAGS"
17146 LDFLAGS="$save_LDFLAGS"
17147 LIBS="$save_LIBS"
17148 ;;
17149 esac
17150
17151 case $lt_cv_dlopen_self in
17152 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17153 *) enable_dlopen_self=unknown ;;
17154 esac
17155
17156 case $lt_cv_dlopen_self_static in
17157 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17158 *) enable_dlopen_self_static=unknown ;;
17159 esac
17160fi
17161
17162
Reid Spencera773bd52006-08-04 18:18:08 +000017163# Report which library types will actually be built
17164{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17165echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17166{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17167echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017168
Reid Spencera773bd52006-08-04 18:18:08 +000017169{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17170echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017171test "$can_build_shared" = "no" && enable_shared=no
17172
17173# On AIX, shared libraries and static libraries use the same namespace, and
17174# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017175case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017176aix3*)
17177 test "$enable_shared" = yes && enable_static=no
17178 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017179 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017180 postinstall_cmds='$RANLIB $lib'
17181 fi
17182 ;;
17183
Reid Spencer2706f8c2004-09-19 23:53:36 +000017184aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017185 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17186 test "$enable_shared" = yes && enable_static=no
17187 fi
John Criswell7a73b802003-06-30 21:59:07 +000017188 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017189esac
Reid Spencera773bd52006-08-04 18:18:08 +000017190{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17191echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017192
Reid Spencera773bd52006-08-04 18:18:08 +000017193{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17194echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017195# Make sure either enable_shared or enable_static is yes.
17196test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017197{ echo "$as_me:$LINENO: result: $enable_static" >&5
17198echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017199
17200# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017201# libtool distribution, otherwise you forgot to ship ltmain.sh
17202# with your package, and you will get complaints that there are
17203# no rules to generate ltmain.sh.
17204if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017205 # See if we are running on zsh, and set the options which allow our commands through
17206 # without removal of \ escapes.
17207 if test -n "${ZSH_VERSION+set}" ; then
17208 setopt NO_GLOB_SUBST
17209 fi
John Criswell7a73b802003-06-30 21:59:07 +000017210 # Now quote all the things that may contain metacharacters while being
17211 # careful not to overquote the AC_SUBSTed values. We take copies of the
17212 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017213 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 +000017214 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17217 deplibs_check_method reload_flag reload_cmds need_locks \
17218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17219 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017221 old_postinstall_cmds old_postuninstall_cmds \
17222 compiler \
17223 CC \
17224 LD \
17225 lt_prog_compiler_wl \
17226 lt_prog_compiler_pic \
17227 lt_prog_compiler_static \
17228 lt_prog_compiler_no_builtin_flag \
17229 export_dynamic_flag_spec \
17230 thread_safe_flag_spec \
17231 whole_archive_flag_spec \
17232 enable_shared_with_static_runtimes \
17233 old_archive_cmds \
17234 old_archive_from_new_cmds \
17235 predep_objects \
17236 postdep_objects \
17237 predeps \
17238 postdeps \
17239 compiler_lib_search_path \
17240 archive_cmds \
17241 archive_expsym_cmds \
17242 postinstall_cmds \
17243 postuninstall_cmds \
17244 old_archive_from_expsyms_cmds \
17245 allow_undefined_flag \
17246 no_undefined_flag \
17247 export_symbols_cmds \
17248 hardcode_libdir_flag_spec \
17249 hardcode_libdir_flag_spec_ld \
17250 hardcode_libdir_separator \
17251 hardcode_automatic \
17252 module_cmds \
17253 module_expsym_cmds \
17254 lt_cv_prog_compiler_c_o \
17255 exclude_expsyms \
17256 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017257
17258 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017259 old_archive_cmds | \
17260 old_archive_from_new_cmds | \
17261 archive_cmds | \
17262 archive_expsym_cmds | \
17263 module_cmds | \
17264 module_expsym_cmds | \
17265 old_archive_from_expsyms_cmds | \
17266 export_symbols_cmds | \
17267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017268 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017269 old_postinstall_cmds | old_postuninstall_cmds | \
17270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017271 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017272 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 +000017273 ;;
17274 *)
17275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17276 ;;
17277 esac
17278 done
17279
John Criswell47fdd832003-07-14 16:52:07 +000017280 case $lt_echo in
17281 *'\$0 --fallback-echo"')
17282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17283 ;;
17284 esac
17285
17286cfgfile="${ofile}T"
17287 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17288 $rm -f "$cfgfile"
17289 { echo "$as_me:$LINENO: creating $ofile" >&5
17290echo "$as_me: creating $ofile" >&6;}
17291
17292 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017293#! $SHELL
17294
John Criswell47fdd832003-07-14 16:52:07 +000017295# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017296# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17297# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17298#
John Criswell47fdd832003-07-14 16:52:07 +000017299# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17300# Free Software Foundation, Inc.
17301#
17302# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017303# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17304#
17305# This program is free software; you can redistribute it and/or modify
17306# it under the terms of the GNU General Public License as published by
17307# the Free Software Foundation; either version 2 of the License, or
17308# (at your option) any later version.
17309#
17310# This program is distributed in the hope that it will be useful, but
17311# WITHOUT ANY WARRANTY; without even the implied warranty of
17312# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17313# General Public License for more details.
17314#
17315# You should have received a copy of the GNU General Public License
17316# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017317# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017318#
17319# As a special exception to the GNU General Public License, if you
17320# distribute this file as part of a program that contains a
17321# configuration script generated by Autoconf, you may include it under
17322# the same distribution terms that you use for the rest of that program.
17323
John Criswell47fdd832003-07-14 16:52:07 +000017324# A sed program that does not truncate output.
17325SED=$lt_SED
17326
John Criswell7a73b802003-06-30 21:59:07 +000017327# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017328Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017329
17330# The HP-UX ksh and POSIX shell print the target directory to stdout
17331# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017332(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017333
John Criswell47fdd832003-07-14 16:52:07 +000017334# The names of the tagged configurations supported by this script.
17335available_tags=
17336
John Criswell7a73b802003-06-30 21:59:07 +000017337# ### BEGIN LIBTOOL CONFIG
17338
17339# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17340
17341# Shell to use when invoking shell scripts.
17342SHELL=$lt_SHELL
17343
17344# Whether or not to build shared libraries.
17345build_libtool_libs=$enable_shared
17346
17347# Whether or not to build static libraries.
17348build_old_libs=$enable_static
17349
17350# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017351build_libtool_need_lc=$archive_cmds_need_lc
17352
17353# Whether or not to disallow shared libs when runtime libs are static
17354allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017355
17356# Whether or not to optimize for fast installation.
17357fast_install=$enable_fast_install
17358
17359# The host system.
17360host_alias=$host_alias
17361host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017362host_os=$host_os
17363
17364# The build system.
17365build_alias=$build_alias
17366build=$build
17367build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017368
17369# An echo program that does not interpret backslashes.
17370echo=$lt_echo
17371
17372# The archiver.
17373AR=$lt_AR
17374AR_FLAGS=$lt_AR_FLAGS
17375
John Criswell47fdd832003-07-14 16:52:07 +000017376# A C compiler.
17377LTCC=$lt_LTCC
17378
Reid Spencera773bd52006-08-04 18:18:08 +000017379# LTCC compiler flags.
17380LTCFLAGS=$lt_LTCFLAGS
17381
John Criswell47fdd832003-07-14 16:52:07 +000017382# A language-specific compiler.
17383CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017384
17385# Is the compiler the GNU C compiler?
17386with_gcc=$GCC
17387
John Criswell47fdd832003-07-14 16:52:07 +000017388# An ERE matcher.
17389EGREP=$lt_EGREP
17390
John Criswell7a73b802003-06-30 21:59:07 +000017391# The linker used to build libraries.
17392LD=$lt_LD
17393
17394# Whether we need hard or soft links.
17395LN_S=$lt_LN_S
17396
17397# A BSD-compatible nm program.
17398NM=$lt_NM
17399
17400# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017401STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017402
17403# Used to examine libraries when file_magic_cmd begins "file"
17404MAGIC_CMD=$MAGIC_CMD
17405
17406# Used on cygwin: DLL creation program.
17407DLLTOOL="$DLLTOOL"
17408
17409# Used on cygwin: object dumper.
17410OBJDUMP="$OBJDUMP"
17411
17412# Used on cygwin: assembler.
17413AS="$AS"
17414
17415# The name of the directory that contains temporary libtool files.
17416objdir=$objdir
17417
17418# How to create reloadable object files.
17419reload_flag=$lt_reload_flag
17420reload_cmds=$lt_reload_cmds
17421
17422# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017423wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017424
17425# Object file suffix (normally "o").
17426objext="$ac_objext"
17427
17428# Old archive suffix (normally "a").
17429libext="$libext"
17430
John Criswell47fdd832003-07-14 16:52:07 +000017431# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017432shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017433
John Criswell7a73b802003-06-30 21:59:07 +000017434# Executable file suffix (normally "").
17435exeext="$exeext"
17436
17437# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017438pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017439pic_mode=$pic_mode
17440
John Criswell47fdd832003-07-14 16:52:07 +000017441# What is the maximum length of a command?
17442max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017443
John Criswell47fdd832003-07-14 16:52:07 +000017444# Does compiler simultaneously support -c and -o options?
17445compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017446
Reid Spencera773bd52006-08-04 18:18:08 +000017447# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017448need_locks=$lt_need_locks
17449
17450# Do we need the lib prefix for modules?
17451need_lib_prefix=$need_lib_prefix
17452
17453# Do we need a version for libraries?
17454need_version=$need_version
17455
17456# Whether dlopen is supported.
17457dlopen_support=$enable_dlopen
17458
17459# Whether dlopen of programs is supported.
17460dlopen_self=$enable_dlopen_self
17461
17462# Whether dlopen of statically linked programs is supported.
17463dlopen_self_static=$enable_dlopen_self_static
17464
17465# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017466link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017467
17468# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017469no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017470
17471# Compiler flag to allow reflexive dlopens.
17472export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17473
17474# Compiler flag to generate shared objects directly from archives.
17475whole_archive_flag_spec=$lt_whole_archive_flag_spec
17476
17477# Compiler flag to generate thread-safe objects.
17478thread_safe_flag_spec=$lt_thread_safe_flag_spec
17479
17480# Library versioning type.
17481version_type=$version_type
17482
17483# Format of library name prefix.
17484libname_spec=$lt_libname_spec
17485
17486# List of archive names. First name is the real one, the rest are links.
17487# The last name is the one that the linker finds with -lNAME.
17488library_names_spec=$lt_library_names_spec
17489
17490# The coded name of the library, if different from the real name.
17491soname_spec=$lt_soname_spec
17492
17493# Commands used to build and install an old-style archive.
17494RANLIB=$lt_RANLIB
17495old_archive_cmds=$lt_old_archive_cmds
17496old_postinstall_cmds=$lt_old_postinstall_cmds
17497old_postuninstall_cmds=$lt_old_postuninstall_cmds
17498
17499# Create an old-style archive from a shared archive.
17500old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17501
17502# Create a temporary old-style archive to link instead of a shared archive.
17503old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17504
17505# Commands used to build and install a shared archive.
17506archive_cmds=$lt_archive_cmds
17507archive_expsym_cmds=$lt_archive_expsym_cmds
17508postinstall_cmds=$lt_postinstall_cmds
17509postuninstall_cmds=$lt_postuninstall_cmds
17510
John Criswell47fdd832003-07-14 16:52:07 +000017511# Commands used to build a loadable module (assumed same as above if empty)
17512module_cmds=$lt_module_cmds
17513module_expsym_cmds=$lt_module_expsym_cmds
17514
John Criswell7a73b802003-06-30 21:59:07 +000017515# Commands to strip libraries.
17516old_striplib=$lt_old_striplib
17517striplib=$lt_striplib
17518
John Criswell47fdd832003-07-14 16:52:07 +000017519# Dependencies to place before the objects being linked to create a
17520# shared library.
17521predep_objects=$lt_predep_objects
17522
17523# Dependencies to place after the objects being linked to create a
17524# shared library.
17525postdep_objects=$lt_postdep_objects
17526
17527# Dependencies to place before the objects being linked to create a
17528# shared library.
17529predeps=$lt_predeps
17530
17531# Dependencies to place after the objects being linked to create a
17532# shared library.
17533postdeps=$lt_postdeps
17534
17535# The library search path used internally by the compiler when linking
17536# a shared library.
17537compiler_lib_search_path=$lt_compiler_lib_search_path
17538
John Criswell7a73b802003-06-30 21:59:07 +000017539# Method to check whether dependent libraries are shared objects.
17540deplibs_check_method=$lt_deplibs_check_method
17541
17542# Command to use when deplibs_check_method == file_magic.
17543file_magic_cmd=$lt_file_magic_cmd
17544
17545# Flag that allows shared libraries with undefined symbols to be built.
17546allow_undefined_flag=$lt_allow_undefined_flag
17547
17548# Flag that forces no undefined symbols.
17549no_undefined_flag=$lt_no_undefined_flag
17550
17551# Commands used to finish a libtool library installation in a directory.
17552finish_cmds=$lt_finish_cmds
17553
17554# Same as above, but a single script fragment to be evaled but not shown.
17555finish_eval=$lt_finish_eval
17556
17557# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017558global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017559
17560# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017561global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017562
17563# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017564global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017565
17566# This is the shared library runtime path variable.
17567runpath_var=$runpath_var
17568
17569# This is the shared library path variable.
17570shlibpath_var=$shlibpath_var
17571
17572# Is shlibpath searched before the hard-coded library search path?
17573shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17574
17575# How to hardcode a shared library path into an executable.
17576hardcode_action=$hardcode_action
17577
17578# Whether we should hardcode library paths into libraries.
17579hardcode_into_libs=$hardcode_into_libs
17580
17581# Flag to hardcode \$libdir into a binary during linking.
17582# This must work even if \$libdir does not exist.
17583hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17584
John Criswell47fdd832003-07-14 16:52:07 +000017585# If ld is used when linking, flag to hardcode \$libdir into
17586# a binary during linking. This must work even if \$libdir does
17587# not exist.
17588hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17589
John Criswell7a73b802003-06-30 21:59:07 +000017590# Whether we need a single -rpath flag with a separated argument.
17591hardcode_libdir_separator=$lt_hardcode_libdir_separator
17592
John Criswell47fdd832003-07-14 16:52:07 +000017593# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017594# resulting binary.
17595hardcode_direct=$hardcode_direct
17596
17597# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17598# resulting binary.
17599hardcode_minus_L=$hardcode_minus_L
17600
17601# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17602# the resulting binary.
17603hardcode_shlibpath_var=$hardcode_shlibpath_var
17604
John Criswell47fdd832003-07-14 16:52:07 +000017605# Set to yes if building a shared library automatically hardcodes DIR into the library
17606# and all subsequent libraries and executables linked against it.
17607hardcode_automatic=$hardcode_automatic
17608
John Criswell7a73b802003-06-30 21:59:07 +000017609# Variables whose values should be saved in libtool wrapper scripts and
17610# restored at relink time.
17611variables_saved_for_relink="$variables_saved_for_relink"
17612
17613# Whether libtool must link a program against all its dependency libraries.
17614link_all_deplibs=$link_all_deplibs
17615
17616# Compile-time system search path for libraries
17617sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17618
17619# Run-time system search path for libraries
17620sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17621
17622# Fix the shell variable \$srcfile for the compiler.
17623fix_srcfile_path="$fix_srcfile_path"
17624
17625# Set to yes if exported symbols are required.
17626always_export_symbols=$always_export_symbols
17627
17628# The commands to list exported symbols.
17629export_symbols_cmds=$lt_export_symbols_cmds
17630
17631# The commands to extract the exported symbol list from a shared archive.
17632extract_expsyms_cmds=$lt_extract_expsyms_cmds
17633
17634# Symbols that should not be listed in the preloaded symbols.
17635exclude_expsyms=$lt_exclude_expsyms
17636
17637# Symbols that must always be exported.
17638include_expsyms=$lt_include_expsyms
17639
17640# ### END LIBTOOL CONFIG
17641
17642__EOF__
17643
John Criswell47fdd832003-07-14 16:52:07 +000017644
John Criswell7a73b802003-06-30 21:59:07 +000017645 case $host_os in
17646 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017647 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017648
17649# AIX sometimes has problems with the GCC collect2 program. For some
17650# reason, if we set the COLLECT_NAMES environment variable, the problems
17651# vanish in a puff of smoke.
17652if test "X${COLLECT_NAMES+set}" != Xset; then
17653 COLLECT_NAMES=
17654 export COLLECT_NAMES
17655fi
17656EOF
17657 ;;
17658 esac
17659
John Criswell7a73b802003-06-30 21:59:07 +000017660 # We use sed instead of cat because bash on DJGPP gets confused if
17661 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17662 # text mode, it properly converts lines to CR/LF. This bash problem
17663 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017664 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017665
John Criswell47fdd832003-07-14 16:52:07 +000017666 mv -f "$cfgfile" "$ofile" || \
17667 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017668 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017669
17670else
17671 # If there is no Makefile yet, we rely on a make rule to execute
17672 # `config.status --recheck' to rerun these tests and create the
17673 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017674 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17675 if test -f "$ltmain_in"; then
17676 test -f Makefile && make "$ltmain"
17677 fi
John Criswell7a73b802003-06-30 21:59:07 +000017678fi
John Criswell7a73b802003-06-30 21:59:07 +000017679
17680
John Criswell47fdd832003-07-14 16:52:07 +000017681ac_ext=c
17682ac_cpp='$CPP $CPPFLAGS'
17683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685ac_compiler_gnu=$ac_cv_c_compiler_gnu
17686
17687CC="$lt_save_CC"
17688
17689
Reid Spencera773bd52006-08-04 18:18:08 +000017690# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017691if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017692 withval=$with_tags; tagnames="$withval"
17693fi
17694
John Criswell47fdd832003-07-14 16:52:07 +000017695
17696if test -f "$ltmain" && test -n "$tagnames"; then
17697 if test ! -f "${ofile}"; then
17698 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17699echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17700 fi
17701
17702 if test -z "$LTCC"; then
17703 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17704 if test -z "$LTCC"; then
17705 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17706echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17707 else
17708 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17709echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17710 fi
17711 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017712 if test -z "$LTCFLAGS"; then
17713 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17714 fi
John Criswell47fdd832003-07-14 16:52:07 +000017715
17716 # Extract list of available tagged configurations in $ofile.
17717 # Note that this assumes the entire list is on one line.
17718 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17719
17720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17721 for tagname in $tagnames; do
17722 IFS="$lt_save_ifs"
17723 # Check whether tagname contains only valid characters
17724 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17725 "") ;;
17726 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17727echo "$as_me: error: invalid tag name: $tagname" >&2;}
17728 { (exit 1); exit 1; }; }
17729 ;;
17730 esac
17731
17732 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17733 then
17734 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17735echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17736 { (exit 1); exit 1; }; }
17737 fi
17738
17739 # Update the list of available tags.
17740 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017741 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017742
17743 case $tagname in
17744 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017745 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17746 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17747 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017748 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017749ac_cpp='$CXXCPP $CPPFLAGS'
17750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17753
17754
17755
17756
17757archive_cmds_need_lc_CXX=no
17758allow_undefined_flag_CXX=
17759always_export_symbols_CXX=no
17760archive_expsym_cmds_CXX=
17761export_dynamic_flag_spec_CXX=
17762hardcode_direct_CXX=no
17763hardcode_libdir_flag_spec_CXX=
17764hardcode_libdir_flag_spec_ld_CXX=
17765hardcode_libdir_separator_CXX=
17766hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017767hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017768hardcode_automatic_CXX=no
17769module_cmds_CXX=
17770module_expsym_cmds_CXX=
17771link_all_deplibs_CXX=unknown
17772old_archive_cmds_CXX=$old_archive_cmds
17773no_undefined_flag_CXX=
17774whole_archive_flag_spec_CXX=
17775enable_shared_with_static_runtimes_CXX=no
17776
17777# Dependencies to place before and after the object being linked:
17778predep_objects_CXX=
17779postdep_objects_CXX=
17780predeps_CXX=
17781postdeps_CXX=
17782compiler_lib_search_path_CXX=
17783
17784# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017785ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017786
17787# Object file extension for compiled C++ test sources.
17788objext=o
17789objext_CXX=$objext
17790
17791# Code to be used in simple compile tests
17792lt_simple_compile_test_code="int some_variable = 0;\n"
17793
17794# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017795lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017796
17797# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17798
17799# If no C compiler was specified, use CC.
17800LTCC=${LTCC-"$CC"}
17801
Reid Spencera773bd52006-08-04 18:18:08 +000017802# If no C compiler flags were specified, use CFLAGS.
17803LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17804
John Criswell47fdd832003-07-14 16:52:07 +000017805# Allow CC to be a program name with arguments.
17806compiler=$CC
17807
17808
Reid Spencera773bd52006-08-04 18:18:08 +000017809# save warnings/boilerplate of simple test code
17810ac_outfile=conftest.$ac_objext
17811printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17812eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17813_lt_compiler_boilerplate=`cat conftest.err`
17814$rm conftest*
17815
17816ac_outfile=conftest.$ac_objext
17817printf "$lt_simple_link_test_code" >conftest.$ac_ext
17818eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17819_lt_linker_boilerplate=`cat conftest.err`
17820$rm conftest*
17821
17822
John Criswell47fdd832003-07-14 16:52:07 +000017823# Allow CC to be a program name with arguments.
17824lt_save_CC=$CC
17825lt_save_LD=$LD
17826lt_save_GCC=$GCC
17827GCC=$GXX
17828lt_save_with_gnu_ld=$with_gnu_ld
17829lt_save_path_LD=$lt_cv_path_LD
17830if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17831 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17832else
Reid Spencera773bd52006-08-04 18:18:08 +000017833 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017834fi
17835if test -n "${lt_cv_path_LDCXX+set}"; then
17836 lt_cv_path_LD=$lt_cv_path_LDCXX
17837else
Reid Spencera773bd52006-08-04 18:18:08 +000017838 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017839fi
17840test -z "${LDCXX+set}" || LD=$LDCXX
17841CC=${CXX-"c++"}
17842compiler=$CC
17843compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017844for cc_temp in $compiler""; do
17845 case $cc_temp in
17846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17848 \-*) ;;
17849 *) break;;
17850 esac
17851done
17852cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17853
John Criswell47fdd832003-07-14 16:52:07 +000017854
17855# We don't want -fno-exception wen compiling C++ code, so set the
17856# no_builtin_flag separately
17857if test "$GXX" = yes; then
17858 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17859else
17860 lt_prog_compiler_no_builtin_flag_CXX=
17861fi
17862
17863if test "$GXX" = yes; then
17864 # Set up default GNU C++ configuration
17865
17866
Reid Spencera773bd52006-08-04 18:18:08 +000017867# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017868if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017869 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017870else
17871 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017872fi
17873
John Criswell47fdd832003-07-14 16:52:07 +000017874ac_prog=ld
17875if test "$GCC" = yes; then
17876 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017877 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17878echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017879 case $host in
17880 *-*-mingw*)
17881 # gcc leaves a trailing carriage return which upsets mingw
17882 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17883 *)
17884 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17885 esac
17886 case $ac_prog in
17887 # Accept absolute paths.
17888 [\\/]* | ?:[\\/]*)
17889 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017890 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017891 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17892 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17893 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17894 done
17895 test -z "$LD" && LD="$ac_prog"
17896 ;;
17897 "")
17898 # If it fails, then pretend we aren't using GCC.
17899 ac_prog=ld
17900 ;;
17901 *)
17902 # If it is relative, then search for the first ld in PATH.
17903 with_gnu_ld=unknown
17904 ;;
17905 esac
17906elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017907 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17908echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017909else
Reid Spencera773bd52006-08-04 18:18:08 +000017910 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17911echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017912fi
17913if test "${lt_cv_path_LD+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915else
17916 if test -z "$LD"; then
17917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17918 for ac_dir in $PATH; do
17919 IFS="$lt_save_ifs"
17920 test -z "$ac_dir" && ac_dir=.
17921 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17922 lt_cv_path_LD="$ac_dir/$ac_prog"
17923 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017924 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017925 # Break only if it was the GNU/non-GNU ld that we prefer.
17926 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17927 *GNU* | *'with BFD'*)
17928 test "$with_gnu_ld" != no && break
17929 ;;
17930 *)
17931 test "$with_gnu_ld" != yes && break
17932 ;;
17933 esac
17934 fi
17935 done
17936 IFS="$lt_save_ifs"
17937else
17938 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17939fi
17940fi
17941
17942LD="$lt_cv_path_LD"
17943if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017944 { echo "$as_me:$LINENO: result: $LD" >&5
17945echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017946else
Reid Spencera773bd52006-08-04 18:18:08 +000017947 { echo "$as_me:$LINENO: result: no" >&5
17948echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017949fi
17950test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17951echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17952 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017953{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17954echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017955if test "${lt_cv_prog_gnu_ld+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957else
Reid Spencera773bd52006-08-04 18:18:08 +000017958 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017959case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017960*GNU* | *'with BFD'*)
17961 lt_cv_prog_gnu_ld=yes
17962 ;;
17963*)
17964 lt_cv_prog_gnu_ld=no
17965 ;;
17966esac
17967fi
Reid Spencera773bd52006-08-04 18:18:08 +000017968{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17969echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017970with_gnu_ld=$lt_cv_prog_gnu_ld
17971
17972
17973
17974 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17975 # archiving commands below assume that GNU ld is being used.
17976 if test "$with_gnu_ld" = yes; then
17977 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17978 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'
17979
17980 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17982
17983 # If archive_cmds runs LD, not CC, wlarc should be empty
17984 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17985 # investigate it a little bit more. (MM)
17986 wlarc='${wl}'
17987
17988 # ancient GNU ld didn't support --whole-archive et. al.
17989 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17990 grep 'no-whole-archive' > /dev/null; then
17991 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17992 else
17993 whole_archive_flag_spec_CXX=
17994 fi
17995 else
17996 with_gnu_ld=no
17997 wlarc=
17998
17999 # A generic and very simple default shared library creation
18000 # command for GNU C++ for the case where it uses the native
18001 # linker, instead of GNU ld. If possible, this setting should
18002 # overridden to take advantage of the native linker features on
18003 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018005 fi
18006
18007 # Commands to make compiler produce verbose output that lists
18008 # what "hidden" libraries, object files and flags are used when
18009 # linking a shared library.
18010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18011
18012else
18013 GXX=no
18014 with_gnu_ld=no
18015 wlarc=
18016fi
18017
18018# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018019{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18020echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018021ld_shlibs_CXX=yes
18022case $host_os in
18023 aix3*)
18024 # FIXME: insert proper C++ library support
18025 ld_shlibs_CXX=no
18026 ;;
18027 aix4* | aix5*)
18028 if test "$host_cpu" = ia64; then
18029 # On IA64, the linker does run time linking by default, so we don't
18030 # have to do anything special.
18031 aix_use_runtimelinking=no
18032 exp_sym_flag='-Bexport'
18033 no_entry_flag=""
18034 else
18035 aix_use_runtimelinking=no
18036
18037 # Test if we are trying to use run time linking or normal
18038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18039 # need to do runtime linking.
18040 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18041 for ld_flag in $LDFLAGS; do
18042 case $ld_flag in
18043 *-brtl*)
18044 aix_use_runtimelinking=yes
18045 break
18046 ;;
18047 esac
18048 done
Reid Spencera773bd52006-08-04 18:18:08 +000018049 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018050 esac
18051
18052 exp_sym_flag='-bexport'
18053 no_entry_flag='-bnoentry'
18054 fi
18055
18056 # When large executables or shared objects are built, AIX ld can
18057 # have problems creating the table of contents. If linking a library
18058 # or program results in "error TOC overflow" add -mminimal-toc to
18059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18061
18062 archive_cmds_CXX=''
18063 hardcode_direct_CXX=yes
18064 hardcode_libdir_separator_CXX=':'
18065 link_all_deplibs_CXX=yes
18066
18067 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018068 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018069 # We only want to do this on AIX 4.2 and lower, the check
18070 # below for broken collect2 doesn't work under 4.3+
18071 collect2name=`${CC} -print-prog-name=collect2`
18072 if test -f "$collect2name" && \
18073 strings "$collect2name" | grep resolve_lib_name >/dev/null
18074 then
18075 # We have reworked collect2
18076 hardcode_direct_CXX=yes
18077 else
18078 # We have old collect2
18079 hardcode_direct_CXX=unsupported
18080 # It fails to find uninstalled libraries when the uninstalled
18081 # path is not listed in the libpath. Setting hardcode_minus_L
18082 # to unsupported forces relinking
18083 hardcode_minus_L_CXX=yes
18084 hardcode_libdir_flag_spec_CXX='-L$libdir'
18085 hardcode_libdir_separator_CXX=
18086 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018087 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018088 esac
18089 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018090 if test "$aix_use_runtimelinking" = yes; then
18091 shared_flag="$shared_flag "'${wl}-G'
18092 fi
John Criswell47fdd832003-07-14 16:52:07 +000018093 else
18094 # not using gcc
18095 if test "$host_cpu" = ia64; then
18096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18097 # chokes on -Wl,-G. The following line is correct:
18098 shared_flag='-G'
18099 else
18100 if test "$aix_use_runtimelinking" = yes; then
18101 shared_flag='${wl}-G'
18102 else
18103 shared_flag='${wl}-bM:SRE'
18104 fi
18105 fi
18106 fi
18107
18108 # It seems that -bexpall does not export symbols beginning with
18109 # underscore (_), so it is better to generate a list of symbols to export.
18110 always_export_symbols_CXX=yes
18111 if test "$aix_use_runtimelinking" = yes; then
18112 # Warning - without using the other runtime loading flags (-brtl),
18113 # -berok will link without error, but may produce a broken library.
18114 allow_undefined_flag_CXX='-berok'
18115 # Determine the default libpath from the value encoded in an empty executable.
18116 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018117/* confdefs.h. */
18118_ACEOF
18119cat confdefs.h >>conftest.$ac_ext
18120cat >>conftest.$ac_ext <<_ACEOF
18121/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018122
John Criswell47fdd832003-07-14 16:52:07 +000018123int
18124main ()
18125{
18126
18127 ;
18128 return 0;
18129}
18130_ACEOF
18131rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018132if { (ac_try="$ac_link"
18133case "(($ac_try" in
18134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135 *) ac_try_echo=$ac_try;;
18136esac
18137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18138 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018139 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018140 grep -v '^ *+' conftest.er1 >conftest.err
18141 rm -f conftest.er1
18142 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18146 { (case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149esac
18150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159esac
18160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165
18166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18167}'`
18168# Check for a 64-bit object if we didn't find anything.
18169if 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; }
18170}'`; fi
18171else
18172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018173sed 's/^/| /' conftest.$ac_ext >&5
18174
Reid Spencera773bd52006-08-04 18:18:08 +000018175
John Criswell47fdd832003-07-14 16:52:07 +000018176fi
Reid Spencera773bd52006-08-04 18:18:08 +000018177
18178rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018179 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018180if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18181
18182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18183
Reid Spencera773bd52006-08-04 18:18:08 +000018184 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 +000018185 else
18186 if test "$host_cpu" = ia64; then
18187 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18188 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018189 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 +000018190 else
18191 # Determine the default libpath from the value encoded in an empty executable.
18192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018193/* confdefs.h. */
18194_ACEOF
18195cat confdefs.h >>conftest.$ac_ext
18196cat >>conftest.$ac_ext <<_ACEOF
18197/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018198
John Criswell47fdd832003-07-14 16:52:07 +000018199int
18200main ()
18201{
18202
18203 ;
18204 return 0;
18205}
18206_ACEOF
18207rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018208if { (ac_try="$ac_link"
18209case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18212esac
18213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018215 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18222 { (case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225esac
18226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235esac
18236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241
18242aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18243}'`
18244# Check for a 64-bit object if we didn't find anything.
18245if 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; }
18246}'`; fi
18247else
18248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018249sed 's/^/| /' conftest.$ac_ext >&5
18250
Reid Spencera773bd52006-08-04 18:18:08 +000018251
John Criswell47fdd832003-07-14 16:52:07 +000018252fi
Reid Spencera773bd52006-08-04 18:18:08 +000018253
18254rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018255 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018256if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18257
18258 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18259 # Warning - without using the other run time loading flags,
18260 # -berok will link without error, but may produce a broken library.
18261 no_undefined_flag_CXX=' ${wl}-bernotok'
18262 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018263 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018264 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018265 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018266 # This is similar to how AIX traditionally builds its shared libraries.
18267 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 +000018268 fi
18269 fi
18270 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018271
18272 beos*)
18273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18274 allow_undefined_flag_CXX=unsupported
18275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18276 # support --undefined. This deserves some investigation. FIXME
18277 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18278 else
18279 ld_shlibs_CXX=no
18280 fi
18281 ;;
18282
John Criswell47fdd832003-07-14 16:52:07 +000018283 chorus*)
18284 case $cc_basename in
18285 *)
18286 # FIXME: insert proper C++ library support
18287 ld_shlibs_CXX=no
18288 ;;
18289 esac
18290 ;;
18291
18292 cygwin* | mingw* | pw32*)
18293 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18294 # as there is no search path for DLLs.
18295 hardcode_libdir_flag_spec_CXX='-L$libdir'
18296 allow_undefined_flag_CXX=unsupported
18297 always_export_symbols_CXX=no
18298 enable_shared_with_static_runtimes_CXX=yes
18299
18300 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018301 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 +000018302 # If the export-symbols file already is a .def file (1st line
18303 # is EXPORTS), use it as is; otherwise, prepend...
18304 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18305 cp $export_symbols $output_objdir/$soname.def;
18306 else
18307 echo EXPORTS > $output_objdir/$soname.def;
18308 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018309 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018310 $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 +000018311 else
18312 ld_shlibs_CXX=no
18313 fi
18314 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018315 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018316 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018317 rhapsody* | darwin1.[012])
18318 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18319 ;;
18320 *) # Darwin 1.3 on
18321 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18322 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18323 else
18324 case ${MACOSX_DEPLOYMENT_TARGET} in
18325 10.[012])
18326 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18327 ;;
18328 10.*)
18329 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18330 ;;
18331 esac
18332 fi
18333 ;;
18334 esac
18335 archive_cmds_need_lc_CXX=no
18336 hardcode_direct_CXX=no
18337 hardcode_automatic_CXX=yes
18338 hardcode_shlibpath_var_CXX=unsupported
18339 whole_archive_flag_spec_CXX=''
18340 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018341
Reid Spencer2706f8c2004-09-19 23:53:36 +000018342 if test "$GXX" = yes ; then
18343 lt_int_apple_cc_single_mod=no
18344 output_verbose_link_cmd='echo'
18345 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18346 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018347 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018348 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018349 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 +000018350 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018351 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 +000018352 fi
18353 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018354 # 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 +000018355 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018356 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 +000018357 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018358 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 +000018359 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018360 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 +000018361 else
Reid Spencera773bd52006-08-04 18:18:08 +000018362 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018363 xlc*)
18364 output_verbose_link_cmd='echo'
18365 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'
18366 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018367 # 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 +000018368 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}'
18369 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 +000018370 ;;
18371 *)
18372 ld_shlibs_CXX=no
18373 ;;
18374 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018375 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018376 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018377
18378 dgux*)
18379 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018380 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018381 # FIXME: insert proper C++ library support
18382 ld_shlibs_CXX=no
18383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018384 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018385 # Green Hills C++ Compiler
18386 # FIXME: insert proper C++ library support
18387 ld_shlibs_CXX=no
18388 ;;
18389 *)
18390 # FIXME: insert proper C++ library support
18391 ld_shlibs_CXX=no
18392 ;;
18393 esac
18394 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018395 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018396 # C++ shared libraries reported to be fairly broken before switch to ELF
18397 ld_shlibs_CXX=no
18398 ;;
18399 freebsd-elf*)
18400 archive_cmds_need_lc_CXX=no
18401 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018402 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018403 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18404 # conventions
18405 ld_shlibs_CXX=yes
18406 ;;
18407 gnu*)
18408 ;;
18409 hpux9*)
18410 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18411 hardcode_libdir_separator_CXX=:
18412 export_dynamic_flag_spec_CXX='${wl}-E'
18413 hardcode_direct_CXX=yes
18414 hardcode_minus_L_CXX=yes # Not in the search PATH,
18415 # but as the default
18416 # location of the library.
18417
18418 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018419 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018420 # FIXME: insert proper C++ library support
18421 ld_shlibs_CXX=no
18422 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018423 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018424 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 +000018425 # Commands to make compiler produce verbose output that lists
18426 # what "hidden" libraries, object files and flags are used when
18427 # linking a shared library.
18428 #
18429 # There doesn't appear to be a way to prevent this compiler from
18430 # explicitly linking system object files so we need to strip them
18431 # from the output so that they don't get included in the library
18432 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018433 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 +000018434 ;;
18435 *)
18436 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018437 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 +000018438 else
18439 # FIXME: insert proper C++ library support
18440 ld_shlibs_CXX=no
18441 fi
18442 ;;
18443 esac
18444 ;;
18445 hpux10*|hpux11*)
18446 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018447 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18448 hardcode_libdir_separator_CXX=:
18449
18450 case $host_cpu in
18451 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018452 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018453 ;;
18454 *)
John Criswell47fdd832003-07-14 16:52:07 +000018455 export_dynamic_flag_spec_CXX='${wl}-E'
18456 ;;
18457 esac
18458 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018459 case $host_cpu in
18460 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018461 hardcode_direct_CXX=no
18462 hardcode_shlibpath_var_CXX=no
18463 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018464 *)
18465 hardcode_direct_CXX=yes
18466 hardcode_minus_L_CXX=yes # Not in the search PATH,
18467 # but as the default
18468 # location of the library.
18469 ;;
18470 esac
18471
18472 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018473 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018474 # FIXME: insert proper C++ library support
18475 ld_shlibs_CXX=no
18476 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018477 aCC*)
18478 case $host_cpu in
18479 hppa*64*)
18480 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18481 ;;
18482 ia64*)
18483 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 +000018484 ;;
18485 *)
18486 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18487 ;;
18488 esac
18489 # Commands to make compiler produce verbose output that lists
18490 # what "hidden" libraries, object files and flags are used when
18491 # linking a shared library.
18492 #
18493 # There doesn't appear to be a way to prevent this compiler from
18494 # explicitly linking system object files so we need to strip them
18495 # from the output so that they don't get included in the library
18496 # dependencies.
18497 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'
18498 ;;
18499 *)
18500 if test "$GXX" = yes; then
18501 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018502 case $host_cpu in
18503 hppa*64*)
18504 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18505 ;;
18506 ia64*)
18507 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 +000018508 ;;
18509 *)
18510 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'
18511 ;;
18512 esac
18513 fi
18514 else
18515 # FIXME: insert proper C++ library support
18516 ld_shlibs_CXX=no
18517 fi
18518 ;;
18519 esac
18520 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018521 interix3*)
18522 hardcode_direct_CXX=no
18523 hardcode_shlibpath_var_CXX=no
18524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18525 export_dynamic_flag_spec_CXX='${wl}-E'
18526 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18527 # Instead, shared libraries are loaded at an image base (0x10000000 by
18528 # default) and relocated if they conflict, which is a slow very memory
18529 # consuming and fragmenting process. To avoid this, we pick a random,
18530 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18531 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18532 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'
18533 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'
18534 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018535 irix5* | irix6*)
18536 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018537 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018538 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018539 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 +000018540
18541 # Archives containing C++ object files must be created using
18542 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18543 # necessary to make sure instantiated templates are included
18544 # in the archive.
18545 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18546 ;;
18547 *)
18548 if test "$GXX" = yes; then
18549 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018550 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 +000018551 else
18552 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'
18553 fi
18554 fi
18555 link_all_deplibs_CXX=yes
18556 ;;
18557 esac
18558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18559 hardcode_libdir_separator_CXX=:
18560 ;;
18561 linux*)
18562 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018563 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018564 # Kuck and Associates, Inc. (KAI) C++ Compiler
18565
18566 # KCC will only create a shared library if the output file
18567 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18568 # to its proper name (with version) after linking.
18569 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'
18570 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'
18571 # Commands to make compiler produce verbose output that lists
18572 # what "hidden" libraries, object files and flags are used when
18573 # linking a shared library.
18574 #
18575 # There doesn't appear to be a way to prevent this compiler from
18576 # explicitly linking system object files so we need to strip them
18577 # from the output so that they don't get included in the library
18578 # dependencies.
18579 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'
18580
18581 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18583
18584 # Archives containing C++ object files must be created using
18585 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18586 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18587 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018588 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018589 # Intel C++
18590 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018591 # version 8.0 and above of icpc choke on multiply defined symbols
18592 # if we add $predep_objects and $postdep_objects, however 7.1 and
18593 # earlier do not add the objects themselves.
18594 case `$CC -V 2>&1` in
18595 *"Version 7."*)
18596 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18597 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'
18598 ;;
18599 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018600 tmp_idyn=
18601 case $host_cpu in
18602 ia64*) tmp_idyn=' -i_dynamic';;
18603 esac
18604 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18605 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 +000018606 ;;
18607 esac
John Criswell47fdd832003-07-14 16:52:07 +000018608 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18611 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18612 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018613 pgCC*)
18614 # Portland Group C++ compiler
18615 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18616 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'
18617
18618 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18620 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'
18621 ;;
18622 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018623 # Compaq C++
18624 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18625 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'
18626
18627 runpath_var=LD_RUN_PATH
18628 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18629 hardcode_libdir_separator_CXX=:
18630
18631 # Commands to make compiler produce verbose output that lists
18632 # what "hidden" libraries, object files and flags are used when
18633 # linking a shared library.
18634 #
18635 # There doesn't appear to be a way to prevent this compiler from
18636 # explicitly linking system object files so we need to strip them
18637 # from the output so that they don't get included in the library
18638 # dependencies.
18639 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'
18640 ;;
18641 esac
18642 ;;
18643 lynxos*)
18644 # FIXME: insert proper C++ library support
18645 ld_shlibs_CXX=no
18646 ;;
18647 m88k*)
18648 # FIXME: insert proper C++ library support
18649 ld_shlibs_CXX=no
18650 ;;
18651 mvs*)
18652 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018653 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018654 # FIXME: insert proper C++ library support
18655 ld_shlibs_CXX=no
18656 ;;
18657 *)
18658 # FIXME: insert proper C++ library support
18659 ld_shlibs_CXX=no
18660 ;;
18661 esac
18662 ;;
18663 netbsd*)
18664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18665 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18666 wlarc=
18667 hardcode_libdir_flag_spec_CXX='-R$libdir'
18668 hardcode_direct_CXX=yes
18669 hardcode_shlibpath_var_CXX=no
18670 fi
18671 # Workaround some broken pre-1.5 toolchains
18672 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18673 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018674 openbsd2*)
18675 # C++ shared libraries are fairly broken
18676 ld_shlibs_CXX=no
18677 ;;
18678 openbsd*)
18679 hardcode_direct_CXX=yes
18680 hardcode_shlibpath_var_CXX=no
18681 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18684 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18685 export_dynamic_flag_spec_CXX='${wl}-E'
18686 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18687 fi
18688 output_verbose_link_cmd='echo'
18689 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018690 osf3*)
18691 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018692 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018693 # Kuck and Associates, Inc. (KAI) C++ Compiler
18694
18695 # KCC will only create a shared library if the output file
18696 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18697 # to its proper name (with version) after linking.
18698 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'
18699
18700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18701 hardcode_libdir_separator_CXX=:
18702
18703 # Archives containing C++ object files must be created using
18704 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18705 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18706
18707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018708 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018709 # Rational C++ 2.4.1
18710 # FIXME: insert proper C++ library support
18711 ld_shlibs_CXX=no
18712 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018713 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018714 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018715 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 +000018716
18717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18718 hardcode_libdir_separator_CXX=:
18719
18720 # Commands to make compiler produce verbose output that lists
18721 # what "hidden" libraries, object files and flags are used when
18722 # linking a shared library.
18723 #
18724 # There doesn't appear to be a way to prevent this compiler from
18725 # explicitly linking system object files so we need to strip them
18726 # from the output so that they don't get included in the library
18727 # dependencies.
18728 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'
18729 ;;
18730 *)
18731 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18732 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018733 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 +000018734
18735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18736 hardcode_libdir_separator_CXX=:
18737
18738 # Commands to make compiler produce verbose output that lists
18739 # what "hidden" libraries, object files and flags are used when
18740 # linking a shared library.
18741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18742
18743 else
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18746 fi
18747 ;;
18748 esac
18749 ;;
18750 osf4* | osf5*)
18751 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018752 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018753 # Kuck and Associates, Inc. (KAI) C++ Compiler
18754
18755 # KCC will only create a shared library if the output file
18756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18757 # to its proper name (with version) after linking.
18758 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'
18759
18760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18761 hardcode_libdir_separator_CXX=:
18762
18763 # Archives containing C++ object files must be created using
18764 # the KAI C++ compiler.
18765 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018767 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018768 # Rational C++ 2.4.1
18769 # FIXME: insert proper C++ library support
18770 ld_shlibs_CXX=no
18771 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018772 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018773 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018774 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 +000018775 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18776 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018777 $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 +000018778 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018779
18780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18781 hardcode_libdir_separator_CXX=:
18782
18783 # Commands to make compiler produce verbose output that lists
18784 # what "hidden" libraries, object files and flags are used when
18785 # linking a shared library.
18786 #
18787 # There doesn't appear to be a way to prevent this compiler from
18788 # explicitly linking system object files so we need to strip them
18789 # from the output so that they don't get included in the library
18790 # dependencies.
18791 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'
18792 ;;
18793 *)
18794 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18795 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018796 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 +000018797
18798 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18799 hardcode_libdir_separator_CXX=:
18800
18801 # Commands to make compiler produce verbose output that lists
18802 # what "hidden" libraries, object files and flags are used when
18803 # linking a shared library.
18804 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18805
18806 else
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 fi
18810 ;;
18811 esac
18812 ;;
18813 psos*)
18814 # FIXME: insert proper C++ library support
18815 ld_shlibs_CXX=no
18816 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018817 sunos4*)
18818 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018819 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018820 # Sun C++ 4.x
18821 # FIXME: insert proper C++ library support
18822 ld_shlibs_CXX=no
18823 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018824 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018825 # Lucid
18826 # FIXME: insert proper C++ library support
18827 ld_shlibs_CXX=no
18828 ;;
18829 *)
18830 # FIXME: insert proper C++ library support
18831 ld_shlibs_CXX=no
18832 ;;
18833 esac
18834 ;;
18835 solaris*)
18836 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018837 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018838 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018839 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018840 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018841 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 +000018842 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 +000018843 $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 +000018844
18845 hardcode_libdir_flag_spec_CXX='-R$libdir'
18846 hardcode_shlibpath_var_CXX=no
18847 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018848 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018849 *)
18850 # The C++ compiler is used as linker so we must use $wl
18851 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018852 # linker. We must also pass each convience library through
18853 # to the system linker between allextract/defaultextract.
18854 # The C++ compiler will combine linker options so we
18855 # cannot just pass the convience library names through
18856 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018857 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018858 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 +000018859 ;;
18860 esac
18861 link_all_deplibs_CXX=yes
18862
Reid Spencera773bd52006-08-04 18:18:08 +000018863 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018864
18865 # Archives containing C++ object files must be created using
18866 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18867 # necessary to make sure instantiated templates are included
18868 # in the archive.
18869 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18870 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018871 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018872 # Green Hills C++ Compiler
18873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18874
18875 # The C++ compiler must be used to create the archive.
18876 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18877 ;;
18878 *)
18879 # GNU C++ compiler with Solaris linker
18880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18881 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18882 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018883 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 +000018884 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18885 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18886
John Criswell47fdd832003-07-14 16:52:07 +000018887 # Commands to make compiler produce verbose output that lists
18888 # what "hidden" libraries, object files and flags are used when
18889 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018890 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018891 else
18892 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18893 # platform.
18894 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 +000018895 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18896 $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 +000018897
18898 # Commands to make compiler produce verbose output that lists
18899 # what "hidden" libraries, object files and flags are used when
18900 # linking a shared library.
18901 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18902 fi
18903
18904 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18905 fi
18906 ;;
18907 esac
18908 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018909 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18910 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018911 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018912 hardcode_shlibpath_var_CXX=no
18913 runpath_var='LD_RUN_PATH'
18914
18915 case $cc_basename in
18916 CC*)
18917 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18918 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18919 ;;
18920 *)
18921 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18922 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18923 ;;
18924 esac
18925 ;;
18926 sysv5* | sco3.2v5* | sco5v6*)
18927 # Note: We can NOT use -z defs as we might desire, because we do not
18928 # link with -lc, and that would cause any symbols used from libc to
18929 # always be unresolved, which means just about no library would
18930 # ever link correctly. If we're not using GNU ld we use -z text
18931 # though, which does catch some bad symbols but isn't as heavy-handed
18932 # as -z defs.
18933 # For security reasons, it is highly recommended that you always
18934 # use absolute paths for naming shared libraries, and exclude the
18935 # DT_RUNPATH tag from executables and libraries. But doing so
18936 # requires that you compile everything twice, which is a pain.
18937 # So that behaviour is only enabled if SCOABSPATH is set to a
18938 # non-empty value in the environment. Most likely only useful for
18939 # creating official distributions of packages.
18940 # This is a hack until libtool officially supports absolute path
18941 # names for shared libraries.
18942 no_undefined_flag_CXX='${wl}-z,text'
18943 allow_undefined_flag_CXX='${wl}-z,nodefs'
18944 archive_cmds_need_lc_CXX=no
18945 hardcode_shlibpath_var_CXX=no
18946 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18947 hardcode_libdir_separator_CXX=':'
18948 link_all_deplibs_CXX=yes
18949 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18950 runpath_var='LD_RUN_PATH'
18951
18952 case $cc_basename in
18953 CC*)
18954 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18955 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18956 ;;
18957 *)
18958 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18960 ;;
18961 esac
John Criswell47fdd832003-07-14 16:52:07 +000018962 ;;
18963 tandem*)
18964 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018965 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018966 # NonStop-UX NCC 3.20
18967 # FIXME: insert proper C++ library support
18968 ld_shlibs_CXX=no
18969 ;;
18970 *)
18971 # FIXME: insert proper C++ library support
18972 ld_shlibs_CXX=no
18973 ;;
18974 esac
18975 ;;
18976 vxworks*)
18977 # FIXME: insert proper C++ library support
18978 ld_shlibs_CXX=no
18979 ;;
18980 *)
18981 # FIXME: insert proper C++ library support
18982 ld_shlibs_CXX=no
18983 ;;
18984esac
Reid Spencera773bd52006-08-04 18:18:08 +000018985{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18986echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018987test "$ld_shlibs_CXX" = no && can_build_shared=no
18988
18989GCC_CXX="$GXX"
18990LD_CXX="$LD"
18991
John Criswell47fdd832003-07-14 16:52:07 +000018992
18993cat > conftest.$ac_ext <<EOF
18994class Foo
18995{
18996public:
18997 Foo (void) { a = 0; }
18998private:
18999 int a;
19000};
19001EOF
19002
19003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19004 (eval $ac_compile) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; then
19008 # Parse the compiler output and extract the necessary
19009 # objects, libraries and library flags.
19010
19011 # Sentinel used to keep track of whether or not we are before
19012 # the conftest object file.
19013 pre_test_object_deps_done=no
19014
19015 # The `*' in the case matches for architectures that use `case' in
19016 # $output_verbose_cmd can trigger glob expansion during the loop
19017 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019018 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019019
19020 for p in `eval $output_verbose_link_cmd`; do
19021 case $p in
19022
19023 -L* | -R* | -l*)
19024 # Some compilers place space between "-{L,R}" and the path.
19025 # Remove the space.
19026 if test $p = "-L" \
19027 || test $p = "-R"; then
19028 prev=$p
19029 continue
19030 else
19031 prev=
19032 fi
19033
19034 if test "$pre_test_object_deps_done" = no; then
19035 case $p in
19036 -L* | -R*)
19037 # Internal compiler library paths should come after those
19038 # provided the user. The postdeps already come after the
19039 # user supplied libs so there is no need to process them.
19040 if test -z "$compiler_lib_search_path_CXX"; then
19041 compiler_lib_search_path_CXX="${prev}${p}"
19042 else
19043 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19044 fi
19045 ;;
19046 # The "-l" case would never come before the object being
19047 # linked, so don't bother handling this case.
19048 esac
19049 else
19050 if test -z "$postdeps_CXX"; then
19051 postdeps_CXX="${prev}${p}"
19052 else
19053 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19054 fi
19055 fi
19056 ;;
19057
19058 *.$objext)
19059 # This assumes that the test object file only shows up
19060 # once in the compiler output.
19061 if test "$p" = "conftest.$objext"; then
19062 pre_test_object_deps_done=yes
19063 continue
19064 fi
19065
19066 if test "$pre_test_object_deps_done" = no; then
19067 if test -z "$predep_objects_CXX"; then
19068 predep_objects_CXX="$p"
19069 else
19070 predep_objects_CXX="$predep_objects_CXX $p"
19071 fi
19072 else
19073 if test -z "$postdep_objects_CXX"; then
19074 postdep_objects_CXX="$p"
19075 else
19076 postdep_objects_CXX="$postdep_objects_CXX $p"
19077 fi
19078 fi
19079 ;;
19080
19081 *) ;; # Ignore the rest.
19082
19083 esac
19084 done
19085
19086 # Clean up.
19087 rm -f a.out a.exe
19088else
19089 echo "libtool.m4: error: problem compiling CXX test program"
19090fi
19091
19092$rm -f confest.$objext
19093
Reid Spencera773bd52006-08-04 18:18:08 +000019094# PORTME: override above test on systems where it is broken
19095case $host_os in
19096interix3*)
19097 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19098 # hack all around it, let's just trust "g++" to DTRT.
19099 predep_objects_CXX=
19100 postdep_objects_CXX=
19101 postdeps_CXX=
19102 ;;
19103
19104solaris*)
19105 case $cc_basename in
19106 CC*)
19107 # Adding this requires a known-good setup of shared libraries for
19108 # Sun compiler versions before 5.6, else PIC objects from an old
19109 # archive will be linked into the output, leading to subtle bugs.
19110 postdeps_CXX='-lCstd -lCrun'
19111 ;;
19112 esac
19113 ;;
19114esac
19115
19116
John Criswell47fdd832003-07-14 16:52:07 +000019117case " $postdeps_CXX " in
19118*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19119esac
19120
19121lt_prog_compiler_wl_CXX=
19122lt_prog_compiler_pic_CXX=
19123lt_prog_compiler_static_CXX=
19124
Reid Spencera773bd52006-08-04 18:18:08 +000019125{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19126echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019127
19128 # C++ specific cases for pic, static, wl, etc.
19129 if test "$GXX" = yes; then
19130 lt_prog_compiler_wl_CXX='-Wl,'
19131 lt_prog_compiler_static_CXX='-static'
19132
19133 case $host_os in
19134 aix*)
19135 # All AIX code is PIC.
19136 if test "$host_cpu" = ia64; then
19137 # AIX 5 now supports IA64 processor
19138 lt_prog_compiler_static_CXX='-Bstatic'
19139 fi
19140 ;;
19141 amigaos*)
19142 # FIXME: we need at least 68020 code to build shared libraries, but
19143 # adding the `-m68020' flag to GCC prevents building anything better,
19144 # like `-m68040'.
19145 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19146 ;;
19147 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19148 # PIC is the default for these OSes.
19149 ;;
19150 mingw* | os2* | pw32*)
19151 # This hack is so that the source file can tell whether it is being
19152 # built for inclusion in a dll (and should export symbols for example).
19153 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19154 ;;
19155 darwin* | rhapsody*)
19156 # PIC is the default on this platform
19157 # Common symbols not allowed in MH_DYLIB files
19158 lt_prog_compiler_pic_CXX='-fno-common'
19159 ;;
19160 *djgpp*)
19161 # DJGPP does not support shared libraries at all
19162 lt_prog_compiler_pic_CXX=
19163 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019164 interix3*)
19165 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19166 # Instead, we relocate shared libraries at runtime.
19167 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019168 sysv4*MP*)
19169 if test -d /usr/nec; then
19170 lt_prog_compiler_pic_CXX=-Kconform_pic
19171 fi
19172 ;;
19173 hpux*)
19174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19175 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019176 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019177 hppa*64*|ia64*)
19178 ;;
19179 *)
19180 lt_prog_compiler_pic_CXX='-fPIC'
19181 ;;
19182 esac
19183 ;;
19184 *)
19185 lt_prog_compiler_pic_CXX='-fPIC'
19186 ;;
19187 esac
19188 else
19189 case $host_os in
19190 aix4* | aix5*)
19191 # All AIX code is PIC.
19192 if test "$host_cpu" = ia64; then
19193 # AIX 5 now supports IA64 processor
19194 lt_prog_compiler_static_CXX='-Bstatic'
19195 else
19196 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19197 fi
19198 ;;
19199 chorus*)
19200 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019201 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019202 # Green Hills C++ Compiler
19203 # _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"
19204 ;;
19205 esac
19206 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019207 darwin*)
19208 # PIC is the default on this platform
19209 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019210 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019211 xlc*)
19212 lt_prog_compiler_pic_CXX='-qnocommon'
19213 lt_prog_compiler_wl_CXX='-Wl,'
19214 ;;
19215 esac
19216 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019217 dgux*)
19218 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019219 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019220 lt_prog_compiler_pic_CXX='-KPIC'
19221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019222 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019223 # Green Hills C++ Compiler
19224 lt_prog_compiler_pic_CXX='-pic'
19225 ;;
19226 *)
19227 ;;
19228 esac
19229 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019230 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019231 # FreeBSD uses GNU C++
19232 ;;
19233 hpux9* | hpux10* | hpux11*)
19234 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019235 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019236 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019237 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019238 if test "$host_cpu" != ia64; then
19239 lt_prog_compiler_pic_CXX='+Z'
19240 fi
19241 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019242 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019243 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019244 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19245 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019246 hppa*64*|ia64*)
19247 # +Z the default
19248 ;;
19249 *)
19250 lt_prog_compiler_pic_CXX='+Z'
19251 ;;
19252 esac
19253 ;;
19254 *)
19255 ;;
19256 esac
19257 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019258 interix*)
19259 # This is c89, which is MS Visual C++ (no shared libs)
19260 # Anyone wants to do a port?
19261 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019262 irix5* | irix6* | nonstopux*)
19263 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019264 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019265 lt_prog_compiler_wl_CXX='-Wl,'
19266 lt_prog_compiler_static_CXX='-non_shared'
19267 # CC pic flag -KPIC is the default.
19268 ;;
19269 *)
19270 ;;
19271 esac
19272 ;;
19273 linux*)
19274 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019275 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019276 # KAI C++ Compiler
19277 lt_prog_compiler_wl_CXX='--backend -Wl,'
19278 lt_prog_compiler_pic_CXX='-fPIC'
19279 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019280 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019281 # Intel C++
19282 lt_prog_compiler_wl_CXX='-Wl,'
19283 lt_prog_compiler_pic_CXX='-KPIC'
19284 lt_prog_compiler_static_CXX='-static'
19285 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019286 pgCC*)
19287 # Portland Group C++ compiler.
19288 lt_prog_compiler_wl_CXX='-Wl,'
19289 lt_prog_compiler_pic_CXX='-fpic'
19290 lt_prog_compiler_static_CXX='-Bstatic'
19291 ;;
19292 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019293 # Compaq C++
19294 # Make sure the PIC flag is empty. It appears that all Alpha
19295 # Linux and Compaq Tru64 Unix objects are PIC.
19296 lt_prog_compiler_pic_CXX=
19297 lt_prog_compiler_static_CXX='-non_shared'
19298 ;;
19299 *)
19300 ;;
19301 esac
19302 ;;
19303 lynxos*)
19304 ;;
19305 m88k*)
19306 ;;
19307 mvs*)
19308 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019309 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019310 lt_prog_compiler_pic_CXX='-W c,exportall'
19311 ;;
19312 *)
19313 ;;
19314 esac
19315 ;;
19316 netbsd*)
19317 ;;
19318 osf3* | osf4* | osf5*)
19319 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019320 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019321 lt_prog_compiler_wl_CXX='--backend -Wl,'
19322 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019323 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019324 # Rational C++ 2.4.1
19325 lt_prog_compiler_pic_CXX='-pic'
19326 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019327 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019328 # Digital/Compaq C++
19329 lt_prog_compiler_wl_CXX='-Wl,'
19330 # Make sure the PIC flag is empty. It appears that all Alpha
19331 # Linux and Compaq Tru64 Unix objects are PIC.
19332 lt_prog_compiler_pic_CXX=
19333 lt_prog_compiler_static_CXX='-non_shared'
19334 ;;
19335 *)
19336 ;;
19337 esac
19338 ;;
19339 psos*)
19340 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019341 solaris*)
19342 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019343 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019344 # Sun C++ 4.2, 5.x and Centerline C++
19345 lt_prog_compiler_pic_CXX='-KPIC'
19346 lt_prog_compiler_static_CXX='-Bstatic'
19347 lt_prog_compiler_wl_CXX='-Qoption ld '
19348 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019349 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019350 # Green Hills C++ Compiler
19351 lt_prog_compiler_pic_CXX='-PIC'
19352 ;;
19353 *)
19354 ;;
19355 esac
19356 ;;
19357 sunos4*)
19358 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019359 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019360 # Sun C++ 4.x
19361 lt_prog_compiler_pic_CXX='-pic'
19362 lt_prog_compiler_static_CXX='-Bstatic'
19363 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019364 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019365 # Lucid
19366 lt_prog_compiler_pic_CXX='-pic'
19367 ;;
19368 *)
19369 ;;
19370 esac
19371 ;;
19372 tandem*)
19373 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019374 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019375 # NonStop-UX NCC 3.20
19376 lt_prog_compiler_pic_CXX='-KPIC'
19377 ;;
19378 *)
19379 ;;
19380 esac
19381 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19383 case $cc_basename in
19384 CC*)
19385 lt_prog_compiler_wl_CXX='-Wl,'
19386 lt_prog_compiler_pic_CXX='-KPIC'
19387 lt_prog_compiler_static_CXX='-Bstatic'
19388 ;;
19389 esac
John Criswell47fdd832003-07-14 16:52:07 +000019390 ;;
19391 vxworks*)
19392 ;;
19393 *)
19394 lt_prog_compiler_can_build_shared_CXX=no
19395 ;;
19396 esac
19397 fi
19398
Reid Spencera773bd52006-08-04 18:18:08 +000019399{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19400echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019401
19402#
19403# Check to make sure the PIC flag actually works.
19404#
19405if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019406
Reid Spencera773bd52006-08-04 18:18:08 +000019407{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19408echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019409if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19411else
19412 lt_prog_compiler_pic_works_CXX=no
19413 ac_outfile=conftest.$ac_objext
19414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19415 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19416 # Insert the option either (1) after the last *FLAGS variable, or
19417 # (2) before a word containing "conftest.", or (3) at the end.
19418 # Note that $ac_compile itself does not contain backslashes and begins
19419 # with a dollar sign (not a hyphen), so the echo should work correctly.
19420 # The option is referenced via a variable to avoid confusing sed.
19421 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19424 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000019425 (eval echo "\"\$as_me:19425: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019426 (eval "$lt_compile" 2>conftest.err)
19427 ac_status=$?
19428 cat conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000019429 echo "$as_me:19429: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019430 if (exit $ac_status) && test -s "$ac_outfile"; then
19431 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019432 # So say no if there are warnings other than the usual output.
19433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019436 lt_prog_compiler_pic_works_CXX=yes
19437 fi
19438 fi
19439 $rm conftest*
19440
19441fi
Reid Spencera773bd52006-08-04 18:18:08 +000019442{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19443echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019444
19445if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19446 case $lt_prog_compiler_pic_CXX in
19447 "" | " "*) ;;
19448 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19449 esac
19450else
19451 lt_prog_compiler_pic_CXX=
19452 lt_prog_compiler_can_build_shared_CXX=no
19453fi
19454
19455fi
Reid Spencera773bd52006-08-04 18:18:08 +000019456case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019457 # For platforms which do not support PIC, -DPIC is meaningless:
19458 *djgpp*)
19459 lt_prog_compiler_pic_CXX=
19460 ;;
19461 *)
19462 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19463 ;;
19464esac
19465
Reid Spencera773bd52006-08-04 18:18:08 +000019466#
19467# Check to make sure the static flag actually works.
19468#
19469wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19470{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19471echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19472if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474else
19475 lt_prog_compiler_static_works_CXX=no
19476 save_LDFLAGS="$LDFLAGS"
19477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19478 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19480 # The linker can only warn and ignore the option if not recognized
19481 # So say no if there are warnings
19482 if test -s conftest.err; then
19483 # Append any errors to the config.log.
19484 cat conftest.err 1>&5
19485 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19487 if diff conftest.exp conftest.er2 >/dev/null; then
19488 lt_prog_compiler_static_works_CXX=yes
19489 fi
19490 else
19491 lt_prog_compiler_static_works_CXX=yes
19492 fi
19493 fi
19494 $rm conftest*
19495 LDFLAGS="$save_LDFLAGS"
19496
19497fi
19498{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19499echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19500
19501if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19502 :
19503else
19504 lt_prog_compiler_static_CXX=
19505fi
19506
19507
19508{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19509echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019510if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512else
19513 lt_cv_prog_compiler_c_o_CXX=no
19514 $rm -r conftest 2>/dev/null
19515 mkdir conftest
19516 cd conftest
19517 mkdir out
19518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19519
John Criswell47fdd832003-07-14 16:52:07 +000019520 lt_compiler_flag="-o out/conftest2.$ac_objext"
19521 # Insert the option either (1) after the last *FLAGS variable, or
19522 # (2) before a word containing "conftest.", or (3) at the end.
19523 # Note that $ac_compile itself does not contain backslashes and begins
19524 # with a dollar sign (not a hyphen), so the echo should work correctly.
19525 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19528 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000019529 (eval echo "\"\$as_me:19529: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019530 (eval "$lt_compile" 2>out/conftest.err)
19531 ac_status=$?
19532 cat out/conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000019533 echo "$as_me:19533: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19535 then
19536 # The compiler can only warn and ignore the option if not recognized
19537 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019541 lt_cv_prog_compiler_c_o_CXX=yes
19542 fi
19543 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019544 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019545 $rm conftest*
19546 # SGI C++ compiler will create directory out/ii_files/ for
19547 # template instantiation
19548 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19549 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019550 cd ..
19551 rmdir conftest
19552 $rm conftest*
19553
19554fi
Reid Spencera773bd52006-08-04 18:18:08 +000019555{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19556echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019557
19558
19559hard_links="nottested"
19560if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19561 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019562 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19563echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019564 hard_links=yes
19565 $rm conftest*
19566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19567 touch conftest.a
19568 ln conftest.a conftest.b 2>&5 || hard_links=no
19569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019570 { echo "$as_me:$LINENO: result: $hard_links" >&5
19571echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019572 if test "$hard_links" = no; then
19573 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19574echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19575 need_locks=warn
19576 fi
19577else
19578 need_locks=no
19579fi
19580
Reid Spencera773bd52006-08-04 18:18:08 +000019581{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19582echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019583
19584 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19585 case $host_os in
19586 aix4* | aix5*)
19587 # If we're using GNU nm, then we don't want the "-C" option.
19588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19589 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19590 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'
19591 else
19592 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'
19593 fi
19594 ;;
19595 pw32*)
19596 export_symbols_cmds_CXX="$ltdll_cmds"
19597 ;;
19598 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019599 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 +000019600 ;;
19601 *)
19602 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19603 ;;
19604 esac
19605
Reid Spencera773bd52006-08-04 18:18:08 +000019606{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19607echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019608test "$ld_shlibs_CXX" = no && can_build_shared=no
19609
John Criswell47fdd832003-07-14 16:52:07 +000019610#
19611# Do we need to explicitly link libc?
19612#
19613case "x$archive_cmds_need_lc_CXX" in
19614x|xyes)
19615 # Assume -lc should be added
19616 archive_cmds_need_lc_CXX=yes
19617
19618 if test "$enable_shared" = yes && test "$GCC" = yes; then
19619 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019620 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019621 # FIXME: we may have to deal with multi-command sequences.
19622 ;;
19623 '$CC '*)
19624 # Test whether the compiler implicitly links with -lc since on some
19625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19626 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019627 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19628echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019629 $rm conftest*
19630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19631
19632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19633 (eval $ac_compile) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } 2>conftest.err; then
19637 soname=conftest
19638 lib=conftest
19639 libobjs=conftest.$ac_objext
19640 deplibs=
19641 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019642 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019643 compiler_flags=-v
19644 linker_flags=-v
19645 verstring=
19646 output_objdir=.
19647 libname=conftest
19648 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19649 allow_undefined_flag_CXX=
19650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19651 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }
19655 then
19656 archive_cmds_need_lc_CXX=no
19657 else
19658 archive_cmds_need_lc_CXX=yes
19659 fi
19660 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19661 else
19662 cat conftest.err 1>&5
19663 fi
19664 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019665 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19666echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019667 ;;
19668 esac
19669 fi
19670 ;;
19671esac
19672
Reid Spencera773bd52006-08-04 18:18:08 +000019673{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19674echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019675library_names_spec=
19676libname_spec='lib$name'
19677soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019678shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019679postinstall_cmds=
19680postuninstall_cmds=
19681finish_cmds=
19682finish_eval=
19683shlibpath_var=
19684shlibpath_overrides_runpath=unknown
19685version_type=none
19686dynamic_linker="$host_os ld.so"
19687sys_lib_dlsearch_path_spec="/lib /usr/lib"
19688if test "$GCC" = yes; then
19689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19690 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19691 # if the path contains ";" then we assume it to be the separator
19692 # otherwise default to the standard path separator (i.e. ":") - it is
19693 # assumed that no part of a normal pathname contains ";" but that should
19694 # okay in the real world where ";" in dirpaths is itself problematic.
19695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19696 else
19697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19698 fi
19699else
19700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19701fi
19702need_lib_prefix=unknown
19703hardcode_into_libs=no
19704
19705# when you set need_version to no, make sure it does not cause -set_version
19706# flags to be left without arguments
19707need_version=unknown
19708
19709case $host_os in
19710aix3*)
19711 version_type=linux
19712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19713 shlibpath_var=LIBPATH
19714
19715 # AIX 3 has no versioning support, so we append a major version to the name.
19716 soname_spec='${libname}${release}${shared_ext}$major'
19717 ;;
19718
19719aix4* | aix5*)
19720 version_type=linux
19721 need_lib_prefix=no
19722 need_version=no
19723 hardcode_into_libs=yes
19724 if test "$host_cpu" = ia64; then
19725 # AIX 5 supports IA64
19726 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19727 shlibpath_var=LD_LIBRARY_PATH
19728 else
19729 # With GCC up to 2.95.x, collect2 would create an import file
19730 # for dependence libraries. The import file would start with
19731 # the line `#! .'. This would cause the generated library to
19732 # depend on `.', always an invalid library. This was fixed in
19733 # development snapshots of GCC prior to 3.0.
19734 case $host_os in
19735 aix4 | aix4.[01] | aix4.[01].*)
19736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19737 echo ' yes '
19738 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19739 :
19740 else
19741 can_build_shared=no
19742 fi
19743 ;;
19744 esac
19745 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19746 # soname into executable. Probably we can add versioning support to
19747 # collect2, so additional links can be useful in future.
19748 if test "$aix_use_runtimelinking" = yes; then
19749 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19750 # instead of lib<name>.a to let people know that these are not
19751 # typical AIX shared libraries.
19752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19753 else
19754 # We preserve .a as extension for shared libraries through AIX4.2
19755 # and later when we are not doing run time linking.
19756 library_names_spec='${libname}${release}.a $libname.a'
19757 soname_spec='${libname}${release}${shared_ext}$major'
19758 fi
19759 shlibpath_var=LIBPATH
19760 fi
19761 ;;
19762
19763amigaos*)
19764 library_names_spec='$libname.ixlibrary $libname.a'
19765 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019766 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 +000019767 ;;
19768
19769beos*)
19770 library_names_spec='${libname}${shared_ext}'
19771 dynamic_linker="$host_os ld.so"
19772 shlibpath_var=LIBRARY_PATH
19773 ;;
19774
Reid Spencer2706f8c2004-09-19 23:53:36 +000019775bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019776 version_type=linux
19777 need_version=no
19778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19779 soname_spec='${libname}${release}${shared_ext}$major'
19780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19781 shlibpath_var=LD_LIBRARY_PATH
19782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19784 # the default ld.so.conf also contains /usr/contrib/lib and
19785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19786 # libtool to hard-code these into programs
19787 ;;
19788
19789cygwin* | mingw* | pw32*)
19790 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019791 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019792 need_version=no
19793 need_lib_prefix=no
19794
19795 case $GCC,$host_os in
19796 yes,cygwin* | yes,mingw* | yes,pw32*)
19797 library_names_spec='$libname.dll.a'
19798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019799 postinstall_cmds='base_file=`basename \${file}`~
19800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19801 dldir=$destdir/`dirname \$dlpath`~
19802 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019803 $install_prog $dir/$dlname \$dldir/$dlname~
19804 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19806 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019807 $rm \$dlpath'
19808 shlibpath_overrides_runpath=yes
19809
19810 case $host_os in
19811 cygwin*)
19812 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19813 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 +000019814 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019815 ;;
19816 mingw*)
19817 # MinGW DLLs use traditional 'lib' prefix
19818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19819 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19820 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19821 # It is most probably a Windows format PATH printed by
19822 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19823 # path with ; separators, and with drive letters. We can handle the
19824 # drive letters (cygwin fileutils understands them), so leave them,
19825 # especially as we might pass files found there to a mingw objdump,
19826 # which wouldn't understand a cygwinified path. Ahh.
19827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19828 else
19829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19830 fi
19831 ;;
19832 pw32*)
19833 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019834 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 +000019835 ;;
19836 esac
19837 ;;
19838
19839 *)
19840 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19841 ;;
19842 esac
19843 dynamic_linker='Win32 ld.exe'
19844 # FIXME: first we should search . and the directory the executable is in
19845 shlibpath_var=PATH
19846 ;;
19847
19848darwin* | rhapsody*)
19849 dynamic_linker="$host_os dyld"
19850 version_type=darwin
19851 need_lib_prefix=no
19852 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019853 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019854 soname_spec='${libname}${release}${major}$shared_ext'
19855 shlibpath_overrides_runpath=yes
19856 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019857 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019858 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019859 if test "$GCC" = yes; then
19860 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"`
19861 else
19862 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019863 fi
19864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19865 ;;
19866
19867dgux*)
19868 version_type=linux
19869 need_lib_prefix=no
19870 need_version=no
19871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19872 soname_spec='${libname}${release}${shared_ext}$major'
19873 shlibpath_var=LD_LIBRARY_PATH
19874 ;;
19875
19876freebsd1*)
19877 dynamic_linker=no
19878 ;;
19879
Reid Spencer2706f8c2004-09-19 23:53:36 +000019880kfreebsd*-gnu)
19881 version_type=linux
19882 need_lib_prefix=no
19883 need_version=no
19884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19885 soname_spec='${libname}${release}${shared_ext}$major'
19886 shlibpath_var=LD_LIBRARY_PATH
19887 shlibpath_overrides_runpath=no
19888 hardcode_into_libs=yes
19889 dynamic_linker='GNU ld.so'
19890 ;;
19891
Reid Spencera773bd52006-08-04 18:18:08 +000019892freebsd* | dragonfly*)
19893 # DragonFly does not have aout. When/if they implement a new
19894 # versioning mechanism, adjust this.
19895 if test -x /usr/bin/objformat; then
19896 objformat=`/usr/bin/objformat`
19897 else
19898 case $host_os in
19899 freebsd[123]*) objformat=aout ;;
19900 *) objformat=elf ;;
19901 esac
19902 fi
John Criswell47fdd832003-07-14 16:52:07 +000019903 version_type=freebsd-$objformat
19904 case $version_type in
19905 freebsd-elf*)
19906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19907 need_version=no
19908 need_lib_prefix=no
19909 ;;
19910 freebsd-*)
19911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19912 need_version=yes
19913 ;;
19914 esac
19915 shlibpath_var=LD_LIBRARY_PATH
19916 case $host_os in
19917 freebsd2*)
19918 shlibpath_overrides_runpath=yes
19919 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019920 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019921 shlibpath_overrides_runpath=yes
19922 hardcode_into_libs=yes
19923 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019924 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19925 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019926 shlibpath_overrides_runpath=no
19927 hardcode_into_libs=yes
19928 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019929 freebsd*) # from 4.6 on
19930 shlibpath_overrides_runpath=yes
19931 hardcode_into_libs=yes
19932 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019933 esac
19934 ;;
19935
19936gnu*)
19937 version_type=linux
19938 need_lib_prefix=no
19939 need_version=no
19940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19941 soname_spec='${libname}${release}${shared_ext}$major'
19942 shlibpath_var=LD_LIBRARY_PATH
19943 hardcode_into_libs=yes
19944 ;;
19945
19946hpux9* | hpux10* | hpux11*)
19947 # Give a soname corresponding to the major version so that dld.sl refuses to
19948 # link against other versions.
19949 version_type=sunos
19950 need_lib_prefix=no
19951 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019952 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019953 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019954 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019955 hardcode_into_libs=yes
19956 dynamic_linker="$host_os dld.so"
19957 shlibpath_var=LD_LIBRARY_PATH
19958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960 soname_spec='${libname}${release}${shared_ext}$major'
19961 if test "X$HPUX_IA64_MODE" = X32; then
19962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19963 else
19964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19965 fi
19966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19967 ;;
19968 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019969 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019970 hardcode_into_libs=yes
19971 dynamic_linker="$host_os dld.sl"
19972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19975 soname_spec='${libname}${release}${shared_ext}$major'
19976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19978 ;;
19979 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019980 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019981 dynamic_linker="$host_os dld.sl"
19982 shlibpath_var=SHLIB_PATH
19983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 ;;
19987 esac
19988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19989 postinstall_cmds='chmod 555 $lib'
19990 ;;
19991
Reid Spencera773bd52006-08-04 18:18:08 +000019992interix3*)
19993 version_type=linux
19994 need_lib_prefix=no
19995 need_version=no
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19999 shlibpath_var=LD_LIBRARY_PATH
20000 shlibpath_overrides_runpath=no
20001 hardcode_into_libs=yes
20002 ;;
20003
John Criswell47fdd832003-07-14 16:52:07 +000020004irix5* | irix6* | nonstopux*)
20005 case $host_os in
20006 nonstopux*) version_type=nonstopux ;;
20007 *)
20008 if test "$lt_cv_prog_gnu_ld" = yes; then
20009 version_type=linux
20010 else
20011 version_type=irix
20012 fi ;;
20013 esac
20014 need_lib_prefix=no
20015 need_version=no
20016 soname_spec='${libname}${release}${shared_ext}$major'
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20018 case $host_os in
20019 irix5* | nonstopux*)
20020 libsuff= shlibsuff=
20021 ;;
20022 *)
20023 case $LD in # libtool.m4 will add one of these switches to LD
20024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20025 libsuff= shlibsuff= libmagic=32-bit;;
20026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20027 libsuff=32 shlibsuff=N32 libmagic=N32;;
20028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20030 *) libsuff= shlibsuff= libmagic=never-match;;
20031 esac
20032 ;;
20033 esac
20034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20035 shlibpath_overrides_runpath=no
20036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20038 hardcode_into_libs=yes
20039 ;;
20040
20041# No shared lib support for Linux oldld, aout, or coff.
20042linux*oldld* | linux*aout* | linux*coff*)
20043 dynamic_linker=no
20044 ;;
20045
20046# This must be Linux ELF.
20047linux*)
20048 version_type=linux
20049 need_lib_prefix=no
20050 need_version=no
20051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052 soname_spec='${libname}${release}${shared_ext}$major'
20053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20054 shlibpath_var=LD_LIBRARY_PATH
20055 shlibpath_overrides_runpath=no
20056 # This implies no fast_install, which is unacceptable.
20057 # Some rework will be needed to allow for fast_install
20058 # before this can be enabled.
20059 hardcode_into_libs=yes
20060
Reid Spencer2706f8c2004-09-19 23:53:36 +000020061 # Append ld.so.conf contents to the search path
20062 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020063 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 +000020064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20065 fi
20066
John Criswell47fdd832003-07-14 16:52:07 +000020067 # We used to test for /lib/ld.so.1 and disable shared libraries on
20068 # powerpc, because MkLinux only supported shared libraries with the
20069 # GNU dynamic linker. Since this was broken with cross compilers,
20070 # most powerpc-linux boxes support dynamic linking these days and
20071 # people can always --disable-shared, the test was removed, and we
20072 # assume the GNU/Linux dynamic linker is in use.
20073 dynamic_linker='GNU/Linux ld.so'
20074 ;;
20075
Reid Spencer2706f8c2004-09-19 23:53:36 +000020076knetbsd*-gnu)
20077 version_type=linux
20078 need_lib_prefix=no
20079 need_version=no
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 shlibpath_var=LD_LIBRARY_PATH
20083 shlibpath_overrides_runpath=no
20084 hardcode_into_libs=yes
20085 dynamic_linker='GNU ld.so'
20086 ;;
20087
John Criswell47fdd832003-07-14 16:52:07 +000020088netbsd*)
20089 version_type=sunos
20090 need_lib_prefix=no
20091 need_version=no
20092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20095 dynamic_linker='NetBSD (a.out) ld.so'
20096 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020098 soname_spec='${libname}${release}${shared_ext}$major'
20099 dynamic_linker='NetBSD ld.elf_so'
20100 fi
20101 shlibpath_var=LD_LIBRARY_PATH
20102 shlibpath_overrides_runpath=yes
20103 hardcode_into_libs=yes
20104 ;;
20105
20106newsos6)
20107 version_type=linux
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109 shlibpath_var=LD_LIBRARY_PATH
20110 shlibpath_overrides_runpath=yes
20111 ;;
20112
Reid Spencer2706f8c2004-09-19 23:53:36 +000020113nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020114 version_type=linux
20115 need_lib_prefix=no
20116 need_version=no
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20119 shlibpath_var=LD_LIBRARY_PATH
20120 shlibpath_overrides_runpath=yes
20121 ;;
20122
20123openbsd*)
20124 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020125 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020126 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20128 case $host_os in
20129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20130 *) need_version=no ;;
20131 esac
John Criswell47fdd832003-07-14 16:52:07 +000020132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20134 shlibpath_var=LD_LIBRARY_PATH
20135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20136 case $host_os in
20137 openbsd2.[89] | openbsd2.[89].*)
20138 shlibpath_overrides_runpath=no
20139 ;;
20140 *)
20141 shlibpath_overrides_runpath=yes
20142 ;;
20143 esac
20144 else
20145 shlibpath_overrides_runpath=yes
20146 fi
20147 ;;
20148
20149os2*)
20150 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020152 need_lib_prefix=no
20153 library_names_spec='$libname${shared_ext} $libname.a'
20154 dynamic_linker='OS/2 ld.exe'
20155 shlibpath_var=LIBPATH
20156 ;;
20157
20158osf3* | osf4* | osf5*)
20159 version_type=osf
20160 need_lib_prefix=no
20161 need_version=no
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20167 ;;
20168
John Criswell47fdd832003-07-14 16:52:07 +000020169solaris*)
20170 version_type=linux
20171 need_lib_prefix=no
20172 need_version=no
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20174 soname_spec='${libname}${release}${shared_ext}$major'
20175 shlibpath_var=LD_LIBRARY_PATH
20176 shlibpath_overrides_runpath=yes
20177 hardcode_into_libs=yes
20178 # ldd complains unless libraries are executable
20179 postinstall_cmds='chmod +x $lib'
20180 ;;
20181
20182sunos4*)
20183 version_type=sunos
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20186 shlibpath_var=LD_LIBRARY_PATH
20187 shlibpath_overrides_runpath=yes
20188 if test "$with_gnu_ld" = yes; then
20189 need_lib_prefix=no
20190 fi
20191 need_version=yes
20192 ;;
20193
Reid Spencera773bd52006-08-04 18:18:08 +000020194sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020195 version_type=linux
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197 soname_spec='${libname}${release}${shared_ext}$major'
20198 shlibpath_var=LD_LIBRARY_PATH
20199 case $host_vendor in
20200 sni)
20201 shlibpath_overrides_runpath=no
20202 need_lib_prefix=no
20203 export_dynamic_flag_spec='${wl}-Blargedynsym'
20204 runpath_var=LD_RUN_PATH
20205 ;;
20206 siemens)
20207 need_lib_prefix=no
20208 ;;
20209 motorola)
20210 need_lib_prefix=no
20211 need_version=no
20212 shlibpath_overrides_runpath=no
20213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20214 ;;
20215 esac
20216 ;;
20217
20218sysv4*MP*)
20219 if test -d /usr/nec ;then
20220 version_type=linux
20221 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20222 soname_spec='$libname${shared_ext}.$major'
20223 shlibpath_var=LD_LIBRARY_PATH
20224 fi
20225 ;;
20226
Reid Spencera773bd52006-08-04 18:18:08 +000020227sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20228 version_type=freebsd-elf
20229 need_lib_prefix=no
20230 need_version=no
20231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 hardcode_into_libs=yes
20235 if test "$with_gnu_ld" = yes; then
20236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20237 shlibpath_overrides_runpath=no
20238 else
20239 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20240 shlibpath_overrides_runpath=yes
20241 case $host_os in
20242 sco3.2v5*)
20243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20244 ;;
20245 esac
20246 fi
20247 sys_lib_dlsearch_path_spec='/usr/lib'
20248 ;;
20249
John Criswell47fdd832003-07-14 16:52:07 +000020250uts4*)
20251 version_type=linux
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253 soname_spec='${libname}${release}${shared_ext}$major'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 ;;
20256
20257*)
20258 dynamic_linker=no
20259 ;;
20260esac
Reid Spencera773bd52006-08-04 18:18:08 +000020261{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20262echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020263test "$dynamic_linker" = no && can_build_shared=no
20264
Reid Spencera773bd52006-08-04 18:18:08 +000020265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20266if test "$GCC" = yes; then
20267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20268fi
20269
20270{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20271echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020272hardcode_action_CXX=
20273if test -n "$hardcode_libdir_flag_spec_CXX" || \
20274 test -n "$runpath_var_CXX" || \
20275 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20276
20277 # We can hardcode non-existant directories.
20278 if test "$hardcode_direct_CXX" != no &&
20279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20280 # have to relink, otherwise we might link with an installed library
20281 # when we should be linking with a yet-to-be-installed one
20282 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20283 test "$hardcode_minus_L_CXX" != no; then
20284 # Linking always hardcodes the temporary library directory.
20285 hardcode_action_CXX=relink
20286 else
20287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20288 hardcode_action_CXX=immediate
20289 fi
20290else
20291 # We cannot hardcode anything, or else we can only hardcode existing
20292 # directories.
20293 hardcode_action_CXX=unsupported
20294fi
Reid Spencera773bd52006-08-04 18:18:08 +000020295{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20296echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020297
20298if test "$hardcode_action_CXX" = relink; then
20299 # Fast installation is not supported
20300 enable_fast_install=no
20301elif test "$shlibpath_overrides_runpath" = yes ||
20302 test "$enable_shared" = no; then
20303 # Fast installation is not necessary
20304 enable_fast_install=needless
20305fi
20306
John Criswell47fdd832003-07-14 16:52:07 +000020307
20308# The else clause should only fire when bootstrapping the
20309# libtool distribution, otherwise you forgot to ship ltmain.sh
20310# with your package, and you will get complaints that there are
20311# no rules to generate ltmain.sh.
20312if test -f "$ltmain"; then
20313 # See if we are running on zsh, and set the options which allow our commands through
20314 # without removal of \ escapes.
20315 if test -n "${ZSH_VERSION+set}" ; then
20316 setopt NO_GLOB_SUBST
20317 fi
20318 # Now quote all the things that may contain metacharacters while being
20319 # careful not to overquote the AC_SUBSTed values. We take copies of the
20320 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020321 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 +000020322 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020323 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20324 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20325 deplibs_check_method reload_flag reload_cmds need_locks \
20326 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20327 lt_cv_sys_global_symbol_to_c_name_address \
20328 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20329 old_postinstall_cmds old_postuninstall_cmds \
20330 compiler_CXX \
20331 CC_CXX \
20332 LD_CXX \
20333 lt_prog_compiler_wl_CXX \
20334 lt_prog_compiler_pic_CXX \
20335 lt_prog_compiler_static_CXX \
20336 lt_prog_compiler_no_builtin_flag_CXX \
20337 export_dynamic_flag_spec_CXX \
20338 thread_safe_flag_spec_CXX \
20339 whole_archive_flag_spec_CXX \
20340 enable_shared_with_static_runtimes_CXX \
20341 old_archive_cmds_CXX \
20342 old_archive_from_new_cmds_CXX \
20343 predep_objects_CXX \
20344 postdep_objects_CXX \
20345 predeps_CXX \
20346 postdeps_CXX \
20347 compiler_lib_search_path_CXX \
20348 archive_cmds_CXX \
20349 archive_expsym_cmds_CXX \
20350 postinstall_cmds_CXX \
20351 postuninstall_cmds_CXX \
20352 old_archive_from_expsyms_cmds_CXX \
20353 allow_undefined_flag_CXX \
20354 no_undefined_flag_CXX \
20355 export_symbols_cmds_CXX \
20356 hardcode_libdir_flag_spec_CXX \
20357 hardcode_libdir_flag_spec_ld_CXX \
20358 hardcode_libdir_separator_CXX \
20359 hardcode_automatic_CXX \
20360 module_cmds_CXX \
20361 module_expsym_cmds_CXX \
20362 lt_cv_prog_compiler_c_o_CXX \
20363 exclude_expsyms_CXX \
20364 include_expsyms_CXX; do
20365
20366 case $var in
20367 old_archive_cmds_CXX | \
20368 old_archive_from_new_cmds_CXX | \
20369 archive_cmds_CXX | \
20370 archive_expsym_cmds_CXX | \
20371 module_cmds_CXX | \
20372 module_expsym_cmds_CXX | \
20373 old_archive_from_expsyms_cmds_CXX | \
20374 export_symbols_cmds_CXX | \
20375 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20376 postinstall_cmds | postuninstall_cmds | \
20377 old_postinstall_cmds | old_postuninstall_cmds | \
20378 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20379 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020380 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 +000020381 ;;
20382 *)
20383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20384 ;;
20385 esac
20386 done
20387
20388 case $lt_echo in
20389 *'\$0 --fallback-echo"')
20390 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20391 ;;
20392 esac
20393
20394cfgfile="$ofile"
20395
20396 cat <<__EOF__ >> "$cfgfile"
20397# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20398
20399# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20400
20401# Shell to use when invoking shell scripts.
20402SHELL=$lt_SHELL
20403
20404# Whether or not to build shared libraries.
20405build_libtool_libs=$enable_shared
20406
20407# Whether or not to build static libraries.
20408build_old_libs=$enable_static
20409
20410# Whether or not to add -lc for building shared libraries.
20411build_libtool_need_lc=$archive_cmds_need_lc_CXX
20412
20413# Whether or not to disallow shared libs when runtime libs are static
20414allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20415
20416# Whether or not to optimize for fast installation.
20417fast_install=$enable_fast_install
20418
20419# The host system.
20420host_alias=$host_alias
20421host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020422host_os=$host_os
20423
20424# The build system.
20425build_alias=$build_alias
20426build=$build
20427build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020428
20429# An echo program that does not interpret backslashes.
20430echo=$lt_echo
20431
20432# The archiver.
20433AR=$lt_AR
20434AR_FLAGS=$lt_AR_FLAGS
20435
20436# A C compiler.
20437LTCC=$lt_LTCC
20438
Reid Spencera773bd52006-08-04 18:18:08 +000020439# LTCC compiler flags.
20440LTCFLAGS=$lt_LTCFLAGS
20441
John Criswell47fdd832003-07-14 16:52:07 +000020442# A language-specific compiler.
20443CC=$lt_compiler_CXX
20444
20445# Is the compiler the GNU C compiler?
20446with_gcc=$GCC_CXX
20447
20448# An ERE matcher.
20449EGREP=$lt_EGREP
20450
20451# The linker used to build libraries.
20452LD=$lt_LD_CXX
20453
20454# Whether we need hard or soft links.
20455LN_S=$lt_LN_S
20456
20457# A BSD-compatible nm program.
20458NM=$lt_NM
20459
20460# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020461STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020462
20463# Used to examine libraries when file_magic_cmd begins "file"
20464MAGIC_CMD=$MAGIC_CMD
20465
20466# Used on cygwin: DLL creation program.
20467DLLTOOL="$DLLTOOL"
20468
20469# Used on cygwin: object dumper.
20470OBJDUMP="$OBJDUMP"
20471
20472# Used on cygwin: assembler.
20473AS="$AS"
20474
20475# The name of the directory that contains temporary libtool files.
20476objdir=$objdir
20477
20478# How to create reloadable object files.
20479reload_flag=$lt_reload_flag
20480reload_cmds=$lt_reload_cmds
20481
20482# How to pass a linker flag through the compiler.
20483wl=$lt_lt_prog_compiler_wl_CXX
20484
20485# Object file suffix (normally "o").
20486objext="$ac_objext"
20487
20488# Old archive suffix (normally "a").
20489libext="$libext"
20490
20491# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020492shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020493
20494# Executable file suffix (normally "").
20495exeext="$exeext"
20496
20497# Additional compiler flags for building library objects.
20498pic_flag=$lt_lt_prog_compiler_pic_CXX
20499pic_mode=$pic_mode
20500
20501# What is the maximum length of a command?
20502max_cmd_len=$lt_cv_sys_max_cmd_len
20503
20504# Does compiler simultaneously support -c and -o options?
20505compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20506
Reid Spencera773bd52006-08-04 18:18:08 +000020507# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020508need_locks=$lt_need_locks
20509
20510# Do we need the lib prefix for modules?
20511need_lib_prefix=$need_lib_prefix
20512
20513# Do we need a version for libraries?
20514need_version=$need_version
20515
20516# Whether dlopen is supported.
20517dlopen_support=$enable_dlopen
20518
20519# Whether dlopen of programs is supported.
20520dlopen_self=$enable_dlopen_self
20521
20522# Whether dlopen of statically linked programs is supported.
20523dlopen_self_static=$enable_dlopen_self_static
20524
20525# Compiler flag to prevent dynamic linking.
20526link_static_flag=$lt_lt_prog_compiler_static_CXX
20527
20528# Compiler flag to turn off builtin functions.
20529no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20530
20531# Compiler flag to allow reflexive dlopens.
20532export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20533
20534# Compiler flag to generate shared objects directly from archives.
20535whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20536
20537# Compiler flag to generate thread-safe objects.
20538thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20539
20540# Library versioning type.
20541version_type=$version_type
20542
20543# Format of library name prefix.
20544libname_spec=$lt_libname_spec
20545
20546# List of archive names. First name is the real one, the rest are links.
20547# The last name is the one that the linker finds with -lNAME.
20548library_names_spec=$lt_library_names_spec
20549
20550# The coded name of the library, if different from the real name.
20551soname_spec=$lt_soname_spec
20552
20553# Commands used to build and install an old-style archive.
20554RANLIB=$lt_RANLIB
20555old_archive_cmds=$lt_old_archive_cmds_CXX
20556old_postinstall_cmds=$lt_old_postinstall_cmds
20557old_postuninstall_cmds=$lt_old_postuninstall_cmds
20558
20559# Create an old-style archive from a shared archive.
20560old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20561
20562# Create a temporary old-style archive to link instead of a shared archive.
20563old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20564
20565# Commands used to build and install a shared archive.
20566archive_cmds=$lt_archive_cmds_CXX
20567archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20568postinstall_cmds=$lt_postinstall_cmds
20569postuninstall_cmds=$lt_postuninstall_cmds
20570
20571# Commands used to build a loadable module (assumed same as above if empty)
20572module_cmds=$lt_module_cmds_CXX
20573module_expsym_cmds=$lt_module_expsym_cmds_CXX
20574
20575# Commands to strip libraries.
20576old_striplib=$lt_old_striplib
20577striplib=$lt_striplib
20578
20579# Dependencies to place before the objects being linked to create a
20580# shared library.
20581predep_objects=$lt_predep_objects_CXX
20582
20583# Dependencies to place after the objects being linked to create a
20584# shared library.
20585postdep_objects=$lt_postdep_objects_CXX
20586
20587# Dependencies to place before the objects being linked to create a
20588# shared library.
20589predeps=$lt_predeps_CXX
20590
20591# Dependencies to place after the objects being linked to create a
20592# shared library.
20593postdeps=$lt_postdeps_CXX
20594
20595# The library search path used internally by the compiler when linking
20596# a shared library.
20597compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20598
20599# Method to check whether dependent libraries are shared objects.
20600deplibs_check_method=$lt_deplibs_check_method
20601
20602# Command to use when deplibs_check_method == file_magic.
20603file_magic_cmd=$lt_file_magic_cmd
20604
20605# Flag that allows shared libraries with undefined symbols to be built.
20606allow_undefined_flag=$lt_allow_undefined_flag_CXX
20607
20608# Flag that forces no undefined symbols.
20609no_undefined_flag=$lt_no_undefined_flag_CXX
20610
20611# Commands used to finish a libtool library installation in a directory.
20612finish_cmds=$lt_finish_cmds
20613
20614# Same as above, but a single script fragment to be evaled but not shown.
20615finish_eval=$lt_finish_eval
20616
20617# Take the output of nm and produce a listing of raw symbols and C names.
20618global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20619
20620# Transform the output of nm in a proper C declaration
20621global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20622
20623# Transform the output of nm in a C name address pair
20624global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20625
20626# This is the shared library runtime path variable.
20627runpath_var=$runpath_var
20628
20629# This is the shared library path variable.
20630shlibpath_var=$shlibpath_var
20631
20632# Is shlibpath searched before the hard-coded library search path?
20633shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20634
20635# How to hardcode a shared library path into an executable.
20636hardcode_action=$hardcode_action_CXX
20637
20638# Whether we should hardcode library paths into libraries.
20639hardcode_into_libs=$hardcode_into_libs
20640
20641# Flag to hardcode \$libdir into a binary during linking.
20642# This must work even if \$libdir does not exist.
20643hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20644
20645# If ld is used when linking, flag to hardcode \$libdir into
20646# a binary during linking. This must work even if \$libdir does
20647# not exist.
20648hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20649
20650# Whether we need a single -rpath flag with a separated argument.
20651hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20652
20653# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20654# resulting binary.
20655hardcode_direct=$hardcode_direct_CXX
20656
20657# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20658# resulting binary.
20659hardcode_minus_L=$hardcode_minus_L_CXX
20660
20661# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20662# the resulting binary.
20663hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20664
20665# Set to yes if building a shared library automatically hardcodes DIR into the library
20666# and all subsequent libraries and executables linked against it.
20667hardcode_automatic=$hardcode_automatic_CXX
20668
20669# Variables whose values should be saved in libtool wrapper scripts and
20670# restored at relink time.
20671variables_saved_for_relink="$variables_saved_for_relink"
20672
20673# Whether libtool must link a program against all its dependency libraries.
20674link_all_deplibs=$link_all_deplibs_CXX
20675
20676# Compile-time system search path for libraries
20677sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20678
20679# Run-time system search path for libraries
20680sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20681
20682# Fix the shell variable \$srcfile for the compiler.
20683fix_srcfile_path="$fix_srcfile_path_CXX"
20684
20685# Set to yes if exported symbols are required.
20686always_export_symbols=$always_export_symbols_CXX
20687
20688# The commands to list exported symbols.
20689export_symbols_cmds=$lt_export_symbols_cmds_CXX
20690
20691# The commands to extract the exported symbol list from a shared archive.
20692extract_expsyms_cmds=$lt_extract_expsyms_cmds
20693
20694# Symbols that should not be listed in the preloaded symbols.
20695exclude_expsyms=$lt_exclude_expsyms_CXX
20696
20697# Symbols that must always be exported.
20698include_expsyms=$lt_include_expsyms_CXX
20699
20700# ### END LIBTOOL TAG CONFIG: $tagname
20701
20702__EOF__
20703
20704
20705else
20706 # If there is no Makefile yet, we rely on a make rule to execute
20707 # `config.status --recheck' to rerun these tests and create the
20708 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020709 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20710 if test -f "$ltmain_in"; then
20711 test -f Makefile && make "$ltmain"
20712 fi
John Criswell47fdd832003-07-14 16:52:07 +000020713fi
20714
20715
20716ac_ext=c
20717ac_cpp='$CPP $CPPFLAGS'
20718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720ac_compiler_gnu=$ac_cv_c_compiler_gnu
20721
20722CC=$lt_save_CC
20723LDCXX=$LD
20724LD=$lt_save_LD
20725GCC=$lt_save_GCC
20726with_gnu_ldcxx=$with_gnu_ld
20727with_gnu_ld=$lt_save_with_gnu_ld
20728lt_cv_path_LDCXX=$lt_cv_path_LD
20729lt_cv_path_LD=$lt_save_path_LD
20730lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20731lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20732
20733 else
20734 tagname=""
20735 fi
20736 ;;
20737
20738 F77)
20739 if test -n "$F77" && test "X$F77" != "Xno"; then
20740
20741ac_ext=f
20742ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20743ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20745
20746
20747archive_cmds_need_lc_F77=no
20748allow_undefined_flag_F77=
20749always_export_symbols_F77=no
20750archive_expsym_cmds_F77=
20751export_dynamic_flag_spec_F77=
20752hardcode_direct_F77=no
20753hardcode_libdir_flag_spec_F77=
20754hardcode_libdir_flag_spec_ld_F77=
20755hardcode_libdir_separator_F77=
20756hardcode_minus_L_F77=no
20757hardcode_automatic_F77=no
20758module_cmds_F77=
20759module_expsym_cmds_F77=
20760link_all_deplibs_F77=unknown
20761old_archive_cmds_F77=$old_archive_cmds
20762no_undefined_flag_F77=
20763whole_archive_flag_spec_F77=
20764enable_shared_with_static_runtimes_F77=no
20765
20766# Source file extension for f77 test sources.
20767ac_ext=f
20768
20769# Object file extension for compiled f77 test sources.
20770objext=o
20771objext_F77=$objext
20772
20773# Code to be used in simple compile tests
20774lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20775
20776# Code to be used in simple link tests
20777lt_simple_link_test_code=" program t\n end\n"
20778
20779# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20780
20781# If no C compiler was specified, use CC.
20782LTCC=${LTCC-"$CC"}
20783
Reid Spencera773bd52006-08-04 18:18:08 +000020784# If no C compiler flags were specified, use CFLAGS.
20785LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20786
John Criswell47fdd832003-07-14 16:52:07 +000020787# Allow CC to be a program name with arguments.
20788compiler=$CC
20789
20790
Reid Spencera773bd52006-08-04 18:18:08 +000020791# save warnings/boilerplate of simple test code
20792ac_outfile=conftest.$ac_objext
20793printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20794eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20795_lt_compiler_boilerplate=`cat conftest.err`
20796$rm conftest*
20797
20798ac_outfile=conftest.$ac_objext
20799printf "$lt_simple_link_test_code" >conftest.$ac_ext
20800eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20801_lt_linker_boilerplate=`cat conftest.err`
20802$rm conftest*
20803
20804
John Criswell47fdd832003-07-14 16:52:07 +000020805# Allow CC to be a program name with arguments.
20806lt_save_CC="$CC"
20807CC=${F77-"f77"}
20808compiler=$CC
20809compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020810for cc_temp in $compiler""; do
20811 case $cc_temp in
20812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20814 \-*) ;;
20815 *) break;;
20816 esac
20817done
20818cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020819
John Criswell47fdd832003-07-14 16:52:07 +000020820
Reid Spencera773bd52006-08-04 18:18:08 +000020821{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20822echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20823{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20824echo "${ECHO_T}$can_build_shared" >&6; }
20825
20826{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20827echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020828test "$can_build_shared" = "no" && enable_shared=no
20829
20830# On AIX, shared libraries and static libraries use the same namespace, and
20831# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020832case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020833aix3*)
20834 test "$enable_shared" = yes && enable_static=no
20835 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020836 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020837 postinstall_cmds='$RANLIB $lib'
20838 fi
20839 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020840aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020841 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20842 test "$enable_shared" = yes && enable_static=no
20843 fi
John Criswell47fdd832003-07-14 16:52:07 +000020844 ;;
20845esac
Reid Spencera773bd52006-08-04 18:18:08 +000020846{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20847echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020848
Reid Spencera773bd52006-08-04 18:18:08 +000020849{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20850echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020851# Make sure either enable_shared or enable_static is yes.
20852test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020853{ echo "$as_me:$LINENO: result: $enable_static" >&5
20854echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020855
20856GCC_F77="$G77"
20857LD_F77="$LD"
20858
20859lt_prog_compiler_wl_F77=
20860lt_prog_compiler_pic_F77=
20861lt_prog_compiler_static_F77=
20862
Reid Spencera773bd52006-08-04 18:18:08 +000020863{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20864echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020865
20866 if test "$GCC" = yes; then
20867 lt_prog_compiler_wl_F77='-Wl,'
20868 lt_prog_compiler_static_F77='-static'
20869
20870 case $host_os in
20871 aix*)
20872 # All AIX code is PIC.
20873 if test "$host_cpu" = ia64; then
20874 # AIX 5 now supports IA64 processor
20875 lt_prog_compiler_static_F77='-Bstatic'
20876 fi
20877 ;;
20878
20879 amigaos*)
20880 # FIXME: we need at least 68020 code to build shared libraries, but
20881 # adding the `-m68020' flag to GCC prevents building anything better,
20882 # like `-m68040'.
20883 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20884 ;;
20885
20886 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20887 # PIC is the default for these OSes.
20888 ;;
20889
20890 mingw* | pw32* | os2*)
20891 # This hack is so that the source file can tell whether it is being
20892 # built for inclusion in a dll (and should export symbols for example).
20893 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20894 ;;
20895
20896 darwin* | rhapsody*)
20897 # PIC is the default on this platform
20898 # Common symbols not allowed in MH_DYLIB files
20899 lt_prog_compiler_pic_F77='-fno-common'
20900 ;;
20901
Reid Spencera773bd52006-08-04 18:18:08 +000020902 interix3*)
20903 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20904 # Instead, we relocate shared libraries at runtime.
20905 ;;
20906
John Criswell47fdd832003-07-14 16:52:07 +000020907 msdosdjgpp*)
20908 # Just because we use GCC doesn't mean we suddenly get shared libraries
20909 # on systems that don't support them.
20910 lt_prog_compiler_can_build_shared_F77=no
20911 enable_shared=no
20912 ;;
20913
20914 sysv4*MP*)
20915 if test -d /usr/nec; then
20916 lt_prog_compiler_pic_F77=-Kconform_pic
20917 fi
20918 ;;
20919
20920 hpux*)
20921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20922 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020923 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020924 hppa*64*|ia64*)
20925 # +Z the default
20926 ;;
20927 *)
20928 lt_prog_compiler_pic_F77='-fPIC'
20929 ;;
20930 esac
20931 ;;
20932
20933 *)
20934 lt_prog_compiler_pic_F77='-fPIC'
20935 ;;
20936 esac
20937 else
20938 # PORTME Check for flag to pass linker flags through the system compiler.
20939 case $host_os in
20940 aix*)
20941 lt_prog_compiler_wl_F77='-Wl,'
20942 if test "$host_cpu" = ia64; then
20943 # AIX 5 now supports IA64 processor
20944 lt_prog_compiler_static_F77='-Bstatic'
20945 else
20946 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20947 fi
20948 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020949 darwin*)
20950 # PIC is the default on this platform
20951 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020952 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020953 xlc*)
20954 lt_prog_compiler_pic_F77='-qnocommon'
20955 lt_prog_compiler_wl_F77='-Wl,'
20956 ;;
20957 esac
20958 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020959
20960 mingw* | pw32* | os2*)
20961 # This hack is so that the source file can tell whether it is being
20962 # built for inclusion in a dll (and should export symbols for example).
20963 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20964 ;;
20965
20966 hpux9* | hpux10* | hpux11*)
20967 lt_prog_compiler_wl_F77='-Wl,'
20968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20969 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020970 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020971 hppa*64*|ia64*)
20972 # +Z the default
20973 ;;
20974 *)
20975 lt_prog_compiler_pic_F77='+Z'
20976 ;;
20977 esac
20978 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20979 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20980 ;;
20981
20982 irix5* | irix6* | nonstopux*)
20983 lt_prog_compiler_wl_F77='-Wl,'
20984 # PIC (with -KPIC) is the default.
20985 lt_prog_compiler_static_F77='-non_shared'
20986 ;;
20987
20988 newsos6)
20989 lt_prog_compiler_pic_F77='-KPIC'
20990 lt_prog_compiler_static_F77='-Bstatic'
20991 ;;
20992
20993 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000020994 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020995 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000020996 lt_prog_compiler_wl_F77='-Wl,'
20997 lt_prog_compiler_pic_F77='-KPIC'
20998 lt_prog_compiler_static_F77='-static'
20999 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021000 pgcc* | pgf77* | pgf90* | pgf95*)
21001 # Portland Group compilers (*not* the Pentium gcc compiler,
21002 # which looks to be a dead project)
21003 lt_prog_compiler_wl_F77='-Wl,'
21004 lt_prog_compiler_pic_F77='-fpic'
21005 lt_prog_compiler_static_F77='-Bstatic'
21006 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021007 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021008 lt_prog_compiler_wl_F77='-Wl,'
21009 # All Alpha code is PIC.
21010 lt_prog_compiler_static_F77='-non_shared'
21011 ;;
21012 esac
21013 ;;
21014
21015 osf3* | osf4* | osf5*)
21016 lt_prog_compiler_wl_F77='-Wl,'
21017 # All OSF/1 code is PIC.
21018 lt_prog_compiler_static_F77='-non_shared'
21019 ;;
21020
John Criswell47fdd832003-07-14 16:52:07 +000021021 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021022 lt_prog_compiler_pic_F77='-KPIC'
21023 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021024 case $cc_basename in
21025 f77* | f90* | f95*)
21026 lt_prog_compiler_wl_F77='-Qoption ld ';;
21027 *)
21028 lt_prog_compiler_wl_F77='-Wl,';;
21029 esac
John Criswell47fdd832003-07-14 16:52:07 +000021030 ;;
21031
21032 sunos4*)
21033 lt_prog_compiler_wl_F77='-Qoption ld '
21034 lt_prog_compiler_pic_F77='-PIC'
21035 lt_prog_compiler_static_F77='-Bstatic'
21036 ;;
21037
Reid Spencera773bd52006-08-04 18:18:08 +000021038 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021039 lt_prog_compiler_wl_F77='-Wl,'
21040 lt_prog_compiler_pic_F77='-KPIC'
21041 lt_prog_compiler_static_F77='-Bstatic'
21042 ;;
21043
21044 sysv4*MP*)
21045 if test -d /usr/nec ;then
21046 lt_prog_compiler_pic_F77='-Kconform_pic'
21047 lt_prog_compiler_static_F77='-Bstatic'
21048 fi
21049 ;;
21050
Reid Spencera773bd52006-08-04 18:18:08 +000021051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21052 lt_prog_compiler_wl_F77='-Wl,'
21053 lt_prog_compiler_pic_F77='-KPIC'
21054 lt_prog_compiler_static_F77='-Bstatic'
21055 ;;
21056
21057 unicos*)
21058 lt_prog_compiler_wl_F77='-Wl,'
21059 lt_prog_compiler_can_build_shared_F77=no
21060 ;;
21061
John Criswell47fdd832003-07-14 16:52:07 +000021062 uts4*)
21063 lt_prog_compiler_pic_F77='-pic'
21064 lt_prog_compiler_static_F77='-Bstatic'
21065 ;;
21066
21067 *)
21068 lt_prog_compiler_can_build_shared_F77=no
21069 ;;
21070 esac
21071 fi
21072
Reid Spencera773bd52006-08-04 18:18:08 +000021073{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21074echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021075
21076#
21077# Check to make sure the PIC flag actually works.
21078#
21079if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021080
Reid Spencera773bd52006-08-04 18:18:08 +000021081{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21082echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021083if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085else
21086 lt_prog_compiler_pic_works_F77=no
21087 ac_outfile=conftest.$ac_objext
21088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21089 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21090 # Insert the option either (1) after the last *FLAGS variable, or
21091 # (2) before a word containing "conftest.", or (3) at the end.
21092 # Note that $ac_compile itself does not contain backslashes and begins
21093 # with a dollar sign (not a hyphen), so the echo should work correctly.
21094 # The option is referenced via a variable to avoid confusing sed.
21095 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21098 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000021099 (eval echo "\"\$as_me:21099: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021100 (eval "$lt_compile" 2>conftest.err)
21101 ac_status=$?
21102 cat conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000021103 echo "$as_me:21103: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021104 if (exit $ac_status) && test -s "$ac_outfile"; then
21105 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021106 # So say no if there are warnings other than the usual output.
21107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021110 lt_prog_compiler_pic_works_F77=yes
21111 fi
21112 fi
21113 $rm conftest*
21114
21115fi
Reid Spencera773bd52006-08-04 18:18:08 +000021116{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21117echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021118
21119if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21120 case $lt_prog_compiler_pic_F77 in
21121 "" | " "*) ;;
21122 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21123 esac
21124else
21125 lt_prog_compiler_pic_F77=
21126 lt_prog_compiler_can_build_shared_F77=no
21127fi
21128
21129fi
Reid Spencera773bd52006-08-04 18:18:08 +000021130case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021131 # For platforms which do not support PIC, -DPIC is meaningless:
21132 *djgpp*)
21133 lt_prog_compiler_pic_F77=
21134 ;;
21135 *)
21136 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21137 ;;
21138esac
21139
Reid Spencera773bd52006-08-04 18:18:08 +000021140#
21141# Check to make sure the static flag actually works.
21142#
21143wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21144{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21145echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21146if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21148else
21149 lt_prog_compiler_static_works_F77=no
21150 save_LDFLAGS="$LDFLAGS"
21151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21152 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21154 # The linker can only warn and ignore the option if not recognized
21155 # So say no if there are warnings
21156 if test -s conftest.err; then
21157 # Append any errors to the config.log.
21158 cat conftest.err 1>&5
21159 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21161 if diff conftest.exp conftest.er2 >/dev/null; then
21162 lt_prog_compiler_static_works_F77=yes
21163 fi
21164 else
21165 lt_prog_compiler_static_works_F77=yes
21166 fi
21167 fi
21168 $rm conftest*
21169 LDFLAGS="$save_LDFLAGS"
21170
21171fi
21172{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21173echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21174
21175if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21176 :
21177else
21178 lt_prog_compiler_static_F77=
21179fi
21180
21181
21182{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21183echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021184if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21186else
21187 lt_cv_prog_compiler_c_o_F77=no
21188 $rm -r conftest 2>/dev/null
21189 mkdir conftest
21190 cd conftest
21191 mkdir out
21192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21193
John Criswell47fdd832003-07-14 16:52:07 +000021194 lt_compiler_flag="-o out/conftest2.$ac_objext"
21195 # Insert the option either (1) after the last *FLAGS variable, or
21196 # (2) before a word containing "conftest.", or (3) at the end.
21197 # Note that $ac_compile itself does not contain backslashes and begins
21198 # with a dollar sign (not a hyphen), so the echo should work correctly.
21199 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21202 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000021203 (eval echo "\"\$as_me:21203: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021204 (eval "$lt_compile" 2>out/conftest.err)
21205 ac_status=$?
21206 cat out/conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000021207 echo "$as_me:21207: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21209 then
21210 # The compiler can only warn and ignore the option if not recognized
21211 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021215 lt_cv_prog_compiler_c_o_F77=yes
21216 fi
21217 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021218 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021219 $rm conftest*
21220 # SGI C++ compiler will create directory out/ii_files/ for
21221 # template instantiation
21222 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21223 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021224 cd ..
21225 rmdir conftest
21226 $rm conftest*
21227
21228fi
Reid Spencera773bd52006-08-04 18:18:08 +000021229{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21230echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021231
21232
21233hard_links="nottested"
21234if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21235 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021236 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21237echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021238 hard_links=yes
21239 $rm conftest*
21240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21241 touch conftest.a
21242 ln conftest.a conftest.b 2>&5 || hard_links=no
21243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021244 { echo "$as_me:$LINENO: result: $hard_links" >&5
21245echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021246 if test "$hard_links" = no; then
21247 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21248echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21249 need_locks=warn
21250 fi
21251else
21252 need_locks=no
21253fi
21254
Reid Spencera773bd52006-08-04 18:18:08 +000021255{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21256echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021257
21258 runpath_var=
21259 allow_undefined_flag_F77=
21260 enable_shared_with_static_runtimes_F77=no
21261 archive_cmds_F77=
21262 archive_expsym_cmds_F77=
21263 old_archive_From_new_cmds_F77=
21264 old_archive_from_expsyms_cmds_F77=
21265 export_dynamic_flag_spec_F77=
21266 whole_archive_flag_spec_F77=
21267 thread_safe_flag_spec_F77=
21268 hardcode_libdir_flag_spec_F77=
21269 hardcode_libdir_flag_spec_ld_F77=
21270 hardcode_libdir_separator_F77=
21271 hardcode_direct_F77=no
21272 hardcode_minus_L_F77=no
21273 hardcode_shlibpath_var_F77=unsupported
21274 link_all_deplibs_F77=unknown
21275 hardcode_automatic_F77=no
21276 module_cmds_F77=
21277 module_expsym_cmds_F77=
21278 always_export_symbols_F77=no
21279 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21280 # include_expsyms should be a list of space-separated symbols to be *always*
21281 # included in the symbol list
21282 include_expsyms_F77=
21283 # exclude_expsyms can be an extended regexp of symbols to exclude
21284 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21285 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21286 # as well as any symbol that contains `d'.
21287 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21288 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21289 # platforms (ab)use it in PIC code, but their linkers get confused if
21290 # the symbol is explicitly referenced. Since portable code cannot
21291 # rely on this symbol name, it's probably fine to never include it in
21292 # preloaded symbol tables.
21293 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021294 # Just being paranoid about ensuring that cc_basename is set.
21295 for cc_temp in $compiler""; do
21296 case $cc_temp in
21297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21299 \-*) ;;
21300 *) break;;
21301 esac
21302done
21303cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021304
21305 case $host_os in
21306 cygwin* | mingw* | pw32*)
21307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21308 # When not using gcc, we currently assume that we are using
21309 # Microsoft Visual C++.
21310 if test "$GCC" != yes; then
21311 with_gnu_ld=no
21312 fi
21313 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021314 interix*)
21315 # we just hope/assume this is gcc and not c89 (= MSVC++)
21316 with_gnu_ld=yes
21317 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021318 openbsd*)
21319 with_gnu_ld=no
21320 ;;
21321 esac
21322
21323 ld_shlibs_F77=yes
21324 if test "$with_gnu_ld" = yes; then
21325 # If archive_cmds runs LD, not CC, wlarc should be empty
21326 wlarc='${wl}'
21327
Reid Spencera773bd52006-08-04 18:18:08 +000021328 # Set some defaults for GNU ld with shared library support. These
21329 # are reset later if shared libraries are not supported. Putting them
21330 # here allows them to be overridden if necessary.
21331 runpath_var=LD_RUN_PATH
21332 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21333 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21334 # ancient GNU ld didn't support --whole-archive et. al.
21335 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21336 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21337 else
21338 whole_archive_flag_spec_F77=
21339 fi
21340 supports_anon_versioning=no
21341 case `$LD -v 2>/dev/null` in
21342 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21345 *\ 2.11.*) ;; # other 2.11 versions
21346 *) supports_anon_versioning=yes ;;
21347 esac
21348
John Criswell47fdd832003-07-14 16:52:07 +000021349 # See if GNU ld supports shared libraries.
21350 case $host_os in
21351 aix3* | aix4* | aix5*)
21352 # On AIX/PPC, the GNU linker is very broken
21353 if test "$host_cpu" != ia64; then
21354 ld_shlibs_F77=no
21355 cat <<EOF 1>&2
21356
21357*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21358*** to be unable to reliably create shared libraries on AIX.
21359*** Therefore, libtool is disabling shared libraries support. If you
21360*** really care for shared libraries, you may want to modify your PATH
21361*** so that a non-GNU linker is found, and then restart.
21362
21363EOF
21364 fi
21365 ;;
21366
21367 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021368 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 +000021369 hardcode_libdir_flag_spec_F77='-L$libdir'
21370 hardcode_minus_L_F77=yes
21371
21372 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21373 # that the semantics of dynamic libraries on AmigaOS, at least up
21374 # to version 4, is to share data among multiple programs linked
21375 # with the same dynamic library. Since this doesn't match the
21376 # behavior of shared libraries on other platforms, we can't use
21377 # them.
21378 ld_shlibs_F77=no
21379 ;;
21380
21381 beos*)
21382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21383 allow_undefined_flag_F77=unsupported
21384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21385 # support --undefined. This deserves some investigation. FIXME
21386 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21387 else
21388 ld_shlibs_F77=no
21389 fi
21390 ;;
21391
21392 cygwin* | mingw* | pw32*)
21393 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21394 # as there is no search path for DLLs.
21395 hardcode_libdir_flag_spec_F77='-L$libdir'
21396 allow_undefined_flag_F77=unsupported
21397 always_export_symbols_F77=no
21398 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021399 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 +000021400
21401 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021402 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 +000021403 # If the export-symbols file already is a .def file (1st line
21404 # is EXPORTS), use it as is; otherwise, prepend...
21405 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21406 cp $export_symbols $output_objdir/$soname.def;
21407 else
21408 echo EXPORTS > $output_objdir/$soname.def;
21409 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021410 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021411 $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 +000021412 else
Reid Spencera773bd52006-08-04 18:18:08 +000021413 ld_shlibs_F77=no
21414 fi
21415 ;;
21416
21417 interix3*)
21418 hardcode_direct_F77=no
21419 hardcode_shlibpath_var_F77=no
21420 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21421 export_dynamic_flag_spec_F77='${wl}-E'
21422 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21423 # Instead, shared libraries are loaded at an image base (0x10000000 by
21424 # default) and relocated if they conflict, which is a slow very memory
21425 # consuming and fragmenting process. To avoid this, we pick a random,
21426 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21427 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21428 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'
21429 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'
21430 ;;
21431
21432 linux*)
21433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21434 tmp_addflag=
21435 case $cc_basename,$host_cpu in
21436 pgcc*) # Portland Group C compiler
21437 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'
21438 tmp_addflag=' $pic_flag'
21439 ;;
21440 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21441 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'
21442 tmp_addflag=' $pic_flag -Mnomain' ;;
21443 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21444 tmp_addflag=' -i_dynamic' ;;
21445 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21446 tmp_addflag=' -i_dynamic -nofor_main' ;;
21447 ifc* | ifort*) # Intel Fortran compiler
21448 tmp_addflag=' -nofor_main' ;;
21449 esac
21450 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21451
21452 if test $supports_anon_versioning = yes; then
21453 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21455 $echo "local: *; };" >> $output_objdir/$libname.ver~
21456 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21457 fi
21458 else
21459 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021460 fi
21461 ;;
21462
21463 netbsd*)
21464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21465 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21466 wlarc=
21467 else
21468 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21469 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21470 fi
21471 ;;
21472
Reid Spencera773bd52006-08-04 18:18:08 +000021473 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021474 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21475 ld_shlibs_F77=no
21476 cat <<EOF 1>&2
21477
21478*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21479*** create shared libraries on Solaris systems. Therefore, libtool
21480*** is disabling shared libraries support. We urge you to upgrade GNU
21481*** binutils to release 2.9.1 or newer. Another option is to modify
21482*** your PATH or compiler configuration so that the native linker is
21483*** used, and then restart.
21484
21485EOF
21486 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21489 else
21490 ld_shlibs_F77=no
21491 fi
21492 ;;
21493
Reid Spencera773bd52006-08-04 18:18:08 +000021494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21495 case `$LD -v 2>&1` in
21496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21497 ld_shlibs_F77=no
21498 cat <<_LT_EOF 1>&2
21499
21500*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21501*** reliably create shared libraries on SCO systems. Therefore, libtool
21502*** is disabling shared libraries support. We urge you to upgrade GNU
21503*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21504*** your PATH or compiler configuration so that the native linker is
21505*** used, and then restart.
21506
21507_LT_EOF
21508 ;;
21509 *)
21510 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21511 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21513 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21514 else
21515 ld_shlibs_F77=no
21516 fi
21517 ;;
21518 esac
21519 ;;
21520
John Criswell47fdd832003-07-14 16:52:07 +000021521 sunos4*)
21522 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21523 wlarc=
21524 hardcode_direct_F77=yes
21525 hardcode_shlibpath_var_F77=no
21526 ;;
21527
21528 *)
21529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21530 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21531 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21532 else
21533 ld_shlibs_F77=no
21534 fi
21535 ;;
21536 esac
21537
Reid Spencera773bd52006-08-04 18:18:08 +000021538 if test "$ld_shlibs_F77" = no; then
21539 runpath_var=
21540 hardcode_libdir_flag_spec_F77=
21541 export_dynamic_flag_spec_F77=
21542 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021543 fi
21544 else
21545 # PORTME fill in a description of your system's linker (not GNU ld)
21546 case $host_os in
21547 aix3*)
21548 allow_undefined_flag_F77=unsupported
21549 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021550 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 +000021551 # Note: this linker hardcodes the directories in LIBPATH if there
21552 # are no directories specified by -L.
21553 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021554 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021555 # Neither direct hardcoding nor static linking is supported with a
21556 # broken collect2.
21557 hardcode_direct_F77=unsupported
21558 fi
21559 ;;
21560
21561 aix4* | aix5*)
21562 if test "$host_cpu" = ia64; then
21563 # On IA64, the linker does run time linking by default, so we don't
21564 # have to do anything special.
21565 aix_use_runtimelinking=no
21566 exp_sym_flag='-Bexport'
21567 no_entry_flag=""
21568 else
21569 # If we're using GNU nm, then we don't want the "-C" option.
21570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21571 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21572 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'
21573 else
21574 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'
21575 fi
21576 aix_use_runtimelinking=no
21577
21578 # Test if we are trying to use run time linking or normal
21579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21580 # need to do runtime linking.
21581 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21582 for ld_flag in $LDFLAGS; do
21583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21584 aix_use_runtimelinking=yes
21585 break
21586 fi
21587 done
Reid Spencera773bd52006-08-04 18:18:08 +000021588 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021589 esac
21590
21591 exp_sym_flag='-bexport'
21592 no_entry_flag='-bnoentry'
21593 fi
21594
21595 # When large executables or shared objects are built, AIX ld can
21596 # have problems creating the table of contents. If linking a library
21597 # or program results in "error TOC overflow" add -mminimal-toc to
21598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21600
21601 archive_cmds_F77=''
21602 hardcode_direct_F77=yes
21603 hardcode_libdir_separator_F77=':'
21604 link_all_deplibs_F77=yes
21605
21606 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021607 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021608 # We only want to do this on AIX 4.2 and lower, the check
21609 # below for broken collect2 doesn't work under 4.3+
21610 collect2name=`${CC} -print-prog-name=collect2`
21611 if test -f "$collect2name" && \
21612 strings "$collect2name" | grep resolve_lib_name >/dev/null
21613 then
21614 # We have reworked collect2
21615 hardcode_direct_F77=yes
21616 else
21617 # We have old collect2
21618 hardcode_direct_F77=unsupported
21619 # It fails to find uninstalled libraries when the uninstalled
21620 # path is not listed in the libpath. Setting hardcode_minus_L
21621 # to unsupported forces relinking
21622 hardcode_minus_L_F77=yes
21623 hardcode_libdir_flag_spec_F77='-L$libdir'
21624 hardcode_libdir_separator_F77=
21625 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021626 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021627 esac
21628 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021629 if test "$aix_use_runtimelinking" = yes; then
21630 shared_flag="$shared_flag "'${wl}-G'
21631 fi
John Criswell47fdd832003-07-14 16:52:07 +000021632 else
21633 # not using gcc
21634 if test "$host_cpu" = ia64; then
21635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21636 # chokes on -Wl,-G. The following line is correct:
21637 shared_flag='-G'
21638 else
Reid Spencera773bd52006-08-04 18:18:08 +000021639 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021640 shared_flag='${wl}-G'
21641 else
21642 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021643 fi
John Criswell47fdd832003-07-14 16:52:07 +000021644 fi
21645 fi
21646
21647 # It seems that -bexpall does not export symbols beginning with
21648 # underscore (_), so it is better to generate a list of symbols to export.
21649 always_export_symbols_F77=yes
21650 if test "$aix_use_runtimelinking" = yes; then
21651 # Warning - without using the other runtime loading flags (-brtl),
21652 # -berok will link without error, but may produce a broken library.
21653 allow_undefined_flag_F77='-berok'
21654 # Determine the default libpath from the value encoded in an empty executable.
21655 cat >conftest.$ac_ext <<_ACEOF
21656 program main
21657
21658 end
21659_ACEOF
21660rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021661if { (ac_try="$ac_link"
21662case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21665esac
21666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021668 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021674 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21675 { (case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21678esac
21679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; } &&
21684 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021685 { (case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688esac
21689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694
21695aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21696}'`
21697# Check for a 64-bit object if we didn't find anything.
21698if 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; }
21699}'`; fi
21700else
21701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021702sed 's/^/| /' conftest.$ac_ext >&5
21703
Reid Spencera773bd52006-08-04 18:18:08 +000021704
John Criswell47fdd832003-07-14 16:52:07 +000021705fi
Reid Spencera773bd52006-08-04 18:18:08 +000021706
21707rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021708 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021709if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21710
21711 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021712 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 +000021713 else
21714 if test "$host_cpu" = ia64; then
21715 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21716 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021717 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 +000021718 else
21719 # Determine the default libpath from the value encoded in an empty executable.
21720 cat >conftest.$ac_ext <<_ACEOF
21721 program main
21722
21723 end
21724_ACEOF
21725rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021726if { (ac_try="$ac_link"
21727case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21730esac
21731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021733 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021734 grep -v '^ *+' conftest.er1 >conftest.err
21735 rm -f conftest.er1
21736 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021739 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21740 { (case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21743esac
21744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021750 { (case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753esac
21754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759
21760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21761}'`
21762# Check for a 64-bit object if we didn't find anything.
21763if 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; }
21764}'`; fi
21765else
21766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021767sed 's/^/| /' conftest.$ac_ext >&5
21768
Reid Spencera773bd52006-08-04 18:18:08 +000021769
John Criswell47fdd832003-07-14 16:52:07 +000021770fi
Reid Spencera773bd52006-08-04 18:18:08 +000021771
21772rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021773 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021774if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21775
21776 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21777 # Warning - without using the other run time loading flags,
21778 # -berok will link without error, but may produce a broken library.
21779 no_undefined_flag_F77=' ${wl}-bernotok'
21780 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021781 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021782 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021783 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021784 # This is similar to how AIX traditionally builds its shared libraries.
21785 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 +000021786 fi
21787 fi
21788 ;;
21789
21790 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021791 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 +000021792 hardcode_libdir_flag_spec_F77='-L$libdir'
21793 hardcode_minus_L_F77=yes
21794 # see comment about different semantics on the GNU ld section
21795 ld_shlibs_F77=no
21796 ;;
21797
Reid Spencer2706f8c2004-09-19 23:53:36 +000021798 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021799 export_dynamic_flag_spec_F77=-rdynamic
21800 ;;
21801
21802 cygwin* | mingw* | pw32*)
21803 # When not using gcc, we currently assume that we are using
21804 # Microsoft Visual C++.
21805 # hardcode_libdir_flag_spec is actually meaningless, as there is
21806 # no search path for DLLs.
21807 hardcode_libdir_flag_spec_F77=' '
21808 allow_undefined_flag_F77=unsupported
21809 # Tell ltmain to make .lib files, not .a files.
21810 libext=lib
21811 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021812 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021813 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021814 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 +000021815 # The linker will automatically build a .lib file if we build a DLL.
21816 old_archive_From_new_cmds_F77='true'
21817 # FIXME: Should let the user specify the lib program.
21818 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021819 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021820 enable_shared_with_static_runtimes_F77=yes
21821 ;;
21822
21823 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021824 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021825 rhapsody* | darwin1.[012])
21826 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21827 ;;
21828 *) # Darwin 1.3 on
21829 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21830 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21831 else
21832 case ${MACOSX_DEPLOYMENT_TARGET} in
21833 10.[012])
21834 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21835 ;;
21836 10.*)
21837 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21838 ;;
21839 esac
21840 fi
21841 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021842 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021843 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021844 hardcode_direct_F77=no
21845 hardcode_automatic_F77=yes
21846 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021847 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021848 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021849 if test "$GCC" = yes ; then
21850 output_verbose_link_cmd='echo'
21851 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21852 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021853 # 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 +000021854 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}'
21855 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 +000021856 else
Reid Spencera773bd52006-08-04 18:18:08 +000021857 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021858 xlc*)
21859 output_verbose_link_cmd='echo'
21860 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21861 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021862 # 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 +000021863 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}'
21864 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 +000021865 ;;
21866 *)
21867 ld_shlibs_F77=no
21868 ;;
21869 esac
John Criswell47fdd832003-07-14 16:52:07 +000021870 fi
21871 ;;
21872
21873 dgux*)
21874 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21875 hardcode_libdir_flag_spec_F77='-L$libdir'
21876 hardcode_shlibpath_var_F77=no
21877 ;;
21878
21879 freebsd1*)
21880 ld_shlibs_F77=no
21881 ;;
21882
21883 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21884 # support. Future versions do this automatically, but an explicit c++rt0.o
21885 # does not break anything, and helps significantly (at the cost of a little
21886 # extra space).
21887 freebsd2.2*)
21888 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21889 hardcode_libdir_flag_spec_F77='-R$libdir'
21890 hardcode_direct_F77=yes
21891 hardcode_shlibpath_var_F77=no
21892 ;;
21893
21894 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21895 freebsd2*)
21896 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21897 hardcode_direct_F77=yes
21898 hardcode_minus_L_F77=yes
21899 hardcode_shlibpath_var_F77=no
21900 ;;
21901
21902 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021903 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021904 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21905 hardcode_libdir_flag_spec_F77='-R$libdir'
21906 hardcode_direct_F77=yes
21907 hardcode_shlibpath_var_F77=no
21908 ;;
21909
21910 hpux9*)
21911 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021912 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 +000021913 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021914 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 +000021915 fi
21916 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21917 hardcode_libdir_separator_F77=:
21918 hardcode_direct_F77=yes
21919
21920 # hardcode_minus_L: Not really in the search PATH,
21921 # but as the default location of the library.
21922 hardcode_minus_L_F77=yes
21923 export_dynamic_flag_spec_F77='${wl}-E'
21924 ;;
21925
Reid Spencera773bd52006-08-04 18:18:08 +000021926 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021927 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021928 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21929 else
21930 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21931 fi
21932 if test "$with_gnu_ld" = no; then
21933 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21934 hardcode_libdir_separator_F77=:
21935
21936 hardcode_direct_F77=yes
21937 export_dynamic_flag_spec_F77='${wl}-E'
21938
21939 # hardcode_minus_L: Not really in the search PATH,
21940 # but as the default location of the library.
21941 hardcode_minus_L_F77=yes
21942 fi
21943 ;;
21944
21945 hpux11*)
21946 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21947 case $host_cpu in
21948 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021949 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21950 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021951 ia64*)
21952 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21953 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021954 *)
21955 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21956 ;;
21957 esac
21958 else
Reid Spencera773bd52006-08-04 18:18:08 +000021959 case $host_cpu in
21960 hppa*64*)
21961 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21962 ;;
21963 ia64*)
21964 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021965 ;;
21966 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021967 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 +000021968 ;;
21969 esac
21970 fi
21971 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021972 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21973 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021974
Reid Spencera773bd52006-08-04 18:18:08 +000021975 case $host_cpu in
21976 hppa*64*|ia64*)
21977 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21978 hardcode_direct_F77=no
21979 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021980 ;;
21981 *)
John Criswell47fdd832003-07-14 16:52:07 +000021982 hardcode_direct_F77=yes
21983 export_dynamic_flag_spec_F77='${wl}-E'
21984
21985 # hardcode_minus_L: Not really in the search PATH,
21986 # but as the default location of the library.
21987 hardcode_minus_L_F77=yes
21988 ;;
21989 esac
21990 fi
21991 ;;
21992
21993 irix5* | irix6* | nonstopux*)
21994 if test "$GCC" = yes; then
21995 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'
21996 else
21997 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'
21998 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21999 fi
22000 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22001 hardcode_libdir_separator_F77=:
22002 link_all_deplibs_F77=yes
22003 ;;
22004
22005 netbsd*)
22006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22007 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22008 else
22009 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22010 fi
22011 hardcode_libdir_flag_spec_F77='-R$libdir'
22012 hardcode_direct_F77=yes
22013 hardcode_shlibpath_var_F77=no
22014 ;;
22015
22016 newsos6)
22017 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22018 hardcode_direct_F77=yes
22019 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22020 hardcode_libdir_separator_F77=:
22021 hardcode_shlibpath_var_F77=no
22022 ;;
22023
22024 openbsd*)
22025 hardcode_direct_F77=yes
22026 hardcode_shlibpath_var_F77=no
22027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22028 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022029 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 +000022030 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22031 export_dynamic_flag_spec_F77='${wl}-E'
22032 else
22033 case $host_os in
22034 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22035 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22036 hardcode_libdir_flag_spec_F77='-R$libdir'
22037 ;;
22038 *)
22039 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22040 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22041 ;;
22042 esac
22043 fi
22044 ;;
22045
22046 os2*)
22047 hardcode_libdir_flag_spec_F77='-L$libdir'
22048 hardcode_minus_L_F77=yes
22049 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022050 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 +000022051 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22052 ;;
22053
22054 osf3*)
22055 if test "$GCC" = yes; then
22056 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22057 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'
22058 else
22059 allow_undefined_flag_F77=' -expect_unresolved \*'
22060 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'
22061 fi
22062 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22063 hardcode_libdir_separator_F77=:
22064 ;;
22065
22066 osf4* | osf5*) # as osf3* with the addition of -msym flag
22067 if test "$GCC" = yes; then
22068 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22069 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'
22070 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22071 else
22072 allow_undefined_flag_F77=' -expect_unresolved \*'
22073 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 +000022074 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 +000022075 $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 +000022076
John Criswell47fdd832003-07-14 16:52:07 +000022077 # Both c and cxx compiler support -rpath directly
22078 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22079 fi
22080 hardcode_libdir_separator_F77=:
22081 ;;
22082
John Criswell47fdd832003-07-14 16:52:07 +000022083 solaris*)
22084 no_undefined_flag_F77=' -z text'
22085 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022086 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022087 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022088 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22089 $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 +000022090 else
Reid Spencera773bd52006-08-04 18:18:08 +000022091 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022092 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022093 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22094 $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 +000022095 fi
22096 hardcode_libdir_flag_spec_F77='-R$libdir'
22097 hardcode_shlibpath_var_F77=no
22098 case $host_os in
22099 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022100 *)
22101 # The compiler driver will combine linker options so we
22102 # cannot just pass the convience library names through
22103 # without $wl, iff we do not link with $LD.
22104 # Luckily, gcc supports the same syntax we need for Sun Studio.
22105 # Supported since Solaris 2.6 (maybe 2.5.1?)
22106 case $wlarc in
22107 '')
22108 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22109 *)
22110 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' ;;
22111 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022112 esac
22113 link_all_deplibs_F77=yes
22114 ;;
22115
22116 sunos4*)
22117 if test "x$host_vendor" = xsequent; then
22118 # Use $CC to link under sequent, because it throws in some extra .o
22119 # files that make .init and .fini sections work.
22120 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22121 else
22122 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22123 fi
22124 hardcode_libdir_flag_spec_F77='-L$libdir'
22125 hardcode_direct_F77=yes
22126 hardcode_minus_L_F77=yes
22127 hardcode_shlibpath_var_F77=no
22128 ;;
22129
22130 sysv4)
22131 case $host_vendor in
22132 sni)
22133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134 hardcode_direct_F77=yes # is this really true???
22135 ;;
22136 siemens)
22137 ## LD is ld it makes a PLAMLIB
22138 ## CC just makes a GrossModule.
22139 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22140 reload_cmds_F77='$CC -r -o $output$reload_objs'
22141 hardcode_direct_F77=no
22142 ;;
22143 motorola)
22144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22145 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22146 ;;
22147 esac
22148 runpath_var='LD_RUN_PATH'
22149 hardcode_shlibpath_var_F77=no
22150 ;;
22151
22152 sysv4.3*)
22153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22154 hardcode_shlibpath_var_F77=no
22155 export_dynamic_flag_spec_F77='-Bexport'
22156 ;;
22157
22158 sysv4*MP*)
22159 if test -d /usr/nec; then
22160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22161 hardcode_shlibpath_var_F77=no
22162 runpath_var=LD_RUN_PATH
22163 hardcode_runpath_var=yes
22164 ld_shlibs_F77=yes
22165 fi
22166 ;;
22167
Reid Spencera773bd52006-08-04 18:18:08 +000022168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22169 no_undefined_flag_F77='${wl}-z,text'
22170 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022171 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022172 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022173
John Criswell47fdd832003-07-14 16:52:07 +000022174 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022175 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22176 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 +000022177 else
Reid Spencera773bd52006-08-04 18:18:08 +000022178 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22179 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 +000022180 fi
John Criswell47fdd832003-07-14 16:52:07 +000022181 ;;
22182
Reid Spencera773bd52006-08-04 18:18:08 +000022183 sysv5* | sco3.2v5* | sco5v6*)
22184 # Note: We can NOT use -z defs as we might desire, because we do not
22185 # link with -lc, and that would cause any symbols used from libc to
22186 # always be unresolved, which means just about no library would
22187 # ever link correctly. If we're not using GNU ld we use -z text
22188 # though, which does catch some bad symbols but isn't as heavy-handed
22189 # as -z defs.
22190 no_undefined_flag_F77='${wl}-z,text'
22191 allow_undefined_flag_F77='${wl}-z,nodefs'
22192 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022193 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022194 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22195 hardcode_libdir_separator_F77=':'
22196 link_all_deplibs_F77=yes
22197 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022198 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022199
22200 if test "$GCC" = yes; then
22201 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22202 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22203 else
22204 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22205 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22206 fi
John Criswell47fdd832003-07-14 16:52:07 +000022207 ;;
22208
22209 uts4*)
22210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22211 hardcode_libdir_flag_spec_F77='-L$libdir'
22212 hardcode_shlibpath_var_F77=no
22213 ;;
22214
22215 *)
22216 ld_shlibs_F77=no
22217 ;;
22218 esac
22219 fi
22220
Reid Spencera773bd52006-08-04 18:18:08 +000022221{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22222echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022223test "$ld_shlibs_F77" = no && can_build_shared=no
22224
John Criswell47fdd832003-07-14 16:52:07 +000022225#
22226# Do we need to explicitly link libc?
22227#
22228case "x$archive_cmds_need_lc_F77" in
22229x|xyes)
22230 # Assume -lc should be added
22231 archive_cmds_need_lc_F77=yes
22232
22233 if test "$enable_shared" = yes && test "$GCC" = yes; then
22234 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022235 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022236 # FIXME: we may have to deal with multi-command sequences.
22237 ;;
22238 '$CC '*)
22239 # Test whether the compiler implicitly links with -lc since on some
22240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22241 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022242 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22243echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022244 $rm conftest*
22245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22246
22247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22248 (eval $ac_compile) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } 2>conftest.err; then
22252 soname=conftest
22253 lib=conftest
22254 libobjs=conftest.$ac_objext
22255 deplibs=
22256 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022257 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022258 compiler_flags=-v
22259 linker_flags=-v
22260 verstring=
22261 output_objdir=.
22262 libname=conftest
22263 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22264 allow_undefined_flag_F77=
22265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22266 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22267 ac_status=$?
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }
22270 then
22271 archive_cmds_need_lc_F77=no
22272 else
22273 archive_cmds_need_lc_F77=yes
22274 fi
22275 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22276 else
22277 cat conftest.err 1>&5
22278 fi
22279 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022280 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22281echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022282 ;;
22283 esac
22284 fi
22285 ;;
22286esac
22287
Reid Spencera773bd52006-08-04 18:18:08 +000022288{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22289echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022290library_names_spec=
22291libname_spec='lib$name'
22292soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022293shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022294postinstall_cmds=
22295postuninstall_cmds=
22296finish_cmds=
22297finish_eval=
22298shlibpath_var=
22299shlibpath_overrides_runpath=unknown
22300version_type=none
22301dynamic_linker="$host_os ld.so"
22302sys_lib_dlsearch_path_spec="/lib /usr/lib"
22303if test "$GCC" = yes; then
22304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22305 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22306 # if the path contains ";" then we assume it to be the separator
22307 # otherwise default to the standard path separator (i.e. ":") - it is
22308 # assumed that no part of a normal pathname contains ";" but that should
22309 # okay in the real world where ";" in dirpaths is itself problematic.
22310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22311 else
22312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22313 fi
22314else
22315 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22316fi
22317need_lib_prefix=unknown
22318hardcode_into_libs=no
22319
22320# when you set need_version to no, make sure it does not cause -set_version
22321# flags to be left without arguments
22322need_version=unknown
22323
22324case $host_os in
22325aix3*)
22326 version_type=linux
22327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22328 shlibpath_var=LIBPATH
22329
22330 # AIX 3 has no versioning support, so we append a major version to the name.
22331 soname_spec='${libname}${release}${shared_ext}$major'
22332 ;;
22333
22334aix4* | aix5*)
22335 version_type=linux
22336 need_lib_prefix=no
22337 need_version=no
22338 hardcode_into_libs=yes
22339 if test "$host_cpu" = ia64; then
22340 # AIX 5 supports IA64
22341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22342 shlibpath_var=LD_LIBRARY_PATH
22343 else
22344 # With GCC up to 2.95.x, collect2 would create an import file
22345 # for dependence libraries. The import file would start with
22346 # the line `#! .'. This would cause the generated library to
22347 # depend on `.', always an invalid library. This was fixed in
22348 # development snapshots of GCC prior to 3.0.
22349 case $host_os in
22350 aix4 | aix4.[01] | aix4.[01].*)
22351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22352 echo ' yes '
22353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22354 :
22355 else
22356 can_build_shared=no
22357 fi
22358 ;;
22359 esac
22360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22361 # soname into executable. Probably we can add versioning support to
22362 # collect2, so additional links can be useful in future.
22363 if test "$aix_use_runtimelinking" = yes; then
22364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22365 # instead of lib<name>.a to let people know that these are not
22366 # typical AIX shared libraries.
22367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22368 else
22369 # We preserve .a as extension for shared libraries through AIX4.2
22370 # and later when we are not doing run time linking.
22371 library_names_spec='${libname}${release}.a $libname.a'
22372 soname_spec='${libname}${release}${shared_ext}$major'
22373 fi
22374 shlibpath_var=LIBPATH
22375 fi
22376 ;;
22377
22378amigaos*)
22379 library_names_spec='$libname.ixlibrary $libname.a'
22380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022381 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 +000022382 ;;
22383
22384beos*)
22385 library_names_spec='${libname}${shared_ext}'
22386 dynamic_linker="$host_os ld.so"
22387 shlibpath_var=LIBRARY_PATH
22388 ;;
22389
Reid Spencer2706f8c2004-09-19 23:53:36 +000022390bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022391 version_type=linux
22392 need_version=no
22393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22394 soname_spec='${libname}${release}${shared_ext}$major'
22395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22396 shlibpath_var=LD_LIBRARY_PATH
22397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22399 # the default ld.so.conf also contains /usr/contrib/lib and
22400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22401 # libtool to hard-code these into programs
22402 ;;
22403
22404cygwin* | mingw* | pw32*)
22405 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022406 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022407 need_version=no
22408 need_lib_prefix=no
22409
22410 case $GCC,$host_os in
22411 yes,cygwin* | yes,mingw* | yes,pw32*)
22412 library_names_spec='$libname.dll.a'
22413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022414 postinstall_cmds='base_file=`basename \${file}`~
22415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22416 dldir=$destdir/`dirname \$dlpath`~
22417 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022418 $install_prog $dir/$dlname \$dldir/$dlname~
22419 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22421 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022422 $rm \$dlpath'
22423 shlibpath_overrides_runpath=yes
22424
22425 case $host_os in
22426 cygwin*)
22427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22428 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 +000022429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022430 ;;
22431 mingw*)
22432 # MinGW DLLs use traditional 'lib' prefix
22433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22436 # It is most probably a Windows format PATH printed by
22437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22438 # path with ; separators, and with drive letters. We can handle the
22439 # drive letters (cygwin fileutils understands them), so leave them,
22440 # especially as we might pass files found there to a mingw objdump,
22441 # which wouldn't understand a cygwinified path. Ahh.
22442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22443 else
22444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22445 fi
22446 ;;
22447 pw32*)
22448 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022449 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 +000022450 ;;
22451 esac
22452 ;;
22453
22454 *)
22455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22456 ;;
22457 esac
22458 dynamic_linker='Win32 ld.exe'
22459 # FIXME: first we should search . and the directory the executable is in
22460 shlibpath_var=PATH
22461 ;;
22462
22463darwin* | rhapsody*)
22464 dynamic_linker="$host_os dyld"
22465 version_type=darwin
22466 need_lib_prefix=no
22467 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022469 soname_spec='${libname}${release}${major}$shared_ext'
22470 shlibpath_overrides_runpath=yes
22471 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022473 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022474 if test "$GCC" = yes; then
22475 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"`
22476 else
22477 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022478 fi
22479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22480 ;;
22481
22482dgux*)
22483 version_type=linux
22484 need_lib_prefix=no
22485 need_version=no
22486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22487 soname_spec='${libname}${release}${shared_ext}$major'
22488 shlibpath_var=LD_LIBRARY_PATH
22489 ;;
22490
22491freebsd1*)
22492 dynamic_linker=no
22493 ;;
22494
Reid Spencer2706f8c2004-09-19 23:53:36 +000022495kfreebsd*-gnu)
22496 version_type=linux
22497 need_lib_prefix=no
22498 need_version=no
22499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22500 soname_spec='${libname}${release}${shared_ext}$major'
22501 shlibpath_var=LD_LIBRARY_PATH
22502 shlibpath_overrides_runpath=no
22503 hardcode_into_libs=yes
22504 dynamic_linker='GNU ld.so'
22505 ;;
22506
Reid Spencera773bd52006-08-04 18:18:08 +000022507freebsd* | dragonfly*)
22508 # DragonFly does not have aout. When/if they implement a new
22509 # versioning mechanism, adjust this.
22510 if test -x /usr/bin/objformat; then
22511 objformat=`/usr/bin/objformat`
22512 else
22513 case $host_os in
22514 freebsd[123]*) objformat=aout ;;
22515 *) objformat=elf ;;
22516 esac
22517 fi
John Criswell47fdd832003-07-14 16:52:07 +000022518 version_type=freebsd-$objformat
22519 case $version_type in
22520 freebsd-elf*)
22521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22522 need_version=no
22523 need_lib_prefix=no
22524 ;;
22525 freebsd-*)
22526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22527 need_version=yes
22528 ;;
22529 esac
22530 shlibpath_var=LD_LIBRARY_PATH
22531 case $host_os in
22532 freebsd2*)
22533 shlibpath_overrides_runpath=yes
22534 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022535 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022536 shlibpath_overrides_runpath=yes
22537 hardcode_into_libs=yes
22538 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022539 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22540 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022541 shlibpath_overrides_runpath=no
22542 hardcode_into_libs=yes
22543 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022544 freebsd*) # from 4.6 on
22545 shlibpath_overrides_runpath=yes
22546 hardcode_into_libs=yes
22547 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022548 esac
22549 ;;
22550
22551gnu*)
22552 version_type=linux
22553 need_lib_prefix=no
22554 need_version=no
22555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22556 soname_spec='${libname}${release}${shared_ext}$major'
22557 shlibpath_var=LD_LIBRARY_PATH
22558 hardcode_into_libs=yes
22559 ;;
22560
22561hpux9* | hpux10* | hpux11*)
22562 # Give a soname corresponding to the major version so that dld.sl refuses to
22563 # link against other versions.
22564 version_type=sunos
22565 need_lib_prefix=no
22566 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022567 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022568 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022569 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022570 hardcode_into_libs=yes
22571 dynamic_linker="$host_os dld.so"
22572 shlibpath_var=LD_LIBRARY_PATH
22573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22575 soname_spec='${libname}${release}${shared_ext}$major'
22576 if test "X$HPUX_IA64_MODE" = X32; then
22577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22578 else
22579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22580 fi
22581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22582 ;;
22583 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022584 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022585 hardcode_into_libs=yes
22586 dynamic_linker="$host_os dld.sl"
22587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22590 soname_spec='${libname}${release}${shared_ext}$major'
22591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22593 ;;
22594 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022595 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022596 dynamic_linker="$host_os dld.sl"
22597 shlibpath_var=SHLIB_PATH
22598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22600 soname_spec='${libname}${release}${shared_ext}$major'
22601 ;;
22602 esac
22603 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22604 postinstall_cmds='chmod 555 $lib'
22605 ;;
22606
Reid Spencera773bd52006-08-04 18:18:08 +000022607interix3*)
22608 version_type=linux
22609 need_lib_prefix=no
22610 need_version=no
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22612 soname_spec='${libname}${release}${shared_ext}$major'
22613 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22614 shlibpath_var=LD_LIBRARY_PATH
22615 shlibpath_overrides_runpath=no
22616 hardcode_into_libs=yes
22617 ;;
22618
John Criswell47fdd832003-07-14 16:52:07 +000022619irix5* | irix6* | nonstopux*)
22620 case $host_os in
22621 nonstopux*) version_type=nonstopux ;;
22622 *)
22623 if test "$lt_cv_prog_gnu_ld" = yes; then
22624 version_type=linux
22625 else
22626 version_type=irix
22627 fi ;;
22628 esac
22629 need_lib_prefix=no
22630 need_version=no
22631 soname_spec='${libname}${release}${shared_ext}$major'
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22633 case $host_os in
22634 irix5* | nonstopux*)
22635 libsuff= shlibsuff=
22636 ;;
22637 *)
22638 case $LD in # libtool.m4 will add one of these switches to LD
22639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22640 libsuff= shlibsuff= libmagic=32-bit;;
22641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22642 libsuff=32 shlibsuff=N32 libmagic=N32;;
22643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22644 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22645 *) libsuff= shlibsuff= libmagic=never-match;;
22646 esac
22647 ;;
22648 esac
22649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22650 shlibpath_overrides_runpath=no
22651 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22652 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22653 hardcode_into_libs=yes
22654 ;;
22655
22656# No shared lib support for Linux oldld, aout, or coff.
22657linux*oldld* | linux*aout* | linux*coff*)
22658 dynamic_linker=no
22659 ;;
22660
22661# This must be Linux ELF.
22662linux*)
22663 version_type=linux
22664 need_lib_prefix=no
22665 need_version=no
22666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22667 soname_spec='${libname}${release}${shared_ext}$major'
22668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22669 shlibpath_var=LD_LIBRARY_PATH
22670 shlibpath_overrides_runpath=no
22671 # This implies no fast_install, which is unacceptable.
22672 # Some rework will be needed to allow for fast_install
22673 # before this can be enabled.
22674 hardcode_into_libs=yes
22675
Reid Spencer2706f8c2004-09-19 23:53:36 +000022676 # Append ld.so.conf contents to the search path
22677 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022678 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 +000022679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22680 fi
22681
John Criswell47fdd832003-07-14 16:52:07 +000022682 # We used to test for /lib/ld.so.1 and disable shared libraries on
22683 # powerpc, because MkLinux only supported shared libraries with the
22684 # GNU dynamic linker. Since this was broken with cross compilers,
22685 # most powerpc-linux boxes support dynamic linking these days and
22686 # people can always --disable-shared, the test was removed, and we
22687 # assume the GNU/Linux dynamic linker is in use.
22688 dynamic_linker='GNU/Linux ld.so'
22689 ;;
22690
Reid Spencer2706f8c2004-09-19 23:53:36 +000022691knetbsd*-gnu)
22692 version_type=linux
22693 need_lib_prefix=no
22694 need_version=no
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 shlibpath_overrides_runpath=no
22699 hardcode_into_libs=yes
22700 dynamic_linker='GNU ld.so'
22701 ;;
22702
John Criswell47fdd832003-07-14 16:52:07 +000022703netbsd*)
22704 version_type=sunos
22705 need_lib_prefix=no
22706 need_version=no
22707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22710 dynamic_linker='NetBSD (a.out) ld.so'
22711 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022713 soname_spec='${libname}${release}${shared_ext}$major'
22714 dynamic_linker='NetBSD ld.elf_so'
22715 fi
22716 shlibpath_var=LD_LIBRARY_PATH
22717 shlibpath_overrides_runpath=yes
22718 hardcode_into_libs=yes
22719 ;;
22720
22721newsos6)
22722 version_type=linux
22723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22724 shlibpath_var=LD_LIBRARY_PATH
22725 shlibpath_overrides_runpath=yes
22726 ;;
22727
Reid Spencer2706f8c2004-09-19 23:53:36 +000022728nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022729 version_type=linux
22730 need_lib_prefix=no
22731 need_version=no
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 soname_spec='${libname}${release}${shared_ext}$major'
22734 shlibpath_var=LD_LIBRARY_PATH
22735 shlibpath_overrides_runpath=yes
22736 ;;
22737
22738openbsd*)
22739 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022740 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022741 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22743 case $host_os in
22744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22745 *) need_version=no ;;
22746 esac
John Criswell47fdd832003-07-14 16:52:07 +000022747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22749 shlibpath_var=LD_LIBRARY_PATH
22750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22751 case $host_os in
22752 openbsd2.[89] | openbsd2.[89].*)
22753 shlibpath_overrides_runpath=no
22754 ;;
22755 *)
22756 shlibpath_overrides_runpath=yes
22757 ;;
22758 esac
22759 else
22760 shlibpath_overrides_runpath=yes
22761 fi
22762 ;;
22763
22764os2*)
22765 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022766 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022767 need_lib_prefix=no
22768 library_names_spec='$libname${shared_ext} $libname.a'
22769 dynamic_linker='OS/2 ld.exe'
22770 shlibpath_var=LIBPATH
22771 ;;
22772
22773osf3* | osf4* | osf5*)
22774 version_type=osf
22775 need_lib_prefix=no
22776 need_version=no
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779 shlibpath_var=LD_LIBRARY_PATH
22780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22782 ;;
22783
John Criswell47fdd832003-07-14 16:52:07 +000022784solaris*)
22785 version_type=linux
22786 need_lib_prefix=no
22787 need_version=no
22788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22789 soname_spec='${libname}${release}${shared_ext}$major'
22790 shlibpath_var=LD_LIBRARY_PATH
22791 shlibpath_overrides_runpath=yes
22792 hardcode_into_libs=yes
22793 # ldd complains unless libraries are executable
22794 postinstall_cmds='chmod +x $lib'
22795 ;;
22796
22797sunos4*)
22798 version_type=sunos
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22801 shlibpath_var=LD_LIBRARY_PATH
22802 shlibpath_overrides_runpath=yes
22803 if test "$with_gnu_ld" = yes; then
22804 need_lib_prefix=no
22805 fi
22806 need_version=yes
22807 ;;
22808
Reid Spencera773bd52006-08-04 18:18:08 +000022809sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022810 version_type=linux
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22812 soname_spec='${libname}${release}${shared_ext}$major'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 case $host_vendor in
22815 sni)
22816 shlibpath_overrides_runpath=no
22817 need_lib_prefix=no
22818 export_dynamic_flag_spec='${wl}-Blargedynsym'
22819 runpath_var=LD_RUN_PATH
22820 ;;
22821 siemens)
22822 need_lib_prefix=no
22823 ;;
22824 motorola)
22825 need_lib_prefix=no
22826 need_version=no
22827 shlibpath_overrides_runpath=no
22828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22829 ;;
22830 esac
22831 ;;
22832
22833sysv4*MP*)
22834 if test -d /usr/nec ;then
22835 version_type=linux
22836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22837 soname_spec='$libname${shared_ext}.$major'
22838 shlibpath_var=LD_LIBRARY_PATH
22839 fi
22840 ;;
22841
Reid Spencera773bd52006-08-04 18:18:08 +000022842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22843 version_type=freebsd-elf
22844 need_lib_prefix=no
22845 need_version=no
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22847 soname_spec='${libname}${release}${shared_ext}$major'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 hardcode_into_libs=yes
22850 if test "$with_gnu_ld" = yes; then
22851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22852 shlibpath_overrides_runpath=no
22853 else
22854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22855 shlibpath_overrides_runpath=yes
22856 case $host_os in
22857 sco3.2v5*)
22858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22859 ;;
22860 esac
22861 fi
22862 sys_lib_dlsearch_path_spec='/usr/lib'
22863 ;;
22864
John Criswell47fdd832003-07-14 16:52:07 +000022865uts4*)
22866 version_type=linux
22867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22868 soname_spec='${libname}${release}${shared_ext}$major'
22869 shlibpath_var=LD_LIBRARY_PATH
22870 ;;
22871
22872*)
22873 dynamic_linker=no
22874 ;;
22875esac
Reid Spencera773bd52006-08-04 18:18:08 +000022876{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22877echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022878test "$dynamic_linker" = no && can_build_shared=no
22879
Reid Spencera773bd52006-08-04 18:18:08 +000022880variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22881if test "$GCC" = yes; then
22882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22883fi
22884
22885{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22886echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022887hardcode_action_F77=
22888if test -n "$hardcode_libdir_flag_spec_F77" || \
22889 test -n "$runpath_var_F77" || \
22890 test "X$hardcode_automatic_F77" = "Xyes" ; then
22891
22892 # We can hardcode non-existant directories.
22893 if test "$hardcode_direct_F77" != no &&
22894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22895 # have to relink, otherwise we might link with an installed library
22896 # when we should be linking with a yet-to-be-installed one
22897 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22898 test "$hardcode_minus_L_F77" != no; then
22899 # Linking always hardcodes the temporary library directory.
22900 hardcode_action_F77=relink
22901 else
22902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22903 hardcode_action_F77=immediate
22904 fi
22905else
22906 # We cannot hardcode anything, or else we can only hardcode existing
22907 # directories.
22908 hardcode_action_F77=unsupported
22909fi
Reid Spencera773bd52006-08-04 18:18:08 +000022910{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22911echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022912
22913if test "$hardcode_action_F77" = relink; then
22914 # Fast installation is not supported
22915 enable_fast_install=no
22916elif test "$shlibpath_overrides_runpath" = yes ||
22917 test "$enable_shared" = no; then
22918 # Fast installation is not necessary
22919 enable_fast_install=needless
22920fi
22921
John Criswell47fdd832003-07-14 16:52:07 +000022922
22923# The else clause should only fire when bootstrapping the
22924# libtool distribution, otherwise you forgot to ship ltmain.sh
22925# with your package, and you will get complaints that there are
22926# no rules to generate ltmain.sh.
22927if test -f "$ltmain"; then
22928 # See if we are running on zsh, and set the options which allow our commands through
22929 # without removal of \ escapes.
22930 if test -n "${ZSH_VERSION+set}" ; then
22931 setopt NO_GLOB_SUBST
22932 fi
22933 # Now quote all the things that may contain metacharacters while being
22934 # careful not to overquote the AC_SUBSTed values. We take copies of the
22935 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022936 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 +000022937 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22940 deplibs_check_method reload_flag reload_cmds need_locks \
22941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22942 lt_cv_sys_global_symbol_to_c_name_address \
22943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22944 old_postinstall_cmds old_postuninstall_cmds \
22945 compiler_F77 \
22946 CC_F77 \
22947 LD_F77 \
22948 lt_prog_compiler_wl_F77 \
22949 lt_prog_compiler_pic_F77 \
22950 lt_prog_compiler_static_F77 \
22951 lt_prog_compiler_no_builtin_flag_F77 \
22952 export_dynamic_flag_spec_F77 \
22953 thread_safe_flag_spec_F77 \
22954 whole_archive_flag_spec_F77 \
22955 enable_shared_with_static_runtimes_F77 \
22956 old_archive_cmds_F77 \
22957 old_archive_from_new_cmds_F77 \
22958 predep_objects_F77 \
22959 postdep_objects_F77 \
22960 predeps_F77 \
22961 postdeps_F77 \
22962 compiler_lib_search_path_F77 \
22963 archive_cmds_F77 \
22964 archive_expsym_cmds_F77 \
22965 postinstall_cmds_F77 \
22966 postuninstall_cmds_F77 \
22967 old_archive_from_expsyms_cmds_F77 \
22968 allow_undefined_flag_F77 \
22969 no_undefined_flag_F77 \
22970 export_symbols_cmds_F77 \
22971 hardcode_libdir_flag_spec_F77 \
22972 hardcode_libdir_flag_spec_ld_F77 \
22973 hardcode_libdir_separator_F77 \
22974 hardcode_automatic_F77 \
22975 module_cmds_F77 \
22976 module_expsym_cmds_F77 \
22977 lt_cv_prog_compiler_c_o_F77 \
22978 exclude_expsyms_F77 \
22979 include_expsyms_F77; do
22980
22981 case $var in
22982 old_archive_cmds_F77 | \
22983 old_archive_from_new_cmds_F77 | \
22984 archive_cmds_F77 | \
22985 archive_expsym_cmds_F77 | \
22986 module_cmds_F77 | \
22987 module_expsym_cmds_F77 | \
22988 old_archive_from_expsyms_cmds_F77 | \
22989 export_symbols_cmds_F77 | \
22990 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22991 postinstall_cmds | postuninstall_cmds | \
22992 old_postinstall_cmds | old_postuninstall_cmds | \
22993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22994 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022995 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 +000022996 ;;
22997 *)
22998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22999 ;;
23000 esac
23001 done
23002
23003 case $lt_echo in
23004 *'\$0 --fallback-echo"')
23005 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23006 ;;
23007 esac
23008
23009cfgfile="$ofile"
23010
23011 cat <<__EOF__ >> "$cfgfile"
23012# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23013
23014# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23015
23016# Shell to use when invoking shell scripts.
23017SHELL=$lt_SHELL
23018
23019# Whether or not to build shared libraries.
23020build_libtool_libs=$enable_shared
23021
23022# Whether or not to build static libraries.
23023build_old_libs=$enable_static
23024
23025# Whether or not to add -lc for building shared libraries.
23026build_libtool_need_lc=$archive_cmds_need_lc_F77
23027
23028# Whether or not to disallow shared libs when runtime libs are static
23029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23030
23031# Whether or not to optimize for fast installation.
23032fast_install=$enable_fast_install
23033
23034# The host system.
23035host_alias=$host_alias
23036host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023037host_os=$host_os
23038
23039# The build system.
23040build_alias=$build_alias
23041build=$build
23042build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023043
23044# An echo program that does not interpret backslashes.
23045echo=$lt_echo
23046
23047# The archiver.
23048AR=$lt_AR
23049AR_FLAGS=$lt_AR_FLAGS
23050
23051# A C compiler.
23052LTCC=$lt_LTCC
23053
Reid Spencera773bd52006-08-04 18:18:08 +000023054# LTCC compiler flags.
23055LTCFLAGS=$lt_LTCFLAGS
23056
John Criswell47fdd832003-07-14 16:52:07 +000023057# A language-specific compiler.
23058CC=$lt_compiler_F77
23059
23060# Is the compiler the GNU C compiler?
23061with_gcc=$GCC_F77
23062
23063# An ERE matcher.
23064EGREP=$lt_EGREP
23065
23066# The linker used to build libraries.
23067LD=$lt_LD_F77
23068
23069# Whether we need hard or soft links.
23070LN_S=$lt_LN_S
23071
23072# A BSD-compatible nm program.
23073NM=$lt_NM
23074
23075# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023076STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023077
23078# Used to examine libraries when file_magic_cmd begins "file"
23079MAGIC_CMD=$MAGIC_CMD
23080
23081# Used on cygwin: DLL creation program.
23082DLLTOOL="$DLLTOOL"
23083
23084# Used on cygwin: object dumper.
23085OBJDUMP="$OBJDUMP"
23086
23087# Used on cygwin: assembler.
23088AS="$AS"
23089
23090# The name of the directory that contains temporary libtool files.
23091objdir=$objdir
23092
23093# How to create reloadable object files.
23094reload_flag=$lt_reload_flag
23095reload_cmds=$lt_reload_cmds
23096
23097# How to pass a linker flag through the compiler.
23098wl=$lt_lt_prog_compiler_wl_F77
23099
23100# Object file suffix (normally "o").
23101objext="$ac_objext"
23102
23103# Old archive suffix (normally "a").
23104libext="$libext"
23105
23106# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023107shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023108
23109# Executable file suffix (normally "").
23110exeext="$exeext"
23111
23112# Additional compiler flags for building library objects.
23113pic_flag=$lt_lt_prog_compiler_pic_F77
23114pic_mode=$pic_mode
23115
23116# What is the maximum length of a command?
23117max_cmd_len=$lt_cv_sys_max_cmd_len
23118
23119# Does compiler simultaneously support -c and -o options?
23120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23121
Reid Spencera773bd52006-08-04 18:18:08 +000023122# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023123need_locks=$lt_need_locks
23124
23125# Do we need the lib prefix for modules?
23126need_lib_prefix=$need_lib_prefix
23127
23128# Do we need a version for libraries?
23129need_version=$need_version
23130
23131# Whether dlopen is supported.
23132dlopen_support=$enable_dlopen
23133
23134# Whether dlopen of programs is supported.
23135dlopen_self=$enable_dlopen_self
23136
23137# Whether dlopen of statically linked programs is supported.
23138dlopen_self_static=$enable_dlopen_self_static
23139
23140# Compiler flag to prevent dynamic linking.
23141link_static_flag=$lt_lt_prog_compiler_static_F77
23142
23143# Compiler flag to turn off builtin functions.
23144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23145
23146# Compiler flag to allow reflexive dlopens.
23147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23148
23149# Compiler flag to generate shared objects directly from archives.
23150whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23151
23152# Compiler flag to generate thread-safe objects.
23153thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23154
23155# Library versioning type.
23156version_type=$version_type
23157
23158# Format of library name prefix.
23159libname_spec=$lt_libname_spec
23160
23161# List of archive names. First name is the real one, the rest are links.
23162# The last name is the one that the linker finds with -lNAME.
23163library_names_spec=$lt_library_names_spec
23164
23165# The coded name of the library, if different from the real name.
23166soname_spec=$lt_soname_spec
23167
23168# Commands used to build and install an old-style archive.
23169RANLIB=$lt_RANLIB
23170old_archive_cmds=$lt_old_archive_cmds_F77
23171old_postinstall_cmds=$lt_old_postinstall_cmds
23172old_postuninstall_cmds=$lt_old_postuninstall_cmds
23173
23174# Create an old-style archive from a shared archive.
23175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23176
23177# Create a temporary old-style archive to link instead of a shared archive.
23178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23179
23180# Commands used to build and install a shared archive.
23181archive_cmds=$lt_archive_cmds_F77
23182archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23183postinstall_cmds=$lt_postinstall_cmds
23184postuninstall_cmds=$lt_postuninstall_cmds
23185
23186# Commands used to build a loadable module (assumed same as above if empty)
23187module_cmds=$lt_module_cmds_F77
23188module_expsym_cmds=$lt_module_expsym_cmds_F77
23189
23190# Commands to strip libraries.
23191old_striplib=$lt_old_striplib
23192striplib=$lt_striplib
23193
23194# Dependencies to place before the objects being linked to create a
23195# shared library.
23196predep_objects=$lt_predep_objects_F77
23197
23198# Dependencies to place after the objects being linked to create a
23199# shared library.
23200postdep_objects=$lt_postdep_objects_F77
23201
23202# Dependencies to place before the objects being linked to create a
23203# shared library.
23204predeps=$lt_predeps_F77
23205
23206# Dependencies to place after the objects being linked to create a
23207# shared library.
23208postdeps=$lt_postdeps_F77
23209
23210# The library search path used internally by the compiler when linking
23211# a shared library.
23212compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23213
23214# Method to check whether dependent libraries are shared objects.
23215deplibs_check_method=$lt_deplibs_check_method
23216
23217# Command to use when deplibs_check_method == file_magic.
23218file_magic_cmd=$lt_file_magic_cmd
23219
23220# Flag that allows shared libraries with undefined symbols to be built.
23221allow_undefined_flag=$lt_allow_undefined_flag_F77
23222
23223# Flag that forces no undefined symbols.
23224no_undefined_flag=$lt_no_undefined_flag_F77
23225
23226# Commands used to finish a libtool library installation in a directory.
23227finish_cmds=$lt_finish_cmds
23228
23229# Same as above, but a single script fragment to be evaled but not shown.
23230finish_eval=$lt_finish_eval
23231
23232# Take the output of nm and produce a listing of raw symbols and C names.
23233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23234
23235# Transform the output of nm in a proper C declaration
23236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23237
23238# Transform the output of nm in a C name address pair
23239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23240
23241# This is the shared library runtime path variable.
23242runpath_var=$runpath_var
23243
23244# This is the shared library path variable.
23245shlibpath_var=$shlibpath_var
23246
23247# Is shlibpath searched before the hard-coded library search path?
23248shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23249
23250# How to hardcode a shared library path into an executable.
23251hardcode_action=$hardcode_action_F77
23252
23253# Whether we should hardcode library paths into libraries.
23254hardcode_into_libs=$hardcode_into_libs
23255
23256# Flag to hardcode \$libdir into a binary during linking.
23257# This must work even if \$libdir does not exist.
23258hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23259
23260# If ld is used when linking, flag to hardcode \$libdir into
23261# a binary during linking. This must work even if \$libdir does
23262# not exist.
23263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23264
23265# Whether we need a single -rpath flag with a separated argument.
23266hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23267
23268# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23269# resulting binary.
23270hardcode_direct=$hardcode_direct_F77
23271
23272# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23273# resulting binary.
23274hardcode_minus_L=$hardcode_minus_L_F77
23275
23276# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23277# the resulting binary.
23278hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23279
23280# Set to yes if building a shared library automatically hardcodes DIR into the library
23281# and all subsequent libraries and executables linked against it.
23282hardcode_automatic=$hardcode_automatic_F77
23283
23284# Variables whose values should be saved in libtool wrapper scripts and
23285# restored at relink time.
23286variables_saved_for_relink="$variables_saved_for_relink"
23287
23288# Whether libtool must link a program against all its dependency libraries.
23289link_all_deplibs=$link_all_deplibs_F77
23290
23291# Compile-time system search path for libraries
23292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23293
23294# Run-time system search path for libraries
23295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23296
23297# Fix the shell variable \$srcfile for the compiler.
23298fix_srcfile_path="$fix_srcfile_path_F77"
23299
23300# Set to yes if exported symbols are required.
23301always_export_symbols=$always_export_symbols_F77
23302
23303# The commands to list exported symbols.
23304export_symbols_cmds=$lt_export_symbols_cmds_F77
23305
23306# The commands to extract the exported symbol list from a shared archive.
23307extract_expsyms_cmds=$lt_extract_expsyms_cmds
23308
23309# Symbols that should not be listed in the preloaded symbols.
23310exclude_expsyms=$lt_exclude_expsyms_F77
23311
23312# Symbols that must always be exported.
23313include_expsyms=$lt_include_expsyms_F77
23314
23315# ### END LIBTOOL TAG CONFIG: $tagname
23316
23317__EOF__
23318
23319
23320else
23321 # If there is no Makefile yet, we rely on a make rule to execute
23322 # `config.status --recheck' to rerun these tests and create the
23323 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023324 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23325 if test -f "$ltmain_in"; then
23326 test -f Makefile && make "$ltmain"
23327 fi
John Criswell47fdd832003-07-14 16:52:07 +000023328fi
23329
23330
23331ac_ext=c
23332ac_cpp='$CPP $CPPFLAGS'
23333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335ac_compiler_gnu=$ac_cv_c_compiler_gnu
23336
23337CC="$lt_save_CC"
23338
23339 else
23340 tagname=""
23341 fi
23342 ;;
23343
23344 GCJ)
23345 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023346 ac_ext=c
23347ac_cpp='$CPP $CPPFLAGS'
23348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23350ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023351
23352
23353# Source file extension for Java test sources.
23354ac_ext=java
23355
23356# Object file extension for compiled Java test sources.
23357objext=o
23358objext_GCJ=$objext
23359
23360# Code to be used in simple compile tests
23361lt_simple_compile_test_code="class foo {}\n"
23362
23363# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023364lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023365
23366# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23367
23368# If no C compiler was specified, use CC.
23369LTCC=${LTCC-"$CC"}
23370
Reid Spencera773bd52006-08-04 18:18:08 +000023371# If no C compiler flags were specified, use CFLAGS.
23372LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23373
John Criswell47fdd832003-07-14 16:52:07 +000023374# Allow CC to be a program name with arguments.
23375compiler=$CC
23376
23377
Reid Spencera773bd52006-08-04 18:18:08 +000023378# save warnings/boilerplate of simple test code
23379ac_outfile=conftest.$ac_objext
23380printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23381eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23382_lt_compiler_boilerplate=`cat conftest.err`
23383$rm conftest*
23384
23385ac_outfile=conftest.$ac_objext
23386printf "$lt_simple_link_test_code" >conftest.$ac_ext
23387eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23388_lt_linker_boilerplate=`cat conftest.err`
23389$rm conftest*
23390
23391
John Criswell47fdd832003-07-14 16:52:07 +000023392# Allow CC to be a program name with arguments.
23393lt_save_CC="$CC"
23394CC=${GCJ-"gcj"}
23395compiler=$CC
23396compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023397for cc_temp in $compiler""; do
23398 case $cc_temp in
23399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23401 \-*) ;;
23402 *) break;;
23403 esac
23404done
23405cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23406
John Criswell47fdd832003-07-14 16:52:07 +000023407
23408# GCJ did not exist at the time GCC didn't implicitly link libc in.
23409archive_cmds_need_lc_GCJ=no
23410
Reid Spencera773bd52006-08-04 18:18:08 +000023411old_archive_cmds_GCJ=$old_archive_cmds
23412
John Criswell47fdd832003-07-14 16:52:07 +000023413
23414lt_prog_compiler_no_builtin_flag_GCJ=
23415
23416if test "$GCC" = yes; then
23417 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23418
Reid Spencer2706f8c2004-09-19 23:53:36 +000023419
Reid Spencera773bd52006-08-04 18:18:08 +000023420{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23421echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023422if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23424else
23425 lt_cv_prog_compiler_rtti_exceptions=no
23426 ac_outfile=conftest.$ac_objext
23427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23428 lt_compiler_flag="-fno-rtti -fno-exceptions"
23429 # Insert the option either (1) after the last *FLAGS variable, or
23430 # (2) before a word containing "conftest.", or (3) at the end.
23431 # Note that $ac_compile itself does not contain backslashes and begins
23432 # with a dollar sign (not a hyphen), so the echo should work correctly.
23433 # The option is referenced via a variable to avoid confusing sed.
23434 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23437 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000023438 (eval echo "\"\$as_me:23438: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023439 (eval "$lt_compile" 2>conftest.err)
23440 ac_status=$?
23441 cat conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000023442 echo "$as_me:23442: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023443 if (exit $ac_status) && test -s "$ac_outfile"; then
23444 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023445 # So say no if there are warnings other than the usual output.
23446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023449 lt_cv_prog_compiler_rtti_exceptions=yes
23450 fi
23451 fi
23452 $rm conftest*
23453
23454fi
Reid Spencera773bd52006-08-04 18:18:08 +000023455{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23456echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023457
23458if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23459 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23460else
23461 :
23462fi
23463
23464fi
23465
23466lt_prog_compiler_wl_GCJ=
23467lt_prog_compiler_pic_GCJ=
23468lt_prog_compiler_static_GCJ=
23469
Reid Spencera773bd52006-08-04 18:18:08 +000023470{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23471echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023472
23473 if test "$GCC" = yes; then
23474 lt_prog_compiler_wl_GCJ='-Wl,'
23475 lt_prog_compiler_static_GCJ='-static'
23476
23477 case $host_os in
23478 aix*)
23479 # All AIX code is PIC.
23480 if test "$host_cpu" = ia64; then
23481 # AIX 5 now supports IA64 processor
23482 lt_prog_compiler_static_GCJ='-Bstatic'
23483 fi
23484 ;;
23485
23486 amigaos*)
23487 # FIXME: we need at least 68020 code to build shared libraries, but
23488 # adding the `-m68020' flag to GCC prevents building anything better,
23489 # like `-m68040'.
23490 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23491 ;;
23492
23493 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23494 # PIC is the default for these OSes.
23495 ;;
23496
23497 mingw* | pw32* | os2*)
23498 # This hack is so that the source file can tell whether it is being
23499 # built for inclusion in a dll (and should export symbols for example).
23500 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23501 ;;
23502
23503 darwin* | rhapsody*)
23504 # PIC is the default on this platform
23505 # Common symbols not allowed in MH_DYLIB files
23506 lt_prog_compiler_pic_GCJ='-fno-common'
23507 ;;
23508
Reid Spencera773bd52006-08-04 18:18:08 +000023509 interix3*)
23510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23511 # Instead, we relocate shared libraries at runtime.
23512 ;;
23513
John Criswell47fdd832003-07-14 16:52:07 +000023514 msdosdjgpp*)
23515 # Just because we use GCC doesn't mean we suddenly get shared libraries
23516 # on systems that don't support them.
23517 lt_prog_compiler_can_build_shared_GCJ=no
23518 enable_shared=no
23519 ;;
23520
23521 sysv4*MP*)
23522 if test -d /usr/nec; then
23523 lt_prog_compiler_pic_GCJ=-Kconform_pic
23524 fi
23525 ;;
23526
23527 hpux*)
23528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23529 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023530 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023531 hppa*64*|ia64*)
23532 # +Z the default
23533 ;;
23534 *)
23535 lt_prog_compiler_pic_GCJ='-fPIC'
23536 ;;
23537 esac
23538 ;;
23539
23540 *)
23541 lt_prog_compiler_pic_GCJ='-fPIC'
23542 ;;
23543 esac
23544 else
23545 # PORTME Check for flag to pass linker flags through the system compiler.
23546 case $host_os in
23547 aix*)
23548 lt_prog_compiler_wl_GCJ='-Wl,'
23549 if test "$host_cpu" = ia64; then
23550 # AIX 5 now supports IA64 processor
23551 lt_prog_compiler_static_GCJ='-Bstatic'
23552 else
23553 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23554 fi
23555 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023556 darwin*)
23557 # PIC is the default on this platform
23558 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023559 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023560 xlc*)
23561 lt_prog_compiler_pic_GCJ='-qnocommon'
23562 lt_prog_compiler_wl_GCJ='-Wl,'
23563 ;;
23564 esac
23565 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023566
23567 mingw* | pw32* | os2*)
23568 # This hack is so that the source file can tell whether it is being
23569 # built for inclusion in a dll (and should export symbols for example).
23570 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23571 ;;
23572
23573 hpux9* | hpux10* | hpux11*)
23574 lt_prog_compiler_wl_GCJ='-Wl,'
23575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23576 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023577 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023578 hppa*64*|ia64*)
23579 # +Z the default
23580 ;;
23581 *)
23582 lt_prog_compiler_pic_GCJ='+Z'
23583 ;;
23584 esac
23585 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23586 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23587 ;;
23588
23589 irix5* | irix6* | nonstopux*)
23590 lt_prog_compiler_wl_GCJ='-Wl,'
23591 # PIC (with -KPIC) is the default.
23592 lt_prog_compiler_static_GCJ='-non_shared'
23593 ;;
23594
23595 newsos6)
23596 lt_prog_compiler_pic_GCJ='-KPIC'
23597 lt_prog_compiler_static_GCJ='-Bstatic'
23598 ;;
23599
23600 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023601 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023602 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023603 lt_prog_compiler_wl_GCJ='-Wl,'
23604 lt_prog_compiler_pic_GCJ='-KPIC'
23605 lt_prog_compiler_static_GCJ='-static'
23606 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023607 pgcc* | pgf77* | pgf90* | pgf95*)
23608 # Portland Group compilers (*not* the Pentium gcc compiler,
23609 # which looks to be a dead project)
23610 lt_prog_compiler_wl_GCJ='-Wl,'
23611 lt_prog_compiler_pic_GCJ='-fpic'
23612 lt_prog_compiler_static_GCJ='-Bstatic'
23613 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023614 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023615 lt_prog_compiler_wl_GCJ='-Wl,'
23616 # All Alpha code is PIC.
23617 lt_prog_compiler_static_GCJ='-non_shared'
23618 ;;
23619 esac
23620 ;;
23621
23622 osf3* | osf4* | osf5*)
23623 lt_prog_compiler_wl_GCJ='-Wl,'
23624 # All OSF/1 code is PIC.
23625 lt_prog_compiler_static_GCJ='-non_shared'
23626 ;;
23627
John Criswell47fdd832003-07-14 16:52:07 +000023628 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023629 lt_prog_compiler_pic_GCJ='-KPIC'
23630 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023631 case $cc_basename in
23632 f77* | f90* | f95*)
23633 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23634 *)
23635 lt_prog_compiler_wl_GCJ='-Wl,';;
23636 esac
John Criswell47fdd832003-07-14 16:52:07 +000023637 ;;
23638
23639 sunos4*)
23640 lt_prog_compiler_wl_GCJ='-Qoption ld '
23641 lt_prog_compiler_pic_GCJ='-PIC'
23642 lt_prog_compiler_static_GCJ='-Bstatic'
23643 ;;
23644
Reid Spencera773bd52006-08-04 18:18:08 +000023645 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023646 lt_prog_compiler_wl_GCJ='-Wl,'
23647 lt_prog_compiler_pic_GCJ='-KPIC'
23648 lt_prog_compiler_static_GCJ='-Bstatic'
23649 ;;
23650
23651 sysv4*MP*)
23652 if test -d /usr/nec ;then
23653 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23654 lt_prog_compiler_static_GCJ='-Bstatic'
23655 fi
23656 ;;
23657
Reid Spencera773bd52006-08-04 18:18:08 +000023658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23659 lt_prog_compiler_wl_GCJ='-Wl,'
23660 lt_prog_compiler_pic_GCJ='-KPIC'
23661 lt_prog_compiler_static_GCJ='-Bstatic'
23662 ;;
23663
23664 unicos*)
23665 lt_prog_compiler_wl_GCJ='-Wl,'
23666 lt_prog_compiler_can_build_shared_GCJ=no
23667 ;;
23668
John Criswell47fdd832003-07-14 16:52:07 +000023669 uts4*)
23670 lt_prog_compiler_pic_GCJ='-pic'
23671 lt_prog_compiler_static_GCJ='-Bstatic'
23672 ;;
23673
23674 *)
23675 lt_prog_compiler_can_build_shared_GCJ=no
23676 ;;
23677 esac
23678 fi
23679
Reid Spencera773bd52006-08-04 18:18:08 +000023680{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23681echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023682
23683#
23684# Check to make sure the PIC flag actually works.
23685#
23686if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023687
Reid Spencera773bd52006-08-04 18:18:08 +000023688{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23689echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023690if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23692else
23693 lt_prog_compiler_pic_works_GCJ=no
23694 ac_outfile=conftest.$ac_objext
23695 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23696 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23697 # Insert the option either (1) after the last *FLAGS variable, or
23698 # (2) before a word containing "conftest.", or (3) at the end.
23699 # Note that $ac_compile itself does not contain backslashes and begins
23700 # with a dollar sign (not a hyphen), so the echo should work correctly.
23701 # The option is referenced via a variable to avoid confusing sed.
23702 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23705 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000023706 (eval echo "\"\$as_me:23706: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023707 (eval "$lt_compile" 2>conftest.err)
23708 ac_status=$?
23709 cat conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000023710 echo "$as_me:23710: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023711 if (exit $ac_status) && test -s "$ac_outfile"; then
23712 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023713 # So say no if there are warnings other than the usual output.
23714 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023717 lt_prog_compiler_pic_works_GCJ=yes
23718 fi
23719 fi
23720 $rm conftest*
23721
23722fi
Reid Spencera773bd52006-08-04 18:18:08 +000023723{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23724echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023725
23726if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23727 case $lt_prog_compiler_pic_GCJ in
23728 "" | " "*) ;;
23729 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23730 esac
23731else
23732 lt_prog_compiler_pic_GCJ=
23733 lt_prog_compiler_can_build_shared_GCJ=no
23734fi
23735
23736fi
Reid Spencera773bd52006-08-04 18:18:08 +000023737case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023738 # For platforms which do not support PIC, -DPIC is meaningless:
23739 *djgpp*)
23740 lt_prog_compiler_pic_GCJ=
23741 ;;
23742 *)
23743 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23744 ;;
23745esac
23746
Reid Spencera773bd52006-08-04 18:18:08 +000023747#
23748# Check to make sure the static flag actually works.
23749#
23750wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23751{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23752echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23753if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23755else
23756 lt_prog_compiler_static_works_GCJ=no
23757 save_LDFLAGS="$LDFLAGS"
23758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23759 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23761 # The linker can only warn and ignore the option if not recognized
23762 # So say no if there are warnings
23763 if test -s conftest.err; then
23764 # Append any errors to the config.log.
23765 cat conftest.err 1>&5
23766 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23768 if diff conftest.exp conftest.er2 >/dev/null; then
23769 lt_prog_compiler_static_works_GCJ=yes
23770 fi
23771 else
23772 lt_prog_compiler_static_works_GCJ=yes
23773 fi
23774 fi
23775 $rm conftest*
23776 LDFLAGS="$save_LDFLAGS"
23777
23778fi
23779{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23780echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23781
23782if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23783 :
23784else
23785 lt_prog_compiler_static_GCJ=
23786fi
23787
23788
23789{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23790echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023791if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23793else
23794 lt_cv_prog_compiler_c_o_GCJ=no
23795 $rm -r conftest 2>/dev/null
23796 mkdir conftest
23797 cd conftest
23798 mkdir out
23799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23800
John Criswell47fdd832003-07-14 16:52:07 +000023801 lt_compiler_flag="-o out/conftest2.$ac_objext"
23802 # Insert the option either (1) after the last *FLAGS variable, or
23803 # (2) before a word containing "conftest.", or (3) at the end.
23804 # Note that $ac_compile itself does not contain backslashes and begins
23805 # with a dollar sign (not a hyphen), so the echo should work correctly.
23806 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23809 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6ccd01a2006-08-22 22:21:38 +000023810 (eval echo "\"\$as_me:23810: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023811 (eval "$lt_compile" 2>out/conftest.err)
23812 ac_status=$?
23813 cat out/conftest.err >&5
Reid Spencer6ccd01a2006-08-22 22:21:38 +000023814 echo "$as_me:23814: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23816 then
23817 # The compiler can only warn and ignore the option if not recognized
23818 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023822 lt_cv_prog_compiler_c_o_GCJ=yes
23823 fi
23824 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023825 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023826 $rm conftest*
23827 # SGI C++ compiler will create directory out/ii_files/ for
23828 # template instantiation
23829 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23830 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023831 cd ..
23832 rmdir conftest
23833 $rm conftest*
23834
23835fi
Reid Spencera773bd52006-08-04 18:18:08 +000023836{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23837echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023838
23839
23840hard_links="nottested"
23841if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23842 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023843 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23844echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023845 hard_links=yes
23846 $rm conftest*
23847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23848 touch conftest.a
23849 ln conftest.a conftest.b 2>&5 || hard_links=no
23850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023851 { echo "$as_me:$LINENO: result: $hard_links" >&5
23852echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023853 if test "$hard_links" = no; then
23854 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23855echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23856 need_locks=warn
23857 fi
23858else
23859 need_locks=no
23860fi
23861
Reid Spencera773bd52006-08-04 18:18:08 +000023862{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23863echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023864
23865 runpath_var=
23866 allow_undefined_flag_GCJ=
23867 enable_shared_with_static_runtimes_GCJ=no
23868 archive_cmds_GCJ=
23869 archive_expsym_cmds_GCJ=
23870 old_archive_From_new_cmds_GCJ=
23871 old_archive_from_expsyms_cmds_GCJ=
23872 export_dynamic_flag_spec_GCJ=
23873 whole_archive_flag_spec_GCJ=
23874 thread_safe_flag_spec_GCJ=
23875 hardcode_libdir_flag_spec_GCJ=
23876 hardcode_libdir_flag_spec_ld_GCJ=
23877 hardcode_libdir_separator_GCJ=
23878 hardcode_direct_GCJ=no
23879 hardcode_minus_L_GCJ=no
23880 hardcode_shlibpath_var_GCJ=unsupported
23881 link_all_deplibs_GCJ=unknown
23882 hardcode_automatic_GCJ=no
23883 module_cmds_GCJ=
23884 module_expsym_cmds_GCJ=
23885 always_export_symbols_GCJ=no
23886 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23887 # include_expsyms should be a list of space-separated symbols to be *always*
23888 # included in the symbol list
23889 include_expsyms_GCJ=
23890 # exclude_expsyms can be an extended regexp of symbols to exclude
23891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23893 # as well as any symbol that contains `d'.
23894 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23896 # platforms (ab)use it in PIC code, but their linkers get confused if
23897 # the symbol is explicitly referenced. Since portable code cannot
23898 # rely on this symbol name, it's probably fine to never include it in
23899 # preloaded symbol tables.
23900 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023901 # Just being paranoid about ensuring that cc_basename is set.
23902 for cc_temp in $compiler""; do
23903 case $cc_temp in
23904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23906 \-*) ;;
23907 *) break;;
23908 esac
23909done
23910cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023911
23912 case $host_os in
23913 cygwin* | mingw* | pw32*)
23914 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23915 # When not using gcc, we currently assume that we are using
23916 # Microsoft Visual C++.
23917 if test "$GCC" != yes; then
23918 with_gnu_ld=no
23919 fi
23920 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023921 interix*)
23922 # we just hope/assume this is gcc and not c89 (= MSVC++)
23923 with_gnu_ld=yes
23924 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023925 openbsd*)
23926 with_gnu_ld=no
23927 ;;
23928 esac
23929
23930 ld_shlibs_GCJ=yes
23931 if test "$with_gnu_ld" = yes; then
23932 # If archive_cmds runs LD, not CC, wlarc should be empty
23933 wlarc='${wl}'
23934
Reid Spencera773bd52006-08-04 18:18:08 +000023935 # Set some defaults for GNU ld with shared library support. These
23936 # are reset later if shared libraries are not supported. Putting them
23937 # here allows them to be overridden if necessary.
23938 runpath_var=LD_RUN_PATH
23939 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23940 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23941 # ancient GNU ld didn't support --whole-archive et. al.
23942 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23943 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23944 else
23945 whole_archive_flag_spec_GCJ=
23946 fi
23947 supports_anon_versioning=no
23948 case `$LD -v 2>/dev/null` in
23949 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23952 *\ 2.11.*) ;; # other 2.11 versions
23953 *) supports_anon_versioning=yes ;;
23954 esac
23955
John Criswell47fdd832003-07-14 16:52:07 +000023956 # See if GNU ld supports shared libraries.
23957 case $host_os in
23958 aix3* | aix4* | aix5*)
23959 # On AIX/PPC, the GNU linker is very broken
23960 if test "$host_cpu" != ia64; then
23961 ld_shlibs_GCJ=no
23962 cat <<EOF 1>&2
23963
23964*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23965*** to be unable to reliably create shared libraries on AIX.
23966*** Therefore, libtool is disabling shared libraries support. If you
23967*** really care for shared libraries, you may want to modify your PATH
23968*** so that a non-GNU linker is found, and then restart.
23969
23970EOF
23971 fi
23972 ;;
23973
23974 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023975 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 +000023976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23977 hardcode_minus_L_GCJ=yes
23978
23979 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23980 # that the semantics of dynamic libraries on AmigaOS, at least up
23981 # to version 4, is to share data among multiple programs linked
23982 # with the same dynamic library. Since this doesn't match the
23983 # behavior of shared libraries on other platforms, we can't use
23984 # them.
23985 ld_shlibs_GCJ=no
23986 ;;
23987
23988 beos*)
23989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23990 allow_undefined_flag_GCJ=unsupported
23991 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23992 # support --undefined. This deserves some investigation. FIXME
23993 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23994 else
23995 ld_shlibs_GCJ=no
23996 fi
23997 ;;
23998
23999 cygwin* | mingw* | pw32*)
24000 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24001 # as there is no search path for DLLs.
24002 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24003 allow_undefined_flag_GCJ=unsupported
24004 always_export_symbols_GCJ=no
24005 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024006 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 +000024007
24008 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024009 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 +000024010 # If the export-symbols file already is a .def file (1st line
24011 # is EXPORTS), use it as is; otherwise, prepend...
24012 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24013 cp $export_symbols $output_objdir/$soname.def;
24014 else
24015 echo EXPORTS > $output_objdir/$soname.def;
24016 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024017 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024018 $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 +000024019 else
Reid Spencera773bd52006-08-04 18:18:08 +000024020 ld_shlibs_GCJ=no
24021 fi
24022 ;;
24023
24024 interix3*)
24025 hardcode_direct_GCJ=no
24026 hardcode_shlibpath_var_GCJ=no
24027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24028 export_dynamic_flag_spec_GCJ='${wl}-E'
24029 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24030 # Instead, shared libraries are loaded at an image base (0x10000000 by
24031 # default) and relocated if they conflict, which is a slow very memory
24032 # consuming and fragmenting process. To avoid this, we pick a random,
24033 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24034 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24035 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'
24036 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'
24037 ;;
24038
24039 linux*)
24040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24041 tmp_addflag=
24042 case $cc_basename,$host_cpu in
24043 pgcc*) # Portland Group C compiler
24044 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'
24045 tmp_addflag=' $pic_flag'
24046 ;;
24047 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24048 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'
24049 tmp_addflag=' $pic_flag -Mnomain' ;;
24050 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24051 tmp_addflag=' -i_dynamic' ;;
24052 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24053 tmp_addflag=' -i_dynamic -nofor_main' ;;
24054 ifc* | ifort*) # Intel Fortran compiler
24055 tmp_addflag=' -nofor_main' ;;
24056 esac
24057 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24058
24059 if test $supports_anon_versioning = yes; then
24060 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24061 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24062 $echo "local: *; };" >> $output_objdir/$libname.ver~
24063 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24064 fi
24065 else
24066 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024067 fi
24068 ;;
24069
24070 netbsd*)
24071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24072 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24073 wlarc=
24074 else
24075 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24076 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24077 fi
24078 ;;
24079
Reid Spencera773bd52006-08-04 18:18:08 +000024080 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024081 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24082 ld_shlibs_GCJ=no
24083 cat <<EOF 1>&2
24084
24085*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24086*** create shared libraries on Solaris systems. Therefore, libtool
24087*** is disabling shared libraries support. We urge you to upgrade GNU
24088*** binutils to release 2.9.1 or newer. Another option is to modify
24089*** your PATH or compiler configuration so that the native linker is
24090*** used, and then restart.
24091
24092EOF
24093 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24094 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24095 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24096 else
24097 ld_shlibs_GCJ=no
24098 fi
24099 ;;
24100
Reid Spencera773bd52006-08-04 18:18:08 +000024101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24102 case `$LD -v 2>&1` in
24103 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24104 ld_shlibs_GCJ=no
24105 cat <<_LT_EOF 1>&2
24106
24107*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24108*** reliably create shared libraries on SCO systems. Therefore, libtool
24109*** is disabling shared libraries support. We urge you to upgrade GNU
24110*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24111*** your PATH or compiler configuration so that the native linker is
24112*** used, and then restart.
24113
24114_LT_EOF
24115 ;;
24116 *)
24117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24118 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24119 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24120 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24121 else
24122 ld_shlibs_GCJ=no
24123 fi
24124 ;;
24125 esac
24126 ;;
24127
John Criswell47fdd832003-07-14 16:52:07 +000024128 sunos4*)
24129 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24130 wlarc=
24131 hardcode_direct_GCJ=yes
24132 hardcode_shlibpath_var_GCJ=no
24133 ;;
24134
24135 *)
24136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24137 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24138 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24139 else
24140 ld_shlibs_GCJ=no
24141 fi
24142 ;;
24143 esac
24144
Reid Spencera773bd52006-08-04 18:18:08 +000024145 if test "$ld_shlibs_GCJ" = no; then
24146 runpath_var=
24147 hardcode_libdir_flag_spec_GCJ=
24148 export_dynamic_flag_spec_GCJ=
24149 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024150 fi
24151 else
24152 # PORTME fill in a description of your system's linker (not GNU ld)
24153 case $host_os in
24154 aix3*)
24155 allow_undefined_flag_GCJ=unsupported
24156 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024157 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 +000024158 # Note: this linker hardcodes the directories in LIBPATH if there
24159 # are no directories specified by -L.
24160 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024161 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024162 # Neither direct hardcoding nor static linking is supported with a
24163 # broken collect2.
24164 hardcode_direct_GCJ=unsupported
24165 fi
24166 ;;
24167
24168 aix4* | aix5*)
24169 if test "$host_cpu" = ia64; then
24170 # On IA64, the linker does run time linking by default, so we don't
24171 # have to do anything special.
24172 aix_use_runtimelinking=no
24173 exp_sym_flag='-Bexport'
24174 no_entry_flag=""
24175 else
24176 # If we're using GNU nm, then we don't want the "-C" option.
24177 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24178 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24179 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'
24180 else
24181 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'
24182 fi
24183 aix_use_runtimelinking=no
24184
24185 # Test if we are trying to use run time linking or normal
24186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24187 # need to do runtime linking.
24188 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24189 for ld_flag in $LDFLAGS; do
24190 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24191 aix_use_runtimelinking=yes
24192 break
24193 fi
24194 done
Reid Spencera773bd52006-08-04 18:18:08 +000024195 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024196 esac
24197
24198 exp_sym_flag='-bexport'
24199 no_entry_flag='-bnoentry'
24200 fi
24201
24202 # When large executables or shared objects are built, AIX ld can
24203 # have problems creating the table of contents. If linking a library
24204 # or program results in "error TOC overflow" add -mminimal-toc to
24205 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24206 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24207
24208 archive_cmds_GCJ=''
24209 hardcode_direct_GCJ=yes
24210 hardcode_libdir_separator_GCJ=':'
24211 link_all_deplibs_GCJ=yes
24212
24213 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024214 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024215 # We only want to do this on AIX 4.2 and lower, the check
24216 # below for broken collect2 doesn't work under 4.3+
24217 collect2name=`${CC} -print-prog-name=collect2`
24218 if test -f "$collect2name" && \
24219 strings "$collect2name" | grep resolve_lib_name >/dev/null
24220 then
24221 # We have reworked collect2
24222 hardcode_direct_GCJ=yes
24223 else
24224 # We have old collect2
24225 hardcode_direct_GCJ=unsupported
24226 # It fails to find uninstalled libraries when the uninstalled
24227 # path is not listed in the libpath. Setting hardcode_minus_L
24228 # to unsupported forces relinking
24229 hardcode_minus_L_GCJ=yes
24230 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24231 hardcode_libdir_separator_GCJ=
24232 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024234 esac
24235 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024236 if test "$aix_use_runtimelinking" = yes; then
24237 shared_flag="$shared_flag "'${wl}-G'
24238 fi
John Criswell47fdd832003-07-14 16:52:07 +000024239 else
24240 # not using gcc
24241 if test "$host_cpu" = ia64; then
24242 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24243 # chokes on -Wl,-G. The following line is correct:
24244 shared_flag='-G'
24245 else
Reid Spencera773bd52006-08-04 18:18:08 +000024246 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024247 shared_flag='${wl}-G'
24248 else
24249 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024250 fi
John Criswell47fdd832003-07-14 16:52:07 +000024251 fi
24252 fi
24253
24254 # It seems that -bexpall does not export symbols beginning with
24255 # underscore (_), so it is better to generate a list of symbols to export.
24256 always_export_symbols_GCJ=yes
24257 if test "$aix_use_runtimelinking" = yes; then
24258 # Warning - without using the other runtime loading flags (-brtl),
24259 # -berok will link without error, but may produce a broken library.
24260 allow_undefined_flag_GCJ='-berok'
24261 # Determine the default libpath from the value encoded in an empty executable.
24262 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024263/* confdefs.h. */
24264_ACEOF
24265cat confdefs.h >>conftest.$ac_ext
24266cat >>conftest.$ac_ext <<_ACEOF
24267/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024268
John Criswell47fdd832003-07-14 16:52:07 +000024269int
24270main ()
24271{
24272
24273 ;
24274 return 0;
24275}
24276_ACEOF
24277rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024278if { (ac_try="$ac_link"
24279case "(($ac_try" in
24280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281 *) ac_try_echo=$ac_try;;
24282esac
24283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024285 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024286 grep -v '^ *+' conftest.er1 >conftest.err
24287 rm -f conftest.er1
24288 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24292 { (case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24295esac
24296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024298 ac_status=$?
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; } &&
24301 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024302 { (case "(($ac_try" in
24303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24304 *) ac_try_echo=$ac_try;;
24305esac
24306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24307 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024308 ac_status=$?
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; }; then
24311
24312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24313}'`
24314# Check for a 64-bit object if we didn't find anything.
24315if 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; }
24316}'`; fi
24317else
24318 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024319sed 's/^/| /' conftest.$ac_ext >&5
24320
Reid Spencera773bd52006-08-04 18:18:08 +000024321
John Criswell47fdd832003-07-14 16:52:07 +000024322fi
Reid Spencera773bd52006-08-04 18:18:08 +000024323
24324rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024325 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024326if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24327
24328 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024329 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 +000024330 else
24331 if test "$host_cpu" = ia64; then
24332 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24333 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024334 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 +000024335 else
24336 # Determine the default libpath from the value encoded in an empty executable.
24337 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024338/* confdefs.h. */
24339_ACEOF
24340cat confdefs.h >>conftest.$ac_ext
24341cat >>conftest.$ac_ext <<_ACEOF
24342/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024343
John Criswell47fdd832003-07-14 16:52:07 +000024344int
24345main ()
24346{
24347
24348 ;
24349 return 0;
24350}
24351_ACEOF
24352rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024353if { (ac_try="$ac_link"
24354case "(($ac_try" in
24355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24356 *) ac_try_echo=$ac_try;;
24357esac
24358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24359 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024361 grep -v '^ *+' conftest.er1 >conftest.err
24362 rm -f conftest.er1
24363 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24367 { (case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24370esac
24371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024373 ac_status=$?
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); }; } &&
24376 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024377 { (case "(($ac_try" in
24378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379 *) ac_try_echo=$ac_try;;
24380esac
24381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024383 ac_status=$?
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); }; }; then
24386
24387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24388}'`
24389# Check for a 64-bit object if we didn't find anything.
24390if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24391}'`; fi
24392else
24393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024394sed 's/^/| /' conftest.$ac_ext >&5
24395
Reid Spencera773bd52006-08-04 18:18:08 +000024396
John Criswell47fdd832003-07-14 16:52:07 +000024397fi
Reid Spencera773bd52006-08-04 18:18:08 +000024398
24399rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024400 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024401if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24402
24403 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24404 # Warning - without using the other run time loading flags,
24405 # -berok will link without error, but may produce a broken library.
24406 no_undefined_flag_GCJ=' ${wl}-bernotok'
24407 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024408 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024409 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024410 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024411 # This is similar to how AIX traditionally builds its shared libraries.
24412 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 +000024413 fi
24414 fi
24415 ;;
24416
24417 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024418 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 +000024419 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24420 hardcode_minus_L_GCJ=yes
24421 # see comment about different semantics on the GNU ld section
24422 ld_shlibs_GCJ=no
24423 ;;
24424
Reid Spencer2706f8c2004-09-19 23:53:36 +000024425 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024426 export_dynamic_flag_spec_GCJ=-rdynamic
24427 ;;
24428
24429 cygwin* | mingw* | pw32*)
24430 # When not using gcc, we currently assume that we are using
24431 # Microsoft Visual C++.
24432 # hardcode_libdir_flag_spec is actually meaningless, as there is
24433 # no search path for DLLs.
24434 hardcode_libdir_flag_spec_GCJ=' '
24435 allow_undefined_flag_GCJ=unsupported
24436 # Tell ltmain to make .lib files, not .a files.
24437 libext=lib
24438 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024439 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024440 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024441 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 +000024442 # The linker will automatically build a .lib file if we build a DLL.
24443 old_archive_From_new_cmds_GCJ='true'
24444 # FIXME: Should let the user specify the lib program.
24445 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024446 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024447 enable_shared_with_static_runtimes_GCJ=yes
24448 ;;
24449
24450 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024451 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024452 rhapsody* | darwin1.[012])
24453 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24454 ;;
24455 *) # Darwin 1.3 on
24456 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24457 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24458 else
24459 case ${MACOSX_DEPLOYMENT_TARGET} in
24460 10.[012])
24461 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24462 ;;
24463 10.*)
24464 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24465 ;;
24466 esac
24467 fi
24468 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024469 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024470 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024471 hardcode_direct_GCJ=no
24472 hardcode_automatic_GCJ=yes
24473 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024474 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024475 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024476 if test "$GCC" = yes ; then
24477 output_verbose_link_cmd='echo'
24478 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24479 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024480 # 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 +000024481 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}'
24482 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 +000024483 else
Reid Spencera773bd52006-08-04 18:18:08 +000024484 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024485 xlc*)
24486 output_verbose_link_cmd='echo'
24487 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24488 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024489 # 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 +000024490 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}'
24491 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 +000024492 ;;
24493 *)
24494 ld_shlibs_GCJ=no
24495 ;;
24496 esac
John Criswell47fdd832003-07-14 16:52:07 +000024497 fi
24498 ;;
24499
24500 dgux*)
24501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24502 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24503 hardcode_shlibpath_var_GCJ=no
24504 ;;
24505
24506 freebsd1*)
24507 ld_shlibs_GCJ=no
24508 ;;
24509
24510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24511 # support. Future versions do this automatically, but an explicit c++rt0.o
24512 # does not break anything, and helps significantly (at the cost of a little
24513 # extra space).
24514 freebsd2.2*)
24515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24516 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24517 hardcode_direct_GCJ=yes
24518 hardcode_shlibpath_var_GCJ=no
24519 ;;
24520
24521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24522 freebsd2*)
24523 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24524 hardcode_direct_GCJ=yes
24525 hardcode_minus_L_GCJ=yes
24526 hardcode_shlibpath_var_GCJ=no
24527 ;;
24528
24529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024530 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024531 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24533 hardcode_direct_GCJ=yes
24534 hardcode_shlibpath_var_GCJ=no
24535 ;;
24536
24537 hpux9*)
24538 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024539 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 +000024540 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024541 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 +000024542 fi
24543 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24544 hardcode_libdir_separator_GCJ=:
24545 hardcode_direct_GCJ=yes
24546
24547 # hardcode_minus_L: Not really in the search PATH,
24548 # but as the default location of the library.
24549 hardcode_minus_L_GCJ=yes
24550 export_dynamic_flag_spec_GCJ='${wl}-E'
24551 ;;
24552
Reid Spencera773bd52006-08-04 18:18:08 +000024553 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024555 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24556 else
24557 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24558 fi
24559 if test "$with_gnu_ld" = no; then
24560 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24561 hardcode_libdir_separator_GCJ=:
24562
24563 hardcode_direct_GCJ=yes
24564 export_dynamic_flag_spec_GCJ='${wl}-E'
24565
24566 # hardcode_minus_L: Not really in the search PATH,
24567 # but as the default location of the library.
24568 hardcode_minus_L_GCJ=yes
24569 fi
24570 ;;
24571
24572 hpux11*)
24573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24574 case $host_cpu in
24575 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024576 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24577 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024578 ia64*)
24579 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24580 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024581 *)
24582 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24583 ;;
24584 esac
24585 else
Reid Spencera773bd52006-08-04 18:18:08 +000024586 case $host_cpu in
24587 hppa*64*)
24588 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24589 ;;
24590 ia64*)
24591 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024592 ;;
24593 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024594 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 +000024595 ;;
24596 esac
24597 fi
24598 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024599 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24600 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024601
Reid Spencera773bd52006-08-04 18:18:08 +000024602 case $host_cpu in
24603 hppa*64*|ia64*)
24604 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24605 hardcode_direct_GCJ=no
24606 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024607 ;;
24608 *)
John Criswell47fdd832003-07-14 16:52:07 +000024609 hardcode_direct_GCJ=yes
24610 export_dynamic_flag_spec_GCJ='${wl}-E'
24611
24612 # hardcode_minus_L: Not really in the search PATH,
24613 # but as the default location of the library.
24614 hardcode_minus_L_GCJ=yes
24615 ;;
24616 esac
24617 fi
24618 ;;
24619
24620 irix5* | irix6* | nonstopux*)
24621 if test "$GCC" = yes; then
24622 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'
24623 else
24624 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'
24625 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24626 fi
24627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24628 hardcode_libdir_separator_GCJ=:
24629 link_all_deplibs_GCJ=yes
24630 ;;
24631
24632 netbsd*)
24633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24634 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24635 else
24636 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24637 fi
24638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24639 hardcode_direct_GCJ=yes
24640 hardcode_shlibpath_var_GCJ=no
24641 ;;
24642
24643 newsos6)
24644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24645 hardcode_direct_GCJ=yes
24646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24647 hardcode_libdir_separator_GCJ=:
24648 hardcode_shlibpath_var_GCJ=no
24649 ;;
24650
24651 openbsd*)
24652 hardcode_direct_GCJ=yes
24653 hardcode_shlibpath_var_GCJ=no
24654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24655 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024656 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 +000024657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24658 export_dynamic_flag_spec_GCJ='${wl}-E'
24659 else
24660 case $host_os in
24661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24662 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24663 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24664 ;;
24665 *)
24666 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24668 ;;
24669 esac
24670 fi
24671 ;;
24672
24673 os2*)
24674 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24675 hardcode_minus_L_GCJ=yes
24676 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024677 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 +000024678 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24679 ;;
24680
24681 osf3*)
24682 if test "$GCC" = yes; then
24683 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24684 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'
24685 else
24686 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24687 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'
24688 fi
24689 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24690 hardcode_libdir_separator_GCJ=:
24691 ;;
24692
24693 osf4* | osf5*) # as osf3* with the addition of -msym flag
24694 if test "$GCC" = yes; then
24695 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24696 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'
24697 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24698 else
24699 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24700 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 +000024701 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 +000024702 $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 +000024703
John Criswell47fdd832003-07-14 16:52:07 +000024704 # Both c and cxx compiler support -rpath directly
24705 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24706 fi
24707 hardcode_libdir_separator_GCJ=:
24708 ;;
24709
John Criswell47fdd832003-07-14 16:52:07 +000024710 solaris*)
24711 no_undefined_flag_GCJ=' -z text'
24712 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024713 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024714 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024715 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24716 $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 +000024717 else
Reid Spencera773bd52006-08-04 18:18:08 +000024718 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024719 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024720 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24721 $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 +000024722 fi
24723 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24724 hardcode_shlibpath_var_GCJ=no
24725 case $host_os in
24726 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024727 *)
24728 # The compiler driver will combine linker options so we
24729 # cannot just pass the convience library names through
24730 # without $wl, iff we do not link with $LD.
24731 # Luckily, gcc supports the same syntax we need for Sun Studio.
24732 # Supported since Solaris 2.6 (maybe 2.5.1?)
24733 case $wlarc in
24734 '')
24735 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24736 *)
24737 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' ;;
24738 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024739 esac
24740 link_all_deplibs_GCJ=yes
24741 ;;
24742
24743 sunos4*)
24744 if test "x$host_vendor" = xsequent; then
24745 # Use $CC to link under sequent, because it throws in some extra .o
24746 # files that make .init and .fini sections work.
24747 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24748 else
24749 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24750 fi
24751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24752 hardcode_direct_GCJ=yes
24753 hardcode_minus_L_GCJ=yes
24754 hardcode_shlibpath_var_GCJ=no
24755 ;;
24756
24757 sysv4)
24758 case $host_vendor in
24759 sni)
24760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24761 hardcode_direct_GCJ=yes # is this really true???
24762 ;;
24763 siemens)
24764 ## LD is ld it makes a PLAMLIB
24765 ## CC just makes a GrossModule.
24766 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24767 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24768 hardcode_direct_GCJ=no
24769 ;;
24770 motorola)
24771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24772 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24773 ;;
24774 esac
24775 runpath_var='LD_RUN_PATH'
24776 hardcode_shlibpath_var_GCJ=no
24777 ;;
24778
24779 sysv4.3*)
24780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24781 hardcode_shlibpath_var_GCJ=no
24782 export_dynamic_flag_spec_GCJ='-Bexport'
24783 ;;
24784
24785 sysv4*MP*)
24786 if test -d /usr/nec; then
24787 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24788 hardcode_shlibpath_var_GCJ=no
24789 runpath_var=LD_RUN_PATH
24790 hardcode_runpath_var=yes
24791 ld_shlibs_GCJ=yes
24792 fi
24793 ;;
24794
Reid Spencera773bd52006-08-04 18:18:08 +000024795 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24796 no_undefined_flag_GCJ='${wl}-z,text'
24797 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024798 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024799 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024800
John Criswell47fdd832003-07-14 16:52:07 +000024801 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024802 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24803 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 +000024804 else
Reid Spencera773bd52006-08-04 18:18:08 +000024805 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24806 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 +000024807 fi
John Criswell47fdd832003-07-14 16:52:07 +000024808 ;;
24809
Reid Spencera773bd52006-08-04 18:18:08 +000024810 sysv5* | sco3.2v5* | sco5v6*)
24811 # Note: We can NOT use -z defs as we might desire, because we do not
24812 # link with -lc, and that would cause any symbols used from libc to
24813 # always be unresolved, which means just about no library would
24814 # ever link correctly. If we're not using GNU ld we use -z text
24815 # though, which does catch some bad symbols but isn't as heavy-handed
24816 # as -z defs.
24817 no_undefined_flag_GCJ='${wl}-z,text'
24818 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24819 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024820 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024821 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24822 hardcode_libdir_separator_GCJ=':'
24823 link_all_deplibs_GCJ=yes
24824 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024825 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024826
24827 if test "$GCC" = yes; then
24828 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24829 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24830 else
24831 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24832 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24833 fi
John Criswell47fdd832003-07-14 16:52:07 +000024834 ;;
24835
24836 uts4*)
24837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24838 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24839 hardcode_shlibpath_var_GCJ=no
24840 ;;
24841
24842 *)
24843 ld_shlibs_GCJ=no
24844 ;;
24845 esac
24846 fi
24847
Reid Spencera773bd52006-08-04 18:18:08 +000024848{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24849echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024850test "$ld_shlibs_GCJ" = no && can_build_shared=no
24851
John Criswell47fdd832003-07-14 16:52:07 +000024852#
24853# Do we need to explicitly link libc?
24854#
24855case "x$archive_cmds_need_lc_GCJ" in
24856x|xyes)
24857 # Assume -lc should be added
24858 archive_cmds_need_lc_GCJ=yes
24859
24860 if test "$enable_shared" = yes && test "$GCC" = yes; then
24861 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024862 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024863 # FIXME: we may have to deal with multi-command sequences.
24864 ;;
24865 '$CC '*)
24866 # Test whether the compiler implicitly links with -lc since on some
24867 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24868 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024869 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24870echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024871 $rm conftest*
24872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24873
24874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24875 (eval $ac_compile) 2>&5
24876 ac_status=$?
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } 2>conftest.err; then
24879 soname=conftest
24880 lib=conftest
24881 libobjs=conftest.$ac_objext
24882 deplibs=
24883 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024884 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024885 compiler_flags=-v
24886 linker_flags=-v
24887 verstring=
24888 output_objdir=.
24889 libname=conftest
24890 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24891 allow_undefined_flag_GCJ=
24892 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24893 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }
24897 then
24898 archive_cmds_need_lc_GCJ=no
24899 else
24900 archive_cmds_need_lc_GCJ=yes
24901 fi
24902 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24903 else
24904 cat conftest.err 1>&5
24905 fi
24906 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024907 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24908echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024909 ;;
24910 esac
24911 fi
24912 ;;
24913esac
24914
Reid Spencera773bd52006-08-04 18:18:08 +000024915{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24916echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024917library_names_spec=
24918libname_spec='lib$name'
24919soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024920shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024921postinstall_cmds=
24922postuninstall_cmds=
24923finish_cmds=
24924finish_eval=
24925shlibpath_var=
24926shlibpath_overrides_runpath=unknown
24927version_type=none
24928dynamic_linker="$host_os ld.so"
24929sys_lib_dlsearch_path_spec="/lib /usr/lib"
24930if test "$GCC" = yes; then
24931 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24932 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24933 # if the path contains ";" then we assume it to be the separator
24934 # otherwise default to the standard path separator (i.e. ":") - it is
24935 # assumed that no part of a normal pathname contains ";" but that should
24936 # okay in the real world where ";" in dirpaths is itself problematic.
24937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24938 else
24939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24940 fi
24941else
24942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24943fi
24944need_lib_prefix=unknown
24945hardcode_into_libs=no
24946
24947# when you set need_version to no, make sure it does not cause -set_version
24948# flags to be left without arguments
24949need_version=unknown
24950
24951case $host_os in
24952aix3*)
24953 version_type=linux
24954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24955 shlibpath_var=LIBPATH
24956
24957 # AIX 3 has no versioning support, so we append a major version to the name.
24958 soname_spec='${libname}${release}${shared_ext}$major'
24959 ;;
24960
24961aix4* | aix5*)
24962 version_type=linux
24963 need_lib_prefix=no
24964 need_version=no
24965 hardcode_into_libs=yes
24966 if test "$host_cpu" = ia64; then
24967 # AIX 5 supports IA64
24968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24969 shlibpath_var=LD_LIBRARY_PATH
24970 else
24971 # With GCC up to 2.95.x, collect2 would create an import file
24972 # for dependence libraries. The import file would start with
24973 # the line `#! .'. This would cause the generated library to
24974 # depend on `.', always an invalid library. This was fixed in
24975 # development snapshots of GCC prior to 3.0.
24976 case $host_os in
24977 aix4 | aix4.[01] | aix4.[01].*)
24978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24979 echo ' yes '
24980 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24981 :
24982 else
24983 can_build_shared=no
24984 fi
24985 ;;
24986 esac
24987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24988 # soname into executable. Probably we can add versioning support to
24989 # collect2, so additional links can be useful in future.
24990 if test "$aix_use_runtimelinking" = yes; then
24991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24992 # instead of lib<name>.a to let people know that these are not
24993 # typical AIX shared libraries.
24994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24995 else
24996 # We preserve .a as extension for shared libraries through AIX4.2
24997 # and later when we are not doing run time linking.
24998 library_names_spec='${libname}${release}.a $libname.a'
24999 soname_spec='${libname}${release}${shared_ext}$major'
25000 fi
25001 shlibpath_var=LIBPATH
25002 fi
25003 ;;
25004
25005amigaos*)
25006 library_names_spec='$libname.ixlibrary $libname.a'
25007 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025008 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 +000025009 ;;
25010
25011beos*)
25012 library_names_spec='${libname}${shared_ext}'
25013 dynamic_linker="$host_os ld.so"
25014 shlibpath_var=LIBRARY_PATH
25015 ;;
25016
Reid Spencer2706f8c2004-09-19 23:53:36 +000025017bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025018 version_type=linux
25019 need_version=no
25020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25021 soname_spec='${libname}${release}${shared_ext}$major'
25022 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25023 shlibpath_var=LD_LIBRARY_PATH
25024 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25025 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25026 # the default ld.so.conf also contains /usr/contrib/lib and
25027 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25028 # libtool to hard-code these into programs
25029 ;;
25030
25031cygwin* | mingw* | pw32*)
25032 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025033 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025034 need_version=no
25035 need_lib_prefix=no
25036
25037 case $GCC,$host_os in
25038 yes,cygwin* | yes,mingw* | yes,pw32*)
25039 library_names_spec='$libname.dll.a'
25040 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025041 postinstall_cmds='base_file=`basename \${file}`~
25042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25043 dldir=$destdir/`dirname \$dlpath`~
25044 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025045 $install_prog $dir/$dlname \$dldir/$dlname~
25046 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25048 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025049 $rm \$dlpath'
25050 shlibpath_overrides_runpath=yes
25051
25052 case $host_os in
25053 cygwin*)
25054 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25055 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 +000025056 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025057 ;;
25058 mingw*)
25059 # MinGW DLLs use traditional 'lib' prefix
25060 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25062 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25063 # It is most probably a Windows format PATH printed by
25064 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25065 # path with ; separators, and with drive letters. We can handle the
25066 # drive letters (cygwin fileutils understands them), so leave them,
25067 # especially as we might pass files found there to a mingw objdump,
25068 # which wouldn't understand a cygwinified path. Ahh.
25069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25070 else
25071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25072 fi
25073 ;;
25074 pw32*)
25075 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025076 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 +000025077 ;;
25078 esac
25079 ;;
25080
25081 *)
25082 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25083 ;;
25084 esac
25085 dynamic_linker='Win32 ld.exe'
25086 # FIXME: first we should search . and the directory the executable is in
25087 shlibpath_var=PATH
25088 ;;
25089
25090darwin* | rhapsody*)
25091 dynamic_linker="$host_os dyld"
25092 version_type=darwin
25093 need_lib_prefix=no
25094 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025095 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025096 soname_spec='${libname}${release}${major}$shared_ext'
25097 shlibpath_overrides_runpath=yes
25098 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025099 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025100 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025101 if test "$GCC" = yes; then
25102 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"`
25103 else
25104 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025105 fi
25106 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25107 ;;
25108
25109dgux*)
25110 version_type=linux
25111 need_lib_prefix=no
25112 need_version=no
25113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25114 soname_spec='${libname}${release}${shared_ext}$major'
25115 shlibpath_var=LD_LIBRARY_PATH
25116 ;;
25117
25118freebsd1*)
25119 dynamic_linker=no
25120 ;;
25121
Reid Spencer2706f8c2004-09-19 23:53:36 +000025122kfreebsd*-gnu)
25123 version_type=linux
25124 need_lib_prefix=no
25125 need_version=no
25126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25127 soname_spec='${libname}${release}${shared_ext}$major'
25128 shlibpath_var=LD_LIBRARY_PATH
25129 shlibpath_overrides_runpath=no
25130 hardcode_into_libs=yes
25131 dynamic_linker='GNU ld.so'
25132 ;;
25133
Reid Spencera773bd52006-08-04 18:18:08 +000025134freebsd* | dragonfly*)
25135 # DragonFly does not have aout. When/if they implement a new
25136 # versioning mechanism, adjust this.
25137 if test -x /usr/bin/objformat; then
25138 objformat=`/usr/bin/objformat`
25139 else
25140 case $host_os in
25141 freebsd[123]*) objformat=aout ;;
25142 *) objformat=elf ;;
25143 esac
25144 fi
John Criswell47fdd832003-07-14 16:52:07 +000025145 version_type=freebsd-$objformat
25146 case $version_type in
25147 freebsd-elf*)
25148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25149 need_version=no
25150 need_lib_prefix=no
25151 ;;
25152 freebsd-*)
25153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25154 need_version=yes
25155 ;;
25156 esac
25157 shlibpath_var=LD_LIBRARY_PATH
25158 case $host_os in
25159 freebsd2*)
25160 shlibpath_overrides_runpath=yes
25161 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025162 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025163 shlibpath_overrides_runpath=yes
25164 hardcode_into_libs=yes
25165 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025166 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25167 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025168 shlibpath_overrides_runpath=no
25169 hardcode_into_libs=yes
25170 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025171 freebsd*) # from 4.6 on
25172 shlibpath_overrides_runpath=yes
25173 hardcode_into_libs=yes
25174 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025175 esac
25176 ;;
25177
25178gnu*)
25179 version_type=linux
25180 need_lib_prefix=no
25181 need_version=no
25182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25183 soname_spec='${libname}${release}${shared_ext}$major'
25184 shlibpath_var=LD_LIBRARY_PATH
25185 hardcode_into_libs=yes
25186 ;;
25187
25188hpux9* | hpux10* | hpux11*)
25189 # Give a soname corresponding to the major version so that dld.sl refuses to
25190 # link against other versions.
25191 version_type=sunos
25192 need_lib_prefix=no
25193 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025194 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025195 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025196 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025197 hardcode_into_libs=yes
25198 dynamic_linker="$host_os dld.so"
25199 shlibpath_var=LD_LIBRARY_PATH
25200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25202 soname_spec='${libname}${release}${shared_ext}$major'
25203 if test "X$HPUX_IA64_MODE" = X32; then
25204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25205 else
25206 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25207 fi
25208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25209 ;;
25210 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025211 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025212 hardcode_into_libs=yes
25213 dynamic_linker="$host_os dld.sl"
25214 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25217 soname_spec='${libname}${release}${shared_ext}$major'
25218 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25220 ;;
25221 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025222 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025223 dynamic_linker="$host_os dld.sl"
25224 shlibpath_var=SHLIB_PATH
25225 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25227 soname_spec='${libname}${release}${shared_ext}$major'
25228 ;;
25229 esac
25230 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25231 postinstall_cmds='chmod 555 $lib'
25232 ;;
25233
Reid Spencera773bd52006-08-04 18:18:08 +000025234interix3*)
25235 version_type=linux
25236 need_lib_prefix=no
25237 need_version=no
25238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25239 soname_spec='${libname}${release}${shared_ext}$major'
25240 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25241 shlibpath_var=LD_LIBRARY_PATH
25242 shlibpath_overrides_runpath=no
25243 hardcode_into_libs=yes
25244 ;;
25245
John Criswell47fdd832003-07-14 16:52:07 +000025246irix5* | irix6* | nonstopux*)
25247 case $host_os in
25248 nonstopux*) version_type=nonstopux ;;
25249 *)
25250 if test "$lt_cv_prog_gnu_ld" = yes; then
25251 version_type=linux
25252 else
25253 version_type=irix
25254 fi ;;
25255 esac
25256 need_lib_prefix=no
25257 need_version=no
25258 soname_spec='${libname}${release}${shared_ext}$major'
25259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25260 case $host_os in
25261 irix5* | nonstopux*)
25262 libsuff= shlibsuff=
25263 ;;
25264 *)
25265 case $LD in # libtool.m4 will add one of these switches to LD
25266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25267 libsuff= shlibsuff= libmagic=32-bit;;
25268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25269 libsuff=32 shlibsuff=N32 libmagic=N32;;
25270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25271 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25272 *) libsuff= shlibsuff= libmagic=never-match;;
25273 esac
25274 ;;
25275 esac
25276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25277 shlibpath_overrides_runpath=no
25278 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25279 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25280 hardcode_into_libs=yes
25281 ;;
25282
25283# No shared lib support for Linux oldld, aout, or coff.
25284linux*oldld* | linux*aout* | linux*coff*)
25285 dynamic_linker=no
25286 ;;
25287
25288# This must be Linux ELF.
25289linux*)
25290 version_type=linux
25291 need_lib_prefix=no
25292 need_version=no
25293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25294 soname_spec='${libname}${release}${shared_ext}$major'
25295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25296 shlibpath_var=LD_LIBRARY_PATH
25297 shlibpath_overrides_runpath=no
25298 # This implies no fast_install, which is unacceptable.
25299 # Some rework will be needed to allow for fast_install
25300 # before this can be enabled.
25301 hardcode_into_libs=yes
25302
Reid Spencer2706f8c2004-09-19 23:53:36 +000025303 # Append ld.so.conf contents to the search path
25304 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025305 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 +000025306 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25307 fi
25308
John Criswell47fdd832003-07-14 16:52:07 +000025309 # We used to test for /lib/ld.so.1 and disable shared libraries on
25310 # powerpc, because MkLinux only supported shared libraries with the
25311 # GNU dynamic linker. Since this was broken with cross compilers,
25312 # most powerpc-linux boxes support dynamic linking these days and
25313 # people can always --disable-shared, the test was removed, and we
25314 # assume the GNU/Linux dynamic linker is in use.
25315 dynamic_linker='GNU/Linux ld.so'
25316 ;;
25317
Reid Spencer2706f8c2004-09-19 23:53:36 +000025318knetbsd*-gnu)
25319 version_type=linux
25320 need_lib_prefix=no
25321 need_version=no
25322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25323 soname_spec='${libname}${release}${shared_ext}$major'
25324 shlibpath_var=LD_LIBRARY_PATH
25325 shlibpath_overrides_runpath=no
25326 hardcode_into_libs=yes
25327 dynamic_linker='GNU ld.so'
25328 ;;
25329
John Criswell47fdd832003-07-14 16:52:07 +000025330netbsd*)
25331 version_type=sunos
25332 need_lib_prefix=no
25333 need_version=no
25334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25337 dynamic_linker='NetBSD (a.out) ld.so'
25338 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025340 soname_spec='${libname}${release}${shared_ext}$major'
25341 dynamic_linker='NetBSD ld.elf_so'
25342 fi
25343 shlibpath_var=LD_LIBRARY_PATH
25344 shlibpath_overrides_runpath=yes
25345 hardcode_into_libs=yes
25346 ;;
25347
25348newsos6)
25349 version_type=linux
25350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25351 shlibpath_var=LD_LIBRARY_PATH
25352 shlibpath_overrides_runpath=yes
25353 ;;
25354
Reid Spencer2706f8c2004-09-19 23:53:36 +000025355nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025356 version_type=linux
25357 need_lib_prefix=no
25358 need_version=no
25359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25360 soname_spec='${libname}${release}${shared_ext}$major'
25361 shlibpath_var=LD_LIBRARY_PATH
25362 shlibpath_overrides_runpath=yes
25363 ;;
25364
25365openbsd*)
25366 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025367 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025368 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25370 case $host_os in
25371 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25372 *) need_version=no ;;
25373 esac
John Criswell47fdd832003-07-14 16:52:07 +000025374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25376 shlibpath_var=LD_LIBRARY_PATH
25377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25378 case $host_os in
25379 openbsd2.[89] | openbsd2.[89].*)
25380 shlibpath_overrides_runpath=no
25381 ;;
25382 *)
25383 shlibpath_overrides_runpath=yes
25384 ;;
25385 esac
25386 else
25387 shlibpath_overrides_runpath=yes
25388 fi
25389 ;;
25390
25391os2*)
25392 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025393 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025394 need_lib_prefix=no
25395 library_names_spec='$libname${shared_ext} $libname.a'
25396 dynamic_linker='OS/2 ld.exe'
25397 shlibpath_var=LIBPATH
25398 ;;
25399
25400osf3* | osf4* | osf5*)
25401 version_type=osf
25402 need_lib_prefix=no
25403 need_version=no
25404 soname_spec='${libname}${release}${shared_ext}$major'
25405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25406 shlibpath_var=LD_LIBRARY_PATH
25407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25409 ;;
25410
John Criswell47fdd832003-07-14 16:52:07 +000025411solaris*)
25412 version_type=linux
25413 need_lib_prefix=no
25414 need_version=no
25415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25416 soname_spec='${libname}${release}${shared_ext}$major'
25417 shlibpath_var=LD_LIBRARY_PATH
25418 shlibpath_overrides_runpath=yes
25419 hardcode_into_libs=yes
25420 # ldd complains unless libraries are executable
25421 postinstall_cmds='chmod +x $lib'
25422 ;;
25423
25424sunos4*)
25425 version_type=sunos
25426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25428 shlibpath_var=LD_LIBRARY_PATH
25429 shlibpath_overrides_runpath=yes
25430 if test "$with_gnu_ld" = yes; then
25431 need_lib_prefix=no
25432 fi
25433 need_version=yes
25434 ;;
25435
Reid Spencera773bd52006-08-04 18:18:08 +000025436sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025437 version_type=linux
25438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25439 soname_spec='${libname}${release}${shared_ext}$major'
25440 shlibpath_var=LD_LIBRARY_PATH
25441 case $host_vendor in
25442 sni)
25443 shlibpath_overrides_runpath=no
25444 need_lib_prefix=no
25445 export_dynamic_flag_spec='${wl}-Blargedynsym'
25446 runpath_var=LD_RUN_PATH
25447 ;;
25448 siemens)
25449 need_lib_prefix=no
25450 ;;
25451 motorola)
25452 need_lib_prefix=no
25453 need_version=no
25454 shlibpath_overrides_runpath=no
25455 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25456 ;;
25457 esac
25458 ;;
25459
25460sysv4*MP*)
25461 if test -d /usr/nec ;then
25462 version_type=linux
25463 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25464 soname_spec='$libname${shared_ext}.$major'
25465 shlibpath_var=LD_LIBRARY_PATH
25466 fi
25467 ;;
25468
Reid Spencera773bd52006-08-04 18:18:08 +000025469sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25470 version_type=freebsd-elf
25471 need_lib_prefix=no
25472 need_version=no
25473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25474 soname_spec='${libname}${release}${shared_ext}$major'
25475 shlibpath_var=LD_LIBRARY_PATH
25476 hardcode_into_libs=yes
25477 if test "$with_gnu_ld" = yes; then
25478 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25479 shlibpath_overrides_runpath=no
25480 else
25481 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25482 shlibpath_overrides_runpath=yes
25483 case $host_os in
25484 sco3.2v5*)
25485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25486 ;;
25487 esac
25488 fi
25489 sys_lib_dlsearch_path_spec='/usr/lib'
25490 ;;
25491
John Criswell47fdd832003-07-14 16:52:07 +000025492uts4*)
25493 version_type=linux
25494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25495 soname_spec='${libname}${release}${shared_ext}$major'
25496 shlibpath_var=LD_LIBRARY_PATH
25497 ;;
25498
25499*)
25500 dynamic_linker=no
25501 ;;
25502esac
Reid Spencera773bd52006-08-04 18:18:08 +000025503{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25504echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025505test "$dynamic_linker" = no && can_build_shared=no
25506
Reid Spencera773bd52006-08-04 18:18:08 +000025507variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25508if test "$GCC" = yes; then
25509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25510fi
25511
25512{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25513echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025514hardcode_action_GCJ=
25515if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25516 test -n "$runpath_var_GCJ" || \
25517 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25518
25519 # We can hardcode non-existant directories.
25520 if test "$hardcode_direct_GCJ" != no &&
25521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25522 # have to relink, otherwise we might link with an installed library
25523 # when we should be linking with a yet-to-be-installed one
25524 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25525 test "$hardcode_minus_L_GCJ" != no; then
25526 # Linking always hardcodes the temporary library directory.
25527 hardcode_action_GCJ=relink
25528 else
25529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25530 hardcode_action_GCJ=immediate
25531 fi
25532else
25533 # We cannot hardcode anything, or else we can only hardcode existing
25534 # directories.
25535 hardcode_action_GCJ=unsupported
25536fi
Reid Spencera773bd52006-08-04 18:18:08 +000025537{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25538echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025539
25540if test "$hardcode_action_GCJ" = relink; then
25541 # Fast installation is not supported
25542 enable_fast_install=no
25543elif test "$shlibpath_overrides_runpath" = yes ||
25544 test "$enable_shared" = no; then
25545 # Fast installation is not necessary
25546 enable_fast_install=needless
25547fi
25548
John Criswell47fdd832003-07-14 16:52:07 +000025549
25550# The else clause should only fire when bootstrapping the
25551# libtool distribution, otherwise you forgot to ship ltmain.sh
25552# with your package, and you will get complaints that there are
25553# no rules to generate ltmain.sh.
25554if test -f "$ltmain"; then
25555 # See if we are running on zsh, and set the options which allow our commands through
25556 # without removal of \ escapes.
25557 if test -n "${ZSH_VERSION+set}" ; then
25558 setopt NO_GLOB_SUBST
25559 fi
25560 # Now quote all the things that may contain metacharacters while being
25561 # careful not to overquote the AC_SUBSTed values. We take copies of the
25562 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025563 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 +000025564 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025565 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25566 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25567 deplibs_check_method reload_flag reload_cmds need_locks \
25568 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25569 lt_cv_sys_global_symbol_to_c_name_address \
25570 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25571 old_postinstall_cmds old_postuninstall_cmds \
25572 compiler_GCJ \
25573 CC_GCJ \
25574 LD_GCJ \
25575 lt_prog_compiler_wl_GCJ \
25576 lt_prog_compiler_pic_GCJ \
25577 lt_prog_compiler_static_GCJ \
25578 lt_prog_compiler_no_builtin_flag_GCJ \
25579 export_dynamic_flag_spec_GCJ \
25580 thread_safe_flag_spec_GCJ \
25581 whole_archive_flag_spec_GCJ \
25582 enable_shared_with_static_runtimes_GCJ \
25583 old_archive_cmds_GCJ \
25584 old_archive_from_new_cmds_GCJ \
25585 predep_objects_GCJ \
25586 postdep_objects_GCJ \
25587 predeps_GCJ \
25588 postdeps_GCJ \
25589 compiler_lib_search_path_GCJ \
25590 archive_cmds_GCJ \
25591 archive_expsym_cmds_GCJ \
25592 postinstall_cmds_GCJ \
25593 postuninstall_cmds_GCJ \
25594 old_archive_from_expsyms_cmds_GCJ \
25595 allow_undefined_flag_GCJ \
25596 no_undefined_flag_GCJ \
25597 export_symbols_cmds_GCJ \
25598 hardcode_libdir_flag_spec_GCJ \
25599 hardcode_libdir_flag_spec_ld_GCJ \
25600 hardcode_libdir_separator_GCJ \
25601 hardcode_automatic_GCJ \
25602 module_cmds_GCJ \
25603 module_expsym_cmds_GCJ \
25604 lt_cv_prog_compiler_c_o_GCJ \
25605 exclude_expsyms_GCJ \
25606 include_expsyms_GCJ; do
25607
25608 case $var in
25609 old_archive_cmds_GCJ | \
25610 old_archive_from_new_cmds_GCJ | \
25611 archive_cmds_GCJ | \
25612 archive_expsym_cmds_GCJ | \
25613 module_cmds_GCJ | \
25614 module_expsym_cmds_GCJ | \
25615 old_archive_from_expsyms_cmds_GCJ | \
25616 export_symbols_cmds_GCJ | \
25617 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25618 postinstall_cmds | postuninstall_cmds | \
25619 old_postinstall_cmds | old_postuninstall_cmds | \
25620 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25621 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025622 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 +000025623 ;;
25624 *)
25625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25626 ;;
25627 esac
25628 done
25629
25630 case $lt_echo in
25631 *'\$0 --fallback-echo"')
25632 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25633 ;;
25634 esac
25635
25636cfgfile="$ofile"
25637
25638 cat <<__EOF__ >> "$cfgfile"
25639# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25640
25641# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25642
25643# Shell to use when invoking shell scripts.
25644SHELL=$lt_SHELL
25645
25646# Whether or not to build shared libraries.
25647build_libtool_libs=$enable_shared
25648
25649# Whether or not to build static libraries.
25650build_old_libs=$enable_static
25651
25652# Whether or not to add -lc for building shared libraries.
25653build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25654
25655# Whether or not to disallow shared libs when runtime libs are static
25656allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25657
25658# Whether or not to optimize for fast installation.
25659fast_install=$enable_fast_install
25660
25661# The host system.
25662host_alias=$host_alias
25663host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025664host_os=$host_os
25665
25666# The build system.
25667build_alias=$build_alias
25668build=$build
25669build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025670
25671# An echo program that does not interpret backslashes.
25672echo=$lt_echo
25673
25674# The archiver.
25675AR=$lt_AR
25676AR_FLAGS=$lt_AR_FLAGS
25677
25678# A C compiler.
25679LTCC=$lt_LTCC
25680
Reid Spencera773bd52006-08-04 18:18:08 +000025681# LTCC compiler flags.
25682LTCFLAGS=$lt_LTCFLAGS
25683
John Criswell47fdd832003-07-14 16:52:07 +000025684# A language-specific compiler.
25685CC=$lt_compiler_GCJ
25686
25687# Is the compiler the GNU C compiler?
25688with_gcc=$GCC_GCJ
25689
25690# An ERE matcher.
25691EGREP=$lt_EGREP
25692
25693# The linker used to build libraries.
25694LD=$lt_LD_GCJ
25695
25696# Whether we need hard or soft links.
25697LN_S=$lt_LN_S
25698
25699# A BSD-compatible nm program.
25700NM=$lt_NM
25701
25702# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025703STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025704
25705# Used to examine libraries when file_magic_cmd begins "file"
25706MAGIC_CMD=$MAGIC_CMD
25707
25708# Used on cygwin: DLL creation program.
25709DLLTOOL="$DLLTOOL"
25710
25711# Used on cygwin: object dumper.
25712OBJDUMP="$OBJDUMP"
25713
25714# Used on cygwin: assembler.
25715AS="$AS"
25716
25717# The name of the directory that contains temporary libtool files.
25718objdir=$objdir
25719
25720# How to create reloadable object files.
25721reload_flag=$lt_reload_flag
25722reload_cmds=$lt_reload_cmds
25723
25724# How to pass a linker flag through the compiler.
25725wl=$lt_lt_prog_compiler_wl_GCJ
25726
25727# Object file suffix (normally "o").
25728objext="$ac_objext"
25729
25730# Old archive suffix (normally "a").
25731libext="$libext"
25732
25733# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025734shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025735
25736# Executable file suffix (normally "").
25737exeext="$exeext"
25738
25739# Additional compiler flags for building library objects.
25740pic_flag=$lt_lt_prog_compiler_pic_GCJ
25741pic_mode=$pic_mode
25742
25743# What is the maximum length of a command?
25744max_cmd_len=$lt_cv_sys_max_cmd_len
25745
25746# Does compiler simultaneously support -c and -o options?
25747compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25748
Reid Spencera773bd52006-08-04 18:18:08 +000025749# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025750need_locks=$lt_need_locks
25751
25752# Do we need the lib prefix for modules?
25753need_lib_prefix=$need_lib_prefix
25754
25755# Do we need a version for libraries?
25756need_version=$need_version
25757
25758# Whether dlopen is supported.
25759dlopen_support=$enable_dlopen
25760
25761# Whether dlopen of programs is supported.
25762dlopen_self=$enable_dlopen_self
25763
25764# Whether dlopen of statically linked programs is supported.
25765dlopen_self_static=$enable_dlopen_self_static
25766
25767# Compiler flag to prevent dynamic linking.
25768link_static_flag=$lt_lt_prog_compiler_static_GCJ
25769
25770# Compiler flag to turn off builtin functions.
25771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25772
25773# Compiler flag to allow reflexive dlopens.
25774export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25775
25776# Compiler flag to generate shared objects directly from archives.
25777whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25778
25779# Compiler flag to generate thread-safe objects.
25780thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25781
25782# Library versioning type.
25783version_type=$version_type
25784
25785# Format of library name prefix.
25786libname_spec=$lt_libname_spec
25787
25788# List of archive names. First name is the real one, the rest are links.
25789# The last name is the one that the linker finds with -lNAME.
25790library_names_spec=$lt_library_names_spec
25791
25792# The coded name of the library, if different from the real name.
25793soname_spec=$lt_soname_spec
25794
25795# Commands used to build and install an old-style archive.
25796RANLIB=$lt_RANLIB
25797old_archive_cmds=$lt_old_archive_cmds_GCJ
25798old_postinstall_cmds=$lt_old_postinstall_cmds
25799old_postuninstall_cmds=$lt_old_postuninstall_cmds
25800
25801# Create an old-style archive from a shared archive.
25802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25803
25804# Create a temporary old-style archive to link instead of a shared archive.
25805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25806
25807# Commands used to build and install a shared archive.
25808archive_cmds=$lt_archive_cmds_GCJ
25809archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25810postinstall_cmds=$lt_postinstall_cmds
25811postuninstall_cmds=$lt_postuninstall_cmds
25812
25813# Commands used to build a loadable module (assumed same as above if empty)
25814module_cmds=$lt_module_cmds_GCJ
25815module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25816
25817# Commands to strip libraries.
25818old_striplib=$lt_old_striplib
25819striplib=$lt_striplib
25820
25821# Dependencies to place before the objects being linked to create a
25822# shared library.
25823predep_objects=$lt_predep_objects_GCJ
25824
25825# Dependencies to place after the objects being linked to create a
25826# shared library.
25827postdep_objects=$lt_postdep_objects_GCJ
25828
25829# Dependencies to place before the objects being linked to create a
25830# shared library.
25831predeps=$lt_predeps_GCJ
25832
25833# Dependencies to place after the objects being linked to create a
25834# shared library.
25835postdeps=$lt_postdeps_GCJ
25836
25837# The library search path used internally by the compiler when linking
25838# a shared library.
25839compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25840
25841# Method to check whether dependent libraries are shared objects.
25842deplibs_check_method=$lt_deplibs_check_method
25843
25844# Command to use when deplibs_check_method == file_magic.
25845file_magic_cmd=$lt_file_magic_cmd
25846
25847# Flag that allows shared libraries with undefined symbols to be built.
25848allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25849
25850# Flag that forces no undefined symbols.
25851no_undefined_flag=$lt_no_undefined_flag_GCJ
25852
25853# Commands used to finish a libtool library installation in a directory.
25854finish_cmds=$lt_finish_cmds
25855
25856# Same as above, but a single script fragment to be evaled but not shown.
25857finish_eval=$lt_finish_eval
25858
25859# Take the output of nm and produce a listing of raw symbols and C names.
25860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25861
25862# Transform the output of nm in a proper C declaration
25863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25864
25865# Transform the output of nm in a C name address pair
25866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25867
25868# This is the shared library runtime path variable.
25869runpath_var=$runpath_var
25870
25871# This is the shared library path variable.
25872shlibpath_var=$shlibpath_var
25873
25874# Is shlibpath searched before the hard-coded library search path?
25875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25876
25877# How to hardcode a shared library path into an executable.
25878hardcode_action=$hardcode_action_GCJ
25879
25880# Whether we should hardcode library paths into libraries.
25881hardcode_into_libs=$hardcode_into_libs
25882
25883# Flag to hardcode \$libdir into a binary during linking.
25884# This must work even if \$libdir does not exist.
25885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25886
25887# If ld is used when linking, flag to hardcode \$libdir into
25888# a binary during linking. This must work even if \$libdir does
25889# not exist.
25890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25891
25892# Whether we need a single -rpath flag with a separated argument.
25893hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25894
25895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25896# resulting binary.
25897hardcode_direct=$hardcode_direct_GCJ
25898
25899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25900# resulting binary.
25901hardcode_minus_L=$hardcode_minus_L_GCJ
25902
25903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25904# the resulting binary.
25905hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25906
25907# Set to yes if building a shared library automatically hardcodes DIR into the library
25908# and all subsequent libraries and executables linked against it.
25909hardcode_automatic=$hardcode_automatic_GCJ
25910
25911# Variables whose values should be saved in libtool wrapper scripts and
25912# restored at relink time.
25913variables_saved_for_relink="$variables_saved_for_relink"
25914
25915# Whether libtool must link a program against all its dependency libraries.
25916link_all_deplibs=$link_all_deplibs_GCJ
25917
25918# Compile-time system search path for libraries
25919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25920
25921# Run-time system search path for libraries
25922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25923
25924# Fix the shell variable \$srcfile for the compiler.
25925fix_srcfile_path="$fix_srcfile_path_GCJ"
25926
25927# Set to yes if exported symbols are required.
25928always_export_symbols=$always_export_symbols_GCJ
25929
25930# The commands to list exported symbols.
25931export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25932
25933# The commands to extract the exported symbol list from a shared archive.
25934extract_expsyms_cmds=$lt_extract_expsyms_cmds
25935
25936# Symbols that should not be listed in the preloaded symbols.
25937exclude_expsyms=$lt_exclude_expsyms_GCJ
25938
25939# Symbols that must always be exported.
25940include_expsyms=$lt_include_expsyms_GCJ
25941
25942# ### END LIBTOOL TAG CONFIG: $tagname
25943
25944__EOF__
25945
25946
25947else
25948 # If there is no Makefile yet, we rely on a make rule to execute
25949 # `config.status --recheck' to rerun these tests and create the
25950 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25952 if test -f "$ltmain_in"; then
25953 test -f Makefile && make "$ltmain"
25954 fi
John Criswell47fdd832003-07-14 16:52:07 +000025955fi
25956
25957
25958ac_ext=c
25959ac_cpp='$CPP $CPPFLAGS'
25960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962ac_compiler_gnu=$ac_cv_c_compiler_gnu
25963
25964CC="$lt_save_CC"
25965
25966 else
25967 tagname=""
25968 fi
25969 ;;
25970
25971 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025972 ac_ext=c
25973ac_cpp='$CPP $CPPFLAGS'
25974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25976ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025977
25978
25979# Source file extension for RC test sources.
25980ac_ext=rc
25981
25982# Object file extension for compiled RC test sources.
25983objext=o
25984objext_RC=$objext
25985
25986# Code to be used in simple compile tests
25987lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25988
25989# Code to be used in simple link tests
25990lt_simple_link_test_code="$lt_simple_compile_test_code"
25991
25992# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25993
25994# If no C compiler was specified, use CC.
25995LTCC=${LTCC-"$CC"}
25996
Reid Spencera773bd52006-08-04 18:18:08 +000025997# If no C compiler flags were specified, use CFLAGS.
25998LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25999
John Criswell47fdd832003-07-14 16:52:07 +000026000# Allow CC to be a program name with arguments.
26001compiler=$CC
26002
26003
Reid Spencera773bd52006-08-04 18:18:08 +000026004# save warnings/boilerplate of simple test code
26005ac_outfile=conftest.$ac_objext
26006printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26007eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26008_lt_compiler_boilerplate=`cat conftest.err`
26009$rm conftest*
26010
26011ac_outfile=conftest.$ac_objext
26012printf "$lt_simple_link_test_code" >conftest.$ac_ext
26013eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26014_lt_linker_boilerplate=`cat conftest.err`
26015$rm conftest*
26016
26017
John Criswell47fdd832003-07-14 16:52:07 +000026018# Allow CC to be a program name with arguments.
26019lt_save_CC="$CC"
26020CC=${RC-"windres"}
26021compiler=$CC
26022compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026023for cc_temp in $compiler""; do
26024 case $cc_temp in
26025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26027 \-*) ;;
26028 *) break;;
26029 esac
26030done
26031cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26032
John Criswell47fdd832003-07-14 16:52:07 +000026033lt_cv_prog_compiler_c_o_RC=yes
26034
26035# The else clause should only fire when bootstrapping the
26036# libtool distribution, otherwise you forgot to ship ltmain.sh
26037# with your package, and you will get complaints that there are
26038# no rules to generate ltmain.sh.
26039if test -f "$ltmain"; then
26040 # See if we are running on zsh, and set the options which allow our commands through
26041 # without removal of \ escapes.
26042 if test -n "${ZSH_VERSION+set}" ; then
26043 setopt NO_GLOB_SUBST
26044 fi
26045 # Now quote all the things that may contain metacharacters while being
26046 # careful not to overquote the AC_SUBSTed values. We take copies of the
26047 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026048 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 +000026049 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026050 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26051 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26052 deplibs_check_method reload_flag reload_cmds need_locks \
26053 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26054 lt_cv_sys_global_symbol_to_c_name_address \
26055 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26056 old_postinstall_cmds old_postuninstall_cmds \
26057 compiler_RC \
26058 CC_RC \
26059 LD_RC \
26060 lt_prog_compiler_wl_RC \
26061 lt_prog_compiler_pic_RC \
26062 lt_prog_compiler_static_RC \
26063 lt_prog_compiler_no_builtin_flag_RC \
26064 export_dynamic_flag_spec_RC \
26065 thread_safe_flag_spec_RC \
26066 whole_archive_flag_spec_RC \
26067 enable_shared_with_static_runtimes_RC \
26068 old_archive_cmds_RC \
26069 old_archive_from_new_cmds_RC \
26070 predep_objects_RC \
26071 postdep_objects_RC \
26072 predeps_RC \
26073 postdeps_RC \
26074 compiler_lib_search_path_RC \
26075 archive_cmds_RC \
26076 archive_expsym_cmds_RC \
26077 postinstall_cmds_RC \
26078 postuninstall_cmds_RC \
26079 old_archive_from_expsyms_cmds_RC \
26080 allow_undefined_flag_RC \
26081 no_undefined_flag_RC \
26082 export_symbols_cmds_RC \
26083 hardcode_libdir_flag_spec_RC \
26084 hardcode_libdir_flag_spec_ld_RC \
26085 hardcode_libdir_separator_RC \
26086 hardcode_automatic_RC \
26087 module_cmds_RC \
26088 module_expsym_cmds_RC \
26089 lt_cv_prog_compiler_c_o_RC \
26090 exclude_expsyms_RC \
26091 include_expsyms_RC; do
26092
26093 case $var in
26094 old_archive_cmds_RC | \
26095 old_archive_from_new_cmds_RC | \
26096 archive_cmds_RC | \
26097 archive_expsym_cmds_RC | \
26098 module_cmds_RC | \
26099 module_expsym_cmds_RC | \
26100 old_archive_from_expsyms_cmds_RC | \
26101 export_symbols_cmds_RC | \
26102 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26103 postinstall_cmds | postuninstall_cmds | \
26104 old_postinstall_cmds | old_postuninstall_cmds | \
26105 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26106 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026107 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 +000026108 ;;
26109 *)
26110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26111 ;;
26112 esac
26113 done
26114
26115 case $lt_echo in
26116 *'\$0 --fallback-echo"')
26117 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26118 ;;
26119 esac
26120
26121cfgfile="$ofile"
26122
26123 cat <<__EOF__ >> "$cfgfile"
26124# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26125
26126# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26127
26128# Shell to use when invoking shell scripts.
26129SHELL=$lt_SHELL
26130
26131# Whether or not to build shared libraries.
26132build_libtool_libs=$enable_shared
26133
26134# Whether or not to build static libraries.
26135build_old_libs=$enable_static
26136
26137# Whether or not to add -lc for building shared libraries.
26138build_libtool_need_lc=$archive_cmds_need_lc_RC
26139
26140# Whether or not to disallow shared libs when runtime libs are static
26141allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26142
26143# Whether or not to optimize for fast installation.
26144fast_install=$enable_fast_install
26145
26146# The host system.
26147host_alias=$host_alias
26148host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026149host_os=$host_os
26150
26151# The build system.
26152build_alias=$build_alias
26153build=$build
26154build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026155
26156# An echo program that does not interpret backslashes.
26157echo=$lt_echo
26158
26159# The archiver.
26160AR=$lt_AR
26161AR_FLAGS=$lt_AR_FLAGS
26162
26163# A C compiler.
26164LTCC=$lt_LTCC
26165
Reid Spencera773bd52006-08-04 18:18:08 +000026166# LTCC compiler flags.
26167LTCFLAGS=$lt_LTCFLAGS
26168
John Criswell47fdd832003-07-14 16:52:07 +000026169# A language-specific compiler.
26170CC=$lt_compiler_RC
26171
26172# Is the compiler the GNU C compiler?
26173with_gcc=$GCC_RC
26174
26175# An ERE matcher.
26176EGREP=$lt_EGREP
26177
26178# The linker used to build libraries.
26179LD=$lt_LD_RC
26180
26181# Whether we need hard or soft links.
26182LN_S=$lt_LN_S
26183
26184# A BSD-compatible nm program.
26185NM=$lt_NM
26186
26187# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026188STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026189
26190# Used to examine libraries when file_magic_cmd begins "file"
26191MAGIC_CMD=$MAGIC_CMD
26192
26193# Used on cygwin: DLL creation program.
26194DLLTOOL="$DLLTOOL"
26195
26196# Used on cygwin: object dumper.
26197OBJDUMP="$OBJDUMP"
26198
26199# Used on cygwin: assembler.
26200AS="$AS"
26201
26202# The name of the directory that contains temporary libtool files.
26203objdir=$objdir
26204
26205# How to create reloadable object files.
26206reload_flag=$lt_reload_flag
26207reload_cmds=$lt_reload_cmds
26208
26209# How to pass a linker flag through the compiler.
26210wl=$lt_lt_prog_compiler_wl_RC
26211
26212# Object file suffix (normally "o").
26213objext="$ac_objext"
26214
26215# Old archive suffix (normally "a").
26216libext="$libext"
26217
26218# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026219shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026220
26221# Executable file suffix (normally "").
26222exeext="$exeext"
26223
26224# Additional compiler flags for building library objects.
26225pic_flag=$lt_lt_prog_compiler_pic_RC
26226pic_mode=$pic_mode
26227
26228# What is the maximum length of a command?
26229max_cmd_len=$lt_cv_sys_max_cmd_len
26230
26231# Does compiler simultaneously support -c and -o options?
26232compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26233
Reid Spencera773bd52006-08-04 18:18:08 +000026234# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026235need_locks=$lt_need_locks
26236
26237# Do we need the lib prefix for modules?
26238need_lib_prefix=$need_lib_prefix
26239
26240# Do we need a version for libraries?
26241need_version=$need_version
26242
26243# Whether dlopen is supported.
26244dlopen_support=$enable_dlopen
26245
26246# Whether dlopen of programs is supported.
26247dlopen_self=$enable_dlopen_self
26248
26249# Whether dlopen of statically linked programs is supported.
26250dlopen_self_static=$enable_dlopen_self_static
26251
26252# Compiler flag to prevent dynamic linking.
26253link_static_flag=$lt_lt_prog_compiler_static_RC
26254
26255# Compiler flag to turn off builtin functions.
26256no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26257
26258# Compiler flag to allow reflexive dlopens.
26259export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26260
26261# Compiler flag to generate shared objects directly from archives.
26262whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26263
26264# Compiler flag to generate thread-safe objects.
26265thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26266
26267# Library versioning type.
26268version_type=$version_type
26269
26270# Format of library name prefix.
26271libname_spec=$lt_libname_spec
26272
26273# List of archive names. First name is the real one, the rest are links.
26274# The last name is the one that the linker finds with -lNAME.
26275library_names_spec=$lt_library_names_spec
26276
26277# The coded name of the library, if different from the real name.
26278soname_spec=$lt_soname_spec
26279
26280# Commands used to build and install an old-style archive.
26281RANLIB=$lt_RANLIB
26282old_archive_cmds=$lt_old_archive_cmds_RC
26283old_postinstall_cmds=$lt_old_postinstall_cmds
26284old_postuninstall_cmds=$lt_old_postuninstall_cmds
26285
26286# Create an old-style archive from a shared archive.
26287old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26288
26289# Create a temporary old-style archive to link instead of a shared archive.
26290old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26291
26292# Commands used to build and install a shared archive.
26293archive_cmds=$lt_archive_cmds_RC
26294archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26295postinstall_cmds=$lt_postinstall_cmds
26296postuninstall_cmds=$lt_postuninstall_cmds
26297
26298# Commands used to build a loadable module (assumed same as above if empty)
26299module_cmds=$lt_module_cmds_RC
26300module_expsym_cmds=$lt_module_expsym_cmds_RC
26301
26302# Commands to strip libraries.
26303old_striplib=$lt_old_striplib
26304striplib=$lt_striplib
26305
26306# Dependencies to place before the objects being linked to create a
26307# shared library.
26308predep_objects=$lt_predep_objects_RC
26309
26310# Dependencies to place after the objects being linked to create a
26311# shared library.
26312postdep_objects=$lt_postdep_objects_RC
26313
26314# Dependencies to place before the objects being linked to create a
26315# shared library.
26316predeps=$lt_predeps_RC
26317
26318# Dependencies to place after the objects being linked to create a
26319# shared library.
26320postdeps=$lt_postdeps_RC
26321
26322# The library search path used internally by the compiler when linking
26323# a shared library.
26324compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26325
26326# Method to check whether dependent libraries are shared objects.
26327deplibs_check_method=$lt_deplibs_check_method
26328
26329# Command to use when deplibs_check_method == file_magic.
26330file_magic_cmd=$lt_file_magic_cmd
26331
26332# Flag that allows shared libraries with undefined symbols to be built.
26333allow_undefined_flag=$lt_allow_undefined_flag_RC
26334
26335# Flag that forces no undefined symbols.
26336no_undefined_flag=$lt_no_undefined_flag_RC
26337
26338# Commands used to finish a libtool library installation in a directory.
26339finish_cmds=$lt_finish_cmds
26340
26341# Same as above, but a single script fragment to be evaled but not shown.
26342finish_eval=$lt_finish_eval
26343
26344# Take the output of nm and produce a listing of raw symbols and C names.
26345global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26346
26347# Transform the output of nm in a proper C declaration
26348global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26349
26350# Transform the output of nm in a C name address pair
26351global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26352
26353# This is the shared library runtime path variable.
26354runpath_var=$runpath_var
26355
26356# This is the shared library path variable.
26357shlibpath_var=$shlibpath_var
26358
26359# Is shlibpath searched before the hard-coded library search path?
26360shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26361
26362# How to hardcode a shared library path into an executable.
26363hardcode_action=$hardcode_action_RC
26364
26365# Whether we should hardcode library paths into libraries.
26366hardcode_into_libs=$hardcode_into_libs
26367
26368# Flag to hardcode \$libdir into a binary during linking.
26369# This must work even if \$libdir does not exist.
26370hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26371
26372# If ld is used when linking, flag to hardcode \$libdir into
26373# a binary during linking. This must work even if \$libdir does
26374# not exist.
26375hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26376
26377# Whether we need a single -rpath flag with a separated argument.
26378hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26379
26380# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26381# resulting binary.
26382hardcode_direct=$hardcode_direct_RC
26383
26384# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26385# resulting binary.
26386hardcode_minus_L=$hardcode_minus_L_RC
26387
26388# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26389# the resulting binary.
26390hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26391
26392# Set to yes if building a shared library automatically hardcodes DIR into the library
26393# and all subsequent libraries and executables linked against it.
26394hardcode_automatic=$hardcode_automatic_RC
26395
26396# Variables whose values should be saved in libtool wrapper scripts and
26397# restored at relink time.
26398variables_saved_for_relink="$variables_saved_for_relink"
26399
26400# Whether libtool must link a program against all its dependency libraries.
26401link_all_deplibs=$link_all_deplibs_RC
26402
26403# Compile-time system search path for libraries
26404sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26405
26406# Run-time system search path for libraries
26407sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26408
26409# Fix the shell variable \$srcfile for the compiler.
26410fix_srcfile_path="$fix_srcfile_path_RC"
26411
26412# Set to yes if exported symbols are required.
26413always_export_symbols=$always_export_symbols_RC
26414
26415# The commands to list exported symbols.
26416export_symbols_cmds=$lt_export_symbols_cmds_RC
26417
26418# The commands to extract the exported symbol list from a shared archive.
26419extract_expsyms_cmds=$lt_extract_expsyms_cmds
26420
26421# Symbols that should not be listed in the preloaded symbols.
26422exclude_expsyms=$lt_exclude_expsyms_RC
26423
26424# Symbols that must always be exported.
26425include_expsyms=$lt_include_expsyms_RC
26426
26427# ### END LIBTOOL TAG CONFIG: $tagname
26428
26429__EOF__
26430
26431
26432else
26433 # If there is no Makefile yet, we rely on a make rule to execute
26434 # `config.status --recheck' to rerun these tests and create the
26435 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026436 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26437 if test -f "$ltmain_in"; then
26438 test -f Makefile && make "$ltmain"
26439 fi
John Criswell47fdd832003-07-14 16:52:07 +000026440fi
26441
26442
26443ac_ext=c
26444ac_cpp='$CPP $CPPFLAGS'
26445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26447ac_compiler_gnu=$ac_cv_c_compiler_gnu
26448
26449CC="$lt_save_CC"
26450
26451 ;;
26452
26453 *)
26454 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26455echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26456 { (exit 1); exit 1; }; }
26457 ;;
26458 esac
26459
26460 # Append the new tag name to the list of available tags.
26461 if test -n "$tagname" ; then
26462 available_tags="$available_tags $tagname"
26463 fi
26464 fi
26465 done
26466 IFS="$lt_save_ifs"
26467
26468 # Now substitute the updated list of available tags.
26469 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26470 mv "${ofile}T" "$ofile"
26471 chmod +x "$ofile"
26472 else
26473 rm -f "${ofile}T"
26474 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26475echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26476 { (exit 1); exit 1; }; }
26477 fi
26478fi
John Criswell7a73b802003-06-30 21:59:07 +000026479
26480
26481
26482# This can be used to rebuild libtool when needed
26483LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26484
26485# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026486LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026487
26488# Prevent multiple expansion
26489
26490
26491
John Criswell47fdd832003-07-14 16:52:07 +000026492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026509
Reid Spencer582a23c2004-12-29 07:07:57 +000026510if test "$lt_cv_dlopen_self" = "yes" ; then
26511
26512cat >>confdefs.h <<\_ACEOF
26513#define CAN_DLOPEN_SELF 1
26514_ACEOF
26515
26516fi
26517
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026518etags_version=`$ETAGS --version 2>&1`
26519case "$etags_version" in
26520 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26521 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26522 *) ETAGSFLAGS="" ;;
26523esac
26524ETAGSFLAGS=$ETAGSFLAGS
26525
26526
Reid Spencer7931a782004-12-27 06:15:02 +000026527if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026528 LLVMGCC="llvm-gcc${EXEEXT}"
26529 LLVMGXX="llvm-g++${EXEEXT}"
26530 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26531set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026534if test "${ac_cv_path_LLVMGCC+set}" = set; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26536else
26537 case $LLVMGCC in
26538 [\\/]* | ?:[\\/]*)
26539 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26540 ;;
26541 *)
26542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26543for as_dir in $PATH
26544do
26545 IFS=$as_save_IFS
26546 test -z "$as_dir" && as_dir=.
26547 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026548 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 +000026549 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26551 break 2
26552 fi
26553done
26554done
Reid Spencera773bd52006-08-04 18:18:08 +000026555IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026556
Reid Spencer59473af2004-12-25 07:31:29 +000026557 ;;
26558esac
26559fi
26560LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026561if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026562 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26563echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026564else
Reid Spencera773bd52006-08-04 18:18:08 +000026565 { echo "$as_me:$LINENO: result: no" >&5
26566echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026567fi
26568
Reid Spencera773bd52006-08-04 18:18:08 +000026569
Reid Spencerc84492c2005-06-02 22:34:49 +000026570 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26571set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026574if test "${ac_cv_path_LLVMGXX+set}" = set; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26576else
26577 case $LLVMGXX in
26578 [\\/]* | ?:[\\/]*)
26579 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26580 ;;
26581 *)
26582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26583for as_dir in $PATH
26584do
26585 IFS=$as_save_IFS
26586 test -z "$as_dir" && as_dir=.
26587 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026588 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 +000026589 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26591 break 2
26592 fi
26593done
26594done
Reid Spencera773bd52006-08-04 18:18:08 +000026595IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026596
Reid Spencer59473af2004-12-25 07:31:29 +000026597 ;;
26598esac
26599fi
26600LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026601if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026602 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26603echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026604else
Reid Spencera773bd52006-08-04 18:18:08 +000026605 { echo "$as_me:$LINENO: result: no" >&5
26606echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026607fi
26608
Reid Spencera773bd52006-08-04 18:18:08 +000026609
Reid Spencer59473af2004-12-25 07:31:29 +000026610else
Reid Spencerc84492c2005-06-02 22:34:49 +000026611 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26612 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026613 LLVMGCC=$LLVMGCC
26614
26615 LLVMGXX=$LLVMGXX
26616
26617fi
26618
Reid Spencera773bd52006-08-04 18:18:08 +000026619{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26620echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026621
Reid Spencer86901802004-12-08 23:07:27 +000026622ICC=no
26623IXX=no
26624case $CC in
26625 icc*|icpc*)
26626 ICC=yes
26627 IXX=yes
26628 ;;
26629 *)
26630 ;;
26631esac
26632
Duraid Madina937c60a2006-02-15 07:57:42 +000026633if test "$GCC" != "yes" && test "$ICC" != "yes"
26634then
26635 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26636echo "$as_me: error: gcc|icc required but not found" >&2;}
26637 { (exit 1); exit 1; }; }
26638fi
26639
26640if test "$GXX" != "yes" && test "$IXX" != "yes"
26641then
26642 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26643echo "$as_me: error: g++|icc required but not found" >&2;}
26644 { (exit 1); exit 1; }; }
26645fi
26646
Reid Spencer86901802004-12-08 23:07:27 +000026647if test "$GCC" = "yes"
26648then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026649 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026650 if test "$gccmajor" -lt "3"
26651 then
26652 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026653echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26654 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026655 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026656fi
26657
26658if test -z "$llvm_cv_gnu_make_command"
26659then
26660 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26661echo "$as_me: error: GNU Make required but not found" >&2;}
26662 { (exit 1); exit 1; }; }
26663fi
26664
Reid Spencera773bd52006-08-04 18:18:08 +000026665{ echo "$as_me:$LINENO: result: ok" >&5
26666echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026667
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026668
John Criswell7a73b802003-06-30 21:59:07 +000026669
Reid Spencera773bd52006-08-04 18:18:08 +000026670{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26671echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026672if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26674else
26675 ac_check_lib_save_LIBS=$LIBS
26676LIBS="-lelf $LIBS"
26677cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026678/* confdefs.h. */
26679_ACEOF
26680cat confdefs.h >>conftest.$ac_ext
26681cat >>conftest.$ac_ext <<_ACEOF
26682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026683
Reid Spencera773bd52006-08-04 18:18:08 +000026684/* Override any GCC internal prototype to avoid an error.
26685 Use char because int might match the return type of a GCC
26686 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026687#ifdef __cplusplus
26688extern "C"
26689#endif
John Criswell7a73b802003-06-30 21:59:07 +000026690char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026691int
26692main ()
26693{
Reid Spencera773bd52006-08-04 18:18:08 +000026694return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026695 ;
26696 return 0;
26697}
26698_ACEOF
26699rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026700if { (ac_try="$ac_link"
26701case "(($ac_try" in
26702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703 *) ac_try_echo=$ac_try;;
26704esac
26705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026708 grep -v '^ *+' conftest.er1 >conftest.err
26709 rm -f conftest.er1
26710 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26714 { (case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26717esac
26718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026724 { (case "(($ac_try" in
26725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726 *) ac_try_echo=$ac_try;;
26727esac
26728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; }; then
26733 ac_cv_lib_elf_elf_begin=yes
26734else
26735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026736sed 's/^/| /' conftest.$ac_ext >&5
26737
Reid Spencera773bd52006-08-04 18:18:08 +000026738 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026739fi
Reid Spencera773bd52006-08-04 18:18:08 +000026740
26741rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026742 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026743LIBS=$ac_check_lib_save_LIBS
26744fi
Reid Spencera773bd52006-08-04 18:18:08 +000026745{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26746echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026747if test $ac_cv_lib_elf_elf_begin = yes; then
26748 cat >>confdefs.h <<_ACEOF
26749#define HAVE_LIBELF 1
26750_ACEOF
26751
26752 LIBS="-lelf $LIBS"
26753
26754fi
26755
26756
Reid Spencera773bd52006-08-04 18:18:08 +000026757{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26758echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026759if test "${ac_cv_lib_m_sin+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26761else
26762 ac_check_lib_save_LIBS=$LIBS
26763LIBS="-lm $LIBS"
26764cat >conftest.$ac_ext <<_ACEOF
26765/* confdefs.h. */
26766_ACEOF
26767cat confdefs.h >>conftest.$ac_ext
26768cat >>conftest.$ac_ext <<_ACEOF
26769/* end confdefs.h. */
26770
Reid Spencera773bd52006-08-04 18:18:08 +000026771/* Override any GCC internal prototype to avoid an error.
26772 Use char because int might match the return type of a GCC
26773 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026774#ifdef __cplusplus
26775extern "C"
26776#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026777char sin ();
26778int
26779main ()
26780{
Reid Spencera773bd52006-08-04 18:18:08 +000026781return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026782 ;
26783 return 0;
26784}
26785_ACEOF
26786rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026787if { (ac_try="$ac_link"
26788case "(($ac_try" in
26789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790 *) ac_try_echo=$ac_try;;
26791esac
26792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026794 ac_status=$?
26795 grep -v '^ *+' conftest.er1 >conftest.err
26796 rm -f conftest.er1
26797 cat conftest.err >&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26801 { (case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26804esac
26805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026807 ac_status=$?
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); }; } &&
26810 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026811 { (case "(($ac_try" in
26812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813 *) ac_try_echo=$ac_try;;
26814esac
26815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026817 ac_status=$?
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; }; then
26820 ac_cv_lib_m_sin=yes
26821else
26822 echo "$as_me: failed program was:" >&5
26823sed 's/^/| /' conftest.$ac_ext >&5
26824
Reid Spencera773bd52006-08-04 18:18:08 +000026825 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026826fi
Reid Spencera773bd52006-08-04 18:18:08 +000026827
26828rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026829 conftest$ac_exeext conftest.$ac_ext
26830LIBS=$ac_check_lib_save_LIBS
26831fi
Reid Spencera773bd52006-08-04 18:18:08 +000026832{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26833echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026834if test $ac_cv_lib_m_sin = yes; then
26835 cat >>confdefs.h <<_ACEOF
26836#define HAVE_LIBM 1
26837_ACEOF
26838
26839 LIBS="-lm $LIBS"
26840
26841fi
26842
Reid Spencer484fc8e2006-06-01 16:55:59 +000026843if test "$llvm_cv_os_type" == "MingW" ; then
26844
Reid Spencera773bd52006-08-04 18:18:08 +000026845{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26846echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026847if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026848 echo $ECHO_N "(cached) $ECHO_C" >&6
26849else
26850 ac_check_lib_save_LIBS=$LIBS
26851LIBS="-limagehlp $LIBS"
26852cat >conftest.$ac_ext <<_ACEOF
26853/* confdefs.h. */
26854_ACEOF
26855cat confdefs.h >>conftest.$ac_ext
26856cat >>conftest.$ac_ext <<_ACEOF
26857/* end confdefs.h. */
26858
Reid Spencer48fdf912006-06-01 19:03:21 +000026859
Reid Spencer484fc8e2006-06-01 16:55:59 +000026860int
26861main ()
26862{
Reid Spencera773bd52006-08-04 18:18:08 +000026863return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026864 ;
26865 return 0;
26866}
26867_ACEOF
26868rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026869if { (ac_try="$ac_link"
26870case "(($ac_try" in
26871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26872 *) ac_try_echo=$ac_try;;
26873esac
26874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26875 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026876 ac_status=$?
26877 grep -v '^ *+' conftest.er1 >conftest.err
26878 rm -f conftest.er1
26879 cat conftest.err >&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26883 { (case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26886esac
26887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026889 ac_status=$?
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; } &&
26892 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026893 { (case "(($ac_try" in
26894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26895 *) ac_try_echo=$ac_try;;
26896esac
26897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26898 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026899 ac_status=$?
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026902 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026903else
26904 echo "$as_me: failed program was:" >&5
26905sed 's/^/| /' conftest.$ac_ext >&5
26906
Reid Spencera773bd52006-08-04 18:18:08 +000026907 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026908fi
Reid Spencera773bd52006-08-04 18:18:08 +000026909
26910rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026911 conftest$ac_exeext conftest.$ac_ext
26912LIBS=$ac_check_lib_save_LIBS
26913fi
Reid Spencera773bd52006-08-04 18:18:08 +000026914{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26915echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026916if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026917 cat >>confdefs.h <<_ACEOF
26918#define HAVE_LIBIMAGEHLP 1
26919_ACEOF
26920
26921 LIBS="-limagehlp $LIBS"
26922
26923fi
26924
26925
Reid Spencera773bd52006-08-04 18:18:08 +000026926{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26927echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026928if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026929 echo $ECHO_N "(cached) $ECHO_C" >&6
26930else
26931 ac_check_lib_save_LIBS=$LIBS
26932LIBS="-lpsapi $LIBS"
26933cat >conftest.$ac_ext <<_ACEOF
26934/* confdefs.h. */
26935_ACEOF
26936cat confdefs.h >>conftest.$ac_ext
26937cat >>conftest.$ac_ext <<_ACEOF
26938/* end confdefs.h. */
26939
Reid Spencer48fdf912006-06-01 19:03:21 +000026940
Reid Spencer484fc8e2006-06-01 16:55:59 +000026941int
26942main ()
26943{
Reid Spencera773bd52006-08-04 18:18:08 +000026944return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026945 ;
26946 return 0;
26947}
26948_ACEOF
26949rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026950if { (ac_try="$ac_link"
26951case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26954esac
26955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026957 ac_status=$?
26958 grep -v '^ *+' conftest.er1 >conftest.err
26959 rm -f conftest.er1
26960 cat conftest.err >&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26964 { (case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26967esac
26968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; } &&
26973 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026974 { (case "(($ac_try" in
26975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976 *) ac_try_echo=$ac_try;;
26977esac
26978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026980 ac_status=$?
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026983 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026984else
26985 echo "$as_me: failed program was:" >&5
26986sed 's/^/| /' conftest.$ac_ext >&5
26987
Reid Spencera773bd52006-08-04 18:18:08 +000026988 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026989fi
Reid Spencera773bd52006-08-04 18:18:08 +000026990
26991rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026992 conftest$ac_exeext conftest.$ac_ext
26993LIBS=$ac_check_lib_save_LIBS
26994fi
Reid Spencera773bd52006-08-04 18:18:08 +000026995{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26996echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026997if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026998 cat >>confdefs.h <<_ACEOF
26999#define HAVE_LIBPSAPI 1
27000_ACEOF
27001
27002 LIBS="-lpsapi $LIBS"
27003
27004fi
27005
27006fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027007
Reid Spencera773bd52006-08-04 18:18:08 +000027008{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27009echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027010if test "${ac_cv_search_lt_dlopen+set}" = set; then
27011 echo $ECHO_N "(cached) $ECHO_C" >&6
27012else
27013 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027014cat >conftest.$ac_ext <<_ACEOF
27015/* confdefs.h. */
27016_ACEOF
27017cat confdefs.h >>conftest.$ac_ext
27018cat >>conftest.$ac_ext <<_ACEOF
27019/* end confdefs.h. */
27020
Reid Spencera773bd52006-08-04 18:18:08 +000027021/* Override any GCC internal prototype to avoid an error.
27022 Use char because int might match the return type of a GCC
27023 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027024#ifdef __cplusplus
27025extern "C"
27026#endif
Reid Spencer17795972004-11-18 09:47:37 +000027027char lt_dlopen ();
27028int
27029main ()
27030{
Reid Spencera773bd52006-08-04 18:18:08 +000027031return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027032 ;
27033 return 0;
27034}
27035_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027036for ac_lib in '' ltdl; do
27037 if test -z "$ac_lib"; then
27038 ac_res="none required"
27039 else
27040 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027042 fi
27043 rm -f conftest.$ac_objext conftest$ac_exeext
27044if { (ac_try="$ac_link"
27045case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27048esac
27049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027051 ac_status=$?
27052 grep -v '^ *+' conftest.er1 >conftest.err
27053 rm -f conftest.er1
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27058 { (case "(($ac_try" in
27059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060 *) ac_try_echo=$ac_try;;
27061esac
27062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027064 ac_status=$?
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; } &&
27067 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027068 { (case "(($ac_try" in
27069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070 *) ac_try_echo=$ac_try;;
27071esac
27072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027074 ac_status=$?
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027077 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027078else
27079 echo "$as_me: failed program was:" >&5
27080sed 's/^/| /' conftest.$ac_ext >&5
27081
Reid Spencera773bd52006-08-04 18:18:08 +000027082
Reid Spencer17795972004-11-18 09:47:37 +000027083fi
Reid Spencera773bd52006-08-04 18:18:08 +000027084
27085rm -f core conftest.err conftest.$ac_objext \
27086 conftest$ac_exeext
27087 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27088 break
Reid Spencer17795972004-11-18 09:47:37 +000027089fi
Reid Spencera773bd52006-08-04 18:18:08 +000027090done
27091if test "${ac_cv_search_lt_dlopen+set}" = set; then
27092 :
27093else
27094 ac_cv_search_lt_dlopen=no
27095fi
27096rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027097LIBS=$ac_func_search_save_LIBS
27098fi
Reid Spencera773bd52006-08-04 18:18:08 +000027099{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27100echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27101ac_res=$ac_cv_search_lt_dlopen
27102if test "$ac_res" != no; then
27103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027104
27105cat >>confdefs.h <<\_ACEOF
27106#define HAVE_LT_DLOPEN 1
27107_ACEOF
27108
27109else
27110 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27111 not be available" >&5
27112echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27113 not be available" >&2;}
27114fi
27115
27116
Reid Spencera773bd52006-08-04 18:18:08 +000027117{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27118echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027119if test "${ac_cv_search_dlopen+set}" = set; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27121else
27122 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027123cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027124/* confdefs.h. */
27125_ACEOF
27126cat confdefs.h >>conftest.$ac_ext
27127cat >>conftest.$ac_ext <<_ACEOF
27128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027129
Reid Spencera773bd52006-08-04 18:18:08 +000027130/* Override any GCC internal prototype to avoid an error.
27131 Use char because int might match the return type of a GCC
27132 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027133#ifdef __cplusplus
27134extern "C"
27135#endif
John Criswell7a73b802003-06-30 21:59:07 +000027136char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027137int
27138main ()
27139{
Reid Spencera773bd52006-08-04 18:18:08 +000027140return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027141 ;
27142 return 0;
27143}
27144_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027145for ac_lib in '' dl; do
27146 if test -z "$ac_lib"; then
27147 ac_res="none required"
27148 else
27149 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027151 fi
27152 rm -f conftest.$ac_objext conftest$ac_exeext
27153if { (ac_try="$ac_link"
27154case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27157esac
27158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027160 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027161 grep -v '^ *+' conftest.er1 >conftest.err
27162 rm -f conftest.er1
27163 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27167 { (case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27170esac
27171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027173 ac_status=$?
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; } &&
27176 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027177 { (case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27180esac
27181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027183 ac_status=$?
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027186 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027187else
27188 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027189sed 's/^/| /' conftest.$ac_ext >&5
27190
Reid Spencera773bd52006-08-04 18:18:08 +000027191
John Criswell7a73b802003-06-30 21:59:07 +000027192fi
Reid Spencera773bd52006-08-04 18:18:08 +000027193
27194rm -f core conftest.err conftest.$ac_objext \
27195 conftest$ac_exeext
27196 if test "${ac_cv_search_dlopen+set}" = set; then
27197 break
John Criswell7a73b802003-06-30 21:59:07 +000027198fi
Reid Spencera773bd52006-08-04 18:18:08 +000027199done
27200if test "${ac_cv_search_dlopen+set}" = set; then
27201 :
27202else
27203 ac_cv_search_dlopen=no
27204fi
27205rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027206LIBS=$ac_func_search_save_LIBS
27207fi
Reid Spencera773bd52006-08-04 18:18:08 +000027208{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27209echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27210ac_res=$ac_cv_search_dlopen
27211if test "$ac_res" != no; then
27212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027213
27214cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027215#define HAVE_DLOPEN 1
27216_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027217
27218else
Brian Gaekec45be042003-10-07 06:01:34 +000027219 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27220echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027221fi
27222
27223
Reid Spencera773bd52006-08-04 18:18:08 +000027224{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27225echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027226if test "${ac_cv_search_mallinfo+set}" = set; then
27227 echo $ECHO_N "(cached) $ECHO_C" >&6
27228else
27229 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027230cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027231/* confdefs.h. */
27232_ACEOF
27233cat confdefs.h >>conftest.$ac_ext
27234cat >>conftest.$ac_ext <<_ACEOF
27235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027236
Reid Spencera773bd52006-08-04 18:18:08 +000027237/* Override any GCC internal prototype to avoid an error.
27238 Use char because int might match the return type of a GCC
27239 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027240#ifdef __cplusplus
27241extern "C"
27242#endif
John Criswell7a73b802003-06-30 21:59:07 +000027243char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027244int
27245main ()
27246{
Reid Spencera773bd52006-08-04 18:18:08 +000027247return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027248 ;
27249 return 0;
27250}
27251_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027252for ac_lib in '' malloc; do
27253 if test -z "$ac_lib"; then
27254 ac_res="none required"
27255 else
27256 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027258 fi
27259 rm -f conftest.$ac_objext conftest$ac_exeext
27260if { (ac_try="$ac_link"
27261case "(($ac_try" in
27262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27263 *) ac_try_echo=$ac_try;;
27264esac
27265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27266 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027268 grep -v '^ *+' conftest.er1 >conftest.err
27269 rm -f conftest.er1
27270 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27274 { (case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27277esac
27278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027280 ac_status=$?
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); }; } &&
27283 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027284 { (case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27287esac
27288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027290 ac_status=$?
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027293 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027294else
27295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027296sed 's/^/| /' conftest.$ac_ext >&5
27297
Reid Spencera773bd52006-08-04 18:18:08 +000027298
John Criswell7a73b802003-06-30 21:59:07 +000027299fi
Reid Spencera773bd52006-08-04 18:18:08 +000027300
27301rm -f core conftest.err conftest.$ac_objext \
27302 conftest$ac_exeext
27303 if test "${ac_cv_search_mallinfo+set}" = set; then
27304 break
John Criswell7a73b802003-06-30 21:59:07 +000027305fi
Reid Spencera773bd52006-08-04 18:18:08 +000027306done
27307if test "${ac_cv_search_mallinfo+set}" = set; then
27308 :
27309else
27310 ac_cv_search_mallinfo=no
27311fi
27312rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027313LIBS=$ac_func_search_save_LIBS
27314fi
Reid Spencera773bd52006-08-04 18:18:08 +000027315{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27316echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27317ac_res=$ac_cv_search_mallinfo
27318if test "$ac_res" != no; then
27319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027320
27321cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027322#define HAVE_MALLINFO 1
27323_ACEOF
27324
27325fi
27326
27327
Reid Spencer0a262ba2005-08-24 10:07:20 +000027328if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027329
Reid Spencera773bd52006-08-04 18:18:08 +000027330{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27331echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027332if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27334else
27335 ac_check_lib_save_LIBS=$LIBS
27336LIBS="-lpthread $LIBS"
27337cat >conftest.$ac_ext <<_ACEOF
27338/* confdefs.h. */
27339_ACEOF
27340cat confdefs.h >>conftest.$ac_ext
27341cat >>conftest.$ac_ext <<_ACEOF
27342/* end confdefs.h. */
27343
Reid Spencera773bd52006-08-04 18:18:08 +000027344/* Override any GCC internal prototype to avoid an error.
27345 Use char because int might match the return type of a GCC
27346 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027347#ifdef __cplusplus
27348extern "C"
27349#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027350char pthread_mutex_init ();
27351int
27352main ()
27353{
Reid Spencera773bd52006-08-04 18:18:08 +000027354return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027355 ;
27356 return 0;
27357}
27358_ACEOF
27359rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027360if { (ac_try="$ac_link"
27361case "(($ac_try" in
27362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363 *) ac_try_echo=$ac_try;;
27364esac
27365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027367 ac_status=$?
27368 grep -v '^ *+' conftest.er1 >conftest.err
27369 rm -f conftest.er1
27370 cat conftest.err >&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27374 { (case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027380 ac_status=$?
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; } &&
27383 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027384 { (case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27387esac
27388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }; then
27393 ac_cv_lib_pthread_pthread_mutex_init=yes
27394else
27395 echo "$as_me: failed program was:" >&5
27396sed 's/^/| /' conftest.$ac_ext >&5
27397
Reid Spencera773bd52006-08-04 18:18:08 +000027398 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027399fi
Reid Spencera773bd52006-08-04 18:18:08 +000027400
27401rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027402 conftest$ac_exeext conftest.$ac_ext
27403LIBS=$ac_check_lib_save_LIBS
27404fi
Reid Spencera773bd52006-08-04 18:18:08 +000027405{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27406echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027407if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27408 cat >>confdefs.h <<_ACEOF
27409#define HAVE_LIBPTHREAD 1
27410_ACEOF
27411
27412 LIBS="-lpthread $LIBS"
27413
27414fi
27415
Reid Spencera773bd52006-08-04 18:18:08 +000027416 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27417echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027418if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27419 echo $ECHO_N "(cached) $ECHO_C" >&6
27420else
27421 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027422cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027423/* confdefs.h. */
27424_ACEOF
27425cat confdefs.h >>conftest.$ac_ext
27426cat >>conftest.$ac_ext <<_ACEOF
27427/* end confdefs.h. */
27428
Reid Spencera773bd52006-08-04 18:18:08 +000027429/* Override any GCC internal prototype to avoid an error.
27430 Use char because int might match the return type of a GCC
27431 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027432#ifdef __cplusplus
27433extern "C"
27434#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027435char pthread_mutex_lock ();
27436int
27437main ()
27438{
Reid Spencera773bd52006-08-04 18:18:08 +000027439return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027440 ;
27441 return 0;
27442}
27443_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027444for ac_lib in '' pthread; do
27445 if test -z "$ac_lib"; then
27446 ac_res="none required"
27447 else
27448 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027450 fi
27451 rm -f conftest.$ac_objext conftest$ac_exeext
27452if { (ac_try="$ac_link"
27453case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27456esac
27457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027460 grep -v '^ *+' conftest.er1 >conftest.err
27461 rm -f conftest.er1
27462 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27466 { (case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27469esac
27470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; } &&
27475 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027476 { (case "(($ac_try" in
27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27479esac
27480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027485 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027486else
27487 echo "$as_me: failed program was:" >&5
27488sed 's/^/| /' conftest.$ac_ext >&5
27489
Reid Spencera773bd52006-08-04 18:18:08 +000027490
Brian Gaeke5f268f72003-12-05 19:29:01 +000027491fi
Reid Spencera773bd52006-08-04 18:18:08 +000027492
27493rm -f core conftest.err conftest.$ac_objext \
27494 conftest$ac_exeext
27495 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27496 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027497fi
Reid Spencera773bd52006-08-04 18:18:08 +000027498done
27499if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27500 :
27501else
27502 ac_cv_search_pthread_mutex_lock=no
27503fi
27504rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027505LIBS=$ac_func_search_save_LIBS
27506fi
Reid Spencera773bd52006-08-04 18:18:08 +000027507{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27508echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27509ac_res=$ac_cv_search_pthread_mutex_lock
27510if test "$ac_res" != no; then
27511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027512
John Criswell40468462004-09-24 21:19:06 +000027513cat >>confdefs.h <<\_ACEOF
27514#define HAVE_PTHREAD_MUTEX_LOCK 1
27515_ACEOF
27516
27517fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027518
Reid Spencer0a262ba2005-08-24 10:07:20 +000027519fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027520
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027521
Reid Spencer59473af2004-12-25 07:31:29 +000027522
27523
27524
27525
27526
27527ac_header_dirent=no
27528for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27529 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027530{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27531echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027533 echo $ECHO_N "(cached) $ECHO_C" >&6
27534else
27535 cat >conftest.$ac_ext <<_ACEOF
27536/* confdefs.h. */
27537_ACEOF
27538cat confdefs.h >>conftest.$ac_ext
27539cat >>conftest.$ac_ext <<_ACEOF
27540/* end confdefs.h. */
27541#include <sys/types.h>
27542#include <$ac_hdr>
27543
27544int
27545main ()
27546{
27547if ((DIR *) 0)
27548return 0;
27549 ;
27550 return 0;
27551}
27552_ACEOF
27553rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027554if { (ac_try="$ac_compile"
27555case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27558esac
27559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027561 ac_status=$?
27562 grep -v '^ *+' conftest.er1 >conftest.err
27563 rm -f conftest.er1
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27568 { (case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27571esac
27572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027574 ac_status=$?
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
27577 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027578 { (case "(($ac_try" in
27579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580 *) ac_try_echo=$ac_try;;
27581esac
27582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027584 ac_status=$?
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; }; then
27587 eval "$as_ac_Header=yes"
27588else
27589 echo "$as_me: failed program was:" >&5
27590sed 's/^/| /' conftest.$ac_ext >&5
27591
Reid Spencera773bd52006-08-04 18:18:08 +000027592 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027593fi
Reid Spencera773bd52006-08-04 18:18:08 +000027594
27595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027596fi
Reid Spencera773bd52006-08-04 18:18:08 +000027597ac_res=`eval echo '${'$as_ac_Header'}'`
27598 { echo "$as_me:$LINENO: result: $ac_res" >&5
27599echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027600if test `eval echo '${'$as_ac_Header'}'` = yes; then
27601 cat >>confdefs.h <<_ACEOF
27602#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27603_ACEOF
27604
27605ac_header_dirent=$ac_hdr; break
27606fi
27607
27608done
27609# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27610if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027611 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27612echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027613if test "${ac_cv_search_opendir+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27615else
27616 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027617cat >conftest.$ac_ext <<_ACEOF
27618/* confdefs.h. */
27619_ACEOF
27620cat confdefs.h >>conftest.$ac_ext
27621cat >>conftest.$ac_ext <<_ACEOF
27622/* end confdefs.h. */
27623
Reid Spencera773bd52006-08-04 18:18:08 +000027624/* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027627#ifdef __cplusplus
27628extern "C"
27629#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027630char opendir ();
27631int
27632main ()
27633{
Reid Spencera773bd52006-08-04 18:18:08 +000027634return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027635 ;
27636 return 0;
27637}
27638_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027639for ac_lib in '' dir; do
27640 if test -z "$ac_lib"; then
27641 ac_res="none required"
27642 else
27643 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027645 fi
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647if { (ac_try="$ac_link"
27648case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27651esac
27652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027654 ac_status=$?
27655 grep -v '^ *+' conftest.er1 >conftest.err
27656 rm -f conftest.er1
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27661 { (case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27664esac
27665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027667 ac_status=$?
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; } &&
27670 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027671 { (case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27674esac
27675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027680 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027681else
27682 echo "$as_me: failed program was:" >&5
27683sed 's/^/| /' conftest.$ac_ext >&5
27684
Reid Spencera773bd52006-08-04 18:18:08 +000027685
Reid Spencer59473af2004-12-25 07:31:29 +000027686fi
Reid Spencera773bd52006-08-04 18:18:08 +000027687
27688rm -f core conftest.err conftest.$ac_objext \
27689 conftest$ac_exeext
27690 if test "${ac_cv_search_opendir+set}" = set; then
27691 break
Reid Spencer59473af2004-12-25 07:31:29 +000027692fi
Reid Spencera773bd52006-08-04 18:18:08 +000027693done
27694if test "${ac_cv_search_opendir+set}" = set; then
27695 :
27696else
27697 ac_cv_search_opendir=no
27698fi
27699rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027700LIBS=$ac_func_search_save_LIBS
27701fi
Reid Spencera773bd52006-08-04 18:18:08 +000027702{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27703echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27704ac_res=$ac_cv_search_opendir
27705if test "$ac_res" != no; then
27706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027707
27708fi
27709
27710else
Reid Spencera773bd52006-08-04 18:18:08 +000027711 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27712echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027713if test "${ac_cv_search_opendir+set}" = set; then
27714 echo $ECHO_N "(cached) $ECHO_C" >&6
27715else
27716 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027717cat >conftest.$ac_ext <<_ACEOF
27718/* confdefs.h. */
27719_ACEOF
27720cat confdefs.h >>conftest.$ac_ext
27721cat >>conftest.$ac_ext <<_ACEOF
27722/* end confdefs.h. */
27723
Reid Spencera773bd52006-08-04 18:18:08 +000027724/* Override any GCC internal prototype to avoid an error.
27725 Use char because int might match the return type of a GCC
27726 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027727#ifdef __cplusplus
27728extern "C"
27729#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027730char opendir ();
27731int
27732main ()
27733{
Reid Spencera773bd52006-08-04 18:18:08 +000027734return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027735 ;
27736 return 0;
27737}
27738_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027739for ac_lib in '' x; do
27740 if test -z "$ac_lib"; then
27741 ac_res="none required"
27742 else
27743 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027745 fi
27746 rm -f conftest.$ac_objext conftest$ac_exeext
27747if { (ac_try="$ac_link"
27748case "(($ac_try" in
27749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750 *) ac_try_echo=$ac_try;;
27751esac
27752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27753 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027754 ac_status=$?
27755 grep -v '^ *+' conftest.er1 >conftest.err
27756 rm -f conftest.er1
27757 cat conftest.err >&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27761 { (case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764esac
27765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027767 ac_status=$?
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; } &&
27770 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027771 { (case "(($ac_try" in
27772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773 *) ac_try_echo=$ac_try;;
27774esac
27775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027777 ac_status=$?
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027780 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027781else
27782 echo "$as_me: failed program was:" >&5
27783sed 's/^/| /' conftest.$ac_ext >&5
27784
Reid Spencera773bd52006-08-04 18:18:08 +000027785
Reid Spencer59473af2004-12-25 07:31:29 +000027786fi
Reid Spencera773bd52006-08-04 18:18:08 +000027787
27788rm -f core conftest.err conftest.$ac_objext \
27789 conftest$ac_exeext
27790 if test "${ac_cv_search_opendir+set}" = set; then
27791 break
Reid Spencer59473af2004-12-25 07:31:29 +000027792fi
Reid Spencera773bd52006-08-04 18:18:08 +000027793done
27794if test "${ac_cv_search_opendir+set}" = set; then
27795 :
27796else
27797 ac_cv_search_opendir=no
27798fi
27799rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027800LIBS=$ac_func_search_save_LIBS
27801fi
Reid Spencera773bd52006-08-04 18:18:08 +000027802{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27803echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27804ac_res=$ac_cv_search_opendir
27805if test "$ac_res" != no; then
27806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027807
27808fi
27809
27810fi
27811
Reid Spencera773bd52006-08-04 18:18:08 +000027812{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27813echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027814if test "${ac_cv_header_mmap_anon+set}" = set; then
27815 echo $ECHO_N "(cached) $ECHO_C" >&6
27816else
27817 ac_ext=c
27818ac_cpp='$CPP $CPPFLAGS'
27819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27821ac_compiler_gnu=$ac_cv_c_compiler_gnu
27822
27823 cat >conftest.$ac_ext <<_ACEOF
27824/* confdefs.h. */
27825_ACEOF
27826cat confdefs.h >>conftest.$ac_ext
27827cat >>conftest.$ac_ext <<_ACEOF
27828/* end confdefs.h. */
27829#include <sys/mman.h>
27830#include <unistd.h>
27831#include <fcntl.h>
27832int
27833main ()
27834{
27835mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27836 ;
27837 return 0;
27838}
27839_ACEOF
27840rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027841if { (ac_try="$ac_compile"
27842case "(($ac_try" in
27843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844 *) ac_try_echo=$ac_try;;
27845esac
27846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027848 ac_status=$?
27849 grep -v '^ *+' conftest.er1 >conftest.err
27850 rm -f conftest.er1
27851 cat conftest.err >&5
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27855 { (case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27858esac
27859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027861 ac_status=$?
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); }; } &&
27864 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027865 { (case "(($ac_try" in
27866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867 *) ac_try_echo=$ac_try;;
27868esac
27869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027871 ac_status=$?
27872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873 (exit $ac_status); }; }; then
27874 ac_cv_header_mmap_anon=yes
27875else
27876 echo "$as_me: failed program was:" >&5
27877sed 's/^/| /' conftest.$ac_ext >&5
27878
Reid Spencera773bd52006-08-04 18:18:08 +000027879 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027880fi
Reid Spencera773bd52006-08-04 18:18:08 +000027881
27882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027883 ac_ext=c
27884ac_cpp='$CPP $CPPFLAGS'
27885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27887ac_compiler_gnu=$ac_cv_c_compiler_gnu
27888
27889
27890fi
Reid Spencera773bd52006-08-04 18:18:08 +000027891{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27892echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027893if test "$ac_cv_header_mmap_anon" = yes; then
27894
27895cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027896#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027897_ACEOF
27898
27899fi
27900
Reid Spencera773bd52006-08-04 18:18:08 +000027901{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27902echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027903if test "${ac_cv_header_stat_broken+set}" = set; then
27904 echo $ECHO_N "(cached) $ECHO_C" >&6
27905else
27906 cat >conftest.$ac_ext <<_ACEOF
27907/* confdefs.h. */
27908_ACEOF
27909cat confdefs.h >>conftest.$ac_ext
27910cat >>conftest.$ac_ext <<_ACEOF
27911/* end confdefs.h. */
27912#include <sys/types.h>
27913#include <sys/stat.h>
27914
Reid Spencera773bd52006-08-04 18:18:08 +000027915#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000027916# if S_ISBLK (S_IFDIR)
27917You lose.
27918# endif
27919#endif
27920
Reid Spencera773bd52006-08-04 18:18:08 +000027921#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000027922# if S_ISBLK (S_IFCHR)
27923You lose.
27924# endif
27925#endif
27926
Reid Spencera773bd52006-08-04 18:18:08 +000027927#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027928# if S_ISLNK (S_IFREG)
27929You lose.
27930# endif
27931#endif
27932
Reid Spencera773bd52006-08-04 18:18:08 +000027933#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027934# if S_ISSOCK (S_IFREG)
27935You lose.
27936# endif
27937#endif
27938
27939_ACEOF
27940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27941 $EGREP "You lose" >/dev/null 2>&1; then
27942 ac_cv_header_stat_broken=yes
27943else
27944 ac_cv_header_stat_broken=no
27945fi
27946rm -f conftest*
27947
27948fi
Reid Spencera773bd52006-08-04 18:18:08 +000027949{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27950echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027951if test $ac_cv_header_stat_broken = yes; then
27952
27953cat >>confdefs.h <<\_ACEOF
27954#define STAT_MACROS_BROKEN 1
27955_ACEOF
27956
27957fi
27958
Reid Spencera773bd52006-08-04 18:18:08 +000027959{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27960echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027961if test "${ac_cv_header_stdc+set}" = set; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27963else
27964 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027965/* confdefs.h. */
27966_ACEOF
27967cat confdefs.h >>conftest.$ac_ext
27968cat >>conftest.$ac_ext <<_ACEOF
27969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027970#include <stdlib.h>
27971#include <stdarg.h>
27972#include <string.h>
27973#include <float.h>
27974
John Criswell0c38eaf2003-09-10 15:17:25 +000027975int
27976main ()
27977{
27978
27979 ;
27980 return 0;
27981}
John Criswell7a73b802003-06-30 21:59:07 +000027982_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027983rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027984if { (ac_try="$ac_compile"
27985case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27988esac
27989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027992 grep -v '^ *+' conftest.er1 >conftest.err
27993 rm -f conftest.er1
27994 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027996 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27998 { (case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28001esac
28002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028004 ac_status=$?
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); }; } &&
28007 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028008 { (case "(($ac_try" in
28009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010 *) ac_try_echo=$ac_try;;
28011esac
28012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28013 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028014 ac_status=$?
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028017 ac_cv_header_stdc=yes
28018else
28019 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028020sed 's/^/| /' conftest.$ac_ext >&5
28021
Reid Spencera773bd52006-08-04 18:18:08 +000028022 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028023fi
Reid Spencera773bd52006-08-04 18:18:08 +000028024
28025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028026
28027if test $ac_cv_header_stdc = yes; then
28028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28029 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028030/* confdefs.h. */
28031_ACEOF
28032cat confdefs.h >>conftest.$ac_ext
28033cat >>conftest.$ac_ext <<_ACEOF
28034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028035#include <string.h>
28036
28037_ACEOF
28038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028039 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028040 :
28041else
28042 ac_cv_header_stdc=no
28043fi
28044rm -f conftest*
28045
28046fi
28047
28048if test $ac_cv_header_stdc = yes; then
28049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28050 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028051/* confdefs.h. */
28052_ACEOF
28053cat confdefs.h >>conftest.$ac_ext
28054cat >>conftest.$ac_ext <<_ACEOF
28055/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028056#include <stdlib.h>
28057
28058_ACEOF
28059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028060 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028061 :
28062else
28063 ac_cv_header_stdc=no
28064fi
28065rm -f conftest*
28066
28067fi
28068
28069if test $ac_cv_header_stdc = yes; then
28070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28071 if test "$cross_compiling" = yes; then
28072 :
28073else
28074 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028075/* confdefs.h. */
28076_ACEOF
28077cat confdefs.h >>conftest.$ac_ext
28078cat >>conftest.$ac_ext <<_ACEOF
28079/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028080#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028081#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028082#if ((' ' & 0x0FF) == 0x020)
28083# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28084# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28085#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028086# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028087 (('a' <= (c) && (c) <= 'i') \
28088 || ('j' <= (c) && (c) <= 'r') \
28089 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028090# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28091#endif
28092
28093#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28094int
28095main ()
28096{
28097 int i;
28098 for (i = 0; i < 256; i++)
28099 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028100 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028101 return 2;
28102 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028103}
28104_ACEOF
28105rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028106if { (ac_try="$ac_link"
28107case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28110esac
28111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028116 { (case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28119esac
28120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028122 ac_status=$?
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
28125 :
28126else
28127 echo "$as_me: program exited with status $ac_status" >&5
28128echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028129sed 's/^/| /' conftest.$ac_ext >&5
28130
John Criswell7a73b802003-06-30 21:59:07 +000028131( exit $ac_status )
28132ac_cv_header_stdc=no
28133fi
Reid Spencera773bd52006-08-04 18:18:08 +000028134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28135fi
28136
28137
John Criswell7a73b802003-06-30 21:59:07 +000028138fi
28139fi
Reid Spencera773bd52006-08-04 18:18:08 +000028140{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28141echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028142if test $ac_cv_header_stdc = yes; then
28143
28144cat >>confdefs.h <<\_ACEOF
28145#define STDC_HEADERS 1
28146_ACEOF
28147
28148fi
28149
Reid Spencera773bd52006-08-04 18:18:08 +000028150{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28151echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028152if test "${ac_cv_header_sys_wait_h+set}" = set; then
28153 echo $ECHO_N "(cached) $ECHO_C" >&6
28154else
28155 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028156/* confdefs.h. */
28157_ACEOF
28158cat confdefs.h >>conftest.$ac_ext
28159cat >>conftest.$ac_ext <<_ACEOF
28160/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028161#include <sys/types.h>
28162#include <sys/wait.h>
28163#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028164# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028165#endif
28166#ifndef WIFEXITED
28167# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28168#endif
28169
John Criswell7a73b802003-06-30 21:59:07 +000028170int
28171main ()
28172{
28173 int s;
28174 wait (&s);
28175 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28176 ;
28177 return 0;
28178}
28179_ACEOF
28180rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028181if { (ac_try="$ac_compile"
28182case "(($ac_try" in
28183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184 *) ac_try_echo=$ac_try;;
28185esac
28186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028188 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028189 grep -v '^ *+' conftest.er1 >conftest.err
28190 rm -f conftest.er1
28191 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28195 { (case "(($ac_try" in
28196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197 *) ac_try_echo=$ac_try;;
28198esac
28199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; } &&
28204 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028205 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028211 ac_status=$?
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; }; then
28214 ac_cv_header_sys_wait_h=yes
28215else
28216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028217sed 's/^/| /' conftest.$ac_ext >&5
28218
Reid Spencera773bd52006-08-04 18:18:08 +000028219 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028220fi
Reid Spencera773bd52006-08-04 18:18:08 +000028221
28222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028223fi
Reid Spencera773bd52006-08-04 18:18:08 +000028224{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28225echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028226if test $ac_cv_header_sys_wait_h = yes; then
28227
28228cat >>confdefs.h <<\_ACEOF
28229#define HAVE_SYS_WAIT_H 1
28230_ACEOF
28231
28232fi
28233
Reid Spencera773bd52006-08-04 18:18:08 +000028234{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28235echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028236if test "${ac_cv_header_time+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28238else
28239 cat >conftest.$ac_ext <<_ACEOF
28240/* confdefs.h. */
28241_ACEOF
28242cat confdefs.h >>conftest.$ac_ext
28243cat >>conftest.$ac_ext <<_ACEOF
28244/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028245#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028246#include <sys/time.h>
28247#include <time.h>
28248
28249int
28250main ()
28251{
28252if ((struct tm *) 0)
28253return 0;
28254 ;
28255 return 0;
28256}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028257_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028258rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028259if { (ac_try="$ac_compile"
28260case "(($ac_try" in
28261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262 *) ac_try_echo=$ac_try;;
28263esac
28264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028266 ac_status=$?
28267 grep -v '^ *+' conftest.er1 >conftest.err
28268 rm -f conftest.er1
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028271 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273 { (case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28276esac
28277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } &&
28282 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028283 { (case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28286esac
28287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028289 ac_status=$?
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
28292 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028293else
28294 echo "$as_me: failed program was:" >&5
28295sed 's/^/| /' conftest.$ac_ext >&5
28296
Reid Spencera773bd52006-08-04 18:18:08 +000028297 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028298fi
Reid Spencera773bd52006-08-04 18:18:08 +000028299
28300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028301fi
Reid Spencera773bd52006-08-04 18:18:08 +000028302{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28303echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028304if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028305
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028306cat >>confdefs.h <<\_ACEOF
28307#define TIME_WITH_SYS_TIME 1
28308_ACEOF
28309
28310fi
28311
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028312
Reid Spencer59473af2004-12-25 07:31:29 +000028313
28314
28315
28316
28317
28318
28319for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28320do
28321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327fi
Reid Spencera773bd52006-08-04 18:18:08 +000028328ac_res=`eval echo '${'$as_ac_Header'}'`
28329 { echo "$as_me:$LINENO: result: $ac_res" >&5
28330echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028331else
28332 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028333{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028335cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028336/* confdefs.h. */
28337_ACEOF
28338cat confdefs.h >>conftest.$ac_ext
28339cat >>conftest.$ac_ext <<_ACEOF
28340/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028341$ac_includes_default
28342#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028343_ACEOF
28344rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028345if { (ac_try="$ac_compile"
28346case "(($ac_try" in
28347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28348 *) ac_try_echo=$ac_try;;
28349esac
28350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28351 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028352 ac_status=$?
28353 grep -v '^ *+' conftest.er1 >conftest.err
28354 rm -f conftest.er1
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28359 { (case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28362esac
28363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028369 { (case "(($ac_try" in
28370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28372esac
28373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028378 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028379else
28380 echo "$as_me: failed program was:" >&5
28381sed 's/^/| /' conftest.$ac_ext >&5
28382
Reid Spencera773bd52006-08-04 18:18:08 +000028383 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028384fi
Reid Spencera773bd52006-08-04 18:18:08 +000028385
28386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28387{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28388echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028389
Reid Spencer59473af2004-12-25 07:31:29 +000028390# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028391{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028393cat >conftest.$ac_ext <<_ACEOF
28394/* confdefs.h. */
28395_ACEOF
28396cat confdefs.h >>conftest.$ac_ext
28397cat >>conftest.$ac_ext <<_ACEOF
28398/* end confdefs.h. */
28399#include <$ac_header>
28400_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028401if { (ac_try="$ac_cpp conftest.$ac_ext"
28402case "(($ac_try" in
28403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404 *) ac_try_echo=$ac_try;;
28405esac
28406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028408 ac_status=$?
28409 grep -v '^ *+' conftest.er1 >conftest.err
28410 rm -f conftest.er1
28411 cat conftest.err >&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } >/dev/null; then
28414 if test -s conftest.err; then
28415 ac_cpp_err=$ac_c_preproc_warn_flag
28416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28417 else
28418 ac_cpp_err=
28419 fi
28420else
28421 ac_cpp_err=yes
28422fi
28423if test -z "$ac_cpp_err"; then
28424 ac_header_preproc=yes
28425else
28426 echo "$as_me: failed program was:" >&5
28427sed 's/^/| /' conftest.$ac_ext >&5
28428
28429 ac_header_preproc=no
28430fi
Reid Spencera773bd52006-08-04 18:18:08 +000028431
Reid Spencer59473af2004-12-25 07:31:29 +000028432rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028433{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28434echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028435
28436# So? What about this header?
28437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28438 yes:no: )
28439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28443 ac_header_preproc=yes
28444 ;;
28445 no:yes:* )
28446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028458 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028459## ----------------------------------- ##
28460## Report this to llvmbugs@cs.uiuc.edu ##
28461## ----------------------------------- ##
28462_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028463 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028464 ;;
28465esac
Reid Spencera773bd52006-08-04 18:18:08 +000028466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028469 echo $ECHO_N "(cached) $ECHO_C" >&6
28470else
28471 eval "$as_ac_Header=\$ac_header_preproc"
28472fi
Reid Spencera773bd52006-08-04 18:18:08 +000028473ac_res=`eval echo '${'$as_ac_Header'}'`
28474 { echo "$as_me:$LINENO: result: $ac_res" >&5
28475echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028476
28477fi
Reid Spencer59473af2004-12-25 07:31:29 +000028478if test `eval echo '${'$as_ac_Header'}'` = yes; then
28479 cat >>confdefs.h <<_ACEOF
28480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028481_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028482
28483fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028484
Reid Spencer59473af2004-12-25 07:31:29 +000028485done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028486
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028487
28488
Reid Spencer59473af2004-12-25 07:31:29 +000028489
28490
28491
28492
Reid Spencercdb08a32006-06-05 16:11:07 +000028493for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028494do
28495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028500 echo $ECHO_N "(cached) $ECHO_C" >&6
28501fi
Reid Spencera773bd52006-08-04 18:18:08 +000028502ac_res=`eval echo '${'$as_ac_Header'}'`
28503 { echo "$as_me:$LINENO: result: $ac_res" >&5
28504echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028505else
28506 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028507{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028509cat >conftest.$ac_ext <<_ACEOF
28510/* confdefs.h. */
28511_ACEOF
28512cat confdefs.h >>conftest.$ac_ext
28513cat >>conftest.$ac_ext <<_ACEOF
28514/* end confdefs.h. */
28515$ac_includes_default
28516#include <$ac_header>
28517_ACEOF
28518rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028519if { (ac_try="$ac_compile"
28520case "(($ac_try" in
28521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522 *) ac_try_echo=$ac_try;;
28523esac
28524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28525 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028526 ac_status=$?
28527 grep -v '^ *+' conftest.er1 >conftest.err
28528 rm -f conftest.er1
28529 cat conftest.err >&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28533 { (case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28536esac
28537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028539 ac_status=$?
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; } &&
28542 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028543 { (case "(($ac_try" in
28544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28545 *) ac_try_echo=$ac_try;;
28546esac
28547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28548 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028549 ac_status=$?
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); }; }; then
28552 ac_header_compiler=yes
28553else
28554 echo "$as_me: failed program was:" >&5
28555sed 's/^/| /' conftest.$ac_ext >&5
28556
Reid Spencera773bd52006-08-04 18:18:08 +000028557 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028558fi
Reid Spencera773bd52006-08-04 18:18:08 +000028559
28560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28561{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28562echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028563
28564# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028565{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028567cat >conftest.$ac_ext <<_ACEOF
28568/* confdefs.h. */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h. */
28573#include <$ac_header>
28574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028575if { (ac_try="$ac_cpp conftest.$ac_ext"
28576case "(($ac_try" in
28577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28578 *) ac_try_echo=$ac_try;;
28579esac
28580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028582 ac_status=$?
28583 grep -v '^ *+' conftest.er1 >conftest.err
28584 rm -f conftest.er1
28585 cat conftest.err >&5
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); } >/dev/null; then
28588 if test -s conftest.err; then
28589 ac_cpp_err=$ac_c_preproc_warn_flag
28590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28591 else
28592 ac_cpp_err=
28593 fi
28594else
28595 ac_cpp_err=yes
28596fi
28597if test -z "$ac_cpp_err"; then
28598 ac_header_preproc=yes
28599else
28600 echo "$as_me: failed program was:" >&5
28601sed 's/^/| /' conftest.$ac_ext >&5
28602
28603 ac_header_preproc=no
28604fi
Reid Spencera773bd52006-08-04 18:18:08 +000028605
Reid Spencer59473af2004-12-25 07:31:29 +000028606rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028607{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28608echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028609
28610# So? What about this header?
28611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28612 yes:no: )
28613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28617 ac_header_preproc=yes
28618 ;;
28619 no:yes:* )
28620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28627echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028632 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028633## ----------------------------------- ##
28634## Report this to llvmbugs@cs.uiuc.edu ##
28635## ----------------------------------- ##
28636_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028637 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028638 ;;
28639esac
Reid Spencera773bd52006-08-04 18:18:08 +000028640{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028643 echo $ECHO_N "(cached) $ECHO_C" >&6
28644else
28645 eval "$as_ac_Header=\$ac_header_preproc"
28646fi
Reid Spencera773bd52006-08-04 18:18:08 +000028647ac_res=`eval echo '${'$as_ac_Header'}'`
28648 { echo "$as_me:$LINENO: result: $ac_res" >&5
28649echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028650
28651fi
28652if test `eval echo '${'$as_ac_Header'}'` = yes; then
28653 cat >>confdefs.h <<_ACEOF
28654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28655_ACEOF
28656
28657fi
28658
28659done
28660
28661
28662
28663
28664
28665
Reid Spencercdb08a32006-06-05 16:11:07 +000028666for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028667do
28668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028673 echo $ECHO_N "(cached) $ECHO_C" >&6
28674fi
Reid Spencera773bd52006-08-04 18:18:08 +000028675ac_res=`eval echo '${'$as_ac_Header'}'`
28676 { echo "$as_me:$LINENO: result: $ac_res" >&5
28677echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028678else
28679 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028680{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28681echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028682cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028683/* confdefs.h. */
28684_ACEOF
28685cat confdefs.h >>conftest.$ac_ext
28686cat >>conftest.$ac_ext <<_ACEOF
28687/* end confdefs.h. */
28688$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028689#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028690_ACEOF
28691rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028692if { (ac_try="$ac_compile"
28693case "(($ac_try" in
28694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695 *) ac_try_echo=$ac_try;;
28696esac
28697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028700 grep -v '^ *+' conftest.er1 >conftest.err
28701 rm -f conftest.er1
28702 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28706 { (case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28709esac
28710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028712 ac_status=$?
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; } &&
28715 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028716 { (case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28719esac
28720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028722 ac_status=$?
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; }; then
28725 ac_header_compiler=yes
28726else
28727 echo "$as_me: failed program was:" >&5
28728sed 's/^/| /' conftest.$ac_ext >&5
28729
Reid Spencera773bd52006-08-04 18:18:08 +000028730 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028731fi
Reid Spencera773bd52006-08-04 18:18:08 +000028732
28733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28734{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28735echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028736
28737# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028738{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028740cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028741/* confdefs.h. */
28742_ACEOF
28743cat confdefs.h >>conftest.$ac_ext
28744cat >>conftest.$ac_ext <<_ACEOF
28745/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028746#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028747_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028748if { (ac_try="$ac_cpp conftest.$ac_ext"
28749case "(($ac_try" in
28750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751 *) ac_try_echo=$ac_try;;
28752esac
28753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028755 ac_status=$?
28756 grep -v '^ *+' conftest.er1 >conftest.err
28757 rm -f conftest.er1
28758 cat conftest.err >&5
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); } >/dev/null; then
28761 if test -s conftest.err; then
28762 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028764 else
28765 ac_cpp_err=
28766 fi
28767else
28768 ac_cpp_err=yes
28769fi
28770if test -z "$ac_cpp_err"; then
28771 ac_header_preproc=yes
28772else
28773 echo "$as_me: failed program was:" >&5
28774sed 's/^/| /' conftest.$ac_ext >&5
28775
28776 ac_header_preproc=no
28777fi
Reid Spencera773bd52006-08-04 18:18:08 +000028778
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028779rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028780{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28781echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028782
28783# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28785 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028790 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028791 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028792 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28800echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028805 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028806## ----------------------------------- ##
28807## Report this to llvmbugs@cs.uiuc.edu ##
28808## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028809_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028810 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028811 ;;
28812esac
Reid Spencera773bd52006-08-04 18:18:08 +000028813{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028818 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028819fi
Reid Spencera773bd52006-08-04 18:18:08 +000028820ac_res=`eval echo '${'$as_ac_Header'}'`
28821 { echo "$as_me:$LINENO: result: $ac_res" >&5
28822echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028823
28824fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028825if test `eval echo '${'$as_ac_Header'}'` = yes; then
28826 cat >>confdefs.h <<_ACEOF
28827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028828_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028829
28830fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028831
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028832done
28833
John Criswell7ed43ad2004-07-19 16:12:29 +000028834
Reid Spencercdb08a32006-06-05 16:11:07 +000028835
28836for ac_header in sys/types.h malloc/malloc.h
Chris Lattner0b142592005-11-14 06:57:34 +000028837do
28838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028843 echo $ECHO_N "(cached) $ECHO_C" >&6
28844fi
Reid Spencera773bd52006-08-04 18:18:08 +000028845ac_res=`eval echo '${'$as_ac_Header'}'`
28846 { echo "$as_me:$LINENO: result: $ac_res" >&5
28847echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028848else
28849 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028850{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028852cat >conftest.$ac_ext <<_ACEOF
28853/* confdefs.h. */
28854_ACEOF
28855cat confdefs.h >>conftest.$ac_ext
28856cat >>conftest.$ac_ext <<_ACEOF
28857/* end confdefs.h. */
28858$ac_includes_default
28859#include <$ac_header>
28860_ACEOF
28861rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028862if { (ac_try="$ac_compile"
28863case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28866esac
28867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028869 ac_status=$?
28870 grep -v '^ *+' conftest.er1 >conftest.err
28871 rm -f conftest.er1
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28876 { (case "(($ac_try" in
28877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878 *) ac_try_echo=$ac_try;;
28879esac
28880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028882 ac_status=$?
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; } &&
28885 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028886 { (case "(($ac_try" in
28887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888 *) ac_try_echo=$ac_try;;
28889esac
28890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028892 ac_status=$?
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); }; }; then
28895 ac_header_compiler=yes
28896else
28897 echo "$as_me: failed program was:" >&5
28898sed 's/^/| /' conftest.$ac_ext >&5
28899
Reid Spencera773bd52006-08-04 18:18:08 +000028900 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028901fi
Reid Spencera773bd52006-08-04 18:18:08 +000028902
28903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28904{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28905echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028906
28907# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028908{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028910cat >conftest.$ac_ext <<_ACEOF
28911/* confdefs.h. */
28912_ACEOF
28913cat confdefs.h >>conftest.$ac_ext
28914cat >>conftest.$ac_ext <<_ACEOF
28915/* end confdefs.h. */
28916#include <$ac_header>
28917_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028918if { (ac_try="$ac_cpp conftest.$ac_ext"
28919case "(($ac_try" in
28920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28921 *) ac_try_echo=$ac_try;;
28922esac
28923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028925 ac_status=$?
28926 grep -v '^ *+' conftest.er1 >conftest.err
28927 rm -f conftest.er1
28928 cat conftest.err >&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); } >/dev/null; then
28931 if test -s conftest.err; then
28932 ac_cpp_err=$ac_c_preproc_warn_flag
28933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28934 else
28935 ac_cpp_err=
28936 fi
28937else
28938 ac_cpp_err=yes
28939fi
28940if test -z "$ac_cpp_err"; then
28941 ac_header_preproc=yes
28942else
28943 echo "$as_me: failed program was:" >&5
28944sed 's/^/| /' conftest.$ac_ext >&5
28945
28946 ac_header_preproc=no
28947fi
Reid Spencera773bd52006-08-04 18:18:08 +000028948
Chris Lattner0b142592005-11-14 06:57:34 +000028949rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028950{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28951echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028952
28953# So? What about this header?
28954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28955 yes:no: )
28956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28959echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28960 ac_header_preproc=yes
28961 ;;
28962 no:yes:* )
28963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28966echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28968echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28970echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28974echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028975 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000028976## ----------------------------------- ##
28977## Report this to llvmbugs@cs.uiuc.edu ##
28978## ----------------------------------- ##
28979_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028980 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000028981 ;;
28982esac
Reid Spencera773bd52006-08-04 18:18:08 +000028983{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028986 echo $ECHO_N "(cached) $ECHO_C" >&6
28987else
28988 eval "$as_ac_Header=\$ac_header_preproc"
28989fi
Reid Spencera773bd52006-08-04 18:18:08 +000028990ac_res=`eval echo '${'$as_ac_Header'}'`
28991 { echo "$as_me:$LINENO: result: $ac_res" >&5
28992echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028993
28994fi
28995if test `eval echo '${'$as_ac_Header'}'` = yes; then
28996 cat >>confdefs.h <<_ACEOF
28997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28998_ACEOF
28999
29000fi
29001
29002done
29003
Reid Spencer0a262ba2005-08-24 10:07:20 +000029004if test "$ENABLE_THREADS" -eq 1 ; then
29005
29006for ac_header in pthread.h
29007do
29008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029013 echo $ECHO_N "(cached) $ECHO_C" >&6
29014fi
Reid Spencera773bd52006-08-04 18:18:08 +000029015ac_res=`eval echo '${'$as_ac_Header'}'`
29016 { echo "$as_me:$LINENO: result: $ac_res" >&5
29017echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029018else
29019 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029020{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29021echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029022cat >conftest.$ac_ext <<_ACEOF
29023/* confdefs.h. */
29024_ACEOF
29025cat confdefs.h >>conftest.$ac_ext
29026cat >>conftest.$ac_ext <<_ACEOF
29027/* end confdefs.h. */
29028$ac_includes_default
29029#include <$ac_header>
29030_ACEOF
29031rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029032if { (ac_try="$ac_compile"
29033case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29036esac
29037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029039 ac_status=$?
29040 grep -v '^ *+' conftest.er1 >conftest.err
29041 rm -f conftest.er1
29042 cat conftest.err >&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29046 { (case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29049esac
29050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029052 ac_status=$?
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; } &&
29055 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029056 { (case "(($ac_try" in
29057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058 *) ac_try_echo=$ac_try;;
29059esac
29060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; }; then
29065 ac_header_compiler=yes
29066else
29067 echo "$as_me: failed program was:" >&5
29068sed 's/^/| /' conftest.$ac_ext >&5
29069
Reid Spencera773bd52006-08-04 18:18:08 +000029070 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029071fi
Reid Spencera773bd52006-08-04 18:18:08 +000029072
29073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29074{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29075echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029076
29077# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029078{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029080cat >conftest.$ac_ext <<_ACEOF
29081/* confdefs.h. */
29082_ACEOF
29083cat confdefs.h >>conftest.$ac_ext
29084cat >>conftest.$ac_ext <<_ACEOF
29085/* end confdefs.h. */
29086#include <$ac_header>
29087_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029088if { (ac_try="$ac_cpp conftest.$ac_ext"
29089case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29092esac
29093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029095 ac_status=$?
29096 grep -v '^ *+' conftest.er1 >conftest.err
29097 rm -f conftest.er1
29098 cat conftest.err >&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } >/dev/null; then
29101 if test -s conftest.err; then
29102 ac_cpp_err=$ac_c_preproc_warn_flag
29103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29104 else
29105 ac_cpp_err=
29106 fi
29107else
29108 ac_cpp_err=yes
29109fi
29110if test -z "$ac_cpp_err"; then
29111 ac_header_preproc=yes
29112else
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
29116 ac_header_preproc=no
29117fi
Reid Spencera773bd52006-08-04 18:18:08 +000029118
Reid Spencer0a262ba2005-08-24 10:07:20 +000029119rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29121echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029122
29123# So? What about this header?
29124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29125 yes:no: )
29126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29130 ac_header_preproc=yes
29131 ;;
29132 no:yes:* )
29133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029145 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029146## ----------------------------------- ##
29147## Report this to llvmbugs@cs.uiuc.edu ##
29148## ----------------------------------- ##
29149_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029150 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029151 ;;
29152esac
Reid Spencera773bd52006-08-04 18:18:08 +000029153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029156 echo $ECHO_N "(cached) $ECHO_C" >&6
29157else
29158 eval "$as_ac_Header=\$ac_header_preproc"
29159fi
Reid Spencera773bd52006-08-04 18:18:08 +000029160ac_res=`eval echo '${'$as_ac_Header'}'`
29161 { echo "$as_me:$LINENO: result: $ac_res" >&5
29162echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029163
29164fi
29165if test `eval echo '${'$as_ac_Header'}'` = yes; then
29166 cat >>confdefs.h <<_ACEOF
29167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29168_ACEOF
29169
29170fi
29171
29172done
29173
29174fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029175
29176
Reid Spencera773bd52006-08-04 18:18:08 +000029177{ echo "$as_me:$LINENO: checking for pid_t" >&5
29178echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029179if test "${ac_cv_type_pid_t+set}" = set; then
29180 echo $ECHO_N "(cached) $ECHO_C" >&6
29181else
29182 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029183/* confdefs.h. */
29184_ACEOF
29185cat confdefs.h >>conftest.$ac_ext
29186cat >>conftest.$ac_ext <<_ACEOF
29187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029188$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029189typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029190int
29191main ()
29192{
Reid Spencera773bd52006-08-04 18:18:08 +000029193if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029194 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029195if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029196 return 0;
29197 ;
29198 return 0;
29199}
29200_ACEOF
29201rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029202if { (ac_try="$ac_compile"
29203case "(($ac_try" in
29204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205 *) ac_try_echo=$ac_try;;
29206esac
29207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029209 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029210 grep -v '^ *+' conftest.er1 >conftest.err
29211 rm -f conftest.er1
29212 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29216 { (case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29219esac
29220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029222 ac_status=$?
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; } &&
29225 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029226 { (case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29229esac
29230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029232 ac_status=$?
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; }; then
29235 ac_cv_type_pid_t=yes
29236else
29237 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029238sed 's/^/| /' conftest.$ac_ext >&5
29239
Reid Spencera773bd52006-08-04 18:18:08 +000029240 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029241fi
Reid Spencera773bd52006-08-04 18:18:08 +000029242
29243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029244fi
Reid Spencera773bd52006-08-04 18:18:08 +000029245{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29246echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029247if test $ac_cv_type_pid_t = yes; then
29248 :
29249else
29250
29251cat >>confdefs.h <<_ACEOF
29252#define pid_t int
29253_ACEOF
29254
29255fi
29256
Reid Spencera773bd52006-08-04 18:18:08 +000029257{ echo "$as_me:$LINENO: checking for size_t" >&5
29258echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029259if test "${ac_cv_type_size_t+set}" = set; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29261else
29262 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029263/* confdefs.h. */
29264_ACEOF
29265cat confdefs.h >>conftest.$ac_ext
29266cat >>conftest.$ac_ext <<_ACEOF
29267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029268$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029269typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029270int
29271main ()
29272{
Reid Spencera773bd52006-08-04 18:18:08 +000029273if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029274 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029275if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029276 return 0;
29277 ;
29278 return 0;
29279}
29280_ACEOF
29281rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029282if { (ac_try="$ac_compile"
29283case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29286esac
29287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29299esac
29300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029302 ac_status=$?
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29309esac
29310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_cv_type_size_t=yes
29316else
29317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029318sed 's/^/| /' conftest.$ac_ext >&5
29319
Reid Spencera773bd52006-08-04 18:18:08 +000029320 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029321fi
Reid Spencera773bd52006-08-04 18:18:08 +000029322
29323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029324fi
Reid Spencera773bd52006-08-04 18:18:08 +000029325{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29326echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029327if test $ac_cv_type_size_t = yes; then
29328 :
29329else
29330
29331cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029332#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029333_ACEOF
29334
29335fi
29336
Reid Spencera773bd52006-08-04 18:18:08 +000029337{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29338echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029339if test "${ac_cv_type_signal+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29341else
29342 cat >conftest.$ac_ext <<_ACEOF
29343/* confdefs.h. */
29344_ACEOF
29345cat confdefs.h >>conftest.$ac_ext
29346cat >>conftest.$ac_ext <<_ACEOF
29347/* end confdefs.h. */
29348#include <sys/types.h>
29349#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029350
29351int
29352main ()
29353{
Reid Spencera773bd52006-08-04 18:18:08 +000029354return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029355 ;
29356 return 0;
29357}
29358_ACEOF
29359rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029360if { (ac_try="$ac_compile"
29361case "(($ac_try" in
29362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363 *) ac_try_echo=$ac_try;;
29364esac
29365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029367 ac_status=$?
29368 grep -v '^ *+' conftest.er1 >conftest.err
29369 rm -f conftest.er1
29370 cat conftest.err >&5
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29374 { (case "(($ac_try" in
29375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376 *) ac_try_echo=$ac_try;;
29377esac
29378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29379 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029380 ac_status=$?
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; } &&
29383 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029384 { (case "(($ac_try" in
29385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386 *) ac_try_echo=$ac_try;;
29387esac
29388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029390 ac_status=$?
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029393 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029394else
29395 echo "$as_me: failed program was:" >&5
29396sed 's/^/| /' conftest.$ac_ext >&5
29397
Reid Spencera773bd52006-08-04 18:18:08 +000029398 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029399fi
Reid Spencera773bd52006-08-04 18:18:08 +000029400
29401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029402fi
Reid Spencera773bd52006-08-04 18:18:08 +000029403{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29404echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029405
29406cat >>confdefs.h <<_ACEOF
29407#define RETSIGTYPE $ac_cv_type_signal
29408_ACEOF
29409
29410
Reid Spencera773bd52006-08-04 18:18:08 +000029411{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29412echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029413if test "${ac_cv_struct_tm+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29415else
29416 cat >conftest.$ac_ext <<_ACEOF
29417/* confdefs.h. */
29418_ACEOF
29419cat confdefs.h >>conftest.$ac_ext
29420cat >>conftest.$ac_ext <<_ACEOF
29421/* end confdefs.h. */
29422#include <sys/types.h>
29423#include <time.h>
29424
29425int
29426main ()
29427{
29428struct tm *tp; tp->tm_sec;
29429 ;
29430 return 0;
29431}
29432_ACEOF
29433rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029434if { (ac_try="$ac_compile"
29435case "(($ac_try" in
29436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437 *) ac_try_echo=$ac_try;;
29438esac
29439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029441 ac_status=$?
29442 grep -v '^ *+' conftest.er1 >conftest.err
29443 rm -f conftest.er1
29444 cat conftest.err >&5
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29448 { (case "(($ac_try" in
29449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450 *) ac_try_echo=$ac_try;;
29451esac
29452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029454 ac_status=$?
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; } &&
29457 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029458 { (case "(($ac_try" in
29459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29460 *) ac_try_echo=$ac_try;;
29461esac
29462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29463 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029464 ac_status=$?
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; }; then
29467 ac_cv_struct_tm=time.h
29468else
29469 echo "$as_me: failed program was:" >&5
29470sed 's/^/| /' conftest.$ac_ext >&5
29471
Reid Spencera773bd52006-08-04 18:18:08 +000029472 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029473fi
Reid Spencera773bd52006-08-04 18:18:08 +000029474
29475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029476fi
Reid Spencera773bd52006-08-04 18:18:08 +000029477{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29478echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029479if test $ac_cv_struct_tm = sys/time.h; then
29480
29481cat >>confdefs.h <<\_ACEOF
29482#define TM_IN_SYS_TIME 1
29483_ACEOF
29484
29485fi
29486
Reid Spencera773bd52006-08-04 18:18:08 +000029487{ echo "$as_me:$LINENO: checking for int64_t" >&5
29488echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029489if test "${ac_cv_type_int64_t+set}" = set; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29491else
29492 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029493/* confdefs.h. */
29494_ACEOF
29495cat confdefs.h >>conftest.$ac_ext
29496cat >>conftest.$ac_ext <<_ACEOF
29497/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029498$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029499typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029500int
29501main ()
29502{
Reid Spencera773bd52006-08-04 18:18:08 +000029503if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029504 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029505if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029506 return 0;
29507 ;
29508 return 0;
29509}
29510_ACEOF
29511rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029512if { (ac_try="$ac_compile"
29513case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29516esac
29517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029520 grep -v '^ *+' conftest.er1 >conftest.err
29521 rm -f conftest.er1
29522 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29526 { (case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29529esac
29530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029532 ac_status=$?
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; } &&
29535 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029536 { (case "(($ac_try" in
29537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538 *) ac_try_echo=$ac_try;;
29539esac
29540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029542 ac_status=$?
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; }; then
29545 ac_cv_type_int64_t=yes
29546else
29547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029548sed 's/^/| /' conftest.$ac_ext >&5
29549
Reid Spencera773bd52006-08-04 18:18:08 +000029550 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029551fi
Reid Spencera773bd52006-08-04 18:18:08 +000029552
29553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029554fi
Reid Spencera773bd52006-08-04 18:18:08 +000029555{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29556echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029557if test $ac_cv_type_int64_t = yes; then
29558
29559cat >>confdefs.h <<_ACEOF
29560#define HAVE_INT64_T 1
29561_ACEOF
29562
29563
29564else
29565 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29566echo "$as_me: error: Type int64_t required but not found" >&2;}
29567 { (exit 1); exit 1; }; }
29568fi
29569
Reid Spencera773bd52006-08-04 18:18:08 +000029570{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29571echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029572if test "${ac_cv_type_uint64_t+set}" = set; then
29573 echo $ECHO_N "(cached) $ECHO_C" >&6
29574else
29575 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029576/* confdefs.h. */
29577_ACEOF
29578cat confdefs.h >>conftest.$ac_ext
29579cat >>conftest.$ac_ext <<_ACEOF
29580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029581$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029582typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029583int
29584main ()
29585{
Reid Spencera773bd52006-08-04 18:18:08 +000029586if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029587 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029588if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029589 return 0;
29590 ;
29591 return 0;
29592}
29593_ACEOF
29594rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029595if { (ac_try="$ac_compile"
29596case "(($ac_try" in
29597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598 *) ac_try_echo=$ac_try;;
29599esac
29600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029603 grep -v '^ *+' conftest.er1 >conftest.err
29604 rm -f conftest.er1
29605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29609 { (case "(($ac_try" in
29610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29611 *) ac_try_echo=$ac_try;;
29612esac
29613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29614 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029615 ac_status=$?
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); }; } &&
29618 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029619 { (case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29622esac
29623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029625 ac_status=$?
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; }; then
29628 ac_cv_type_uint64_t=yes
29629else
29630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029631sed 's/^/| /' conftest.$ac_ext >&5
29632
Reid Spencera773bd52006-08-04 18:18:08 +000029633 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029634fi
Reid Spencera773bd52006-08-04 18:18:08 +000029635
29636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029637fi
Reid Spencera773bd52006-08-04 18:18:08 +000029638{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29639echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029640if test $ac_cv_type_uint64_t = yes; then
29641
29642cat >>confdefs.h <<_ACEOF
29643#define HAVE_UINT64_T 1
29644_ACEOF
29645
29646
29647else
Reid Spencera773bd52006-08-04 18:18:08 +000029648 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29649echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029650if test "${ac_cv_type_u_int64_t+set}" = set; then
29651 echo $ECHO_N "(cached) $ECHO_C" >&6
29652else
29653 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029654/* confdefs.h. */
29655_ACEOF
29656cat confdefs.h >>conftest.$ac_ext
29657cat >>conftest.$ac_ext <<_ACEOF
29658/* end confdefs.h. */
29659$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029660typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029661int
29662main ()
29663{
Reid Spencera773bd52006-08-04 18:18:08 +000029664if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029665 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029666if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029667 return 0;
29668 ;
29669 return 0;
29670}
29671_ACEOF
29672rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029673if { (ac_try="$ac_compile"
29674case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29677esac
29678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029681 grep -v '^ *+' conftest.er1 >conftest.err
29682 rm -f conftest.er1
29683 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29690esac
29691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029693 ac_status=$?
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; } &&
29696 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029697 { (case "(($ac_try" in
29698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699 *) ac_try_echo=$ac_try;;
29700esac
29701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; }; then
29706 ac_cv_type_u_int64_t=yes
29707else
29708 echo "$as_me: failed program was:" >&5
29709sed 's/^/| /' conftest.$ac_ext >&5
29710
Reid Spencera773bd52006-08-04 18:18:08 +000029711 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029712fi
Reid Spencera773bd52006-08-04 18:18:08 +000029713
29714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029715fi
Reid Spencera773bd52006-08-04 18:18:08 +000029716{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29717echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029718if test $ac_cv_type_u_int64_t = yes; then
29719
29720cat >>confdefs.h <<_ACEOF
29721#define HAVE_U_INT64_T 1
29722_ACEOF
29723
29724
Misha Brukmanceca9042004-09-02 23:02:30 +000029725else
29726 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29727echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29728 { (exit 1); exit 1; }; }
29729fi
29730
John Criswell679ff312004-09-02 18:44:44 +000029731fi
29732
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029733
29734
29735
29736
29737
29738
29739
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029740
29741
Reid Spencerdf3be822006-01-23 08:15:53 +000029742for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029743do
29744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029745{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029748 echo $ECHO_N "(cached) $ECHO_C" >&6
29749else
29750 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029751/* confdefs.h. */
29752_ACEOF
29753cat confdefs.h >>conftest.$ac_ext
29754cat >>conftest.$ac_ext <<_ACEOF
29755/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29758#define $ac_func innocuous_$ac_func
29759
29760/* System header to define __stub macros and hopefully few prototypes,
29761 which can conflict with char $ac_func (); below.
29762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29763 <limits.h> exists even on freestanding compilers. */
29764
29765#ifdef __STDC__
29766# include <limits.h>
29767#else
29768# include <assert.h>
29769#endif
29770
29771#undef $ac_func
29772
Reid Spencera773bd52006-08-04 18:18:08 +000029773/* Override any GCC internal prototype to avoid an error.
29774 Use char because int might match the return type of a GCC
29775 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029776#ifdef __cplusplus
29777extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029778#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029779char $ac_func ();
29780/* The GNU C library defines this for functions which it implements
29781 to always fail with ENOSYS. Some functions are actually named
29782 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029783#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029784choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029785#endif
John Criswell7a73b802003-06-30 21:59:07 +000029786
John Criswell7a73b802003-06-30 21:59:07 +000029787int
29788main ()
29789{
Reid Spencera773bd52006-08-04 18:18:08 +000029790return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029791 ;
29792 return 0;
29793}
29794_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029795rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029796if { (ac_try="$ac_link"
29797case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29800esac
29801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029804 grep -v '^ *+' conftest.er1 >conftest.err
29805 rm -f conftest.er1
29806 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29810 { (case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29813esac
29814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029819 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029820 { (case "(($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_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029826 ac_status=$?
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029829 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029830else
29831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029832sed 's/^/| /' conftest.$ac_ext >&5
29833
Reid Spencera773bd52006-08-04 18:18:08 +000029834 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029835fi
Reid Spencera773bd52006-08-04 18:18:08 +000029836
29837rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029838 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029839fi
Reid Spencera773bd52006-08-04 18:18:08 +000029840ac_res=`eval echo '${'$as_ac_var'}'`
29841 { echo "$as_me:$LINENO: result: $ac_res" >&5
29842echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029843if test `eval echo '${'$as_ac_var'}'` = yes; then
29844 cat >>confdefs.h <<_ACEOF
29845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029846_ACEOF
29847
29848fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029849done
John Criswell7a73b802003-06-30 21:59:07 +000029850
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029851
29852
29853
Reid Spencer6af3d262004-12-15 04:01:48 +000029854
29855
Reid Spencer59473af2004-12-25 07:31:29 +000029856
Reid Spencerdf3be822006-01-23 08:15:53 +000029857for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29858do
29859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029860{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029863 echo $ECHO_N "(cached) $ECHO_C" >&6
29864else
29865 cat >conftest.$ac_ext <<_ACEOF
29866/* confdefs.h. */
29867_ACEOF
29868cat confdefs.h >>conftest.$ac_ext
29869cat >>conftest.$ac_ext <<_ACEOF
29870/* end confdefs.h. */
29871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29873#define $ac_func innocuous_$ac_func
29874
29875/* System header to define __stub macros and hopefully few prototypes,
29876 which can conflict with char $ac_func (); below.
29877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29878 <limits.h> exists even on freestanding compilers. */
29879
29880#ifdef __STDC__
29881# include <limits.h>
29882#else
29883# include <assert.h>
29884#endif
29885
29886#undef $ac_func
29887
Reid Spencera773bd52006-08-04 18:18:08 +000029888/* Override any GCC internal prototype to avoid an error.
29889 Use char because int might match the return type of a GCC
29890 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000029891#ifdef __cplusplus
29892extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000029893#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000029894char $ac_func ();
29895/* The GNU C library defines this for functions which it implements
29896 to always fail with ENOSYS. Some functions are actually named
29897 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029898#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000029899choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000029900#endif
29901
29902int
29903main ()
29904{
Reid Spencera773bd52006-08-04 18:18:08 +000029905return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000029906 ;
29907 return 0;
29908}
29909_ACEOF
29910rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029911if { (ac_try="$ac_link"
29912case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29915esac
29916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000029918 ac_status=$?
29919 grep -v '^ *+' conftest.er1 >conftest.err
29920 rm -f conftest.er1
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29925 { (case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29928esac
29929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000029931 ac_status=$?
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; } &&
29934 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029935 { (case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29938esac
29939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000029941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; }; then
29944 eval "$as_ac_var=yes"
29945else
29946 echo "$as_me: failed program was:" >&5
29947sed 's/^/| /' conftest.$ac_ext >&5
29948
Reid Spencera773bd52006-08-04 18:18:08 +000029949 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000029950fi
Reid Spencera773bd52006-08-04 18:18:08 +000029951
29952rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000029953 conftest$ac_exeext conftest.$ac_ext
29954fi
Reid Spencera773bd52006-08-04 18:18:08 +000029955ac_res=`eval echo '${'$as_ac_var'}'`
29956 { echo "$as_me:$LINENO: result: $ac_res" >&5
29957echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000029958if test `eval echo '${'$as_ac_var'}'` = yes; then
29959 cat >>confdefs.h <<_ACEOF
29960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29961_ACEOF
29962
29963fi
29964done
29965
29966
29967
29968
29969
29970
29971
29972
29973for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000029974do
29975as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029976{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29977echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29978if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000029979 echo $ECHO_N "(cached) $ECHO_C" >&6
29980else
29981 cat >conftest.$ac_ext <<_ACEOF
29982/* confdefs.h. */
29983_ACEOF
29984cat confdefs.h >>conftest.$ac_ext
29985cat >>conftest.$ac_ext <<_ACEOF
29986/* end confdefs.h. */
29987/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29989#define $ac_func innocuous_$ac_func
29990
29991/* System header to define __stub macros and hopefully few prototypes,
29992 which can conflict with char $ac_func (); below.
29993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29994 <limits.h> exists even on freestanding compilers. */
29995
29996#ifdef __STDC__
29997# include <limits.h>
29998#else
29999# include <assert.h>
30000#endif
30001
30002#undef $ac_func
30003
Reid Spencera773bd52006-08-04 18:18:08 +000030004/* Override any GCC internal prototype to avoid an error.
30005 Use char because int might match the return type of a GCC
30006 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030007#ifdef __cplusplus
30008extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030009#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030010char $ac_func ();
30011/* The GNU C library defines this for functions which it implements
30012 to always fail with ENOSYS. Some functions are actually named
30013 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030014#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030015choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030016#endif
30017
30018int
30019main ()
30020{
Reid Spencera773bd52006-08-04 18:18:08 +000030021return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030022 ;
30023 return 0;
30024}
30025_ACEOF
30026rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030027if { (ac_try="$ac_link"
30028case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30031esac
30032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030034 ac_status=$?
30035 grep -v '^ *+' conftest.er1 >conftest.err
30036 rm -f conftest.er1
30037 cat conftest.err >&5
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30041 { (case "(($ac_try" in
30042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043 *) ac_try_echo=$ac_try;;
30044esac
30045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30046 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030047 ac_status=$?
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); }; } &&
30050 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030051 { (case "(($ac_try" in
30052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30054esac
30055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 eval "$as_ac_var=yes"
30061else
30062 echo "$as_me: failed program was:" >&5
30063sed 's/^/| /' conftest.$ac_ext >&5
30064
Reid Spencera773bd52006-08-04 18:18:08 +000030065 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030066fi
Reid Spencera773bd52006-08-04 18:18:08 +000030067
30068rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030069 conftest$ac_exeext conftest.$ac_ext
30070fi
Reid Spencera773bd52006-08-04 18:18:08 +000030071ac_res=`eval echo '${'$as_ac_var'}'`
30072 { echo "$as_me:$LINENO: result: $ac_res" >&5
30073echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030074if test `eval echo '${'$as_ac_var'}'` = yes; then
30075 cat >>confdefs.h <<_ACEOF
30076#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30077_ACEOF
30078
30079fi
30080done
30081
30082
Reid Spencerba46ca32004-12-31 05:49:15 +000030083
30084
Chris Lattner0b142592005-11-14 06:57:34 +000030085
Chris Lattner511f11d2005-11-14 07:25:50 +000030086for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030087do
30088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030092 echo $ECHO_N "(cached) $ECHO_C" >&6
30093else
30094 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030095/* confdefs.h. */
30096_ACEOF
30097cat confdefs.h >>conftest.$ac_ext
30098cat >>conftest.$ac_ext <<_ACEOF
30099/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30102#define $ac_func innocuous_$ac_func
30103
30104/* System header to define __stub macros and hopefully few prototypes,
30105 which can conflict with char $ac_func (); below.
30106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30107 <limits.h> exists even on freestanding compilers. */
30108
30109#ifdef __STDC__
30110# include <limits.h>
30111#else
30112# include <assert.h>
30113#endif
30114
30115#undef $ac_func
30116
Reid Spencera773bd52006-08-04 18:18:08 +000030117/* Override any GCC internal prototype to avoid an error.
30118 Use char because int might match the return type of a GCC
30119 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030120#ifdef __cplusplus
30121extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030122#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030123char $ac_func ();
30124/* The GNU C library defines this for functions which it implements
30125 to always fail with ENOSYS. Some functions are actually named
30126 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030127#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030128choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030129#endif
John Criswell7a73b802003-06-30 21:59:07 +000030130
John Criswell7a73b802003-06-30 21:59:07 +000030131int
30132main ()
30133{
Reid Spencera773bd52006-08-04 18:18:08 +000030134return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030135 ;
30136 return 0;
30137}
30138_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030139rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030140if { (ac_try="$ac_link"
30141case "(($ac_try" in
30142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30143 *) ac_try_echo=$ac_try;;
30144esac
30145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30146 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030148 grep -v '^ *+' conftest.er1 >conftest.err
30149 rm -f conftest.er1
30150 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30154 { (case "(($ac_try" in
30155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156 *) ac_try_echo=$ac_try;;
30157esac
30158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030160 ac_status=$?
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030163 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030164 { (case "(($ac_try" in
30165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166 *) ac_try_echo=$ac_try;;
30167esac
30168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030170 ac_status=$?
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030173 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030174else
30175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030176sed 's/^/| /' conftest.$ac_ext >&5
30177
Reid Spencera773bd52006-08-04 18:18:08 +000030178 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030179fi
Reid Spencera773bd52006-08-04 18:18:08 +000030180
30181rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030182 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030183fi
Reid Spencera773bd52006-08-04 18:18:08 +000030184ac_res=`eval echo '${'$as_ac_var'}'`
30185 { echo "$as_me:$LINENO: result: $ac_res" >&5
30186echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030187if test `eval echo '${'$as_ac_var'}'` = yes; then
30188 cat >>confdefs.h <<_ACEOF
30189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030190_ACEOF
30191
30192fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030193done
John Criswell7a73b802003-06-30 21:59:07 +000030194
Reid Spencercdb08a32006-06-05 16:11:07 +000030195
30196
30197
30198
30199
30200
30201for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30202do
30203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030204{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030207 echo $ECHO_N "(cached) $ECHO_C" >&6
30208else
30209 cat >conftest.$ac_ext <<_ACEOF
30210/* confdefs.h. */
30211_ACEOF
30212cat confdefs.h >>conftest.$ac_ext
30213cat >>conftest.$ac_ext <<_ACEOF
30214/* end confdefs.h. */
30215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30217#define $ac_func innocuous_$ac_func
30218
30219/* System header to define __stub macros and hopefully few prototypes,
30220 which can conflict with char $ac_func (); below.
30221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30222 <limits.h> exists even on freestanding compilers. */
30223
30224#ifdef __STDC__
30225# include <limits.h>
30226#else
30227# include <assert.h>
30228#endif
30229
30230#undef $ac_func
30231
Reid Spencera773bd52006-08-04 18:18:08 +000030232/* Override any GCC internal prototype to avoid an error.
30233 Use char because int might match the return type of a GCC
30234 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030235#ifdef __cplusplus
30236extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030237#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030238char $ac_func ();
30239/* The GNU C library defines this for functions which it implements
30240 to always fail with ENOSYS. Some functions are actually named
30241 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030242#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030243choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030244#endif
30245
30246int
30247main ()
30248{
Reid Spencera773bd52006-08-04 18:18:08 +000030249return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030250 ;
30251 return 0;
30252}
30253_ACEOF
30254rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030255if { (ac_try="$ac_link"
30256case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30259esac
30260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030262 ac_status=$?
30263 grep -v '^ *+' conftest.er1 >conftest.err
30264 rm -f conftest.er1
30265 cat conftest.err >&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30272esac
30273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282esac
30283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
30288 eval "$as_ac_var=yes"
30289else
30290 echo "$as_me: failed program was:" >&5
30291sed 's/^/| /' conftest.$ac_ext >&5
30292
Reid Spencera773bd52006-08-04 18:18:08 +000030293 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030294fi
Reid Spencera773bd52006-08-04 18:18:08 +000030295
30296rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030297 conftest$ac_exeext conftest.$ac_ext
30298fi
Reid Spencera773bd52006-08-04 18:18:08 +000030299ac_res=`eval echo '${'$as_ac_var'}'`
30300 { echo "$as_me:$LINENO: result: $ac_res" >&5
30301echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030302if test `eval echo '${'$as_ac_var'}'` = yes; then
30303 cat >>confdefs.h <<_ACEOF
30304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30305_ACEOF
30306
30307fi
30308done
30309
Reid Spencera773bd52006-08-04 18:18:08 +000030310{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30311echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030312if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030313 echo $ECHO_N "(cached) $ECHO_C" >&6
30314else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030315 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030316ac_cpp='$CPP $CPPFLAGS'
30317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30319ac_compiler_gnu=$ac_cv_c_compiler_gnu
30320
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030321 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030322 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030323else
30324 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030326 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030327_ACEOF
30328cat confdefs.h >>conftest.$ac_ext
30329cat >>conftest.$ac_ext <<_ACEOF
30330/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030331
John Criswella0137d32003-10-13 16:22:01 +000030332#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030333#include <stdlib.h>
30334
John Criswella0137d32003-10-13 16:22:01 +000030335int
30336main ()
30337{
30338
Reid Spencer2706f8c2004-09-19 23:53:36 +000030339volatile double A, B;
30340char Buffer[100];
30341A = 1;
30342A /= 10.0;
30343sprintf(Buffer, "%a", A);
30344B = atof(Buffer);
30345if (A != B)
30346 return (1);
30347if (A != 0x1.999999999999ap-4)
30348 return (1);
30349return (0);
John Criswella0137d32003-10-13 16:22:01 +000030350 ;
30351 return 0;
30352}
30353_ACEOF
30354rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030355if { (ac_try="$ac_link"
30356case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30359esac
30360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030365 { (case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30368esac
30369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030374 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030375else
30376 echo "$as_me: program exited with status $ac_status" >&5
30377echo "$as_me: failed program was:" >&5
30378sed 's/^/| /' conftest.$ac_ext >&5
30379
30380( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030381llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030382fi
Reid Spencera773bd52006-08-04 18:18:08 +000030383rm -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 +000030384fi
Reid Spencera773bd52006-08-04 18:18:08 +000030385
30386
Reid Spencer2706f8c2004-09-19 23:53:36 +000030387 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030388ac_cpp='$CPP $CPPFLAGS'
30389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30391ac_compiler_gnu=$ac_cv_c_compiler_gnu
30392
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030393fi
Reid Spencera773bd52006-08-04 18:18:08 +000030394{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30395echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030396 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030397
30398cat >>confdefs.h <<\_ACEOF
30399#define HAVE_PRINTF_A 1
30400_ACEOF
30401
Reid Spencer2706f8c2004-09-19 23:53:36 +000030402 fi
John Criswella0137d32003-10-13 16:22:01 +000030403
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030404# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30405# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030406{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30407echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030408if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030409 echo $ECHO_N "(cached) $ECHO_C" >&6
30410else
John Criswell0021c312004-02-13 21:57:29 +000030411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030412/* confdefs.h. */
30413_ACEOF
30414cat confdefs.h >>conftest.$ac_ext
30415cat >>conftest.$ac_ext <<_ACEOF
30416/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030417#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030418int
30419main ()
30420{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030421char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030422 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030423 ;
30424 return 0;
30425}
30426_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030427rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030428if { (ac_try="$ac_link"
30429case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30432esac
30433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030436 grep -v '^ *+' conftest.er1 >conftest.err
30437 rm -f conftest.er1
30438 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30442 { (case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30445esac
30446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030448 ac_status=$?
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030451 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030452 { (case "(($ac_try" in
30453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454 *) ac_try_echo=$ac_try;;
30455esac
30456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30457 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030458 ac_status=$?
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030461 ac_cv_working_alloca_h=yes
30462else
30463 echo "$as_me: failed program was:" >&5
30464sed 's/^/| /' conftest.$ac_ext >&5
30465
Reid Spencera773bd52006-08-04 18:18:08 +000030466 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030467fi
Reid Spencera773bd52006-08-04 18:18:08 +000030468
30469rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030470 conftest$ac_exeext conftest.$ac_ext
30471fi
Reid Spencera773bd52006-08-04 18:18:08 +000030472{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30473echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030474if test $ac_cv_working_alloca_h = yes; then
30475
30476cat >>confdefs.h <<\_ACEOF
30477#define HAVE_ALLOCA_H 1
30478_ACEOF
30479
30480fi
30481
Reid Spencera773bd52006-08-04 18:18:08 +000030482{ echo "$as_me:$LINENO: checking for alloca" >&5
30483echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030484if test "${ac_cv_func_alloca_works+set}" = set; then
30485 echo $ECHO_N "(cached) $ECHO_C" >&6
30486else
30487 cat >conftest.$ac_ext <<_ACEOF
30488/* confdefs.h. */
30489_ACEOF
30490cat confdefs.h >>conftest.$ac_ext
30491cat >>conftest.$ac_ext <<_ACEOF
30492/* end confdefs.h. */
30493#ifdef __GNUC__
30494# define alloca __builtin_alloca
30495#else
30496# ifdef _MSC_VER
30497# include <malloc.h>
30498# define alloca _alloca
30499# else
30500# if HAVE_ALLOCA_H
30501# include <alloca.h>
30502# else
30503# ifdef _AIX
30504 #pragma alloca
30505# else
30506# ifndef alloca /* predefined by HP cc +Olibcalls */
30507char *alloca ();
30508# endif
30509# endif
30510# endif
30511# endif
30512#endif
30513
30514int
30515main ()
30516{
30517char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030518 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030519 ;
30520 return 0;
30521}
30522_ACEOF
30523rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030524if { (ac_try="$ac_link"
30525case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30528esac
30529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030531 ac_status=$?
30532 grep -v '^ *+' conftest.er1 >conftest.err
30533 rm -f conftest.er1
30534 cat conftest.err >&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30538 { (case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30541esac
30542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030544 ac_status=$?
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); }; } &&
30547 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030548 { (case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30551esac
30552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030554 ac_status=$?
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; }; then
30557 ac_cv_func_alloca_works=yes
30558else
30559 echo "$as_me: failed program was:" >&5
30560sed 's/^/| /' conftest.$ac_ext >&5
30561
Reid Spencera773bd52006-08-04 18:18:08 +000030562 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030563fi
Reid Spencera773bd52006-08-04 18:18:08 +000030564
30565rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030566 conftest$ac_exeext conftest.$ac_ext
30567fi
Reid Spencera773bd52006-08-04 18:18:08 +000030568{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30569echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030570
30571if test $ac_cv_func_alloca_works = yes; then
30572
30573cat >>confdefs.h <<\_ACEOF
30574#define HAVE_ALLOCA 1
30575_ACEOF
30576
30577else
30578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30579# that cause trouble. Some versions do not even contain alloca or
30580# contain a buggy version. If you still want to use their alloca,
30581# use ar to extract alloca.o from them instead of compiling alloca.c.
30582
Reid Spencera773bd52006-08-04 18:18:08 +000030583ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030584
30585cat >>confdefs.h <<\_ACEOF
30586#define C_ALLOCA 1
30587_ACEOF
30588
30589
Reid Spencera773bd52006-08-04 18:18:08 +000030590{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30591echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030592if test "${ac_cv_os_cray+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595 cat >conftest.$ac_ext <<_ACEOF
30596/* confdefs.h. */
30597_ACEOF
30598cat confdefs.h >>conftest.$ac_ext
30599cat >>conftest.$ac_ext <<_ACEOF
30600/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030601#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030602webecray
30603#else
30604wenotbecray
30605#endif
30606
30607_ACEOF
30608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30609 $EGREP "webecray" >/dev/null 2>&1; then
30610 ac_cv_os_cray=yes
30611else
30612 ac_cv_os_cray=no
30613fi
30614rm -f conftest*
30615
30616fi
Reid Spencera773bd52006-08-04 18:18:08 +000030617{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30618echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030619if test $ac_cv_os_cray = yes; then
30620 for ac_func in _getb67 GETB67 getb67; do
30621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030622{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030625 echo $ECHO_N "(cached) $ECHO_C" >&6
30626else
30627 cat >conftest.$ac_ext <<_ACEOF
30628/* confdefs.h. */
30629_ACEOF
30630cat confdefs.h >>conftest.$ac_ext
30631cat >>conftest.$ac_ext <<_ACEOF
30632/* end confdefs.h. */
30633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30635#define $ac_func innocuous_$ac_func
30636
30637/* System header to define __stub macros and hopefully few prototypes,
30638 which can conflict with char $ac_func (); below.
30639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30640 <limits.h> exists even on freestanding compilers. */
30641
30642#ifdef __STDC__
30643# include <limits.h>
30644#else
30645# include <assert.h>
30646#endif
30647
30648#undef $ac_func
30649
Reid Spencera773bd52006-08-04 18:18:08 +000030650/* Override any GCC internal prototype to avoid an error.
30651 Use char because int might match the return type of a GCC
30652 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030653#ifdef __cplusplus
30654extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030655#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030656char $ac_func ();
30657/* The GNU C library defines this for functions which it implements
30658 to always fail with ENOSYS. Some functions are actually named
30659 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030660#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030661choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030662#endif
30663
30664int
30665main ()
30666{
Reid Spencera773bd52006-08-04 18:18:08 +000030667return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030668 ;
30669 return 0;
30670}
30671_ACEOF
30672rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030673if { (ac_try="$ac_link"
30674case "(($ac_try" in
30675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30676 *) ac_try_echo=$ac_try;;
30677esac
30678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30679 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030680 ac_status=$?
30681 grep -v '^ *+' conftest.er1 >conftest.err
30682 rm -f conftest.er1
30683 cat conftest.err >&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30687 { (case "(($ac_try" in
30688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30689 *) ac_try_echo=$ac_try;;
30690esac
30691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30692 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030693 ac_status=$?
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); }; } &&
30696 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030697 { (case "(($ac_try" in
30698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699 *) ac_try_echo=$ac_try;;
30700esac
30701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030703 ac_status=$?
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; }; then
30706 eval "$as_ac_var=yes"
30707else
30708 echo "$as_me: failed program was:" >&5
30709sed 's/^/| /' conftest.$ac_ext >&5
30710
Reid Spencera773bd52006-08-04 18:18:08 +000030711 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030712fi
Reid Spencera773bd52006-08-04 18:18:08 +000030713
30714rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030715 conftest$ac_exeext conftest.$ac_ext
30716fi
Reid Spencera773bd52006-08-04 18:18:08 +000030717ac_res=`eval echo '${'$as_ac_var'}'`
30718 { echo "$as_me:$LINENO: result: $ac_res" >&5
30719echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030720if test `eval echo '${'$as_ac_var'}'` = yes; then
30721
30722cat >>confdefs.h <<_ACEOF
30723#define CRAY_STACKSEG_END $ac_func
30724_ACEOF
30725
30726 break
30727fi
30728
30729 done
30730fi
30731
Reid Spencera773bd52006-08-04 18:18:08 +000030732{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30733echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030734if test "${ac_cv_c_stack_direction+set}" = set; then
30735 echo $ECHO_N "(cached) $ECHO_C" >&6
30736else
30737 if test "$cross_compiling" = yes; then
30738 ac_cv_c_stack_direction=0
30739else
30740 cat >conftest.$ac_ext <<_ACEOF
30741/* confdefs.h. */
30742_ACEOF
30743cat confdefs.h >>conftest.$ac_ext
30744cat >>conftest.$ac_ext <<_ACEOF
30745/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030746$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030747int
30748find_stack_direction ()
30749{
30750 static char *addr = 0;
30751 auto char dummy;
30752 if (addr == 0)
30753 {
30754 addr = &dummy;
30755 return find_stack_direction ();
30756 }
John Criswell0021c312004-02-13 21:57:29 +000030757 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030758 return (&dummy > addr) ? 1 : -1;
30759}
John Criswell0021c312004-02-13 21:57:29 +000030760
John Criswell0021c312004-02-13 21:57:29 +000030761int
30762main ()
30763{
Reid Spencera773bd52006-08-04 18:18:08 +000030764 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030765}
30766_ACEOF
30767rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030768if { (ac_try="$ac_link"
30769case "(($ac_try" in
30770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771 *) ac_try_echo=$ac_try;;
30772esac
30773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030775 ac_status=$?
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030778 { (case "(($ac_try" in
30779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780 *) ac_try_echo=$ac_try;;
30781esac
30782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030784 ac_status=$?
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030787 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030788else
30789 echo "$as_me: program exited with status $ac_status" >&5
30790echo "$as_me: failed program was:" >&5
30791sed 's/^/| /' conftest.$ac_ext >&5
30792
30793( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030794ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030795fi
Reid Spencera773bd52006-08-04 18:18:08 +000030796rm -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 +000030797fi
Reid Spencera773bd52006-08-04 18:18:08 +000030798
30799
John Criswell0021c312004-02-13 21:57:29 +000030800fi
Reid Spencera773bd52006-08-04 18:18:08 +000030801{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30802echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030803
30804cat >>confdefs.h <<_ACEOF
30805#define STACK_DIRECTION $ac_cv_c_stack_direction
30806_ACEOF
30807
30808
John Criswell0021c312004-02-13 21:57:29 +000030809fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030810
30811
Reid Spencera773bd52006-08-04 18:18:08 +000030812{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30813echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030814if test "${ac_cv_func_rand48+set}" = set; then
30815 echo $ECHO_N "(cached) $ECHO_C" >&6
30816else
Reid Spencera773bd52006-08-04 18:18:08 +000030817 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030818ac_cpp='$CXXCPP $CPPFLAGS'
30819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30822
30823 cat >conftest.$ac_ext <<_ACEOF
30824/* confdefs.h. */
30825_ACEOF
30826cat confdefs.h >>conftest.$ac_ext
30827cat >>conftest.$ac_ext <<_ACEOF
30828/* end confdefs.h. */
30829#include <stdlib.h>
30830int
30831main ()
30832{
30833srand48(0);lrand48();drand48();
30834 ;
30835 return 0;
30836}
30837_ACEOF
30838rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030839if { (ac_try="$ac_compile"
30840case "(($ac_try" in
30841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842 *) ac_try_echo=$ac_try;;
30843esac
30844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030846 ac_status=$?
30847 grep -v '^ *+' conftest.er1 >conftest.err
30848 rm -f conftest.er1
30849 cat conftest.err >&5
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30853 { (case "(($ac_try" in
30854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30855 *) ac_try_echo=$ac_try;;
30856esac
30857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30858 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030859 ac_status=$?
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; } &&
30862 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030863 { (case "(($ac_try" in
30864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30865 *) ac_try_echo=$ac_try;;
30866esac
30867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30868 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030869 ac_status=$?
30870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871 (exit $ac_status); }; }; then
30872 ac_cv_func_rand48=yes
30873else
30874 echo "$as_me: failed program was:" >&5
30875sed 's/^/| /' conftest.$ac_ext >&5
30876
Reid Spencera773bd52006-08-04 18:18:08 +000030877 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030878fi
Reid Spencera773bd52006-08-04 18:18:08 +000030879
30880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030881 ac_ext=c
30882ac_cpp='$CPP $CPPFLAGS'
30883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30885ac_compiler_gnu=$ac_cv_c_compiler_gnu
30886
30887fi
Reid Spencera773bd52006-08-04 18:18:08 +000030888{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30889echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030890
30891if test "$ac_cv_func_rand48" = "yes" ; then
30892
30893cat >>confdefs.h <<\_ACEOF
30894#define HAVE_RAND48 1
30895_ACEOF
30896
30897fi
John Criswell0021c312004-02-13 21:57:29 +000030898
30899
Reid Spencera773bd52006-08-04 18:18:08 +000030900{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30901echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030902if test "${ac_cv_cxx_namespaces+set}" = set; then
30903 echo $ECHO_N "(cached) $ECHO_C" >&6
30904else
Reid Spencera773bd52006-08-04 18:18:08 +000030905 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030906ac_cpp='$CXXCPP $CPPFLAGS'
30907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30910
30911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030912/* confdefs.h. */
30913_ACEOF
30914cat confdefs.h >>conftest.$ac_ext
30915cat >>conftest.$ac_ext <<_ACEOF
30916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030917namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000030918int
30919main ()
30920{
30921using namespace Outer::Inner; return i;
30922 ;
30923 return 0;
30924}
30925_ACEOF
30926rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030927if { (ac_try="$ac_compile"
30928case "(($ac_try" in
30929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930 *) ac_try_echo=$ac_try;;
30931esac
30932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030934 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030935 grep -v '^ *+' conftest.er1 >conftest.err
30936 rm -f conftest.er1
30937 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30941 { (case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30944esac
30945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 ac_cv_cxx_namespaces=yes
30961else
30962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030963sed 's/^/| /' conftest.$ac_ext >&5
30964
Reid Spencera773bd52006-08-04 18:18:08 +000030965 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000030966fi
Reid Spencera773bd52006-08-04 18:18:08 +000030967
30968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030969 ac_ext=c
30970ac_cpp='$CPP $CPPFLAGS'
30971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30973ac_compiler_gnu=$ac_cv_c_compiler_gnu
30974
30975
30976fi
Reid Spencera773bd52006-08-04 18:18:08 +000030977{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30978echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030979if test "$ac_cv_cxx_namespaces" = yes; then
30980
30981cat >>confdefs.h <<\_ACEOF
30982#define HAVE_NAMESPACES
30983_ACEOF
30984
30985fi
30986
Reid Spencera773bd52006-08-04 18:18:08 +000030987{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30988echo $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 +000030989if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030990 echo $ECHO_N "(cached) $ECHO_C" >&6
30991else
30992
Reid Spencera773bd52006-08-04 18:18:08 +000030993 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030994ac_cpp='$CXXCPP $CPPFLAGS'
30995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30998
30999 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031000/* confdefs.h. */
31001_ACEOF
31002cat confdefs.h >>conftest.$ac_ext
31003cat >>conftest.$ac_ext <<_ACEOF
31004/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031005#include <ext/hash_map>
31006#ifdef HAVE_NAMESPACES
31007using namespace std;
31008#endif
John Criswell7a73b802003-06-30 21:59:07 +000031009int
31010main ()
31011{
Brian Gaeke90583492003-11-10 03:06:28 +000031012hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031013 ;
31014 return 0;
31015}
31016_ACEOF
31017rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031018if { (ac_try="$ac_compile"
31019case "(($ac_try" in
31020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31021 *) ac_try_echo=$ac_try;;
31022esac
31023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31024 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031026 grep -v '^ *+' conftest.er1 >conftest.err
31027 rm -f conftest.er1
31028 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31032 { (case "(($ac_try" in
31033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034 *) ac_try_echo=$ac_try;;
31035esac
31036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031038 ac_status=$?
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; } &&
31041 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031042 { (case "(($ac_try" in
31043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31044 *) ac_try_echo=$ac_try;;
31045esac
31046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031048 ac_status=$?
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031051 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031052else
31053 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031054sed 's/^/| /' conftest.$ac_ext >&5
31055
Reid Spencera773bd52006-08-04 18:18:08 +000031056 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031057fi
Reid Spencera773bd52006-08-04 18:18:08 +000031058
31059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031060 ac_ext=c
31061ac_cpp='$CPP $CPPFLAGS'
31062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31064ac_compiler_gnu=$ac_cv_c_compiler_gnu
31065
John Criswell7a73b802003-06-30 21:59:07 +000031066fi
Reid Spencera773bd52006-08-04 18:18:08 +000031067{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31068echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031069 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31070 then
John Criswell9f011862004-09-24 18:28:00 +000031071
31072cat >>confdefs.h <<\_ACEOF
31073#define HAVE_STD_EXT_HASH_MAP 1
31074_ACEOF
31075
31076 else
31077
31078cat >>confdefs.h <<\_ACEOF
31079#define HAVE_STD_EXT_HASH_MAP 0
31080_ACEOF
31081
Brian Gaeke90583492003-11-10 03:06:28 +000031082 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031083
Reid Spencera773bd52006-08-04 18:18:08 +000031084 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31085echo $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 +000031086if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31087 echo $ECHO_N "(cached) $ECHO_C" >&6
31088else
31089
Reid Spencera773bd52006-08-04 18:18:08 +000031090 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031091ac_cpp='$CXXCPP $CPPFLAGS'
31092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31095
31096 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031097/* confdefs.h. */
31098_ACEOF
31099cat confdefs.h >>conftest.$ac_ext
31100cat >>conftest.$ac_ext <<_ACEOF
31101/* end confdefs.h. */
31102#include <ext/hash_map>
31103#ifdef HAVE_NAMESPACES
31104using namespace __gnu_cxx;
31105#endif
31106int
31107main ()
31108{
31109hash_map<int,int> t;
31110 ;
31111 return 0;
31112}
31113_ACEOF
31114rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031115if { (ac_try="$ac_compile"
31116case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31119esac
31120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031122 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031123 grep -v '^ *+' conftest.er1 >conftest.err
31124 rm -f conftest.er1
31125 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31129 { (case "(($ac_try" in
31130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131 *) ac_try_echo=$ac_try;;
31132esac
31133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031135 ac_status=$?
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; } &&
31138 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031139 { (case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31142esac
31143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031145 ac_status=$?
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); }; }; then
31148 ac_cv_cxx_have_gnu_ext_hash_map=yes
31149else
31150 echo "$as_me: failed program was:" >&5
31151sed 's/^/| /' conftest.$ac_ext >&5
31152
Reid Spencera773bd52006-08-04 18:18:08 +000031153 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031154fi
Reid Spencera773bd52006-08-04 18:18:08 +000031155
31156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031157 ac_ext=c
31158ac_cpp='$CPP $CPPFLAGS'
31159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31161ac_compiler_gnu=$ac_cv_c_compiler_gnu
31162
31163fi
Reid Spencera773bd52006-08-04 18:18:08 +000031164{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31165echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031166 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31167 then
John Criswell9f011862004-09-24 18:28:00 +000031168
31169cat >>confdefs.h <<\_ACEOF
31170#define HAVE_GNU_EXT_HASH_MAP 1
31171_ACEOF
31172
31173 else
31174
31175cat >>confdefs.h <<\_ACEOF
31176#define HAVE_GNU_EXT_HASH_MAP 0
31177_ACEOF
31178
Brian Gaeke90583492003-11-10 03:06:28 +000031179 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031180
Reid Spencera773bd52006-08-04 18:18:08 +000031181 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31182echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031183if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31184 echo $ECHO_N "(cached) $ECHO_C" >&6
31185else
John Criswell7a73b802003-06-30 21:59:07 +000031186
Reid Spencera773bd52006-08-04 18:18:08 +000031187 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031188ac_cpp='$CXXCPP $CPPFLAGS'
31189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31192
31193 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031194/* confdefs.h. */
31195_ACEOF
31196cat confdefs.h >>conftest.$ac_ext
31197cat >>conftest.$ac_ext <<_ACEOF
31198/* end confdefs.h. */
31199#include <hash_map>
31200int
31201main ()
31202{
31203hash_map<int,int> t;
31204 ;
31205 return 0;
31206}
31207_ACEOF
31208rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031209if { (ac_try="$ac_compile"
31210case "(($ac_try" in
31211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212 *) ac_try_echo=$ac_try;;
31213esac
31214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031217 grep -v '^ *+' conftest.er1 >conftest.err
31218 rm -f conftest.er1
31219 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31223 { (case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226esac
31227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; } &&
31232 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031233 { (case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31236esac
31237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031239 ac_status=$?
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; }; then
31242 ac_cv_cxx_have_global_hash_map=yes
31243else
31244 echo "$as_me: failed program was:" >&5
31245sed 's/^/| /' conftest.$ac_ext >&5
31246
Reid Spencera773bd52006-08-04 18:18:08 +000031247 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031248fi
Reid Spencera773bd52006-08-04 18:18:08 +000031249
31250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031251 ac_ext=c
31252ac_cpp='$CPP $CPPFLAGS'
31253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31255ac_compiler_gnu=$ac_cv_c_compiler_gnu
31256
31257fi
Reid Spencera773bd52006-08-04 18:18:08 +000031258{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31259echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031260 if test "$ac_cv_cxx_have_global_hash_map" = yes
31261 then
John Criswell9f011862004-09-24 18:28:00 +000031262
31263cat >>confdefs.h <<\_ACEOF
31264#define HAVE_GLOBAL_HASH_MAP 1
31265_ACEOF
31266
31267 else
31268
31269cat >>confdefs.h <<\_ACEOF
31270#define HAVE_GLOBAL_HASH_MAP 0
31271_ACEOF
31272
Brian Gaeke90583492003-11-10 03:06:28 +000031273 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031274
Reid Spencera773bd52006-08-04 18:18:08 +000031275{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31276echo $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 +000031277if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031278 echo $ECHO_N "(cached) $ECHO_C" >&6
31279else
31280
Reid Spencera773bd52006-08-04 18:18:08 +000031281 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031282ac_cpp='$CXXCPP $CPPFLAGS'
31283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31286
31287 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031288/* confdefs.h. */
31289_ACEOF
31290cat confdefs.h >>conftest.$ac_ext
31291cat >>conftest.$ac_ext <<_ACEOF
31292/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031293#include <ext/hash_set>
31294#ifdef HAVE_NAMESPACES
31295using namespace std;
31296#endif
John Criswell7a73b802003-06-30 21:59:07 +000031297int
31298main ()
31299{
Brian Gaeke90583492003-11-10 03:06:28 +000031300hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031301 ;
31302 return 0;
31303}
31304_ACEOF
31305rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031306if { (ac_try="$ac_compile"
31307case "(($ac_try" in
31308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309 *) ac_try_echo=$ac_try;;
31310esac
31311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031314 grep -v '^ *+' conftest.er1 >conftest.err
31315 rm -f conftest.er1
31316 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31320 { (case "(($ac_try" in
31321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31323esac
31324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031326 ac_status=$?
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; } &&
31329 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031330 { (case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31333esac
31334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031339 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031340else
31341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031342sed 's/^/| /' conftest.$ac_ext >&5
31343
Reid Spencera773bd52006-08-04 18:18:08 +000031344 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031345fi
Reid Spencera773bd52006-08-04 18:18:08 +000031346
31347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031348 ac_ext=c
31349ac_cpp='$CPP $CPPFLAGS'
31350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352ac_compiler_gnu=$ac_cv_c_compiler_gnu
31353
31354fi
Reid Spencera773bd52006-08-04 18:18:08 +000031355{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31356echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031357 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31358 then
John Criswell9f011862004-09-24 18:28:00 +000031359
31360cat >>confdefs.h <<\_ACEOF
31361#define HAVE_STD_EXT_HASH_SET 1
31362_ACEOF
31363
31364 else
31365
31366cat >>confdefs.h <<\_ACEOF
31367#define HAVE_STD_EXT_HASH_SET 0
31368_ACEOF
31369
Brian Gaeke90583492003-11-10 03:06:28 +000031370 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031371
Reid Spencera773bd52006-08-04 18:18:08 +000031372 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31373echo $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 +000031374if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31375 echo $ECHO_N "(cached) $ECHO_C" >&6
31376else
31377
Reid Spencera773bd52006-08-04 18:18:08 +000031378 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031379ac_cpp='$CXXCPP $CPPFLAGS'
31380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31383
John Criswell7a73b802003-06-30 21:59:07 +000031384 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031385/* confdefs.h. */
31386_ACEOF
31387cat confdefs.h >>conftest.$ac_ext
31388cat >>conftest.$ac_ext <<_ACEOF
31389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031390#include <ext/hash_set>
31391#ifdef HAVE_NAMESPACES
31392using namespace __gnu_cxx;
31393#endif
John Criswell7a73b802003-06-30 21:59:07 +000031394int
31395main ()
31396{
Brian Gaeke90583492003-11-10 03:06:28 +000031397hash_set<int> t;
31398 ;
31399 return 0;
31400}
31401_ACEOF
31402rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031403if { (ac_try="$ac_compile"
31404case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31407esac
31408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031410 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031411 grep -v '^ *+' conftest.er1 >conftest.err
31412 rm -f conftest.er1
31413 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31417 { (case "(($ac_try" in
31418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31420esac
31421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031423 ac_status=$?
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); }; } &&
31426 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031427 { (case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31430esac
31431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
31436 ac_cv_cxx_have_gnu_ext_hash_set=yes
31437else
31438 echo "$as_me: failed program was:" >&5
31439sed 's/^/| /' conftest.$ac_ext >&5
31440
Reid Spencera773bd52006-08-04 18:18:08 +000031441 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031442fi
Reid Spencera773bd52006-08-04 18:18:08 +000031443
31444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031445 ac_ext=c
31446ac_cpp='$CPP $CPPFLAGS'
31447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31449ac_compiler_gnu=$ac_cv_c_compiler_gnu
31450
31451fi
Reid Spencera773bd52006-08-04 18:18:08 +000031452{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31453echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031454 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31455 then
John Criswell9f011862004-09-24 18:28:00 +000031456
31457cat >>confdefs.h <<\_ACEOF
31458#define HAVE_GNU_EXT_HASH_SET 1
31459_ACEOF
31460
31461 else
31462
31463cat >>confdefs.h <<\_ACEOF
31464#define HAVE_GNU_EXT_HASH_SET 0
31465_ACEOF
31466
Brian Gaeke90583492003-11-10 03:06:28 +000031467 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031468
Reid Spencera773bd52006-08-04 18:18:08 +000031469 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31470echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031471if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31472 echo $ECHO_N "(cached) $ECHO_C" >&6
31473else
31474
Reid Spencera773bd52006-08-04 18:18:08 +000031475 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031476ac_cpp='$CXXCPP $CPPFLAGS'
31477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31480
31481 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031482/* confdefs.h. */
31483_ACEOF
31484cat confdefs.h >>conftest.$ac_ext
31485cat >>conftest.$ac_ext <<_ACEOF
31486/* end confdefs.h. */
31487#include <hash_set>
31488int
31489main ()
31490{
John Criswell7a73b802003-06-30 21:59:07 +000031491hash_set<int> t; return 0;
31492 ;
31493 return 0;
31494}
31495_ACEOF
31496rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031497if { (ac_try="$ac_compile"
31498case "(($ac_try" in
31499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31500 *) ac_try_echo=$ac_try;;
31501esac
31502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31503 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031504 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031505 grep -v '^ *+' conftest.er1 >conftest.err
31506 rm -f conftest.er1
31507 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31511 { (case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31514esac
31515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031517 ac_status=$?
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; } &&
31520 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031521 { (case "(($ac_try" in
31522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523 *) ac_try_echo=$ac_try;;
31524esac
31525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031527 ac_status=$?
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031530 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031531else
31532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031533sed 's/^/| /' conftest.$ac_ext >&5
31534
Reid Spencera773bd52006-08-04 18:18:08 +000031535 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031536fi
Reid Spencera773bd52006-08-04 18:18:08 +000031537
31538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031539 ac_ext=c
31540ac_cpp='$CPP $CPPFLAGS'
31541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31543ac_compiler_gnu=$ac_cv_c_compiler_gnu
31544
John Criswell7a73b802003-06-30 21:59:07 +000031545fi
Reid Spencera773bd52006-08-04 18:18:08 +000031546{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31547echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031548 if test "$ac_cv_cxx_have_global_hash_set" = yes
31549 then
John Criswell9f011862004-09-24 18:28:00 +000031550
31551cat >>confdefs.h <<\_ACEOF
31552#define HAVE_GLOBAL_HASH_SET 1
31553_ACEOF
31554
31555 else
31556
31557cat >>confdefs.h <<\_ACEOF
31558#define HAVE_GLOBAL_HASH_SET 0
31559_ACEOF
31560
Brian Gaeke90583492003-11-10 03:06:28 +000031561 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031562
Reid Spencera773bd52006-08-04 18:18:08 +000031563{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31564echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031565if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31566 echo $ECHO_N "(cached) $ECHO_C" >&6
31567else
31568
Reid Spencera773bd52006-08-04 18:18:08 +000031569 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031570ac_cpp='$CXXCPP $CPPFLAGS'
31571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31574
31575 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031576/* confdefs.h. */
31577_ACEOF
31578cat confdefs.h >>conftest.$ac_ext
31579cat >>conftest.$ac_ext <<_ACEOF
31580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031581#include <iterator>
31582#ifdef HAVE_NAMESPACES
31583using namespace std;
31584#endif
John Criswell7a73b802003-06-30 21:59:07 +000031585int
31586main ()
31587{
31588iterator<int,int,int> t; return 0;
31589 ;
31590 return 0;
31591}
31592_ACEOF
31593rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031594if { (ac_try="$ac_compile"
31595case "(($ac_try" in
31596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31598esac
31599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031602 grep -v '^ *+' conftest.er1 >conftest.err
31603 rm -f conftest.er1
31604 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31608 { (case "(($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_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; } &&
31617 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031618 { (case "(($ac_try" in
31619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31621esac
31622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031624 ac_status=$?
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; }; then
31627 ac_cv_cxx_have_std_iterator=yes
31628else
31629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031630sed 's/^/| /' conftest.$ac_ext >&5
31631
Reid Spencera773bd52006-08-04 18:18:08 +000031632 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031633fi
Reid Spencera773bd52006-08-04 18:18:08 +000031634
31635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031636 ac_ext=c
31637ac_cpp='$CPP $CPPFLAGS'
31638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31640ac_compiler_gnu=$ac_cv_c_compiler_gnu
31641
31642
31643fi
Reid Spencera773bd52006-08-04 18:18:08 +000031644{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31645echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031646if test "$ac_cv_cxx_have_std_iterator" = yes
31647then
John Criswell40468462004-09-24 21:19:06 +000031648
31649cat >>confdefs.h <<\_ACEOF
31650#define HAVE_STD_ITERATOR 1
31651_ACEOF
31652
31653else
31654
31655cat >>confdefs.h <<\_ACEOF
31656#define HAVE_STD_ITERATOR 0
31657_ACEOF
31658
John Criswell7a73b802003-06-30 21:59:07 +000031659fi
31660
Reid Spencera773bd52006-08-04 18:18:08 +000031661{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31662echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031663if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31665else
31666
Reid Spencera773bd52006-08-04 18:18:08 +000031667 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031668ac_cpp='$CXXCPP $CPPFLAGS'
31669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31672
31673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031674/* confdefs.h. */
31675_ACEOF
31676cat confdefs.h >>conftest.$ac_ext
31677cat >>conftest.$ac_ext <<_ACEOF
31678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031679#include <iterator>
31680#ifdef HAVE_NAMESPACES
31681using namespace std;
31682#endif
John Criswell7a73b802003-06-30 21:59:07 +000031683int
31684main ()
31685{
John Criswellc78022e2003-07-29 19:11:58 +000031686bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031687 ;
31688 return 0;
31689}
31690_ACEOF
31691rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031692if { (ac_try="$ac_compile"
31693case "(($ac_try" in
31694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695 *) ac_try_echo=$ac_try;;
31696esac
31697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31698 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031700 grep -v '^ *+' conftest.er1 >conftest.err
31701 rm -f conftest.er1
31702 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31706 { (case "(($ac_try" in
31707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708 *) ac_try_echo=$ac_try;;
31709esac
31710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031712 ac_status=$?
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; } &&
31715 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031716 { (case "(($ac_try" in
31717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718 *) ac_try_echo=$ac_try;;
31719esac
31720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031722 ac_status=$?
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; }; then
31725 ac_cv_cxx_have_bi_iterator=yes
31726else
31727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031728sed 's/^/| /' conftest.$ac_ext >&5
31729
Reid Spencera773bd52006-08-04 18:18:08 +000031730 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031731fi
Reid Spencera773bd52006-08-04 18:18:08 +000031732
31733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031734 ac_ext=c
31735ac_cpp='$CPP $CPPFLAGS'
31736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31738ac_compiler_gnu=$ac_cv_c_compiler_gnu
31739
31740
31741fi
Reid Spencera773bd52006-08-04 18:18:08 +000031742{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31743echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031744if test "$ac_cv_cxx_have_bi_iterator" = yes
31745then
John Criswell40468462004-09-24 21:19:06 +000031746
31747cat >>confdefs.h <<\_ACEOF
31748#define HAVE_BI_ITERATOR 1
31749_ACEOF
31750
31751else
31752
31753cat >>confdefs.h <<\_ACEOF
31754#define HAVE_BI_ITERATOR 0
31755_ACEOF
31756
John Criswell7a73b802003-06-30 21:59:07 +000031757fi
31758
Reid Spencera773bd52006-08-04 18:18:08 +000031759{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31760echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031761if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31762 echo $ECHO_N "(cached) $ECHO_C" >&6
31763else
31764
Reid Spencera773bd52006-08-04 18:18:08 +000031765 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031766ac_cpp='$CXXCPP $CPPFLAGS'
31767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31770
31771 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031772/* confdefs.h. */
31773_ACEOF
31774cat confdefs.h >>conftest.$ac_ext
31775cat >>conftest.$ac_ext <<_ACEOF
31776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031777#include <iterator>
31778#ifdef HAVE_NAMESPACES
31779using namespace std;
31780#endif
John Criswell7a73b802003-06-30 21:59:07 +000031781int
31782main ()
31783{
John Criswellc78022e2003-07-29 19:11:58 +000031784forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031785 ;
31786 return 0;
31787}
31788_ACEOF
31789rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031790if { (ac_try="$ac_compile"
31791case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31794esac
31795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031797 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031798 grep -v '^ *+' conftest.er1 >conftest.err
31799 rm -f conftest.er1
31800 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31804 { (case "(($ac_try" in
31805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806 *) ac_try_echo=$ac_try;;
31807esac
31808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031810 ac_status=$?
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; } &&
31813 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817esac
31818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; }; then
31823 ac_cv_cxx_have_fwd_iterator=yes
31824else
31825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031826sed 's/^/| /' conftest.$ac_ext >&5
31827
Reid Spencera773bd52006-08-04 18:18:08 +000031828 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031829fi
Reid Spencera773bd52006-08-04 18:18:08 +000031830
31831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031832 ac_ext=c
31833ac_cpp='$CPP $CPPFLAGS'
31834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31836ac_compiler_gnu=$ac_cv_c_compiler_gnu
31837
31838
31839fi
Reid Spencera773bd52006-08-04 18:18:08 +000031840{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31841echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031842if test "$ac_cv_cxx_have_fwd_iterator" = yes
31843then
John Criswell40468462004-09-24 21:19:06 +000031844
31845cat >>confdefs.h <<\_ACEOF
31846#define HAVE_FWD_ITERATOR 1
31847_ACEOF
31848
31849else
31850
31851cat >>confdefs.h <<\_ACEOF
31852#define HAVE_FWD_ITERATOR 0
31853_ACEOF
31854
John Criswell7a73b802003-06-30 21:59:07 +000031855fi
31856
31857
Reid Spencera773bd52006-08-04 18:18:08 +000031858{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31859echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031860if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31861 echo $ECHO_N "(cached) $ECHO_C" >&6
31862else
Reid Spencera773bd52006-08-04 18:18:08 +000031863 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031864ac_cpp='$CXXCPP $CPPFLAGS'
31865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31868
Reid Spencerabec8f92004-10-27 23:03:44 +000031869 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031870/* confdefs.h. */
31871_ACEOF
31872cat confdefs.h >>conftest.$ac_ext
31873cat >>conftest.$ac_ext <<_ACEOF
31874/* end confdefs.h. */
31875#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031876int
31877main ()
31878{
31879float f; isnan(f);
31880 ;
31881 return 0;
31882}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031883_ACEOF
31884rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031885if { (ac_try="$ac_compile"
31886case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31889esac
31890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031892 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031893 grep -v '^ *+' conftest.er1 >conftest.err
31894 rm -f conftest.er1
31895 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31899 { (case "(($ac_try" in
31900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901 *) ac_try_echo=$ac_try;;
31902esac
31903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031905 ac_status=$?
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; } &&
31908 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031909 { (case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31912esac
31913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031915 ac_status=$?
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); }; }; then
31918 ac_cv_func_isnan_in_math_h=yes
31919else
31920 echo "$as_me: failed program was:" >&5
31921sed 's/^/| /' conftest.$ac_ext >&5
31922
Reid Spencera773bd52006-08-04 18:18:08 +000031923 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031924fi
Reid Spencera773bd52006-08-04 18:18:08 +000031925
31926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031927 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031928ac_cpp='$CPP $CPPFLAGS'
31929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31931ac_compiler_gnu=$ac_cv_c_compiler_gnu
31932
31933fi
Reid Spencera773bd52006-08-04 18:18:08 +000031934{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
31935echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031936
31937
31938if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031939
31940cat >>confdefs.h <<\_ACEOF
31941#define HAVE_ISNAN_IN_MATH_H 1
31942_ACEOF
31943
Reid Spencerabec8f92004-10-27 23:03:44 +000031944fi
31945
Reid Spencera773bd52006-08-04 18:18:08 +000031946{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
31947echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031948if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
31949 echo $ECHO_N "(cached) $ECHO_C" >&6
31950else
Reid Spencera773bd52006-08-04 18:18:08 +000031951 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031952ac_cpp='$CXXCPP $CPPFLAGS'
31953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31956
Reid Spencerabec8f92004-10-27 23:03:44 +000031957 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031958/* confdefs.h. */
31959_ACEOF
31960cat confdefs.h >>conftest.$ac_ext
31961cat >>conftest.$ac_ext <<_ACEOF
31962/* end confdefs.h. */
31963#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031964int
31965main ()
31966{
31967float f; isnan(f);
31968 ;
31969 return 0;
31970}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031971_ACEOF
31972rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031973if { (ac_try="$ac_compile"
31974case "(($ac_try" in
31975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976 *) ac_try_echo=$ac_try;;
31977esac
31978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031980 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031981 grep -v '^ *+' conftest.er1 >conftest.err
31982 rm -f conftest.er1
31983 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31987 { (case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31990esac
31991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031993 ac_status=$?
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; } &&
31996 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32000esac
32001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032003 ac_status=$?
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; }; then
32006 ac_cv_func_isnan_in_cmath=yes
32007else
32008 echo "$as_me: failed program was:" >&5
32009sed 's/^/| /' conftest.$ac_ext >&5
32010
Reid Spencera773bd52006-08-04 18:18:08 +000032011 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032012fi
Reid Spencera773bd52006-08-04 18:18:08 +000032013
32014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032015 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032016ac_cpp='$CPP $CPPFLAGS'
32017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32019ac_compiler_gnu=$ac_cv_c_compiler_gnu
32020
32021fi
Reid Spencera773bd52006-08-04 18:18:08 +000032022{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32023echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032024
32025if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032026
32027cat >>confdefs.h <<\_ACEOF
32028#define HAVE_ISNAN_IN_CMATH 1
32029_ACEOF
32030
Reid Spencerabec8f92004-10-27 23:03:44 +000032031fi
32032
Reid Spencera773bd52006-08-04 18:18:08 +000032033{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32034echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032035if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32036 echo $ECHO_N "(cached) $ECHO_C" >&6
32037else
Reid Spencera773bd52006-08-04 18:18:08 +000032038 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032039ac_cpp='$CXXCPP $CPPFLAGS'
32040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32043
Reid Spencerabec8f92004-10-27 23:03:44 +000032044 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032045/* confdefs.h. */
32046_ACEOF
32047cat confdefs.h >>conftest.$ac_ext
32048cat >>conftest.$ac_ext <<_ACEOF
32049/* end confdefs.h. */
32050#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032051int
32052main ()
32053{
32054float f; std::isnan(f);
32055 ;
32056 return 0;
32057}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032058_ACEOF
32059rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032060if { (ac_try="$ac_compile"
32061case "(($ac_try" in
32062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063 *) ac_try_echo=$ac_try;;
32064esac
32065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032067 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032068 grep -v '^ *+' conftest.er1 >conftest.err
32069 rm -f conftest.er1
32070 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32074 { (case "(($ac_try" in
32075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076 *) ac_try_echo=$ac_try;;
32077esac
32078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032080 ac_status=$?
32081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082 (exit $ac_status); }; } &&
32083 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032084 { (case "(($ac_try" in
32085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32086 *) ac_try_echo=$ac_try;;
32087esac
32088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32089 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032090 ac_status=$?
32091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092 (exit $ac_status); }; }; then
32093 ac_cv_func_std_isnan_in_cmath=yes
32094else
32095 echo "$as_me: failed program was:" >&5
32096sed 's/^/| /' conftest.$ac_ext >&5
32097
Reid Spencera773bd52006-08-04 18:18:08 +000032098 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032099fi
Reid Spencera773bd52006-08-04 18:18:08 +000032100
32101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032102 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032103ac_cpp='$CPP $CPPFLAGS'
32104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32106ac_compiler_gnu=$ac_cv_c_compiler_gnu
32107
32108fi
Reid Spencera773bd52006-08-04 18:18:08 +000032109{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32110echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032111
32112if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032113
32114cat >>confdefs.h <<\_ACEOF
32115#define HAVE_STD_ISNAN_IN_CMATH 1
32116_ACEOF
32117
Reid Spencerabec8f92004-10-27 23:03:44 +000032118fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032119
32120
Reid Spencera773bd52006-08-04 18:18:08 +000032121{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32122echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032123if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32124 echo $ECHO_N "(cached) $ECHO_C" >&6
32125else
Reid Spencera773bd52006-08-04 18:18:08 +000032126 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032127ac_cpp='$CXXCPP $CPPFLAGS'
32128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32131
Reid Spencerabec8f92004-10-27 23:03:44 +000032132 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032133/* confdefs.h. */
32134_ACEOF
32135cat confdefs.h >>conftest.$ac_ext
32136cat >>conftest.$ac_ext <<_ACEOF
32137/* end confdefs.h. */
32138#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032139int
32140main ()
32141{
32142float f; isinf(f);
32143 ;
32144 return 0;
32145}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032146_ACEOF
32147rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032148if { (ac_try="$ac_compile"
32149case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32152esac
32153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032156 grep -v '^ *+' conftest.er1 >conftest.err
32157 rm -f conftest.er1
32158 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32162 { (case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32165esac
32166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032168 ac_status=$?
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032172 { (case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32175esac
32176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032178 ac_status=$?
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; }; then
32181 ac_cv_func_isinf_in_math_h=yes
32182else
32183 echo "$as_me: failed program was:" >&5
32184sed 's/^/| /' conftest.$ac_ext >&5
32185
Reid Spencera773bd52006-08-04 18:18:08 +000032186 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032187fi
Reid Spencera773bd52006-08-04 18:18:08 +000032188
32189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032190 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032191ac_cpp='$CPP $CPPFLAGS'
32192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194ac_compiler_gnu=$ac_cv_c_compiler_gnu
32195
32196fi
Reid Spencera773bd52006-08-04 18:18:08 +000032197{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32198echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032199
32200if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032201
32202cat >>confdefs.h <<\_ACEOF
32203#define HAVE_ISINF_IN_MATH_H 1
32204_ACEOF
32205
Reid Spencerabec8f92004-10-27 23:03:44 +000032206fi
32207
Reid Spencera773bd52006-08-04 18:18:08 +000032208{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32209echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032210if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32211 echo $ECHO_N "(cached) $ECHO_C" >&6
32212else
Reid Spencera773bd52006-08-04 18:18:08 +000032213 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032214ac_cpp='$CXXCPP $CPPFLAGS'
32215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32218
Reid Spencerabec8f92004-10-27 23:03:44 +000032219 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032220/* confdefs.h. */
32221_ACEOF
32222cat confdefs.h >>conftest.$ac_ext
32223cat >>conftest.$ac_ext <<_ACEOF
32224/* end confdefs.h. */
32225#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032226int
32227main ()
32228{
32229float f; isinf(f);
32230 ;
32231 return 0;
32232}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032233_ACEOF
32234rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032235if { (ac_try="$ac_compile"
32236case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32239esac
32240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032242 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032243 grep -v '^ *+' conftest.er1 >conftest.err
32244 rm -f conftest.er1
32245 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32249 { (case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32252esac
32253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032255 ac_status=$?
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; } &&
32258 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032259 { (case "(($ac_try" in
32260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261 *) ac_try_echo=$ac_try;;
32262esac
32263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032265 ac_status=$?
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); }; }; then
32268 ac_cv_func_isinf_in_cmath=yes
32269else
32270 echo "$as_me: failed program was:" >&5
32271sed 's/^/| /' conftest.$ac_ext >&5
32272
Reid Spencera773bd52006-08-04 18:18:08 +000032273 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032274fi
Reid Spencera773bd52006-08-04 18:18:08 +000032275
32276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032277 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032278ac_cpp='$CPP $CPPFLAGS'
32279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281ac_compiler_gnu=$ac_cv_c_compiler_gnu
32282
32283fi
Reid Spencera773bd52006-08-04 18:18:08 +000032284{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32285echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032286
32287if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032288
32289cat >>confdefs.h <<\_ACEOF
32290#define HAVE_ISINF_IN_CMATH 1
32291_ACEOF
32292
Reid Spencerabec8f92004-10-27 23:03:44 +000032293fi
32294
Reid Spencera773bd52006-08-04 18:18:08 +000032295{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32296echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032297if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32298 echo $ECHO_N "(cached) $ECHO_C" >&6
32299else
Reid Spencera773bd52006-08-04 18:18:08 +000032300 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032301ac_cpp='$CXXCPP $CPPFLAGS'
32302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32305
Reid Spencerabec8f92004-10-27 23:03:44 +000032306 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032307/* confdefs.h. */
32308_ACEOF
32309cat confdefs.h >>conftest.$ac_ext
32310cat >>conftest.$ac_ext <<_ACEOF
32311/* end confdefs.h. */
32312#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032313int
32314main ()
32315{
32316float f; std::isinf(f)}
32317 ;
32318 return 0;
32319}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032320_ACEOF
32321rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032322if { (ac_try="$ac_compile"
32323case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32326esac
32327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032330 grep -v '^ *+' conftest.er1 >conftest.err
32331 rm -f conftest.er1
32332 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32336 { (case "(($ac_try" in
32337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338 *) ac_try_echo=$ac_try;;
32339esac
32340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032342 ac_status=$?
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); }; } &&
32345 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032346 { (case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32349esac
32350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032352 ac_status=$?
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); }; }; then
32355 ac_cv_func_std_isinf_in_cmath=yes
32356else
32357 echo "$as_me: failed program was:" >&5
32358sed 's/^/| /' conftest.$ac_ext >&5
32359
Reid Spencera773bd52006-08-04 18:18:08 +000032360 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032361fi
Reid Spencera773bd52006-08-04 18:18:08 +000032362
32363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032364 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032365ac_cpp='$CPP $CPPFLAGS'
32366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32368ac_compiler_gnu=$ac_cv_c_compiler_gnu
32369
32370fi
Reid Spencera773bd52006-08-04 18:18:08 +000032371{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32372echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032373
32374if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032375
32376cat >>confdefs.h <<\_ACEOF
32377#define HAVE_STD_ISINF_IN_CMATH 1
32378_ACEOF
32379
Reid Spencerabec8f92004-10-27 23:03:44 +000032380fi
32381
Reid Spencera773bd52006-08-04 18:18:08 +000032382{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32383echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032384if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32385 echo $ECHO_N "(cached) $ECHO_C" >&6
32386else
Reid Spencera773bd52006-08-04 18:18:08 +000032387 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032388ac_cpp='$CXXCPP $CPPFLAGS'
32389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32392
Reid Spencerabec8f92004-10-27 23:03:44 +000032393 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032394/* confdefs.h. */
32395_ACEOF
32396cat confdefs.h >>conftest.$ac_ext
32397cat >>conftest.$ac_ext <<_ACEOF
32398/* end confdefs.h. */
32399#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032400int
32401main ()
32402{
32403float f; finite(f);
32404 ;
32405 return 0;
32406}
Brian Gaeked59a6472004-07-21 03:33:58 +000032407_ACEOF
32408rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032409if { (ac_try="$ac_compile"
32410case "(($ac_try" in
32411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412 *) ac_try_echo=$ac_try;;
32413esac
32414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032416 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032417 grep -v '^ *+' conftest.er1 >conftest.err
32418 rm -f conftest.er1
32419 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32423 { (case "(($ac_try" in
32424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425 *) ac_try_echo=$ac_try;;
32426esac
32427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032429 ac_status=$?
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); }; } &&
32432 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032433 { (case "(($ac_try" in
32434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435 *) ac_try_echo=$ac_try;;
32436esac
32437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032439 ac_status=$?
32440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441 (exit $ac_status); }; }; then
32442 ac_cv_func_finite_in_ieeefp_h=yes
32443else
32444 echo "$as_me: failed program was:" >&5
32445sed 's/^/| /' conftest.$ac_ext >&5
32446
Reid Spencera773bd52006-08-04 18:18:08 +000032447 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032448fi
Reid Spencera773bd52006-08-04 18:18:08 +000032449
32450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032451 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032452ac_cpp='$CPP $CPPFLAGS'
32453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32455ac_compiler_gnu=$ac_cv_c_compiler_gnu
32456
32457fi
Reid Spencera773bd52006-08-04 18:18:08 +000032458{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32459echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032460
Brian Gaeke6802b552004-10-28 05:06:45 +000032461if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032462
32463cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032464#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032465_ACEOF
32466
Reid Spencerabec8f92004-10-27 23:03:44 +000032467fi
32468
32469
32470
John Criswell7a73b802003-06-30 21:59:07 +000032471
32472
32473for ac_header in stdlib.h unistd.h
32474do
32475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032480 echo $ECHO_N "(cached) $ECHO_C" >&6
32481fi
Reid Spencera773bd52006-08-04 18:18:08 +000032482ac_res=`eval echo '${'$as_ac_Header'}'`
32483 { echo "$as_me:$LINENO: result: $ac_res" >&5
32484echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032485else
32486 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032487{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032489cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032490/* confdefs.h. */
32491_ACEOF
32492cat confdefs.h >>conftest.$ac_ext
32493cat >>conftest.$ac_ext <<_ACEOF
32494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032495$ac_includes_default
32496#include <$ac_header>
32497_ACEOF
32498rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032499if { (ac_try="$ac_compile"
32500case "(($ac_try" in
32501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502 *) ac_try_echo=$ac_try;;
32503esac
32504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032506 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032507 grep -v '^ *+' conftest.er1 >conftest.err
32508 rm -f conftest.er1
32509 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32513 { (case "(($ac_try" in
32514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515 *) ac_try_echo=$ac_try;;
32516esac
32517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032519 ac_status=$?
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; } &&
32522 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032523 { (case "(($ac_try" in
32524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525 *) ac_try_echo=$ac_try;;
32526esac
32527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032529 ac_status=$?
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); }; }; then
32532 ac_header_compiler=yes
32533else
32534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032535sed 's/^/| /' conftest.$ac_ext >&5
32536
Reid Spencera773bd52006-08-04 18:18:08 +000032537 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032538fi
Reid Spencera773bd52006-08-04 18:18:08 +000032539
32540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32541{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32542echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032543
32544# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032545{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032547cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032548/* confdefs.h. */
32549_ACEOF
32550cat confdefs.h >>conftest.$ac_ext
32551cat >>conftest.$ac_ext <<_ACEOF
32552/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032553#include <$ac_header>
32554_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032555if { (ac_try="$ac_cpp conftest.$ac_ext"
32556case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32559esac
32560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032562 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032563 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032564 rm -f conftest.er1
32565 cat conftest.err >&5
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } >/dev/null; then
32568 if test -s conftest.err; then
32569 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032571 else
32572 ac_cpp_err=
32573 fi
32574else
32575 ac_cpp_err=yes
32576fi
32577if test -z "$ac_cpp_err"; then
32578 ac_header_preproc=yes
32579else
32580 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032581sed 's/^/| /' conftest.$ac_ext >&5
32582
John Criswell7a73b802003-06-30 21:59:07 +000032583 ac_header_preproc=no
32584fi
Reid Spencera773bd52006-08-04 18:18:08 +000032585
John Criswell7a73b802003-06-30 21:59:07 +000032586rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32588echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032589
32590# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32592 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32597 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032598 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032599 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32607echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032612 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032613## ----------------------------------- ##
32614## Report this to llvmbugs@cs.uiuc.edu ##
32615## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032616_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032617 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032618 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032619esac
Reid Spencera773bd52006-08-04 18:18:08 +000032620{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032623 echo $ECHO_N "(cached) $ECHO_C" >&6
32624else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032625 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032626fi
Reid Spencera773bd52006-08-04 18:18:08 +000032627ac_res=`eval echo '${'$as_ac_Header'}'`
32628 { echo "$as_me:$LINENO: result: $ac_res" >&5
32629echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032630
32631fi
32632if test `eval echo '${'$as_ac_Header'}'` = yes; then
32633 cat >>confdefs.h <<_ACEOF
32634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32635_ACEOF
32636
32637fi
32638
32639done
32640
32641
32642for ac_func in getpagesize
32643do
32644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032645{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32647if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032648 echo $ECHO_N "(cached) $ECHO_C" >&6
32649else
32650 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032651/* confdefs.h. */
32652_ACEOF
32653cat confdefs.h >>conftest.$ac_ext
32654cat >>conftest.$ac_ext <<_ACEOF
32655/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32658#define $ac_func innocuous_$ac_func
32659
John Criswell7a73b802003-06-30 21:59:07 +000032660/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032661 which can conflict with char $ac_func (); below.
32662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32663 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032664
John Criswell0c38eaf2003-09-10 15:17:25 +000032665#ifdef __STDC__
32666# include <limits.h>
32667#else
32668# include <assert.h>
32669#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032670
32671#undef $ac_func
32672
Reid Spencera773bd52006-08-04 18:18:08 +000032673/* Override any GCC internal prototype to avoid an error.
32674 Use char because int might match the return type of a GCC
32675 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032676#ifdef __cplusplus
32677extern "C"
32678#endif
John Criswell7a73b802003-06-30 21:59:07 +000032679char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032680/* The GNU C library defines this for functions which it implements
32681 to always fail with ENOSYS. Some functions are actually named
32682 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032683#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032684choke me
John Criswell7a73b802003-06-30 21:59:07 +000032685#endif
32686
John Criswell0c38eaf2003-09-10 15:17:25 +000032687int
32688main ()
32689{
Reid Spencera773bd52006-08-04 18:18:08 +000032690return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032691 ;
32692 return 0;
32693}
32694_ACEOF
32695rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032696if { (ac_try="$ac_link"
32697case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32700esac
32701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032704 grep -v '^ *+' conftest.er1 >conftest.err
32705 rm -f conftest.er1
32706 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32710 { (case "(($ac_try" in
32711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712 *) ac_try_echo=$ac_try;;
32713esac
32714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032716 ac_status=$?
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); }; } &&
32719 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032720 { (case "(($ac_try" in
32721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722 *) ac_try_echo=$ac_try;;
32723esac
32724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032726 ac_status=$?
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); }; }; then
32729 eval "$as_ac_var=yes"
32730else
32731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032732sed 's/^/| /' conftest.$ac_ext >&5
32733
Reid Spencera773bd52006-08-04 18:18:08 +000032734 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032735fi
Reid Spencera773bd52006-08-04 18:18:08 +000032736
32737rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032738 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032739fi
Reid Spencera773bd52006-08-04 18:18:08 +000032740ac_res=`eval echo '${'$as_ac_var'}'`
32741 { echo "$as_me:$LINENO: result: $ac_res" >&5
32742echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032743if test `eval echo '${'$as_ac_var'}'` = yes; then
32744 cat >>confdefs.h <<_ACEOF
32745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32746_ACEOF
32747
32748fi
32749done
32750
Reid Spencera773bd52006-08-04 18:18:08 +000032751{ echo "$as_me:$LINENO: checking for working mmap" >&5
32752echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032753if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32755else
32756 if test "$cross_compiling" = yes; then
32757 ac_cv_func_mmap_fixed_mapped=no
32758else
32759 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032760/* confdefs.h. */
32761_ACEOF
32762cat confdefs.h >>conftest.$ac_ext
32763cat >>conftest.$ac_ext <<_ACEOF
32764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032765$ac_includes_default
32766/* malloc might have been renamed as rpl_malloc. */
32767#undef malloc
32768
32769/* Thanks to Mike Haertel and Jim Avera for this test.
32770 Here is a matrix of mmap possibilities:
32771 mmap private not fixed
32772 mmap private fixed at somewhere currently unmapped
32773 mmap private fixed at somewhere already mapped
32774 mmap shared not fixed
32775 mmap shared fixed at somewhere currently unmapped
32776 mmap shared fixed at somewhere already mapped
32777 For private mappings, we should verify that changes cannot be read()
32778 back from the file, nor mmap's back from the file at a different
32779 address. (There have been systems where private was not correctly
32780 implemented like the infamous i386 svr4.0, and systems where the
32781 VM page cache was not coherent with the file system buffer cache
32782 like early versions of FreeBSD and possibly contemporary NetBSD.)
32783 For shared mappings, we should conversely verify that changes get
32784 propagated back to all the places they're supposed to be.
32785
32786 Grep wants private fixed already mapped.
32787 The main things grep needs to know about mmap are:
32788 * does it exist and is it safe to write into the mmap'd area
32789 * how to use it (BSD variants) */
32790
32791#include <fcntl.h>
32792#include <sys/mman.h>
32793
32794#if !STDC_HEADERS && !HAVE_STDLIB_H
32795char *malloc ();
32796#endif
32797
32798/* This mess was copied from the GNU getpagesize.h. */
32799#if !HAVE_GETPAGESIZE
32800/* Assume that all systems that can run configure have sys/param.h. */
32801# if !HAVE_SYS_PARAM_H
32802# define HAVE_SYS_PARAM_H 1
32803# endif
32804
32805# ifdef _SC_PAGESIZE
32806# define getpagesize() sysconf(_SC_PAGESIZE)
32807# else /* no _SC_PAGESIZE */
32808# if HAVE_SYS_PARAM_H
32809# include <sys/param.h>
32810# ifdef EXEC_PAGESIZE
32811# define getpagesize() EXEC_PAGESIZE
32812# else /* no EXEC_PAGESIZE */
32813# ifdef NBPG
32814# define getpagesize() NBPG * CLSIZE
32815# ifndef CLSIZE
32816# define CLSIZE 1
32817# endif /* no CLSIZE */
32818# else /* no NBPG */
32819# ifdef NBPC
32820# define getpagesize() NBPC
32821# else /* no NBPC */
32822# ifdef PAGESIZE
32823# define getpagesize() PAGESIZE
32824# endif /* PAGESIZE */
32825# endif /* no NBPC */
32826# endif /* no NBPG */
32827# endif /* no EXEC_PAGESIZE */
32828# else /* no HAVE_SYS_PARAM_H */
32829# define getpagesize() 8192 /* punt totally */
32830# endif /* no HAVE_SYS_PARAM_H */
32831# endif /* no _SC_PAGESIZE */
32832
32833#endif /* no HAVE_GETPAGESIZE */
32834
32835int
32836main ()
32837{
32838 char *data, *data2, *data3;
32839 int i, pagesize;
32840 int fd;
32841
32842 pagesize = getpagesize ();
32843
32844 /* First, make a file with some known garbage in it. */
32845 data = (char *) malloc (pagesize);
32846 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032847 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032848 for (i = 0; i < pagesize; ++i)
32849 *(data + i) = rand ();
32850 umask (0);
32851 fd = creat ("conftest.mmap", 0600);
32852 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032853 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032854 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032855 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032856 close (fd);
32857
32858 /* Next, try to mmap the file at a fixed address which already has
32859 something else allocated at it. If we can, also make sure that
32860 we see the same garbage. */
32861 fd = open ("conftest.mmap", O_RDWR);
32862 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032863 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032864 data2 = (char *) malloc (2 * pagesize);
32865 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032866 return 1;
32867 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000032868 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000032869 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000032870 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032871 for (i = 0; i < pagesize; ++i)
32872 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032873 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032874
32875 /* Finally, make sure that changes to the mapped area do not
32876 percolate back to the file as seen by read(). (This is a bug on
32877 some variants of i386 svr4.0.) */
32878 for (i = 0; i < pagesize; ++i)
32879 *(data2 + i) = *(data2 + i) + 1;
32880 data3 = (char *) malloc (pagesize);
32881 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000032882 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032883 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032884 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032885 for (i = 0; i < pagesize; ++i)
32886 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032887 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032888 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000032889 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032890}
32891_ACEOF
32892rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032893if { (ac_try="$ac_link"
32894case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32897esac
32898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032900 ac_status=$?
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032903 { (case "(($ac_try" in
32904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32905 *) ac_try_echo=$ac_try;;
32906esac
32907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32908 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032909 ac_status=$?
32910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911 (exit $ac_status); }; }; then
32912 ac_cv_func_mmap_fixed_mapped=yes
32913else
32914 echo "$as_me: program exited with status $ac_status" >&5
32915echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032916sed 's/^/| /' conftest.$ac_ext >&5
32917
John Criswell7a73b802003-06-30 21:59:07 +000032918( exit $ac_status )
32919ac_cv_func_mmap_fixed_mapped=no
32920fi
Reid Spencera773bd52006-08-04 18:18:08 +000032921rm -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 +000032922fi
Reid Spencera773bd52006-08-04 18:18:08 +000032923
32924
John Criswell7a73b802003-06-30 21:59:07 +000032925fi
Reid Spencera773bd52006-08-04 18:18:08 +000032926{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
32927echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032928if test $ac_cv_func_mmap_fixed_mapped = yes; then
32929
32930cat >>confdefs.h <<\_ACEOF
32931#define HAVE_MMAP 1
32932_ACEOF
32933
32934fi
32935rm -f conftest.mmap
32936
Reid Spencera773bd52006-08-04 18:18:08 +000032937{ echo "$as_me:$LINENO: checking for mmap of files" >&5
32938echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032939if test "${ac_cv_func_mmap_file+set}" = set; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32941else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032942 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000032943ac_cpp='$CPP $CPPFLAGS'
32944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946ac_compiler_gnu=$ac_cv_c_compiler_gnu
32947
32948 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000032949 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000032950else
32951 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032952
Reid Spencer777ce172004-09-20 04:09:56 +000032953 /* confdefs.h. */
32954_ACEOF
32955cat confdefs.h >>conftest.$ac_ext
32956cat >>conftest.$ac_ext <<_ACEOF
32957/* end confdefs.h. */
32958
John Criswell7a73b802003-06-30 21:59:07 +000032959#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000032960#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000032961#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000032962
32963int
32964main ()
32965{
John Criswell7a73b802003-06-30 21:59:07 +000032966
32967 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000032968 fd = creat ("foo",0777);
32969 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
32970 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000032971 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000032972 ;
32973 return 0;
32974}
John Criswell7a73b802003-06-30 21:59:07 +000032975_ACEOF
32976rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032977if { (ac_try="$ac_link"
32978case "(($ac_try" in
32979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980 *) ac_try_echo=$ac_try;;
32981esac
32982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032984 ac_status=$?
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032987 { (case "(($ac_try" in
32988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32989 *) ac_try_echo=$ac_try;;
32990esac
32991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32992 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032993 ac_status=$?
32994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995 (exit $ac_status); }; }; then
32996 ac_cv_func_mmap_file=yes
32997else
32998 echo "$as_me: program exited with status $ac_status" >&5
32999echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033000sed 's/^/| /' conftest.$ac_ext >&5
33001
John Criswell7a73b802003-06-30 21:59:07 +000033002( exit $ac_status )
33003ac_cv_func_mmap_file=no
33004fi
Reid Spencera773bd52006-08-04 18:18:08 +000033005rm -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 +000033006fi
Reid Spencera773bd52006-08-04 18:18:08 +000033007
33008
John Criswell7a73b802003-06-30 21:59:07 +000033009 ac_ext=c
33010ac_cpp='$CPP $CPPFLAGS'
33011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013ac_compiler_gnu=$ac_cv_c_compiler_gnu
33014
33015
33016fi
Reid Spencera773bd52006-08-04 18:18:08 +000033017{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33018echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033019if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033020
33021cat >>confdefs.h <<\_ACEOF
33022#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033023_ACEOF
33024
33025 MMAP_FILE=yes
33026
33027fi
33028
Reid Spencera773bd52006-08-04 18:18:08 +000033029{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33030echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033031if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33033else
Reid Spencer582a23c2004-12-29 07:07:57 +000033034 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033035 ac_cv_need_dev_zero_for_mmap=yes
33036 else
33037 ac_cv_need_dev_zero_for_mmap=no
33038 fi
33039
33040fi
Reid Spencera773bd52006-08-04 18:18:08 +000033041{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33042echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033043if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33044
33045cat >>confdefs.h <<\_ACEOF
33046#define NEED_DEV_ZERO_FOR_MMAP 1
33047_ACEOF
33048
33049fi
Reid Spencera773bd52006-08-04 18:18:08 +000033050{ echo "$as_me:$LINENO: checking for mprotect" >&5
33051echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033052if test "${ac_cv_func_mprotect+set}" = set; then
33053 echo $ECHO_N "(cached) $ECHO_C" >&6
33054else
33055 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033056/* confdefs.h. */
33057_ACEOF
33058cat confdefs.h >>conftest.$ac_ext
33059cat >>conftest.$ac_ext <<_ACEOF
33060/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033061/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33063#define mprotect innocuous_mprotect
33064
John Criswell7a73b802003-06-30 21:59:07 +000033065/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033066 which can conflict with char mprotect (); below.
33067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33068 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033069
John Criswell0c38eaf2003-09-10 15:17:25 +000033070#ifdef __STDC__
33071# include <limits.h>
33072#else
33073# include <assert.h>
33074#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033075
33076#undef mprotect
33077
Reid Spencera773bd52006-08-04 18:18:08 +000033078/* Override any GCC internal prototype to avoid an error.
33079 Use char because int might match the return type of a GCC
33080 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033081#ifdef __cplusplus
33082extern "C"
33083#endif
John Criswell7a73b802003-06-30 21:59:07 +000033084char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033085/* The GNU C library defines this for functions which it implements
33086 to always fail with ENOSYS. Some functions are actually named
33087 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033088#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033089choke me
John Criswell7a73b802003-06-30 21:59:07 +000033090#endif
33091
John Criswell0c38eaf2003-09-10 15:17:25 +000033092int
33093main ()
33094{
Reid Spencera773bd52006-08-04 18:18:08 +000033095return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033096 ;
33097 return 0;
33098}
33099_ACEOF
33100rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033101if { (ac_try="$ac_link"
33102case "(($ac_try" in
33103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33104 *) ac_try_echo=$ac_try;;
33105esac
33106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33107 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033108 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033109 grep -v '^ *+' conftest.er1 >conftest.err
33110 rm -f conftest.er1
33111 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33115 { (case "(($ac_try" in
33116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33117 *) ac_try_echo=$ac_try;;
33118esac
33119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33120 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033121 ac_status=$?
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); }; } &&
33124 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033125 { (case "(($ac_try" in
33126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33128esac
33129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033131 ac_status=$?
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; }; then
33134 ac_cv_func_mprotect=yes
33135else
33136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033137sed 's/^/| /' conftest.$ac_ext >&5
33138
Reid Spencera773bd52006-08-04 18:18:08 +000033139 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033140fi
Reid Spencera773bd52006-08-04 18:18:08 +000033141
33142rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033143 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033144fi
Reid Spencera773bd52006-08-04 18:18:08 +000033145{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33146echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033147if test $ac_cv_func_mprotect = yes; then
33148 :
33149else
33150 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33151echo "$as_me: error: Function mprotect() required but not found" >&2;}
33152 { (exit 1); exit 1; }; }
33153fi
33154
33155
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033156if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033157then
Reid Spencer582a23c2004-12-29 07:07:57 +000033158 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33159echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033160fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033161if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033162then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033163 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33164echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033165fi
John Criswell7a73b802003-06-30 21:59:07 +000033166
33167
Reid Spencera773bd52006-08-04 18:18:08 +000033168{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33169echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033170if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33171 echo $ECHO_N "(cached) $ECHO_C" >&6
33172else
33173 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033174if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033175 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033176 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033177 if test $? -eq 0 ; then
33178 llvm_cv_llvmgcc_sanity="yes"
33179 fi
33180 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033181fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033182fi
Reid Spencera773bd52006-08-04 18:18:08 +000033183{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33184echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033185
33186if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033187 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033188 LLVMCC1=$llvmcc1path
33189
Reid Spencer502935f2004-12-22 05:56:56 +000033190 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033191 LLVMCC1PLUS=$llvmcc1pluspath
33192
Reid Spencer502935f2004-12-22 05:56:56 +000033193 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33194 LLVMGCCDIR=$llvmgccdir
33195
Reid Spencerb5d75b82006-05-09 00:31:01 +000033196 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033197 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33198 LLVMGCC_VERSION=$llvmgccversion
33199
33200 LLVMGCC_MAJVERS=$llvmgccmajvers
33201
Brian Gaekef3b24102003-11-16 18:38:14 +000033202fi
33203
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033204SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033205
33206
Reid Spencere9de0912004-08-20 09:03:57 +000033207# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033208# information into substitutions that will end up in Makefile.config.in
33209# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000033210if test "${prefix}" == "NONE" ; then
33211 prefix="/usr/local"
33212fi
Reid Spencere9de0912004-08-20 09:03:57 +000033213eval LLVM_PREFIX="${prefix}";
33214eval LLVM_BINDIR="${prefix}/bin";
33215eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033216eval LLVM_DATADIR="${prefix}/share/llvm";
33217eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33218eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033219eval LLVM_INCLUDEDIR="${prefix}/include";
33220eval LLVM_INFODIR="${prefix}/info";
33221eval LLVM_MANDIR="${prefix}/man";
33222LLVM_CONFIGTIME=`date`
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033234# Place the various directores into the config.h file as #defines so that we
33235# can know about the installation paths within LLVM.
33236
Reid Spencere9de0912004-08-20 09:03:57 +000033237cat >>confdefs.h <<_ACEOF
33238#define LLVM_PREFIX "$LLVM_PREFIX"
33239_ACEOF
33240
33241
33242cat >>confdefs.h <<_ACEOF
33243#define LLVM_BINDIR "$LLVM_BINDIR"
33244_ACEOF
33245
33246
33247cat >>confdefs.h <<_ACEOF
33248#define LLVM_LIBDIR "$LLVM_LIBDIR"
33249_ACEOF
33250
33251
33252cat >>confdefs.h <<_ACEOF
33253#define LLVM_DATADIR "$LLVM_DATADIR"
33254_ACEOF
33255
33256
33257cat >>confdefs.h <<_ACEOF
33258#define LLVM_DATADIR "$LLVM_DOCSDIR"
33259_ACEOF
33260
33261
33262cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033263#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033264_ACEOF
33265
33266
33267cat >>confdefs.h <<_ACEOF
33268#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33269_ACEOF
33270
33271
33272cat >>confdefs.h <<_ACEOF
33273#define LLVM_INFODIR "$LLVM_INFODIR"
33274_ACEOF
33275
33276
33277cat >>confdefs.h <<_ACEOF
33278#define LLVM_MANDIR "$LLVM_MANDIR"
33279_ACEOF
33280
33281
33282cat >>confdefs.h <<_ACEOF
33283#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33284_ACEOF
33285
33286
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033287
Reid Spencera773bd52006-08-04 18:18:08 +000033288ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033289
Reid Spencera773bd52006-08-04 18:18:08 +000033290ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033291
Reid Spencera773bd52006-08-04 18:18:08 +000033292ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033293
Reid Spencera773bd52006-08-04 18:18:08 +000033294ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033295
Reid Spencera773bd52006-08-04 18:18:08 +000033296ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033297
33298
Reid Spencera773bd52006-08-04 18:18:08 +000033299ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033300
33301
Reid Spencerea949cf2006-08-16 00:45:38 +000033302ac_config_files="$ac_config_files llvm.spec"
33303
33304
Reid Spencera773bd52006-08-04 18:18:08 +000033305ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033306
33307
Reid Spencera773bd52006-08-04 18:18:08 +000033308ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033309
33310
Reid Spencera773bd52006-08-04 18:18:08 +000033311ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033312
Reid Spencera773bd52006-08-04 18:18:08 +000033313ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033314
33315
Reid Spencera773bd52006-08-04 18:18:08 +000033316ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033317
33318
Reid Spencera773bd52006-08-04 18:18:08 +000033319ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033320
33321
Reid Spencera773bd52006-08-04 18:18:08 +000033322ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033323
33324
Reid Spencera773bd52006-08-04 18:18:08 +000033325ac_config_commands="$ac_config_commands runtime/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033326
33327
Reid Spencera773bd52006-08-04 18:18:08 +000033328ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033329
33330
Reid Spencera773bd52006-08-04 18:18:08 +000033331ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033332
33333
Reid Spencera773bd52006-08-04 18:18:08 +000033334ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033335
33336
Reid Spencera773bd52006-08-04 18:18:08 +000033337ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033338
33339
Reid Spencera773bd52006-08-04 18:18:08 +000033340ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033341
33342
33343
John Criswell7a73b802003-06-30 21:59:07 +000033344cat >confcache <<\_ACEOF
33345# This file is a shell script that caches the results of configure
33346# tests run on this system so they can be shared between configure
33347# scripts and configure runs, see configure's option --config-cache.
33348# It is not useful on other systems. If it contains results you don't
33349# want to keep, you may remove or edit it.
33350#
33351# config.status only pays attention to the cache file if you give it
33352# the --recheck option to rerun configure.
33353#
John Criswell0c38eaf2003-09-10 15:17:25 +000033354# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033355# loading this file, other *unset* `ac_cv_foo' will be assigned the
33356# following values.
33357
33358_ACEOF
33359
33360# The following way of writing the cache mishandles newlines in values,
33361# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033362# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033363# Ultrix sh set writes to stderr and can't be redirected directly,
33364# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033365(
33366 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33367 eval ac_val=\$$ac_var
33368 case $ac_val in #(
33369 *${as_nl}*)
33370 case $ac_var in #(
33371 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33372echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33373 esac
33374 case $ac_var in #(
33375 _ | IFS | as_nl) ;; #(
33376 *) $as_unset $ac_var ;;
33377 esac ;;
33378 esac
33379 done
33380
John Criswell7a73b802003-06-30 21:59:07 +000033381 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033382 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33383 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033384 # `set' does not quote correctly, so add quotes (double-quote
33385 # substitution turns \\\\ into \\, and sed turns \\ into \).
33386 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033387 "s/'/'\\\\''/g;
33388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033389 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033390 *)
33391 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033393 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033394 esac |
33395 sort
33396) |
John Criswell7a73b802003-06-30 21:59:07 +000033397 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033398 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033399 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033400 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33402 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033403 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33404 :end' >>confcache
33405if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33406 if test -w "$cache_file"; then
33407 test "x$cache_file" != "x/dev/null" &&
33408 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33409echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033410 cat confcache >$cache_file
33411 else
Reid Spencera773bd52006-08-04 18:18:08 +000033412 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33413echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033414 fi
33415fi
33416rm -f confcache
33417
33418test "x$prefix" = xNONE && prefix=$ac_default_prefix
33419# Let make expand exec_prefix.
33420test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33421
John Criswell7a73b802003-06-30 21:59:07 +000033422DEFS=-DHAVE_CONFIG_H
33423
John Criswell0c38eaf2003-09-10 15:17:25 +000033424ac_libobjs=
33425ac_ltlibobjs=
33426for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33427 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033428 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33429 ac_i=`echo "$ac_i" | sed "$ac_script"`
33430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33431 # will be set to the directory where LIBOBJS objects are built.
33432 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33433 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033434done
33435LIBOBJS=$ac_libobjs
33436
33437LTLIBOBJS=$ac_ltlibobjs
33438
33439
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033440if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33441 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33442Usually this means the macro was only invoked conditionally." >&5
33443echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33444Usually this means the macro was only invoked conditionally." >&2;}
33445 { (exit 1); exit 1; }; }
33446fi
33447if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33448 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33449Usually this means the macro was only invoked conditionally." >&5
33450echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33451Usually this means the macro was only invoked conditionally." >&2;}
33452 { (exit 1); exit 1; }; }
33453fi
John Criswell7a73b802003-06-30 21:59:07 +000033454
33455: ${CONFIG_STATUS=./config.status}
33456ac_clean_files_save=$ac_clean_files
33457ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33458{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33459echo "$as_me: creating $CONFIG_STATUS" >&6;}
33460cat >$CONFIG_STATUS <<_ACEOF
33461#! $SHELL
33462# Generated by $as_me.
33463# Run this file to recreate the current configuration.
33464# Compiler output produced by configure, useful for debugging
33465# configure, is in config.log if it exists.
33466
33467debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033468ac_cs_recheck=false
33469ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033470SHELL=\${CONFIG_SHELL-$SHELL}
33471_ACEOF
33472
33473cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033474## --------------------- ##
33475## M4sh Initialization. ##
33476## --------------------- ##
33477
33478# Be Bourne compatible
33479if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33480 emulate sh
33481 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033482 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33483 # is contrary to our usage. Disable this feature.
33484 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033485 setopt NO_GLOB_SUBST
33486else
33487 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033488fi
Reid Spencera773bd52006-08-04 18:18:08 +000033489BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033490DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033491
John Criswell7a73b802003-06-30 21:59:07 +000033492
Reid Spencera773bd52006-08-04 18:18:08 +000033493# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033494# Avoid depending upon Character Ranges.
33495as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33496as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33497as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33498as_cr_digits='0123456789'
33499as_cr_alnum=$as_cr_Letters$as_cr_digits
33500
33501# The user is always right.
33502if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033503 echo "#! /bin/sh" >conf$$.sh
33504 echo "exit 0" >>conf$$.sh
33505 chmod +x conf$$.sh
33506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033507 PATH_SEPARATOR=';'
33508 else
33509 PATH_SEPARATOR=:
33510 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033511 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033512fi
33513
Reid Spencera773bd52006-08-04 18:18:08 +000033514# Support unset when possible.
33515if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33516 as_unset=unset
33517else
33518 as_unset=false
33519fi
John Criswell7a73b802003-06-30 21:59:07 +000033520
Reid Spencera773bd52006-08-04 18:18:08 +000033521
33522# IFS
33523# We need space, tab and new line, in precisely that order. Quoting is
33524# there to prevent editors from complaining about space-tab.
33525# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33526# splitting by setting IFS to empty value.)
33527as_nl='
33528'
33529IFS=" "" $as_nl"
33530
33531# Find who we are. Look in the path if we contain no directory separator.
33532case $0 in
33533 *[\\/]* ) as_myself=$0 ;;
33534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033535for as_dir in $PATH
33536do
33537 IFS=$as_save_IFS
33538 test -z "$as_dir" && as_dir=.
33539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33540done
Reid Spencera773bd52006-08-04 18:18:08 +000033541IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033542
Reid Spencera773bd52006-08-04 18:18:08 +000033543 ;;
33544esac
33545# We did not find ourselves, most probably we were run as `sh COMMAND'
33546# in which case we are not to be found in the path.
33547if test "x$as_myself" = x; then
33548 as_myself=$0
33549fi
33550if test ! -f "$as_myself"; then
33551 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33552 { (exit 1); exit 1; }
33553fi
33554
33555# Work around bugs in pre-3.0 UWIN ksh.
33556for as_var in ENV MAIL MAILPATH
33557do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33558done
33559PS1='$ '
33560PS2='> '
33561PS4='+ '
33562
33563# NLS nuisances.
33564for as_var in \
33565 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33566 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33567 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033568do
Reid Spencera773bd52006-08-04 18:18:08 +000033569 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33570 eval $as_var=C; export $as_var
33571 else
33572 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33573 fi
33574done
33575
33576# Required to use basename.
33577if expr a : '\(a\)' >/dev/null 2>&1 &&
33578 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33579 as_expr=expr
33580else
33581 as_expr=false
33582fi
33583
33584if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33585 as_basename=basename
33586else
33587 as_basename=false
33588fi
33589
33590
33591# Name of the executable.
33592as_me=`$as_basename -- "$0" ||
33593$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33594 X"$0" : 'X\(//\)$' \| \
33595 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33596echo X/"$0" |
33597 sed '/^.*\/\([^/][^/]*\)\/*$/{
33598 s//\1/
33599 q
33600 }
33601 /^X\/\(\/\/\)$/{
33602 s//\1/
33603 q
33604 }
33605 /^X\/\(\/\).*/{
33606 s//\1/
33607 q
33608 }
33609 s/.*/./; q'`
33610
33611# CDPATH.
33612$as_unset CDPATH
33613
33614
33615
John Criswell7a73b802003-06-30 21:59:07 +000033616 as_lineno_1=$LINENO
33617 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033618 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033619 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033620
33621 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33622 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033623 # line-number line after each line using $LINENO; the second 'sed'
33624 # does the real work. The second script uses 'N' to pair each
33625 # line-number line with the line containing $LINENO, and appends
33626 # trailing '-' during substitution so that $LINENO is not a special
33627 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033628 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033629 # scripts with optimization help from Paolo Bonzini. Blame Lee
33630 # E. McMahon (1931-1989) for sed's syntax. :-)
33631 sed -n '
33632 p
33633 /[$]LINENO/=
33634 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033635 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033636 s/[$]LINENO.*/&-/
33637 t lineno
33638 b
33639 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033640 N
Reid Spencera773bd52006-08-04 18:18:08 +000033641 :loop
33642 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033643 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033644 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033645 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033646 chmod +x "$as_me.lineno" ||
33647 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033648 { (exit 1); exit 1; }; }
33649
33650 # Don't try to exec as it changes $[0], causing all sort of problems
33651 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033652 # original and so on. Autoconf is especially sensitive to this).
33653 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033654 # Exit status is that of the last command.
33655 exit
33656}
33657
33658
Reid Spencera773bd52006-08-04 18:18:08 +000033659if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33660 as_dirname=dirname
33661else
33662 as_dirname=false
33663fi
33664
33665ECHO_C= ECHO_N= ECHO_T=
33666case `echo -n x` in
33667-n*)
33668 case `echo 'x\c'` in
33669 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33670 *) ECHO_C='\c';;
33671 esac;;
33672*)
33673 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033674esac
33675
Reid Spencera773bd52006-08-04 18:18:08 +000033676if expr a : '\(a\)' >/dev/null 2>&1 &&
33677 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033678 as_expr=expr
33679else
33680 as_expr=false
33681fi
33682
33683rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033684if test -d conf$$.dir; then
33685 rm -f conf$$.dir/conf$$.file
33686else
33687 rm -f conf$$.dir
33688 mkdir conf$$.dir
33689fi
John Criswell7a73b802003-06-30 21:59:07 +000033690echo >conf$$.file
33691if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033692 as_ln_s='ln -s'
33693 # ... but there are two gotchas:
33694 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33695 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33696 # In both cases, we have to default to `cp -p'.
33697 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033698 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033699elif ln conf$$.file conf$$ 2>/dev/null; then
33700 as_ln_s=ln
33701else
33702 as_ln_s='cp -p'
33703fi
Reid Spencera773bd52006-08-04 18:18:08 +000033704rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33705rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033706
John Criswell0c38eaf2003-09-10 15:17:25 +000033707if mkdir -p . 2>/dev/null; then
33708 as_mkdir_p=:
33709else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033710 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033711 as_mkdir_p=false
33712fi
33713
Reid Spencera773bd52006-08-04 18:18:08 +000033714# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33715# systems may use methods other than mode bits to determine executability.
33716cat >conf$$.file <<_ASEOF
33717#! /bin/sh
33718exit 0
33719_ASEOF
33720chmod +x conf$$.file
33721if test -x conf$$.file >/dev/null 2>&1; then
33722 as_executable_p="test -x"
33723else
33724 as_executable_p=:
33725fi
33726rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033727
33728# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033729as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033730
33731# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033732as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033733
33734
John Criswell7a73b802003-06-30 21:59:07 +000033735exec 6>&1
33736
Reid Spencera773bd52006-08-04 18:18:08 +000033737# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033738# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033739# values after options handling.
33740ac_log="
Reid Spencer1bc68642006-07-27 23:00:30 +000033741This file was extended by llvm $as_me 1.9cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033742generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033743
33744 CONFIG_FILES = $CONFIG_FILES
33745 CONFIG_HEADERS = $CONFIG_HEADERS
33746 CONFIG_LINKS = $CONFIG_LINKS
33747 CONFIG_COMMANDS = $CONFIG_COMMANDS
33748 $ $0 $@
33749
Reid Spencera773bd52006-08-04 18:18:08 +000033750on `(hostname || uname -n) 2>/dev/null | sed 1q`
33751"
33752
John Criswell7a73b802003-06-30 21:59:07 +000033753_ACEOF
33754
Reid Spencera773bd52006-08-04 18:18:08 +000033755cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033756# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033757config_files="$ac_config_files"
33758config_headers="$ac_config_headers"
33759config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033760
Reid Spencera773bd52006-08-04 18:18:08 +000033761_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033762
33763cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033764ac_cs_usage="\
33765\`$as_me' instantiates files from templates according to the
33766current configuration.
33767
33768Usage: $0 [OPTIONS] [FILE]...
33769
33770 -h, --help print this help, then exit
33771 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033772 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033773 -d, --debug don't remove temporary files
33774 --recheck update $as_me by reconfiguring in the same conditions
33775 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033776 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033777 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033778 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033779
33780Configuration files:
33781$config_files
33782
33783Configuration headers:
33784$config_headers
33785
John Criswellc764fbc2003-09-06 15:17:13 +000033786Configuration commands:
33787$config_commands
33788
John Criswell7a73b802003-06-30 21:59:07 +000033789Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033790
Reid Spencera773bd52006-08-04 18:18:08 +000033791_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033792cat >>$CONFIG_STATUS <<_ACEOF
33793ac_cs_version="\\
Reid Spencer1bc68642006-07-27 23:00:30 +000033794llvm config.status 1.9cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033795configured by $0, generated by GNU Autoconf 2.60,
33796 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033797
Reid Spencera773bd52006-08-04 18:18:08 +000033798Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033799This config.status script is free software; the Free Software Foundation
33800gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033801
33802ac_pwd='$ac_pwd'
33803srcdir='$srcdir'
33804INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033805_ACEOF
33806
33807cat >>$CONFIG_STATUS <<\_ACEOF
33808# If no file are specified by the user, then we need to provide default
33809# value. By we need to know if files were specified by the user.
33810ac_need_defaults=:
33811while test $# != 0
33812do
33813 case $1 in
33814 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33816 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033817 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033818 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033819 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033820 ac_option=$1
33821 ac_optarg=$2
33822 ac_shift=shift
33823 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033824 esac
33825
John Criswell0c38eaf2003-09-10 15:17:25 +000033826 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033827 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33829 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33831 echo "$ac_cs_version"; exit ;;
33832 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033833 debug=: ;;
33834 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033835 $ac_shift
33836 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033837 ac_need_defaults=false;;
33838 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033839 $ac_shift
33840 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033841 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033842 --he | --h)
33843 # Conflict between --help and --header
33844 { echo "$as_me: error: ambiguous option: $1
33845Try \`$0 --help' for more information." >&2
33846 { (exit 1); exit 1; }; };;
33847 --help | --hel | -h )
33848 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33850 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33851 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033852
33853 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033854 -*) { echo "$as_me: error: unrecognized option: $1
33855Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033856 { (exit 1); exit 1; }; } ;;
33857
Reid Spencera773bd52006-08-04 18:18:08 +000033858 *) ac_config_targets="$ac_config_targets $1"
33859 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033860
33861 esac
33862 shift
33863done
33864
John Criswell0c38eaf2003-09-10 15:17:25 +000033865ac_configure_extra_args=
33866
33867if $ac_cs_silent; then
33868 exec 6>/dev/null
33869 ac_configure_extra_args="$ac_configure_extra_args --silent"
33870fi
33871
33872_ACEOF
33873cat >>$CONFIG_STATUS <<_ACEOF
33874if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000033875 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33876 CONFIG_SHELL=$SHELL
33877 export CONFIG_SHELL
33878 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000033879fi
33880
John Criswell7a73b802003-06-30 21:59:07 +000033881_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033882cat >>$CONFIG_STATUS <<\_ACEOF
33883exec 5>>config.log
33884{
33885 echo
33886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33887## Running $as_me. ##
33888_ASBOX
33889 echo "$ac_log"
33890} >&5
John Criswell7a73b802003-06-30 21:59:07 +000033891
Reid Spencera773bd52006-08-04 18:18:08 +000033892_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000033893cat >>$CONFIG_STATUS <<_ACEOF
33894#
Reid Spencera773bd52006-08-04 18:18:08 +000033895# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000033896#
Reid Spencerc0682832005-02-24 19:05:19 +000033897llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000033898
33899_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033900
John Criswell7a73b802003-06-30 21:59:07 +000033901cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033902
33903# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000033904for ac_config_target in $ac_config_targets
33905do
Reid Spencera773bd52006-08-04 18:18:08 +000033906 case $ac_config_target in
33907 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33908 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33909 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33910 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
33911 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
33912 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000033913 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033914 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
33915 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33916 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
33917 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
33918 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
33919 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
33920 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
33921 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
33922 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
33923 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
33924 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
33925 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
33926 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
33927
John Criswell7a73b802003-06-30 21:59:07 +000033928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33929echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33930 { (exit 1); exit 1; }; };;
33931 esac
33932done
33933
Reid Spencera773bd52006-08-04 18:18:08 +000033934
John Criswell7a73b802003-06-30 21:59:07 +000033935# If the user did not use the arguments to specify the items to instantiate,
33936# then the envvar interface is used. Set only those that are not.
33937# We use the long form for the default assignment because of an extremely
33938# bizarre bug on SunOS 4.1.3.
33939if $ac_need_defaults; then
33940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000033942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000033943fi
33944
John Criswell0c38eaf2003-09-10 15:17:25 +000033945# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000033946# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000033947# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000033948# Hook for its removal unless debugging.
33949# Note that there is a small window in which the directory will not be cleaned:
33950# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000033951$debug ||
33952{
Reid Spencera773bd52006-08-04 18:18:08 +000033953 tmp=
33954 trap 'exit_status=$?
33955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33956' 0
John Criswell7a73b802003-06-30 21:59:07 +000033957 trap '{ (exit 1); exit 1; }' 1 2 13 15
33958}
John Criswell7a73b802003-06-30 21:59:07 +000033959# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000033960
John Criswell7a73b802003-06-30 21:59:07 +000033961{
Reid Spencera773bd52006-08-04 18:18:08 +000033962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000033963 test -n "$tmp" && test -d "$tmp"
33964} ||
33965{
Reid Spencera773bd52006-08-04 18:18:08 +000033966 tmp=./conf$$-$RANDOM
33967 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000033968} ||
33969{
John Criswell0c38eaf2003-09-10 15:17:25 +000033970 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033971 { (exit 1); exit 1; }
33972}
33973
John Criswell7a73b802003-06-30 21:59:07 +000033974#
Reid Spencera773bd52006-08-04 18:18:08 +000033975# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000033976#
33977
33978# No need to generate the scripts if there are no CONFIG_FILES.
33979# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000033980if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000033981
33982_ACEOF
33983
Reid Spencera773bd52006-08-04 18:18:08 +000033984
33985
33986ac_delim='%!_!# '
33987for ac_last_try in false false false false false :; do
33988 cat >conf$$subs.sed <<_ACEOF
33989SHELL!$SHELL$ac_delim
33990PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33991PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33992PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33993PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33994PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33995PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33996exec_prefix!$exec_prefix$ac_delim
33997prefix!$prefix$ac_delim
33998program_transform_name!$program_transform_name$ac_delim
33999bindir!$bindir$ac_delim
34000sbindir!$sbindir$ac_delim
34001libexecdir!$libexecdir$ac_delim
34002datarootdir!$datarootdir$ac_delim
34003datadir!$datadir$ac_delim
34004sysconfdir!$sysconfdir$ac_delim
34005sharedstatedir!$sharedstatedir$ac_delim
34006localstatedir!$localstatedir$ac_delim
34007includedir!$includedir$ac_delim
34008oldincludedir!$oldincludedir$ac_delim
34009docdir!$docdir$ac_delim
34010infodir!$infodir$ac_delim
34011htmldir!$htmldir$ac_delim
34012dvidir!$dvidir$ac_delim
34013pdfdir!$pdfdir$ac_delim
34014psdir!$psdir$ac_delim
34015libdir!$libdir$ac_delim
34016localedir!$localedir$ac_delim
34017mandir!$mandir$ac_delim
34018DEFS!$DEFS$ac_delim
34019ECHO_C!$ECHO_C$ac_delim
34020ECHO_N!$ECHO_N$ac_delim
34021ECHO_T!$ECHO_T$ac_delim
34022LIBS!$LIBS$ac_delim
34023build_alias!$build_alias$ac_delim
34024host_alias!$host_alias$ac_delim
34025target_alias!$target_alias$ac_delim
34026LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34027subdirs!$subdirs$ac_delim
34028build!$build$ac_delim
34029build_cpu!$build_cpu$ac_delim
34030build_vendor!$build_vendor$ac_delim
34031build_os!$build_os$ac_delim
34032host!$host$ac_delim
34033host_cpu!$host_cpu$ac_delim
34034host_vendor!$host_vendor$ac_delim
34035host_os!$host_os$ac_delim
34036target!$target$ac_delim
34037target_cpu!$target_cpu$ac_delim
34038target_vendor!$target_vendor$ac_delim
34039target_os!$target_os$ac_delim
34040OS!$OS$ac_delim
34041LINKALL!$LINKALL$ac_delim
34042NOLINKALL!$NOLINKALL$ac_delim
34043LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34044LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34045ARCH!$ARCH$ac_delim
34046ENDIAN!$ENDIAN$ac_delim
34047CC!$CC$ac_delim
34048CFLAGS!$CFLAGS$ac_delim
34049LDFLAGS!$LDFLAGS$ac_delim
34050CPPFLAGS!$CPPFLAGS$ac_delim
34051ac_ct_CC!$ac_ct_CC$ac_delim
34052EXEEXT!$EXEEXT$ac_delim
34053OBJEXT!$OBJEXT$ac_delim
34054CPP!$CPP$ac_delim
34055GREP!$GREP$ac_delim
34056EGREP!$EGREP$ac_delim
34057LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34058BUILD_CC!$BUILD_CC$ac_delim
34059BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34060CVSBUILD!$CVSBUILD$ac_delim
34061ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34062DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34063DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34064JIT!$JIT$ac_delim
34065TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34066ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34067ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34068TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34069EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34070CXX!$CXX$ac_delim
34071CXXFLAGS!$CXXFLAGS$ac_delim
34072ac_ct_CXX!$ac_ct_CXX$ac_delim
34073LEX!$LEX$ac_delim
34074LEXLIB!$LEXLIB$ac_delim
34075LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34076FLEX!$FLEX$ac_delim
34077YACC!$YACC$ac_delim
34078YFLAGS!$YFLAGS$ac_delim
34079BISON!$BISON$ac_delim
34080NM!$NM$ac_delim
34081ifGNUmake!$ifGNUmake$ac_delim
34082LN_S!$LN_S$ac_delim
34083CMP!$CMP$ac_delim
34084CP!$CP$ac_delim
34085DATE!$DATE$ac_delim
34086_ACEOF
34087
34088 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34089 break
34090 elif $ac_last_try; then
34091 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34092echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34093 { (exit 1); exit 1; }; }
34094 else
34095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034096 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034097done
34098
34099ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34100if test -n "$ac_eof"; then
34101 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34102 ac_eof=`expr $ac_eof + 1`
34103fi
34104
34105cat >>$CONFIG_STATUS <<_ACEOF
34106cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34108_ACEOF
34109sed '
34110s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34111s/^/s,@/; s/!/@,|#_!!_#|/
34112:n
34113t n
34114s/'"$ac_delim"'$/,g/; t
34115s/$/\\/; p
34116N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34117' >>$CONFIG_STATUS <conf$$subs.sed
34118rm -f conf$$subs.sed
34119cat >>$CONFIG_STATUS <<_ACEOF
34120CEOF$ac_eof
34121_ACEOF
34122
34123
34124ac_delim='%!_!# '
34125for ac_last_try in false false false false false :; do
34126 cat >conf$$subs.sed <<_ACEOF
34127FIND!$FIND$ac_delim
34128MKDIR!$MKDIR$ac_delim
34129MV!$MV$ac_delim
34130RANLIB!$RANLIB$ac_delim
34131RM!$RM$ac_delim
34132SED!$SED$ac_delim
34133TAR!$TAR$ac_delim
34134BINPWD!$BINPWD$ac_delim
34135GRAPHVIZ!$GRAPHVIZ$ac_delim
34136DOT!$DOT$ac_delim
34137GV!$GV$ac_delim
34138DOTTY!$DOTTY$ac_delim
34139PERL!$PERL$ac_delim
34140HAVE_PERL!$HAVE_PERL$ac_delim
34141INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34142INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34143INSTALL_DATA!$INSTALL_DATA$ac_delim
34144BZIP2!$BZIP2$ac_delim
34145DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034146GROFF!$GROFF$ac_delim
34147GZIP!$GZIP$ac_delim
34148POD2HTML!$POD2HTML$ac_delim
34149POD2MAN!$POD2MAN$ac_delim
34150RUNTEST!$RUNTEST$ac_delim
34151TCLSH!$TCLSH$ac_delim
34152ZIP!$ZIP$ac_delim
34153INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34154INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34155CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34156CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34157LIBADD_DL!$LIBADD_DL$ac_delim
34158ECHO!$ECHO$ac_delim
34159AR!$AR$ac_delim
34160STRIP!$STRIP$ac_delim
34161CXXCPP!$CXXCPP$ac_delim
34162F77!$F77$ac_delim
34163FFLAGS!$FFLAGS$ac_delim
34164ac_ct_F77!$ac_ct_F77$ac_delim
34165LIBTOOL!$LIBTOOL$ac_delim
34166ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34167LLVMGCC!$LLVMGCC$ac_delim
34168LLVMGXX!$LLVMGXX$ac_delim
34169ALLOCA!$ALLOCA$ac_delim
34170MMAP_FILE!$MMAP_FILE$ac_delim
34171LLVMCC1!$LLVMCC1$ac_delim
34172LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34173LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34174LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34175LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34176SHLIBEXT!$SHLIBEXT$ac_delim
34177LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34178LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34179LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34180LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34181LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34182LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34183LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34184LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34185LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34186LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34187LIBOBJS!$LIBOBJS$ac_delim
34188LTLIBOBJS!$LTLIBOBJS$ac_delim
34189_ACEOF
34190
Reid Spencer6ccd01a2006-08-22 22:21:38 +000034191 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
Reid Spencera773bd52006-08-04 18:18:08 +000034192 break
34193 elif $ac_last_try; then
34194 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34195echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34196 { (exit 1); exit 1; }; }
34197 else
34198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34199 fi
34200done
34201
34202ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34203if test -n "$ac_eof"; then
34204 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34205 ac_eof=`expr $ac_eof + 1`
34206fi
34207
34208cat >>$CONFIG_STATUS <<_ACEOF
34209cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34211_ACEOF
34212sed '
34213s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34214s/^/s,@/; s/!/@,|#_!!_#|/
34215:n
34216t n
34217s/'"$ac_delim"'$/,g/; t
34218s/$/\\/; p
34219N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34220' >>$CONFIG_STATUS <conf$$subs.sed
34221rm -f conf$$subs.sed
34222cat >>$CONFIG_STATUS <<_ACEOF
34223:end
34224s/|#_!!_#|//g
34225CEOF$ac_eof
34226_ACEOF
34227
34228
34229# VPATH may cause trouble with some makes, so we remove $(srcdir),
34230# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34231# trailing colons and then remove the whole line if VPATH becomes empty
34232# (actually we leave an empty line to preserve line numbers).
34233if test "x$srcdir" = x.; then
34234 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34235s/:*\$(srcdir):*/:/
34236s/:*\${srcdir}:*/:/
34237s/:*@srcdir@:*/:/
34238s/^\([^=]*=[ ]*\):*/\1/
34239s/:*$//
34240s/^[^=]*=[ ]*$//
34241}'
34242fi
34243
34244cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034245fi # test -n "$CONFIG_FILES"
34246
Reid Spencera773bd52006-08-04 18:18:08 +000034247
34248for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34249do
34250 case $ac_tag in
34251 :[FHLC]) ac_mode=$ac_tag; continue;;
34252 esac
34253 case $ac_mode$ac_tag in
34254 :[FHL]*:*);;
34255 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34256echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34257 { (exit 1); exit 1; }; };;
34258 :[FH]-) ac_tag=-:-;;
34259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34260 esac
34261 ac_save_IFS=$IFS
34262 IFS=:
34263 set x $ac_tag
34264 IFS=$ac_save_IFS
34265 shift
34266 ac_file=$1
34267 shift
34268
34269 case $ac_mode in
34270 :L) ac_source=$1;;
34271 :[FH])
34272 ac_file_inputs=
34273 for ac_f
34274 do
34275 case $ac_f in
34276 -) ac_f="$tmp/stdin";;
34277 *) # Look for the file first in the build tree, then in the source tree
34278 # (if the path is not absolute). The absolute path cannot be DOS-style,
34279 # because $ac_f cannot contain `:'.
34280 test -f "$ac_f" ||
34281 case $ac_f in
34282 [\\/$]*) false;;
34283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34284 esac ||
34285 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34286echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34287 { (exit 1); exit 1; }; };;
34288 esac
34289 ac_file_inputs="$ac_file_inputs $ac_f"
34290 done
34291
34292 # Let's still pretend it is `configure' which instantiates (i.e., don't
34293 # use $as_me), people would be surprised to read:
34294 # /* config.h. Generated by config.status. */
34295 configure_input="Generated from "`IFS=:
34296 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34297 if test x"$ac_file" != x-; then
34298 configure_input="$ac_file. $configure_input"
34299 { echo "$as_me:$LINENO: creating $ac_file" >&5
34300echo "$as_me: creating $ac_file" >&6;}
34301 fi
34302
34303 case $ac_tag in
34304 *:-:* | *:-) cat >"$tmp/stdin";;
34305 esac
34306 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034307 esac
34308
Reid Spencera773bd52006-08-04 18:18:08 +000034309 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034311 X"$ac_file" : 'X\(//\)[^/]' \| \
34312 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034314echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34316 s//\1/
34317 q
34318 }
34319 /^X\(\/\/\)[^/].*/{
34320 s//\1/
34321 q
34322 }
34323 /^X\(\/\/\)$/{
34324 s//\1/
34325 q
34326 }
34327 /^X\(\/\).*/{
34328 s//\1/
34329 q
34330 }
34331 s/.*/./; q'`
34332 { as_dir="$ac_dir"
34333 case $as_dir in #(
34334 -*) as_dir=./$as_dir;;
34335 esac
34336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034337 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034338 while :; do
34339 case $as_dir in #(
34340 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34341 *) as_qdir=$as_dir;;
34342 esac
34343 as_dirs="'$as_qdir' $as_dirs"
34344 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034346 X"$as_dir" : 'X\(//\)[^/]' \| \
34347 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034349echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34351 s//\1/
34352 q
34353 }
34354 /^X\(\/\/\)[^/].*/{
34355 s//\1/
34356 q
34357 }
34358 /^X\(\/\/\)$/{
34359 s//\1/
34360 q
34361 }
34362 /^X\(\/\).*/{
34363 s//\1/
34364 q
34365 }
34366 s/.*/./; q'`
34367 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034368 done
Reid Spencera773bd52006-08-04 18:18:08 +000034369 test -z "$as_dirs" || eval "mkdir $as_dirs"
34370 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34371echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034372 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034373 ac_builddir=.
34374
Reid Spencera773bd52006-08-04 18:18:08 +000034375case "$ac_dir" in
34376.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34377*)
John Criswell7a73b802003-06-30 21:59:07 +000034378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034379 # A ".." for each directory in $ac_dir_suffix.
34380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34381 case $ac_top_builddir_sub in
34382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34384 esac ;;
34385esac
34386ac_abs_top_builddir=$ac_pwd
34387ac_abs_builddir=$ac_pwd$ac_dir_suffix
34388# for backward compatibility:
34389ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034390
34391case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034392 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034393 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034394 ac_top_srcdir=$ac_top_builddir_sub
34395 ac_abs_top_srcdir=$ac_pwd ;;
34396 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034397 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034398 ac_top_srcdir=$srcdir
34399 ac_abs_top_srcdir=$srcdir ;;
34400 *) # Relative name.
34401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34402 ac_top_srcdir=$ac_top_build_prefix$srcdir
34403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034404esac
Reid Spencera773bd52006-08-04 18:18:08 +000034405ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034406
John Criswell7a73b802003-06-30 21:59:07 +000034407
Reid Spencera773bd52006-08-04 18:18:08 +000034408 case $ac_mode in
34409 :F)
34410 #
34411 # CONFIG_FILE
34412 #
John Criswell7a73b802003-06-30 21:59:07 +000034413
34414 case $INSTALL in
34415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034417 esac
John Criswell7a73b802003-06-30 21:59:07 +000034418_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034419
34420cat >>$CONFIG_STATUS <<\_ACEOF
34421# If the template does not know about datarootdir, expand it.
34422# FIXME: This hack should be removed a few years after 2.60.
34423ac_datarootdir_hack=; ac_datarootdir_seen=
34424
34425case `sed -n '/datarootdir/ {
34426 p
34427 q
34428}
34429/@datadir@/p
34430/@docdir@/p
34431/@infodir@/p
34432/@localedir@/p
34433/@mandir@/p
34434' $ac_file_inputs` in
34435*datarootdir*) ac_datarootdir_seen=yes;;
34436*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34437 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34438echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34439_ACEOF
34440cat >>$CONFIG_STATUS <<_ACEOF
34441 ac_datarootdir_hack='
34442 s&@datadir@&$datadir&g
34443 s&@docdir@&$docdir&g
34444 s&@infodir@&$infodir&g
34445 s&@localedir@&$localedir&g
34446 s&@mandir@&$mandir&g
34447 s&\\\${datarootdir}&$datarootdir&g' ;;
34448esac
34449_ACEOF
34450
34451# Neutralize VPATH when `$srcdir' = `.'.
34452# Shell code in configure.ac might set extrasub.
34453# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034454cat >>$CONFIG_STATUS <<_ACEOF
34455 sed "$ac_vpsub
34456$extrasub
34457_ACEOF
34458cat >>$CONFIG_STATUS <<\_ACEOF
34459:t
34460/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034461s&@configure_input@&$configure_input&;t t
34462s&@top_builddir@&$ac_top_builddir_sub&;t t
34463s&@srcdir@&$ac_srcdir&;t t
34464s&@abs_srcdir@&$ac_abs_srcdir&;t t
34465s&@top_srcdir@&$ac_top_srcdir&;t t
34466s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34467s&@builddir@&$ac_builddir&;t t
34468s&@abs_builddir@&$ac_abs_builddir&;t t
34469s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34470s&@INSTALL@&$ac_INSTALL&;t t
34471$ac_datarootdir_hack
34472" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034473
Reid Spencera773bd52006-08-04 18:18:08 +000034474test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34477 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34478which seems to be undefined. Please make sure it is defined." >&5
34479echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34480which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034481
Reid Spencera773bd52006-08-04 18:18:08 +000034482 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034483 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034484 -) cat "$tmp/out"; rm -f "$tmp/out";;
34485 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034486 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034487 ;;
34488 :H)
34489 #
34490 # CONFIG_HEADER
34491 #
John Criswell7a73b802003-06-30 21:59:07 +000034492_ACEOF
34493
Reid Spencera773bd52006-08-04 18:18:08 +000034494# Transform confdefs.h into a sed script `conftest.defines', that
34495# substitutes the proper values into config.h.in to produce config.h.
34496rm -f conftest.defines conftest.tail
34497# First, append a space to every undef/define line, to ease matching.
34498echo 's/$/ /' >conftest.defines
34499# Then, protect against being on the right side of a sed subst, or in
34500# an unquoted here document, in config.status. If some macros were
34501# called several times there might be several #defines for the same
34502# symbol, which is useless. But do not sort them, since the last
34503# AC_DEFINE must be honored.
34504ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34505# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34506# NAME is the cpp macro being defined, VALUE is the value it is being given.
34507# PARAMS is the parameter list in the macro definition--in most cases, it's
34508# just an empty string.
34509ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34510ac_dB='\\)[ (].*,\\1define\\2'
34511ac_dC=' '
34512ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034513
Reid Spencera773bd52006-08-04 18:18:08 +000034514uniq confdefs.h |
34515 sed -n '
34516 t rset
34517 :rset
34518 s/^[ ]*#[ ]*define[ ][ ]*//
34519 t ok
34520 d
34521 :ok
34522 s/[\\&,]/\\&/g
34523 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34524 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34525 ' >>conftest.defines
34526
34527# Remove the space that was appended to ease matching.
34528# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034529# example, in the case of _POSIX_SOURCE, which is predefined and required
34530# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034531# (The regexp can be short, since the line contains either #define or #undef.)
34532echo 's/ $//
34533s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034534
Reid Spencera773bd52006-08-04 18:18:08 +000034535# Break up conftest.defines:
34536ac_max_sed_lines=50
34537
34538# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34539# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34540# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34541# et cetera.
34542ac_in='$ac_file_inputs'
34543ac_out='"$tmp/out1"'
34544ac_nxt='"$tmp/out2"'
34545
34546while :
John Criswell7a73b802003-06-30 21:59:07 +000034547do
Reid Spencera773bd52006-08-04 18:18:08 +000034548 # Write a here document:
34549 cat >>$CONFIG_STATUS <<_ACEOF
34550 # First, check the format of the line:
34551 cat >"\$tmp/defines.sed" <<\\CEOF
34552/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34553/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34554b
34555:def
34556_ACEOF
34557 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034558 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034559 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34560 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34561 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34562 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034563 rm -f conftest.defines
34564 mv conftest.tail conftest.defines
34565done
Reid Spencera773bd52006-08-04 18:18:08 +000034566rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034567
Reid Spencera773bd52006-08-04 18:18:08 +000034568echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034569cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034570 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034571 echo "/* $configure_input */" >"$tmp/config.h"
34572 cat "$ac_result" >>"$tmp/config.h"
34573 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034574 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34575echo "$as_me: $ac_file is unchanged" >&6;}
34576 else
John Criswell7a73b802003-06-30 21:59:07 +000034577 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034578 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034579 fi
34580 else
Reid Spencera773bd52006-08-04 18:18:08 +000034581 echo "/* $configure_input */"
34582 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034583 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034584 rm -f "$tmp/out12"
34585 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034586
Reid Spencera773bd52006-08-04 18:18:08 +000034587 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34588echo "$as_me: executing $ac_file commands" >&6;}
34589 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034590 esac
John Criswell7a73b802003-06-30 21:59:07 +000034591
Reid Spencera773bd52006-08-04 18:18:08 +000034592
34593 case $ac_file$ac_mode in
34594 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34596 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34598 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34600 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34602 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34604 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34606 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34608 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34610 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34612 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34613 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34614
34615 esac
34616done # for ac_tag
34617
John Criswell7a73b802003-06-30 21:59:07 +000034618
34619{ (exit 0); exit 0; }
34620_ACEOF
34621chmod +x $CONFIG_STATUS
34622ac_clean_files=$ac_clean_files_save
34623
34624
34625# configure is writing to config.log, and then calls config.status.
34626# config.status does its own redirection, appending to config.log.
34627# Unfortunately, on DOS this fails, as config.log is still kept open
34628# by configure, so config.status won't be able to write to it; its
34629# output is simply discarded. So we exec the FD to /dev/null,
34630# effectively closing config.log, so it can be properly (re)opened and
34631# appended to by config.status. When coming back to configure, we
34632# need to make the FD available again.
34633if test "$no_create" != yes; then
34634 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034635 ac_config_status_args=
34636 test "$silent" = yes &&
34637 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034638 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034640 exec 5>>config.log
34641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34642 # would make configure fail if this is the last instruction.
34643 $ac_cs_success || { (exit 1); exit 1; }
34644fi
34645
John Criswell12399a12003-09-30 15:55:44 +000034646#
34647# CONFIG_SUBDIRS section.
34648#
34649if test "$no_recursion" != yes; then
34650
34651 # Remove --cache-file and --srcdir arguments so they do not pile up.
34652 ac_sub_configure_args=
34653 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034654 eval "set x $ac_configure_args"
34655 shift
34656 for ac_arg
34657 do
John Criswell12399a12003-09-30 15:55:44 +000034658 if test -n "$ac_prev"; then
34659 ac_prev=
34660 continue
34661 fi
34662 case $ac_arg in
34663 -cache-file | --cache-file | --cache-fil | --cache-fi \
34664 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34665 ac_prev=cache_file ;;
34666 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34667 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34668 | --c=*)
34669 ;;
34670 --config-cache | -C)
34671 ;;
34672 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34673 ac_prev=srcdir ;;
34674 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34675 ;;
34676 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34677 ac_prev=prefix ;;
34678 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34679 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034680 *)
34681 case $ac_arg in
34682 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34683 esac
34684 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034685 esac
34686 done
34687
34688 # Always prepend --prefix to ensure using the same prefix
34689 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034690 ac_arg="--prefix=$prefix"
34691 case $ac_arg in
34692 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34693 esac
34694 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034695
34696 ac_popdir=`pwd`
34697 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34698
34699 # Do not complain, so a configure script can configure whichever
34700 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034701 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034702
Reid Spencera773bd52006-08-04 18:18:08 +000034703 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34704 echo "$as_me:$LINENO: $ac_msg" >&5
34705 echo "$ac_msg" >&6
34706 { as_dir="$ac_dir"
34707 case $as_dir in #(
34708 -*) as_dir=./$as_dir;;
34709 esac
34710 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034711 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034712 while :; do
34713 case $as_dir in #(
34714 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34715 *) as_qdir=$as_dir;;
34716 esac
34717 as_dirs="'$as_qdir' $as_dirs"
34718 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034720 X"$as_dir" : 'X\(//\)[^/]' \| \
34721 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034722 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034723echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34725 s//\1/
34726 q
34727 }
34728 /^X\(\/\/\)[^/].*/{
34729 s//\1/
34730 q
34731 }
34732 /^X\(\/\/\)$/{
34733 s//\1/
34734 q
34735 }
34736 /^X\(\/\).*/{
34737 s//\1/
34738 q
34739 }
34740 s/.*/./; q'`
34741 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034742 done
Reid Spencera773bd52006-08-04 18:18:08 +000034743 test -z "$as_dirs" || eval "mkdir $as_dirs"
34744 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34745echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034746 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034747 ac_builddir=.
34748
Reid Spencera773bd52006-08-04 18:18:08 +000034749case "$ac_dir" in
34750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34751*)
John Criswell12399a12003-09-30 15:55:44 +000034752 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034753 # A ".." for each directory in $ac_dir_suffix.
34754 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34755 case $ac_top_builddir_sub in
34756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34758 esac ;;
34759esac
34760ac_abs_top_builddir=$ac_pwd
34761ac_abs_builddir=$ac_pwd$ac_dir_suffix
34762# for backward compatibility:
34763ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034764
34765case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034766 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034767 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034768 ac_top_srcdir=$ac_top_builddir_sub
34769 ac_abs_top_srcdir=$ac_pwd ;;
34770 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034771 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034772 ac_top_srcdir=$srcdir
34773 ac_abs_top_srcdir=$srcdir ;;
34774 *) # Relative name.
34775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34776 ac_top_srcdir=$ac_top_build_prefix$srcdir
34777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034778esac
Reid Spencera773bd52006-08-04 18:18:08 +000034779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034780
34781
Reid Spencera773bd52006-08-04 18:18:08 +000034782 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034783
34784 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034785 if test -f "$ac_srcdir/configure.gnu"; then
34786 ac_sub_configure=$ac_srcdir/configure.gnu
34787 elif test -f "$ac_srcdir/configure"; then
34788 ac_sub_configure=$ac_srcdir/configure
34789 elif test -f "$ac_srcdir/configure.in"; then
34790 # This should be Cygnus configure.
34791 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034792 else
34793 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34794echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34795 ac_sub_configure=
34796 fi
34797
34798 # The recursion is here.
34799 if test -n "$ac_sub_configure"; then
34800 # Make the cache file name correct relative to the subdirectory.
34801 case $cache_file in
34802 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034803 *) # Relative name.
34804 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034805 esac
34806
Reid Spencera773bd52006-08-04 18:18:08 +000034807 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34808echo "$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 +000034809 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034810 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34811 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034812 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034813echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34814 { (exit 1); exit 1; }; }
34815 fi
34816
Reid Spencera773bd52006-08-04 18:18:08 +000034817 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034818 done
34819fi
34820
Brian Gaekef3b24102003-11-16 18:38:14 +000034821
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034822if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000034823 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34824echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000034825 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
34826echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
34827 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34828echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34829 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34830echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34831 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34832echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000034833fi