blob: 56513f2a4a6829a9cdde061885b2f543956a5f44 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer53b24862007-07-09 08:10:07 +00003# Generated by GNU Autoconf 2.60 for llvm 2.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Reid Spencera773bd52006-08-04 18:18:08 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528else
529 as_executable_p=:
530fi
531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Reid Spencer53b24862007-07-09 08:10:07 +0000718PACKAGE_VERSION='2.1svn'
719PACKAGE_STRING='llvm 2.1svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
899ETAGSFLAGS
900LLVMGCC
901LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000902USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000903HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000904HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000910LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000913LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
925LIBOBJS
926LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000927ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000928 ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934CPPFLAGS
935CPP
936CXX
937CXXFLAGS
938CCC
939YACC
940YFLAGS
941CXXCPP
942F77
943FFLAGS'
944ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000945projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000946projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000947projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000948projects/llvm-reopt
949projects/llvm-gcc
950projects/llvm-java
951projects/llvm-tv
952projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000953projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000954projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000955
956# Initialize some variables set by options.
957ac_init_help=
958ac_init_version=false
959# The variables have the same names as the options, with
960# dashes changed to underlines.
961cache_file=/dev/null
962exec_prefix=NONE
963no_create=
964no_recursion=
965prefix=NONE
966program_prefix=NONE
967program_suffix=NONE
968program_transform_name=s,x,x,
969silent=
970site=
971srcdir=
972verbose=
973x_includes=NONE
974x_libraries=NONE
975
976# Installation directory options.
977# These are left unexpanded so users can "make install exec_prefix=/foo"
978# and all the variables that are supposed to be based on exec_prefix
979# by default will actually change.
980# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000981# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000982bindir='${exec_prefix}/bin'
983sbindir='${exec_prefix}/sbin'
984libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000985datarootdir='${prefix}/share'
986datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000987sysconfdir='${prefix}/etc'
988sharedstatedir='${prefix}/com'
989localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000990includedir='${prefix}/include'
991oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000992docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993infodir='${datarootdir}/info'
994htmldir='${docdir}'
995dvidir='${docdir}'
996pdfdir='${docdir}'
997psdir='${docdir}'
998libdir='${exec_prefix}/lib'
999localedir='${datarootdir}/locale'
1000mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001001
1002ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001003ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001004for ac_option
1005do
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001008 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=
1010 continue
1011 fi
1012
Reid Spencera773bd52006-08-04 18:18:08 +00001013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
John Criswell7a73b802003-06-30 21:59:07 +00001017
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1019
Reid Spencera773bd52006-08-04 18:18:08 +00001020 case $ac_dashdash$ac_option in
1021 --)
1022 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001023
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1028
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1033
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1040
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1043
Reid Spencera773bd52006-08-04 18:18:08 +00001044 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001045 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001047 datadir=$ac_optarg ;;
1048
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1055
John Criswell7a73b802003-06-30 21:59:07 +00001056 -disable-* | --disable-*)
1057 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001063 eval enable_$ac_feature=no ;;
1064
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1069
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001074
1075 -enable-* | --enable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001082 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001083
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1092
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1096
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1103
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1108
Reid Spencera773bd52006-08-04 18:18:08 +00001109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1114
John Criswell7a73b802003-06-30 21:59:07 +00001115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1121
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1126
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1131
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1138
Reid Spencera773bd52006-08-04 18:18:08 +00001139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1143
John Criswell7a73b802003-06-30 21:59:07 +00001144 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001145 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001149 localstatedir=$ac_optarg ;;
1150
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1155
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1159
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1163
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1167
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1176
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1181
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1188
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1195
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1212
Reid Spencera773bd52006-08-04 18:18:08 +00001213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1217
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1222
John Criswell7a73b802003-06-30 21:59:07 +00001223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1226
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1232
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1243
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1248
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1253
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1260
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1265
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1268
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1271
1272 -with-* | --with-*)
1273 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001279 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001280
1281 -without-* | --without-*)
1282 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001288 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1293
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1300
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1307
1308 -*) { echo "$as_me: error: unrecognized option: $ac_option
1309Try \`$0 --help' for more information." >&2
1310 { (exit 1); exit 1; }; }
1311 ;;
1312
1313 *=*)
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001319 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001320 export $ac_envvar ;;
1321
1322 *)
1323 # FIXME: should be removed in autoconf 3.0.
1324 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 ;;
1329
1330 esac
1331done
1332
1333if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 { echo "$as_me: error: missing argument to $ac_option" >&2
1336 { (exit 1); exit 1; }; }
1337fi
1338
Reid Spencera773bd52006-08-04 18:18:08 +00001339# Be sure to have absolute directory names.
1340for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001344do
Reid Spencera773bd52006-08-04 18:18:08 +00001345 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001346 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001349 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001350 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001352done
1353
1354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
1360
1361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370fi
1371
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
1376
1377
Reid Spencera773bd52006-08-04 18:18:08 +00001378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 { echo "$as_me: error: Working directory cannot be determined" >&2
1382 { (exit 1); exit 1; }; }
1383test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 { echo "$as_me: error: pwd does not report name of working directory" >&2
1385 { (exit 1); exit 1; }; }
1386
1387
John Criswell7a73b802003-06-30 21:59:07 +00001388# Find the source files, if location was not specified.
1389if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001393$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001394 X"$0" : 'X\(//\)[^/]' \| \
1395 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001397echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001415 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001416 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001417 srcdir=..
1418 fi
1419else
1420 ac_srcdir_defaulted=no
1421fi
Reid Spencera773bd52006-08-04 18:18:08 +00001422if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001425 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001426fi
Reid Spencera773bd52006-08-04 18:18:08 +00001427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001430 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001431 pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
John Criswell7a73b802003-06-30 21:59:07 +00001448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
Reid Spencer53b24862007-07-09 08:10:07 +00001456\`configure' configures llvm 2.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
John Criswell7a73b802003-06-30 21:59:07 +00001476Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001478 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001480 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 --target=TARGET configure for building compilers for TARGET [HOST]
1517_ACEOF
1518fi
1519
1520if test -n "$ac_init_help"; then
1521 case $ac_init_help in
Reid Spencer53b24862007-07-09 08:10:07 +00001522 short | recursive ) echo "Configuration of llvm 2.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001523 esac
1524 cat <<\_ACEOF
1525
1526Optional Features:
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001530 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001531 --enable-expensive-checks
1532
Reid Spencer8b2e1412006-11-17 03:32:33 +00001533 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001535 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001536 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001537 --enable-pic Build LLVM with Position Independent Code (default
1538 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001539 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001540 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001541 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1542 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001543 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001544 --enable-shared[=PKGS] build shared libraries
1545 [default=enable_shared_default]
1546 --enable-static[=PKGS] build static libraries
1547 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001548 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001549 optimize for fast installation
1550 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001551 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001552
1553Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001556 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1557 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001558 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001559 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001560 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1561 --with-pic try to use only PIC/non-PIC objects [default=use
1562 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001563 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001564 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001565
1566Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 CC C compiler command
1568 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001571 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001573 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001576 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1577 the first program found out of: `bison -y', `byacc', `yacc'.
1578 YFLAGS The list of arguments that will be passed by default to $YACC.
1579 This script will default YFLAGS to the empty string to avoid a
1580 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001581 CXXCPP C++ preprocessor
1582 F77 Fortran 77 compiler command
1583 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001584
1585Use these variables to override the choices made by `configure' or to help
1586it to find libraries and programs with nonstandard names/locations.
1587
1588Report bugs to <llvmbugs@cs.uiuc.edu>.
1589_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001590ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001591fi
1592
1593if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001596 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001597 ac_builddir=.
1598
Reid Spencera773bd52006-08-04 18:18:08 +00001599case "$ac_dir" in
1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601*)
John Criswell7a73b802003-06-30 21:59:07 +00001602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 esac ;;
1609esac
1610ac_abs_top_builddir=$ac_pwd
1611ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612# for backward compatibility:
1613ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001616 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001617 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001621 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1624 *) # Relative name.
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001628esac
Reid Spencera773bd52006-08-04 18:18:08 +00001629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630
Reid Spencera773bd52006-08-04 18:18:08 +00001631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001639 else
1640 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001641 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001643 done
1644fi
1645
Reid Spencera773bd52006-08-04 18:18:08 +00001646test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001647if $ac_init_version; then
1648 cat <<\_ACEOF
Reid Spencer53b24862007-07-09 08:10:07 +00001649llvm configure 2.1svn
Reid Spencera773bd52006-08-04 18:18:08 +00001650generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001651
Reid Spencera773bd52006-08-04 18:18:08 +00001652Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16532002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001654This configure script is free software; the Free Software Foundation
1655gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001656
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001657Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001658_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001659 exit
John Criswell7a73b802003-06-30 21:59:07 +00001660fi
Reid Spencera773bd52006-08-04 18:18:08 +00001661cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001662This file contains any messages produced by compilers while
1663running configure, to aid debugging if configure makes a mistake.
1664
Reid Spencer53b24862007-07-09 08:10:07 +00001665It was created by llvm $as_me 2.1svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001666generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001667
1668 $ $0 $@
1669
1670_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001671exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001672{
1673cat <<_ASUNAME
1674## --------- ##
1675## Platform. ##
1676## --------- ##
1677
1678hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686
1687/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001690/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001691/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694
1695_ASUNAME
1696
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 echo "PATH: $as_dir"
1703done
Reid Spencera773bd52006-08-04 18:18:08 +00001704IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001705
1706} >&5
1707
1708cat >&5 <<_ACEOF
1709
1710
1711## ----------- ##
1712## Core tests. ##
1713## ----------- ##
1714
1715_ACEOF
1716
1717
1718# Keep a trace of the command line.
1719# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001720# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001721# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001722# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001723ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001724ac_configure_args0=
1725ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001726ac_must_keep_next=false
1727for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001728do
John Criswell0c38eaf2003-09-10 15:17:25 +00001729 for ac_arg
1730 do
1731 case $ac_arg in
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1735 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001736 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738 esac
1739 case $ac_pass in
1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 2)
1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001744 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001746 case $ac_arg in
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753 esac
1754 ;;
1755 -* ) ac_must_keep_next=true ;;
1756 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001758 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001759 ;;
1760 esac
1761 done
John Criswell7a73b802003-06-30 21:59:07 +00001762done
John Criswell0c38eaf2003-09-10 15:17:25 +00001763$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764$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 +00001765
1766# When interrupted or exit'd, cleanup temporary files, and complete
1767# config.log. We remove comments because anyway the quotes in there
1768# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001769# WARNING: Use '\'' to represent an apostrophe within the trap.
1770# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001771trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1773 {
1774 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001775
John Criswell7a73b802003-06-30 21:59:07 +00001776 cat <<\_ASBOX
1777## ---------------- ##
1778## Cache variables. ##
1779## ---------------- ##
1780_ASBOX
1781 echo
1782 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001783(
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in #(
1787 *${as_nl}*)
1788 case $ac_var in #(
1789 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1790echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1791 esac
1792 case $ac_var in #(
1793 _ | IFS | as_nl) ;; #(
1794 *) $as_unset $ac_var ;;
1795 esac ;;
1796 esac
1797 done
John Criswell7a73b802003-06-30 21:59:07 +00001798 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001799 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001801 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001802 "s/'\''/'\''\\\\'\'''\''/g;
1803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001805 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001807 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001808 esac |
1809 sort
1810)
John Criswell7a73b802003-06-30 21:59:07 +00001811 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001812
1813 cat <<\_ASBOX
1814## ----------------- ##
1815## Output variables. ##
1816## ----------------- ##
1817_ASBOX
1818 echo
1819 for ac_var in $ac_subst_vars
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
1829 if test -n "$ac_subst_files"; then
1830 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001831## ------------------- ##
1832## File substitutions. ##
1833## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001834_ASBOX
1835 echo
1836 for ac_var in $ac_subst_files
1837 do
Reid Spencera773bd52006-08-04 18:18:08 +00001838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001843 done | sort
1844 echo
1845 fi
1846
John Criswell7a73b802003-06-30 21:59:07 +00001847 if test -s confdefs.h; then
1848 cat <<\_ASBOX
1849## ----------- ##
1850## confdefs.h. ##
1851## ----------- ##
1852_ASBOX
1853 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001854 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001855 echo
1856 fi
1857 test "$ac_signal" != 0 &&
1858 echo "$as_me: caught signal $ac_signal"
1859 echo "$as_me: exit $exit_status"
1860 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001861 rm -f core *.core core.conftest.* &&
1862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001863 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001864' 0
John Criswell7a73b802003-06-30 21:59:07 +00001865for ac_signal in 1 2 13 15; do
1866 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1867done
1868ac_signal=0
1869
1870# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001871rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001872
1873# Predefined preprocessor variables.
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_NAME "$PACKAGE_NAME"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_VERSION "$PACKAGE_VERSION"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_STRING "$PACKAGE_STRING"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897_ACEOF
1898
1899
1900# Let the site file select an alternate cache file if it wants to.
1901# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001902if test -n "$CONFIG_SITE"; then
1903 set x "$CONFIG_SITE"
1904elif test "x$prefix" != xNONE; then
1905 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1906else
1907 set x "$ac_default_prefix/share/config.site" \
1908 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001909fi
Reid Spencera773bd52006-08-04 18:18:08 +00001910shift
1911for ac_site_file
1912do
John Criswell7a73b802003-06-30 21:59:07 +00001913 if test -r "$ac_site_file"; then
1914 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1915echo "$as_me: loading site script $ac_site_file" >&6;}
1916 sed 's/^/| /' "$ac_site_file" >&5
1917 . "$ac_site_file"
1918 fi
1919done
1920
1921if test -r "$cache_file"; then
1922 # Some versions of bash will fail to source /dev/null (special
1923 # files actually), so we avoid doing that.
1924 if test -f "$cache_file"; then
1925 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1926echo "$as_me: loading cache $cache_file" >&6;}
1927 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1929 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001930 esac
1931 fi
1932else
1933 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1934echo "$as_me: creating cache $cache_file" >&6;}
1935 >$cache_file
1936fi
1937
1938# Check that the precious variables saved in the cache have kept the same
1939# value.
1940ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001941for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1943 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1945 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001946 case $ac_old_set,$ac_new_set in
1947 set,)
1948 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1949echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1951 ,set)
1952 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1953echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1954 ac_cache_corrupted=: ;;
1955 ,);;
1956 *)
1957 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001958 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001959echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001960 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001961echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001962 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001963echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001964 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001965 fi;;
1966 esac
1967 # Pass precious variables to config.status.
1968 if test "$ac_new_set" = set; then
1969 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001970 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001971 *) ac_arg=$ac_var=$ac_new_val ;;
1972 esac
1973 case " $ac_configure_args " in
1974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1975 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1976 esac
1977 fi
1978done
1979if $ac_cache_corrupted; then
1980 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1981echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1982 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1983echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1984 { (exit 1); exit 1; }; }
1985fi
1986
Reid Spencera773bd52006-08-04 18:18:08 +00001987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
John Criswell7a73b802003-06-30 21:59:07 +00002011ac_ext=c
2012ac_cpp='$CPP $CPPFLAGS'
2013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016
2017
2018
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002019LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002020
2021
2022
2023
2024
2025
2026
John Criswell7a73b802003-06-30 21:59:07 +00002027ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002028for ac_dir in autoconf "$srcdir"/autoconf; do
2029 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002030 ac_aux_dir=$ac_dir
2031 ac_install_sh="$ac_aux_dir/install-sh -c"
2032 break
Reid Spencera773bd52006-08-04 18:18:08 +00002033 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002034 ac_aux_dir=$ac_dir
2035 ac_install_sh="$ac_aux_dir/install.sh -c"
2036 break
Reid Spencera773bd52006-08-04 18:18:08 +00002037 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002038 ac_aux_dir=$ac_dir
2039 ac_install_sh="$ac_aux_dir/shtool install -c"
2040 break
2041 fi
2042done
2043if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002044 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2045echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002046 { (exit 1); exit 1; }; }
2047fi
Reid Spencera773bd52006-08-04 18:18:08 +00002048
2049# These three variables are undocumented and unsupported,
2050# and are intended to be withdrawn in a future Autoconf release.
2051# They can cause serious problems if a builder's source tree is in a directory
2052# whose full name contains unusual characters.
2053ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2054ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2055ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2056
John Criswell7a73b802003-06-30 21:59:07 +00002057
John Criswell392aaa32003-07-22 19:18:09 +00002058
Reid Spencer2706f8c2004-09-19 23:53:36 +00002059if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2061 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002062echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2063 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002064 fi
John Criswell93e1c722003-09-15 17:04:06 +00002065fi
2066
John Criswell33a911a2003-11-25 20:36:46 +00002067for i in `ls ${srcdir}/projects`
2068do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002069 if test -d ${srcdir}/projects/${i} ; then
2070 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002071 CVS) ;;
2072 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002073 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002074 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002075 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002076 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002077 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002078 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002079 ;;
2080 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002081;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002085 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002086 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002089 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002090 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002091 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002093 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002095 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2096echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002097 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098 esac
John Criswell33a911a2003-11-25 20:36:46 +00002099 fi
2100done
John Criswell559a6c12003-09-30 16:31:48 +00002101
John Criswell7a73b802003-06-30 21:59:07 +00002102
2103# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002104$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2105 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2106echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002107 { (exit 1); exit 1; }; }
2108
Reid Spencera773bd52006-08-04 18:18:08 +00002109{ echo "$as_me:$LINENO: checking build system type" >&5
2110echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002111if test "${ac_cv_build+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
Reid Spencera773bd52006-08-04 18:18:08 +00002114 ac_build_alias=$build_alias
2115test "x$ac_build_alias" = x &&
2116 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2117test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002118 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2119echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2120 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002121ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2122 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2123echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002124 { (exit 1); exit 1; }; }
2125
2126fi
Reid Spencera773bd52006-08-04 18:18:08 +00002127{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2128echo "${ECHO_T}$ac_cv_build" >&6; }
2129case $ac_cv_build in
2130*-*-*) ;;
2131*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2132echo "$as_me: error: invalid value of canonical build" >&2;}
2133 { (exit 1); exit 1; }; };;
2134esac
John Criswell7a73b802003-06-30 21:59:07 +00002135build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002136ac_save_IFS=$IFS; IFS='-'
2137set x $ac_cv_build
2138shift
2139build_cpu=$1
2140build_vendor=$2
2141shift; shift
2142# Remember, the first character of IFS is used to create $*,
2143# except with old shells:
2144build_os=$*
2145IFS=$ac_save_IFS
2146case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002147
2148
Reid Spencera773bd52006-08-04 18:18:08 +00002149{ echo "$as_me:$LINENO: checking host system type" >&5
2150echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002151if test "${ac_cv_host+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
Reid Spencera773bd52006-08-04 18:18:08 +00002154 if test "x$host_alias" = x; then
2155 ac_cv_host=$ac_cv_build
2156else
2157 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002160 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002161fi
John Criswell7a73b802003-06-30 21:59:07 +00002162
2163fi
Reid Spencera773bd52006-08-04 18:18:08 +00002164{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2165echo "${ECHO_T}$ac_cv_host" >&6; }
2166case $ac_cv_host in
2167*-*-*) ;;
2168*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169echo "$as_me: error: invalid value of canonical host" >&2;}
2170 { (exit 1); exit 1; }; };;
2171esac
John Criswell7a73b802003-06-30 21:59:07 +00002172host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002173ac_save_IFS=$IFS; IFS='-'
2174set x $ac_cv_host
2175shift
2176host_cpu=$1
2177host_vendor=$2
2178shift; shift
2179# Remember, the first character of IFS is used to create $*,
2180# except with old shells:
2181host_os=$*
2182IFS=$ac_save_IFS
2183case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002184
2185
Reid Spencera773bd52006-08-04 18:18:08 +00002186{ echo "$as_me:$LINENO: checking target system type" >&5
2187echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002188if test "${ac_cv_target+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
Reid Spencera773bd52006-08-04 18:18:08 +00002191 if test "x$target_alias" = x; then
2192 ac_cv_target=$ac_cv_host
2193else
2194 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2196echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002198fi
John Criswell7a73b802003-06-30 21:59:07 +00002199
2200fi
Reid Spencera773bd52006-08-04 18:18:08 +00002201{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2202echo "${ECHO_T}$ac_cv_target" >&6; }
2203case $ac_cv_target in
2204*-*-*) ;;
2205*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2206echo "$as_me: error: invalid value of canonical target" >&2;}
2207 { (exit 1); exit 1; }; };;
2208esac
John Criswell7a73b802003-06-30 21:59:07 +00002209target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_target
2212shift
2213target_cpu=$1
2214target_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218target_os=$*
2219IFS=$ac_save_IFS
2220case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002221
2222
2223# The aliases save the names the user supplied, while $host etc.
2224# will get canonicalized.
2225test -n "$target_alias" &&
2226 test "$program_prefix$program_suffix$program_transform_name" = \
2227 NONENONEs,x,x, &&
2228 program_prefix=${target_alias}-
2229
Reid Spencera773bd52006-08-04 18:18:08 +00002230{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2231echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002232if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002235 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002236 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002237 llvm_cv_link_all_option="-Wl,--whole-archive"
2238 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 llvm_cv_os_type="AIX"
2240 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002241 *-*-irix*)
2242 llvm_cv_link_all_option="-Wl,--whole-archive"
2243 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244 llvm_cv_os_type="IRIX"
2245 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002247 llvm_cv_link_all_option="-Wl,--whole-archive"
2248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 llvm_cv_os_type="Cygwin"
2250 llvm_cv_platform_type="Unix" ;;
2251 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002252 llvm_cv_link_all_option="-Wl,-all_load"
2253 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002254 llvm_cv_os_type="Darwin"
2255 llvm_cv_platform_type="Unix" ;;
2256 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 llvm_cv_os_type="FreeBSD"
2260 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002261 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002264 llvm_cv_os_type="OpenBSD"
2265 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002266 *-*-netbsd*)
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="NetBSD"
2270 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002271 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002274 llvm_cv_os_type="HP-UX"
2275 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 llvm_cv_os_type="Interix"
2280 llvm_cv_platform_type="Unix" ;;
2281 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="Linux"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002287 llvm_cv_link_all_option="-Wl,-z,allextract"
2288 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 llvm_cv_os_type="SunOS"
2290 llvm_cv_platform_type="Unix" ;;
2291 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 llvm_cv_os_type="Win32"
2295 llvm_cv_platform_type="Win32" ;;
2296 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002299 llvm_cv_os_type="MingW"
2300 llvm_cv_platform_type="Win32" ;;
2301 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option=""
2303 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 llvm_cv_os_type="Unknown"
2305 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002306esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002307fi
Reid Spencera773bd52006-08-04 18:18:08 +00002308{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2309echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002310
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311if test "$llvm_cv_os_type" = "Unknown" ; then
2312 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2313echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002314 { (exit 1); exit 1; }; }
2315fi
2316
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002318
2319
Reid Spencera773bd52006-08-04 18:18:08 +00002320LINKALL=$llvm_cv_link_all_option
2321
2322NOLINKALL=$llvm_cv_no_link_all_option
2323
2324
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325case $llvm_cv_platform_type in
2326 Unix)
2327
2328cat >>confdefs.h <<\_ACEOF
2329#define LLVM_ON_UNIX 1
2330_ACEOF
2331
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002332 LLVM_ON_UNIX=1
2333
2334 LLVM_ON_WIN32=0
2335
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336 ;;
2337 Win32)
2338
2339cat >>confdefs.h <<\_ACEOF
2340#define LLVM_ON_WIN32 1
2341_ACEOF
2342
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002343 LLVM_ON_UNIX=0
2344
2345 LLVM_ON_WIN32=1
2346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347 ;;
2348esac
2349
Reid Spencera773bd52006-08-04 18:18:08 +00002350{ echo "$as_me:$LINENO: checking target architecture" >&5
2351echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352if test "${llvm_cv_target_arch+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002356 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002357 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002358 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2359 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002360 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002361 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002362 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002363 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002364 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002365esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366fi
Reid Spencera773bd52006-08-04 18:18:08 +00002367{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370if test "$llvm_cv_target_arch" = "Unknown" ; then
2371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2373fi
John Criswell76595452003-07-01 22:07:39 +00002374
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002375ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002376
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002377
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378ac_ext=c
2379ac_cpp='$CPP $CPPFLAGS'
2380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002383if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2385set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388if test "${ac_cv_prog_CC+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391 if test -n "$CC"; then
2392 ac_cv_prog_CC="$CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002400 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 +00002401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405done
2406done
Reid Spencera773bd52006-08-04 18:18:08 +00002407IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408
2409fi
2410fi
2411CC=$ac_cv_prog_CC
2412if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002413 { echo "$as_me:$LINENO: result: $CC" >&5
2414echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415else
Reid Spencera773bd52006-08-04 18:18:08 +00002416 { echo "$as_me:$LINENO: result: no" >&5
2417echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418fi
2419
Reid Spencera773bd52006-08-04 18:18:08 +00002420
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421fi
2422if test -z "$ac_cv_prog_CC"; then
2423 ac_ct_CC=$CC
2424 # Extract the first word of "gcc", so it can be a program name with args.
2425set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431 if test -n "$ac_ct_CC"; then
2432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2433else
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002440 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 +00002441 ac_cv_prog_ac_ct_CC="gcc"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 break 2
2444 fi
2445done
2446done
Reid Spencera773bd52006-08-04 18:18:08 +00002447IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448
2449fi
2450fi
2451ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002453 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455else
Reid Spencera773bd52006-08-04 18:18:08 +00002456 { echo "$as_me:$LINENO: result: no" >&5
2457echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002458fi
2459
Reid Spencera773bd52006-08-04 18:18:08 +00002460 if test "x$ac_ct_CC" = x; then
2461 CC=""
2462 else
2463 case $cross_compiling:$ac_tool_warned in
2464yes:)
2465{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2466whose name does not start with the host triplet. If you think this
2467configuration is useful to you, please write to autoconf@gnu.org." >&5
2468echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2469whose name does not start with the host triplet. If you think this
2470configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2471ac_tool_warned=yes ;;
2472esac
2473 CC=$ac_ct_CC
2474 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475else
2476 CC="$ac_cv_prog_CC"
2477fi
2478
2479if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002480 if test -n "$ac_tool_prefix"; then
2481 # 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 +00002482set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485if test "${ac_cv_prog_CC+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 if test -n "$CC"; then
2489 ac_cv_prog_CC="$CC" # Let the user override the test.
2490else
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002497 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 +00002498 ac_cv_prog_CC="${ac_tool_prefix}cc"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2501 fi
2502done
2503done
Reid Spencera773bd52006-08-04 18:18:08 +00002504IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505
2506fi
2507fi
2508CC=$ac_cv_prog_CC
2509if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002510 { echo "$as_me:$LINENO: result: $CC" >&5
2511echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512else
Reid Spencera773bd52006-08-04 18:18:08 +00002513 { echo "$as_me:$LINENO: result: no" >&5
2514echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002515fi
2516
Reid Spencera773bd52006-08-04 18:18:08 +00002517
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519fi
2520if test -z "$CC"; then
2521 # Extract the first word of "cc", so it can be a program name with args.
2522set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525if test "${ac_cv_prog_CC+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2530else
2531 ac_prog_rejected=no
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002538 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 +00002539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2540 ac_prog_rejected=yes
2541 continue
2542 fi
2543 ac_cv_prog_CC="cc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547done
2548done
Reid Spencera773bd52006-08-04 18:18:08 +00002549IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550
2551if test $ac_prog_rejected = yes; then
2552 # We found a bogon in the path, so make sure we never use it.
2553 set dummy $ac_cv_prog_CC
2554 shift
2555 if test $# != 0; then
2556 # We chose a different compiler from the bogus one.
2557 # However, it has the same basename, so the bogon will be chosen
2558 # first if we set CC to just the basename; use the full file name.
2559 shift
2560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2561 fi
2562fi
2563fi
2564fi
2565CC=$ac_cv_prog_CC
2566if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002567 { echo "$as_me:$LINENO: result: $CC" >&5
2568echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569else
Reid Spencera773bd52006-08-04 18:18:08 +00002570 { echo "$as_me:$LINENO: result: no" >&5
2571echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572fi
2573
Reid Spencera773bd52006-08-04 18:18:08 +00002574
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575fi
2576if test -z "$CC"; then
2577 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002578 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002579 do
2580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2581set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002584if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587 if test -n "$CC"; then
2588 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002589else
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002596 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 +00002597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2600 fi
2601done
2602done
Reid Spencera773bd52006-08-04 18:18:08 +00002603IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002604
2605fi
2606fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607CC=$ac_cv_prog_CC
2608if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002609 { echo "$as_me:$LINENO: result: $CC" >&5
2610echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002611else
Reid Spencera773bd52006-08-04 18:18:08 +00002612 { echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002614fi
2615
Reid Spencera773bd52006-08-04 18:18:08 +00002616
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002618 done
2619fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620if test -z "$CC"; then
2621 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002622 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002623do
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 if test -n "$ac_ct_CC"; then
2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002640 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 +00002641 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645done
2646done
Reid Spencera773bd52006-08-04 18:18:08 +00002647IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002648
2649fi
2650fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651ac_ct_CC=$ac_cv_prog_ac_ct_CC
2652if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002653 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2654echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002655else
Reid Spencera773bd52006-08-04 18:18:08 +00002656 { echo "$as_me:$LINENO: result: no" >&5
2657echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002658fi
2659
Reid Spencera773bd52006-08-04 18:18:08 +00002660
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002662done
John Criswell7a73b802003-06-30 21:59:07 +00002663
Reid Spencera773bd52006-08-04 18:18:08 +00002664 if test "x$ac_ct_CC" = x; then
2665 CC=""
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668yes:)
2669{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2670whose name does not start with the host triplet. If you think this
2671configuration is useful to you, please write to autoconf@gnu.org." >&5
2672echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2673whose name does not start with the host triplet. If you think this
2674configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677 CC=$ac_ct_CC
2678 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679fi
2680
John Criswell7a73b802003-06-30 21:59:07 +00002681fi
2682
2683
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002684test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2685See \`config.log' for more details." >&5
2686echo "$as_me: error: no acceptable C compiler found in \$PATH
2687See \`config.log' for more details." >&2;}
2688 { (exit 1); exit 1; }; }
2689
John Criswell7a73b802003-06-30 21:59:07 +00002690# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002691echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002692ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002693{ (ac_try="$ac_compiler --version >&5"
2694case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697esac
2698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002703{ (ac_try="$ac_compiler -v >&5"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002713{ (ac_try="$ac_compiler -V >&5"
2714case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2723
2724cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002730
John Criswell7a73b802003-06-30 21:59:07 +00002731int
2732main ()
2733{
2734
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002740ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002741# Try to create an executable without -o first, disregard a.out.
2742# It will help us diagnose broken compilers, and finding out an intuition
2743# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002744{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2745echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002746ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002747#
2748# List of possible output files, starting from the most likely.
2749# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2750# only as a last resort. b.out is created by i960 compilers.
2751ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2752#
2753# The IRIX 6 linker writes into existing files which may not be
2754# executable, retaining their permissions. Remove them first so a
2755# subsequent execution test works.
2756ac_rmfiles=
2757for ac_file in $ac_files
2758do
2759 case $ac_file in
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2761 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2762 esac
2763done
2764rm -f $ac_rmfiles
2765
2766if { (ac_try="$ac_link_default"
2767case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770esac
2771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002776 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2777# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2778# in a Makefile. We should not override ac_cv_exeext if it was cached,
2779# so that the user can short-circuit this test for compilers unknown to
2780# Autoconf.
2781for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002782do
2783 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002784 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002786 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002787 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002788 # We found the default executable, but exeext='' is most
2789 # certainly right.
2790 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002791 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002792 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2793 then :; else
2794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2795 fi
2796 # We set ac_cv_exeext here because the later test for it is not
2797 # safe: cross compilers may not add the suffix if given an `-o'
2798 # argument, so we may need to know it at that point already.
2799 # Even if this section looks crufty: it has the advantage of
2800 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002801 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002802 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002803 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002804 esac
2805done
Reid Spencera773bd52006-08-04 18:18:08 +00002806test "$ac_cv_exeext" = no && ac_cv_exeext=
2807
John Criswell7a73b802003-06-30 21:59:07 +00002808else
2809 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002810sed 's/^/| /' conftest.$ac_ext >&5
2811
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002812{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002813See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002814echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002815See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002816 { (exit 77); exit 77; }; }
2817fi
2818
2819ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002820{ echo "$as_me:$LINENO: result: $ac_file" >&5
2821echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002822
Reid Spencera773bd52006-08-04 18:18:08 +00002823# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002824# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002825{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2826echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002827# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2828# If not cross compiling, check that we can run a simple program.
2829if test "$cross_compiling" != yes; then
2830 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002831 { (case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834esac
2835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 cross_compiling=no
2841 else
2842 if test "$cross_compiling" = maybe; then
2843 cross_compiling=yes
2844 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002845 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002846If you meant to cross compile, use \`--host'.
2847See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002848echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002849If you meant to cross compile, use \`--host'.
2850See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002851 { (exit 1); exit 1; }; }
2852 fi
2853 fi
2854fi
Reid Spencera773bd52006-08-04 18:18:08 +00002855{ echo "$as_me:$LINENO: result: yes" >&5
2856echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002857
John Criswell0c38eaf2003-09-10 15:17:25 +00002858rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002859ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002860# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002861# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002862{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2863echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2864{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2865echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002866
Reid Spencera773bd52006-08-04 18:18:08 +00002867{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2868echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2869if { (ac_try="$ac_link"
2870case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873esac
2874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; then
2879 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2880# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2881# work properly (i.e., refer to `conftest.exe'), while it won't with
2882# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002883for ac_file in conftest.exe conftest conftest.*; do
2884 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002885 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002887 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002888 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002889 * ) break;;
2890 esac
2891done
2892else
John Criswell0c38eaf2003-09-10 15:17:25 +00002893 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2894See \`config.log' for more details." >&5
2895echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2896See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002897 { (exit 1); exit 1; }; }
2898fi
2899
2900rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002901{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2902echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002903
2904rm -f conftest.$ac_ext
2905EXEEXT=$ac_cv_exeext
2906ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002907{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2908echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002909if test "${ac_cv_objext+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002913/* confdefs.h. */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002918
John Criswell7a73b802003-06-30 21:59:07 +00002919int
2920main ()
2921{
2922
2923 ;
2924 return 0;
2925}
2926_ACEOF
2927rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002928if { (ac_try="$ac_compile"
2929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002938 for ac_file in conftest.o conftest.obj conftest.*; do
2939 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002940 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2943 break;;
2944 esac
2945done
2946else
2947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2951See \`config.log' for more details." >&5
2952echo "$as_me: error: cannot compute suffix of object files: cannot compile
2953See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002954 { (exit 1); exit 1; }; }
2955fi
2956
2957rm -f conftest.$ac_cv_objext conftest.$ac_ext
2958fi
Reid Spencera773bd52006-08-04 18:18:08 +00002959{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2960echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002961OBJEXT=$ac_cv_objext
2962ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002963{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2964echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002965if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
2973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002974
John Criswell7a73b802003-06-30 21:59:07 +00002975int
2976main ()
2977{
2978#ifndef __GNUC__
2979 choke me
2980#endif
2981
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002987if { (ac_try="$ac_compile"
2988case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002994 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003011 { (case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014esac
3015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3020 ac_compiler_gnu=yes
3021else
3022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003023sed 's/^/| /' conftest.$ac_ext >&5
3024
Reid Spencera773bd52006-08-04 18:18:08 +00003025 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003026fi
Reid Spencera773bd52006-08-04 18:18:08 +00003027
3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003029ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003030
3031fi
Reid Spencera773bd52006-08-04 18:18:08 +00003032{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3033echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003034GCC=`test $ac_compiler_gnu = yes && echo yes`
3035ac_test_CFLAGS=${CFLAGS+set}
3036ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003037{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3038echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003039if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041else
Reid Spencera773bd52006-08-04 18:18:08 +00003042 ac_save_c_werror_flag=$ac_c_werror_flag
3043 ac_c_werror_flag=yes
3044 ac_cv_prog_cc_g=no
3045 CFLAGS="-g"
3046 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003047/* confdefs.h. */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003052
John Criswell7a73b802003-06-30 21:59:07 +00003053int
3054main ()
3055{
3056
3057 ;
3058 return 0;
3059}
3060_ACEOF
3061rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003062if { (ac_try="$ac_compile"
3063case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; } &&
3085 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003086 { (case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003095 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003096else
3097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003098sed 's/^/| /' conftest.$ac_ext >&5
3099
Reid Spencera773bd52006-08-04 18:18:08 +00003100 CFLAGS=""
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 :
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_c_werror_flag=$ac_save_c_werror_flag
3156 CFLAGS="-g"
3157 cat >conftest.$ac_ext <<_ACEOF
3158/* confdefs.h. */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
3162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext
3173if { (ac_try="$ac_compile"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 ac_cv_prog_cc_g=yes
3207else
3208 echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211
John Criswell7a73b802003-06-30 21:59:07 +00003212fi
Reid Spencera773bd52006-08-04 18:18:08 +00003213
3214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003215fi
Reid Spencera773bd52006-08-04 18:18:08 +00003216
3217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218fi
3219
3220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_c_werror_flag=$ac_save_c_werror_flag
3222fi
3223{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3224echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003225if test "$ac_test_CFLAGS" = set; then
3226 CFLAGS=$ac_save_CFLAGS
3227elif test $ac_cv_prog_cc_g = yes; then
3228 if test "$GCC" = yes; then
3229 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003230 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003231 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003232 fi
3233else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234 if test "$GCC" = yes; then
3235 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003236 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003237 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003238 fi
3239fi
Reid Spencera773bd52006-08-04 18:18:08 +00003240{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3241echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3242if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
Reid Spencera773bd52006-08-04 18:18:08 +00003245 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246ac_save_CC=$CC
3247cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253#include <stdarg.h>
3254#include <stdio.h>
3255#include <sys/types.h>
3256#include <sys/stat.h>
3257/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3258struct buf { int x; };
3259FILE * (*rcsopen) (struct buf *, struct stat *, int);
3260static char *e (p, i)
3261 char **p;
3262 int i;
3263{
3264 return p[i];
3265}
3266static char *f (char * (*g) (char **, int), char **p, ...)
3267{
3268 char *s;
3269 va_list v;
3270 va_start (v,p);
3271 s = g (p, va_arg (v,int));
3272 va_end (v);
3273 return s;
3274}
3275
3276/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3277 function prototypes and stuff, but not '\xHH' hex character constants.
3278 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003279 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3281 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003282 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3284
Reid Spencera773bd52006-08-04 18:18:08 +00003285/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3286 inside strings and character constants. */
3287#define FOO(x) 'x'
3288int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3289
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290int test (int i, double x);
3291struct s1 {int (*f) (int a);};
3292struct s2 {int (*f) (double a);};
3293int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3294int argc;
3295char **argv;
3296int
3297main ()
3298{
3299return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3300 ;
3301 return 0;
3302}
3303_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003304for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003306do
3307 CC="$ac_save_CC $ac_arg"
3308 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003309if { (ac_try="$ac_compile"
3310case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313esac
3314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3323 { (case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003342 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343else
3344 echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
Reid Spencera773bd52006-08-04 18:18:08 +00003347
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348fi
Reid Spencera773bd52006-08-04 18:18:08 +00003349
3350rm -f core conftest.err conftest.$ac_objext
3351 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352done
Reid Spencera773bd52006-08-04 18:18:08 +00003353rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354CC=$ac_save_CC
3355
3356fi
Reid Spencera773bd52006-08-04 18:18:08 +00003357# AC_CACHE_VAL
3358case "x$ac_cv_prog_cc_c89" in
3359 x)
3360 { echo "$as_me:$LINENO: result: none needed" >&5
3361echo "${ECHO_T}none needed" >&6; } ;;
3362 xno)
3363 { echo "$as_me:$LINENO: result: unsupported" >&5
3364echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003366 CC="$CC $ac_cv_prog_cc_c89"
3367 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3368echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003369esac
3370
John Criswell0c38eaf2003-09-10 15:17:25 +00003371
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372ac_ext=c
3373ac_cpp='$CPP $CPPFLAGS'
3374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377
3378
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003384{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3385echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386# On Suns, sometimes $CPP names a directory.
3387if test -n "$CPP" && test -d "$CPP"; then
3388 CPP=
3389fi
3390if test -z "$CPP"; then
3391 if test "${ac_cv_prog_CPP+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 # Double quotes because CPP needs to be expanded
3395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3396 do
3397 ac_preproc_ok=false
3398for ac_c_preproc_warn_flag in '' yes
3399do
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h. */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
3412#ifdef __STDC__
3413# include <limits.h>
3414#else
3415# include <assert.h>
3416#endif
3417 Syntax error
3418_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003419if { (ac_try="$ac_cpp conftest.$ac_ext"
3420case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423esac
3424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null; then
3432 if test -s conftest.err; then
3433 ac_cpp_err=$ac_c_preproc_warn_flag
3434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435 else
3436 ac_cpp_err=
3437 fi
3438else
3439 ac_cpp_err=yes
3440fi
3441if test -z "$ac_cpp_err"; then
3442 :
3443else
3444 echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447 # Broken: fails on valid input.
3448continue
3449fi
Reid Spencera773bd52006-08-04 18:18:08 +00003450
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451rm -f conftest.err conftest.$ac_ext
3452
Reid Spencera773bd52006-08-04 18:18:08 +00003453 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454 # can be detected and how.
3455 cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
3461#include <ac_nonexistent.h>
3462_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003463if { (ac_try="$ac_cpp conftest.$ac_ext"
3464case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467esac
3468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null; then
3476 if test -s conftest.err; then
3477 ac_cpp_err=$ac_c_preproc_warn_flag
3478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479 else
3480 ac_cpp_err=
3481 fi
3482else
3483 ac_cpp_err=yes
3484fi
3485if test -z "$ac_cpp_err"; then
3486 # Broken: success on invalid input.
3487continue
3488else
3489 echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 # Passes both tests.
3493ac_preproc_ok=:
3494break
3495fi
Reid Spencera773bd52006-08-04 18:18:08 +00003496
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497rm -f conftest.err conftest.$ac_ext
3498
3499done
3500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3501rm -f conftest.err conftest.$ac_ext
3502if $ac_preproc_ok; then
3503 break
3504fi
3505
3506 done
3507 ac_cv_prog_CPP=$CPP
3508
3509fi
3510 CPP=$ac_cv_prog_CPP
3511else
3512 ac_cv_prog_CPP=$CPP
3513fi
Reid Spencera773bd52006-08-04 18:18:08 +00003514{ echo "$as_me:$LINENO: result: $CPP" >&5
3515echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516ac_preproc_ok=false
3517for ac_c_preproc_warn_flag in '' yes
3518do
3519 # Use a header file that comes with gcc, so configuring glibc
3520 # with a fresh cross-compiler works.
3521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3522 # <limits.h> exists even on freestanding compilers.
3523 # On the NeXT, cc -E runs the code through the compiler's parser,
3524 # not just through cpp. "Syntax error" is here to catch this case.
3525 cat >conftest.$ac_ext <<_ACEOF
3526/* confdefs.h. */
3527_ACEOF
3528cat confdefs.h >>conftest.$ac_ext
3529cat >>conftest.$ac_ext <<_ACEOF
3530/* end confdefs.h. */
3531#ifdef __STDC__
3532# include <limits.h>
3533#else
3534# include <assert.h>
3535#endif
3536 Syntax error
3537_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003538if { (ac_try="$ac_cpp conftest.$ac_ext"
3539case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542esac
3543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003545 ac_status=$?
3546 grep -v '^ *+' conftest.er1 >conftest.err
3547 rm -f conftest.er1
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } >/dev/null; then
3551 if test -s conftest.err; then
3552 ac_cpp_err=$ac_c_preproc_warn_flag
3553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3554 else
3555 ac_cpp_err=
3556 fi
3557else
3558 ac_cpp_err=yes
3559fi
3560if test -z "$ac_cpp_err"; then
3561 :
3562else
3563 echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 # Broken: fails on valid input.
3567continue
3568fi
Reid Spencera773bd52006-08-04 18:18:08 +00003569
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003570rm -f conftest.err conftest.$ac_ext
3571
Reid Spencera773bd52006-08-04 18:18:08 +00003572 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003573 # can be detected and how.
3574 cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h. */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h. */
3580#include <ac_nonexistent.h>
3581_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003582if { (ac_try="$ac_cpp conftest.$ac_ext"
3583case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586esac
3587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null; then
3595 if test -s conftest.err; then
3596 ac_cpp_err=$ac_c_preproc_warn_flag
3597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3598 else
3599 ac_cpp_err=
3600 fi
3601else
3602 ac_cpp_err=yes
3603fi
3604if test -z "$ac_cpp_err"; then
3605 # Broken: success on invalid input.
3606continue
3607else
3608 echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 # Passes both tests.
3612ac_preproc_ok=:
3613break
3614fi
Reid Spencera773bd52006-08-04 18:18:08 +00003615
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003616rm -f conftest.err conftest.$ac_ext
3617
3618done
3619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620rm -f conftest.err conftest.$ac_ext
3621if $ac_preproc_ok; then
3622 :
3623else
3624 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3625See \`config.log' for more details." >&5
3626echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3627See \`config.log' for more details." >&2;}
3628 { (exit 1); exit 1; }; }
3629fi
3630
John Criswell7a73b802003-06-30 21:59:07 +00003631ac_ext=c
3632ac_cpp='$CPP $CPPFLAGS'
3633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
John Criswell7a73b802003-06-30 21:59:07 +00003637
Reid Spencera773bd52006-08-04 18:18:08 +00003638{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3639echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003640if test "${ac_cv_path_GREP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
Reid Spencera773bd52006-08-04 18:18:08 +00003643 # Extract the first word of "grep ggrep" to use in msg output
3644if test -z "$GREP"; then
3645set dummy grep ggrep; ac_prog_name=$2
3646if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648else
Reid Spencera773bd52006-08-04 18:18:08 +00003649 ac_path_GREP_found=false
3650# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003653do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003656 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003657 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003658 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3659 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3660 # Check for GNU ac_path_GREP and select it if it is found.
3661 # Check for GNU $ac_path_GREP
3662case `"$ac_path_GREP" --version 2>&1` in
3663*GNU*)
3664 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3665*)
3666 ac_count=0
3667 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3668 while :
3669 do
3670 cat "conftest.in" "conftest.in" >"conftest.tmp"
3671 mv "conftest.tmp" "conftest.in"
3672 cp "conftest.in" "conftest.nl"
3673 echo 'GREP' >> "conftest.nl"
3674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3676 ac_count=`expr $ac_count + 1`
3677 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3678 # Best one so far, save it but keep looking for a better one
3679 ac_cv_path_GREP="$ac_path_GREP"
3680 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003681 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003682 # 10*(2^10) chars as input seems more than enough
3683 test $ac_count -gt 10 && break
3684 done
3685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3686esac
3687
3688
3689 $ac_path_GREP_found && break 3
3690 done
3691done
3692
3693done
3694IFS=$as_save_IFS
3695
3696
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003697fi
Reid Spencera773bd52006-08-04 18:18:08 +00003698
3699GREP="$ac_cv_path_GREP"
3700if test -z "$GREP"; then
3701 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3702echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3703 { (exit 1); exit 1; }; }
3704fi
3705
3706else
3707 ac_cv_path_GREP=$GREP
3708fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003709
John Criswell7a73b802003-06-30 21:59:07 +00003710
Reid Spencera773bd52006-08-04 18:18:08 +00003711fi
3712{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3713echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3714 GREP="$ac_cv_path_GREP"
3715
3716
3717{ echo "$as_me:$LINENO: checking for egrep" >&5
3718echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3719if test "${ac_cv_path_EGREP+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3723 then ac_cv_path_EGREP="$GREP -E"
3724 else
3725 # Extract the first word of "egrep" to use in msg output
3726if test -z "$EGREP"; then
3727set dummy egrep; ac_prog_name=$2
3728if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 ac_path_EGREP_found=false
3732# Loop through the user's path and test for each of PROGNAME-LIST
3733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3735do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_prog in egrep; do
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3741 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3742 # Check for GNU ac_path_EGREP and select it if it is found.
3743 # Check for GNU $ac_path_EGREP
3744case `"$ac_path_EGREP" --version 2>&1` in
3745*GNU*)
3746 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3747*)
3748 ac_count=0
3749 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3750 while :
3751 do
3752 cat "conftest.in" "conftest.in" >"conftest.tmp"
3753 mv "conftest.tmp" "conftest.in"
3754 cp "conftest.in" "conftest.nl"
3755 echo 'EGREP' >> "conftest.nl"
3756 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3758 ac_count=`expr $ac_count + 1`
3759 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3760 # Best one so far, save it but keep looking for a better one
3761 ac_cv_path_EGREP="$ac_path_EGREP"
3762 ac_path_EGREP_max=$ac_count
3763 fi
3764 # 10*(2^10) chars as input seems more than enough
3765 test $ac_count -gt 10 && break
3766 done
3767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768esac
3769
3770
3771 $ac_path_EGREP_found && break 3
3772 done
3773done
3774
3775done
3776IFS=$as_save_IFS
3777
3778
3779fi
3780
3781EGREP="$ac_cv_path_EGREP"
3782if test -z "$EGREP"; then
3783 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3784echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3785 { (exit 1); exit 1; }; }
3786fi
3787
3788else
3789 ac_cv_path_EGREP=$EGREP
3790fi
3791
3792
3793 fi
3794fi
3795{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3796echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3797 EGREP="$ac_cv_path_EGREP"
3798
3799
3800{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3801echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003802if test "${ac_cv_header_stdc+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003806/* confdefs.h. */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003811#include <stdlib.h>
3812#include <stdarg.h>
3813#include <string.h>
3814#include <float.h>
3815
John Criswell0c38eaf2003-09-10 15:17:25 +00003816int
3817main ()
3818{
3819
3820 ;
3821 return 0;
3822}
John Criswell7a73b802003-06-30 21:59:07 +00003823_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003824rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003825if { (ac_try="$ac_compile"
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003837 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839 { (case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003849 { (case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852esac
3853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003858 ac_cv_header_stdc=yes
3859else
3860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003861sed 's/^/| /' conftest.$ac_ext >&5
3862
Reid Spencera773bd52006-08-04 18:18:08 +00003863 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003864fi
Reid Spencera773bd52006-08-04 18:18:08 +00003865
3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003867
3868if test $ac_cv_header_stdc = yes; then
3869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3870 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003871/* confdefs.h. */
3872_ACEOF
3873cat confdefs.h >>conftest.$ac_ext
3874cat >>conftest.$ac_ext <<_ACEOF
3875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003876#include <string.h>
3877
3878_ACEOF
3879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003880 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003881 :
3882else
3883 ac_cv_header_stdc=no
3884fi
3885rm -f conftest*
3886
3887fi
3888
3889if test $ac_cv_header_stdc = yes; then
3890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003897#include <stdlib.h>
3898
3899_ACEOF
3900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003901 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003902 :
3903else
3904 ac_cv_header_stdc=no
3905fi
3906rm -f conftest*
3907
3908fi
3909
3910if test $ac_cv_header_stdc = yes; then
3911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3912 if test "$cross_compiling" = yes; then
3913 :
3914else
3915 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003921#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003922#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003923#if ((' ' & 0x0FF) == 0x020)
3924# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3925# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3926#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003927# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003928 (('a' <= (c) && (c) <= 'i') \
3929 || ('j' <= (c) && (c) <= 'r') \
3930 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003931# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3932#endif
3933
3934#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3935int
3936main ()
3937{
3938 int i;
3939 for (i = 0; i < 256; i++)
3940 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003941 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003942 return 2;
3943 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003944}
3945_ACEOF
3946rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003947if { (ac_try="$ac_link"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003957 { (case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 :
3967else
3968 echo "$as_me: program exited with status $ac_status" >&5
3969echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003970sed 's/^/| /' conftest.$ac_ext >&5
3971
John Criswell7a73b802003-06-30 21:59:07 +00003972( exit $ac_status )
3973ac_cv_header_stdc=no
3974fi
Reid Spencera773bd52006-08-04 18:18:08 +00003975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3976fi
3977
3978
John Criswell7a73b802003-06-30 21:59:07 +00003979fi
3980fi
Reid Spencera773bd52006-08-04 18:18:08 +00003981{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3982echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003983if test $ac_cv_header_stdc = yes; then
3984
3985cat >>confdefs.h <<\_ACEOF
3986#define STDC_HEADERS 1
3987_ACEOF
3988
3989fi
3990
Reid Spencera773bd52006-08-04 18:18:08 +00003991# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4002 inttypes.h stdint.h unistd.h
4003do
4004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4005{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010 cat >conftest.$ac_ext <<_ACEOF
4011/* confdefs.h. */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h. */
4016$ac_includes_default
4017
4018#include <$ac_header>
4019_ACEOF
4020rm -f conftest.$ac_objext
4021if { (ac_try="$ac_compile"
4022case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025esac
4026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_compile") 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4035 { (case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_try") 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048esac
4049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_try") 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 eval "$as_ac_Header=yes"
4055else
4056 echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 eval "$as_ac_Header=no"
4060fi
4061
4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063fi
4064ac_res=`eval echo '${'$as_ac_Header'}'`
4065 { echo "$as_me:$LINENO: result: $ac_res" >&5
4066echo "${ECHO_T}$ac_res" >&6; }
4067if test `eval echo '${'$as_ac_Header'}'` = yes; then
4068 cat >>confdefs.h <<_ACEOF
4069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4070_ACEOF
4071
4072fi
4073
4074done
4075
4076
4077{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4078echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4079if test "${ac_cv_c_bigendian+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082 # See if sys/param.h defines the BYTE_ORDER macro.
4083cat >conftest.$ac_ext <<_ACEOF
4084/* confdefs.h. */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h. */
4089#include <sys/types.h>
4090#include <sys/param.h>
4091
4092int
4093main ()
4094{
4095#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4096 bogus endian macros
4097#endif
4098
4099 ;
4100 return 0;
4101}
4102_ACEOF
4103rm -f conftest.$ac_objext
4104if { (ac_try="$ac_compile"
4105case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
4109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118 { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_try") 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131esac
4132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 # It does; now see whether it defined to BIG_ENDIAN or not.
4138cat >conftest.$ac_ext <<_ACEOF
4139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
4144#include <sys/types.h>
4145#include <sys/param.h>
4146
4147int
4148main ()
4149{
4150#if BYTE_ORDER != BIG_ENDIAN
4151 not big endian
4152#endif
4153
4154 ;
4155 return 0;
4156}
4157_ACEOF
4158rm -f conftest.$ac_objext
4159if { (ac_try="$ac_compile"
4160case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_compile") 2>conftest.er1
4166 ac_status=$?
4167 grep -v '^ *+' conftest.er1 >conftest.err
4168 rm -f conftest.er1
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; } &&
4182 { ac_try='test -s conftest.$ac_objext'
4183 { (case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186esac
4187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_try") 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_cv_c_bigendian=yes
4193else
4194 echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 ac_cv_c_bigendian=no
4198fi
4199
4200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201else
4202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 # It does not; compile a test program.
4206if test "$cross_compiling" = yes; then
4207 # try to guess the endianness by grepping values into an object file
4208 ac_cv_c_bigendian=unknown
4209 cat >conftest.$ac_ext <<_ACEOF
4210/* confdefs.h. */
4211_ACEOF
4212cat confdefs.h >>conftest.$ac_ext
4213cat >>conftest.$ac_ext <<_ACEOF
4214/* end confdefs.h. */
4215short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4216short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4217void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4218short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4219short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4220void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4221int
4222main ()
4223{
4224 _ascii (); _ebcdic ();
4225 ;
4226 return 0;
4227}
4228_ACEOF
4229rm -f conftest.$ac_objext
4230if { (ac_try="$ac_compile"
4231case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_compile") 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4244 { (case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_try") 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest.$ac_objext'
4254 { (case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257esac
4258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_try") 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4264 ac_cv_c_bigendian=yes
4265fi
4266if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4267 if test "$ac_cv_c_bigendian" = unknown; then
4268 ac_cv_c_bigendian=no
4269 else
4270 # finding both strings is unlikely to happen, but who knows?
4271 ac_cv_c_bigendian=unknown
4272 fi
4273fi
4274else
4275 echo "$as_me: failed program was:" >&5
4276sed 's/^/| /' conftest.$ac_ext >&5
4277
4278
4279fi
4280
4281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282else
4283 cat >conftest.$ac_ext <<_ACEOF
4284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
4289$ac_includes_default
4290int
4291main ()
4292{
4293
4294 /* Are we little or big endian? From Harbison&Steele. */
4295 union
4296 {
4297 long int l;
4298 char c[sizeof (long int)];
4299 } u;
4300 u.l = 1;
4301 return u.c[sizeof (long int) - 1] == 1;
4302
4303 ;
4304 return 0;
4305}
4306_ACEOF
4307rm -f conftest$ac_exeext
4308if { (ac_try="$ac_link"
4309case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
4313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_link") 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 ac_cv_c_bigendian=no
4328else
4329 echo "$as_me: program exited with status $ac_status" >&5
4330echo "$as_me: failed program was:" >&5
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
4333( exit $ac_status )
4334ac_cv_c_bigendian=yes
4335fi
4336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337fi
4338
4339
4340fi
4341
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343fi
4344{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4345echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4346case $ac_cv_c_bigendian in
4347 yes)
4348 ENDIAN=big
4349 ;;
4350 no)
4351 ENDIAN=little
4352 ;;
4353 *)
4354 { { echo "$as_me:$LINENO: error: unknown endianness
4355presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4356echo "$as_me: error: unknown endianness
4357presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4358 { (exit 1); exit 1; }; } ;;
4359esac
4360
4361
4362if test "$cross_compiling" = yes; then
4363 LLVM_CROSS_COMPILING=1
4364
4365
4366{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4367echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4368if test "${ac_cv_build_exeext+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4372 ac_cv_build_exeext=.exe
4373else
4374 ac_build_prefix=${build_alias}-
4375
4376 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4377set dummy ${ac_build_prefix}gcc; ac_word=$2
4378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383 if test -n "$BUILD_CC"; then
4384 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4385else
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4396 fi
4397done
4398done
4399IFS=$as_save_IFS
4400
4401fi
4402fi
4403BUILD_CC=$ac_cv_prog_BUILD_CC
4404if test -n "$BUILD_CC"; then
4405 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4406echo "${ECHO_T}$BUILD_CC" >&6; }
4407else
4408 { echo "$as_me:$LINENO: result: no" >&5
4409echo "${ECHO_T}no" >&6; }
4410fi
4411
4412
4413 if test -z "$BUILD_CC"; then
4414 # Extract the first word of "gcc", so it can be a program name with args.
4415set dummy gcc; ac_word=$2
4416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421 if test -n "$BUILD_CC"; then
4422 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_BUILD_CC="gcc"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435done
4436done
4437IFS=$as_save_IFS
4438
4439fi
4440fi
4441BUILD_CC=$ac_cv_prog_BUILD_CC
4442if test -n "$BUILD_CC"; then
4443 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4444echo "${ECHO_T}$BUILD_CC" >&6; }
4445else
4446 { echo "$as_me:$LINENO: result: no" >&5
4447echo "${ECHO_T}no" >&6; }
4448fi
4449
4450
4451 if test -z "$BUILD_CC"; then
4452 # Extract the first word of "cc", so it can be a program name with args.
4453set dummy cc; ac_word=$2
4454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 if test -n "$BUILD_CC"; then
4460 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4461else
4462 ac_prog_rejected=no
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4471 ac_prog_rejected=yes
4472 continue
4473 fi
4474 ac_cv_prog_BUILD_CC="cc"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478done
4479done
4480IFS=$as_save_IFS
4481
4482if test $ac_prog_rejected = yes; then
4483 # We found a bogon in the path, so make sure we never use it.
4484 set dummy $ac_cv_prog_BUILD_CC
4485 shift
4486 if test $# != 0; then
4487 # We chose a different compiler from the bogus one.
4488 # However, it has the same basename, so the bogon will be chosen
4489 # first if we set BUILD_CC to just the basename; use the full file name.
4490 shift
4491 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4492 fi
4493fi
4494fi
4495fi
4496BUILD_CC=$ac_cv_prog_BUILD_CC
4497if test -n "$BUILD_CC"; then
4498 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4499echo "${ECHO_T}$BUILD_CC" >&6; }
4500else
4501 { echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6; }
4503fi
4504
4505
4506 fi
4507 fi
4508 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4509echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4510 { (exit 1); exit 1; }; }
4511 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4512 rm -f conftest*
4513 echo 'int main () { return 0; }' > conftest.$ac_ext
4514 ac_cv_build_exeext=
4515 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4516 (eval $ac_build_link) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; then
4520 for file in conftest.*; do
4521 case $file in
4522 *.c | *.o | *.obj) ;;
4523 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4524 esac
4525 done
4526 else
4527 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4528echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4529 { (exit 1); exit 1; }; }
4530 fi
4531 rm -f conftest*
4532 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4533fi
4534fi
4535
4536BUILD_EXEEXT=""
4537test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4538{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4539echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4540ac_build_exeext=$BUILD_EXEEXT
4541
4542else
4543 LLVM_CROSS_COMPILING=0
4544
4545fi
4546
Reid Spencer0b1e4662007-04-02 15:41:39 +00004547if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004548 cvsbuild="yes"
4549 optimize="no"
4550 CVSBUILD=CVSBUILD=1
4551
4552else
4553 cvsbuild="no"
4554 optimize="yes"
4555fi
4556
4557
4558# Check whether --enable-optimized was given.
4559if test "${enable_optimized+set}" = set; then
4560 enableval=$enable_optimized;
4561else
4562 enableval=$optimize
4563fi
4564
4565if test ${enableval} = "no" ; then
4566 ENABLE_OPTIMIZED=
4567
4568else
4569 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4570
4571fi
4572
4573# Check whether --enable-assertions was given.
4574if test "${enable_assertions+set}" = set; then
4575 enableval=$enable_assertions;
4576else
4577 enableval="yes"
4578fi
4579
4580if test ${enableval} = "yes" ; then
4581 DISABLE_ASSERTIONS=
4582
4583else
4584 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4585
4586fi
4587
David Greenea696d242007-06-28 19:36:08 +00004588# Check whether --enable-expensive-checks was given.
4589if test "${enable_expensive_checks+set}" = set; then
4590 enableval=$enable_expensive_checks;
4591else
4592 enableval="no"
4593fi
4594
4595if test ${enableval} = "yes" ; then
4596 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4597
4598 EXPENSIVE_CHECKS=yes
4599
4600else
4601 ENABLE_EXPENSIVE_CHECKS=
4602
4603 EXPENSIVE_CHECKS=no
4604
4605fi
4606
Reid Spencer8b2e1412006-11-17 03:32:33 +00004607# Check whether --enable-debug-runtime was given.
4608if test "${enable_debug_runtime+set}" = set; then
4609 enableval=$enable_debug_runtime;
4610else
4611 enableval=no
4612fi
4613
4614if test ${enableval} = "no" ; then
4615 DEBUG_RUNTIME=
4616
4617else
4618 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4619
4620fi
4621
Reid Spencera773bd52006-08-04 18:18:08 +00004622# Check whether --enable-jit was given.
4623if test "${enable_jit+set}" = set; then
4624 enableval=$enable_jit;
4625else
4626 enableval=default
4627fi
4628
4629if test ${enableval} = "no"
4630then
4631 JIT=
4632
4633else
4634 case "$llvm_cv_target_arch" in
4635 x86) TARGET_HAS_JIT=1
4636 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004637 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004638 ;;
4639 PowerPC) TARGET_HAS_JIT=1
4640 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004641 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004642 ;;
4643 Alpha) TARGET_HAS_JIT=1
4644 ;;
4645 IA64) TARGET_HAS_JIT=0
4646 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004647 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004648 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004649 Mips) TARGET_HAS_JIT=0
4650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004651 *) TARGET_HAS_JIT=0
4652 ;;
4653 esac
4654fi
4655
4656# Check whether --enable-doxygen was given.
4657if test "${enable_doxygen+set}" = set; then
4658 enableval=$enable_doxygen;
4659else
4660 enableval=default
4661fi
4662
4663case "$enableval" in
4664 yes) ENABLE_DOXYGEN=1
4665 ;;
4666 no) ENABLE_DOXYGEN=0
4667 ;;
4668 default) ENABLE_DOXYGEN=0
4669 ;;
4670 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4671echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4672 { (exit 1); exit 1; }; } ;;
4673esac
4674
4675# Check whether --enable-threads was given.
4676if test "${enable_threads+set}" = set; then
4677 enableval=$enable_threads;
4678else
Reid Spencer65c5d752006-11-05 17:08:18 +00004679 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004680fi
4681
4682case "$enableval" in
4683 yes) ENABLE_THREADS=1
4684 ;;
4685 no) ENABLE_THREADS=0
4686 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004687 default) ENABLE_THREADS=1
4688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004689 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4690echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4691 { (exit 1); exit 1; }; } ;;
4692esac
4693
4694cat >>confdefs.h <<_ACEOF
4695#define ENABLE_THREADS $ENABLE_THREADS
4696_ACEOF
4697
4698
Reid Spencer89b0d992006-12-16 22:07:52 +00004699# Check whether --enable-pic was given.
4700if test "${enable_pic+set}" = set; then
4701 enableval=$enable_pic;
4702else
4703 enableval=default
4704fi
4705
4706case "$enableval" in
4707 yes) ENABLE_PIC=1
4708 ;;
4709 no) ENABLE_PIC=0
4710 ;;
4711 default) ENABLE_PIC=0
4712 ;;
4713 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4714echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4715 { (exit 1); exit 1; }; } ;;
4716esac
4717
4718cat >>confdefs.h <<_ACEOF
4719#define ENABLE_PIC $ENABLE_PIC
4720_ACEOF
4721
4722
Reid Spencera773bd52006-08-04 18:18:08 +00004723TARGETS_TO_BUILD=""
4724# Check whether --enable-targets was given.
4725if test "${enable_targets+set}" = set; then
4726 enableval=$enable_targets;
4727else
4728 enableval=all
4729fi
4730
4731case "$enableval" in
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004732 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004733 host-only)
4734 case "$llvm_cv_target_arch" in
4735 x86) TARGETS_TO_BUILD="X86" ;;
4736 x86_64) TARGETS_TO_BUILD="X86" ;;
4737 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4738 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4739 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4740 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004741 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004742 Mips) TARGETS_TO_BUILD="Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004743 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4744echo "$as_me: error: Can not set target to build" >&2;}
4745 { (exit 1); exit 1; }; } ;;
4746 esac
4747 ;;
4748 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4749 case "$a_target" in
4750 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4751 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4752 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4753 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4754 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4755 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004756 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004757 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004758 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4759echo "$as_me: error: Unrecognized target $a_target" >&2;}
4760 { (exit 1); exit 1; }; } ;;
4761 esac
4762 done
4763 ;;
4764esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004765TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004766TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4767
4768
Reid Spencer65c5d752006-11-05 17:08:18 +00004769# Check whether --enable-cbe-printf-a was given.
4770if test "${enable_cbe_printf_a+set}" = set; then
4771 enableval=$enable_cbe_printf_a;
4772else
4773 enableval=default
4774fi
4775
4776case "$enableval" in
4777 yes) ENABLE_CBE_PRINTF_A=1
4778 ;;
4779 no) ENABLE_CBE_PRINTF_A=0
4780 ;;
4781 default) ENABLE_CBE_PRINTF_A=1
4782 ;;
4783 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4784echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4785 { (exit 1); exit 1; }; } ;;
4786esac
4787
4788cat >>confdefs.h <<_ACEOF
4789#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4790_ACEOF
4791
4792
Reid Spencera773bd52006-08-04 18:18:08 +00004793
4794# Check whether --with-llvmgccdir was given.
4795if test "${with_llvmgccdir+set}" = set; then
4796 withval=$with_llvmgccdir;
4797else
4798 withval=default
4799fi
4800
4801case "$withval" in
4802 default) WITH_LLVMGCCDIR=default ;;
4803 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4804 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4805echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4806 { (exit 1); exit 1; }; } ;;
4807esac
4808
4809
4810# Check whether --with-extra-options was given.
4811if test "${with_extra_options+set}" = set; then
4812 withval=$with_extra_options;
4813else
4814 withval=default
4815fi
4816
4817case "$withval" in
4818 default) EXTRA_OPTIONS= ;;
4819 *) EXTRA_OPTIONS=$withval ;;
4820esac
4821EXTRA_OPTIONS=$EXTRA_OPTIONS
4822
4823
4824
4825ac_ext=c
4826ac_cpp='$CPP $CPPFLAGS'
4827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4831echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4832# On Suns, sometimes $CPP names a directory.
4833if test -n "$CPP" && test -d "$CPP"; then
4834 CPP=
4835fi
4836if test -z "$CPP"; then
4837 if test "${ac_cv_prog_CPP+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840 # Double quotes because CPP needs to be expanded
4841 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4842 do
4843 ac_preproc_ok=false
4844for ac_c_preproc_warn_flag in '' yes
4845do
4846 # Use a header file that comes with gcc, so configuring glibc
4847 # with a fresh cross-compiler works.
4848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849 # <limits.h> exists even on freestanding compilers.
4850 # On the NeXT, cc -E runs the code through the compiler's parser,
4851 # not just through cpp. "Syntax error" is here to catch this case.
4852 cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h. */
4858#ifdef __STDC__
4859# include <limits.h>
4860#else
4861# include <assert.h>
4862#endif
4863 Syntax error
4864_ACEOF
4865if { (ac_try="$ac_cpp conftest.$ac_ext"
4866case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869esac
4870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null; then
4878 if test -s conftest.err; then
4879 ac_cpp_err=$ac_c_preproc_warn_flag
4880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4881 else
4882 ac_cpp_err=
4883 fi
4884else
4885 ac_cpp_err=yes
4886fi
4887if test -z "$ac_cpp_err"; then
4888 :
4889else
4890 echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 # Broken: fails on valid input.
4894continue
4895fi
4896
4897rm -f conftest.err conftest.$ac_ext
4898
4899 # OK, works on sane cases. Now check whether nonexistent headers
4900 # can be detected and how.
4901 cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907#include <ac_nonexistent.h>
4908_ACEOF
4909if { (ac_try="$ac_cpp conftest.$ac_ext"
4910case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913esac
4914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev/null; then
4922 if test -s conftest.err; then
4923 ac_cpp_err=$ac_c_preproc_warn_flag
4924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4925 else
4926 ac_cpp_err=
4927 fi
4928else
4929 ac_cpp_err=yes
4930fi
4931if test -z "$ac_cpp_err"; then
4932 # Broken: success on invalid input.
4933continue
4934else
4935 echo "$as_me: failed program was:" >&5
4936sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 # Passes both tests.
4939ac_preproc_ok=:
4940break
4941fi
4942
4943rm -f conftest.err conftest.$ac_ext
4944
4945done
4946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4947rm -f conftest.err conftest.$ac_ext
4948if $ac_preproc_ok; then
4949 break
4950fi
4951
4952 done
4953 ac_cv_prog_CPP=$CPP
4954
4955fi
4956 CPP=$ac_cv_prog_CPP
4957else
4958 ac_cv_prog_CPP=$CPP
4959fi
4960{ echo "$as_me:$LINENO: result: $CPP" >&5
4961echo "${ECHO_T}$CPP" >&6; }
4962ac_preproc_ok=false
4963for ac_c_preproc_warn_flag in '' yes
4964do
4965 # Use a header file that comes with gcc, so configuring glibc
4966 # with a fresh cross-compiler works.
4967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4968 # <limits.h> exists even on freestanding compilers.
4969 # On the NeXT, cc -E runs the code through the compiler's parser,
4970 # not just through cpp. "Syntax error" is here to catch this case.
4971 cat >conftest.$ac_ext <<_ACEOF
4972/* confdefs.h. */
4973_ACEOF
4974cat confdefs.h >>conftest.$ac_ext
4975cat >>conftest.$ac_ext <<_ACEOF
4976/* end confdefs.h. */
4977#ifdef __STDC__
4978# include <limits.h>
4979#else
4980# include <assert.h>
4981#endif
4982 Syntax error
4983_ACEOF
4984if { (ac_try="$ac_cpp conftest.$ac_ext"
4985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
4989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_c_preproc_warn_flag
4999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5000 else
5001 ac_cpp_err=
5002 fi
5003else
5004 ac_cpp_err=yes
5005fi
5006if test -z "$ac_cpp_err"; then
5007 :
5008else
5009 echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 # Broken: fails on valid input.
5013continue
5014fi
5015
5016rm -f conftest.err conftest.$ac_ext
5017
5018 # OK, works on sane cases. Now check whether nonexistent headers
5019 # can be detected and how.
5020 cat >conftest.$ac_ext <<_ACEOF
5021/* confdefs.h. */
5022_ACEOF
5023cat confdefs.h >>conftest.$ac_ext
5024cat >>conftest.$ac_ext <<_ACEOF
5025/* end confdefs.h. */
5026#include <ac_nonexistent.h>
5027_ACEOF
5028if { (ac_try="$ac_cpp conftest.$ac_ext"
5029case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032esac
5033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } >/dev/null; then
5041 if test -s conftest.err; then
5042 ac_cpp_err=$ac_c_preproc_warn_flag
5043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5044 else
5045 ac_cpp_err=
5046 fi
5047else
5048 ac_cpp_err=yes
5049fi
5050if test -z "$ac_cpp_err"; then
5051 # Broken: success on invalid input.
5052continue
5053else
5054 echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 # Passes both tests.
5058ac_preproc_ok=:
5059break
5060fi
5061
5062rm -f conftest.err conftest.$ac_ext
5063
5064done
5065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5066rm -f conftest.err conftest.$ac_ext
5067if $ac_preproc_ok; then
5068 :
5069else
5070 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5071See \`config.log' for more details." >&5
5072echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5073See \`config.log' for more details." >&2;}
5074 { (exit 1); exit 1; }; }
5075fi
5076
5077ac_ext=c
5078ac_cpp='$CPP $CPPFLAGS'
5079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082
5083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088if test -n "$ac_tool_prefix"; then
5089 for ac_prog in gcc
5090 do
5091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095if test "${ac_cv_prog_CC+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098 if test -n "$CC"; then
5099 ac_cv_prog_CC="$CC" # Let the user override the test.
5100else
5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112done
5113done
5114IFS=$as_save_IFS
5115
5116fi
5117fi
5118CC=$ac_cv_prog_CC
5119if test -n "$CC"; then
5120 { echo "$as_me:$LINENO: result: $CC" >&5
5121echo "${ECHO_T}$CC" >&6; }
5122else
5123 { echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6; }
5125fi
5126
5127
5128 test -n "$CC" && break
5129 done
5130fi
5131if test -z "$CC"; then
5132 ac_ct_CC=$CC
5133 for ac_prog in gcc
5134do
5135 # Extract the first word of "$ac_prog", so it can be a program name with args.
5136set dummy $ac_prog; ac_word=$2
5137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142 if test -n "$ac_ct_CC"; then
5143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_CC="$ac_prog"
5153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156done
5157done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162ac_ct_CC=$ac_cv_prog_ac_ct_CC
5163if test -n "$ac_ct_CC"; then
5164 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5165echo "${ECHO_T}$ac_ct_CC" >&6; }
5166else
5167 { echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6; }
5169fi
5170
5171
5172 test -n "$ac_ct_CC" && break
5173done
5174
5175 if test "x$ac_ct_CC" = x; then
5176 CC=""
5177 else
5178 case $cross_compiling:$ac_tool_warned in
5179yes:)
5180{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5181whose name does not start with the host triplet. If you think this
5182configuration is useful to you, please write to autoconf@gnu.org." >&5
5183echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5184whose name does not start with the host triplet. If you think this
5185configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5186ac_tool_warned=yes ;;
5187esac
5188 CC=$ac_ct_CC
5189 fi
5190fi
5191
5192
5193test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5194See \`config.log' for more details." >&5
5195echo "$as_me: error: no acceptable C compiler found in \$PATH
5196See \`config.log' for more details." >&2;}
5197 { (exit 1); exit 1; }; }
5198
5199# Provide some information about the compiler.
5200echo "$as_me:$LINENO: checking for C compiler version" >&5
5201ac_compiler=`set X $ac_compile; echo $2`
5202{ (ac_try="$ac_compiler --version >&5"
5203case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206esac
5207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_compiler --version >&5") 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }
5212{ (ac_try="$ac_compiler -v >&5"
5213case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216esac
5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_compiler -v >&5") 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }
5222{ (ac_try="$ac_compiler -V >&5"
5223case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226esac
5227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_compiler -V >&5") 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }
5232
5233{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5234echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5235if test "${ac_cv_c_compiler_gnu+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244
5245int
5246main ()
5247{
5248#ifndef __GNUC__
5249 choke me
5250#endif
5251
5252 ;
5253 return 0;
5254}
5255_ACEOF
5256rm -f conftest.$ac_objext
5257if { (ac_try="$ac_compile"
5258case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261esac
5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_compile") 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5271 { (case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274esac
5275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; } &&
5280 { ac_try='test -s conftest.$ac_objext'
5281 { (case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_try") 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_compiler_gnu=yes
5291else
5292 echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_compiler_gnu=no
5296fi
5297
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299ac_cv_c_compiler_gnu=$ac_compiler_gnu
5300
5301fi
5302{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5303echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5304GCC=`test $ac_compiler_gnu = yes && echo yes`
5305ac_test_CFLAGS=${CFLAGS+set}
5306ac_save_CFLAGS=$CFLAGS
5307{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5308echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5309if test "${ac_cv_prog_cc_g+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312 ac_save_c_werror_flag=$ac_c_werror_flag
5313 ac_c_werror_flag=yes
5314 ac_cv_prog_cc_g=no
5315 CFLAGS="-g"
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
5322
5323int
5324main ()
5325{
5326
5327 ;
5328 return 0;
5329}
5330_ACEOF
5331rm -f conftest.$ac_objext
5332if { (ac_try="$ac_compile"
5333case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336esac
5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5346 { (case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349esac
5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_try") 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest.$ac_objext'
5356 { (case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_try") 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 ac_cv_prog_cc_g=yes
5366else
5367 echo "$as_me: failed program was:" >&5
5368sed 's/^/| /' conftest.$ac_ext >&5
5369
5370 CFLAGS=""
5371 cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h. */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h. */
5377
5378int
5379main ()
5380{
5381
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386rm -f conftest.$ac_objext
5387if { (ac_try="$ac_compile"
5388case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391esac
5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5401 { (case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404esac
5405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_try") 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest.$ac_objext'
5411 { (case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
5415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_try") 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 :
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_c_werror_flag=$ac_save_c_werror_flag
5426 CFLAGS="-g"
5427 cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433
5434int
5435main ()
5436{
5437
5438 ;
5439 return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext
5443if { (ac_try="$ac_compile"
5444case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5457 { (case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460esac
5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_try") 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470esac
5471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_try") 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_prog_cc_g=yes
5477else
5478 echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481
5482fi
5483
5484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485fi
5486
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488fi
5489
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 ac_c_werror_flag=$ac_save_c_werror_flag
5492fi
5493{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5494echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5495if test "$ac_test_CFLAGS" = set; then
5496 CFLAGS=$ac_save_CFLAGS
5497elif test $ac_cv_prog_cc_g = yes; then
5498 if test "$GCC" = yes; then
5499 CFLAGS="-g -O2"
5500 else
5501 CFLAGS="-g"
5502 fi
5503else
5504 if test "$GCC" = yes; then
5505 CFLAGS="-O2"
5506 else
5507 CFLAGS=
5508 fi
5509fi
5510{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5511echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5512if test "${ac_cv_prog_cc_c89+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515 ac_cv_prog_cc_c89=no
5516ac_save_CC=$CC
5517cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
5523#include <stdarg.h>
5524#include <stdio.h>
5525#include <sys/types.h>
5526#include <sys/stat.h>
5527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5528struct buf { int x; };
5529FILE * (*rcsopen) (struct buf *, struct stat *, int);
5530static char *e (p, i)
5531 char **p;
5532 int i;
5533{
5534 return p[i];
5535}
5536static char *f (char * (*g) (char **, int), char **p, ...)
5537{
5538 char *s;
5539 va_list v;
5540 va_start (v,p);
5541 s = g (p, va_arg (v,int));
5542 va_end (v);
5543 return s;
5544}
5545
5546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5547 function prototypes and stuff, but not '\xHH' hex character constants.
5548 These don't provoke an error unfortunately, instead are silently treated
5549 as 'x'. The following induces an error, until -std is added to get
5550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5551 array size at least. It's necessary to write '\x00'==0 to get something
5552 that's true only with -std. */
5553int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5554
5555/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5556 inside strings and character constants. */
5557#define FOO(x) 'x'
5558int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5559
5560int test (int i, double x);
5561struct s1 {int (*f) (int a);};
5562struct s2 {int (*f) (double a);};
5563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5564int argc;
5565char **argv;
5566int
5567main ()
5568{
5569return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5570 ;
5571 return 0;
5572}
5573_ACEOF
5574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5576do
5577 CC="$ac_save_CC $ac_arg"
5578 rm -f conftest.$ac_objext
5579if { (ac_try="$ac_compile"
5580case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compile") 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5593 { (case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596esac
5597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_try") 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; } &&
5602 { ac_try='test -s conftest.$ac_objext'
5603 { (case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_prog_cc_c89=$ac_arg
5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617
5618fi
5619
5620rm -f core conftest.err conftest.$ac_objext
5621 test "x$ac_cv_prog_cc_c89" != "xno" && break
5622done
5623rm -f conftest.$ac_ext
5624CC=$ac_save_CC
5625
5626fi
5627# AC_CACHE_VAL
5628case "x$ac_cv_prog_cc_c89" in
5629 x)
5630 { echo "$as_me:$LINENO: result: none needed" >&5
5631echo "${ECHO_T}none needed" >&6; } ;;
5632 xno)
5633 { echo "$as_me:$LINENO: result: unsupported" >&5
5634echo "${ECHO_T}unsupported" >&6; } ;;
5635 *)
5636 CC="$CC $ac_cv_prog_cc_c89"
5637 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5638echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5639esac
5640
5641
5642ac_ext=c
5643ac_cpp='$CPP $CPPFLAGS'
5644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648ac_ext=cpp
5649ac_cpp='$CXXCPP $CPPFLAGS'
5650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5653if test -z "$CXX"; then
5654 if test -n "$CCC"; then
5655 CXX=$CCC
5656 else
5657 if test -n "$ac_tool_prefix"; then
5658 for ac_prog in g++
5659 do
5660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5664if test "${ac_cv_prog_CXX+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667 if test -n "$CXX"; then
5668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5680 fi
5681done
5682done
5683IFS=$as_save_IFS
5684
5685fi
5686fi
5687CXX=$ac_cv_prog_CXX
5688if test -n "$CXX"; then
5689 { echo "$as_me:$LINENO: result: $CXX" >&5
5690echo "${ECHO_T}$CXX" >&6; }
5691else
5692 { echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6; }
5694fi
5695
5696
5697 test -n "$CXX" && break
5698 done
5699fi
5700if test -z "$CXX"; then
5701 ac_ct_CXX=$CXX
5702 for ac_prog in g++
5703do
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705set dummy $ac_prog; ac_word=$2
5706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5708if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 if test -n "$ac_ct_CXX"; then
5712 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_prog_ac_ct_CXX="$ac_prog"
5722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725done
5726done
5727IFS=$as_save_IFS
5728
5729fi
5730fi
5731ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5732if test -n "$ac_ct_CXX"; then
5733 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5734echo "${ECHO_T}$ac_ct_CXX" >&6; }
5735else
5736 { echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6; }
5738fi
5739
5740
5741 test -n "$ac_ct_CXX" && break
5742done
5743
5744 if test "x$ac_ct_CXX" = x; then
5745 CXX="g++"
5746 else
5747 case $cross_compiling:$ac_tool_warned in
5748yes:)
5749{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5750whose name does not start with the host triplet. If you think this
5751configuration is useful to you, please write to autoconf@gnu.org." >&5
5752echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5753whose name does not start with the host triplet. If you think this
5754configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5755ac_tool_warned=yes ;;
5756esac
5757 CXX=$ac_ct_CXX
5758 fi
5759fi
5760
5761 fi
5762fi
5763# Provide some information about the compiler.
5764echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5765ac_compiler=`set X $ac_compile; echo $2`
5766{ (ac_try="$ac_compiler --version >&5"
5767case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770esac
5771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_compiler --version >&5") 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }
5776{ (ac_try="$ac_compiler -v >&5"
5777case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compiler -v >&5") 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }
5786{ (ac_try="$ac_compiler -V >&5"
5787case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
5791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compiler -V >&5") 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }
5796
5797{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5798echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5799if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802 cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h. */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h. */
5808
5809int
5810main ()
5811{
5812#ifndef __GNUC__
5813 choke me
5814#endif
5815
5816 ;
5817 return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext
5821if { (ac_try="$ac_compile"
5822case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825esac
5826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_compile") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5835 { (case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_try") 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848esac
5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_try") 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_compiler_gnu=yes
5855else
5856 echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 ac_compiler_gnu=no
5860fi
5861
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5864
5865fi
5866{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5867echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5868GXX=`test $ac_compiler_gnu = yes && echo yes`
5869ac_test_CXXFLAGS=${CXXFLAGS+set}
5870ac_save_CXXFLAGS=$CXXFLAGS
5871{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5872echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5873if test "${ac_cv_prog_cxx_g+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5877 ac_cxx_werror_flag=yes
5878 ac_cv_prog_cxx_g=no
5879 CXXFLAGS="-g"
5880 cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h. */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h. */
5886
5887int
5888main ()
5889{
5890
5891 ;
5892 return 0;
5893}
5894_ACEOF
5895rm -f conftest.$ac_objext
5896if { (ac_try="$ac_compile"
5897case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5910 { (case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_try") 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_prog_cxx_g=yes
5930else
5931 echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 CXXFLAGS=""
5935 cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
5941
5942int
5943main ()
5944{
5945
5946 ;
5947 return 0;
5948}
5949_ACEOF
5950rm -f conftest.$ac_objext
5951if { (ac_try="$ac_compile"
5952case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } &&
5964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5965 { (case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968esac
5969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_try") 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; } &&
5974 { ac_try='test -s conftest.$ac_objext'
5975 { (case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_try") 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 :
5985else
5986 echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5990 CXXFLAGS="-g"
5991 cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h. */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h. */
5997
5998int
5999main ()
6000{
6001
6002 ;
6003 return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6021 { (case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_try") 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; } &&
6030 { ac_try='test -s conftest.$ac_objext'
6031 { (case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034esac
6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_try") 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 ac_cv_prog_cxx_g=yes
6041else
6042 echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045
6046fi
6047
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049fi
6050
6051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052fi
6053
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6056fi
6057{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6058echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6059if test "$ac_test_CXXFLAGS" = set; then
6060 CXXFLAGS=$ac_save_CXXFLAGS
6061elif test $ac_cv_prog_cxx_g = yes; then
6062 if test "$GXX" = yes; then
6063 CXXFLAGS="-g -O2"
6064 else
6065 CXXFLAGS="-g"
6066 fi
6067else
6068 if test "$GXX" = yes; then
6069 CXXFLAGS="-O2"
6070 else
6071 CXXFLAGS=
6072 fi
6073fi
6074ac_ext=c
6075ac_cpp='$CPP $CPPFLAGS'
6076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
6080{ echo "$as_me:$LINENO: checking " >&5
6081echo $ECHO_N "checking ... $ECHO_C" >&6; }
6082if test "${ac_cv_has_flex+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085 for ac_prog in flex lex
6086do
6087 # Extract the first word of "$ac_prog", so it can be a program name with args.
6088set dummy $ac_prog; ac_word=$2
6089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091if test "${ac_cv_prog_LEX+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 if test -n "$LEX"; then
6095 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_LEX="$ac_prog"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6107 fi
6108done
6109done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114LEX=$ac_cv_prog_LEX
6115if test -n "$LEX"; then
6116 { echo "$as_me:$LINENO: result: $LEX" >&5
6117echo "${ECHO_T}$LEX" >&6; }
6118else
6119 { echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6; }
6121fi
6122
6123
6124 test -n "$LEX" && break
6125done
6126test -n "$LEX" || LEX=":"
6127
6128if test -z "$LEXLIB"
6129then
6130 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6131echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6132if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134else
6135 ac_check_lib_save_LIBS=$LIBS
6136LIBS="-lfl $LIBS"
6137cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h. */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h. */
6143
6144/* Override any GCC internal prototype to avoid an error.
6145 Use char because int might match the return type of a GCC
6146 builtin and then its argument prototype would still apply. */
6147#ifdef __cplusplus
6148extern "C"
6149#endif
6150char yywrap ();
6151int
6152main ()
6153{
6154return yywrap ();
6155 ;
6156 return 0;
6157}
6158_ACEOF
6159rm -f conftest.$ac_objext conftest$ac_exeext
6160if { (ac_try="$ac_link"
6161case "(($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_link") 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6174 { (case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177esac
6178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_try") 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (case "(($ac_try" in
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6187esac
6188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189 (eval "$ac_try") 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_lib_fl_yywrap=yes
6194else
6195 echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 ac_cv_lib_fl_yywrap=no
6199fi
6200
6201rm -f core conftest.err conftest.$ac_objext \
6202 conftest$ac_exeext conftest.$ac_ext
6203LIBS=$ac_check_lib_save_LIBS
6204fi
6205{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6206echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6207if test $ac_cv_lib_fl_yywrap = yes; then
6208 LEXLIB="-lfl"
6209else
6210 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6211echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6212if test "${ac_cv_lib_l_yywrap+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 ac_check_lib_save_LIBS=$LIBS
6216LIBS="-ll $LIBS"
6217cat >conftest.$ac_ext <<_ACEOF
6218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
6223
6224/* Override any GCC internal prototype to avoid an error.
6225 Use char because int might match the return type of a GCC
6226 builtin and then its argument prototype would still apply. */
6227#ifdef __cplusplus
6228extern "C"
6229#endif
6230char yywrap ();
6231int
6232main ()
6233{
6234return yywrap ();
6235 ;
6236 return 0;
6237}
6238_ACEOF
6239rm -f conftest.$ac_objext conftest$ac_exeext
6240if { (ac_try="$ac_link"
6241case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244esac
6245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_link") 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6254 { (case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257esac
6258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_try") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest$ac_exeext'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_lib_l_yywrap=yes
6274else
6275 echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_cv_lib_l_yywrap=no
6279fi
6280
6281rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6283LIBS=$ac_check_lib_save_LIBS
6284fi
6285{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6286echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6287if test $ac_cv_lib_l_yywrap = yes; then
6288 LEXLIB="-ll"
6289fi
6290
6291fi
6292
6293fi
6294
6295if test "x$LEX" != "x:"; then
6296 { echo "$as_me:$LINENO: checking lex output file root" >&5
6297echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6298if test "${ac_cv_prog_lex_root+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301 # The minimal lex program is just a single line: %%. But some broken lexes
6302# (Solaris, I think it was) want two %% lines, so accommodate them.
6303cat >conftest.l <<_ACEOF
6304%%
6305%%
6306_ACEOF
6307{ (ac_try="$LEX conftest.l"
6308case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$LEX conftest.l") 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }
6317if test -f lex.yy.c; then
6318 ac_cv_prog_lex_root=lex.yy
6319elif test -f lexyy.c; then
6320 ac_cv_prog_lex_root=lexyy
6321else
6322 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6323echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6324 { (exit 1); exit 1; }; }
6325fi
6326fi
6327{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6328echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6329rm -f conftest.l
6330LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6331
6332{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6333echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6334if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337 # POSIX says lex can declare yytext either as a pointer or an array; the
6338# default is implementation-dependent. Figure out which it is, since
6339# not all implementations provide the %pointer and %array declarations.
6340ac_cv_prog_lex_yytext_pointer=no
6341echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6342ac_save_LIBS=$LIBS
6343LIBS="$LIBS $LEXLIB"
6344cat >conftest.$ac_ext <<_ACEOF
6345`cat $LEX_OUTPUT_ROOT.c`
6346_ACEOF
6347rm -f conftest.$ac_objext conftest$ac_exeext
6348if { (ac_try="$ac_link"
6349case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_link") 2>conftest.er1
6355 ac_status=$?
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6362 { (case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365esac
6366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_try") 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest$ac_exeext'
6372 { (case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_try") 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_prog_lex_yytext_pointer=yes
6382else
6383 echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
6386
6387fi
6388
6389rm -f core conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext conftest.$ac_ext
6391LIBS=$ac_save_LIBS
6392rm -f "${LEX_OUTPUT_ROOT}.c"
6393
6394fi
6395{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6396echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6397if test $ac_cv_prog_lex_yytext_pointer = yes; then
6398
6399cat >>confdefs.h <<\_ACEOF
6400#define YYTEXT_POINTER 1
6401_ACEOF
6402
6403fi
6404
6405fi
6406
6407fi
6408{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6409echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6410if test "$LEX" != "flex"; then
6411 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6412echo "$as_me: error: flex not found but required" >&2;}
6413 { (exit 1); exit 1; }; }
6414else
6415 FLEX=flex
6416
6417fi
6418
6419{ echo "$as_me:$LINENO: checking " >&5
6420echo $ECHO_N "checking ... $ECHO_C" >&6; }
6421if test "${llvm_cv_has_bison+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423else
6424 for ac_prog in 'bison -y' byacc
6425do
6426 # Extract the first word of "$ac_prog", so it can be a program name with args.
6427set dummy $ac_prog; ac_word=$2
6428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430if test "${ac_cv_prog_YACC+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433 if test -n "$YACC"; then
6434 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_YACC="$ac_prog"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447done
6448done
6449IFS=$as_save_IFS
6450
6451fi
6452fi
6453YACC=$ac_cv_prog_YACC
6454if test -n "$YACC"; then
6455 { echo "$as_me:$LINENO: result: $YACC" >&5
6456echo "${ECHO_T}$YACC" >&6; }
6457else
6458 { echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6; }
6460fi
6461
6462
6463 test -n "$YACC" && break
6464done
6465test -n "$YACC" || YACC="yacc"
6466
6467fi
6468{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6469echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6470if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006471
6472 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6473echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006474else
6475 BISON=bison
6476
6477fi
6478
6479{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6480echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6481if test "${lt_cv_path_NM+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483else
6484 if test -n "$NM"; then
6485 # Let the user override the test.
6486 lt_cv_path_NM="$NM"
6487else
6488 lt_nm_to_check="${ac_tool_prefix}nm"
6489 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6490 lt_nm_to_check="$lt_nm_to_check nm"
6491 fi
6492 for lt_tmp_nm in $lt_nm_to_check; do
6493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6495 IFS="$lt_save_ifs"
6496 test -z "$ac_dir" && ac_dir=.
6497 tmp_nm="$ac_dir/$lt_tmp_nm"
6498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6499 # Check to see if the nm accepts a BSD-compat flag.
6500 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6501 # nm: unknown option "B" ignored
6502 # Tru64's nm complains that /dev/null is an invalid object file
6503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6504 */dev/null* | *'Invalid file or object type'*)
6505 lt_cv_path_NM="$tmp_nm -B"
6506 break
6507 ;;
6508 *)
6509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6510 */dev/null*)
6511 lt_cv_path_NM="$tmp_nm -p"
6512 break
6513 ;;
6514 *)
6515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6516 continue # so that we can try to find one that supports BSD flags
6517 ;;
6518 esac
6519 ;;
6520 esac
6521 fi
6522 done
6523 IFS="$lt_save_ifs"
6524 done
6525 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6526fi
6527fi
6528{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6529echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6530NM="$lt_cv_path_NM"
6531
6532
6533
6534{ echo "$as_me:$LINENO: checking for GNU make" >&5
6535echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6536if test "${llvm_cv_gnu_make_command+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539 llvm_cv_gnu_make_command=''
6540 for a in "$MAKE" make gmake gnumake ; do
6541 if test -z "$a" ; then continue ; fi ;
6542 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6543 then
6544 llvm_cv_gnu_make_command=$a ;
6545 break;
6546 fi
6547 done
6548fi
6549{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6550echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6551 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6552 ifGNUmake='' ;
6553 else
6554 ifGNUmake='#' ;
6555 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6556echo "${ECHO_T}\"Not found\"" >&6; };
6557 fi
6558
6559
6560{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6561echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6562LN_S=$as_ln_s
6563if test "$LN_S" = "ln -s"; then
6564 { echo "$as_me:$LINENO: result: yes" >&5
6565echo "${ECHO_T}yes" >&6; }
6566else
6567 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6568echo "${ECHO_T}no, using $LN_S" >&6; }
6569fi
6570
6571# Extract the first word of "cmp", so it can be a program name with args.
6572set dummy cmp; ac_word=$2
6573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575if test "${ac_cv_path_CMP+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 case $CMP in
6579 [\\/]* | ?:[\\/]*)
6580 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6581 ;;
6582 *)
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594done
6595done
6596IFS=$as_save_IFS
6597
6598 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6599 ;;
6600esac
6601fi
6602CMP=$ac_cv_path_CMP
6603if test -n "$CMP"; then
6604 { echo "$as_me:$LINENO: result: $CMP" >&5
6605echo "${ECHO_T}$CMP" >&6; }
6606else
6607 { echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6; }
6609fi
6610
6611
6612# Extract the first word of "cp", so it can be a program name with args.
6613set dummy cp; ac_word=$2
6614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616if test "${ac_cv_path_CP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 case $CP in
6620 [\\/]* | ?:[\\/]*)
6621 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6622 ;;
6623 *)
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635done
6636done
6637IFS=$as_save_IFS
6638
6639 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6640 ;;
6641esac
6642fi
6643CP=$ac_cv_path_CP
6644if test -n "$CP"; then
6645 { echo "$as_me:$LINENO: result: $CP" >&5
6646echo "${ECHO_T}$CP" >&6; }
6647else
6648 { echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6; }
6650fi
6651
6652
6653# Extract the first word of "date", so it can be a program name with args.
6654set dummy date; ac_word=$2
6655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657if test "${ac_cv_path_DATE+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660 case $DATE in
6661 [\\/]* | ?:[\\/]*)
6662 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6663 ;;
6664 *)
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
6678IFS=$as_save_IFS
6679
6680 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6681 ;;
6682esac
6683fi
6684DATE=$ac_cv_path_DATE
6685if test -n "$DATE"; then
6686 { echo "$as_me:$LINENO: result: $DATE" >&5
6687echo "${ECHO_T}$DATE" >&6; }
6688else
6689 { echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6; }
6691fi
6692
6693
6694# Extract the first word of "find", so it can be a program name with args.
6695set dummy find; ac_word=$2
6696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698if test "${ac_cv_path_FIND+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701 case $FIND in
6702 [\\/]* | ?:[\\/]*)
6703 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6704 ;;
6705 *)
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
6719IFS=$as_save_IFS
6720
6721 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6722 ;;
6723esac
6724fi
6725FIND=$ac_cv_path_FIND
6726if test -n "$FIND"; then
6727 { echo "$as_me:$LINENO: result: $FIND" >&5
6728echo "${ECHO_T}$FIND" >&6; }
6729else
6730 { echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6; }
6732fi
6733
6734
6735# Extract the first word of "grep", so it can be a program name with args.
6736set dummy grep; ac_word=$2
6737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739if test "${ac_cv_path_GREP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741else
6742 case $GREP in
6743 [\\/]* | ?:[\\/]*)
6744 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6745 ;;
6746 *)
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758done
6759done
6760IFS=$as_save_IFS
6761
6762 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6763 ;;
6764esac
6765fi
6766GREP=$ac_cv_path_GREP
6767if test -n "$GREP"; then
6768 { echo "$as_me:$LINENO: result: $GREP" >&5
6769echo "${ECHO_T}$GREP" >&6; }
6770else
6771 { echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6; }
6773fi
6774
6775
6776# Extract the first word of "mkdir", so it can be a program name with args.
6777set dummy mkdir; ac_word=$2
6778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780if test "${ac_cv_path_MKDIR+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783 case $MKDIR in
6784 [\\/]* | ?:[\\/]*)
6785 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6786 ;;
6787 *)
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799done
6800done
6801IFS=$as_save_IFS
6802
6803 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6804 ;;
6805esac
6806fi
6807MKDIR=$ac_cv_path_MKDIR
6808if test -n "$MKDIR"; then
6809 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6810echo "${ECHO_T}$MKDIR" >&6; }
6811else
6812 { echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6; }
6814fi
6815
6816
6817# Extract the first word of "mv", so it can be a program name with args.
6818set dummy mv; ac_word=$2
6819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821if test "${ac_cv_path_MV+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824 case $MV in
6825 [\\/]* | ?:[\\/]*)
6826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6827 ;;
6828 *)
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
6842IFS=$as_save_IFS
6843
6844 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6845 ;;
6846esac
6847fi
6848MV=$ac_cv_path_MV
6849if test -n "$MV"; then
6850 { echo "$as_me:$LINENO: result: $MV" >&5
6851echo "${ECHO_T}$MV" >&6; }
6852else
6853 { echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6; }
6855fi
6856
6857
6858if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6860set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863if test "${ac_cv_prog_RANLIB+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866 if test -n "$RANLIB"; then
6867 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886RANLIB=$ac_cv_prog_RANLIB
6887if test -n "$RANLIB"; then
6888 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6889echo "${ECHO_T}$RANLIB" >&6; }
6890else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
6893fi
6894
6895
6896fi
6897if test -z "$ac_cv_prog_RANLIB"; then
6898 ac_ct_RANLIB=$RANLIB
6899 # Extract the first word of "ranlib", so it can be a program name with args.
6900set dummy ranlib; ac_word=$2
6901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 if test -n "$ac_ct_RANLIB"; then
6907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_ac_ct_RANLIB="ranlib"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920done
6921done
6922IFS=$as_save_IFS
6923
6924fi
6925fi
6926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6927if test -n "$ac_ct_RANLIB"; then
6928 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6929echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6930else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
6933fi
6934
6935 if test "x$ac_ct_RANLIB" = x; then
6936 RANLIB=":"
6937 else
6938 case $cross_compiling:$ac_tool_warned in
6939yes:)
6940{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6941whose name does not start with the host triplet. If you think this
6942configuration is useful to you, please write to autoconf@gnu.org." >&5
6943echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6944whose name does not start with the host triplet. If you think this
6945configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6946ac_tool_warned=yes ;;
6947esac
6948 RANLIB=$ac_ct_RANLIB
6949 fi
6950else
6951 RANLIB="$ac_cv_prog_RANLIB"
6952fi
6953
6954# Extract the first word of "rm", so it can be a program name with args.
6955set dummy rm; ac_word=$2
6956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958if test "${ac_cv_path_RM+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961 case $RM in
6962 [\\/]* | ?:[\\/]*)
6963 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6964 ;;
6965 *)
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977done
6978done
6979IFS=$as_save_IFS
6980
6981 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6982 ;;
6983esac
6984fi
6985RM=$ac_cv_path_RM
6986if test -n "$RM"; then
6987 { echo "$as_me:$LINENO: result: $RM" >&5
6988echo "${ECHO_T}$RM" >&6; }
6989else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6; }
6992fi
6993
6994
6995# Extract the first word of "sed", so it can be a program name with args.
6996set dummy sed; ac_word=$2
6997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999if test "${ac_cv_path_SED+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 case $SED in
7003 [\\/]* | ?:[\\/]*)
7004 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7005 ;;
7006 *)
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7014 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7017 fi
7018done
7019done
7020IFS=$as_save_IFS
7021
7022 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7023 ;;
7024esac
7025fi
7026SED=$ac_cv_path_SED
7027if test -n "$SED"; then
7028 { echo "$as_me:$LINENO: result: $SED" >&5
7029echo "${ECHO_T}$SED" >&6; }
7030else
7031 { echo "$as_me:$LINENO: result: no" >&5
7032echo "${ECHO_T}no" >&6; }
7033fi
7034
7035
7036# Extract the first word of "tar", so it can be a program name with args.
7037set dummy tar; ac_word=$2
7038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040if test "${ac_cv_path_TAR+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043 case $TAR in
7044 [\\/]* | ?:[\\/]*)
7045 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7046 ;;
7047 *)
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059done
7060done
7061IFS=$as_save_IFS
7062
7063 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7064 ;;
7065esac
7066fi
7067TAR=$ac_cv_path_TAR
7068if test -n "$TAR"; then
7069 { echo "$as_me:$LINENO: result: $TAR" >&5
7070echo "${ECHO_T}$TAR" >&6; }
7071else
7072 { echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6; }
7074fi
7075
7076
7077# Extract the first word of "pwd", so it can be a program name with args.
7078set dummy pwd; ac_word=$2
7079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081if test "${ac_cv_path_BINPWD+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084 case $BINPWD in
7085 [\\/]* | ?:[\\/]*)
7086 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7087 ;;
7088 *)
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100done
7101done
7102IFS=$as_save_IFS
7103
7104 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7105 ;;
7106esac
7107fi
7108BINPWD=$ac_cv_path_BINPWD
7109if test -n "$BINPWD"; then
7110 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7111echo "${ECHO_T}$BINPWD" >&6; }
7112else
7113 { echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6; }
7115fi
7116
7117
7118
7119# Extract the first word of "Graphviz", so it can be a program name with args.
7120set dummy Graphviz; ac_word=$2
7121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 case $GRAPHVIZ in
7127 [\\/]* | ?:[\\/]*)
7128 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7129 ;;
7130 *)
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142done
7143done
7144IFS=$as_save_IFS
7145
7146 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7147 ;;
7148esac
7149fi
7150GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7151if test -n "$GRAPHVIZ"; then
7152 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7153echo "${ECHO_T}$GRAPHVIZ" >&6; }
7154else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157fi
7158
7159
7160if test "$GRAPHVIZ" != "echo Graphviz" ; then
7161
7162cat >>confdefs.h <<\_ACEOF
7163#define HAVE_GRAPHVIZ 1
7164_ACEOF
7165
Jeff Cohen28783c32007-01-12 18:22:38 +00007166 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007167 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7168 fi
7169
7170cat >>confdefs.h <<_ACEOF
7171#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7172_ACEOF
7173
7174fi
7175# Extract the first word of "dot", so it can be a program name with args.
7176set dummy dot; ac_word=$2
7177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179if test "${ac_cv_path_DOT+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182 case $DOT in
7183 [\\/]* | ?:[\\/]*)
7184 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7185 ;;
7186 *)
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198done
7199done
7200IFS=$as_save_IFS
7201
7202 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7203 ;;
7204esac
7205fi
7206DOT=$ac_cv_path_DOT
7207if test -n "$DOT"; then
7208 { echo "$as_me:$LINENO: result: $DOT" >&5
7209echo "${ECHO_T}$DOT" >&6; }
7210else
7211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
7213fi
7214
7215
7216if test "$DOT" != "echo dot" ; then
7217
7218cat >>confdefs.h <<\_ACEOF
7219#define HAVE_DOT 1
7220_ACEOF
7221
Jeff Cohen28783c32007-01-12 18:22:38 +00007222 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007223 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7224 fi
7225
7226cat >>confdefs.h <<_ACEOF
7227#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7228_ACEOF
7229
7230fi
7231for ac_prog in gv gsview32
7232do
7233 # Extract the first word of "$ac_prog", so it can be a program name with args.
7234set dummy $ac_prog; ac_word=$2
7235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237if test "${ac_cv_path_GV+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240 case $GV in
7241 [\\/]* | ?:[\\/]*)
7242 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7243 ;;
7244 *)
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256done
7257done
7258IFS=$as_save_IFS
7259
7260 ;;
7261esac
7262fi
7263GV=$ac_cv_path_GV
7264if test -n "$GV"; then
7265 { echo "$as_me:$LINENO: result: $GV" >&5
7266echo "${ECHO_T}$GV" >&6; }
7267else
7268 { echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6; }
7270fi
7271
7272
7273 test -n "$GV" && break
7274done
7275test -n "$GV" || GV="echo gv"
7276
7277if test "$GV" != "echo gv" ; then
7278
7279cat >>confdefs.h <<\_ACEOF
7280#define HAVE_GV 1
7281_ACEOF
7282
Jeff Cohen28783c32007-01-12 18:22:38 +00007283 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007284 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7285 fi
7286
7287cat >>confdefs.h <<_ACEOF
7288#define LLVM_PATH_GV "$GV${EXEEXT}"
7289_ACEOF
7290
7291fi
7292# Extract the first word of "dotty", so it can be a program name with args.
7293set dummy dotty; ac_word=$2
7294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296if test "${ac_cv_path_DOTTY+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299 case $DOTTY in
7300 [\\/]* | ?:[\\/]*)
7301 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7302 ;;
7303 *)
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315done
7316done
7317IFS=$as_save_IFS
7318
7319 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7320 ;;
7321esac
7322fi
7323DOTTY=$ac_cv_path_DOTTY
7324if test -n "$DOTTY"; then
7325 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7326echo "${ECHO_T}$DOTTY" >&6; }
7327else
7328 { echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6; }
7330fi
7331
7332
7333if test "$DOTTY" != "echo dotty" ; then
7334
7335cat >>confdefs.h <<\_ACEOF
7336#define HAVE_DOTTY 1
7337_ACEOF
7338
Jeff Cohen28783c32007-01-12 18:22:38 +00007339 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007340 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7341 fi
7342
7343cat >>confdefs.h <<_ACEOF
7344#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7345_ACEOF
7346
7347fi
7348
7349
7350# Extract the first word of "perl", so it can be a program name with args.
7351set dummy perl; ac_word=$2
7352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7354if test "${ac_cv_path_PERL+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356else
7357 case $PERL in
7358 [\\/]* | ?:[\\/]*)
7359 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7360 ;;
7361 *)
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373done
7374done
7375IFS=$as_save_IFS
7376
7377 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7378 ;;
7379esac
7380fi
7381PERL=$ac_cv_path_PERL
7382if test -n "$PERL"; then
7383 { echo "$as_me:$LINENO: result: $PERL" >&5
7384echo "${ECHO_T}$PERL" >&6; }
7385else
7386 { echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6; }
7388fi
7389
7390
7391if test "$PERL" != "none"; then
7392 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7393echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7394 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7395 { echo "$as_me:$LINENO: result: yes" >&5
7396echo "${ECHO_T}yes" >&6; }
7397 else
7398 PERL=none
7399 { echo "$as_me:$LINENO: result: not found" >&5
7400echo "${ECHO_T}not found" >&6; }
7401 fi
7402fi
7403
7404
7405if test x"$PERL" = xnone; then
7406 HAVE_PERL=0
7407
Reid Spencer59807fa2007-05-17 18:11:03 +00007408 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7409echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7410 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007411else
7412 HAVE_PERL=1
7413
7414fi
7415
7416# Find a good install program. We prefer a C program (faster),
7417# so one script is as good as another. But avoid the broken or
7418# incompatible versions:
7419# SysV /etc/install, /usr/sbin/install
7420# SunOS /usr/etc/install
7421# IRIX /sbin/install
7422# AIX /bin/install
7423# AmigaOS /C/install, which installs bootblocks on floppy discs
7424# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7425# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7426# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7427# OS/2's system install, which has a completely different semantic
7428# ./install, which can be erroneously created by make from ./install.sh.
7429{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7430echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7431if test -z "$INSTALL"; then
7432if test "${ac_cv_path_install+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 # Account for people who put trailing slashes in PATH elements.
7441case $as_dir/ in
7442 ./ | .// | /cC/* | \
7443 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7444 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7445 /usr/ucb/* ) ;;
7446 *)
7447 # OSF1 and SCO ODT 3.0 have their own names for install.
7448 # Don't use installbsd from OSF since it installs stuff as root
7449 # by default.
7450 for ac_prog in ginstall scoinst install; do
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7453 if test $ac_prog = install &&
7454 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7455 # AIX install. It has an incompatible calling convention.
7456 :
7457 elif test $ac_prog = install &&
7458 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7459 # program-specific install script used by HP pwplus--don't use.
7460 :
7461 else
7462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7463 break 3
7464 fi
7465 fi
7466 done
7467 done
7468 ;;
7469esac
7470done
7471IFS=$as_save_IFS
7472
7473
7474fi
7475 if test "${ac_cv_path_install+set}" = set; then
7476 INSTALL=$ac_cv_path_install
7477 else
7478 # As a last resort, use the slow shell script. Don't cache a
7479 # value for INSTALL within a source directory, because that will
7480 # break other packages using the cache if that directory is
7481 # removed, or if the value is a relative name.
7482 INSTALL=$ac_install_sh
7483 fi
7484fi
7485{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7486echo "${ECHO_T}$INSTALL" >&6; }
7487
7488# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7489# It thinks the first close brace ends the variable substitution.
7490test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7491
7492test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7493
7494test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7495
7496
7497# Extract the first word of "bzip2", so it can be a program name with args.
7498set dummy bzip2; ac_word=$2
7499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501if test "${ac_cv_path_BZIP2+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504 case $BZIP2 in
7505 [\\/]* | ?:[\\/]*)
7506 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7507 ;;
7508 *)
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520done
7521done
7522IFS=$as_save_IFS
7523
7524 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7525 ;;
7526esac
7527fi
7528BZIP2=$ac_cv_path_BZIP2
7529if test -n "$BZIP2"; then
7530 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7531echo "${ECHO_T}$BZIP2" >&6; }
7532else
7533 { echo "$as_me:$LINENO: result: no" >&5
7534echo "${ECHO_T}no" >&6; }
7535fi
7536
7537
7538# Extract the first word of "doxygen", so it can be a program name with args.
7539set dummy doxygen; ac_word=$2
7540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542if test "${ac_cv_path_DOXYGEN+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544else
7545 case $DOXYGEN in
7546 [\\/]* | ?:[\\/]*)
7547 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7548 ;;
7549 *)
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551for as_dir in $PATH
7552do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561done
7562done
7563IFS=$as_save_IFS
7564
7565 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7566 ;;
7567esac
7568fi
7569DOXYGEN=$ac_cv_path_DOXYGEN
7570if test -n "$DOXYGEN"; then
7571 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7572echo "${ECHO_T}$DOXYGEN" >&6; }
7573else
7574 { echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6; }
7576fi
7577
7578
Reid Spencera773bd52006-08-04 18:18:08 +00007579# Extract the first word of "groff", so it can be a program name with args.
7580set dummy groff; ac_word=$2
7581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7583if test "${ac_cv_path_GROFF+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586 case $GROFF in
7587 [\\/]* | ?:[\\/]*)
7588 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7589 ;;
7590 *)
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602done
7603done
7604IFS=$as_save_IFS
7605
7606 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7607 ;;
7608esac
7609fi
7610GROFF=$ac_cv_path_GROFF
7611if test -n "$GROFF"; then
7612 { echo "$as_me:$LINENO: result: $GROFF" >&5
7613echo "${ECHO_T}$GROFF" >&6; }
7614else
7615 { echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6; }
7617fi
7618
7619
7620# Extract the first word of "gzip", so it can be a program name with args.
7621set dummy gzip; ac_word=$2
7622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624if test "${ac_cv_path_GZIP+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 case $GZIP in
7628 [\\/]* | ?:[\\/]*)
7629 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7630 ;;
7631 *)
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643done
7644done
7645IFS=$as_save_IFS
7646
7647 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7648 ;;
7649esac
7650fi
7651GZIP=$ac_cv_path_GZIP
7652if test -n "$GZIP"; then
7653 { echo "$as_me:$LINENO: result: $GZIP" >&5
7654echo "${ECHO_T}$GZIP" >&6; }
7655else
7656 { echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6; }
7658fi
7659
7660
7661# Extract the first word of "pod2html", so it can be a program name with args.
7662set dummy pod2html; ac_word=$2
7663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665if test "${ac_cv_path_POD2HTML+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 case $POD2HTML in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7671 ;;
7672 *)
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686IFS=$as_save_IFS
7687
7688 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7689 ;;
7690esac
7691fi
7692POD2HTML=$ac_cv_path_POD2HTML
7693if test -n "$POD2HTML"; then
7694 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7695echo "${ECHO_T}$POD2HTML" >&6; }
7696else
7697 { echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6; }
7699fi
7700
7701
7702# Extract the first word of "pod2man", so it can be a program name with args.
7703set dummy pod2man; ac_word=$2
7704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706if test "${ac_cv_path_POD2MAN+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else
7709 case $POD2MAN in
7710 [\\/]* | ?:[\\/]*)
7711 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7712 ;;
7713 *)
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725done
7726done
7727IFS=$as_save_IFS
7728
7729 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7730 ;;
7731esac
7732fi
7733POD2MAN=$ac_cv_path_POD2MAN
7734if test -n "$POD2MAN"; then
7735 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7736echo "${ECHO_T}$POD2MAN" >&6; }
7737else
7738 { echo "$as_me:$LINENO: result: no" >&5
7739echo "${ECHO_T}no" >&6; }
7740fi
7741
7742
7743# Extract the first word of "runtest", so it can be a program name with args.
7744set dummy runtest; ac_word=$2
7745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747if test "${ac_cv_path_RUNTEST+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750 case $RUNTEST in
7751 [\\/]* | ?:[\\/]*)
7752 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7753 ;;
7754 *)
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766done
7767done
7768IFS=$as_save_IFS
7769
7770 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7771 ;;
7772esac
7773fi
7774RUNTEST=$ac_cv_path_RUNTEST
7775if test -n "$RUNTEST"; then
7776 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7777echo "${ECHO_T}$RUNTEST" >&6; }
7778else
7779 { echo "$as_me:$LINENO: result: no" >&5
7780echo "${ECHO_T}no" >&6; }
7781fi
7782
7783
7784
7785no_itcl=true
7786{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7787echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7788
7789# Check whether --with-tclinclude was given.
7790if test "${with_tclinclude+set}" = set; then
7791 withval=$with_tclinclude; with_tclinclude=${withval}
7792else
7793 with_tclinclude=''
7794fi
7795
7796if test "${ac_cv_path_tclsh+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799
7800if test x"${with_tclinclude}" != x ; then
7801 if test -f ${with_tclinclude}/tclsh ; then
7802 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7803 elif test -f ${with_tclinclude}/src/tclsh ; then
7804 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7805 else
7806 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7807echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7808 { (exit 1); exit 1; }; }
7809 fi
7810fi
7811
7812if test x"${ac_cv_path_tclsh}" = x ; then
7813 { echo "$as_me:$LINENO: result: none" >&5
7814echo "${ECHO_T}none" >&6; }
7815 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
7816do
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818set dummy $ac_prog; ac_word=$2
7819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7821if test "${ac_cv_path_TCLSH+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824 case $TCLSH in
7825 [\\/]* | ?:[\\/]*)
7826 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7827 ;;
7828 *)
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840done
7841done
7842IFS=$as_save_IFS
7843
7844 ;;
7845esac
7846fi
7847TCLSH=$ac_cv_path_TCLSH
7848if test -n "$TCLSH"; then
7849 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7850echo "${ECHO_T}$TCLSH" >&6; }
7851else
7852 { echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6; }
7854fi
7855
7856
7857 test -n "$TCLSH" && break
7858done
7859
7860 if test x"${TCLSH}" = x ; then
7861 ac_cv_path_tclsh='';
7862 else
7863 ac_cv_path_tclsh="${TCLSH}";
7864 fi
7865else
7866 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7867echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7868 TCLSH="${ac_cv_path_tclsh}"
7869
7870fi
7871
7872fi
7873
7874# Extract the first word of "zip", so it can be a program name with args.
7875set dummy zip; ac_word=$2
7876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7878if test "${ac_cv_path_ZIP+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881 case $ZIP in
7882 [\\/]* | ?:[\\/]*)
7883 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7884 ;;
7885 *)
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7893 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7896 fi
7897done
7898done
7899IFS=$as_save_IFS
7900
7901 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7902 ;;
7903esac
7904fi
7905ZIP=$ac_cv_path_ZIP
7906if test -n "$ZIP"; then
7907 { echo "$as_me:$LINENO: result: $ZIP" >&5
7908echo "${ECHO_T}$ZIP" >&6; }
7909else
7910 { echo "$as_me:$LINENO: result: no" >&5
7911echo "${ECHO_T}no" >&6; }
7912fi
7913
7914
7915
7916{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7917echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7918if test "${llvm_cv_link_use_r+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921 ac_ext=c
7922ac_cpp='$CPP $CPPFLAGS'
7923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927 oldcflags="$CFLAGS"
7928 CFLAGS="$CFLAGS -Wl,-R."
7929 cat >conftest.$ac_ext <<_ACEOF
7930/* confdefs.h. */
7931_ACEOF
7932cat confdefs.h >>conftest.$ac_ext
7933cat >>conftest.$ac_ext <<_ACEOF
7934/* end confdefs.h. */
7935
7936int
7937main ()
7938{
7939int main() { return 0; }
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext conftest$ac_exeext
7945if { (ac_try="$ac_link"
7946case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_link") 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962esac
7963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 llvm_cv_link_use_r=yes
7979else
7980 echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 llvm_cv_link_use_r=no
7984fi
7985
7986rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 CFLAGS="$oldcflags"
7989 ac_ext=c
7990ac_cpp='$CPP $CPPFLAGS'
7991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995
7996fi
7997{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7998echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7999if test "$llvm_cv_link_use_r" = yes ; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define HAVE_LINK_R 1
8003_ACEOF
8004
8005 fi
8006
8007
8008
8009
8010{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8011echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8012if test "${ac_cv_c_const+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 cat >conftest.$ac_ext <<_ACEOF
8016/* confdefs.h. */
8017_ACEOF
8018cat confdefs.h >>conftest.$ac_ext
8019cat >>conftest.$ac_ext <<_ACEOF
8020/* end confdefs.h. */
8021
8022int
8023main ()
8024{
8025/* FIXME: Include the comments suggested by Paul. */
8026#ifndef __cplusplus
8027 /* Ultrix mips cc rejects this. */
8028 typedef int charset[2];
8029 const charset x;
8030 /* SunOS 4.1.1 cc rejects this. */
8031 char const *const *ccp;
8032 char **p;
8033 /* NEC SVR4.0.2 mips cc rejects this. */
8034 struct point {int x, y;};
8035 static struct point const zero = {0,0};
8036 /* AIX XL C 1.02.0.0 rejects this.
8037 It does not let you subtract one const X* pointer from another in
8038 an arm of an if-expression whose if-part is not a constant
8039 expression */
8040 const char *g = "string";
8041 ccp = &g + (g ? g-g : 0);
8042 /* HPUX 7.0 cc rejects these. */
8043 ++ccp;
8044 p = (char**) ccp;
8045 ccp = (char const *const *) p;
8046 { /* SCO 3.2v4 cc rejects this. */
8047 char *t;
8048 char const *s = 0 ? (char *) 0 : (char const *) 0;
8049
8050 *t++ = 0;
8051 if (s) return 0;
8052 }
8053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8054 int x[] = {25, 17};
8055 const int *foo = &x[0];
8056 ++foo;
8057 }
8058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8059 typedef const int *iptr;
8060 iptr p = 0;
8061 ++p;
8062 }
8063 { /* AIX XL C 1.02.0.0 rejects this saying
8064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8065 struct s { int j; const int *ap[3]; };
8066 struct s *b; b->j = 5;
8067 }
8068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8069 const int foo = 10;
8070 if (!foo) return 0;
8071 }
8072 return !x[0] && !zero.x;
8073#endif
8074
8075 ;
8076 return 0;
8077}
8078_ACEOF
8079rm -f conftest.$ac_objext
8080if { (ac_try="$ac_compile"
8081case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084esac
8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097esac
8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_cv_c_const=yes
8114else
8115 echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ac_cv_c_const=no
8119fi
8120
8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122fi
8123{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8124echo "${ECHO_T}$ac_cv_c_const" >&6; }
8125if test $ac_cv_c_const = no; then
8126
8127cat >>confdefs.h <<\_ACEOF
8128#define const
8129_ACEOF
8130
8131fi
8132
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008133
8134
8135
8136
8137
8138ac_header_dirent=no
8139for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8140 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008141{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8142echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146 cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
8152#include <sys/types.h>
8153#include <$ac_hdr>
8154
8155int
8156main ()
8157{
8158if ((DIR *) 0)
8159return 0;
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008165if { (ac_try="$ac_compile"
8166case "(($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_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182esac
8183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192esac
8193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 eval "$as_ac_Header=yes"
8199else
8200 echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
Reid Spencera773bd52006-08-04 18:18:08 +00008203 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008204fi
Reid Spencera773bd52006-08-04 18:18:08 +00008205
8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008207fi
Reid Spencera773bd52006-08-04 18:18:08 +00008208ac_res=`eval echo '${'$as_ac_Header'}'`
8209 { echo "$as_me:$LINENO: result: $ac_res" >&5
8210echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008211if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212 cat >>confdefs.h <<_ACEOF
8213#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8214_ACEOF
8215
8216ac_header_dirent=$ac_hdr; break
8217fi
8218
8219done
8220# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8221if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8223echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008224if test "${ac_cv_search_opendir+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008228cat >conftest.$ac_ext <<_ACEOF
8229/* confdefs.h. */
8230_ACEOF
8231cat confdefs.h >>conftest.$ac_ext
8232cat >>conftest.$ac_ext <<_ACEOF
8233/* end confdefs.h. */
8234
Reid Spencera773bd52006-08-04 18:18:08 +00008235/* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008238#ifdef __cplusplus
8239extern "C"
8240#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008241char opendir ();
8242int
8243main ()
8244{
Reid Spencera773bd52006-08-04 18:18:08 +00008245return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008246 ;
8247 return 0;
8248}
8249_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008250for ac_lib in '' dir; do
8251 if test -z "$ac_lib"; then
8252 ac_res="none required"
8253 else
8254 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008256 fi
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258if { (ac_try="$ac_link"
8259case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8262esac
8263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8272 { (case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275esac
8276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008282 { (case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285esac
8286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008291 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008292else
8293 echo "$as_me: failed program was:" >&5
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008296
8297fi
8298
Reid Spencera773bd52006-08-04 18:18:08 +00008299rm -f core conftest.err conftest.$ac_objext \
8300 conftest$ac_exeext
8301 if test "${ac_cv_search_opendir+set}" = set; then
8302 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008303fi
John Criswell7a73b802003-06-30 21:59:07 +00008304done
Reid Spencera773bd52006-08-04 18:18:08 +00008305if test "${ac_cv_search_opendir+set}" = set; then
8306 :
8307else
8308 ac_cv_search_opendir=no
8309fi
8310rm conftest.$ac_ext
8311LIBS=$ac_func_search_save_LIBS
8312fi
8313{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8314echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8315ac_res=$ac_cv_search_opendir
8316if test "$ac_res" != no; then
8317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008318
Reid Spencera773bd52006-08-04 18:18:08 +00008319fi
8320
8321else
8322 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8323echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8324if test "${ac_cv_search_opendir+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327 ac_func_search_save_LIBS=$LIBS
8328cat >conftest.$ac_ext <<_ACEOF
8329/* confdefs.h. */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h. */
8334
8335/* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply. */
8338#ifdef __cplusplus
8339extern "C"
8340#endif
8341char opendir ();
8342int
8343main ()
8344{
8345return opendir ();
8346 ;
8347 return 0;
8348}
8349_ACEOF
8350for ac_lib in '' x; do
8351 if test -z "$ac_lib"; then
8352 ac_res="none required"
8353 else
8354 ac_res=-l$ac_lib
8355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8356 fi
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358if { (ac_try="$ac_link"
8359case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_link") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_search_opendir=$ac_res
8392else
8393 echo "$as_me: failed program was:" >&5
8394sed 's/^/| /' conftest.$ac_ext >&5
8395
8396
8397fi
8398
8399rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext
8401 if test "${ac_cv_search_opendir+set}" = set; then
8402 break
8403fi
8404done
8405if test "${ac_cv_search_opendir+set}" = set; then
8406 :
8407else
8408 ac_cv_search_opendir=no
8409fi
8410rm conftest.$ac_ext
8411LIBS=$ac_func_search_save_LIBS
8412fi
8413{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8414echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8415ac_res=$ac_cv_search_opendir
8416if test "$ac_res" != no; then
8417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8418
8419fi
8420
8421fi
John Criswell7a73b802003-06-30 21:59:07 +00008422
8423
8424for ac_header in dlfcn.h
8425do
8426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008431 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008432fi
Reid Spencera773bd52006-08-04 18:18:08 +00008433ac_res=`eval echo '${'$as_ac_Header'}'`
8434 { echo "$as_me:$LINENO: result: $ac_res" >&5
8435echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008436else
Brian Gaeke0a621332004-09-08 20:38:05 +00008437 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008438{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008440cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008446$ac_includes_default
8447#include <$ac_header>
8448_ACEOF
8449rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008450if { (ac_try="$ac_compile"
8451case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008457 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464 { (case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008474 { (case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008483 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008484else
8485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008486sed 's/^/| /' conftest.$ac_ext >&5
8487
Reid Spencera773bd52006-08-04 18:18:08 +00008488 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008489fi
Reid Spencera773bd52006-08-04 18:18:08 +00008490
8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008494
8495# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008496{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008498cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008499/* confdefs.h. */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h. */
8504#include <$ac_header>
8505_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008506if { (ac_try="$ac_cpp conftest.$ac_ext"
8507case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510esac
8511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } >/dev/null; then
8519 if test -s conftest.err; then
8520 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008522 else
8523 ac_cpp_err=
8524 fi
8525else
8526 ac_cpp_err=yes
8527fi
8528if test -z "$ac_cpp_err"; then
8529 ac_header_preproc=yes
8530else
8531 echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 ac_header_preproc=no
8535fi
Reid Spencera773bd52006-08-04 18:18:08 +00008536
Brian Gaeke0a621332004-09-08 20:38:05 +00008537rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008538{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008540
8541# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8543 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008549 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008550 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8554echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8558echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008563 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008564## ----------------------------------- ##
8565## Report this to llvmbugs@cs.uiuc.edu ##
8566## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008567_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008568 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008569 ;;
8570esac
Reid Spencera773bd52006-08-04 18:18:08 +00008571{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008576 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008577fi
Reid Spencera773bd52006-08-04 18:18:08 +00008578ac_res=`eval echo '${'$as_ac_Header'}'`
8579 { echo "$as_me:$LINENO: result: $ac_res" >&5
8580echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008581
8582fi
John Criswell7a73b802003-06-30 21:59:07 +00008583if test `eval echo '${'$as_ac_Header'}'` = yes; then
8584 cat >>confdefs.h <<_ACEOF
8585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8586_ACEOF
8587
8588fi
8589
8590done
8591
Reid Spencera773bd52006-08-04 18:18:08 +00008592# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008593if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008594 enableval=$enable_ltdl_install;
8595fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008596
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008597
8598
8599
8600if test x"${enable_ltdl_install-no}" != xno; then
8601 INSTALL_LTDL_TRUE=
8602 INSTALL_LTDL_FALSE='#'
8603else
8604 INSTALL_LTDL_TRUE='#'
8605 INSTALL_LTDL_FALSE=
8606fi
8607
8608
8609
8610if test x"${enable_ltdl_convenience-no}" != xno; then
8611 CONVENIENCE_LTDL_TRUE=
8612 CONVENIENCE_LTDL_FALSE='#'
8613else
8614 CONVENIENCE_LTDL_TRUE='#'
8615 CONVENIENCE_LTDL_FALSE=
8616fi
8617
8618
Reid Spencera773bd52006-08-04 18:18:08 +00008619{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8620echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008621library_names_spec=
8622libname_spec='lib$name'
8623soname_spec=
8624shrext_cmds=".so"
8625postinstall_cmds=
8626postuninstall_cmds=
8627finish_cmds=
8628finish_eval=
8629shlibpath_var=
8630shlibpath_overrides_runpath=unknown
8631version_type=none
8632dynamic_linker="$host_os ld.so"
8633sys_lib_dlsearch_path_spec="/lib /usr/lib"
8634if test "$GCC" = yes; then
8635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8637 # if the path contains ";" then we assume it to be the separator
8638 # otherwise default to the standard path separator (i.e. ":") - it is
8639 # assumed that no part of a normal pathname contains ";" but that should
8640 # okay in the real world where ";" in dirpaths is itself problematic.
8641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8642 else
8643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8644 fi
8645else
8646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8647fi
8648need_lib_prefix=unknown
8649hardcode_into_libs=no
8650
8651# when you set need_version to no, make sure it does not cause -set_version
8652# flags to be left without arguments
8653need_version=unknown
8654
8655case $host_os in
8656aix3*)
8657 version_type=linux
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8659 shlibpath_var=LIBPATH
8660
8661 # AIX 3 has no versioning support, so we append a major version to the name.
8662 soname_spec='${libname}${release}${shared_ext}$major'
8663 ;;
8664
8665aix4* | aix5*)
8666 version_type=linux
8667 need_lib_prefix=no
8668 need_version=no
8669 hardcode_into_libs=yes
8670 if test "$host_cpu" = ia64; then
8671 # AIX 5 supports IA64
8672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 else
8675 # With GCC up to 2.95.x, collect2 would create an import file
8676 # for dependence libraries. The import file would start with
8677 # the line `#! .'. This would cause the generated library to
8678 # depend on `.', always an invalid library. This was fixed in
8679 # development snapshots of GCC prior to 3.0.
8680 case $host_os in
8681 aix4 | aix4.[01] | aix4.[01].*)
8682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8683 echo ' yes '
8684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8685 :
8686 else
8687 can_build_shared=no
8688 fi
8689 ;;
8690 esac
8691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8692 # soname into executable. Probably we can add versioning support to
8693 # collect2, so additional links can be useful in future.
8694 if test "$aix_use_runtimelinking" = yes; then
8695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8696 # instead of lib<name>.a to let people know that these are not
8697 # typical AIX shared libraries.
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 else
8700 # We preserve .a as extension for shared libraries through AIX4.2
8701 # and later when we are not doing run time linking.
8702 library_names_spec='${libname}${release}.a $libname.a'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 fi
8705 shlibpath_var=LIBPATH
8706 fi
8707 ;;
8708
8709amigaos*)
8710 library_names_spec='$libname.ixlibrary $libname.a'
8711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8712 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'
8713 ;;
8714
8715beos*)
8716 library_names_spec='${libname}${shared_ext}'
8717 dynamic_linker="$host_os ld.so"
8718 shlibpath_var=LIBRARY_PATH
8719 ;;
8720
8721bsdi[45]*)
8722 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8730 # the default ld.so.conf also contains /usr/contrib/lib and
8731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8732 # libtool to hard-code these into programs
8733 ;;
8734
8735cygwin* | mingw* | pw32*)
8736 version_type=windows
8737 shrext_cmds=".dll"
8738 need_version=no
8739 need_lib_prefix=no
8740
8741 case $GCC,$host_os in
8742 yes,cygwin* | yes,mingw* | yes,pw32*)
8743 library_names_spec='$libname.dll.a'
8744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8745 postinstall_cmds='base_file=`basename \${file}`~
8746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8747 dldir=$destdir/`dirname \$dlpath`~
8748 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008749 $install_prog $dir/$dlname \$dldir/$dlname~
8750 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8752 dlpath=$dir/\$dldll~
8753 $rm \$dlpath'
8754 shlibpath_overrides_runpath=yes
8755
8756 case $host_os in
8757 cygwin*)
8758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8761 ;;
8762 mingw*)
8763 # MinGW DLLs use traditional 'lib' prefix
8764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8767 # It is most probably a Windows format PATH printed by
8768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8769 # path with ; separators, and with drive letters. We can handle the
8770 # drive letters (cygwin fileutils understands them), so leave them,
8771 # especially as we might pass files found there to a mingw objdump,
8772 # which wouldn't understand a cygwinified path. Ahh.
8773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8774 else
8775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8776 fi
8777 ;;
8778 pw32*)
8779 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008780 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 +00008781 ;;
8782 esac
8783 ;;
8784
8785 *)
8786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8787 ;;
8788 esac
8789 dynamic_linker='Win32 ld.exe'
8790 # FIXME: first we should search . and the directory the executable is in
8791 shlibpath_var=PATH
8792 ;;
8793
8794darwin* | rhapsody*)
8795 dynamic_linker="$host_os dyld"
8796 version_type=darwin
8797 need_lib_prefix=no
8798 need_version=no
8799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8800 soname_spec='${libname}${release}${major}$shared_ext'
8801 shlibpath_overrides_runpath=yes
8802 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008803 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8805 if test "$GCC" = yes; then
8806 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"`
8807 else
8808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8809 fi
8810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8811 ;;
8812
8813dgux*)
8814 version_type=linux
8815 need_lib_prefix=no
8816 need_version=no
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 ;;
8821
8822freebsd1*)
8823 dynamic_linker=no
8824 ;;
8825
8826kfreebsd*-gnu)
8827 version_type=linux
8828 need_lib_prefix=no
8829 need_version=no
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=no
8834 hardcode_into_libs=yes
8835 dynamic_linker='GNU ld.so'
8836 ;;
8837
Reid Spencera773bd52006-08-04 18:18:08 +00008838freebsd* | dragonfly*)
8839 # DragonFly does not have aout. When/if they implement a new
8840 # versioning mechanism, adjust this.
8841 if test -x /usr/bin/objformat; then
8842 objformat=`/usr/bin/objformat`
8843 else
8844 case $host_os in
8845 freebsd[123]*) objformat=aout ;;
8846 *) objformat=elf ;;
8847 esac
8848 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008849 version_type=freebsd-$objformat
8850 case $version_type in
8851 freebsd-elf*)
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8853 need_version=no
8854 need_lib_prefix=no
8855 ;;
8856 freebsd-*)
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8858 need_version=yes
8859 ;;
8860 esac
8861 shlibpath_var=LD_LIBRARY_PATH
8862 case $host_os in
8863 freebsd2*)
8864 shlibpath_overrides_runpath=yes
8865 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008866 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008867 shlibpath_overrides_runpath=yes
8868 hardcode_into_libs=yes
8869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008872 shlibpath_overrides_runpath=no
8873 hardcode_into_libs=yes
8874 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008875 freebsd*) # from 4.6 on
8876 shlibpath_overrides_runpath=yes
8877 hardcode_into_libs=yes
8878 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008879 esac
8880 ;;
8881
8882gnu*)
8883 version_type=linux
8884 need_lib_prefix=no
8885 need_version=no
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 hardcode_into_libs=yes
8890 ;;
8891
8892hpux9* | hpux10* | hpux11*)
8893 # Give a soname corresponding to the major version so that dld.sl refuses to
8894 # link against other versions.
8895 version_type=sunos
8896 need_lib_prefix=no
8897 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008898 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008899 ia64*)
8900 shrext_cmds='.so'
8901 hardcode_into_libs=yes
8902 dynamic_linker="$host_os dld.so"
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 if test "X$HPUX_IA64_MODE" = X32; then
8908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8909 else
8910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8911 fi
8912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8913 ;;
8914 hppa*64*)
8915 shrext_cmds='.sl'
8916 hardcode_into_libs=yes
8917 dynamic_linker="$host_os dld.sl"
8918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8924 ;;
8925 *)
8926 shrext_cmds='.sl'
8927 dynamic_linker="$host_os dld.sl"
8928 shlibpath_var=SHLIB_PATH
8929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 ;;
8933 esac
8934 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8935 postinstall_cmds='chmod 555 $lib'
8936 ;;
8937
Reid Spencera773bd52006-08-04 18:18:08 +00008938interix3*)
8939 version_type=linux
8940 need_lib_prefix=no
8941 need_version=no
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=no
8947 hardcode_into_libs=yes
8948 ;;
8949
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008950irix5* | irix6* | nonstopux*)
8951 case $host_os in
8952 nonstopux*) version_type=nonstopux ;;
8953 *)
8954 if test "$lt_cv_prog_gnu_ld" = yes; then
8955 version_type=linux
8956 else
8957 version_type=irix
8958 fi ;;
8959 esac
8960 need_lib_prefix=no
8961 need_version=no
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8964 case $host_os in
8965 irix5* | nonstopux*)
8966 libsuff= shlibsuff=
8967 ;;
8968 *)
8969 case $LD in # libtool.m4 will add one of these switches to LD
8970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8971 libsuff= shlibsuff= libmagic=32-bit;;
8972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8973 libsuff=32 shlibsuff=N32 libmagic=N32;;
8974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8976 *) libsuff= shlibsuff= libmagic=never-match;;
8977 esac
8978 ;;
8979 esac
8980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8981 shlibpath_overrides_runpath=no
8982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8984 hardcode_into_libs=yes
8985 ;;
8986
8987# No shared lib support for Linux oldld, aout, or coff.
8988linux*oldld* | linux*aout* | linux*coff*)
8989 dynamic_linker=no
8990 ;;
8991
8992# This must be Linux ELF.
8993linux*)
8994 version_type=linux
8995 need_lib_prefix=no
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=no
9002 # This implies no fast_install, which is unacceptable.
9003 # Some rework will be needed to allow for fast_install
9004 # before this can be enabled.
9005 hardcode_into_libs=yes
9006
9007 # Append ld.so.conf contents to the search path
9008 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009009 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 +00009010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9011 fi
9012
9013 # We used to test for /lib/ld.so.1 and disable shared libraries on
9014 # powerpc, because MkLinux only supported shared libraries with the
9015 # GNU dynamic linker. Since this was broken with cross compilers,
9016 # most powerpc-linux boxes support dynamic linking these days and
9017 # people can always --disable-shared, the test was removed, and we
9018 # assume the GNU/Linux dynamic linker is in use.
9019 dynamic_linker='GNU/Linux ld.so'
9020 ;;
9021
9022knetbsd*-gnu)
9023 version_type=linux
9024 need_lib_prefix=no
9025 need_version=no
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 hardcode_into_libs=yes
9031 dynamic_linker='GNU ld.so'
9032 ;;
9033
9034netbsd*)
9035 version_type=sunos
9036 need_lib_prefix=no
9037 need_version=no
9038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9041 dynamic_linker='NetBSD (a.out) ld.so'
9042 else
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 dynamic_linker='NetBSD ld.elf_so'
9046 fi
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 hardcode_into_libs=yes
9050 ;;
9051
9052newsos6)
9053 version_type=linux
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9057 ;;
9058
9059nto-qnx*)
9060 version_type=linux
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 ;;
9068
9069openbsd*)
9070 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009071 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009072 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9074 case $host_os in
9075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9076 *) need_version=no ;;
9077 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9082 case $host_os in
9083 openbsd2.[89] | openbsd2.[89].*)
9084 shlibpath_overrides_runpath=no
9085 ;;
9086 *)
9087 shlibpath_overrides_runpath=yes
9088 ;;
9089 esac
9090 else
9091 shlibpath_overrides_runpath=yes
9092 fi
9093 ;;
9094
9095os2*)
9096 libname_spec='$name'
9097 shrext_cmds=".dll"
9098 need_lib_prefix=no
9099 library_names_spec='$libname${shared_ext} $libname.a'
9100 dynamic_linker='OS/2 ld.exe'
9101 shlibpath_var=LIBPATH
9102 ;;
9103
9104osf3* | osf4* | osf5*)
9105 version_type=osf
9106 need_lib_prefix=no
9107 need_version=no
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9113 ;;
9114
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009115solaris*)
9116 version_type=linux
9117 need_lib_prefix=no
9118 need_version=no
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=yes
9123 hardcode_into_libs=yes
9124 # ldd complains unless libraries are executable
9125 postinstall_cmds='chmod +x $lib'
9126 ;;
9127
9128sunos4*)
9129 version_type=sunos
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9134 if test "$with_gnu_ld" = yes; then
9135 need_lib_prefix=no
9136 fi
9137 need_version=yes
9138 ;;
9139
Reid Spencera773bd52006-08-04 18:18:08 +00009140sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009141 version_type=linux
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 case $host_vendor in
9146 sni)
9147 shlibpath_overrides_runpath=no
9148 need_lib_prefix=no
9149 export_dynamic_flag_spec='${wl}-Blargedynsym'
9150 runpath_var=LD_RUN_PATH
9151 ;;
9152 siemens)
9153 need_lib_prefix=no
9154 ;;
9155 motorola)
9156 need_lib_prefix=no
9157 need_version=no
9158 shlibpath_overrides_runpath=no
9159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9160 ;;
9161 esac
9162 ;;
9163
9164sysv4*MP*)
9165 if test -d /usr/nec ;then
9166 version_type=linux
9167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9168 soname_spec='$libname${shared_ext}.$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 fi
9171 ;;
9172
Reid Spencera773bd52006-08-04 18:18:08 +00009173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9174 version_type=freebsd-elf
9175 need_lib_prefix=no
9176 need_version=no
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 hardcode_into_libs=yes
9181 if test "$with_gnu_ld" = yes; then
9182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9183 shlibpath_overrides_runpath=no
9184 else
9185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9186 shlibpath_overrides_runpath=yes
9187 case $host_os in
9188 sco3.2v5*)
9189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9190 ;;
9191 esac
9192 fi
9193 sys_lib_dlsearch_path_spec='/usr/lib'
9194 ;;
9195
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009196uts4*)
9197 version_type=linux
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 ;;
9202
9203*)
9204 dynamic_linker=no
9205 ;;
9206esac
Reid Spencera773bd52006-08-04 18:18:08 +00009207{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9208echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009209test "$dynamic_linker" = no && can_build_shared=no
9210
Reid Spencera773bd52006-08-04 18:18:08 +00009211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9212if test "$GCC" = yes; then
9213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9214fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215
Reid Spencera773bd52006-08-04 18:18:08 +00009216
9217{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9218echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009219if test "${libltdl_cv_shlibext+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221else
9222
9223module=yes
9224eval libltdl_cv_shlibext=$shrext_cmds
9225
9226fi
Reid Spencera773bd52006-08-04 18:18:08 +00009227{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9228echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229if test -n "$libltdl_cv_shlibext"; then
9230
9231cat >>confdefs.h <<_ACEOF
9232#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9233_ACEOF
9234
9235fi
9236
9237
Reid Spencera773bd52006-08-04 18:18:08 +00009238{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9239echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009240if test "${libltdl_cv_shlibpath_var+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242else
9243 libltdl_cv_shlibpath_var="$shlibpath_var"
9244fi
Reid Spencera773bd52006-08-04 18:18:08 +00009245{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9246echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009247if test -n "$libltdl_cv_shlibpath_var"; then
9248
9249cat >>confdefs.h <<_ACEOF
9250#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9251_ACEOF
9252
9253fi
9254
9255
Reid Spencera773bd52006-08-04 18:18:08 +00009256{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9257echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258if test "${libltdl_cv_sys_search_path+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9260else
9261 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9262fi
Reid Spencera773bd52006-08-04 18:18:08 +00009263{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9264echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009265if test -n "$libltdl_cv_sys_search_path"; then
9266 sys_search_path=
9267 for dir in $libltdl_cv_sys_search_path; do
9268 if test -z "$sys_search_path"; then
9269 sys_search_path="$dir"
9270 else
9271 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9272 fi
9273 done
9274
9275cat >>confdefs.h <<_ACEOF
9276#define LTDL_SYSSEARCHPATH "$sys_search_path"
9277_ACEOF
9278
9279fi
9280
Reid Spencera773bd52006-08-04 18:18:08 +00009281{ echo "$as_me:$LINENO: checking for objdir" >&5
9282echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009283if test "${libltdl_cv_objdir+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286 libltdl_cv_objdir="$objdir"
9287 if test -n "$objdir"; then
9288 :
9289 else
9290 rm -f .libs 2>/dev/null
9291 mkdir .libs 2>/dev/null
9292 if test -d .libs; then
9293 libltdl_cv_objdir=.libs
9294 else
9295 # MS-DOS does not allow filenames that begin with a dot.
9296 libltdl_cv_objdir=_libs
9297 fi
9298 rmdir .libs 2>/dev/null
9299 fi
9300
9301fi
Reid Spencera773bd52006-08-04 18:18:08 +00009302{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9303echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009304
9305cat >>confdefs.h <<_ACEOF
9306#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9307_ACEOF
9308
9309
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310
9311
9312
9313
9314# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009315{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9316echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9319else
9320
9321# These are sane defaults that work on at least a few old systems.
9322# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9323
9324# Character class describing NM global symbol codes.
9325symcode='[BCDEGRST]'
9326
9327# Regexp to match symbols that can be accessed directly from C.
9328sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9329
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009330# Transform an extracted symbol line into a proper C declaration
9331lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9332
9333# Transform an extracted symbol line into symbol name and symbol address
9334lt_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'"
9335
9336# Define system-specific variables.
9337case $host_os in
9338aix*)
9339 symcode='[BCDT]'
9340 ;;
9341cygwin* | mingw* | pw32*)
9342 symcode='[ABCDGISTW]'
9343 ;;
9344hpux*) # Its linker distinguishes data from code symbols
9345 if test "$host_cpu" = ia64; then
9346 symcode='[ABCDEGRST]'
9347 fi
9348 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9349 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'"
9350 ;;
9351linux*)
9352 if test "$host_cpu" = ia64; then
9353 symcode='[ABCDGIRSTW]'
9354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9355 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'"
9356 fi
9357 ;;
9358irix* | nonstopux*)
9359 symcode='[BCDEGRST]'
9360 ;;
9361osf*)
9362 symcode='[BCDEGQRST]'
9363 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009364solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009365 symcode='[BDRT]'
9366 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009367sco3.2v5*)
9368 symcode='[DT]'
9369 ;;
9370sysv4.2uw2*)
9371 symcode='[DT]'
9372 ;;
9373sysv5* | sco5v6* | unixware* | OpenUNIX*)
9374 symcode='[ABDT]'
9375 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009376sysv4)
9377 symcode='[DFNSTU]'
9378 ;;
9379esac
9380
9381# Handle CRLF in mingw tool chain
9382opt_cr=
9383case $build_os in
9384mingw*)
9385 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9386 ;;
9387esac
9388
9389# If we're using GNU nm, then use its standard symbol codes.
9390case `$NM -V 2>&1` in
9391*GNU* | *'with BFD'*)
9392 symcode='[ABCDGIRSTW]' ;;
9393esac
9394
9395# Try without a prefix undercore, then with it.
9396for ac_symprfx in "" "_"; do
9397
Reid Spencera773bd52006-08-04 18:18:08 +00009398 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9399 symxfrm="\\1 $ac_symprfx\\2 \\2"
9400
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009402 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 +00009403
9404 # Check to see that the pipe works correctly.
9405 pipe_works=no
9406
9407 rm -f conftest*
9408 cat > conftest.$ac_ext <<EOF
9409#ifdef __cplusplus
9410extern "C" {
9411#endif
9412char nm_test_var;
9413void nm_test_func(){}
9414#ifdef __cplusplus
9415}
9416#endif
9417int main(){nm_test_var='a';nm_test_func();return(0);}
9418EOF
9419
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; then
9425 # Now try to grab the symbols.
9426 nlist=conftest.nm
9427 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9428 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && test -s "$nlist"; then
9432 # Try sorting and uniquifying the output.
9433 if sort "$nlist" | uniq > "$nlist"T; then
9434 mv -f "$nlist"T "$nlist"
9435 else
9436 rm -f "$nlist"T
9437 fi
9438
9439 # Make sure that we snagged all the symbols we need.
9440 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9441 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9442 cat <<EOF > conftest.$ac_ext
9443#ifdef __cplusplus
9444extern "C" {
9445#endif
9446
9447EOF
9448 # Now generate the symbol file.
9449 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9450
9451 cat <<EOF >> conftest.$ac_ext
9452#if defined (__STDC__) && __STDC__
9453# define lt_ptr_t void *
9454#else
9455# define lt_ptr_t char *
9456# define const
9457#endif
9458
9459/* The mapping between symbol names and symbols. */
9460const struct {
9461 const char *name;
9462 lt_ptr_t address;
9463}
9464lt_preloaded_symbols[] =
9465{
9466EOF
9467 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9468 cat <<\EOF >> conftest.$ac_ext
9469 {0, (lt_ptr_t) 0}
9470};
9471
9472#ifdef __cplusplus
9473}
9474#endif
9475EOF
9476 # Now try linking the two files.
9477 mv conftest.$ac_objext conftstm.$ac_objext
9478 lt_save_LIBS="$LIBS"
9479 lt_save_CFLAGS="$CFLAGS"
9480 LIBS="conftstm.$ac_objext"
9481 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9487 pipe_works=yes
9488 fi
9489 LIBS="$lt_save_LIBS"
9490 CFLAGS="$lt_save_CFLAGS"
9491 else
9492 echo "cannot find nm_test_func in $nlist" >&5
9493 fi
9494 else
9495 echo "cannot find nm_test_var in $nlist" >&5
9496 fi
9497 else
9498 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9499 fi
9500 else
9501 echo "$progname: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9503 fi
9504 rm -f conftest* conftst*
9505
9506 # Do not use the global_symbol_pipe unless it works.
9507 if test "$pipe_works" = yes; then
9508 break
9509 else
9510 lt_cv_sys_global_symbol_pipe=
9511 fi
9512done
9513
9514fi
9515
9516if test -z "$lt_cv_sys_global_symbol_pipe"; then
9517 lt_cv_sys_global_symbol_to_cdecl=
9518fi
9519if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009520 { echo "$as_me:$LINENO: result: failed" >&5
9521echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522else
Reid Spencera773bd52006-08-04 18:18:08 +00009523 { echo "$as_me:$LINENO: result: ok" >&5
9524echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525fi
9526
9527
Reid Spencera773bd52006-08-04 18:18:08 +00009528{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9529echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9534 libltdl_cv_preloaded_symbols=yes
9535 else
9536 libltdl_cv_preloaded_symbols=no
9537 fi
9538
9539fi
Reid Spencera773bd52006-08-04 18:18:08 +00009540{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9541echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9543
9544cat >>confdefs.h <<\_ACEOF
9545#define HAVE_PRELOADED_SYMBOLS 1
9546_ACEOF
9547
9548fi
9549
9550LIBADD_DL=
9551
9552ac_ext=c
9553ac_cpp='$CPP $CPPFLAGS'
9554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557
9558
Reid Spencera773bd52006-08-04 18:18:08 +00009559{ echo "$as_me:$LINENO: checking for shl_load" >&5
9560echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009561if test "${ac_cv_func_shl_load+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564 cat >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/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9572#define shl_load innocuous_shl_load
9573
9574/* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char shl_load (); below.
9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577 <limits.h> exists even on freestanding compilers. */
9578
9579#ifdef __STDC__
9580# include <limits.h>
9581#else
9582# include <assert.h>
9583#endif
9584
9585#undef shl_load
9586
Reid Spencera773bd52006-08-04 18:18:08 +00009587/* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009590#ifdef __cplusplus
9591extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009592#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009593char shl_load ();
9594/* The GNU C library defines this for functions which it implements
9595 to always fail with ENOSYS. Some functions are actually named
9596 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009597#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009598choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009599#endif
9600
9601int
9602main ()
9603{
Reid Spencera773bd52006-08-04 18:18:08 +00009604return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605 ;
9606 return 0;
9607}
9608_ACEOF
9609rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009610if { (ac_try="$ac_link"
9611case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9624 { (case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627esac
9628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009634 { (case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_cv_func_shl_load=yes
9644else
9645 echo "$as_me: failed program was:" >&5
9646sed 's/^/| /' conftest.$ac_ext >&5
9647
Reid Spencera773bd52006-08-04 18:18:08 +00009648 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649fi
Reid Spencera773bd52006-08-04 18:18:08 +00009650
9651rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009652 conftest$ac_exeext conftest.$ac_ext
9653fi
Reid Spencera773bd52006-08-04 18:18:08 +00009654{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9655echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009656if test $ac_cv_func_shl_load = yes; then
9657
9658cat >>confdefs.h <<\_ACEOF
9659#define HAVE_SHL_LOAD 1
9660_ACEOF
9661
9662else
Reid Spencera773bd52006-08-04 18:18:08 +00009663 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9664echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009665if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668 ac_check_lib_save_LIBS=$LIBS
9669LIBS="-ldld $LIBS"
9670cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h. */
9676
Reid Spencera773bd52006-08-04 18:18:08 +00009677/* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680#ifdef __cplusplus
9681extern "C"
9682#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683char shl_load ();
9684int
9685main ()
9686{
Reid Spencera773bd52006-08-04 18:18:08 +00009687return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 ;
9689 return 0;
9690}
9691_ACEOF
9692rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009693if { (ac_try="$ac_link"
9694case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697esac
9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710esac
9711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_lib_dld_shl_load=yes
9727else
9728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
Reid Spencera773bd52006-08-04 18:18:08 +00009731 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732fi
Reid Spencera773bd52006-08-04 18:18:08 +00009733
9734rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735 conftest$ac_exeext conftest.$ac_ext
9736LIBS=$ac_check_lib_save_LIBS
9737fi
Reid Spencera773bd52006-08-04 18:18:08 +00009738{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9739echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740if test $ac_cv_lib_dld_shl_load = yes; then
9741
9742cat >>confdefs.h <<\_ACEOF
9743#define HAVE_SHL_LOAD 1
9744_ACEOF
9745
9746 LIBADD_DL="$LIBADD_DL -ldld"
9747else
Reid Spencera773bd52006-08-04 18:18:08 +00009748 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753 ac_check_lib_save_LIBS=$LIBS
9754LIBS="-ldl $LIBS"
9755cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
9761
Reid Spencera773bd52006-08-04 18:18:08 +00009762/* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765#ifdef __cplusplus
9766extern "C"
9767#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768char dlopen ();
9769int
9770main ()
9771{
Reid Spencera773bd52006-08-04 18:18:08 +00009772return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773 ;
9774 return 0;
9775}
9776_ACEOF
9777rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009778if { (ac_try="$ac_link"
9779case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782esac
9783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9792 { (case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009802 { (case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9805esac
9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_lib_dl_dlopen=yes
9812else
9813 echo "$as_me: failed program was:" >&5
9814sed 's/^/| /' conftest.$ac_ext >&5
9815
Reid Spencera773bd52006-08-04 18:18:08 +00009816 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817fi
Reid Spencera773bd52006-08-04 18:18:08 +00009818
9819rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820 conftest$ac_exeext conftest.$ac_ext
9821LIBS=$ac_check_lib_save_LIBS
9822fi
Reid Spencera773bd52006-08-04 18:18:08 +00009823{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9824echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825if test $ac_cv_lib_dl_dlopen = yes; then
9826
9827cat >>confdefs.h <<\_ACEOF
9828#define HAVE_LIBDL 1
9829_ACEOF
9830
9831 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9832else
9833 cat >conftest.$ac_ext <<_ACEOF
9834/* confdefs.h. */
9835_ACEOF
9836cat confdefs.h >>conftest.$ac_ext
9837cat >>conftest.$ac_ext <<_ACEOF
9838/* end confdefs.h. */
9839#if HAVE_DLFCN_H
9840# include <dlfcn.h>
9841#endif
9842
9843int
9844main ()
9845{
9846dlopen(0, 0);
9847 ;
9848 return 0;
9849}
9850_ACEOF
9851rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009852if { (ac_try="$ac_link"
9853case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856esac
9857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879esac
9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885
9886cat >>confdefs.h <<\_ACEOF
9887#define HAVE_LIBDL 1
9888_ACEOF
9889 libltdl_cv_func_dlopen="yes"
9890else
9891 echo "$as_me: failed program was:" >&5
9892sed 's/^/| /' conftest.$ac_ext >&5
9893
Reid Spencera773bd52006-08-04 18:18:08 +00009894 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9895echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899 ac_check_lib_save_LIBS=$LIBS
9900LIBS="-lsvld $LIBS"
9901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */
9907
Reid Spencera773bd52006-08-04 18:18:08 +00009908/* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911#ifdef __cplusplus
9912extern "C"
9913#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914char dlopen ();
9915int
9916main ()
9917{
Reid Spencera773bd52006-08-04 18:18:08 +00009918return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919 ;
9920 return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009948 { (case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_lib_svld_dlopen=yes
9958else
9959 echo "$as_me: failed program was:" >&5
9960sed 's/^/| /' conftest.$ac_ext >&5
9961
Reid Spencera773bd52006-08-04 18:18:08 +00009962 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963fi
Reid Spencera773bd52006-08-04 18:18:08 +00009964
9965rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966 conftest$ac_exeext conftest.$ac_ext
9967LIBS=$ac_check_lib_save_LIBS
9968fi
Reid Spencera773bd52006-08-04 18:18:08 +00009969{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9970echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971if test $ac_cv_lib_svld_dlopen = yes; then
9972
9973cat >>confdefs.h <<\_ACEOF
9974#define HAVE_LIBDL 1
9975_ACEOF
9976
9977 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9978else
Reid Spencera773bd52006-08-04 18:18:08 +00009979 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9980echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983else
9984 ac_check_lib_save_LIBS=$LIBS
9985LIBS="-ldld $LIBS"
9986cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h. */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h. */
9992
Reid Spencera773bd52006-08-04 18:18:08 +00009993/* Override any GCC internal prototype to avoid an error.
9994 Use char because int might match the return type of a GCC
9995 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996#ifdef __cplusplus
9997extern "C"
9998#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999char dld_link ();
10000int
10001main ()
10002{
Reid Spencera773bd52006-08-04 18:18:08 +000010003return dld_link ();
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_lib_dld_dld_link=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_lib_dld_dld_link=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
10052LIBS=$ac_check_lib_save_LIBS
10053fi
Reid Spencera773bd52006-08-04 18:18:08 +000010054{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10055echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056if test $ac_cv_lib_dld_dld_link = yes; then
10057
10058cat >>confdefs.h <<\_ACEOF
10059#define HAVE_DLD 1
10060_ACEOF
10061
10062 LIBADD_DL="$LIBADD_DL -ldld"
10063else
Reid Spencera773bd52006-08-04 18:18:08 +000010064 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10065echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h. */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h. */
10075/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10077#define _dyld_func_lookup innocuous__dyld_func_lookup
10078
10079/* System header to define __stub macros and hopefully few prototypes,
10080 which can conflict with char _dyld_func_lookup (); below.
10081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082 <limits.h> exists even on freestanding compilers. */
10083
10084#ifdef __STDC__
10085# include <limits.h>
10086#else
10087# include <assert.h>
10088#endif
10089
10090#undef _dyld_func_lookup
10091
Reid Spencera773bd52006-08-04 18:18:08 +000010092/* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095#ifdef __cplusplus
10096extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098char _dyld_func_lookup ();
10099/* The GNU C library defines this for functions which it implements
10100 to always fail with ENOSYS. Some functions are actually named
10101 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010102#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010103choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104#endif
10105
10106int
10107main ()
10108{
Reid Spencera773bd52006-08-04 18:18:08 +000010109return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110 ;
10111 return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010115if { (ac_try="$ac_link"
10116case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10119esac
10120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10129 { (case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132esac
10133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_func__dyld_func_lookup=yes
10149else
10150 echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
Reid Spencera773bd52006-08-04 18:18:08 +000010153 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154fi
Reid Spencera773bd52006-08-04 18:18:08 +000010155
10156rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157 conftest$ac_exeext conftest.$ac_ext
10158fi
Reid Spencera773bd52006-08-04 18:18:08 +000010159{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10160echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161if test $ac_cv_func__dyld_func_lookup = yes; then
10162
10163cat >>confdefs.h <<\_ACEOF
10164#define HAVE_DYLD 1
10165_ACEOF
10166
10167fi
10168
10169
10170fi
10171
10172
10173fi
10174
10175
10176fi
Reid Spencera773bd52006-08-04 18:18:08 +000010177
10178rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010179 conftest$ac_exeext conftest.$ac_ext
10180
10181fi
10182
10183
10184fi
10185
10186
10187fi
10188
10189
10190if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10191then
10192 lt_save_LIBS="$LIBS"
10193 LIBS="$LIBS $LIBADD_DL"
10194
10195for ac_func in dlerror
10196do
10197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202else
10203 cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h. */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h. */
10209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10211#define $ac_func innocuous_$ac_func
10212
10213/* System header to define __stub macros and hopefully few prototypes,
10214 which can conflict with char $ac_func (); below.
10215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10216 <limits.h> exists even on freestanding compilers. */
10217
10218#ifdef __STDC__
10219# include <limits.h>
10220#else
10221# include <assert.h>
10222#endif
10223
10224#undef $ac_func
10225
Reid Spencera773bd52006-08-04 18:18:08 +000010226/* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010229#ifdef __cplusplus
10230extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232char $ac_func ();
10233/* The GNU C library defines this for functions which it implements
10234 to always fail with ENOSYS. Some functions are actually named
10235 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010236#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238#endif
10239
10240int
10241main ()
10242{
Reid Spencera773bd52006-08-04 18:18:08 +000010243return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244 ;
10245 return 0;
10246}
10247_ACEOF
10248rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010249if { (ac_try="$ac_link"
10250case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10266esac
10267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276esac
10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 eval "$as_ac_var=yes"
10283else
10284 echo "$as_me: failed program was:" >&5
10285sed 's/^/| /' conftest.$ac_ext >&5
10286
Reid Spencera773bd52006-08-04 18:18:08 +000010287 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288fi
Reid Spencera773bd52006-08-04 18:18:08 +000010289
10290rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291 conftest$ac_exeext conftest.$ac_ext
10292fi
Reid Spencera773bd52006-08-04 18:18:08 +000010293ac_res=`eval echo '${'$as_ac_var'}'`
10294 { echo "$as_me:$LINENO: result: $ac_res" >&5
10295echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296if test `eval echo '${'$as_ac_var'}'` = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10299_ACEOF
10300
10301fi
10302done
10303
10304 LIBS="$lt_save_LIBS"
10305fi
10306ac_ext=c
10307ac_cpp='$CPP $CPPFLAGS'
10308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310ac_compiler_gnu=$ac_cv_c_compiler_gnu
10311
10312
10313
Reid Spencera773bd52006-08-04 18:18:08 +000010314{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10315echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319 ac_cv_sys_symbol_underscore=no
10320 cat > conftest.$ac_ext <<EOF
10321void nm_test_func(){}
10322int main(){nm_test_func;return 0;}
10323EOF
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325 (eval $ac_compile) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; then
10329 # Now try to grab the symbols.
10330 ac_nlist=conftest.nm
10331 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10332 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && test -s "$ac_nlist"; then
10336 # See whether the symbols have a leading underscore.
10337 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10338 ac_cv_sys_symbol_underscore=yes
10339 else
10340 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10341 :
10342 else
10343 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10344 fi
10345 fi
10346 else
10347 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10348 fi
10349 else
10350 echo "configure: failed program was:" >&5
10351 cat conftest.c >&5
10352 fi
10353 rm -rf conftest*
10354
10355fi
Reid Spencera773bd52006-08-04 18:18:08 +000010356{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10357echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358
10359
10360if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10361 if test x"$libltdl_cv_func_dlopen" = xyes ||
10362 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010363 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10364echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010365if test "${libltdl_cv_need_uscore+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367else
10368 libltdl_cv_need_uscore=unknown
10369 save_LIBS="$LIBS"
10370 LIBS="$LIBS $LIBADD_DL"
10371 if test "$cross_compiling" = yes; then :
10372 libltdl_cv_need_uscore=cross
10373else
10374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10375 lt_status=$lt_dlunknown
10376 cat > conftest.$ac_ext <<EOF
Tanya Lattnerdde567f2007-08-29 16:38:16 +000010377#line 10377 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378#include "confdefs.h"
10379
10380#if HAVE_DLFCN_H
10381#include <dlfcn.h>
10382#endif
10383
10384#include <stdio.h>
10385
10386#ifdef RTLD_GLOBAL
10387# define LT_DLGLOBAL RTLD_GLOBAL
10388#else
10389# ifdef DL_GLOBAL
10390# define LT_DLGLOBAL DL_GLOBAL
10391# else
10392# define LT_DLGLOBAL 0
10393# endif
10394#endif
10395
10396/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10397 find out it does not work in some platform. */
10398#ifndef LT_DLLAZY_OR_NOW
10399# ifdef RTLD_LAZY
10400# define LT_DLLAZY_OR_NOW RTLD_LAZY
10401# else
10402# ifdef DL_LAZY
10403# define LT_DLLAZY_OR_NOW DL_LAZY
10404# else
10405# ifdef RTLD_NOW
10406# define LT_DLLAZY_OR_NOW RTLD_NOW
10407# else
10408# ifdef DL_NOW
10409# define LT_DLLAZY_OR_NOW DL_NOW
10410# else
10411# define LT_DLLAZY_OR_NOW 0
10412# endif
10413# endif
10414# endif
10415# endif
10416#endif
10417
10418#ifdef __cplusplus
10419extern "C" void exit (int);
10420#endif
10421
10422void fnord() { int i=42;}
10423int main ()
10424{
10425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10426 int status = $lt_dlunknown;
10427
10428 if (self)
10429 {
10430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10431 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10432 /* dlclose (self); */
10433 }
Reid Spencera773bd52006-08-04 18:18:08 +000010434 else
10435 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436
10437 exit (status);
10438}
10439EOF
10440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441 (eval $ac_link) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010445 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446 lt_status=$?
10447 case x$lt_status in
10448 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10449 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010450 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 esac
10452 else :
10453 # compilation failed
10454
10455 fi
10456fi
10457rm -fr conftest*
10458
10459 LIBS="$save_LIBS"
10460
10461fi
Reid Spencera773bd52006-08-04 18:18:08 +000010462{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10463echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464 fi
10465fi
10466
10467if test x"$libltdl_cv_need_uscore" = xyes; then
10468
10469cat >>confdefs.h <<\_ACEOF
10470#define NEED_USCORE 1
10471_ACEOF
10472
10473fi
10474
10475
Reid Spencera773bd52006-08-04 18:18:08 +000010476{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10477echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480else
10481 # PORTME does your system automatically load deplibs for dlopen?
10482 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10483 # For now, we just catch OSes we know something about -- in the
10484 # future, we'll try test this programmatically.
10485 libltdl_cv_sys_dlopen_deplibs=unknown
10486 case "$host_os" in
10487 aix3*|aix4.1.*|aix4.2.*)
10488 # Unknown whether this is true for these versions of AIX, but
10489 # we want this `case' here to explicitly catch those versions.
10490 libltdl_cv_sys_dlopen_deplibs=unknown
10491 ;;
10492 aix[45]*)
10493 libltdl_cv_sys_dlopen_deplibs=yes
10494 ;;
10495 darwin*)
10496 # Assuming the user has installed a libdl from somewhere, this is true
10497 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10498 libltdl_cv_sys_dlopen_deplibs=yes
10499 ;;
10500 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10501 # GNU and its variants, using gnu ld.so (Glibc)
10502 libltdl_cv_sys_dlopen_deplibs=yes
10503 ;;
10504 hpux10*|hpux11*)
10505 libltdl_cv_sys_dlopen_deplibs=yes
10506 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010507 interix*)
10508 libltdl_cv_sys_dlopen_deplibs=yes
10509 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510 irix[12345]*|irix6.[01]*)
10511 # Catch all versions of IRIX before 6.2, and indicate that we don't
10512 # know how it worked for any of those versions.
10513 libltdl_cv_sys_dlopen_deplibs=unknown
10514 ;;
10515 irix*)
10516 # The case above catches anything before 6.2, and it's known that
10517 # at 6.2 and later dlopen does load deplibs.
10518 libltdl_cv_sys_dlopen_deplibs=yes
10519 ;;
10520 netbsd*)
10521 libltdl_cv_sys_dlopen_deplibs=yes
10522 ;;
10523 openbsd*)
10524 libltdl_cv_sys_dlopen_deplibs=yes
10525 ;;
10526 osf[1234]*)
10527 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10528 # it did *not* use an RPATH in a shared library to find objects the
10529 # library depends on, so we explictly say `no'.
10530 libltdl_cv_sys_dlopen_deplibs=no
10531 ;;
10532 osf5.0|osf5.0a|osf5.1)
10533 # dlopen *does* load deplibs and with the right loader patch applied
10534 # it even uses RPATH in a shared library to search for shared objects
10535 # that the library depends on, but there's no easy way to know if that
10536 # patch is installed. Since this is the case, all we can really
10537 # say is unknown -- it depends on the patch being installed. If
10538 # it is, this changes to `yes'. Without it, it would be `no'.
10539 libltdl_cv_sys_dlopen_deplibs=unknown
10540 ;;
10541 osf*)
10542 # the two cases above should catch all versions of osf <= 5.1. Read
10543 # the comments above for what we know about them.
10544 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10545 # is used to find them so we can finally say `yes'.
10546 libltdl_cv_sys_dlopen_deplibs=yes
10547 ;;
10548 solaris*)
10549 libltdl_cv_sys_dlopen_deplibs=yes
10550 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10552 libltdl_cv_sys_dlopen_deplibs=yes
10553 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554 esac
10555
10556fi
Reid Spencera773bd52006-08-04 18:18:08 +000010557{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10558echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10560
10561cat >>confdefs.h <<\_ACEOF
10562#define LTDL_DLOPEN_DEPLIBS 1
10563_ACEOF
10564
10565fi
10566
10567
10568for ac_header in argz.h
10569do
10570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576fi
Reid Spencera773bd52006-08-04 18:18:08 +000010577ac_res=`eval echo '${'$as_ac_Header'}'`
10578 { echo "$as_me:$LINENO: result: $ac_res" >&5
10579echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580else
10581 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010582{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
10590$ac_includes_default
10591#include <$ac_header>
10592_ACEOF
10593rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010594if { (ac_try="$ac_compile"
10595case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598esac
10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010618 { (case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10621esac
10622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_header_compiler=yes
10628else
10629 echo "$as_me: failed program was:" >&5
10630sed 's/^/| /' conftest.$ac_ext >&5
10631
Reid Spencera773bd52006-08-04 18:18:08 +000010632 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633fi
Reid Spencera773bd52006-08-04 18:18:08 +000010634
10635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638
10639# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010640{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010642cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648#include <$ac_header>
10649_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010650if { (ac_try="$ac_cpp conftest.$ac_ext"
10651case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654esac
10655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_c_preproc_warn_flag
10665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10666 else
10667 ac_cpp_err=
10668 fi
10669else
10670 ac_cpp_err=yes
10671fi
10672if test -z "$ac_cpp_err"; then
10673 ac_header_preproc=yes
10674else
10675 echo "$as_me: failed program was:" >&5
10676sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 ac_header_preproc=no
10679fi
Reid Spencera773bd52006-08-04 18:18:08 +000010680
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010682{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10683echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684
10685# So? What about this header?
10686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10687 yes:no: )
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10692 ac_header_preproc=yes
10693 ;;
10694 no:yes:* )
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10698echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10702echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010707 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708## ----------------------------------- ##
10709## Report this to llvmbugs@cs.uiuc.edu ##
10710## ----------------------------------- ##
10711_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010712 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713 ;;
10714esac
Reid Spencera773bd52006-08-04 18:18:08 +000010715{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719else
10720 eval "$as_ac_Header=\$ac_header_preproc"
10721fi
Reid Spencera773bd52006-08-04 18:18:08 +000010722ac_res=`eval echo '${'$as_ac_Header'}'`
10723 { echo "$as_me:$LINENO: result: $ac_res" >&5
10724echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725
10726fi
10727if test `eval echo '${'$as_ac_Header'}'` = yes; then
10728 cat >>confdefs.h <<_ACEOF
10729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10730_ACEOF
10731
10732fi
10733
10734done
10735
10736
Reid Spencera773bd52006-08-04 18:18:08 +000010737{ echo "$as_me:$LINENO: checking for error_t" >&5
10738echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739if test "${ac_cv_type_error_t+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 cat >conftest.$ac_ext <<_ACEOF
10743/* confdefs.h. */
10744_ACEOF
10745cat confdefs.h >>conftest.$ac_ext
10746cat >>conftest.$ac_ext <<_ACEOF
10747/* end confdefs.h. */
10748#if HAVE_ARGZ_H
10749# include <argz.h>
10750#endif
10751
Reid Spencera773bd52006-08-04 18:18:08 +000010752typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753int
10754main ()
10755{
Reid Spencera773bd52006-08-04 18:18:08 +000010756if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010758if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759 return 0;
10760 ;
10761 return 0;
10762}
10763_ACEOF
10764rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010765if { (ac_try="$ac_compile"
10766case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782esac
10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_cv_type_error_t=yes
10799else
10800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
Reid Spencera773bd52006-08-04 18:18:08 +000010803 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804fi
Reid Spencera773bd52006-08-04 18:18:08 +000010805
10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807fi
Reid Spencera773bd52006-08-04 18:18:08 +000010808{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10809echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810if test $ac_cv_type_error_t = yes; then
10811
10812cat >>confdefs.h <<_ACEOF
10813#define HAVE_ERROR_T 1
10814_ACEOF
10815
10816
10817else
10818
10819cat >>confdefs.h <<\_ACEOF
10820#define error_t int
10821_ACEOF
10822
10823fi
10824
10825
10826
10827
10828
10829
10830
10831for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10832do
10833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838else
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10847#define $ac_func innocuous_$ac_func
10848
10849/* System header to define __stub macros and hopefully few prototypes,
10850 which can conflict with char $ac_func (); below.
10851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852 <limits.h> exists even on freestanding compilers. */
10853
10854#ifdef __STDC__
10855# include <limits.h>
10856#else
10857# include <assert.h>
10858#endif
10859
10860#undef $ac_func
10861
Reid Spencera773bd52006-08-04 18:18:08 +000010862/* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865#ifdef __cplusplus
10866extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868char $ac_func ();
10869/* The GNU C library defines this for functions which it implements
10870 to always fail with ENOSYS. Some functions are actually named
10871 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010872#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010873choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874#endif
10875
10876int
10877main ()
10878{
Reid Spencera773bd52006-08-04 18:18:08 +000010879return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010885if { (ac_try="$ac_link"
10886case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902esac
10903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912esac
10913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 eval "$as_ac_var=yes"
10919else
10920 echo "$as_me: failed program was:" >&5
10921sed 's/^/| /' conftest.$ac_ext >&5
10922
Reid Spencera773bd52006-08-04 18:18:08 +000010923 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924fi
Reid Spencera773bd52006-08-04 18:18:08 +000010925
10926rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927 conftest$ac_exeext conftest.$ac_ext
10928fi
Reid Spencera773bd52006-08-04 18:18:08 +000010929ac_res=`eval echo '${'$as_ac_var'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932if test `eval echo '${'$as_ac_var'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10935_ACEOF
10936
10937fi
10938done
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10968 stdio.h unistd.h
10969do
10970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976fi
Reid Spencera773bd52006-08-04 18:18:08 +000010977ac_res=`eval echo '${'$as_ac_Header'}'`
10978 { echo "$as_me:$LINENO: result: $ac_res" >&5
10979echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980else
10981 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984cat >conftest.$ac_ext <<_ACEOF
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
10990$ac_includes_default
10991#include <$ac_header>
10992_ACEOF
10993rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010994if { (ac_try="$ac_compile"
10995case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011esac
11012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021esac
11022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_header_compiler=yes
11028else
11029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
Reid Spencera773bd52006-08-04 18:18:08 +000011032 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033fi
Reid Spencera773bd52006-08-04 18:18:08 +000011034
11035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11037echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038
11039# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048#include <$ac_header>
11049_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011050if { (ac_try="$ac_cpp conftest.$ac_ext"
11051case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054esac
11055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057 ac_status=$?
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } >/dev/null; then
11063 if test -s conftest.err; then
11064 ac_cpp_err=$ac_c_preproc_warn_flag
11065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11066 else
11067 ac_cpp_err=
11068 fi
11069else
11070 ac_cpp_err=yes
11071fi
11072if test -z "$ac_cpp_err"; then
11073 ac_header_preproc=yes
11074else
11075 echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 ac_header_preproc=no
11079fi
Reid Spencera773bd52006-08-04 18:18:08 +000011080
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11083echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084
11085# So? What about this header?
11086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11087 yes:no: )
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11092 ac_header_preproc=yes
11093 ;;
11094 no:yes:* )
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011107 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108## ----------------------------------- ##
11109## Report this to llvmbugs@cs.uiuc.edu ##
11110## ----------------------------------- ##
11111_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011112 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113 ;;
11114esac
Reid Spencera773bd52006-08-04 18:18:08 +000011115{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120 eval "$as_ac_Header=\$ac_header_preproc"
11121fi
Reid Spencera773bd52006-08-04 18:18:08 +000011122ac_res=`eval echo '${'$as_ac_Header'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125
11126fi
11127if test `eval echo '${'$as_ac_Header'}'` = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11130_ACEOF
11131
11132fi
11133
11134done
11135
11136
11137
11138
11139
11140for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11141do
11142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148fi
Reid Spencera773bd52006-08-04 18:18:08 +000011149ac_res=`eval echo '${'$as_ac_Header'}'`
11150 { echo "$as_me:$LINENO: result: $ac_res" >&5
11151echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152else
11153 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011154{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162$ac_includes_default
11163#include <$ac_header>
11164_ACEOF
11165rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011166if { (ac_try="$ac_compile"
11167case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170esac
11171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183esac
11184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011190 { (case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193esac
11194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 ac_header_compiler=yes
11200else
11201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
11203
Reid Spencera773bd52006-08-04 18:18:08 +000011204 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205fi
Reid Spencera773bd52006-08-04 18:18:08 +000011206
11207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11209echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210
11211# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011212{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11213echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011214cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220#include <$ac_header>
11221_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011222if { (ac_try="$ac_cpp conftest.$ac_ext"
11223case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226esac
11227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } >/dev/null; then
11235 if test -s conftest.err; then
11236 ac_cpp_err=$ac_c_preproc_warn_flag
11237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11238 else
11239 ac_cpp_err=
11240 fi
11241else
11242 ac_cpp_err=yes
11243fi
11244if test -z "$ac_cpp_err"; then
11245 ac_header_preproc=yes
11246else
11247 echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
11250 ac_header_preproc=no
11251fi
Reid Spencera773bd52006-08-04 18:18:08 +000011252
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011254{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11255echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256
11257# So? What about this header?
11258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11259 yes:no: )
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11261echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11263echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11264 ac_header_preproc=yes
11265 ;;
11266 no:yes:* )
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11268echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11270echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11272echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11274echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11278echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011279 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280## ----------------------------------- ##
11281## Report this to llvmbugs@cs.uiuc.edu ##
11282## ----------------------------------- ##
11283_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011284 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011285 ;;
11286esac
Reid Spencera773bd52006-08-04 18:18:08 +000011287{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291else
11292 eval "$as_ac_Header=\$ac_header_preproc"
11293fi
Reid Spencera773bd52006-08-04 18:18:08 +000011294ac_res=`eval echo '${'$as_ac_Header'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297
11298fi
11299if test `eval echo '${'$as_ac_Header'}'` = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302_ACEOF
11303
11304fi
11305
11306done
11307
11308
11309
11310for ac_header in string.h strings.h
11311do
11312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317 echo $ECHO_N "(cached) $ECHO_C" >&6
11318fi
Reid Spencera773bd52006-08-04 18:18:08 +000011319ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322else
11323 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011324{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h. */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h. */
11332$ac_includes_default
11333#include <$ac_header>
11334_ACEOF
11335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011336if { (ac_try="$ac_compile"
11337case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11340esac
11341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353esac
11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363esac
11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_header_compiler=yes
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
Reid Spencera773bd52006-08-04 18:18:08 +000011374 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375fi
Reid Spencera773bd52006-08-04 18:18:08 +000011376
11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380
11381# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011382{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011384cat >conftest.$ac_ext <<_ACEOF
11385/* confdefs.h. */
11386_ACEOF
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */
11390#include <$ac_header>
11391_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011392if { (ac_try="$ac_cpp conftest.$ac_ext"
11393case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408 else
11409 ac_cpp_err=
11410 fi
11411else
11412 ac_cpp_err=yes
11413fi
11414if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11416else
11417 echo "$as_me: failed program was:" >&5
11418sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 ac_header_preproc=no
11421fi
Reid Spencera773bd52006-08-04 18:18:08 +000011422
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011424{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011426
11427# So? What about this header?
11428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429 yes:no: )
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11435 ;;
11436 no:yes:* )
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011449 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011450## ----------------------------------- ##
11451## Report this to llvmbugs@cs.uiuc.edu ##
11452## ----------------------------------- ##
11453_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011454 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 ;;
11456esac
Reid Spencera773bd52006-08-04 18:18:08 +000011457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
11462 eval "$as_ac_Header=\$ac_header_preproc"
11463fi
Reid Spencera773bd52006-08-04 18:18:08 +000011464ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467
11468fi
11469if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472_ACEOF
11473 break
11474fi
11475
11476done
11477
11478
11479
11480
11481for ac_func in strchr index
11482do
11483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488else
11489 cat >conftest.$ac_ext <<_ACEOF
11490/* confdefs.h. */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h. */
11495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497#define $ac_func innocuous_$ac_func
11498
11499/* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11503
11504#ifdef __STDC__
11505# include <limits.h>
11506#else
11507# include <assert.h>
11508#endif
11509
11510#undef $ac_func
11511
Reid Spencera773bd52006-08-04 18:18:08 +000011512/* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515#ifdef __cplusplus
11516extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518char $ac_func ();
11519/* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011522#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011524#endif
11525
11526int
11527main ()
11528{
Reid Spencera773bd52006-08-04 18:18:08 +000011529return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530 ;
11531 return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011535if { (ac_try="$ac_link"
11536case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539esac
11540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11549 { (case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552esac
11553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; } &&
11558 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011559 { (case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11562esac
11563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 eval "$as_ac_var=yes"
11569else
11570 echo "$as_me: failed program was:" >&5
11571sed 's/^/| /' conftest.$ac_ext >&5
11572
Reid Spencera773bd52006-08-04 18:18:08 +000011573 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011574fi
Reid Spencera773bd52006-08-04 18:18:08 +000011575
11576rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577 conftest$ac_exeext conftest.$ac_ext
11578fi
Reid Spencera773bd52006-08-04 18:18:08 +000011579ac_res=`eval echo '${'$as_ac_var'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582if test `eval echo '${'$as_ac_var'}'` = yes; then
11583 cat >>confdefs.h <<_ACEOF
11584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11585_ACEOF
11586 break
11587fi
11588done
11589
11590
11591
11592for ac_func in strrchr rindex
11593do
11594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011595{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599else
11600 cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
11606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608#define $ac_func innocuous_$ac_func
11609
11610/* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11614
11615#ifdef __STDC__
11616# include <limits.h>
11617#else
11618# include <assert.h>
11619#endif
11620
11621#undef $ac_func
11622
Reid Spencera773bd52006-08-04 18:18:08 +000011623/* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011626#ifdef __cplusplus
11627extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629char $ac_func ();
11630/* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011633#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635#endif
11636
11637int
11638main ()
11639{
Reid Spencera773bd52006-08-04 18:18:08 +000011640return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011646if { (ac_try="$ac_link"
11647case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663esac
11664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11680else
11681 echo "$as_me: failed program was:" >&5
11682sed 's/^/| /' conftest.$ac_ext >&5
11683
Reid Spencera773bd52006-08-04 18:18:08 +000011684 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685fi
Reid Spencera773bd52006-08-04 18:18:08 +000011686
11687rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688 conftest$ac_exeext conftest.$ac_ext
11689fi
Reid Spencera773bd52006-08-04 18:18:08 +000011690ac_res=`eval echo '${'$as_ac_var'}'`
11691 { echo "$as_me:$LINENO: result: $ac_res" >&5
11692echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693if test `eval echo '${'$as_ac_var'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11696_ACEOF
11697 break
11698fi
11699done
11700
11701
11702
11703for ac_func in memcpy bcopy
11704do
11705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719#define $ac_func innocuous_$ac_func
11720
11721/* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11725
11726#ifdef __STDC__
11727# include <limits.h>
11728#else
11729# include <assert.h>
11730#endif
11731
11732#undef $ac_func
11733
Reid Spencera773bd52006-08-04 18:18:08 +000011734/* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011737#ifdef __cplusplus
11738extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011739#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011740char $ac_func ();
11741/* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011744#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746#endif
11747
11748int
11749main ()
11750{
Reid Spencera773bd52006-08-04 18:18:08 +000011751return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 ;
11753 return 0;
11754}
11755_ACEOF
11756rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011757if { (ac_try="$ac_link"
11758case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761esac
11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
Reid Spencera773bd52006-08-04 18:18:08 +000011795 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796fi
Reid Spencera773bd52006-08-04 18:18:08 +000011797
11798rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799 conftest$ac_exeext conftest.$ac_ext
11800fi
Reid Spencera773bd52006-08-04 18:18:08 +000011801ac_res=`eval echo '${'$as_ac_var'}'`
11802 { echo "$as_me:$LINENO: result: $ac_res" >&5
11803echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804if test `eval echo '${'$as_ac_var'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11807_ACEOF
11808 break
11809fi
11810done
11811
11812
11813
11814for ac_func in memmove strcmp
11815do
11816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830#define $ac_func innocuous_$ac_func
11831
11832/* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11836
11837#ifdef __STDC__
11838# include <limits.h>
11839#else
11840# include <assert.h>
11841#endif
11842
11843#undef $ac_func
11844
Reid Spencera773bd52006-08-04 18:18:08 +000011845/* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848#ifdef __cplusplus
11849extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011850#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851char $ac_func ();
11852/* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011855#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857#endif
11858
11859int
11860main ()
11861{
Reid Spencera773bd52006-08-04 18:18:08 +000011862return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 ;
11864 return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011868if { (ac_try="$ac_link"
11869case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872esac
11873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
Reid Spencera773bd52006-08-04 18:18:08 +000011906 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907fi
Reid Spencera773bd52006-08-04 18:18:08 +000011908
11909rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910 conftest$ac_exeext conftest.$ac_ext
11911fi
Reid Spencera773bd52006-08-04 18:18:08 +000011912ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915if test `eval echo '${'$as_ac_var'}'` = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918_ACEOF
11919
11920fi
11921done
11922
11923
11924
11925
11926for ac_func in closedir opendir readdir
11927do
11928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011929{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11931if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934 cat >conftest.$ac_ext <<_ACEOF
11935/* confdefs.h. */
11936_ACEOF
11937cat confdefs.h >>conftest.$ac_ext
11938cat >>conftest.$ac_ext <<_ACEOF
11939/* end confdefs.h. */
11940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11942#define $ac_func innocuous_$ac_func
11943
11944/* System header to define __stub macros and hopefully few prototypes,
11945 which can conflict with char $ac_func (); below.
11946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11947 <limits.h> exists even on freestanding compilers. */
11948
11949#ifdef __STDC__
11950# include <limits.h>
11951#else
11952# include <assert.h>
11953#endif
11954
11955#undef $ac_func
11956
Reid Spencera773bd52006-08-04 18:18:08 +000011957/* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960#ifdef __cplusplus
11961extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011962#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963char $ac_func ();
11964/* The GNU C library defines this for functions which it implements
11965 to always fail with ENOSYS. Some functions are actually named
11966 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011967#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011969#endif
11970
11971int
11972main ()
11973{
Reid Spencera773bd52006-08-04 18:18:08 +000011974return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975 ;
11976 return 0;
11977}
11978_ACEOF
11979rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011980if { (ac_try="$ac_link"
11981case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11994 { (case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } &&
12003 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007esac
12008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 eval "$as_ac_var=yes"
12014else
12015 echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
Reid Spencera773bd52006-08-04 18:18:08 +000012018 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019fi
Reid Spencera773bd52006-08-04 18:18:08 +000012020
12021rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012022 conftest$ac_exeext conftest.$ac_ext
12023fi
Reid Spencera773bd52006-08-04 18:18:08 +000012024ac_res=`eval echo '${'$as_ac_var'}'`
12025 { echo "$as_me:$LINENO: result: $ac_res" >&5
12026echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027if test `eval echo '${'$as_ac_var'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12030_ACEOF
12031
12032fi
12033done
12034
12035
Reid Spencera773bd52006-08-04 18:18:08 +000012036# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012038 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039 case $enableval in
12040 yes) enable_shared=yes ;;
12041 no) enable_shared=no ;;
12042 *)
12043 enable_shared=no
12044 # Look at the argument we got. We use all the common list separators.
12045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12046 for pkg in $enableval; do
12047 IFS="$lt_save_ifs"
12048 if test "X$pkg" = "X$p"; then
12049 enable_shared=yes
12050 fi
12051 done
12052 IFS="$lt_save_ifs"
12053 ;;
12054 esac
12055else
12056 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012057fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058
Reid Spencera773bd52006-08-04 18:18:08 +000012059
12060# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012062 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063 case $enableval in
12064 yes) enable_static=yes ;;
12065 no) enable_static=no ;;
12066 *)
12067 enable_static=no
12068 # Look at the argument we got. We use all the common list separators.
12069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12070 for pkg in $enableval; do
12071 IFS="$lt_save_ifs"
12072 if test "X$pkg" = "X$p"; then
12073 enable_static=yes
12074 fi
12075 done
12076 IFS="$lt_save_ifs"
12077 ;;
12078 esac
12079else
12080 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012081fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012082
Reid Spencera773bd52006-08-04 18:18:08 +000012083
12084# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012086 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087 case $enableval in
12088 yes) enable_fast_install=yes ;;
12089 no) enable_fast_install=no ;;
12090 *)
12091 enable_fast_install=no
12092 # Look at the argument we got. We use all the common list separators.
12093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12094 for pkg in $enableval; do
12095 IFS="$lt_save_ifs"
12096 if test "X$pkg" = "X$p"; then
12097 enable_fast_install=yes
12098 fi
12099 done
12100 IFS="$lt_save_ifs"
12101 ;;
12102 esac
12103else
12104 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012105fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012106
Reid Spencera773bd52006-08-04 18:18:08 +000012107
12108{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12109echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110if test "${lt_cv_path_SED+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112else
12113 # Loop through the user's path and test for sed and gsed.
12114# Then use that list of sed's as ones to test for truncation.
12115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116for as_dir in $PATH
12117do
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
12120 for lt_ac_prog in sed gsed; do
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12123 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12124 fi
12125 done
12126 done
12127done
12128lt_ac_max=0
12129lt_ac_count=0
12130# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12131# along with /bin/sed that truncates output.
12132for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012133 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012134 cat /dev/null > conftest.in
12135 lt_ac_count=0
12136 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12137 # Check for GNU sed and select it if it is found.
12138 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12139 lt_cv_path_SED=$lt_ac_sed
12140 break
12141 fi
12142 while true; do
12143 cat conftest.in conftest.in >conftest.tmp
12144 mv conftest.tmp conftest.in
12145 cp conftest.in conftest.nl
12146 echo >>conftest.nl
12147 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12148 cmp -s conftest.out conftest.nl || break
12149 # 10000 chars as input seems more than enough
12150 test $lt_ac_count -gt 10 && break
12151 lt_ac_count=`expr $lt_ac_count + 1`
12152 if test $lt_ac_count -gt $lt_ac_max; then
12153 lt_ac_max=$lt_ac_count
12154 lt_cv_path_SED=$lt_ac_sed
12155 fi
12156 done
12157done
12158
12159fi
12160
12161SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012162{ echo "$as_me:$LINENO: result: $SED" >&5
12163echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164
12165
Reid Spencera773bd52006-08-04 18:18:08 +000012166# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012167if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169else
12170 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012171fi
12172
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173ac_prog=ld
12174if test "$GCC" = yes; then
12175 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012176 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12177echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012178 case $host in
12179 *-*-mingw*)
12180 # gcc leaves a trailing carriage return which upsets mingw
12181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12182 *)
12183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12184 esac
12185 case $ac_prog in
12186 # Accept absolute paths.
12187 [\\/]* | ?:[\\/]*)
12188 re_direlt='/[^/][^/]*/\.\./'
12189 # Canonicalize the pathname of ld
12190 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12191 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12192 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12193 done
12194 test -z "$LD" && LD="$ac_prog"
12195 ;;
12196 "")
12197 # If it fails, then pretend we aren't using GCC.
12198 ac_prog=ld
12199 ;;
12200 *)
12201 # If it is relative, then search for the first ld in PATH.
12202 with_gnu_ld=unknown
12203 ;;
12204 esac
12205elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012206 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12207echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208else
Reid Spencera773bd52006-08-04 18:18:08 +000012209 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12210echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211fi
12212if test "${lt_cv_path_LD+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
12215 if test -z "$LD"; then
12216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12217 for ac_dir in $PATH; do
12218 IFS="$lt_save_ifs"
12219 test -z "$ac_dir" && ac_dir=.
12220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12221 lt_cv_path_LD="$ac_dir/$ac_prog"
12222 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012223 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224 # Break only if it was the GNU/non-GNU ld that we prefer.
12225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12226 *GNU* | *'with BFD'*)
12227 test "$with_gnu_ld" != no && break
12228 ;;
12229 *)
12230 test "$with_gnu_ld" != yes && break
12231 ;;
12232 esac
12233 fi
12234 done
12235 IFS="$lt_save_ifs"
12236else
12237 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12238fi
12239fi
12240
12241LD="$lt_cv_path_LD"
12242if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012243 { echo "$as_me:$LINENO: result: $LD" >&5
12244echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012245else
Reid Spencera773bd52006-08-04 18:18:08 +000012246 { echo "$as_me:$LINENO: result: no" >&5
12247echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012248fi
12249test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12250echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012252{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12253echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254if test "${lt_cv_prog_gnu_ld+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256else
Reid Spencera773bd52006-08-04 18:18:08 +000012257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012258case `$LD -v 2>&1 </dev/null` in
12259*GNU* | *'with BFD'*)
12260 lt_cv_prog_gnu_ld=yes
12261 ;;
12262*)
12263 lt_cv_prog_gnu_ld=no
12264 ;;
12265esac
12266fi
Reid Spencera773bd52006-08-04 18:18:08 +000012267{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12268echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012269with_gnu_ld=$lt_cv_prog_gnu_ld
12270
12271
Reid Spencera773bd52006-08-04 18:18:08 +000012272{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12273echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012274if test "${lt_cv_ld_reload_flag+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12276else
12277 lt_cv_ld_reload_flag='-r'
12278fi
Reid Spencera773bd52006-08-04 18:18:08 +000012279{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12280echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012281reload_flag=$lt_cv_ld_reload_flag
12282case $reload_flag in
12283"" | " "*) ;;
12284*) reload_flag=" $reload_flag" ;;
12285esac
12286reload_cmds='$LD$reload_flag -o $output$reload_objs'
12287case $host_os in
12288 darwin*)
12289 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012290 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012291 else
12292 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12293 fi
12294 ;;
12295esac
12296
Reid Spencera773bd52006-08-04 18:18:08 +000012297{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12298echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012299if test "${lt_cv_deplibs_check_method+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302 lt_cv_file_magic_cmd='$MAGIC_CMD'
12303lt_cv_file_magic_test_file=
12304lt_cv_deplibs_check_method='unknown'
12305# Need to set the preceding variable on all platforms that support
12306# interlibrary dependencies.
12307# 'none' -- dependencies not supported.
12308# `unknown' -- same as none, but documents that we really don't know.
12309# 'pass_all' -- all dependencies passed with no checks.
12310# 'test_compile' -- check by making test program.
12311# 'file_magic [[regex]]' -- check by looking for files in library path
12312# which responds to the $file_magic_cmd with a given extended regex.
12313# If you have `file' or equivalent on your system and you're not sure
12314# whether `pass_all' will *always* work, you probably want this one.
12315
12316case $host_os in
12317aix4* | aix5*)
12318 lt_cv_deplibs_check_method=pass_all
12319 ;;
12320
12321beos*)
12322 lt_cv_deplibs_check_method=pass_all
12323 ;;
12324
12325bsdi[45]*)
12326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12327 lt_cv_file_magic_cmd='/usr/bin/file -L'
12328 lt_cv_file_magic_test_file=/shlib/libc.so
12329 ;;
12330
12331cygwin*)
12332 # func_win32_libid is a shell function defined in ltmain.sh
12333 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12334 lt_cv_file_magic_cmd='func_win32_libid'
12335 ;;
12336
12337mingw* | pw32*)
12338 # Base MSYS/MinGW do not provide the 'file' command needed by
12339 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12341 lt_cv_file_magic_cmd='$OBJDUMP -f'
12342 ;;
12343
12344darwin* | rhapsody*)
12345 lt_cv_deplibs_check_method=pass_all
12346 ;;
12347
Reid Spencera773bd52006-08-04 18:18:08 +000012348freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12350 case $host_cpu in
12351 i*86 )
12352 # Not sure whether the presence of OpenBSD here was a mistake.
12353 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012354 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 +000012355 lt_cv_file_magic_cmd=/usr/bin/file
12356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12357 ;;
12358 esac
12359 else
12360 lt_cv_deplibs_check_method=pass_all
12361 fi
12362 ;;
12363
12364gnu*)
12365 lt_cv_deplibs_check_method=pass_all
12366 ;;
12367
12368hpux10.20* | hpux11*)
12369 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012370 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371 ia64*)
12372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12374 ;;
12375 hppa*64*)
12376 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]'
12377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12378 ;;
12379 *)
12380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12382 ;;
12383 esac
12384 ;;
12385
Reid Spencera773bd52006-08-04 18:18:08 +000012386interix3*)
12387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12389 ;;
12390
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012391irix5* | irix6* | nonstopux*)
12392 case $LD in
12393 *-32|*"-32 ") libmagic=32-bit;;
12394 *-n32|*"-n32 ") libmagic=N32;;
12395 *-64|*"-64 ") libmagic=64-bit;;
12396 *) libmagic=never-match;;
12397 esac
12398 lt_cv_deplibs_check_method=pass_all
12399 ;;
12400
12401# This must be Linux ELF.
12402linux*)
12403 lt_cv_deplibs_check_method=pass_all
12404 ;;
12405
12406netbsd*)
12407 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12409 else
12410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12411 fi
12412 ;;
12413
12414newos6*)
12415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12416 lt_cv_file_magic_cmd=/usr/bin/file
12417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12418 ;;
12419
12420nto-qnx*)
12421 lt_cv_deplibs_check_method=unknown
12422 ;;
12423
12424openbsd*)
12425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12427 else
12428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12429 fi
12430 ;;
12431
12432osf3* | osf4* | osf5*)
12433 lt_cv_deplibs_check_method=pass_all
12434 ;;
12435
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012436solaris*)
12437 lt_cv_deplibs_check_method=pass_all
12438 ;;
12439
Reid Spencera773bd52006-08-04 18:18:08 +000012440sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012441 case $host_vendor in
12442 motorola)
12443 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]'
12444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12445 ;;
12446 ncr)
12447 lt_cv_deplibs_check_method=pass_all
12448 ;;
12449 sequent)
12450 lt_cv_file_magic_cmd='/bin/file'
12451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12452 ;;
12453 sni)
12454 lt_cv_file_magic_cmd='/bin/file'
12455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12456 lt_cv_file_magic_test_file=/lib/libc.so
12457 ;;
12458 siemens)
12459 lt_cv_deplibs_check_method=pass_all
12460 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012461 pc)
12462 lt_cv_deplibs_check_method=pass_all
12463 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012464 esac
12465 ;;
12466
Reid Spencera773bd52006-08-04 18:18:08 +000012467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468 lt_cv_deplibs_check_method=pass_all
12469 ;;
12470esac
12471
12472fi
Reid Spencera773bd52006-08-04 18:18:08 +000012473{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12474echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475file_magic_cmd=$lt_cv_file_magic_cmd
12476deplibs_check_method=$lt_cv_deplibs_check_method
12477test -z "$deplibs_check_method" && deplibs_check_method=unknown
12478
12479
12480
12481# If no C compiler was specified, use CC.
12482LTCC=${LTCC-"$CC"}
12483
Reid Spencera773bd52006-08-04 18:18:08 +000012484# If no C compiler flags were specified, use CFLAGS.
12485LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12486
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487# Allow CC to be a program name with arguments.
12488compiler=$CC
12489
Reid Spencera773bd52006-08-04 18:18:08 +000012490# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012491if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012492 enableval=$enable_libtool_lock;
12493fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012494
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012495test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12496
12497# Some flags need to be propagated to the compiler or linker for good
12498# libtool support.
12499case $host in
12500ia64-*-hpux*)
12501 # Find out which ABI we are using.
12502 echo 'int i;' > conftest.$ac_ext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; then
12508 case `/usr/bin/file conftest.$ac_objext` in
12509 *ELF-32*)
12510 HPUX_IA64_MODE="32"
12511 ;;
12512 *ELF-64*)
12513 HPUX_IA64_MODE="64"
12514 ;;
12515 esac
12516 fi
12517 rm -rf conftest*
12518 ;;
12519*-*-irix6*)
12520 # Find out which ABI we are using.
Tanya Lattnerdde567f2007-08-29 16:38:16 +000012521 echo '#line 12521 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523 (eval $ac_compile) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; then
12527 if test "$lt_cv_prog_gnu_ld" = yes; then
12528 case `/usr/bin/file conftest.$ac_objext` in
12529 *32-bit*)
12530 LD="${LD-ld} -melf32bsmip"
12531 ;;
12532 *N32*)
12533 LD="${LD-ld} -melf32bmipn32"
12534 ;;
12535 *64-bit*)
12536 LD="${LD-ld} -melf64bmip"
12537 ;;
12538 esac
12539 else
12540 case `/usr/bin/file conftest.$ac_objext` in
12541 *32-bit*)
12542 LD="${LD-ld} -32"
12543 ;;
12544 *N32*)
12545 LD="${LD-ld} -n32"
12546 ;;
12547 *64-bit*)
12548 LD="${LD-ld} -64"
12549 ;;
12550 esac
12551 fi
12552 fi
12553 rm -rf conftest*
12554 ;;
12555
12556x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12557 # Find out which ABI we are using.
12558 echo 'int i;' > conftest.$ac_ext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12560 (eval $ac_compile) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012564 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012565 *32-bit*)
12566 case $host in
12567 x86_64-*linux*)
12568 LD="${LD-ld} -m elf_i386"
12569 ;;
12570 ppc64-*linux*|powerpc64-*linux*)
12571 LD="${LD-ld} -m elf32ppclinux"
12572 ;;
12573 s390x-*linux*)
12574 LD="${LD-ld} -m elf_s390"
12575 ;;
12576 sparc64-*linux*)
12577 LD="${LD-ld} -m elf32_sparc"
12578 ;;
12579 esac
12580 ;;
12581 *64-bit*)
12582 case $host in
12583 x86_64-*linux*)
12584 LD="${LD-ld} -m elf_x86_64"
12585 ;;
12586 ppc*-*linux*|powerpc*-*linux*)
12587 LD="${LD-ld} -m elf64ppc"
12588 ;;
12589 s390*-*linux*)
12590 LD="${LD-ld} -m elf64_s390"
12591 ;;
12592 sparc*-*linux*)
12593 LD="${LD-ld} -m elf64_sparc"
12594 ;;
12595 esac
12596 ;;
12597 esac
12598 fi
12599 rm -rf conftest*
12600 ;;
12601
12602*-*-sco3.2v5*)
12603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12604 SAVE_CFLAGS="$CFLAGS"
12605 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012606 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12607echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012608if test "${lt_cv_cc_needs_belf+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610else
12611 ac_ext=c
12612ac_cpp='$CPP $CPPFLAGS'
12613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12615ac_compiler_gnu=$ac_cv_c_compiler_gnu
12616
12617 cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h. */
12623
Reid Spencera773bd52006-08-04 18:18:08 +000012624int
12625main ()
12626{
12627
12628 ;
12629 return 0;
12630}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012631_ACEOF
12632rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012633if { (ac_try="$ac_link"
12634case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637esac
12638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012640 ac_status=$?
12641 grep -v '^ *+' conftest.er1 >conftest.err
12642 rm -f conftest.er1
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650esac
12651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012657 { (case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660esac
12661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 lt_cv_cc_needs_belf=yes
12667else
12668 echo "$as_me: failed program was:" >&5
12669sed 's/^/| /' conftest.$ac_ext >&5
12670
Reid Spencera773bd52006-08-04 18:18:08 +000012671 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012672fi
Reid Spencera773bd52006-08-04 18:18:08 +000012673
12674rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012675 conftest$ac_exeext conftest.$ac_ext
12676 ac_ext=c
12677ac_cpp='$CPP $CPPFLAGS'
12678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680ac_compiler_gnu=$ac_cv_c_compiler_gnu
12681
12682fi
Reid Spencera773bd52006-08-04 18:18:08 +000012683{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12684echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012685 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12686 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12687 CFLAGS="$SAVE_CFLAGS"
12688 fi
12689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012690sparc*-*solaris*)
12691 # Find out which ABI we are using.
12692 echo 'int i;' > conftest.$ac_ext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694 (eval $ac_compile) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; then
12698 case `/usr/bin/file conftest.o` in
12699 *64-bit*)
12700 case $lt_cv_prog_gnu_ld in
12701 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12702 *) LD="${LD-ld} -64" ;;
12703 esac
12704 ;;
12705 esac
12706 fi
12707 rm -rf conftest*
12708 ;;
12709
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012710
12711esac
12712
12713need_locks="$enable_libtool_lock"
12714
12715
Reid Spencer2706f8c2004-09-19 23:53:36 +000012716
12717
12718if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12719 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12720 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012721 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012722ac_cpp='$CXXCPP $CPPFLAGS'
12723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012726{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12727echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012728if test -z "$CXXCPP"; then
12729 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
John Criswell47fdd832003-07-14 16:52:07 +000012732 # Double quotes because CXXCPP needs to be expanded
12733 for CXXCPP in "$CXX -E" "/lib/cpp"
12734 do
12735 ac_preproc_ok=false
12736for ac_cxx_preproc_warn_flag in '' yes
12737do
12738 # Use a header file that comes with gcc, so configuring glibc
12739 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12741 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012742 # On the NeXT, cc -E runs the code through the compiler's parser,
12743 # not just through cpp. "Syntax error" is here to catch this case.
12744 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750#ifdef __STDC__
12751# include <limits.h>
12752#else
12753# include <assert.h>
12754#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012755 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012756_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012757if { (ac_try="$ac_cpp conftest.$ac_ext"
12758case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761esac
12762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012764 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012765 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } >/dev/null; then
12770 if test -s conftest.err; then
12771 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012772 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012773 else
John Criswell47fdd832003-07-14 16:52:07 +000012774 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012775 fi
John Criswell47fdd832003-07-14 16:52:07 +000012776else
12777 ac_cpp_err=yes
12778fi
12779if test -z "$ac_cpp_err"; then
12780 :
12781else
12782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012783sed 's/^/| /' conftest.$ac_ext >&5
12784
John Criswell47fdd832003-07-14 16:52:07 +000012785 # Broken: fails on valid input.
12786continue
12787fi
Reid Spencera773bd52006-08-04 18:18:08 +000012788
John Criswell47fdd832003-07-14 16:52:07 +000012789rm -f conftest.err conftest.$ac_ext
12790
Reid Spencera773bd52006-08-04 18:18:08 +000012791 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012792 # can be detected and how.
12793 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012799#include <ac_nonexistent.h>
12800_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012801if { (ac_try="$ac_cpp conftest.$ac_ext"
12802case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805esac
12806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012808 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012809 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } >/dev/null; then
12814 if test -s conftest.err; then
12815 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012817 else
12818 ac_cpp_err=
12819 fi
12820else
12821 ac_cpp_err=yes
12822fi
12823if test -z "$ac_cpp_err"; then
12824 # Broken: success on invalid input.
12825continue
12826else
12827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012828sed 's/^/| /' conftest.$ac_ext >&5
12829
John Criswell47fdd832003-07-14 16:52:07 +000012830 # Passes both tests.
12831ac_preproc_ok=:
12832break
12833fi
Reid Spencera773bd52006-08-04 18:18:08 +000012834
John Criswell47fdd832003-07-14 16:52:07 +000012835rm -f conftest.err conftest.$ac_ext
12836
12837done
12838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12839rm -f conftest.err conftest.$ac_ext
12840if $ac_preproc_ok; then
12841 break
John Criswell7a73b802003-06-30 21:59:07 +000012842fi
12843
John Criswell47fdd832003-07-14 16:52:07 +000012844 done
12845 ac_cv_prog_CXXCPP=$CXXCPP
12846
12847fi
12848 CXXCPP=$ac_cv_prog_CXXCPP
12849else
12850 ac_cv_prog_CXXCPP=$CXXCPP
12851fi
Reid Spencera773bd52006-08-04 18:18:08 +000012852{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12853echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012854ac_preproc_ok=false
12855for ac_cxx_preproc_warn_flag in '' yes
12856do
12857 # Use a header file that comes with gcc, so configuring glibc
12858 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012861 # On the NeXT, cc -E runs the code through the compiler's parser,
12862 # not just through cpp. "Syntax error" is here to catch this case.
12863 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012864/* confdefs.h. */
12865_ACEOF
12866cat confdefs.h >>conftest.$ac_ext
12867cat >>conftest.$ac_ext <<_ACEOF
12868/* end confdefs.h. */
12869#ifdef __STDC__
12870# include <limits.h>
12871#else
12872# include <assert.h>
12873#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012874 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012875_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012876if { (ac_try="$ac_cpp conftest.$ac_ext"
12877case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12880esac
12881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012883 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012884 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012885 rm -f conftest.er1
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } >/dev/null; then
12889 if test -s conftest.err; then
12890 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012891 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012892 else
12893 ac_cpp_err=
12894 fi
12895else
12896 ac_cpp_err=yes
12897fi
12898if test -z "$ac_cpp_err"; then
12899 :
12900else
12901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012902sed 's/^/| /' conftest.$ac_ext >&5
12903
John Criswell47fdd832003-07-14 16:52:07 +000012904 # Broken: fails on valid input.
12905continue
12906fi
Reid Spencera773bd52006-08-04 18:18:08 +000012907
John Criswell47fdd832003-07-14 16:52:07 +000012908rm -f conftest.err conftest.$ac_ext
12909
Reid Spencera773bd52006-08-04 18:18:08 +000012910 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012911 # can be detected and how.
12912 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012913/* confdefs.h. */
12914_ACEOF
12915cat confdefs.h >>conftest.$ac_ext
12916cat >>conftest.$ac_ext <<_ACEOF
12917/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012918#include <ac_nonexistent.h>
12919_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012920if { (ac_try="$ac_cpp conftest.$ac_ext"
12921case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12924esac
12925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012927 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012928 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } >/dev/null; then
12933 if test -s conftest.err; then
12934 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012935 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012936 else
12937 ac_cpp_err=
12938 fi
12939else
12940 ac_cpp_err=yes
12941fi
12942if test -z "$ac_cpp_err"; then
12943 # Broken: success on invalid input.
12944continue
12945else
12946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012947sed 's/^/| /' conftest.$ac_ext >&5
12948
John Criswell47fdd832003-07-14 16:52:07 +000012949 # Passes both tests.
12950ac_preproc_ok=:
12951break
12952fi
Reid Spencera773bd52006-08-04 18:18:08 +000012953
John Criswell47fdd832003-07-14 16:52:07 +000012954rm -f conftest.err conftest.$ac_ext
12955
12956done
12957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12958rm -f conftest.err conftest.$ac_ext
12959if $ac_preproc_ok; then
12960 :
12961else
John Criswell0c38eaf2003-09-10 15:17:25 +000012962 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12963See \`config.log' for more details." >&5
12964echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12965See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012966 { (exit 1); exit 1; }; }
12967fi
12968
Reid Spencera773bd52006-08-04 18:18:08 +000012969ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012970ac_cpp='$CXXCPP $CPPFLAGS'
12971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12974
Reid Spencer2706f8c2004-09-19 23:53:36 +000012975fi
12976
John Criswell47fdd832003-07-14 16:52:07 +000012977
12978ac_ext=f
12979ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12980ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12982if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012983 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 +000012984 do
12985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012989if test "${ac_cv_prog_F77+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991else
12992 if test -n "$F77"; then
12993 ac_cv_prog_F77="$F77" # Let the user override the test.
12994else
12995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996for as_dir in $PATH
12997do
12998 IFS=$as_save_IFS
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013001 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 +000013002 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13004 break 2
13005 fi
13006done
13007done
Reid Spencera773bd52006-08-04 18:18:08 +000013008IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013009
13010fi
13011fi
13012F77=$ac_cv_prog_F77
13013if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013014 { echo "$as_me:$LINENO: result: $F77" >&5
13015echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013016else
Reid Spencera773bd52006-08-04 18:18:08 +000013017 { echo "$as_me:$LINENO: result: no" >&5
13018echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013019fi
13020
Reid Spencera773bd52006-08-04 18:18:08 +000013021
John Criswell47fdd832003-07-14 16:52:07 +000013022 test -n "$F77" && break
13023 done
13024fi
13025if test -z "$F77"; then
13026 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000013027 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 +000013028do
13029 # Extract the first word of "$ac_prog", so it can be a program name with args.
13030set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013033if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035else
13036 if test -n "$ac_ct_F77"; then
13037 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13038else
13039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $PATH
13041do
13042 IFS=$as_save_IFS
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013045 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 +000013046 ac_cv_prog_ac_ct_F77="$ac_prog"
13047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13048 break 2
13049 fi
13050done
13051done
Reid Spencera773bd52006-08-04 18:18:08 +000013052IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013053
13054fi
13055fi
13056ac_ct_F77=$ac_cv_prog_ac_ct_F77
13057if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013058 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13059echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013060else
Reid Spencera773bd52006-08-04 18:18:08 +000013061 { echo "$as_me:$LINENO: result: no" >&5
13062echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013063fi
13064
Reid Spencera773bd52006-08-04 18:18:08 +000013065
John Criswell47fdd832003-07-14 16:52:07 +000013066 test -n "$ac_ct_F77" && break
13067done
13068
Reid Spencera773bd52006-08-04 18:18:08 +000013069 if test "x$ac_ct_F77" = x; then
13070 F77=""
13071 else
13072 case $cross_compiling:$ac_tool_warned in
13073yes:)
13074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13075whose name does not start with the host triplet. If you think this
13076configuration is useful to you, please write to autoconf@gnu.org." >&5
13077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13078whose name does not start with the host triplet. If you think this
13079configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13080ac_tool_warned=yes ;;
13081esac
13082 F77=$ac_ct_F77
13083 fi
John Criswell47fdd832003-07-14 16:52:07 +000013084fi
13085
13086
13087# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013088echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013089ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013090{ (ac_try="$ac_compiler --version >&5"
13091case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094esac
13095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013100{ (ac_try="$ac_compiler -v >&5"
13101case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104esac
13105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013110{ (ac_try="$ac_compiler -V >&5"
13111case "(($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_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013120rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013121
13122# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013123# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013124ac_save_ext=$ac_ext
13125ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013126{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13127echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013128if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130else
13131 cat >conftest.$ac_ext <<_ACEOF
13132 program main
13133#ifndef __GNUC__
13134 choke me
13135#endif
13136
13137 end
13138_ACEOF
13139rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013140if { (ac_try="$ac_compile"
13141case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144esac
13145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013153 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157esac
13158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; } &&
13163 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013164 { (case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167esac
13168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_compiler_gnu=yes
13174else
13175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013176sed 's/^/| /' conftest.$ac_ext >&5
13177
Reid Spencera773bd52006-08-04 18:18:08 +000013178 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013179fi
Reid Spencera773bd52006-08-04 18:18:08 +000013180
13181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013182ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13183
13184fi
Reid Spencera773bd52006-08-04 18:18:08 +000013185{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13186echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013187ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013188ac_test_FFLAGS=${FFLAGS+set}
13189ac_save_FFLAGS=$FFLAGS
13190FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013191{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13192echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013193if test "${ac_cv_prog_f77_g+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195else
13196 FFLAGS=-g
13197cat >conftest.$ac_ext <<_ACEOF
13198 program main
13199
13200 end
13201_ACEOF
13202rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013203if { (ac_try="$ac_compile"
13204case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207esac
13208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013210 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013216 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13217 { (case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220esac
13221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013227 { (case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 ac_cv_prog_f77_g=yes
13237else
13238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013239sed 's/^/| /' conftest.$ac_ext >&5
13240
Reid Spencera773bd52006-08-04 18:18:08 +000013241 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013242fi
Reid Spencera773bd52006-08-04 18:18:08 +000013243
13244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013245
13246fi
Reid Spencera773bd52006-08-04 18:18:08 +000013247{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13248echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013249if test "$ac_test_FFLAGS" = set; then
13250 FFLAGS=$ac_save_FFLAGS
13251elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013252 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013253 FFLAGS="-g -O2"
13254 else
13255 FFLAGS="-g"
13256 fi
13257else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013258 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013259 FFLAGS="-O2"
13260 else
13261 FFLAGS=
13262 fi
13263fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013264
13265G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013266ac_ext=c
13267ac_cpp='$CPP $CPPFLAGS'
13268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13270ac_compiler_gnu=$ac_cv_c_compiler_gnu
13271
13272
13273
13274# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13275
13276# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013277{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13278echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013279if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013283 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013284
13285 case $build_os in
13286 msdosdjgpp*)
13287 # On DJGPP, this test can blow up pretty badly due to problems in libc
13288 # (any single argument exceeding 2000 bytes causes a buffer overrun
13289 # during glob expansion). Even if it were fixed, the result of this
13290 # check would be larger than it should be.
13291 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13292 ;;
13293
13294 gnu*)
13295 # Under GNU Hurd, this test is not required because there is
13296 # no limit to the length of command line arguments.
13297 # Libtool will interpret -1 as no limit whatsoever
13298 lt_cv_sys_max_cmd_len=-1;
13299 ;;
13300
13301 cygwin* | mingw*)
13302 # On Win9x/ME, this test blows up -- it succeeds, but takes
13303 # about 5 minutes as the teststring grows exponentially.
13304 # Worse, since 9x/ME are not pre-emptively multitasking,
13305 # you end up with a "frozen" computer, even though with patience
13306 # the test eventually succeeds (with a max line length of 256k).
13307 # Instead, let's just punt: use the minimum linelength reported by
13308 # all of the supported platforms: 8192 (on NT/2K/XP).
13309 lt_cv_sys_max_cmd_len=8192;
13310 ;;
13311
Reid Spencer2706f8c2004-09-19 23:53:36 +000013312 amigaos*)
13313 # On AmigaOS with pdksh, this test takes hours, literally.
13314 # So we just punt and use a minimum line length of 8192.
13315 lt_cv_sys_max_cmd_len=8192;
13316 ;;
13317
Reid Spencera773bd52006-08-04 18:18:08 +000013318 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013319 # This has been around since 386BSD, at least. Likely further.
13320 if test -x /sbin/sysctl; then
13321 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13322 elif test -x /usr/sbin/sysctl; then
13323 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13324 else
Reid Spencera773bd52006-08-04 18:18:08 +000013325 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013326 fi
13327 # And add a safety zone
13328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013330 ;;
13331
Reid Spencera773bd52006-08-04 18:18:08 +000013332 interix*)
13333 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13334 lt_cv_sys_max_cmd_len=196608
13335 ;;
13336
13337 osf*)
13338 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13339 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13340 # nice to cause kernel panics so lets avoid the loop below.
13341 # First set a reasonable default.
13342 lt_cv_sys_max_cmd_len=16384
13343 #
13344 if test -x /sbin/sysconfig; then
13345 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13346 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13347 esac
13348 fi
13349 ;;
13350 sco3.2v5*)
13351 lt_cv_sys_max_cmd_len=102400
13352 ;;
13353 sysv5* | sco5v6* | sysv4.2uw2*)
13354 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13355 if test -n "$kargmax"; then
13356 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13357 else
13358 lt_cv_sys_max_cmd_len=32768
13359 fi
13360 ;;
13361 *)
John Criswell47fdd832003-07-14 16:52:07 +000013362 # If test is not a shell built-in, we'll probably end up computing a
13363 # maximum length that is only half of the actual maximum length, but
13364 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013365 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13366 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13367 = "XX$teststring") >/dev/null 2>&1 &&
13368 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013369 lt_cv_sys_max_cmd_len=$new_result &&
13370 test $i != 17 # 1/2 MB should be enough
13371 do
13372 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013373 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013374 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013375 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013376 # Add a significant safety factor because C++ compilers can tack on massive
13377 # amounts of additional arguments before passing them to the linker.
13378 # It appears as though 1/2 is a usable value.
13379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13380 ;;
13381 esac
13382
13383fi
13384
13385if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013386 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13387echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013388else
Reid Spencera773bd52006-08-04 18:18:08 +000013389 { echo "$as_me:$LINENO: result: none" >&5
13390echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013391fi
13392
13393
13394
13395
13396# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013397{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13398echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013399if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401else
13402
13403# These are sane defaults that work on at least a few old systems.
13404# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13405
13406# Character class describing NM global symbol codes.
13407symcode='[BCDEGRST]'
13408
13409# Regexp to match symbols that can be accessed directly from C.
13410sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13411
John Criswell47fdd832003-07-14 16:52:07 +000013412# Transform an extracted symbol line into a proper C declaration
13413lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13414
13415# Transform an extracted symbol line into symbol name and symbol address
13416lt_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'"
13417
13418# Define system-specific variables.
13419case $host_os in
13420aix*)
13421 symcode='[BCDT]'
13422 ;;
13423cygwin* | mingw* | pw32*)
13424 symcode='[ABCDGISTW]'
13425 ;;
13426hpux*) # Its linker distinguishes data from code symbols
13427 if test "$host_cpu" = ia64; then
13428 symcode='[ABCDEGRST]'
13429 fi
13430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13431 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'"
13432 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013433linux*)
13434 if test "$host_cpu" = ia64; then
13435 symcode='[ABCDGIRSTW]'
13436 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13437 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'"
13438 fi
13439 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013440irix* | nonstopux*)
13441 symcode='[BCDEGRST]'
13442 ;;
13443osf*)
13444 symcode='[BCDEGQRST]'
13445 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013446solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013447 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013448 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013449sco3.2v5*)
13450 symcode='[DT]'
13451 ;;
13452sysv4.2uw2*)
13453 symcode='[DT]'
13454 ;;
13455sysv5* | sco5v6* | unixware* | OpenUNIX*)
13456 symcode='[ABDT]'
13457 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013458sysv4)
13459 symcode='[DFNSTU]'
13460 ;;
13461esac
13462
13463# Handle CRLF in mingw tool chain
13464opt_cr=
13465case $build_os in
13466mingw*)
13467 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13468 ;;
13469esac
13470
13471# If we're using GNU nm, then use its standard symbol codes.
13472case `$NM -V 2>&1` in
13473*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013474 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013475esac
13476
13477# Try without a prefix undercore, then with it.
13478for ac_symprfx in "" "_"; do
13479
Reid Spencera773bd52006-08-04 18:18:08 +000013480 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13481 symxfrm="\\1 $ac_symprfx\\2 \\2"
13482
John Criswell47fdd832003-07-14 16:52:07 +000013483 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013484 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 +000013485
13486 # Check to see that the pipe works correctly.
13487 pipe_works=no
13488
13489 rm -f conftest*
13490 cat > conftest.$ac_ext <<EOF
13491#ifdef __cplusplus
13492extern "C" {
13493#endif
13494char nm_test_var;
13495void nm_test_func(){}
13496#ifdef __cplusplus
13497}
13498#endif
13499int main(){nm_test_var='a';nm_test_func();return(0);}
13500EOF
13501
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; then
13507 # Now try to grab the symbols.
13508 nlist=conftest.nm
13509 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13510 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && test -s "$nlist"; then
13514 # Try sorting and uniquifying the output.
13515 if sort "$nlist" | uniq > "$nlist"T; then
13516 mv -f "$nlist"T "$nlist"
13517 else
13518 rm -f "$nlist"T
13519 fi
13520
13521 # Make sure that we snagged all the symbols we need.
13522 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13523 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13524 cat <<EOF > conftest.$ac_ext
13525#ifdef __cplusplus
13526extern "C" {
13527#endif
13528
13529EOF
13530 # Now generate the symbol file.
13531 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13532
13533 cat <<EOF >> conftest.$ac_ext
13534#if defined (__STDC__) && __STDC__
13535# define lt_ptr_t void *
13536#else
13537# define lt_ptr_t char *
13538# define const
13539#endif
13540
13541/* The mapping between symbol names and symbols. */
13542const struct {
13543 const char *name;
13544 lt_ptr_t address;
13545}
13546lt_preloaded_symbols[] =
13547{
13548EOF
13549 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13550 cat <<\EOF >> conftest.$ac_ext
13551 {0, (lt_ptr_t) 0}
13552};
13553
13554#ifdef __cplusplus
13555}
13556#endif
13557EOF
13558 # Now try linking the two files.
13559 mv conftest.$ac_objext conftstm.$ac_objext
13560 lt_save_LIBS="$LIBS"
13561 lt_save_CFLAGS="$CFLAGS"
13562 LIBS="conftstm.$ac_objext"
13563 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565 (eval $ac_link) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13569 pipe_works=yes
13570 fi
13571 LIBS="$lt_save_LIBS"
13572 CFLAGS="$lt_save_CFLAGS"
13573 else
13574 echo "cannot find nm_test_func in $nlist" >&5
13575 fi
13576 else
13577 echo "cannot find nm_test_var in $nlist" >&5
13578 fi
13579 else
13580 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13581 fi
13582 else
13583 echo "$progname: failed program was:" >&5
13584 cat conftest.$ac_ext >&5
13585 fi
13586 rm -f conftest* conftst*
13587
13588 # Do not use the global_symbol_pipe unless it works.
13589 if test "$pipe_works" = yes; then
13590 break
13591 else
13592 lt_cv_sys_global_symbol_pipe=
13593 fi
13594done
13595
13596fi
13597
13598if test -z "$lt_cv_sys_global_symbol_pipe"; then
13599 lt_cv_sys_global_symbol_to_cdecl=
13600fi
13601if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013602 { echo "$as_me:$LINENO: result: failed" >&5
13603echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013604else
Reid Spencera773bd52006-08-04 18:18:08 +000013605 { echo "$as_me:$LINENO: result: ok" >&5
13606echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013607fi
13608
Reid Spencera773bd52006-08-04 18:18:08 +000013609{ echo "$as_me:$LINENO: checking for objdir" >&5
13610echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013611if test "${lt_cv_objdir+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614 rm -f .libs 2>/dev/null
13615mkdir .libs 2>/dev/null
13616if test -d .libs; then
13617 lt_cv_objdir=.libs
13618else
13619 # MS-DOS does not allow filenames that begin with a dot.
13620 lt_cv_objdir=_libs
13621fi
13622rmdir .libs 2>/dev/null
13623fi
Reid Spencera773bd52006-08-04 18:18:08 +000013624{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13625echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013626objdir=$lt_cv_objdir
13627
13628
13629
13630
13631
13632case $host_os in
13633aix3*)
13634 # AIX sometimes has problems with the GCC collect2 program. For some
13635 # reason, if we set the COLLECT_NAMES environment variable, the problems
13636 # vanish in a puff of smoke.
13637 if test "X${COLLECT_NAMES+set}" != Xset; then
13638 COLLECT_NAMES=
13639 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013640 fi
13641 ;;
13642esac
13643
John Criswell47fdd832003-07-14 16:52:07 +000013644# Sed substitution that helps us do robust quoting. It backslashifies
13645# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013646Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013647sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13648
13649# Same as above, but do not quote variable references.
13650double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13651
13652# Sed substitution to delay expansion of an escaped shell variable in a
13653# double_quote_subst'ed string.
13654delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13655
13656# Sed substitution to avoid accidental globbing in evaled expressions
13657no_glob_subst='s/\*/\\\*/g'
13658
13659# Constants:
13660rm="rm -f"
13661
13662# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013663default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013664can_build_shared=yes
13665
Reid Spencera773bd52006-08-04 18:18:08 +000013666# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013667# which needs '.lib').
13668libext=a
13669ltmain="$ac_aux_dir/ltmain.sh"
13670ofile="$default_ofile"
13671with_gnu_ld="$lt_cv_prog_gnu_ld"
13672
13673if test -n "$ac_tool_prefix"; then
13674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13675set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013678if test "${ac_cv_prog_AR+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13680else
13681 if test -n "$AR"; then
13682 ac_cv_prog_AR="$AR" # Let the user override the test.
13683else
13684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685for as_dir in $PATH
13686do
13687 IFS=$as_save_IFS
13688 test -z "$as_dir" && as_dir=.
13689 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013690 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 +000013691 ac_cv_prog_AR="${ac_tool_prefix}ar"
13692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13693 break 2
13694 fi
13695done
13696done
Reid Spencera773bd52006-08-04 18:18:08 +000013697IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013698
13699fi
13700fi
13701AR=$ac_cv_prog_AR
13702if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013703 { echo "$as_me:$LINENO: result: $AR" >&5
13704echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013705else
Reid Spencera773bd52006-08-04 18:18:08 +000013706 { echo "$as_me:$LINENO: result: no" >&5
13707echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013708fi
13709
Reid Spencera773bd52006-08-04 18:18:08 +000013710
John Criswell47fdd832003-07-14 16:52:07 +000013711fi
13712if test -z "$ac_cv_prog_AR"; then
13713 ac_ct_AR=$AR
13714 # Extract the first word of "ar", so it can be a program name with args.
13715set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013718if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720else
13721 if test -n "$ac_ct_AR"; then
13722 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13723else
13724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725for as_dir in $PATH
13726do
13727 IFS=$as_save_IFS
13728 test -z "$as_dir" && as_dir=.
13729 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013730 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 +000013731 ac_cv_prog_ac_ct_AR="ar"
13732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13733 break 2
13734 fi
13735done
13736done
Reid Spencera773bd52006-08-04 18:18:08 +000013737IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013738
John Criswell47fdd832003-07-14 16:52:07 +000013739fi
13740fi
13741ac_ct_AR=$ac_cv_prog_ac_ct_AR
13742if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013743 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13744echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013745else
Reid Spencera773bd52006-08-04 18:18:08 +000013746 { echo "$as_me:$LINENO: result: no" >&5
13747echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013748fi
13749
Reid Spencera773bd52006-08-04 18:18:08 +000013750 if test "x$ac_ct_AR" = x; then
13751 AR="false"
13752 else
13753 case $cross_compiling:$ac_tool_warned in
13754yes:)
13755{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13756whose name does not start with the host triplet. If you think this
13757configuration is useful to you, please write to autoconf@gnu.org." >&5
13758echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13759whose name does not start with the host triplet. If you think this
13760configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13761ac_tool_warned=yes ;;
13762esac
13763 AR=$ac_ct_AR
13764 fi
John Criswell47fdd832003-07-14 16:52:07 +000013765else
13766 AR="$ac_cv_prog_AR"
13767fi
13768
John Criswell7a73b802003-06-30 21:59:07 +000013769if test -n "$ac_tool_prefix"; then
13770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13771set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013774if test "${ac_cv_prog_RANLIB+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777 if test -n "$RANLIB"; then
13778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13779else
13780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781for as_dir in $PATH
13782do
13783 IFS=$as_save_IFS
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013786 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 +000013787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 break 2
13790 fi
13791done
13792done
Reid Spencera773bd52006-08-04 18:18:08 +000013793IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013794
13795fi
13796fi
13797RANLIB=$ac_cv_prog_RANLIB
13798if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013799 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13800echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013801else
Reid Spencera773bd52006-08-04 18:18:08 +000013802 { echo "$as_me:$LINENO: result: no" >&5
13803echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013804fi
13805
Reid Spencera773bd52006-08-04 18:18:08 +000013806
John Criswell7a73b802003-06-30 21:59:07 +000013807fi
13808if test -z "$ac_cv_prog_RANLIB"; then
13809 ac_ct_RANLIB=$RANLIB
13810 # Extract the first word of "ranlib", so it can be a program name with args.
13811set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013814if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817 if test -n "$ac_ct_RANLIB"; then
13818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13819else
13820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821for as_dir in $PATH
13822do
13823 IFS=$as_save_IFS
13824 test -z "$as_dir" && as_dir=.
13825 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013826 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 +000013827 ac_cv_prog_ac_ct_RANLIB="ranlib"
13828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13829 break 2
13830 fi
13831done
13832done
Reid Spencera773bd52006-08-04 18:18:08 +000013833IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013834
John Criswell7a73b802003-06-30 21:59:07 +000013835fi
13836fi
13837ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13838if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013839 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13840echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013841else
Reid Spencera773bd52006-08-04 18:18:08 +000013842 { echo "$as_me:$LINENO: result: no" >&5
13843echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013844fi
13845
Reid Spencera773bd52006-08-04 18:18:08 +000013846 if test "x$ac_ct_RANLIB" = x; then
13847 RANLIB=":"
13848 else
13849 case $cross_compiling:$ac_tool_warned in
13850yes:)
13851{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13852whose name does not start with the host triplet. If you think this
13853configuration is useful to you, please write to autoconf@gnu.org." >&5
13854echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13855whose name does not start with the host triplet. If you think this
13856configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13857ac_tool_warned=yes ;;
13858esac
13859 RANLIB=$ac_ct_RANLIB
13860 fi
John Criswell7a73b802003-06-30 21:59:07 +000013861else
13862 RANLIB="$ac_cv_prog_RANLIB"
13863fi
13864
13865if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13867set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013870if test "${ac_cv_prog_STRIP+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 if test -n "$STRIP"; then
13874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13875else
13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888done
Reid Spencera773bd52006-08-04 18:18:08 +000013889IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013890
13891fi
13892fi
13893STRIP=$ac_cv_prog_STRIP
13894if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013895 { echo "$as_me:$LINENO: result: $STRIP" >&5
13896echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013897else
Reid Spencera773bd52006-08-04 18:18:08 +000013898 { echo "$as_me:$LINENO: result: no" >&5
13899echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013900fi
13901
Reid Spencera773bd52006-08-04 18:18:08 +000013902
John Criswell7a73b802003-06-30 21:59:07 +000013903fi
13904if test -z "$ac_cv_prog_STRIP"; then
13905 ac_ct_STRIP=$STRIP
13906 # Extract the first word of "strip", so it can be a program name with args.
13907set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013910if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912else
13913 if test -n "$ac_ct_STRIP"; then
13914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13915else
13916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917for as_dir in $PATH
13918do
13919 IFS=$as_save_IFS
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013922 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 +000013923 ac_cv_prog_ac_ct_STRIP="strip"
13924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 break 2
13926 fi
13927done
13928done
Reid Spencera773bd52006-08-04 18:18:08 +000013929IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013930
John Criswell7a73b802003-06-30 21:59:07 +000013931fi
13932fi
13933ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13934if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013935 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13936echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013937else
Reid Spencera773bd52006-08-04 18:18:08 +000013938 { echo "$as_me:$LINENO: result: no" >&5
13939echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013940fi
13941
Reid Spencera773bd52006-08-04 18:18:08 +000013942 if test "x$ac_ct_STRIP" = x; then
13943 STRIP=":"
13944 else
13945 case $cross_compiling:$ac_tool_warned in
13946yes:)
13947{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13948whose name does not start with the host triplet. If you think this
13949configuration is useful to you, please write to autoconf@gnu.org." >&5
13950echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13951whose name does not start with the host triplet. If you think this
13952configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13953ac_tool_warned=yes ;;
13954esac
13955 STRIP=$ac_ct_STRIP
13956 fi
John Criswell7a73b802003-06-30 21:59:07 +000013957else
13958 STRIP="$ac_cv_prog_STRIP"
13959fi
13960
13961
John Criswell7a73b802003-06-30 21:59:07 +000013962old_CC="$CC"
13963old_CFLAGS="$CFLAGS"
13964
13965# Set sane defaults for various variables
13966test -z "$AR" && AR=ar
13967test -z "$AR_FLAGS" && AR_FLAGS=cru
13968test -z "$AS" && AS=as
13969test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013970test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013971test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013972test -z "$DLLTOOL" && DLLTOOL=dlltool
13973test -z "$LD" && LD=ld
13974test -z "$LN_S" && LN_S="ln -s"
13975test -z "$MAGIC_CMD" && MAGIC_CMD=file
13976test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013977test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013978test -z "$OBJDUMP" && OBJDUMP=objdump
13979test -z "$RANLIB" && RANLIB=:
13980test -z "$STRIP" && STRIP=:
13981test -z "$ac_objext" && ac_objext=o
13982
John Criswell7a73b802003-06-30 21:59:07 +000013983# Determine commands to create old-style static archives.
13984old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13985old_postinstall_cmds='chmod 644 $oldlib'
13986old_postuninstall_cmds=
13987
13988if test -n "$RANLIB"; then
13989 case $host_os in
13990 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013992 ;;
13993 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013995 ;;
13996 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013998fi
13999
Reid Spencera773bd52006-08-04 18:18:08 +000014000for cc_temp in $compiler""; do
14001 case $cc_temp in
14002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14004 \-*) ;;
14005 *) break;;
14006 esac
14007done
14008cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14009
Reid Spencer2706f8c2004-09-19 23:53:36 +000014010
John Criswell47fdd832003-07-14 16:52:07 +000014011# Only perform the check for file, if the check method requires it
14012case $deplibs_check_method in
14013file_magic*)
14014 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014015 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14016echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014017if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014019else
John Criswell47fdd832003-07-14 16:52:07 +000014020 case $MAGIC_CMD in
14021[\\/*] | ?:[\\/]*)
14022 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14023 ;;
14024*)
14025 lt_save_MAGIC_CMD="$MAGIC_CMD"
14026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14027 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14028 for ac_dir in $ac_dummy; do
14029 IFS="$lt_save_ifs"
14030 test -z "$ac_dir" && ac_dir=.
14031 if test -f $ac_dir/${ac_tool_prefix}file; then
14032 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14033 if test -n "$file_magic_test_file"; then
14034 case $deplibs_check_method in
14035 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014036 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14038 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14039 $EGREP "$file_magic_regex" > /dev/null; then
14040 :
14041 else
14042 cat <<EOF 1>&2
14043
14044*** Warning: the command libtool uses to detect shared libraries,
14045*** $file_magic_cmd, produces output that libtool cannot recognize.
14046*** The result is that libtool may fail to recognize shared libraries
14047*** as such. This will affect the creation of libtool libraries that
14048*** depend on shared libraries, but programs linked with such libtool
14049*** libraries will work regardless of this problem. Nevertheless, you
14050*** may want to report the problem to your system manager and/or to
14051*** bug-libtool@gnu.org
14052
14053EOF
14054 fi ;;
14055 esac
14056 fi
14057 break
14058 fi
14059 done
14060 IFS="$lt_save_ifs"
14061 MAGIC_CMD="$lt_save_MAGIC_CMD"
14062 ;;
14063esac
John Criswell7a73b802003-06-30 21:59:07 +000014064fi
John Criswell7a73b802003-06-30 21:59:07 +000014065
John Criswell47fdd832003-07-14 16:52:07 +000014066MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14067if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014068 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14069echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014070else
Reid Spencera773bd52006-08-04 18:18:08 +000014071 { echo "$as_me:$LINENO: result: no" >&5
14072echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014073fi
John Criswell7a73b802003-06-30 21:59:07 +000014074
John Criswell47fdd832003-07-14 16:52:07 +000014075if test -z "$lt_cv_path_MAGIC_CMD"; then
14076 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014077 { echo "$as_me:$LINENO: checking for file" >&5
14078echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014079if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 case $MAGIC_CMD in
14083[\\/*] | ?:[\\/]*)
14084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14085 ;;
14086*)
14087 lt_save_MAGIC_CMD="$MAGIC_CMD"
14088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14090 for ac_dir in $ac_dummy; do
14091 IFS="$lt_save_ifs"
14092 test -z "$ac_dir" && ac_dir=.
14093 if test -f $ac_dir/file; then
14094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14095 if test -n "$file_magic_test_file"; then
14096 case $deplibs_check_method in
14097 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14101 $EGREP "$file_magic_regex" > /dev/null; then
14102 :
14103 else
14104 cat <<EOF 1>&2
14105
14106*** Warning: the command libtool uses to detect shared libraries,
14107*** $file_magic_cmd, produces output that libtool cannot recognize.
14108*** The result is that libtool may fail to recognize shared libraries
14109*** as such. This will affect the creation of libtool libraries that
14110*** depend on shared libraries, but programs linked with such libtool
14111*** libraries will work regardless of this problem. Nevertheless, you
14112*** may want to report the problem to your system manager and/or to
14113*** bug-libtool@gnu.org
14114
14115EOF
14116 fi ;;
14117 esac
14118 fi
14119 break
14120 fi
14121 done
14122 IFS="$lt_save_ifs"
14123 MAGIC_CMD="$lt_save_MAGIC_CMD"
14124 ;;
14125esac
14126fi
14127
14128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14129if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014130 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14131echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014132else
Reid Spencera773bd52006-08-04 18:18:08 +000014133 { echo "$as_me:$LINENO: result: no" >&5
14134echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014135fi
14136
14137 else
14138 MAGIC_CMD=:
14139 fi
14140fi
14141
14142 fi
14143 ;;
14144esac
14145
Reid Spencer17795972004-11-18 09:47:37 +000014146enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014147enable_win32_dll=no
14148
Reid Spencera773bd52006-08-04 18:18:08 +000014149# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014150if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014151 enableval=$enable_libtool_lock;
14152fi
John Criswell47fdd832003-07-14 16:52:07 +000014153
John Criswell47fdd832003-07-14 16:52:07 +000014154test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14155
John Criswell7a73b802003-06-30 21:59:07 +000014156
Reid Spencera773bd52006-08-04 18:18:08 +000014157# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014158if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014159 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014160else
14161 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014162fi
14163
John Criswell7a73b802003-06-30 21:59:07 +000014164test -z "$pic_mode" && pic_mode=default
14165
John Criswell47fdd832003-07-14 16:52:07 +000014166# Use C for the default configuration in the libtool script
14167tagname=
14168lt_save_CC="$CC"
14169ac_ext=c
14170ac_cpp='$CPP $CPPFLAGS'
14171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173ac_compiler_gnu=$ac_cv_c_compiler_gnu
14174
14175
14176# Source file extension for C test sources.
14177ac_ext=c
14178
14179# Object file extension for compiled C test sources.
14180objext=o
14181objext=$objext
14182
14183# Code to be used in simple compile tests
14184lt_simple_compile_test_code="int some_variable = 0;\n"
14185
14186# Code to be used in simple link tests
14187lt_simple_link_test_code='int main(){return(0);}\n'
14188
14189
14190# If no C compiler was specified, use CC.
14191LTCC=${LTCC-"$CC"}
14192
Reid Spencera773bd52006-08-04 18:18:08 +000014193# If no C compiler flags were specified, use CFLAGS.
14194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14195
John Criswell47fdd832003-07-14 16:52:07 +000014196# Allow CC to be a program name with arguments.
14197compiler=$CC
14198
14199
Reid Spencera773bd52006-08-04 18:18:08 +000014200# save warnings/boilerplate of simple test code
14201ac_outfile=conftest.$ac_objext
14202printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14204_lt_compiler_boilerplate=`cat conftest.err`
14205$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014206
Reid Spencera773bd52006-08-04 18:18:08 +000014207ac_outfile=conftest.$ac_objext
14208printf "$lt_simple_link_test_code" >conftest.$ac_ext
14209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14210_lt_linker_boilerplate=`cat conftest.err`
14211$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014212
14213
John Criswell47fdd832003-07-14 16:52:07 +000014214
14215lt_prog_compiler_no_builtin_flag=
14216
14217if test "$GCC" = yes; then
14218 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14219
Reid Spencer2706f8c2004-09-19 23:53:36 +000014220
Reid Spencera773bd52006-08-04 18:18:08 +000014221{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14222echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014223if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 lt_cv_prog_compiler_rtti_exceptions=no
14227 ac_outfile=conftest.$ac_objext
14228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14229 lt_compiler_flag="-fno-rtti -fno-exceptions"
14230 # Insert the option either (1) after the last *FLAGS variable, or
14231 # (2) before a word containing "conftest.", or (3) at the end.
14232 # Note that $ac_compile itself does not contain backslashes and begins
14233 # with a dollar sign (not a hyphen), so the echo should work correctly.
14234 # The option is referenced via a variable to avoid confusing sed.
14235 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14238 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000014239 (eval echo "\"\$as_me:14239: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014240 (eval "$lt_compile" 2>conftest.err)
14241 ac_status=$?
14242 cat conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000014243 echo "$as_me:14243: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014244 if (exit $ac_status) && test -s "$ac_outfile"; then
14245 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014246 # So say no if there are warnings other than the usual output.
14247 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014250 lt_cv_prog_compiler_rtti_exceptions=yes
14251 fi
14252 fi
14253 $rm conftest*
14254
14255fi
Reid Spencera773bd52006-08-04 18:18:08 +000014256{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14257echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014258
14259if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14260 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14261else
14262 :
14263fi
14264
14265fi
14266
14267lt_prog_compiler_wl=
14268lt_prog_compiler_pic=
14269lt_prog_compiler_static=
14270
Reid Spencera773bd52006-08-04 18:18:08 +000014271{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14272echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014273
14274 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014275 lt_prog_compiler_wl='-Wl,'
14276 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014277
14278 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014279 aix*)
14280 # All AIX code is PIC.
14281 if test "$host_cpu" = ia64; then
14282 # AIX 5 now supports IA64 processor
14283 lt_prog_compiler_static='-Bstatic'
14284 fi
John Criswell7a73b802003-06-30 21:59:07 +000014285 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014286
John Criswell7a73b802003-06-30 21:59:07 +000014287 amigaos*)
14288 # FIXME: we need at least 68020 code to build shared libraries, but
14289 # adding the `-m68020' flag to GCC prevents building anything better,
14290 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014291 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014292 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014293
14294 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014295 # PIC is the default for these OSes.
14296 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014297
14298 mingw* | pw32* | os2*)
14299 # This hack is so that the source file can tell whether it is being
14300 # built for inclusion in a dll (and should export symbols for example).
14301 lt_prog_compiler_pic='-DDLL_EXPORT'
14302 ;;
14303
John Criswell7a73b802003-06-30 21:59:07 +000014304 darwin* | rhapsody*)
14305 # PIC is the default on this platform
14306 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014307 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014308 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014309
Reid Spencera773bd52006-08-04 18:18:08 +000014310 interix3*)
14311 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14312 # Instead, we relocate shared libraries at runtime.
14313 ;;
14314
John Criswell47fdd832003-07-14 16:52:07 +000014315 msdosdjgpp*)
14316 # Just because we use GCC doesn't mean we suddenly get shared libraries
14317 # on systems that don't support them.
14318 lt_prog_compiler_can_build_shared=no
14319 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014320 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014321
John Criswell7a73b802003-06-30 21:59:07 +000014322 sysv4*MP*)
14323 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014324 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014325 fi
14326 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014327
14328 hpux*)
14329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14330 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014331 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014332 hppa*64*|ia64*)
14333 # +Z the default
14334 ;;
14335 *)
14336 lt_prog_compiler_pic='-fPIC'
14337 ;;
14338 esac
14339 ;;
14340
John Criswell7a73b802003-06-30 21:59:07 +000014341 *)
John Criswell47fdd832003-07-14 16:52:07 +000014342 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014343 ;;
14344 esac
14345 else
John Criswell47fdd832003-07-14 16:52:07 +000014346 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014347 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014348 aix*)
14349 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014350 if test "$host_cpu" = ia64; then
14351 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014352 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014353 else
John Criswell47fdd832003-07-14 16:52:07 +000014354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014355 fi
14356 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014357 darwin*)
14358 # PIC is the default on this platform
14359 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014360 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014361 xlc*)
14362 lt_prog_compiler_pic='-qnocommon'
14363 lt_prog_compiler_wl='-Wl,'
14364 ;;
14365 esac
14366 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014367
John Criswell47fdd832003-07-14 16:52:07 +000014368 mingw* | pw32* | os2*)
14369 # This hack is so that the source file can tell whether it is being
14370 # built for inclusion in a dll (and should export symbols for example).
14371 lt_prog_compiler_pic='-DDLL_EXPORT'
14372 ;;
14373
John Criswell7a73b802003-06-30 21:59:07 +000014374 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014375 lt_prog_compiler_wl='-Wl,'
14376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14377 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014378 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014379 hppa*64*|ia64*)
14380 # +Z the default
14381 ;;
14382 *)
14383 lt_prog_compiler_pic='+Z'
14384 ;;
14385 esac
14386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14387 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014388 ;;
14389
John Criswell47fdd832003-07-14 16:52:07 +000014390 irix5* | irix6* | nonstopux*)
14391 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014392 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014393 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014394 ;;
14395
14396 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014397 lt_prog_compiler_pic='-KPIC'
14398 lt_prog_compiler_static='-Bstatic'
14399 ;;
14400
14401 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014402 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014403 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014404 lt_prog_compiler_wl='-Wl,'
14405 lt_prog_compiler_pic='-KPIC'
14406 lt_prog_compiler_static='-static'
14407 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014408 pgcc* | pgf77* | pgf90* | pgf95*)
14409 # Portland Group compilers (*not* the Pentium gcc compiler,
14410 # which looks to be a dead project)
14411 lt_prog_compiler_wl='-Wl,'
14412 lt_prog_compiler_pic='-fpic'
14413 lt_prog_compiler_static='-Bstatic'
14414 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014415 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014416 lt_prog_compiler_wl='-Wl,'
14417 # All Alpha code is PIC.
14418 lt_prog_compiler_static='-non_shared'
14419 ;;
14420 esac
John Criswell7a73b802003-06-30 21:59:07 +000014421 ;;
14422
14423 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014424 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014425 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014426 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014427 ;;
14428
John Criswell7a73b802003-06-30 21:59:07 +000014429 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014430 lt_prog_compiler_pic='-KPIC'
14431 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014432 case $cc_basename in
14433 f77* | f90* | f95*)
14434 lt_prog_compiler_wl='-Qoption ld ';;
14435 *)
14436 lt_prog_compiler_wl='-Wl,';;
14437 esac
John Criswell7a73b802003-06-30 21:59:07 +000014438 ;;
14439
14440 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014441 lt_prog_compiler_wl='-Qoption ld '
14442 lt_prog_compiler_pic='-PIC'
14443 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014444 ;;
14445
Reid Spencera773bd52006-08-04 18:18:08 +000014446 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014447 lt_prog_compiler_wl='-Wl,'
14448 lt_prog_compiler_pic='-KPIC'
14449 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014450 ;;
14451
14452 sysv4*MP*)
14453 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014454 lt_prog_compiler_pic='-Kconform_pic'
14455 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014456 fi
14457 ;;
14458
Reid Spencera773bd52006-08-04 18:18:08 +000014459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-KPIC'
14462 lt_prog_compiler_static='-Bstatic'
14463 ;;
14464
14465 unicos*)
14466 lt_prog_compiler_wl='-Wl,'
14467 lt_prog_compiler_can_build_shared=no
14468 ;;
14469
John Criswell47fdd832003-07-14 16:52:07 +000014470 uts4*)
14471 lt_prog_compiler_pic='-pic'
14472 lt_prog_compiler_static='-Bstatic'
14473 ;;
14474
John Criswell7a73b802003-06-30 21:59:07 +000014475 *)
John Criswell47fdd832003-07-14 16:52:07 +000014476 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014477 ;;
14478 esac
14479 fi
14480
Reid Spencera773bd52006-08-04 18:18:08 +000014481{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14482echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014483
John Criswell47fdd832003-07-14 16:52:07 +000014484#
14485# Check to make sure the PIC flag actually works.
14486#
14487if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014488
Reid Spencera773bd52006-08-04 18:18:08 +000014489{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14490echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014491if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493else
John Criswell47fdd832003-07-14 16:52:07 +000014494 lt_prog_compiler_pic_works=no
14495 ac_outfile=conftest.$ac_objext
14496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14497 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 # The option is referenced via a variable to avoid confusing sed.
14503 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000014507 (eval echo "\"\$as_me:14507: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014508 (eval "$lt_compile" 2>conftest.err)
14509 ac_status=$?
14510 cat conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000014511 echo "$as_me:14511: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014512 if (exit $ac_status) && test -s "$ac_outfile"; then
14513 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014514 # So say no if there are warnings other than the usual output.
14515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014518 lt_prog_compiler_pic_works=yes
14519 fi
14520 fi
14521 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014522
John Criswell47fdd832003-07-14 16:52:07 +000014523fi
Reid Spencera773bd52006-08-04 18:18:08 +000014524{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14525echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014526
John Criswell47fdd832003-07-14 16:52:07 +000014527if test x"$lt_prog_compiler_pic_works" = xyes; then
14528 case $lt_prog_compiler_pic in
14529 "" | " "*) ;;
14530 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14531 esac
John Criswell7a73b802003-06-30 21:59:07 +000014532else
John Criswell47fdd832003-07-14 16:52:07 +000014533 lt_prog_compiler_pic=
14534 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014535fi
14536
John Criswell7a73b802003-06-30 21:59:07 +000014537fi
Reid Spencera773bd52006-08-04 18:18:08 +000014538case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014539 # For platforms which do not support PIC, -DPIC is meaningless:
14540 *djgpp*)
14541 lt_prog_compiler_pic=
14542 ;;
14543 *)
14544 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14545 ;;
14546esac
John Criswell7a73b802003-06-30 21:59:07 +000014547
Reid Spencera773bd52006-08-04 18:18:08 +000014548#
14549# Check to make sure the static flag actually works.
14550#
14551wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14552{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14553echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14554if test "${lt_prog_compiler_static_works+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556else
14557 lt_prog_compiler_static_works=no
14558 save_LDFLAGS="$LDFLAGS"
14559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14560 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14562 # The linker can only warn and ignore the option if not recognized
14563 # So say no if there are warnings
14564 if test -s conftest.err; then
14565 # Append any errors to the config.log.
14566 cat conftest.err 1>&5
14567 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14569 if diff conftest.exp conftest.er2 >/dev/null; then
14570 lt_prog_compiler_static_works=yes
14571 fi
14572 else
14573 lt_prog_compiler_static_works=yes
14574 fi
14575 fi
14576 $rm conftest*
14577 LDFLAGS="$save_LDFLAGS"
14578
14579fi
14580{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14581echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14582
14583if test x"$lt_prog_compiler_static_works" = xyes; then
14584 :
14585else
14586 lt_prog_compiler_static=
14587fi
14588
14589
14590{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14591echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014592if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594else
John Criswell47fdd832003-07-14 16:52:07 +000014595 lt_cv_prog_compiler_c_o=no
14596 $rm -r conftest 2>/dev/null
14597 mkdir conftest
14598 cd conftest
14599 mkdir out
14600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014601
John Criswell47fdd832003-07-14 16:52:07 +000014602 lt_compiler_flag="-o out/conftest2.$ac_objext"
14603 # Insert the option either (1) after the last *FLAGS variable, or
14604 # (2) before a word containing "conftest.", or (3) at the end.
14605 # Note that $ac_compile itself does not contain backslashes and begins
14606 # with a dollar sign (not a hyphen), so the echo should work correctly.
14607 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14610 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000014611 (eval echo "\"\$as_me:14611: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014612 (eval "$lt_compile" 2>out/conftest.err)
14613 ac_status=$?
14614 cat out/conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000014615 echo "$as_me:14615: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14617 then
14618 # The compiler can only warn and ignore the option if not recognized
14619 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014623 lt_cv_prog_compiler_c_o=yes
14624 fi
14625 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014626 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014627 $rm conftest*
14628 # SGI C++ compiler will create directory out/ii_files/ for
14629 # template instantiation
14630 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14631 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014632 cd ..
14633 rmdir conftest
14634 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014635
14636fi
Reid Spencera773bd52006-08-04 18:18:08 +000014637{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14638echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014639
John Criswell7a73b802003-06-30 21:59:07 +000014640
John Criswell7a73b802003-06-30 21:59:07 +000014641hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014642if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014643 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014644 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14645echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014646 hard_links=yes
14647 $rm conftest*
14648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14649 touch conftest.a
14650 ln conftest.a conftest.b 2>&5 || hard_links=no
14651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014652 { echo "$as_me:$LINENO: result: $hard_links" >&5
14653echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014654 if test "$hard_links" = no; then
14655 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14656echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14657 need_locks=warn
14658 fi
14659else
14660 need_locks=no
14661fi
John Criswell7a73b802003-06-30 21:59:07 +000014662
Reid Spencera773bd52006-08-04 18:18:08 +000014663{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014665
14666 runpath_var=
14667 allow_undefined_flag=
14668 enable_shared_with_static_runtimes=no
14669 archive_cmds=
14670 archive_expsym_cmds=
14671 old_archive_From_new_cmds=
14672 old_archive_from_expsyms_cmds=
14673 export_dynamic_flag_spec=
14674 whole_archive_flag_spec=
14675 thread_safe_flag_spec=
14676 hardcode_libdir_flag_spec=
14677 hardcode_libdir_flag_spec_ld=
14678 hardcode_libdir_separator=
14679 hardcode_direct=no
14680 hardcode_minus_L=no
14681 hardcode_shlibpath_var=unsupported
14682 link_all_deplibs=unknown
14683 hardcode_automatic=no
14684 module_cmds=
14685 module_expsym_cmds=
14686 always_export_symbols=no
14687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688 # include_expsyms should be a list of space-separated symbols to be *always*
14689 # included in the symbol list
14690 include_expsyms=
14691 # exclude_expsyms can be an extended regexp of symbols to exclude
14692 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14693 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14694 # as well as any symbol that contains `d'.
14695 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14697 # platforms (ab)use it in PIC code, but their linkers get confused if
14698 # the symbol is explicitly referenced. Since portable code cannot
14699 # rely on this symbol name, it's probably fine to never include it in
14700 # preloaded symbol tables.
14701 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014702 # Just being paranoid about ensuring that cc_basename is set.
14703 for cc_temp in $compiler""; do
14704 case $cc_temp in
14705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14707 \-*) ;;
14708 *) break;;
14709 esac
14710done
14711cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014712
14713 case $host_os in
14714 cygwin* | mingw* | pw32*)
14715 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14716 # When not using gcc, we currently assume that we are using
14717 # Microsoft Visual C++.
14718 if test "$GCC" != yes; then
14719 with_gnu_ld=no
14720 fi
14721 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014722 interix*)
14723 # we just hope/assume this is gcc and not c89 (= MSVC++)
14724 with_gnu_ld=yes
14725 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014726 openbsd*)
14727 with_gnu_ld=no
14728 ;;
14729 esac
14730
14731 ld_shlibs=yes
14732 if test "$with_gnu_ld" = yes; then
14733 # If archive_cmds runs LD, not CC, wlarc should be empty
14734 wlarc='${wl}'
14735
Reid Spencera773bd52006-08-04 18:18:08 +000014736 # Set some defaults for GNU ld with shared library support. These
14737 # are reset later if shared libraries are not supported. Putting them
14738 # here allows them to be overridden if necessary.
14739 runpath_var=LD_RUN_PATH
14740 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14741 export_dynamic_flag_spec='${wl}--export-dynamic'
14742 # ancient GNU ld didn't support --whole-archive et. al.
14743 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14744 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14745 else
14746 whole_archive_flag_spec=
14747 fi
14748 supports_anon_versioning=no
14749 case `$LD -v 2>/dev/null` in
14750 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14751 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14752 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14753 *\ 2.11.*) ;; # other 2.11 versions
14754 *) supports_anon_versioning=yes ;;
14755 esac
14756
John Criswell47fdd832003-07-14 16:52:07 +000014757 # See if GNU ld supports shared libraries.
14758 case $host_os in
14759 aix3* | aix4* | aix5*)
14760 # On AIX/PPC, the GNU linker is very broken
14761 if test "$host_cpu" != ia64; then
14762 ld_shlibs=no
14763 cat <<EOF 1>&2
14764
14765*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14766*** to be unable to reliably create shared libraries on AIX.
14767*** Therefore, libtool is disabling shared libraries support. If you
14768*** really care for shared libraries, you may want to modify your PATH
14769*** so that a non-GNU linker is found, and then restart.
14770
14771EOF
14772 fi
14773 ;;
14774
14775 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014776 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 +000014777 hardcode_libdir_flag_spec='-L$libdir'
14778 hardcode_minus_L=yes
14779
14780 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14781 # that the semantics of dynamic libraries on AmigaOS, at least up
14782 # to version 4, is to share data among multiple programs linked
14783 # with the same dynamic library. Since this doesn't match the
14784 # behavior of shared libraries on other platforms, we can't use
14785 # them.
14786 ld_shlibs=no
14787 ;;
14788
14789 beos*)
14790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14791 allow_undefined_flag=unsupported
14792 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14793 # support --undefined. This deserves some investigation. FIXME
14794 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795 else
14796 ld_shlibs=no
14797 fi
14798 ;;
14799
14800 cygwin* | mingw* | pw32*)
14801 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14802 # as there is no search path for DLLs.
14803 hardcode_libdir_flag_spec='-L$libdir'
14804 allow_undefined_flag=unsupported
14805 always_export_symbols=no
14806 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014807 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 +000014808
14809 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014810 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 +000014811 # If the export-symbols file already is a .def file (1st line
14812 # is EXPORTS), use it as is; otherwise, prepend...
14813 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14814 cp $export_symbols $output_objdir/$soname.def;
14815 else
14816 echo EXPORTS > $output_objdir/$soname.def;
14817 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014818 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014819 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14820 else
14821 ld_shlibs=no
14822 fi
14823 ;;
14824
14825 interix3*)
14826 hardcode_direct=no
14827 hardcode_shlibpath_var=no
14828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14829 export_dynamic_flag_spec='${wl}-E'
14830 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14831 # Instead, shared libraries are loaded at an image base (0x10000000 by
14832 # default) and relocated if they conflict, which is a slow very memory
14833 # consuming and fragmenting process. To avoid this, we pick a random,
14834 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14835 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14837 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'
14838 ;;
14839
14840 linux*)
14841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14842 tmp_addflag=
14843 case $cc_basename,$host_cpu in
14844 pgcc*) # Portland Group C compiler
14845 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'
14846 tmp_addflag=' $pic_flag'
14847 ;;
14848 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14849 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'
14850 tmp_addflag=' $pic_flag -Mnomain' ;;
14851 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14852 tmp_addflag=' -i_dynamic' ;;
14853 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14854 tmp_addflag=' -i_dynamic -nofor_main' ;;
14855 ifc* | ifort*) # Intel Fortran compiler
14856 tmp_addflag=' -nofor_main' ;;
14857 esac
14858 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859
14860 if test $supports_anon_versioning = yes; then
14861 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14863 $echo "local: *; };" >> $output_objdir/$libname.ver~
14864 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14865 fi
John Criswell47fdd832003-07-14 16:52:07 +000014866 else
14867 ld_shlibs=no
14868 fi
14869 ;;
14870
14871 netbsd*)
14872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14873 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14874 wlarc=
14875 else
14876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14878 fi
14879 ;;
14880
Reid Spencera773bd52006-08-04 18:18:08 +000014881 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014882 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14883 ld_shlibs=no
14884 cat <<EOF 1>&2
14885
14886*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14887*** create shared libraries on Solaris systems. Therefore, libtool
14888*** is disabling shared libraries support. We urge you to upgrade GNU
14889*** binutils to release 2.9.1 or newer. Another option is to modify
14890*** your PATH or compiler configuration so that the native linker is
14891*** used, and then restart.
14892
14893EOF
14894 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14897 else
14898 ld_shlibs=no
14899 fi
14900 ;;
14901
Reid Spencera773bd52006-08-04 18:18:08 +000014902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14903 case `$LD -v 2>&1` in
14904 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14905 ld_shlibs=no
14906 cat <<_LT_EOF 1>&2
14907
14908*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14909*** reliably create shared libraries on SCO systems. Therefore, libtool
14910*** is disabling shared libraries support. We urge you to upgrade GNU
14911*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14912*** your PATH or compiler configuration so that the native linker is
14913*** used, and then restart.
14914
14915_LT_EOF
14916 ;;
14917 *)
14918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14922 else
14923 ld_shlibs=no
14924 fi
14925 ;;
14926 esac
14927 ;;
14928
John Criswell47fdd832003-07-14 16:52:07 +000014929 sunos4*)
14930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14931 wlarc=
14932 hardcode_direct=yes
14933 hardcode_shlibpath_var=no
14934 ;;
14935
14936 *)
14937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14940 else
14941 ld_shlibs=no
14942 fi
14943 ;;
14944 esac
14945
Reid Spencera773bd52006-08-04 18:18:08 +000014946 if test "$ld_shlibs" = no; then
14947 runpath_var=
14948 hardcode_libdir_flag_spec=
14949 export_dynamic_flag_spec=
14950 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014951 fi
14952 else
14953 # PORTME fill in a description of your system's linker (not GNU ld)
14954 case $host_os in
14955 aix3*)
14956 allow_undefined_flag=unsupported
14957 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014958 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 +000014959 # Note: this linker hardcodes the directories in LIBPATH if there
14960 # are no directories specified by -L.
14961 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014963 # Neither direct hardcoding nor static linking is supported with a
14964 # broken collect2.
14965 hardcode_direct=unsupported
14966 fi
14967 ;;
14968
14969 aix4* | aix5*)
14970 if test "$host_cpu" = ia64; then
14971 # On IA64, the linker does run time linking by default, so we don't
14972 # have to do anything special.
14973 aix_use_runtimelinking=no
14974 exp_sym_flag='-Bexport'
14975 no_entry_flag=""
14976 else
14977 # If we're using GNU nm, then we don't want the "-C" option.
14978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14979 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14980 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'
14981 else
14982 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'
14983 fi
14984 aix_use_runtimelinking=no
14985
14986 # Test if we are trying to use run time linking or normal
14987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14988 # need to do runtime linking.
14989 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14990 for ld_flag in $LDFLAGS; do
14991 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14992 aix_use_runtimelinking=yes
14993 break
14994 fi
14995 done
Reid Spencera773bd52006-08-04 18:18:08 +000014996 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014997 esac
14998
14999 exp_sym_flag='-bexport'
15000 no_entry_flag='-bnoentry'
15001 fi
15002
15003 # When large executables or shared objects are built, AIX ld can
15004 # have problems creating the table of contents. If linking a library
15005 # or program results in "error TOC overflow" add -mminimal-toc to
15006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15008
15009 archive_cmds=''
15010 hardcode_direct=yes
15011 hardcode_libdir_separator=':'
15012 link_all_deplibs=yes
15013
15014 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015015 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015016 # We only want to do this on AIX 4.2 and lower, the check
15017 # below for broken collect2 doesn't work under 4.3+
15018 collect2name=`${CC} -print-prog-name=collect2`
15019 if test -f "$collect2name" && \
15020 strings "$collect2name" | grep resolve_lib_name >/dev/null
15021 then
15022 # We have reworked collect2
15023 hardcode_direct=yes
15024 else
15025 # We have old collect2
15026 hardcode_direct=unsupported
15027 # It fails to find uninstalled libraries when the uninstalled
15028 # path is not listed in the libpath. Setting hardcode_minus_L
15029 # to unsupported forces relinking
15030 hardcode_minus_L=yes
15031 hardcode_libdir_flag_spec='-L$libdir'
15032 hardcode_libdir_separator=
15033 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015034 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015035 esac
15036 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015037 if test "$aix_use_runtimelinking" = yes; then
15038 shared_flag="$shared_flag "'${wl}-G'
15039 fi
John Criswell47fdd832003-07-14 16:52:07 +000015040 else
15041 # not using gcc
15042 if test "$host_cpu" = ia64; then
15043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15044 # chokes on -Wl,-G. The following line is correct:
15045 shared_flag='-G'
15046 else
Reid Spencera773bd52006-08-04 18:18:08 +000015047 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015048 shared_flag='${wl}-G'
15049 else
15050 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015051 fi
John Criswell47fdd832003-07-14 16:52:07 +000015052 fi
15053 fi
15054
15055 # It seems that -bexpall does not export symbols beginning with
15056 # underscore (_), so it is better to generate a list of symbols to export.
15057 always_export_symbols=yes
15058 if test "$aix_use_runtimelinking" = yes; then
15059 # Warning - without using the other runtime loading flags (-brtl),
15060 # -berok will link without error, but may produce a broken library.
15061 allow_undefined_flag='-berok'
15062 # Determine the default libpath from the value encoded in an empty executable.
15063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015064/* confdefs.h. */
15065_ACEOF
15066cat confdefs.h >>conftest.$ac_ext
15067cat >>conftest.$ac_ext <<_ACEOF
15068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015069
John Criswell7a73b802003-06-30 21:59:07 +000015070int
15071main ()
15072{
John Criswell47fdd832003-07-14 16:52:07 +000015073
John Criswell7a73b802003-06-30 21:59:07 +000015074 ;
15075 return 0;
15076}
15077_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015078rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015079if { (ac_try="$ac_link"
15080case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106esac
15107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015112
John Criswell47fdd832003-07-14 16:52:07 +000015113aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15114}'`
15115# Check for a 64-bit object if we didn't find anything.
15116if 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; }
15117}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015118else
15119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015120sed 's/^/| /' conftest.$ac_ext >&5
15121
Reid Spencera773bd52006-08-04 18:18:08 +000015122
John Criswell7a73b802003-06-30 21:59:07 +000015123fi
Reid Spencera773bd52006-08-04 18:18:08 +000015124
15125rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015126 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015128
John Criswell47fdd832003-07-14 16:52:07 +000015129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015130 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 +000015131 else
15132 if test "$host_cpu" = ia64; then
15133 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15134 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015135 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 +000015136 else
15137 # Determine the default libpath from the value encoded in an empty executable.
15138 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015144
John Criswell47fdd832003-07-14 16:52:07 +000015145int
15146main ()
15147{
John Criswell7a73b802003-06-30 21:59:07 +000015148
John Criswell47fdd832003-07-14 16:52:07 +000015149 ;
15150 return 0;
15151}
15152_ACEOF
15153rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015154if { (ac_try="$ac_link"
15155case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158esac
15159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015161 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015162 grep -v '^ *+' conftest.er1 >conftest.err
15163 rm -f conftest.er1
15164 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15168 { (case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15171esac
15172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015178 { (case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15181esac
15182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015187
John Criswell47fdd832003-07-14 16:52:07 +000015188aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15189}'`
15190# Check for a 64-bit object if we didn't find anything.
15191if 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; }
15192}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015193else
John Criswell47fdd832003-07-14 16:52:07 +000015194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015195sed 's/^/| /' conftest.$ac_ext >&5
15196
Reid Spencera773bd52006-08-04 18:18:08 +000015197
John Criswell47fdd832003-07-14 16:52:07 +000015198fi
Reid Spencera773bd52006-08-04 18:18:08 +000015199
15200rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015201 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015202if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015203
John Criswell47fdd832003-07-14 16:52:07 +000015204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15205 # Warning - without using the other run time loading flags,
15206 # -berok will link without error, but may produce a broken library.
15207 no_undefined_flag=' ${wl}-bernotok'
15208 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015209 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015210 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015211 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015212 # This is similar to how AIX traditionally builds its shared libraries.
15213 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 +000015214 fi
15215 fi
John Criswell7a73b802003-06-30 21:59:07 +000015216 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015217
15218 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015219 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 +000015220 hardcode_libdir_flag_spec='-L$libdir'
15221 hardcode_minus_L=yes
15222 # see comment about different semantics on the GNU ld section
15223 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015224 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015225
Reid Spencer2706f8c2004-09-19 23:53:36 +000015226 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015227 export_dynamic_flag_spec=-rdynamic
15228 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015229
John Criswell47fdd832003-07-14 16:52:07 +000015230 cygwin* | mingw* | pw32*)
15231 # When not using gcc, we currently assume that we are using
15232 # Microsoft Visual C++.
15233 # hardcode_libdir_flag_spec is actually meaningless, as there is
15234 # no search path for DLLs.
15235 hardcode_libdir_flag_spec=' '
15236 allow_undefined_flag=unsupported
15237 # Tell ltmain to make .lib files, not .a files.
15238 libext=lib
15239 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015240 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015241 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015243 # The linker will automatically build a .lib file if we build a DLL.
15244 old_archive_From_new_cmds='true'
15245 # FIXME: Should let the user specify the lib program.
15246 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15247 fix_srcfile_path='`cygpath -w "$srcfile"`'
15248 enable_shared_with_static_runtimes=yes
15249 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015250
John Criswell47fdd832003-07-14 16:52:07 +000015251 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015252 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015253 rhapsody* | darwin1.[012])
15254 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15255 ;;
15256 *) # Darwin 1.3 on
15257 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15258 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15259 else
15260 case ${MACOSX_DEPLOYMENT_TARGET} in
15261 10.[012])
15262 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15263 ;;
15264 10.*)
15265 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15266 ;;
15267 esac
15268 fi
15269 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015270 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015271 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015272 hardcode_direct=no
15273 hardcode_automatic=yes
15274 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015275 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015276 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015277 if test "$GCC" = yes ; then
15278 output_verbose_link_cmd='echo'
15279 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15280 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015281 # 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 +000015282 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}'
15283 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 +000015284 else
Reid Spencera773bd52006-08-04 18:18:08 +000015285 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015286 xlc*)
15287 output_verbose_link_cmd='echo'
15288 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15289 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015290 # 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 +000015291 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}'
15292 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 +000015293 ;;
15294 *)
15295 ld_shlibs=no
15296 ;;
15297 esac
John Criswell7a73b802003-06-30 21:59:07 +000015298 fi
John Criswell47fdd832003-07-14 16:52:07 +000015299 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015300
John Criswell47fdd832003-07-14 16:52:07 +000015301 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015303 hardcode_libdir_flag_spec='-L$libdir'
15304 hardcode_shlibpath_var=no
15305 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015306
John Criswell47fdd832003-07-14 16:52:07 +000015307 freebsd1*)
15308 ld_shlibs=no
15309 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015310
John Criswell47fdd832003-07-14 16:52:07 +000015311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15312 # support. Future versions do this automatically, but an explicit c++rt0.o
15313 # does not break anything, and helps significantly (at the cost of a little
15314 # extra space).
15315 freebsd2.2*)
15316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15317 hardcode_libdir_flag_spec='-R$libdir'
15318 hardcode_direct=yes
15319 hardcode_shlibpath_var=no
15320 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015321
John Criswell47fdd832003-07-14 16:52:07 +000015322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15323 freebsd2*)
15324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15325 hardcode_direct=yes
15326 hardcode_minus_L=yes
15327 hardcode_shlibpath_var=no
15328 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015329
John Criswell47fdd832003-07-14 16:52:07 +000015330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015331 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015332 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15333 hardcode_libdir_flag_spec='-R$libdir'
15334 hardcode_direct=yes
15335 hardcode_shlibpath_var=no
15336 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015337
John Criswell47fdd832003-07-14 16:52:07 +000015338 hpux9*)
15339 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015340 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 +000015341 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015342 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 +000015343 fi
15344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15345 hardcode_libdir_separator=:
15346 hardcode_direct=yes
15347
15348 # hardcode_minus_L: Not really in the search PATH,
15349 # but as the default location of the library.
15350 hardcode_minus_L=yes
15351 export_dynamic_flag_spec='${wl}-E'
15352 ;;
15353
Reid Spencera773bd52006-08-04 18:18:08 +000015354 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015355 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15357 else
15358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15359 fi
15360 if test "$with_gnu_ld" = no; then
15361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15362 hardcode_libdir_separator=:
15363
15364 hardcode_direct=yes
15365 export_dynamic_flag_spec='${wl}-E'
15366
15367 # hardcode_minus_L: Not really in the search PATH,
15368 # but as the default location of the library.
15369 hardcode_minus_L=yes
15370 fi
15371 ;;
15372
15373 hpux11*)
15374 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15375 case $host_cpu in
15376 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015377 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15378 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015379 ia64*)
15380 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15381 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015382 *)
15383 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15384 ;;
15385 esac
15386 else
Reid Spencera773bd52006-08-04 18:18:08 +000015387 case $host_cpu in
15388 hppa*64*)
15389 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15390 ;;
15391 ia64*)
15392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015393 ;;
15394 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015395 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 +000015396 ;;
15397 esac
15398 fi
15399 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15401 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015402
Reid Spencera773bd52006-08-04 18:18:08 +000015403 case $host_cpu in
15404 hppa*64*|ia64*)
15405 hardcode_libdir_flag_spec_ld='+b $libdir'
15406 hardcode_direct=no
15407 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015408 ;;
15409 *)
John Criswell47fdd832003-07-14 16:52:07 +000015410 hardcode_direct=yes
15411 export_dynamic_flag_spec='${wl}-E'
15412
15413 # hardcode_minus_L: Not really in the search PATH,
15414 # but as the default location of the library.
15415 hardcode_minus_L=yes
15416 ;;
15417 esac
15418 fi
15419 ;;
15420
15421 irix5* | irix6* | nonstopux*)
15422 if test "$GCC" = yes; then
15423 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'
15424 else
15425 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'
15426 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15427 fi
15428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15429 hardcode_libdir_separator=:
15430 link_all_deplibs=yes
15431 ;;
15432
15433 netbsd*)
15434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15436 else
15437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15438 fi
15439 hardcode_libdir_flag_spec='-R$libdir'
15440 hardcode_direct=yes
15441 hardcode_shlibpath_var=no
15442 ;;
15443
15444 newsos6)
15445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446 hardcode_direct=yes
15447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15448 hardcode_libdir_separator=:
15449 hardcode_shlibpath_var=no
15450 ;;
15451
15452 openbsd*)
15453 hardcode_direct=yes
15454 hardcode_shlibpath_var=no
15455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015457 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 +000015458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15459 export_dynamic_flag_spec='${wl}-E'
15460 else
15461 case $host_os in
15462 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15464 hardcode_libdir_flag_spec='-R$libdir'
15465 ;;
15466 *)
15467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15469 ;;
15470 esac
15471 fi
15472 ;;
15473
15474 os2*)
15475 hardcode_libdir_flag_spec='-L$libdir'
15476 hardcode_minus_L=yes
15477 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015478 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 +000015479 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15480 ;;
15481
15482 osf3*)
15483 if test "$GCC" = yes; then
15484 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15485 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'
15486 else
15487 allow_undefined_flag=' -expect_unresolved \*'
15488 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'
15489 fi
15490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491 hardcode_libdir_separator=:
15492 ;;
15493
15494 osf4* | osf5*) # as osf3* with the addition of -msym flag
15495 if test "$GCC" = yes; then
15496 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15497 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'
15498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15499 else
15500 allow_undefined_flag=' -expect_unresolved \*'
15501 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 +000015502 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 +000015503 $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 +000015504
John Criswell47fdd832003-07-14 16:52:07 +000015505 # Both c and cxx compiler support -rpath directly
15506 hardcode_libdir_flag_spec='-rpath $libdir'
15507 fi
15508 hardcode_libdir_separator=:
15509 ;;
15510
John Criswell47fdd832003-07-14 16:52:07 +000015511 solaris*)
15512 no_undefined_flag=' -z text'
15513 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015514 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015515 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015516 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15517 $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 +000015518 else
Reid Spencera773bd52006-08-04 18:18:08 +000015519 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015520 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015521 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15522 $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 +000015523 fi
15524 hardcode_libdir_flag_spec='-R$libdir'
15525 hardcode_shlibpath_var=no
15526 case $host_os in
15527 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015528 *)
15529 # The compiler driver will combine linker options so we
15530 # cannot just pass the convience library names through
15531 # without $wl, iff we do not link with $LD.
15532 # Luckily, gcc supports the same syntax we need for Sun Studio.
15533 # Supported since Solaris 2.6 (maybe 2.5.1?)
15534 case $wlarc in
15535 '')
15536 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15537 *)
15538 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' ;;
15539 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015540 esac
15541 link_all_deplibs=yes
15542 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015543
John Criswell47fdd832003-07-14 16:52:07 +000015544 sunos4*)
15545 if test "x$host_vendor" = xsequent; then
15546 # Use $CC to link under sequent, because it throws in some extra .o
15547 # files that make .init and .fini sections work.
15548 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15549 else
15550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15551 fi
15552 hardcode_libdir_flag_spec='-L$libdir'
15553 hardcode_direct=yes
15554 hardcode_minus_L=yes
15555 hardcode_shlibpath_var=no
15556 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015557
John Criswell47fdd832003-07-14 16:52:07 +000015558 sysv4)
15559 case $host_vendor in
15560 sni)
15561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562 hardcode_direct=yes # is this really true???
15563 ;;
15564 siemens)
15565 ## LD is ld it makes a PLAMLIB
15566 ## CC just makes a GrossModule.
15567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15568 reload_cmds='$CC -r -o $output$reload_objs'
15569 hardcode_direct=no
15570 ;;
15571 motorola)
15572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15574 ;;
15575 esac
15576 runpath_var='LD_RUN_PATH'
15577 hardcode_shlibpath_var=no
15578 ;;
15579
15580 sysv4.3*)
15581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15582 hardcode_shlibpath_var=no
15583 export_dynamic_flag_spec='-Bexport'
15584 ;;
15585
15586 sysv4*MP*)
15587 if test -d /usr/nec; then
15588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589 hardcode_shlibpath_var=no
15590 runpath_var=LD_RUN_PATH
15591 hardcode_runpath_var=yes
15592 ld_shlibs=yes
15593 fi
15594 ;;
15595
Reid Spencera773bd52006-08-04 18:18:08 +000015596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15597 no_undefined_flag='${wl}-z,text'
15598 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015599 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015600 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015601
John Criswell47fdd832003-07-14 16:52:07 +000015602 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 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 +000015605 else
Reid Spencera773bd52006-08-04 18:18:08 +000015606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 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 +000015608 fi
John Criswell47fdd832003-07-14 16:52:07 +000015609 ;;
15610
Reid Spencera773bd52006-08-04 18:18:08 +000015611 sysv5* | sco3.2v5* | sco5v6*)
15612 # Note: We can NOT use -z defs as we might desire, because we do not
15613 # link with -lc, and that would cause any symbols used from libc to
15614 # always be unresolved, which means just about no library would
15615 # ever link correctly. If we're not using GNU ld we use -z text
15616 # though, which does catch some bad symbols but isn't as heavy-handed
15617 # as -z defs.
15618 no_undefined_flag='${wl}-z,text'
15619 allow_undefined_flag='${wl}-z,nodefs'
15620 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015621 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015622 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15623 hardcode_libdir_separator=':'
15624 link_all_deplibs=yes
15625 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015626 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015627
15628 if test "$GCC" = yes; then
15629 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15631 else
15632 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634 fi
John Criswell47fdd832003-07-14 16:52:07 +000015635 ;;
15636
15637 uts4*)
15638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639 hardcode_libdir_flag_spec='-L$libdir'
15640 hardcode_shlibpath_var=no
15641 ;;
15642
15643 *)
15644 ld_shlibs=no
15645 ;;
15646 esac
15647 fi
15648
Reid Spencera773bd52006-08-04 18:18:08 +000015649{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15650echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015651test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015652
John Criswell47fdd832003-07-14 16:52:07 +000015653#
15654# Do we need to explicitly link libc?
15655#
15656case "x$archive_cmds_need_lc" in
15657x|xyes)
15658 # Assume -lc should be added
15659 archive_cmds_need_lc=yes
15660
15661 if test "$enable_shared" = yes && test "$GCC" = yes; then
15662 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015663 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015664 # FIXME: we may have to deal with multi-command sequences.
15665 ;;
15666 '$CC '*)
15667 # Test whether the compiler implicitly links with -lc since on some
15668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15669 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015670 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15671echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015672 $rm conftest*
15673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15674
15675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15676 (eval $ac_compile) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } 2>conftest.err; then
15680 soname=conftest
15681 lib=conftest
15682 libobjs=conftest.$ac_objext
15683 deplibs=
15684 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015685 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015686 compiler_flags=-v
15687 linker_flags=-v
15688 verstring=
15689 output_objdir=.
15690 libname=conftest
15691 lt_save_allow_undefined_flag=$allow_undefined_flag
15692 allow_undefined_flag=
15693 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15694 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }
15698 then
15699 archive_cmds_need_lc=no
15700 else
15701 archive_cmds_need_lc=yes
15702 fi
15703 allow_undefined_flag=$lt_save_allow_undefined_flag
15704 else
15705 cat conftest.err 1>&5
15706 fi
15707 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015708 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15709echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015710 ;;
15711 esac
15712 fi
15713 ;;
15714esac
15715
Reid Spencera773bd52006-08-04 18:18:08 +000015716{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15717echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015718library_names_spec=
15719libname_spec='lib$name'
15720soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015721shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015722postinstall_cmds=
15723postuninstall_cmds=
15724finish_cmds=
15725finish_eval=
15726shlibpath_var=
15727shlibpath_overrides_runpath=unknown
15728version_type=none
15729dynamic_linker="$host_os ld.so"
15730sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015731if test "$GCC" = yes; then
15732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15733 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15734 # if the path contains ";" then we assume it to be the separator
15735 # otherwise default to the standard path separator (i.e. ":") - it is
15736 # assumed that no part of a normal pathname contains ";" but that should
15737 # okay in the real world where ";" in dirpaths is itself problematic.
15738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15739 else
15740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15741 fi
15742else
15743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15744fi
15745need_lib_prefix=unknown
15746hardcode_into_libs=no
15747
15748# when you set need_version to no, make sure it does not cause -set_version
15749# flags to be left without arguments
15750need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015751
15752case $host_os in
15753aix3*)
15754 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015756 shlibpath_var=LIBPATH
15757
John Criswell47fdd832003-07-14 16:52:07 +000015758 # AIX 3 has no versioning support, so we append a major version to the name.
15759 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015760 ;;
15761
15762aix4* | aix5*)
15763 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015764 need_lib_prefix=no
15765 need_version=no
15766 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015767 if test "$host_cpu" = ia64; then
15768 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015770 shlibpath_var=LD_LIBRARY_PATH
15771 else
15772 # With GCC up to 2.95.x, collect2 would create an import file
15773 # for dependence libraries. The import file would start with
15774 # the line `#! .'. This would cause the generated library to
15775 # depend on `.', always an invalid library. This was fixed in
15776 # development snapshots of GCC prior to 3.0.
15777 case $host_os in
15778 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15780 echo ' yes '
15781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15782 :
15783 else
15784 can_build_shared=no
15785 fi
15786 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015787 esac
John Criswell47fdd832003-07-14 16:52:07 +000015788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15789 # soname into executable. Probably we can add versioning support to
15790 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015791 if test "$aix_use_runtimelinking" = yes; then
15792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15793 # instead of lib<name>.a to let people know that these are not
15794 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015796 else
15797 # We preserve .a as extension for shared libraries through AIX4.2
15798 # and later when we are not doing run time linking.
15799 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015800 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015801 fi
15802 shlibpath_var=LIBPATH
15803 fi
15804 ;;
15805
15806amigaos*)
15807 library_names_spec='$libname.ixlibrary $libname.a'
15808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015809 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 +000015810 ;;
15811
15812beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015813 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015814 dynamic_linker="$host_os ld.so"
15815 shlibpath_var=LIBRARY_PATH
15816 ;;
15817
Reid Spencer2706f8c2004-09-19 23:53:36 +000015818bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015819 version_type=linux
15820 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015827 # the default ld.so.conf also contains /usr/contrib/lib and
15828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15829 # libtool to hard-code these into programs
15830 ;;
15831
15832cygwin* | mingw* | pw32*)
15833 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015834 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015835 need_version=no
15836 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015837
John Criswell7a73b802003-06-30 21:59:07 +000015838 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015839 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015840 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015842 postinstall_cmds='base_file=`basename \${file}`~
15843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15844 dldir=$destdir/`dirname \$dlpath`~
15845 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015846 $install_prog $dir/$dlname \$dldir/$dlname~
15847 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15849 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015850 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015851 shlibpath_overrides_runpath=yes
15852
15853 case $host_os in
15854 cygwin*)
15855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15856 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 +000015857 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015858 ;;
15859 mingw*)
15860 # MinGW DLLs use traditional 'lib' prefix
15861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15862 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15863 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15864 # It is most probably a Windows format PATH printed by
15865 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15866 # path with ; separators, and with drive letters. We can handle the
15867 # drive letters (cygwin fileutils understands them), so leave them,
15868 # especially as we might pass files found there to a mingw objdump,
15869 # which wouldn't understand a cygwinified path. Ahh.
15870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15871 else
15872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15873 fi
15874 ;;
15875 pw32*)
15876 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015877 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 +000015878 ;;
15879 esac
John Criswell7a73b802003-06-30 21:59:07 +000015880 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015881
John Criswell7a73b802003-06-30 21:59:07 +000015882 *)
John Criswell47fdd832003-07-14 16:52:07 +000015883 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015884 ;;
15885 esac
15886 dynamic_linker='Win32 ld.exe'
15887 # FIXME: first we should search . and the directory the executable is in
15888 shlibpath_var=PATH
15889 ;;
15890
15891darwin* | rhapsody*)
15892 dynamic_linker="$host_os dyld"
15893 version_type=darwin
15894 need_lib_prefix=no
15895 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015897 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015898 shlibpath_overrides_runpath=yes
15899 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015900 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015901 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015902 if test "$GCC" = yes; then
15903 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"`
15904 else
15905 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015906 fi
15907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15908 ;;
15909
15910dgux*)
15911 version_type=linux
15912 need_lib_prefix=no
15913 need_version=no
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15915 soname_spec='${libname}${release}${shared_ext}$major'
15916 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015917 ;;
15918
15919freebsd1*)
15920 dynamic_linker=no
15921 ;;
15922
Reid Spencer2706f8c2004-09-19 23:53:36 +000015923kfreebsd*-gnu)
15924 version_type=linux
15925 need_lib_prefix=no
15926 need_version=no
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 shlibpath_var=LD_LIBRARY_PATH
15930 shlibpath_overrides_runpath=no
15931 hardcode_into_libs=yes
15932 dynamic_linker='GNU ld.so'
15933 ;;
15934
Reid Spencera773bd52006-08-04 18:18:08 +000015935freebsd* | dragonfly*)
15936 # DragonFly does not have aout. When/if they implement a new
15937 # versioning mechanism, adjust this.
15938 if test -x /usr/bin/objformat; then
15939 objformat=`/usr/bin/objformat`
15940 else
15941 case $host_os in
15942 freebsd[123]*) objformat=aout ;;
15943 *) objformat=elf ;;
15944 esac
15945 fi
John Criswell7a73b802003-06-30 21:59:07 +000015946 version_type=freebsd-$objformat
15947 case $version_type in
15948 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015950 need_version=no
15951 need_lib_prefix=no
15952 ;;
15953 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015955 need_version=yes
15956 ;;
15957 esac
15958 shlibpath_var=LD_LIBRARY_PATH
15959 case $host_os in
15960 freebsd2*)
15961 shlibpath_overrides_runpath=yes
15962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015963 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015964 shlibpath_overrides_runpath=yes
15965 hardcode_into_libs=yes
15966 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015969 shlibpath_overrides_runpath=no
15970 hardcode_into_libs=yes
15971 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015972 freebsd*) # from 4.6 on
15973 shlibpath_overrides_runpath=yes
15974 hardcode_into_libs=yes
15975 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015976 esac
15977 ;;
15978
15979gnu*)
15980 version_type=linux
15981 need_lib_prefix=no
15982 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015985 shlibpath_var=LD_LIBRARY_PATH
15986 hardcode_into_libs=yes
15987 ;;
15988
15989hpux9* | hpux10* | hpux11*)
15990 # Give a soname corresponding to the major version so that dld.sl refuses to
15991 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015992 version_type=sunos
15993 need_lib_prefix=no
15994 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015995 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015996 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015997 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015998 hardcode_into_libs=yes
15999 dynamic_linker="$host_os dld.so"
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 soname_spec='${libname}${release}${shared_ext}$major'
16004 if test "X$HPUX_IA64_MODE" = X32; then
16005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16006 else
16007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16008 fi
16009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16010 ;;
16011 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016012 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016013 hardcode_into_libs=yes
16014 dynamic_linker="$host_os dld.sl"
16015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16021 ;;
16022 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016023 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016024 dynamic_linker="$host_os dld.sl"
16025 shlibpath_var=SHLIB_PATH
16026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 ;;
16030 esac
John Criswell7a73b802003-06-30 21:59:07 +000016031 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16032 postinstall_cmds='chmod 555 $lib'
16033 ;;
16034
Reid Spencera773bd52006-08-04 18:18:08 +000016035interix3*)
16036 version_type=linux
16037 need_lib_prefix=no
16038 need_version=no
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=no
16044 hardcode_into_libs=yes
16045 ;;
16046
John Criswell47fdd832003-07-14 16:52:07 +000016047irix5* | irix6* | nonstopux*)
16048 case $host_os in
16049 nonstopux*) version_type=nonstopux ;;
16050 *)
16051 if test "$lt_cv_prog_gnu_ld" = yes; then
16052 version_type=linux
16053 else
16054 version_type=irix
16055 fi ;;
16056 esac
John Criswell7a73b802003-06-30 21:59:07 +000016057 need_lib_prefix=no
16058 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016059 soname_spec='${libname}${release}${shared_ext}$major'
16060 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 +000016061 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016062 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016063 libsuff= shlibsuff=
16064 ;;
16065 *)
16066 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16068 libsuff= shlibsuff= libmagic=32-bit;;
16069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16070 libsuff=32 shlibsuff=N32 libmagic=N32;;
16071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016073 *) libsuff= shlibsuff= libmagic=never-match;;
16074 esac
16075 ;;
16076 esac
16077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16078 shlibpath_overrides_runpath=no
16079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016081 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016082 ;;
16083
16084# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016085linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016086 dynamic_linker=no
16087 ;;
16088
16089# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016090linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016091 version_type=linux
16092 need_lib_prefix=no
16093 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=no
16099 # This implies no fast_install, which is unacceptable.
16100 # Some rework will be needed to allow for fast_install
16101 # before this can be enabled.
16102 hardcode_into_libs=yes
16103
Reid Spencer2706f8c2004-09-19 23:53:36 +000016104 # Append ld.so.conf contents to the search path
16105 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016106 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 +000016107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16108 fi
16109
John Criswell7a73b802003-06-30 21:59:07 +000016110 # We used to test for /lib/ld.so.1 and disable shared libraries on
16111 # powerpc, because MkLinux only supported shared libraries with the
16112 # GNU dynamic linker. Since this was broken with cross compilers,
16113 # most powerpc-linux boxes support dynamic linking these days and
16114 # people can always --disable-shared, the test was removed, and we
16115 # assume the GNU/Linux dynamic linker is in use.
16116 dynamic_linker='GNU/Linux ld.so'
16117 ;;
16118
Reid Spencer2706f8c2004-09-19 23:53:36 +000016119knetbsd*-gnu)
16120 version_type=linux
16121 need_lib_prefix=no
16122 need_version=no
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=no
16127 hardcode_into_libs=yes
16128 dynamic_linker='GNU ld.so'
16129 ;;
16130
John Criswell7a73b802003-06-30 21:59:07 +000016131netbsd*)
16132 version_type=sunos
16133 need_lib_prefix=no
16134 need_version=no
16135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16138 dynamic_linker='NetBSD (a.out) ld.so'
16139 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016141 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016142 dynamic_linker='NetBSD ld.elf_so'
16143 fi
16144 shlibpath_var=LD_LIBRARY_PATH
16145 shlibpath_overrides_runpath=yes
16146 hardcode_into_libs=yes
16147 ;;
16148
16149newsos6)
16150 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 shlibpath_overrides_runpath=yes
16154 ;;
16155
Reid Spencer2706f8c2004-09-19 23:53:36 +000016156nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016157 version_type=linux
16158 need_lib_prefix=no
16159 need_version=no
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016162 shlibpath_var=LD_LIBRARY_PATH
16163 shlibpath_overrides_runpath=yes
16164 ;;
16165
16166openbsd*)
16167 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016168 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016169 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16171 case $host_os in
16172 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16173 *) need_version=no ;;
16174 esac
John Criswell47fdd832003-07-14 16:52:07 +000016175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16177 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016178 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 +000016179 case $host_os in
16180 openbsd2.[89] | openbsd2.[89].*)
16181 shlibpath_overrides_runpath=no
16182 ;;
16183 *)
16184 shlibpath_overrides_runpath=yes
16185 ;;
16186 esac
John Criswell7a73b802003-06-30 21:59:07 +000016187 else
16188 shlibpath_overrides_runpath=yes
16189 fi
John Criswell7a73b802003-06-30 21:59:07 +000016190 ;;
16191
16192os2*)
16193 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016194 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016195 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016196 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016197 dynamic_linker='OS/2 ld.exe'
16198 shlibpath_var=LIBPATH
16199 ;;
16200
16201osf3* | osf4* | osf5*)
16202 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016203 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016204 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016205 soname_spec='${libname}${release}${shared_ext}$major'
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016207 shlibpath_var=LD_LIBRARY_PATH
16208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16210 ;;
16211
John Criswell7a73b802003-06-30 21:59:07 +000016212solaris*)
16213 version_type=linux
16214 need_lib_prefix=no
16215 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=yes
16220 hardcode_into_libs=yes
16221 # ldd complains unless libraries are executable
16222 postinstall_cmds='chmod +x $lib'
16223 ;;
16224
16225sunos4*)
16226 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 if test "$with_gnu_ld" = yes; then
16232 need_lib_prefix=no
16233 fi
16234 need_version=yes
16235 ;;
16236
Reid Spencera773bd52006-08-04 18:18:08 +000016237sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016238 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016241 shlibpath_var=LD_LIBRARY_PATH
16242 case $host_vendor in
16243 sni)
16244 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016245 need_lib_prefix=no
16246 export_dynamic_flag_spec='${wl}-Blargedynsym'
16247 runpath_var=LD_RUN_PATH
16248 ;;
16249 siemens)
16250 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016251 ;;
16252 motorola)
16253 need_lib_prefix=no
16254 need_version=no
16255 shlibpath_overrides_runpath=no
16256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16257 ;;
16258 esac
16259 ;;
16260
John Criswell7a73b802003-06-30 21:59:07 +000016261sysv4*MP*)
16262 if test -d /usr/nec ;then
16263 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16265 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016266 shlibpath_var=LD_LIBRARY_PATH
16267 fi
16268 ;;
16269
Reid Spencera773bd52006-08-04 18:18:08 +000016270sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16271 version_type=freebsd-elf
16272 need_lib_prefix=no
16273 need_version=no
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 shlibpath_var=LD_LIBRARY_PATH
16277 hardcode_into_libs=yes
16278 if test "$with_gnu_ld" = yes; then
16279 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16280 shlibpath_overrides_runpath=no
16281 else
16282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16283 shlibpath_overrides_runpath=yes
16284 case $host_os in
16285 sco3.2v5*)
16286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16287 ;;
16288 esac
16289 fi
16290 sys_lib_dlsearch_path_spec='/usr/lib'
16291 ;;
16292
John Criswell47fdd832003-07-14 16:52:07 +000016293uts4*)
16294 version_type=linux
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 ;;
16299
John Criswell7a73b802003-06-30 21:59:07 +000016300*)
16301 dynamic_linker=no
16302 ;;
16303esac
Reid Spencera773bd52006-08-04 18:18:08 +000016304{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16305echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016306test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016307
Reid Spencera773bd52006-08-04 18:18:08 +000016308variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16309if test "$GCC" = yes; then
16310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16311fi
16312
16313{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16314echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016315hardcode_action=
16316if test -n "$hardcode_libdir_flag_spec" || \
16317 test -n "$runpath_var" || \
16318 test "X$hardcode_automatic" = "Xyes" ; then
16319
16320 # We can hardcode non-existant directories.
16321 if test "$hardcode_direct" != no &&
16322 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16323 # have to relink, otherwise we might link with an installed library
16324 # when we should be linking with a yet-to-be-installed one
16325 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16326 test "$hardcode_minus_L" != no; then
16327 # Linking always hardcodes the temporary library directory.
16328 hardcode_action=relink
16329 else
16330 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16331 hardcode_action=immediate
16332 fi
16333else
16334 # We cannot hardcode anything, or else we can only hardcode existing
16335 # directories.
16336 hardcode_action=unsupported
16337fi
Reid Spencera773bd52006-08-04 18:18:08 +000016338{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16339echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016340
16341if test "$hardcode_action" = relink; then
16342 # Fast installation is not supported
16343 enable_fast_install=no
16344elif test "$shlibpath_overrides_runpath" = yes ||
16345 test "$enable_shared" = no; then
16346 # Fast installation is not necessary
16347 enable_fast_install=needless
16348fi
16349
16350striplib=
16351old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016352{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16353echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016354if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016357 { echo "$as_me:$LINENO: result: yes" >&5
16358echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016359else
16360# FIXME - insert some real tests, host_os isn't really good enough
16361 case $host_os in
16362 darwin*)
16363 if test -n "$STRIP" ; then
16364 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016365 { echo "$as_me:$LINENO: result: yes" >&5
16366echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016367 else
Reid Spencera773bd52006-08-04 18:18:08 +000016368 { echo "$as_me:$LINENO: result: no" >&5
16369echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016370fi
16371 ;;
16372 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016373 { echo "$as_me:$LINENO: result: no" >&5
16374echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016375 ;;
16376 esac
16377fi
16378
John Criswell7a73b802003-06-30 21:59:07 +000016379if test "x$enable_dlopen" != xyes; then
16380 enable_dlopen=unknown
16381 enable_dlopen_self=unknown
16382 enable_dlopen_self_static=unknown
16383else
16384 lt_cv_dlopen=no
16385 lt_cv_dlopen_libs=
16386
16387 case $host_os in
16388 beos*)
16389 lt_cv_dlopen="load_add_on"
16390 lt_cv_dlopen_libs=
16391 lt_cv_dlopen_self=yes
16392 ;;
16393
John Criswell47fdd832003-07-14 16:52:07 +000016394 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016395 lt_cv_dlopen="LoadLibrary"
16396 lt_cv_dlopen_libs=
16397 ;;
16398
John Criswell47fdd832003-07-14 16:52:07 +000016399 cygwin*)
16400 lt_cv_dlopen="dlopen"
16401 lt_cv_dlopen_libs=
16402 ;;
16403
16404 darwin*)
16405 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016406 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16407echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016408if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410else
16411 ac_check_lib_save_LIBS=$LIBS
16412LIBS="-ldl $LIBS"
16413cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016414/* confdefs.h. */
16415_ACEOF
16416cat confdefs.h >>conftest.$ac_ext
16417cat >>conftest.$ac_ext <<_ACEOF
16418/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016419
Reid Spencera773bd52006-08-04 18:18:08 +000016420/* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016423#ifdef __cplusplus
16424extern "C"
16425#endif
John Criswell47fdd832003-07-14 16:52:07 +000016426char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016427int
16428main ()
16429{
Reid Spencera773bd52006-08-04 18:18:08 +000016430return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016431 ;
16432 return 0;
16433}
16434_ACEOF
16435rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016436if { (ac_try="$ac_link"
16437case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16440esac
16441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016443 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016444 grep -v '^ *+' conftest.er1 >conftest.err
16445 rm -f conftest.er1
16446 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16450 { (case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016460 { (case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463esac
16464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_lib_dl_dlopen=yes
16470else
16471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016472sed 's/^/| /' conftest.$ac_ext >&5
16473
Reid Spencera773bd52006-08-04 18:18:08 +000016474 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016475fi
Reid Spencera773bd52006-08-04 18:18:08 +000016476
16477rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016478 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016479LIBS=$ac_check_lib_save_LIBS
16480fi
Reid Spencera773bd52006-08-04 18:18:08 +000016481{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16482echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016483if test $ac_cv_lib_dl_dlopen = yes; then
16484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16485else
16486
16487 lt_cv_dlopen="dyld"
16488 lt_cv_dlopen_libs=
16489 lt_cv_dlopen_self=yes
16490
16491fi
16492
16493 ;;
16494
John Criswell7a73b802003-06-30 21:59:07 +000016495 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016496 { echo "$as_me:$LINENO: checking for shl_load" >&5
16497echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016498if test "${ac_cv_func_shl_load+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16500else
16501 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016502/* confdefs.h. */
16503_ACEOF
16504cat confdefs.h >>conftest.$ac_ext
16505cat >>conftest.$ac_ext <<_ACEOF
16506/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016507/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16509#define shl_load innocuous_shl_load
16510
John Criswell7a73b802003-06-30 21:59:07 +000016511/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016512 which can conflict with char shl_load (); below.
16513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16514 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016515
John Criswell0c38eaf2003-09-10 15:17:25 +000016516#ifdef __STDC__
16517# include <limits.h>
16518#else
16519# include <assert.h>
16520#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016521
16522#undef shl_load
16523
Reid Spencera773bd52006-08-04 18:18:08 +000016524/* Override any GCC internal prototype to avoid an error.
16525 Use char because int might match the return type of a GCC
16526 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016527#ifdef __cplusplus
16528extern "C"
16529#endif
John Criswell7a73b802003-06-30 21:59:07 +000016530char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016531/* The GNU C library defines this for functions which it implements
16532 to always fail with ENOSYS. Some functions are actually named
16533 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016534#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016535choke me
John Criswell7a73b802003-06-30 21:59:07 +000016536#endif
16537
John Criswell0c38eaf2003-09-10 15:17:25 +000016538int
16539main ()
16540{
Reid Spencera773bd52006-08-04 18:18:08 +000016541return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016542 ;
16543 return 0;
16544}
16545_ACEOF
16546rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016547if { (ac_try="$ac_link"
16548case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16551esac
16552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564esac
16565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574esac
16575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_func_shl_load=yes
16581else
16582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016583sed 's/^/| /' conftest.$ac_ext >&5
16584
Reid Spencera773bd52006-08-04 18:18:08 +000016585 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016586fi
Reid Spencera773bd52006-08-04 18:18:08 +000016587
16588rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016589 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016590fi
Reid Spencera773bd52006-08-04 18:18:08 +000016591{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16592echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016593if test $ac_cv_func_shl_load = yes; then
16594 lt_cv_dlopen="shl_load"
16595else
Reid Spencera773bd52006-08-04 18:18:08 +000016596 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16597echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016598if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600else
16601 ac_check_lib_save_LIBS=$LIBS
16602LIBS="-ldld $LIBS"
16603cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016604/* confdefs.h. */
16605_ACEOF
16606cat confdefs.h >>conftest.$ac_ext
16607cat >>conftest.$ac_ext <<_ACEOF
16608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016609
Reid Spencera773bd52006-08-04 18:18:08 +000016610/* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016613#ifdef __cplusplus
16614extern "C"
16615#endif
John Criswell7a73b802003-06-30 21:59:07 +000016616char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016617int
16618main ()
16619{
Reid Spencera773bd52006-08-04 18:18:08 +000016620return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016621 ;
16622 return 0;
16623}
16624_ACEOF
16625rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016626if { (ac_try="$ac_link"
16627case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630esac
16631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016633 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16643esac
16644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653esac
16654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_cv_lib_dld_shl_load=yes
16660else
16661 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016662sed 's/^/| /' conftest.$ac_ext >&5
16663
Reid Spencera773bd52006-08-04 18:18:08 +000016664 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016665fi
Reid Spencera773bd52006-08-04 18:18:08 +000016666
16667rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016668 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016669LIBS=$ac_check_lib_save_LIBS
16670fi
Reid Spencera773bd52006-08-04 18:18:08 +000016671{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16672echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016673if test $ac_cv_lib_dld_shl_load = yes; then
16674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16675else
Reid Spencera773bd52006-08-04 18:18:08 +000016676 { echo "$as_me:$LINENO: checking for dlopen" >&5
16677echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016678if test "${ac_cv_func_dlopen+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016682/* confdefs.h. */
16683_ACEOF
16684cat confdefs.h >>conftest.$ac_ext
16685cat >>conftest.$ac_ext <<_ACEOF
16686/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016687/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16689#define dlopen innocuous_dlopen
16690
John Criswell7a73b802003-06-30 21:59:07 +000016691/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016692 which can conflict with char dlopen (); below.
16693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16694 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016695
John Criswell0c38eaf2003-09-10 15:17:25 +000016696#ifdef __STDC__
16697# include <limits.h>
16698#else
16699# include <assert.h>
16700#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016701
16702#undef dlopen
16703
Reid Spencera773bd52006-08-04 18:18:08 +000016704/* Override any GCC internal prototype to avoid an error.
16705 Use char because int might match the return type of a GCC
16706 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016707#ifdef __cplusplus
16708extern "C"
16709#endif
John Criswell7a73b802003-06-30 21:59:07 +000016710char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016711/* The GNU C library defines this for functions which it implements
16712 to always fail with ENOSYS. Some functions are actually named
16713 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016714#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016715choke me
John Criswell7a73b802003-06-30 21:59:07 +000016716#endif
16717
John Criswell0c38eaf2003-09-10 15:17:25 +000016718int
16719main ()
16720{
Reid Spencera773bd52006-08-04 18:18:08 +000016721return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016727if { (ac_try="$ac_link"
16728case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16731esac
16732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016734 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016735 grep -v '^ *+' conftest.er1 >conftest.err
16736 rm -f conftest.er1
16737 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754esac
16755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_func_dlopen=yes
16761else
16762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016763sed 's/^/| /' conftest.$ac_ext >&5
16764
Reid Spencera773bd52006-08-04 18:18:08 +000016765 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016766fi
Reid Spencera773bd52006-08-04 18:18:08 +000016767
16768rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016769 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016770fi
Reid Spencera773bd52006-08-04 18:18:08 +000016771{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16772echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016773if test $ac_cv_func_dlopen = yes; then
16774 lt_cv_dlopen="dlopen"
16775else
Reid Spencera773bd52006-08-04 18:18:08 +000016776 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780else
16781 ac_check_lib_save_LIBS=$LIBS
16782LIBS="-ldl $LIBS"
16783cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016789
Reid Spencera773bd52006-08-04 18:18:08 +000016790/* Override any GCC internal prototype to avoid an error.
16791 Use char because int might match the return type of a GCC
16792 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016793#ifdef __cplusplus
16794extern "C"
16795#endif
John Criswell7a73b802003-06-30 21:59:07 +000016796char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016797int
16798main ()
16799{
Reid Spencera773bd52006-08-04 18:18:08 +000016800return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016801 ;
16802 return 0;
16803}
16804_ACEOF
16805rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016806if { (ac_try="$ac_link"
16807case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16810esac
16811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016813 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 ac_cv_lib_dl_dlopen=yes
16840else
16841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016842sed 's/^/| /' conftest.$ac_ext >&5
16843
Reid Spencera773bd52006-08-04 18:18:08 +000016844 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016845fi
Reid Spencera773bd52006-08-04 18:18:08 +000016846
16847rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016848 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016849LIBS=$ac_check_lib_save_LIBS
16850fi
Reid Spencera773bd52006-08-04 18:18:08 +000016851{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16852echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016853if test $ac_cv_lib_dl_dlopen = yes; then
16854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16855else
Reid Spencera773bd52006-08-04 18:18:08 +000016856 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16857echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016858if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860else
16861 ac_check_lib_save_LIBS=$LIBS
16862LIBS="-lsvld $LIBS"
16863cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016869
Reid Spencera773bd52006-08-04 18:18:08 +000016870/* Override any GCC internal prototype to avoid an error.
16871 Use char because int might match the return type of a GCC
16872 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016873#ifdef __cplusplus
16874extern "C"
16875#endif
John Criswell7a73b802003-06-30 21:59:07 +000016876char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016877int
16878main ()
16879{
Reid Spencera773bd52006-08-04 18:18:08 +000016880return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016881 ;
16882 return 0;
16883}
16884_ACEOF
16885rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016886if { (ac_try="$ac_link"
16887case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890esac
16891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016893 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016894 grep -v '^ *+' conftest.er1 >conftest.err
16895 rm -f conftest.er1
16896 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903esac
16904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_lib_svld_dlopen=yes
16920else
16921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016922sed 's/^/| /' conftest.$ac_ext >&5
16923
Reid Spencera773bd52006-08-04 18:18:08 +000016924 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016925fi
Reid Spencera773bd52006-08-04 18:18:08 +000016926
16927rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016928 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016929LIBS=$ac_check_lib_save_LIBS
16930fi
Reid Spencera773bd52006-08-04 18:18:08 +000016931{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16932echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016933if test $ac_cv_lib_svld_dlopen = yes; then
16934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16935else
Reid Spencera773bd52006-08-04 18:18:08 +000016936 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16937echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016938if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940else
16941 ac_check_lib_save_LIBS=$LIBS
16942LIBS="-ldld $LIBS"
16943cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016944/* confdefs.h. */
16945_ACEOF
16946cat confdefs.h >>conftest.$ac_ext
16947cat >>conftest.$ac_ext <<_ACEOF
16948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016949
Reid Spencera773bd52006-08-04 18:18:08 +000016950/* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016953#ifdef __cplusplus
16954extern "C"
16955#endif
John Criswell7a73b802003-06-30 21:59:07 +000016956char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016957int
16958main ()
16959{
Reid Spencera773bd52006-08-04 18:18:08 +000016960return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016961 ;
16962 return 0;
16963}
16964_ACEOF
16965rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016966if { (ac_try="$ac_link"
16967case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970esac
16971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016973 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16980 { (case "(($ac_try" in
16981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982 *) ac_try_echo=$ac_try;;
16983esac
16984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993esac
16994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_cv_lib_dld_dld_link=yes
17000else
17001 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017002sed 's/^/| /' conftest.$ac_ext >&5
17003
Reid Spencera773bd52006-08-04 18:18:08 +000017004 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017005fi
Reid Spencera773bd52006-08-04 18:18:08 +000017006
17007rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017008 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017009LIBS=$ac_check_lib_save_LIBS
17010fi
Reid Spencera773bd52006-08-04 18:18:08 +000017011{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17012echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017013if test $ac_cv_lib_dld_dld_link = yes; then
17014 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17015fi
17016
17017
17018fi
17019
17020
17021fi
17022
17023
17024fi
17025
17026
17027fi
17028
17029
17030fi
17031
17032 ;;
17033 esac
17034
17035 if test "x$lt_cv_dlopen" != xno; then
17036 enable_dlopen=yes
17037 else
17038 enable_dlopen=no
17039 fi
17040
17041 case $lt_cv_dlopen in
17042 dlopen)
17043 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017044 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017045
17046 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017047 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017048
17049 save_LIBS="$LIBS"
17050 LIBS="$lt_cv_dlopen_libs $LIBS"
17051
Reid Spencera773bd52006-08-04 18:18:08 +000017052 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17053echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017054if test "${lt_cv_dlopen_self+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056else
17057 if test "$cross_compiling" = yes; then :
17058 lt_cv_dlopen_self=cross
17059else
John Criswell47fdd832003-07-14 16:52:07 +000017060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017061 lt_status=$lt_dlunknown
17062 cat > conftest.$ac_ext <<EOF
Tanya Lattnerdde567f2007-08-29 16:38:16 +000017063#line 17063 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017064#include "confdefs.h"
17065
17066#if HAVE_DLFCN_H
17067#include <dlfcn.h>
17068#endif
17069
17070#include <stdio.h>
17071
17072#ifdef RTLD_GLOBAL
17073# define LT_DLGLOBAL RTLD_GLOBAL
17074#else
17075# ifdef DL_GLOBAL
17076# define LT_DLGLOBAL DL_GLOBAL
17077# else
17078# define LT_DLGLOBAL 0
17079# endif
17080#endif
17081
17082/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17083 find out it does not work in some platform. */
17084#ifndef LT_DLLAZY_OR_NOW
17085# ifdef RTLD_LAZY
17086# define LT_DLLAZY_OR_NOW RTLD_LAZY
17087# else
17088# ifdef DL_LAZY
17089# define LT_DLLAZY_OR_NOW DL_LAZY
17090# else
17091# ifdef RTLD_NOW
17092# define LT_DLLAZY_OR_NOW RTLD_NOW
17093# else
17094# ifdef DL_NOW
17095# define LT_DLLAZY_OR_NOW DL_NOW
17096# else
17097# define LT_DLLAZY_OR_NOW 0
17098# endif
17099# endif
17100# endif
17101# endif
17102#endif
17103
17104#ifdef __cplusplus
17105extern "C" void exit (int);
17106#endif
17107
17108void fnord() { int i=42;}
17109int main ()
17110{
17111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17112 int status = $lt_dlunknown;
17113
17114 if (self)
17115 {
17116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17117 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17118 /* dlclose (self); */
17119 }
Reid Spencera773bd52006-08-04 18:18:08 +000017120 else
17121 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017122
17123 exit (status);
17124}
17125EOF
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017131 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017132 lt_status=$?
17133 case x$lt_status in
17134 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17135 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017136 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017137 esac
17138 else :
17139 # compilation failed
17140 lt_cv_dlopen_self=no
17141 fi
17142fi
17143rm -fr conftest*
17144
17145
17146fi
Reid Spencera773bd52006-08-04 18:18:08 +000017147{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17148echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017149
17150 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017151 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17152 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17153echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017154if test "${lt_cv_dlopen_self_static+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157 if test "$cross_compiling" = yes; then :
17158 lt_cv_dlopen_self_static=cross
17159else
John Criswell47fdd832003-07-14 16:52:07 +000017160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017161 lt_status=$lt_dlunknown
17162 cat > conftest.$ac_ext <<EOF
Tanya Lattnerdde567f2007-08-29 16:38:16 +000017163#line 17163 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017164#include "confdefs.h"
17165
17166#if HAVE_DLFCN_H
17167#include <dlfcn.h>
17168#endif
17169
17170#include <stdio.h>
17171
17172#ifdef RTLD_GLOBAL
17173# define LT_DLGLOBAL RTLD_GLOBAL
17174#else
17175# ifdef DL_GLOBAL
17176# define LT_DLGLOBAL DL_GLOBAL
17177# else
17178# define LT_DLGLOBAL 0
17179# endif
17180#endif
17181
17182/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17183 find out it does not work in some platform. */
17184#ifndef LT_DLLAZY_OR_NOW
17185# ifdef RTLD_LAZY
17186# define LT_DLLAZY_OR_NOW RTLD_LAZY
17187# else
17188# ifdef DL_LAZY
17189# define LT_DLLAZY_OR_NOW DL_LAZY
17190# else
17191# ifdef RTLD_NOW
17192# define LT_DLLAZY_OR_NOW RTLD_NOW
17193# else
17194# ifdef DL_NOW
17195# define LT_DLLAZY_OR_NOW DL_NOW
17196# else
17197# define LT_DLLAZY_OR_NOW 0
17198# endif
17199# endif
17200# endif
17201# endif
17202#endif
17203
17204#ifdef __cplusplus
17205extern "C" void exit (int);
17206#endif
17207
17208void fnord() { int i=42;}
17209int main ()
17210{
17211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17212 int status = $lt_dlunknown;
17213
17214 if (self)
17215 {
17216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17217 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17218 /* dlclose (self); */
17219 }
Reid Spencera773bd52006-08-04 18:18:08 +000017220 else
17221 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017222
17223 exit (status);
17224}
17225EOF
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227 (eval $ac_link) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017231 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017232 lt_status=$?
17233 case x$lt_status in
17234 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17235 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017236 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017237 esac
17238 else :
17239 # compilation failed
17240 lt_cv_dlopen_self_static=no
17241 fi
17242fi
17243rm -fr conftest*
17244
17245
17246fi
Reid Spencera773bd52006-08-04 18:18:08 +000017247{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17248echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017249 fi
17250
17251 CPPFLAGS="$save_CPPFLAGS"
17252 LDFLAGS="$save_LDFLAGS"
17253 LIBS="$save_LIBS"
17254 ;;
17255 esac
17256
17257 case $lt_cv_dlopen_self in
17258 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17259 *) enable_dlopen_self=unknown ;;
17260 esac
17261
17262 case $lt_cv_dlopen_self_static in
17263 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17264 *) enable_dlopen_self_static=unknown ;;
17265 esac
17266fi
17267
17268
Reid Spencera773bd52006-08-04 18:18:08 +000017269# Report which library types will actually be built
17270{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17271echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17272{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17273echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017274
Reid Spencera773bd52006-08-04 18:18:08 +000017275{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17276echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017277test "$can_build_shared" = "no" && enable_shared=no
17278
17279# On AIX, shared libraries and static libraries use the same namespace, and
17280# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017281case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017282aix3*)
17283 test "$enable_shared" = yes && enable_static=no
17284 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017285 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017286 postinstall_cmds='$RANLIB $lib'
17287 fi
17288 ;;
17289
Reid Spencer2706f8c2004-09-19 23:53:36 +000017290aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017291 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17292 test "$enable_shared" = yes && enable_static=no
17293 fi
John Criswell7a73b802003-06-30 21:59:07 +000017294 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017295esac
Reid Spencera773bd52006-08-04 18:18:08 +000017296{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17297echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017298
Reid Spencera773bd52006-08-04 18:18:08 +000017299{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17300echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017301# Make sure either enable_shared or enable_static is yes.
17302test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017303{ echo "$as_me:$LINENO: result: $enable_static" >&5
17304echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017305
17306# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017307# libtool distribution, otherwise you forgot to ship ltmain.sh
17308# with your package, and you will get complaints that there are
17309# no rules to generate ltmain.sh.
17310if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017311 # See if we are running on zsh, and set the options which allow our commands through
17312 # without removal of \ escapes.
17313 if test -n "${ZSH_VERSION+set}" ; then
17314 setopt NO_GLOB_SUBST
17315 fi
John Criswell7a73b802003-06-30 21:59:07 +000017316 # Now quote all the things that may contain metacharacters while being
17317 # careful not to overquote the AC_SUBSTed values. We take copies of the
17318 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017319 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 +000017320 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017321 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17322 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17323 deplibs_check_method reload_flag reload_cmds need_locks \
17324 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17325 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017326 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017327 old_postinstall_cmds old_postuninstall_cmds \
17328 compiler \
17329 CC \
17330 LD \
17331 lt_prog_compiler_wl \
17332 lt_prog_compiler_pic \
17333 lt_prog_compiler_static \
17334 lt_prog_compiler_no_builtin_flag \
17335 export_dynamic_flag_spec \
17336 thread_safe_flag_spec \
17337 whole_archive_flag_spec \
17338 enable_shared_with_static_runtimes \
17339 old_archive_cmds \
17340 old_archive_from_new_cmds \
17341 predep_objects \
17342 postdep_objects \
17343 predeps \
17344 postdeps \
17345 compiler_lib_search_path \
17346 archive_cmds \
17347 archive_expsym_cmds \
17348 postinstall_cmds \
17349 postuninstall_cmds \
17350 old_archive_from_expsyms_cmds \
17351 allow_undefined_flag \
17352 no_undefined_flag \
17353 export_symbols_cmds \
17354 hardcode_libdir_flag_spec \
17355 hardcode_libdir_flag_spec_ld \
17356 hardcode_libdir_separator \
17357 hardcode_automatic \
17358 module_cmds \
17359 module_expsym_cmds \
17360 lt_cv_prog_compiler_c_o \
17361 exclude_expsyms \
17362 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017363
17364 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017365 old_archive_cmds | \
17366 old_archive_from_new_cmds | \
17367 archive_cmds | \
17368 archive_expsym_cmds | \
17369 module_cmds | \
17370 module_expsym_cmds | \
17371 old_archive_from_expsyms_cmds | \
17372 export_symbols_cmds | \
17373 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017374 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017375 old_postinstall_cmds | old_postuninstall_cmds | \
17376 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017377 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017378 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 +000017379 ;;
17380 *)
17381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17382 ;;
17383 esac
17384 done
17385
John Criswell47fdd832003-07-14 16:52:07 +000017386 case $lt_echo in
17387 *'\$0 --fallback-echo"')
17388 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17389 ;;
17390 esac
17391
17392cfgfile="${ofile}T"
17393 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17394 $rm -f "$cfgfile"
17395 { echo "$as_me:$LINENO: creating $ofile" >&5
17396echo "$as_me: creating $ofile" >&6;}
17397
17398 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017399#! $SHELL
17400
John Criswell47fdd832003-07-14 16:52:07 +000017401# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017402# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17403# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17404#
John Criswell47fdd832003-07-14 16:52:07 +000017405# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17406# Free Software Foundation, Inc.
17407#
17408# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017409# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17410#
17411# This program is free software; you can redistribute it and/or modify
17412# it under the terms of the GNU General Public License as published by
17413# the Free Software Foundation; either version 2 of the License, or
17414# (at your option) any later version.
17415#
17416# This program is distributed in the hope that it will be useful, but
17417# WITHOUT ANY WARRANTY; without even the implied warranty of
17418# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17419# General Public License for more details.
17420#
17421# You should have received a copy of the GNU General Public License
17422# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017423# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017424#
17425# As a special exception to the GNU General Public License, if you
17426# distribute this file as part of a program that contains a
17427# configuration script generated by Autoconf, you may include it under
17428# the same distribution terms that you use for the rest of that program.
17429
John Criswell47fdd832003-07-14 16:52:07 +000017430# A sed program that does not truncate output.
17431SED=$lt_SED
17432
John Criswell7a73b802003-06-30 21:59:07 +000017433# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017434Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017435
17436# The HP-UX ksh and POSIX shell print the target directory to stdout
17437# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017438(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017439
John Criswell47fdd832003-07-14 16:52:07 +000017440# The names of the tagged configurations supported by this script.
17441available_tags=
17442
John Criswell7a73b802003-06-30 21:59:07 +000017443# ### BEGIN LIBTOOL CONFIG
17444
17445# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17446
17447# Shell to use when invoking shell scripts.
17448SHELL=$lt_SHELL
17449
17450# Whether or not to build shared libraries.
17451build_libtool_libs=$enable_shared
17452
17453# Whether or not to build static libraries.
17454build_old_libs=$enable_static
17455
17456# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017457build_libtool_need_lc=$archive_cmds_need_lc
17458
17459# Whether or not to disallow shared libs when runtime libs are static
17460allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017461
17462# Whether or not to optimize for fast installation.
17463fast_install=$enable_fast_install
17464
17465# The host system.
17466host_alias=$host_alias
17467host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017468host_os=$host_os
17469
17470# The build system.
17471build_alias=$build_alias
17472build=$build
17473build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017474
17475# An echo program that does not interpret backslashes.
17476echo=$lt_echo
17477
17478# The archiver.
17479AR=$lt_AR
17480AR_FLAGS=$lt_AR_FLAGS
17481
John Criswell47fdd832003-07-14 16:52:07 +000017482# A C compiler.
17483LTCC=$lt_LTCC
17484
Reid Spencera773bd52006-08-04 18:18:08 +000017485# LTCC compiler flags.
17486LTCFLAGS=$lt_LTCFLAGS
17487
John Criswell47fdd832003-07-14 16:52:07 +000017488# A language-specific compiler.
17489CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017490
17491# Is the compiler the GNU C compiler?
17492with_gcc=$GCC
17493
John Criswell47fdd832003-07-14 16:52:07 +000017494# An ERE matcher.
17495EGREP=$lt_EGREP
17496
John Criswell7a73b802003-06-30 21:59:07 +000017497# The linker used to build libraries.
17498LD=$lt_LD
17499
17500# Whether we need hard or soft links.
17501LN_S=$lt_LN_S
17502
17503# A BSD-compatible nm program.
17504NM=$lt_NM
17505
17506# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017507STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017508
17509# Used to examine libraries when file_magic_cmd begins "file"
17510MAGIC_CMD=$MAGIC_CMD
17511
17512# Used on cygwin: DLL creation program.
17513DLLTOOL="$DLLTOOL"
17514
17515# Used on cygwin: object dumper.
17516OBJDUMP="$OBJDUMP"
17517
17518# Used on cygwin: assembler.
17519AS="$AS"
17520
17521# The name of the directory that contains temporary libtool files.
17522objdir=$objdir
17523
17524# How to create reloadable object files.
17525reload_flag=$lt_reload_flag
17526reload_cmds=$lt_reload_cmds
17527
17528# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017529wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017530
17531# Object file suffix (normally "o").
17532objext="$ac_objext"
17533
17534# Old archive suffix (normally "a").
17535libext="$libext"
17536
John Criswell47fdd832003-07-14 16:52:07 +000017537# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017538shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017539
John Criswell7a73b802003-06-30 21:59:07 +000017540# Executable file suffix (normally "").
17541exeext="$exeext"
17542
17543# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017544pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017545pic_mode=$pic_mode
17546
John Criswell47fdd832003-07-14 16:52:07 +000017547# What is the maximum length of a command?
17548max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017549
John Criswell47fdd832003-07-14 16:52:07 +000017550# Does compiler simultaneously support -c and -o options?
17551compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017552
Reid Spencera773bd52006-08-04 18:18:08 +000017553# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017554need_locks=$lt_need_locks
17555
17556# Do we need the lib prefix for modules?
17557need_lib_prefix=$need_lib_prefix
17558
17559# Do we need a version for libraries?
17560need_version=$need_version
17561
17562# Whether dlopen is supported.
17563dlopen_support=$enable_dlopen
17564
17565# Whether dlopen of programs is supported.
17566dlopen_self=$enable_dlopen_self
17567
17568# Whether dlopen of statically linked programs is supported.
17569dlopen_self_static=$enable_dlopen_self_static
17570
17571# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017572link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017573
17574# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017575no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017576
17577# Compiler flag to allow reflexive dlopens.
17578export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17579
17580# Compiler flag to generate shared objects directly from archives.
17581whole_archive_flag_spec=$lt_whole_archive_flag_spec
17582
17583# Compiler flag to generate thread-safe objects.
17584thread_safe_flag_spec=$lt_thread_safe_flag_spec
17585
17586# Library versioning type.
17587version_type=$version_type
17588
17589# Format of library name prefix.
17590libname_spec=$lt_libname_spec
17591
17592# List of archive names. First name is the real one, the rest are links.
17593# The last name is the one that the linker finds with -lNAME.
17594library_names_spec=$lt_library_names_spec
17595
17596# The coded name of the library, if different from the real name.
17597soname_spec=$lt_soname_spec
17598
17599# Commands used to build and install an old-style archive.
17600RANLIB=$lt_RANLIB
17601old_archive_cmds=$lt_old_archive_cmds
17602old_postinstall_cmds=$lt_old_postinstall_cmds
17603old_postuninstall_cmds=$lt_old_postuninstall_cmds
17604
17605# Create an old-style archive from a shared archive.
17606old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17607
17608# Create a temporary old-style archive to link instead of a shared archive.
17609old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17610
17611# Commands used to build and install a shared archive.
17612archive_cmds=$lt_archive_cmds
17613archive_expsym_cmds=$lt_archive_expsym_cmds
17614postinstall_cmds=$lt_postinstall_cmds
17615postuninstall_cmds=$lt_postuninstall_cmds
17616
John Criswell47fdd832003-07-14 16:52:07 +000017617# Commands used to build a loadable module (assumed same as above if empty)
17618module_cmds=$lt_module_cmds
17619module_expsym_cmds=$lt_module_expsym_cmds
17620
John Criswell7a73b802003-06-30 21:59:07 +000017621# Commands to strip libraries.
17622old_striplib=$lt_old_striplib
17623striplib=$lt_striplib
17624
John Criswell47fdd832003-07-14 16:52:07 +000017625# Dependencies to place before the objects being linked to create a
17626# shared library.
17627predep_objects=$lt_predep_objects
17628
17629# Dependencies to place after the objects being linked to create a
17630# shared library.
17631postdep_objects=$lt_postdep_objects
17632
17633# Dependencies to place before the objects being linked to create a
17634# shared library.
17635predeps=$lt_predeps
17636
17637# Dependencies to place after the objects being linked to create a
17638# shared library.
17639postdeps=$lt_postdeps
17640
17641# The library search path used internally by the compiler when linking
17642# a shared library.
17643compiler_lib_search_path=$lt_compiler_lib_search_path
17644
John Criswell7a73b802003-06-30 21:59:07 +000017645# Method to check whether dependent libraries are shared objects.
17646deplibs_check_method=$lt_deplibs_check_method
17647
17648# Command to use when deplibs_check_method == file_magic.
17649file_magic_cmd=$lt_file_magic_cmd
17650
17651# Flag that allows shared libraries with undefined symbols to be built.
17652allow_undefined_flag=$lt_allow_undefined_flag
17653
17654# Flag that forces no undefined symbols.
17655no_undefined_flag=$lt_no_undefined_flag
17656
17657# Commands used to finish a libtool library installation in a directory.
17658finish_cmds=$lt_finish_cmds
17659
17660# Same as above, but a single script fragment to be evaled but not shown.
17661finish_eval=$lt_finish_eval
17662
17663# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017664global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017665
17666# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017667global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017668
17669# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017670global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017671
17672# This is the shared library runtime path variable.
17673runpath_var=$runpath_var
17674
17675# This is the shared library path variable.
17676shlibpath_var=$shlibpath_var
17677
17678# Is shlibpath searched before the hard-coded library search path?
17679shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17680
17681# How to hardcode a shared library path into an executable.
17682hardcode_action=$hardcode_action
17683
17684# Whether we should hardcode library paths into libraries.
17685hardcode_into_libs=$hardcode_into_libs
17686
17687# Flag to hardcode \$libdir into a binary during linking.
17688# This must work even if \$libdir does not exist.
17689hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17690
John Criswell47fdd832003-07-14 16:52:07 +000017691# If ld is used when linking, flag to hardcode \$libdir into
17692# a binary during linking. This must work even if \$libdir does
17693# not exist.
17694hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17695
John Criswell7a73b802003-06-30 21:59:07 +000017696# Whether we need a single -rpath flag with a separated argument.
17697hardcode_libdir_separator=$lt_hardcode_libdir_separator
17698
John Criswell47fdd832003-07-14 16:52:07 +000017699# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017700# resulting binary.
17701hardcode_direct=$hardcode_direct
17702
17703# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17704# resulting binary.
17705hardcode_minus_L=$hardcode_minus_L
17706
17707# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17708# the resulting binary.
17709hardcode_shlibpath_var=$hardcode_shlibpath_var
17710
John Criswell47fdd832003-07-14 16:52:07 +000017711# Set to yes if building a shared library automatically hardcodes DIR into the library
17712# and all subsequent libraries and executables linked against it.
17713hardcode_automatic=$hardcode_automatic
17714
John Criswell7a73b802003-06-30 21:59:07 +000017715# Variables whose values should be saved in libtool wrapper scripts and
17716# restored at relink time.
17717variables_saved_for_relink="$variables_saved_for_relink"
17718
17719# Whether libtool must link a program against all its dependency libraries.
17720link_all_deplibs=$link_all_deplibs
17721
17722# Compile-time system search path for libraries
17723sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17724
17725# Run-time system search path for libraries
17726sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17727
17728# Fix the shell variable \$srcfile for the compiler.
17729fix_srcfile_path="$fix_srcfile_path"
17730
17731# Set to yes if exported symbols are required.
17732always_export_symbols=$always_export_symbols
17733
17734# The commands to list exported symbols.
17735export_symbols_cmds=$lt_export_symbols_cmds
17736
17737# The commands to extract the exported symbol list from a shared archive.
17738extract_expsyms_cmds=$lt_extract_expsyms_cmds
17739
17740# Symbols that should not be listed in the preloaded symbols.
17741exclude_expsyms=$lt_exclude_expsyms
17742
17743# Symbols that must always be exported.
17744include_expsyms=$lt_include_expsyms
17745
17746# ### END LIBTOOL CONFIG
17747
17748__EOF__
17749
John Criswell47fdd832003-07-14 16:52:07 +000017750
John Criswell7a73b802003-06-30 21:59:07 +000017751 case $host_os in
17752 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017753 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017754
17755# AIX sometimes has problems with the GCC collect2 program. For some
17756# reason, if we set the COLLECT_NAMES environment variable, the problems
17757# vanish in a puff of smoke.
17758if test "X${COLLECT_NAMES+set}" != Xset; then
17759 COLLECT_NAMES=
17760 export COLLECT_NAMES
17761fi
17762EOF
17763 ;;
17764 esac
17765
John Criswell7a73b802003-06-30 21:59:07 +000017766 # We use sed instead of cat because bash on DJGPP gets confused if
17767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17768 # text mode, it properly converts lines to CR/LF. This bash problem
17769 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017770 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017771
John Criswell47fdd832003-07-14 16:52:07 +000017772 mv -f "$cfgfile" "$ofile" || \
17773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017774 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017775
17776else
17777 # If there is no Makefile yet, we rely on a make rule to execute
17778 # `config.status --recheck' to rerun these tests and create the
17779 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17781 if test -f "$ltmain_in"; then
17782 test -f Makefile && make "$ltmain"
17783 fi
John Criswell7a73b802003-06-30 21:59:07 +000017784fi
John Criswell7a73b802003-06-30 21:59:07 +000017785
17786
John Criswell47fdd832003-07-14 16:52:07 +000017787ac_ext=c
17788ac_cpp='$CPP $CPPFLAGS'
17789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791ac_compiler_gnu=$ac_cv_c_compiler_gnu
17792
17793CC="$lt_save_CC"
17794
17795
Reid Spencera773bd52006-08-04 18:18:08 +000017796# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017797if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017798 withval=$with_tags; tagnames="$withval"
17799fi
17800
John Criswell47fdd832003-07-14 16:52:07 +000017801
17802if test -f "$ltmain" && test -n "$tagnames"; then
17803 if test ! -f "${ofile}"; then
17804 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17805echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17806 fi
17807
17808 if test -z "$LTCC"; then
17809 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17810 if test -z "$LTCC"; then
17811 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17812echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17813 else
17814 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17815echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17816 fi
17817 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017818 if test -z "$LTCFLAGS"; then
17819 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17820 fi
John Criswell47fdd832003-07-14 16:52:07 +000017821
17822 # Extract list of available tagged configurations in $ofile.
17823 # Note that this assumes the entire list is on one line.
17824 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17825
17826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17827 for tagname in $tagnames; do
17828 IFS="$lt_save_ifs"
17829 # Check whether tagname contains only valid characters
17830 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17831 "") ;;
17832 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17833echo "$as_me: error: invalid tag name: $tagname" >&2;}
17834 { (exit 1); exit 1; }; }
17835 ;;
17836 esac
17837
17838 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17839 then
17840 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17841echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17842 { (exit 1); exit 1; }; }
17843 fi
17844
17845 # Update the list of available tags.
17846 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017847 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017848
17849 case $tagname in
17850 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017851 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17852 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17853 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017854 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017855ac_cpp='$CXXCPP $CPPFLAGS'
17856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17859
17860
17861
17862
17863archive_cmds_need_lc_CXX=no
17864allow_undefined_flag_CXX=
17865always_export_symbols_CXX=no
17866archive_expsym_cmds_CXX=
17867export_dynamic_flag_spec_CXX=
17868hardcode_direct_CXX=no
17869hardcode_libdir_flag_spec_CXX=
17870hardcode_libdir_flag_spec_ld_CXX=
17871hardcode_libdir_separator_CXX=
17872hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017873hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017874hardcode_automatic_CXX=no
17875module_cmds_CXX=
17876module_expsym_cmds_CXX=
17877link_all_deplibs_CXX=unknown
17878old_archive_cmds_CXX=$old_archive_cmds
17879no_undefined_flag_CXX=
17880whole_archive_flag_spec_CXX=
17881enable_shared_with_static_runtimes_CXX=no
17882
17883# Dependencies to place before and after the object being linked:
17884predep_objects_CXX=
17885postdep_objects_CXX=
17886predeps_CXX=
17887postdeps_CXX=
17888compiler_lib_search_path_CXX=
17889
17890# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017891ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017892
17893# Object file extension for compiled C++ test sources.
17894objext=o
17895objext_CXX=$objext
17896
17897# Code to be used in simple compile tests
17898lt_simple_compile_test_code="int some_variable = 0;\n"
17899
17900# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017901lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017902
17903# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17904
17905# If no C compiler was specified, use CC.
17906LTCC=${LTCC-"$CC"}
17907
Reid Spencera773bd52006-08-04 18:18:08 +000017908# If no C compiler flags were specified, use CFLAGS.
17909LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17910
John Criswell47fdd832003-07-14 16:52:07 +000017911# Allow CC to be a program name with arguments.
17912compiler=$CC
17913
17914
Reid Spencera773bd52006-08-04 18:18:08 +000017915# save warnings/boilerplate of simple test code
17916ac_outfile=conftest.$ac_objext
17917printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17918eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17919_lt_compiler_boilerplate=`cat conftest.err`
17920$rm conftest*
17921
17922ac_outfile=conftest.$ac_objext
17923printf "$lt_simple_link_test_code" >conftest.$ac_ext
17924eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17925_lt_linker_boilerplate=`cat conftest.err`
17926$rm conftest*
17927
17928
John Criswell47fdd832003-07-14 16:52:07 +000017929# Allow CC to be a program name with arguments.
17930lt_save_CC=$CC
17931lt_save_LD=$LD
17932lt_save_GCC=$GCC
17933GCC=$GXX
17934lt_save_with_gnu_ld=$with_gnu_ld
17935lt_save_path_LD=$lt_cv_path_LD
17936if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17938else
Reid Spencera773bd52006-08-04 18:18:08 +000017939 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017940fi
17941if test -n "${lt_cv_path_LDCXX+set}"; then
17942 lt_cv_path_LD=$lt_cv_path_LDCXX
17943else
Reid Spencera773bd52006-08-04 18:18:08 +000017944 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017945fi
17946test -z "${LDCXX+set}" || LD=$LDCXX
17947CC=${CXX-"c++"}
17948compiler=$CC
17949compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017950for cc_temp in $compiler""; do
17951 case $cc_temp in
17952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17954 \-*) ;;
17955 *) break;;
17956 esac
17957done
17958cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17959
John Criswell47fdd832003-07-14 16:52:07 +000017960
17961# We don't want -fno-exception wen compiling C++ code, so set the
17962# no_builtin_flag separately
17963if test "$GXX" = yes; then
17964 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17965else
17966 lt_prog_compiler_no_builtin_flag_CXX=
17967fi
17968
17969if test "$GXX" = yes; then
17970 # Set up default GNU C++ configuration
17971
17972
Reid Spencera773bd52006-08-04 18:18:08 +000017973# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017974if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017975 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017976else
17977 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017978fi
17979
John Criswell47fdd832003-07-14 16:52:07 +000017980ac_prog=ld
17981if test "$GCC" = yes; then
17982 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017983 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17984echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017985 case $host in
17986 *-*-mingw*)
17987 # gcc leaves a trailing carriage return which upsets mingw
17988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17989 *)
17990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17991 esac
17992 case $ac_prog in
17993 # Accept absolute paths.
17994 [\\/]* | ?:[\\/]*)
17995 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017996 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017997 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17998 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17999 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18000 done
18001 test -z "$LD" && LD="$ac_prog"
18002 ;;
18003 "")
18004 # If it fails, then pretend we aren't using GCC.
18005 ac_prog=ld
18006 ;;
18007 *)
18008 # If it is relative, then search for the first ld in PATH.
18009 with_gnu_ld=unknown
18010 ;;
18011 esac
18012elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018013 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18014echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018015else
Reid Spencera773bd52006-08-04 18:18:08 +000018016 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18017echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018018fi
18019if test "${lt_cv_path_LD+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021else
18022 if test -z "$LD"; then
18023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18024 for ac_dir in $PATH; do
18025 IFS="$lt_save_ifs"
18026 test -z "$ac_dir" && ac_dir=.
18027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18028 lt_cv_path_LD="$ac_dir/$ac_prog"
18029 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018030 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018031 # Break only if it was the GNU/non-GNU ld that we prefer.
18032 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18033 *GNU* | *'with BFD'*)
18034 test "$with_gnu_ld" != no && break
18035 ;;
18036 *)
18037 test "$with_gnu_ld" != yes && break
18038 ;;
18039 esac
18040 fi
18041 done
18042 IFS="$lt_save_ifs"
18043else
18044 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18045fi
18046fi
18047
18048LD="$lt_cv_path_LD"
18049if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018050 { echo "$as_me:$LINENO: result: $LD" >&5
18051echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018052else
Reid Spencera773bd52006-08-04 18:18:08 +000018053 { echo "$as_me:$LINENO: result: no" >&5
18054echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018055fi
18056test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18057echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18058 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018059{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18060echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018061if test "${lt_cv_prog_gnu_ld+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18063else
Reid Spencera773bd52006-08-04 18:18:08 +000018064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018065case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018066*GNU* | *'with BFD'*)
18067 lt_cv_prog_gnu_ld=yes
18068 ;;
18069*)
18070 lt_cv_prog_gnu_ld=no
18071 ;;
18072esac
18073fi
Reid Spencera773bd52006-08-04 18:18:08 +000018074{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18075echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018076with_gnu_ld=$lt_cv_prog_gnu_ld
18077
18078
18079
18080 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18081 # archiving commands below assume that GNU ld is being used.
18082 if test "$with_gnu_ld" = yes; then
18083 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18084 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'
18085
18086 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18088
18089 # If archive_cmds runs LD, not CC, wlarc should be empty
18090 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18091 # investigate it a little bit more. (MM)
18092 wlarc='${wl}'
18093
18094 # ancient GNU ld didn't support --whole-archive et. al.
18095 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18096 grep 'no-whole-archive' > /dev/null; then
18097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18098 else
18099 whole_archive_flag_spec_CXX=
18100 fi
18101 else
18102 with_gnu_ld=no
18103 wlarc=
18104
18105 # A generic and very simple default shared library creation
18106 # command for GNU C++ for the case where it uses the native
18107 # linker, instead of GNU ld. If possible, this setting should
18108 # overridden to take advantage of the native linker features on
18109 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018111 fi
18112
18113 # Commands to make compiler produce verbose output that lists
18114 # what "hidden" libraries, object files and flags are used when
18115 # linking a shared library.
18116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18117
18118else
18119 GXX=no
18120 with_gnu_ld=no
18121 wlarc=
18122fi
18123
18124# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018125{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18126echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018127ld_shlibs_CXX=yes
18128case $host_os in
18129 aix3*)
18130 # FIXME: insert proper C++ library support
18131 ld_shlibs_CXX=no
18132 ;;
18133 aix4* | aix5*)
18134 if test "$host_cpu" = ia64; then
18135 # On IA64, the linker does run time linking by default, so we don't
18136 # have to do anything special.
18137 aix_use_runtimelinking=no
18138 exp_sym_flag='-Bexport'
18139 no_entry_flag=""
18140 else
18141 aix_use_runtimelinking=no
18142
18143 # Test if we are trying to use run time linking or normal
18144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18145 # need to do runtime linking.
18146 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18147 for ld_flag in $LDFLAGS; do
18148 case $ld_flag in
18149 *-brtl*)
18150 aix_use_runtimelinking=yes
18151 break
18152 ;;
18153 esac
18154 done
Reid Spencera773bd52006-08-04 18:18:08 +000018155 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018156 esac
18157
18158 exp_sym_flag='-bexport'
18159 no_entry_flag='-bnoentry'
18160 fi
18161
18162 # When large executables or shared objects are built, AIX ld can
18163 # have problems creating the table of contents. If linking a library
18164 # or program results in "error TOC overflow" add -mminimal-toc to
18165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18167
18168 archive_cmds_CXX=''
18169 hardcode_direct_CXX=yes
18170 hardcode_libdir_separator_CXX=':'
18171 link_all_deplibs_CXX=yes
18172
18173 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018174 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018175 # We only want to do this on AIX 4.2 and lower, the check
18176 # below for broken collect2 doesn't work under 4.3+
18177 collect2name=`${CC} -print-prog-name=collect2`
18178 if test -f "$collect2name" && \
18179 strings "$collect2name" | grep resolve_lib_name >/dev/null
18180 then
18181 # We have reworked collect2
18182 hardcode_direct_CXX=yes
18183 else
18184 # We have old collect2
18185 hardcode_direct_CXX=unsupported
18186 # It fails to find uninstalled libraries when the uninstalled
18187 # path is not listed in the libpath. Setting hardcode_minus_L
18188 # to unsupported forces relinking
18189 hardcode_minus_L_CXX=yes
18190 hardcode_libdir_flag_spec_CXX='-L$libdir'
18191 hardcode_libdir_separator_CXX=
18192 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018193 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018194 esac
18195 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018196 if test "$aix_use_runtimelinking" = yes; then
18197 shared_flag="$shared_flag "'${wl}-G'
18198 fi
John Criswell47fdd832003-07-14 16:52:07 +000018199 else
18200 # not using gcc
18201 if test "$host_cpu" = ia64; then
18202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18203 # chokes on -Wl,-G. The following line is correct:
18204 shared_flag='-G'
18205 else
18206 if test "$aix_use_runtimelinking" = yes; then
18207 shared_flag='${wl}-G'
18208 else
18209 shared_flag='${wl}-bM:SRE'
18210 fi
18211 fi
18212 fi
18213
18214 # It seems that -bexpall does not export symbols beginning with
18215 # underscore (_), so it is better to generate a list of symbols to export.
18216 always_export_symbols_CXX=yes
18217 if test "$aix_use_runtimelinking" = yes; then
18218 # Warning - without using the other runtime loading flags (-brtl),
18219 # -berok will link without error, but may produce a broken library.
18220 allow_undefined_flag_CXX='-berok'
18221 # Determine the default libpath from the value encoded in an empty executable.
18222 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018223/* confdefs.h. */
18224_ACEOF
18225cat confdefs.h >>conftest.$ac_ext
18226cat >>conftest.$ac_ext <<_ACEOF
18227/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018228
John Criswell47fdd832003-07-14 16:52:07 +000018229int
18230main ()
18231{
18232
18233 ;
18234 return 0;
18235}
18236_ACEOF
18237rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018238if { (ac_try="$ac_link"
18239case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242esac
18243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018246 grep -v '^ *+' conftest.er1 >conftest.err
18247 rm -f conftest.er1
18248 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18252 { (case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18255esac
18256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265esac
18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271
18272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18273}'`
18274# Check for a 64-bit object if we didn't find anything.
18275if 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; }
18276}'`; fi
18277else
18278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018279sed 's/^/| /' conftest.$ac_ext >&5
18280
Reid Spencera773bd52006-08-04 18:18:08 +000018281
John Criswell47fdd832003-07-14 16:52:07 +000018282fi
Reid Spencera773bd52006-08-04 18:18:08 +000018283
18284rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018285 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018286if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18287
18288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18289
Reid Spencera773bd52006-08-04 18:18:08 +000018290 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 +000018291 else
18292 if test "$host_cpu" = ia64; then
18293 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18294 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018295 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 +000018296 else
18297 # Determine the default libpath from the value encoded in an empty executable.
18298 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018299/* confdefs.h. */
18300_ACEOF
18301cat confdefs.h >>conftest.$ac_ext
18302cat >>conftest.$ac_ext <<_ACEOF
18303/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018304
John Criswell47fdd832003-07-14 16:52:07 +000018305int
18306main ()
18307{
18308
18309 ;
18310 return 0;
18311}
18312_ACEOF
18313rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018314if { (ac_try="$ac_link"
18315case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318esac
18319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331esac
18332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341esac
18342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347
18348aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18349}'`
18350# Check for a 64-bit object if we didn't find anything.
18351if 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; }
18352}'`; fi
18353else
18354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018355sed 's/^/| /' conftest.$ac_ext >&5
18356
Reid Spencera773bd52006-08-04 18:18:08 +000018357
John Criswell47fdd832003-07-14 16:52:07 +000018358fi
Reid Spencera773bd52006-08-04 18:18:08 +000018359
18360rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018361 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018362if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18363
18364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18365 # Warning - without using the other run time loading flags,
18366 # -berok will link without error, but may produce a broken library.
18367 no_undefined_flag_CXX=' ${wl}-bernotok'
18368 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018369 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018370 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018371 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018372 # This is similar to how AIX traditionally builds its shared libraries.
18373 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 +000018374 fi
18375 fi
18376 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018377
18378 beos*)
18379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18380 allow_undefined_flag_CXX=unsupported
18381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18382 # support --undefined. This deserves some investigation. FIXME
18383 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18384 else
18385 ld_shlibs_CXX=no
18386 fi
18387 ;;
18388
John Criswell47fdd832003-07-14 16:52:07 +000018389 chorus*)
18390 case $cc_basename in
18391 *)
18392 # FIXME: insert proper C++ library support
18393 ld_shlibs_CXX=no
18394 ;;
18395 esac
18396 ;;
18397
18398 cygwin* | mingw* | pw32*)
18399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18400 # as there is no search path for DLLs.
18401 hardcode_libdir_flag_spec_CXX='-L$libdir'
18402 allow_undefined_flag_CXX=unsupported
18403 always_export_symbols_CXX=no
18404 enable_shared_with_static_runtimes_CXX=yes
18405
18406 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018407 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 +000018408 # If the export-symbols file already is a .def file (1st line
18409 # is EXPORTS), use it as is; otherwise, prepend...
18410 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18411 cp $export_symbols $output_objdir/$soname.def;
18412 else
18413 echo EXPORTS > $output_objdir/$soname.def;
18414 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018415 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018416 $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 +000018417 else
18418 ld_shlibs_CXX=no
18419 fi
18420 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018421 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018422 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018423 rhapsody* | darwin1.[012])
18424 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18425 ;;
18426 *) # Darwin 1.3 on
18427 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18428 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18429 else
18430 case ${MACOSX_DEPLOYMENT_TARGET} in
18431 10.[012])
18432 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18433 ;;
18434 10.*)
18435 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18436 ;;
18437 esac
18438 fi
18439 ;;
18440 esac
18441 archive_cmds_need_lc_CXX=no
18442 hardcode_direct_CXX=no
18443 hardcode_automatic_CXX=yes
18444 hardcode_shlibpath_var_CXX=unsupported
18445 whole_archive_flag_spec_CXX=''
18446 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018447
Reid Spencer2706f8c2004-09-19 23:53:36 +000018448 if test "$GXX" = yes ; then
18449 lt_int_apple_cc_single_mod=no
18450 output_verbose_link_cmd='echo'
18451 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18452 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018453 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018454 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018455 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 +000018456 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018457 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 +000018458 fi
18459 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018460 # 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 +000018461 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018462 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 +000018463 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018464 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 +000018465 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018466 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 +000018467 else
Reid Spencera773bd52006-08-04 18:18:08 +000018468 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018469 xlc*)
18470 output_verbose_link_cmd='echo'
18471 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'
18472 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018473 # 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 +000018474 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}'
18475 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 +000018476 ;;
18477 *)
18478 ld_shlibs_CXX=no
18479 ;;
18480 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018481 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018482 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018483
18484 dgux*)
18485 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018486 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018487 # FIXME: insert proper C++ library support
18488 ld_shlibs_CXX=no
18489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018490 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018491 # Green Hills C++ Compiler
18492 # FIXME: insert proper C++ library support
18493 ld_shlibs_CXX=no
18494 ;;
18495 *)
18496 # FIXME: insert proper C++ library support
18497 ld_shlibs_CXX=no
18498 ;;
18499 esac
18500 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018501 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018502 # C++ shared libraries reported to be fairly broken before switch to ELF
18503 ld_shlibs_CXX=no
18504 ;;
18505 freebsd-elf*)
18506 archive_cmds_need_lc_CXX=no
18507 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018508 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018509 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18510 # conventions
18511 ld_shlibs_CXX=yes
18512 ;;
18513 gnu*)
18514 ;;
18515 hpux9*)
18516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18517 hardcode_libdir_separator_CXX=:
18518 export_dynamic_flag_spec_CXX='${wl}-E'
18519 hardcode_direct_CXX=yes
18520 hardcode_minus_L_CXX=yes # Not in the search PATH,
18521 # but as the default
18522 # location of the library.
18523
18524 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018525 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018526 # FIXME: insert proper C++ library support
18527 ld_shlibs_CXX=no
18528 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018529 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018530 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 +000018531 # Commands to make compiler produce verbose output that lists
18532 # what "hidden" libraries, object files and flags are used when
18533 # linking a shared library.
18534 #
18535 # There doesn't appear to be a way to prevent this compiler from
18536 # explicitly linking system object files so we need to strip them
18537 # from the output so that they don't get included in the library
18538 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018539 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 +000018540 ;;
18541 *)
18542 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018543 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 +000018544 else
18545 # FIXME: insert proper C++ library support
18546 ld_shlibs_CXX=no
18547 fi
18548 ;;
18549 esac
18550 ;;
18551 hpux10*|hpux11*)
18552 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18554 hardcode_libdir_separator_CXX=:
18555
18556 case $host_cpu in
18557 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018558 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018559 ;;
18560 *)
John Criswell47fdd832003-07-14 16:52:07 +000018561 export_dynamic_flag_spec_CXX='${wl}-E'
18562 ;;
18563 esac
18564 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018565 case $host_cpu in
18566 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018567 hardcode_direct_CXX=no
18568 hardcode_shlibpath_var_CXX=no
18569 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018570 *)
18571 hardcode_direct_CXX=yes
18572 hardcode_minus_L_CXX=yes # Not in the search PATH,
18573 # but as the default
18574 # location of the library.
18575 ;;
18576 esac
18577
18578 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018579 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018580 # FIXME: insert proper C++ library support
18581 ld_shlibs_CXX=no
18582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018583 aCC*)
18584 case $host_cpu in
18585 hppa*64*)
18586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18587 ;;
18588 ia64*)
18589 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 +000018590 ;;
18591 *)
18592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18593 ;;
18594 esac
18595 # Commands to make compiler produce verbose output that lists
18596 # what "hidden" libraries, object files and flags are used when
18597 # linking a shared library.
18598 #
18599 # There doesn't appear to be a way to prevent this compiler from
18600 # explicitly linking system object files so we need to strip them
18601 # from the output so that they don't get included in the library
18602 # dependencies.
18603 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'
18604 ;;
18605 *)
18606 if test "$GXX" = yes; then
18607 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018608 case $host_cpu in
18609 hppa*64*)
18610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18611 ;;
18612 ia64*)
18613 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 +000018614 ;;
18615 *)
18616 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'
18617 ;;
18618 esac
18619 fi
18620 else
18621 # FIXME: insert proper C++ library support
18622 ld_shlibs_CXX=no
18623 fi
18624 ;;
18625 esac
18626 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018627 interix3*)
18628 hardcode_direct_CXX=no
18629 hardcode_shlibpath_var_CXX=no
18630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18631 export_dynamic_flag_spec_CXX='${wl}-E'
18632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18633 # Instead, shared libraries are loaded at an image base (0x10000000 by
18634 # default) and relocated if they conflict, which is a slow very memory
18635 # consuming and fragmenting process. To avoid this, we pick a random,
18636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18638 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'
18639 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'
18640 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018641 irix5* | irix6*)
18642 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018643 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018644 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018645 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 +000018646
18647 # Archives containing C++ object files must be created using
18648 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18649 # necessary to make sure instantiated templates are included
18650 # in the archive.
18651 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18652 ;;
18653 *)
18654 if test "$GXX" = yes; then
18655 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018656 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 +000018657 else
18658 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'
18659 fi
18660 fi
18661 link_all_deplibs_CXX=yes
18662 ;;
18663 esac
18664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18665 hardcode_libdir_separator_CXX=:
18666 ;;
18667 linux*)
18668 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018669 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018670 # Kuck and Associates, Inc. (KAI) C++ Compiler
18671
18672 # KCC will only create a shared library if the output file
18673 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18674 # to its proper name (with version) after linking.
18675 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'
18676 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'
18677 # Commands to make compiler produce verbose output that lists
18678 # what "hidden" libraries, object files and flags are used when
18679 # linking a shared library.
18680 #
18681 # There doesn't appear to be a way to prevent this compiler from
18682 # explicitly linking system object files so we need to strip them
18683 # from the output so that they don't get included in the library
18684 # dependencies.
18685 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'
18686
18687 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18689
18690 # Archives containing C++ object files must be created using
18691 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18692 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18693 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018694 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018695 # Intel C++
18696 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018697 # version 8.0 and above of icpc choke on multiply defined symbols
18698 # if we add $predep_objects and $postdep_objects, however 7.1 and
18699 # earlier do not add the objects themselves.
18700 case `$CC -V 2>&1` in
18701 *"Version 7."*)
18702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703 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'
18704 ;;
18705 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018706 tmp_idyn=
18707 case $host_cpu in
18708 ia64*) tmp_idyn=' -i_dynamic';;
18709 esac
18710 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18711 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 +000018712 ;;
18713 esac
John Criswell47fdd832003-07-14 16:52:07 +000018714 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18717 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18718 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018719 pgCC*)
18720 # Portland Group C++ compiler
18721 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18722 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'
18723
18724 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18726 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'
18727 ;;
18728 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018729 # Compaq C++
18730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18731 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'
18732
18733 runpath_var=LD_RUN_PATH
18734 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18735 hardcode_libdir_separator_CXX=:
18736
18737 # Commands to make compiler produce verbose output that lists
18738 # what "hidden" libraries, object files and flags are used when
18739 # linking a shared library.
18740 #
18741 # There doesn't appear to be a way to prevent this compiler from
18742 # explicitly linking system object files so we need to strip them
18743 # from the output so that they don't get included in the library
18744 # dependencies.
18745 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'
18746 ;;
18747 esac
18748 ;;
18749 lynxos*)
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
18753 m88k*)
18754 # FIXME: insert proper C++ library support
18755 ld_shlibs_CXX=no
18756 ;;
18757 mvs*)
18758 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018759 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018760 # FIXME: insert proper C++ library support
18761 ld_shlibs_CXX=no
18762 ;;
18763 *)
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18766 ;;
18767 esac
18768 ;;
18769 netbsd*)
18770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18771 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18772 wlarc=
18773 hardcode_libdir_flag_spec_CXX='-R$libdir'
18774 hardcode_direct_CXX=yes
18775 hardcode_shlibpath_var_CXX=no
18776 fi
18777 # Workaround some broken pre-1.5 toolchains
18778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18779 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018780 openbsd2*)
18781 # C++ shared libraries are fairly broken
18782 ld_shlibs_CXX=no
18783 ;;
18784 openbsd*)
18785 hardcode_direct_CXX=yes
18786 hardcode_shlibpath_var_CXX=no
18787 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18790 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18791 export_dynamic_flag_spec_CXX='${wl}-E'
18792 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18793 fi
18794 output_verbose_link_cmd='echo'
18795 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018796 osf3*)
18797 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018798 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018799 # Kuck and Associates, Inc. (KAI) C++ Compiler
18800
18801 # KCC will only create a shared library if the output file
18802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18803 # to its proper name (with version) after linking.
18804 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'
18805
18806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18807 hardcode_libdir_separator_CXX=:
18808
18809 # Archives containing C++ object files must be created using
18810 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18811 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18812
18813 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018814 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018815 # Rational C++ 2.4.1
18816 # FIXME: insert proper C++ library support
18817 ld_shlibs_CXX=no
18818 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018819 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018821 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 +000018822
18823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18824 hardcode_libdir_separator_CXX=:
18825
18826 # Commands to make compiler produce verbose output that lists
18827 # what "hidden" libraries, object files and flags are used when
18828 # linking a shared library.
18829 #
18830 # There doesn't appear to be a way to prevent this compiler from
18831 # explicitly linking system object files so we need to strip them
18832 # from the output so that they don't get included in the library
18833 # dependencies.
18834 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'
18835 ;;
18836 *)
18837 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18838 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018839 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 +000018840
18841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18842 hardcode_libdir_separator_CXX=:
18843
18844 # Commands to make compiler produce verbose output that lists
18845 # what "hidden" libraries, object files and flags are used when
18846 # linking a shared library.
18847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18848
18849 else
18850 # FIXME: insert proper C++ library support
18851 ld_shlibs_CXX=no
18852 fi
18853 ;;
18854 esac
18855 ;;
18856 osf4* | osf5*)
18857 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018858 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018859 # Kuck and Associates, Inc. (KAI) C++ Compiler
18860
18861 # KCC will only create a shared library if the output file
18862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18863 # to its proper name (with version) after linking.
18864 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'
18865
18866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18867 hardcode_libdir_separator_CXX=:
18868
18869 # Archives containing C++ object files must be created using
18870 # the KAI C++ compiler.
18871 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18872 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018873 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018874 # Rational C++ 2.4.1
18875 # FIXME: insert proper C++ library support
18876 ld_shlibs_CXX=no
18877 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018878 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018879 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018880 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 +000018881 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18882 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018883 $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 +000018884 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018885
18886 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18887 hardcode_libdir_separator_CXX=:
18888
18889 # Commands to make compiler produce verbose output that lists
18890 # what "hidden" libraries, object files and flags are used when
18891 # linking a shared library.
18892 #
18893 # There doesn't appear to be a way to prevent this compiler from
18894 # explicitly linking system object files so we need to strip them
18895 # from the output so that they don't get included in the library
18896 # dependencies.
18897 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | 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'
18898 ;;
18899 *)
18900 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18901 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018902 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 +000018903
18904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18905 hardcode_libdir_separator_CXX=:
18906
18907 # Commands to make compiler produce verbose output that lists
18908 # what "hidden" libraries, object files and flags are used when
18909 # linking a shared library.
18910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18911
18912 else
18913 # FIXME: insert proper C++ library support
18914 ld_shlibs_CXX=no
18915 fi
18916 ;;
18917 esac
18918 ;;
18919 psos*)
18920 # FIXME: insert proper C++ library support
18921 ld_shlibs_CXX=no
18922 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018923 sunos4*)
18924 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018925 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018926 # Sun C++ 4.x
18927 # FIXME: insert proper C++ library support
18928 ld_shlibs_CXX=no
18929 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018930 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018931 # Lucid
18932 # FIXME: insert proper C++ library support
18933 ld_shlibs_CXX=no
18934 ;;
18935 *)
18936 # FIXME: insert proper C++ library support
18937 ld_shlibs_CXX=no
18938 ;;
18939 esac
18940 ;;
18941 solaris*)
18942 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018943 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018944 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018945 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018946 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018947 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 +000018948 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 +000018949 $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 +000018950
18951 hardcode_libdir_flag_spec_CXX='-R$libdir'
18952 hardcode_shlibpath_var_CXX=no
18953 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018954 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018955 *)
18956 # The C++ compiler is used as linker so we must use $wl
18957 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018958 # linker. We must also pass each convience library through
18959 # to the system linker between allextract/defaultextract.
18960 # The C++ compiler will combine linker options so we
18961 # cannot just pass the convience library names through
18962 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018963 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018964 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 +000018965 ;;
18966 esac
18967 link_all_deplibs_CXX=yes
18968
Reid Spencera773bd52006-08-04 18:18:08 +000018969 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018970
18971 # Archives containing C++ object files must be created using
18972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18973 # necessary to make sure instantiated templates are included
18974 # in the archive.
18975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18976 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018977 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018978 # Green Hills C++ Compiler
18979 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18980
18981 # The C++ compiler must be used to create the archive.
18982 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18983 ;;
18984 *)
18985 # GNU C++ compiler with Solaris linker
18986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18987 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18988 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018989 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 +000018990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18991 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18992
John Criswell47fdd832003-07-14 16:52:07 +000018993 # Commands to make compiler produce verbose output that lists
18994 # what "hidden" libraries, object files and flags are used when
18995 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018996 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018997 else
18998 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18999 # platform.
19000 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 +000019001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19002 $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 +000019003
19004 # Commands to make compiler produce verbose output that lists
19005 # what "hidden" libraries, object files and flags are used when
19006 # linking a shared library.
19007 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19008 fi
19009
19010 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19011 fi
19012 ;;
19013 esac
19014 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019015 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19016 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019017 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019018 hardcode_shlibpath_var_CXX=no
19019 runpath_var='LD_RUN_PATH'
19020
19021 case $cc_basename in
19022 CC*)
19023 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19024 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19025 ;;
19026 *)
19027 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19028 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19029 ;;
19030 esac
19031 ;;
19032 sysv5* | sco3.2v5* | sco5v6*)
19033 # Note: We can NOT use -z defs as we might desire, because we do not
19034 # link with -lc, and that would cause any symbols used from libc to
19035 # always be unresolved, which means just about no library would
19036 # ever link correctly. If we're not using GNU ld we use -z text
19037 # though, which does catch some bad symbols but isn't as heavy-handed
19038 # as -z defs.
19039 # For security reasons, it is highly recommended that you always
19040 # use absolute paths for naming shared libraries, and exclude the
19041 # DT_RUNPATH tag from executables and libraries. But doing so
19042 # requires that you compile everything twice, which is a pain.
19043 # So that behaviour is only enabled if SCOABSPATH is set to a
19044 # non-empty value in the environment. Most likely only useful for
19045 # creating official distributions of packages.
19046 # This is a hack until libtool officially supports absolute path
19047 # names for shared libraries.
19048 no_undefined_flag_CXX='${wl}-z,text'
19049 allow_undefined_flag_CXX='${wl}-z,nodefs'
19050 archive_cmds_need_lc_CXX=no
19051 hardcode_shlibpath_var_CXX=no
19052 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19053 hardcode_libdir_separator_CXX=':'
19054 link_all_deplibs_CXX=yes
19055 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19056 runpath_var='LD_RUN_PATH'
19057
19058 case $cc_basename in
19059 CC*)
19060 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19062 ;;
19063 *)
19064 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19065 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19066 ;;
19067 esac
John Criswell47fdd832003-07-14 16:52:07 +000019068 ;;
19069 tandem*)
19070 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019071 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019072 # NonStop-UX NCC 3.20
19073 # FIXME: insert proper C++ library support
19074 ld_shlibs_CXX=no
19075 ;;
19076 *)
19077 # FIXME: insert proper C++ library support
19078 ld_shlibs_CXX=no
19079 ;;
19080 esac
19081 ;;
19082 vxworks*)
19083 # FIXME: insert proper C++ library support
19084 ld_shlibs_CXX=no
19085 ;;
19086 *)
19087 # FIXME: insert proper C++ library support
19088 ld_shlibs_CXX=no
19089 ;;
19090esac
Reid Spencera773bd52006-08-04 18:18:08 +000019091{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19092echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019093test "$ld_shlibs_CXX" = no && can_build_shared=no
19094
19095GCC_CXX="$GXX"
19096LD_CXX="$LD"
19097
John Criswell47fdd832003-07-14 16:52:07 +000019098
19099cat > conftest.$ac_ext <<EOF
19100class Foo
19101{
19102public:
19103 Foo (void) { a = 0; }
19104private:
19105 int a;
19106};
19107EOF
19108
19109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; then
19114 # Parse the compiler output and extract the necessary
19115 # objects, libraries and library flags.
19116
19117 # Sentinel used to keep track of whether or not we are before
19118 # the conftest object file.
19119 pre_test_object_deps_done=no
19120
19121 # The `*' in the case matches for architectures that use `case' in
19122 # $output_verbose_cmd can trigger glob expansion during the loop
19123 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019124 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019125
19126 for p in `eval $output_verbose_link_cmd`; do
19127 case $p in
19128
19129 -L* | -R* | -l*)
19130 # Some compilers place space between "-{L,R}" and the path.
19131 # Remove the space.
19132 if test $p = "-L" \
19133 || test $p = "-R"; then
19134 prev=$p
19135 continue
19136 else
19137 prev=
19138 fi
19139
19140 if test "$pre_test_object_deps_done" = no; then
19141 case $p in
19142 -L* | -R*)
19143 # Internal compiler library paths should come after those
19144 # provided the user. The postdeps already come after the
19145 # user supplied libs so there is no need to process them.
19146 if test -z "$compiler_lib_search_path_CXX"; then
19147 compiler_lib_search_path_CXX="${prev}${p}"
19148 else
19149 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19150 fi
19151 ;;
19152 # The "-l" case would never come before the object being
19153 # linked, so don't bother handling this case.
19154 esac
19155 else
19156 if test -z "$postdeps_CXX"; then
19157 postdeps_CXX="${prev}${p}"
19158 else
19159 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19160 fi
19161 fi
19162 ;;
19163
19164 *.$objext)
19165 # This assumes that the test object file only shows up
19166 # once in the compiler output.
19167 if test "$p" = "conftest.$objext"; then
19168 pre_test_object_deps_done=yes
19169 continue
19170 fi
19171
19172 if test "$pre_test_object_deps_done" = no; then
19173 if test -z "$predep_objects_CXX"; then
19174 predep_objects_CXX="$p"
19175 else
19176 predep_objects_CXX="$predep_objects_CXX $p"
19177 fi
19178 else
19179 if test -z "$postdep_objects_CXX"; then
19180 postdep_objects_CXX="$p"
19181 else
19182 postdep_objects_CXX="$postdep_objects_CXX $p"
19183 fi
19184 fi
19185 ;;
19186
19187 *) ;; # Ignore the rest.
19188
19189 esac
19190 done
19191
19192 # Clean up.
19193 rm -f a.out a.exe
19194else
19195 echo "libtool.m4: error: problem compiling CXX test program"
19196fi
19197
19198$rm -f confest.$objext
19199
Reid Spencera773bd52006-08-04 18:18:08 +000019200# PORTME: override above test on systems where it is broken
19201case $host_os in
19202interix3*)
19203 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19204 # hack all around it, let's just trust "g++" to DTRT.
19205 predep_objects_CXX=
19206 postdep_objects_CXX=
19207 postdeps_CXX=
19208 ;;
19209
19210solaris*)
19211 case $cc_basename in
19212 CC*)
19213 # Adding this requires a known-good setup of shared libraries for
19214 # Sun compiler versions before 5.6, else PIC objects from an old
19215 # archive will be linked into the output, leading to subtle bugs.
19216 postdeps_CXX='-lCstd -lCrun'
19217 ;;
19218 esac
19219 ;;
19220esac
19221
19222
John Criswell47fdd832003-07-14 16:52:07 +000019223case " $postdeps_CXX " in
19224*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19225esac
19226
19227lt_prog_compiler_wl_CXX=
19228lt_prog_compiler_pic_CXX=
19229lt_prog_compiler_static_CXX=
19230
Reid Spencera773bd52006-08-04 18:18:08 +000019231{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19232echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019233
19234 # C++ specific cases for pic, static, wl, etc.
19235 if test "$GXX" = yes; then
19236 lt_prog_compiler_wl_CXX='-Wl,'
19237 lt_prog_compiler_static_CXX='-static'
19238
19239 case $host_os in
19240 aix*)
19241 # All AIX code is PIC.
19242 if test "$host_cpu" = ia64; then
19243 # AIX 5 now supports IA64 processor
19244 lt_prog_compiler_static_CXX='-Bstatic'
19245 fi
19246 ;;
19247 amigaos*)
19248 # FIXME: we need at least 68020 code to build shared libraries, but
19249 # adding the `-m68020' flag to GCC prevents building anything better,
19250 # like `-m68040'.
19251 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19252 ;;
19253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19254 # PIC is the default for these OSes.
19255 ;;
19256 mingw* | os2* | pw32*)
19257 # This hack is so that the source file can tell whether it is being
19258 # built for inclusion in a dll (and should export symbols for example).
19259 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19260 ;;
19261 darwin* | rhapsody*)
19262 # PIC is the default on this platform
19263 # Common symbols not allowed in MH_DYLIB files
19264 lt_prog_compiler_pic_CXX='-fno-common'
19265 ;;
19266 *djgpp*)
19267 # DJGPP does not support shared libraries at all
19268 lt_prog_compiler_pic_CXX=
19269 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019270 interix3*)
19271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19272 # Instead, we relocate shared libraries at runtime.
19273 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019274 sysv4*MP*)
19275 if test -d /usr/nec; then
19276 lt_prog_compiler_pic_CXX=-Kconform_pic
19277 fi
19278 ;;
19279 hpux*)
19280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19281 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019282 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019283 hppa*64*|ia64*)
19284 ;;
19285 *)
19286 lt_prog_compiler_pic_CXX='-fPIC'
19287 ;;
19288 esac
19289 ;;
19290 *)
19291 lt_prog_compiler_pic_CXX='-fPIC'
19292 ;;
19293 esac
19294 else
19295 case $host_os in
19296 aix4* | aix5*)
19297 # All AIX code is PIC.
19298 if test "$host_cpu" = ia64; then
19299 # AIX 5 now supports IA64 processor
19300 lt_prog_compiler_static_CXX='-Bstatic'
19301 else
19302 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19303 fi
19304 ;;
19305 chorus*)
19306 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019307 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019308 # Green Hills C++ Compiler
19309 # _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"
19310 ;;
19311 esac
19312 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019313 darwin*)
19314 # PIC is the default on this platform
19315 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019316 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019317 xlc*)
19318 lt_prog_compiler_pic_CXX='-qnocommon'
19319 lt_prog_compiler_wl_CXX='-Wl,'
19320 ;;
19321 esac
19322 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019323 dgux*)
19324 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019325 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019326 lt_prog_compiler_pic_CXX='-KPIC'
19327 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019328 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019329 # Green Hills C++ Compiler
19330 lt_prog_compiler_pic_CXX='-pic'
19331 ;;
19332 *)
19333 ;;
19334 esac
19335 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019336 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019337 # FreeBSD uses GNU C++
19338 ;;
19339 hpux9* | hpux10* | hpux11*)
19340 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019341 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019342 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019343 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019344 if test "$host_cpu" != ia64; then
19345 lt_prog_compiler_pic_CXX='+Z'
19346 fi
19347 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019348 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019349 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019350 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19351 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019352 hppa*64*|ia64*)
19353 # +Z the default
19354 ;;
19355 *)
19356 lt_prog_compiler_pic_CXX='+Z'
19357 ;;
19358 esac
19359 ;;
19360 *)
19361 ;;
19362 esac
19363 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019364 interix*)
19365 # This is c89, which is MS Visual C++ (no shared libs)
19366 # Anyone wants to do a port?
19367 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019368 irix5* | irix6* | nonstopux*)
19369 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019370 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019371 lt_prog_compiler_wl_CXX='-Wl,'
19372 lt_prog_compiler_static_CXX='-non_shared'
19373 # CC pic flag -KPIC is the default.
19374 ;;
19375 *)
19376 ;;
19377 esac
19378 ;;
19379 linux*)
19380 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019381 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019382 # KAI C++ Compiler
19383 lt_prog_compiler_wl_CXX='--backend -Wl,'
19384 lt_prog_compiler_pic_CXX='-fPIC'
19385 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019386 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019387 # Intel C++
19388 lt_prog_compiler_wl_CXX='-Wl,'
19389 lt_prog_compiler_pic_CXX='-KPIC'
19390 lt_prog_compiler_static_CXX='-static'
19391 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019392 pgCC*)
19393 # Portland Group C++ compiler.
19394 lt_prog_compiler_wl_CXX='-Wl,'
19395 lt_prog_compiler_pic_CXX='-fpic'
19396 lt_prog_compiler_static_CXX='-Bstatic'
19397 ;;
19398 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019399 # Compaq C++
19400 # Make sure the PIC flag is empty. It appears that all Alpha
19401 # Linux and Compaq Tru64 Unix objects are PIC.
19402 lt_prog_compiler_pic_CXX=
19403 lt_prog_compiler_static_CXX='-non_shared'
19404 ;;
19405 *)
19406 ;;
19407 esac
19408 ;;
19409 lynxos*)
19410 ;;
19411 m88k*)
19412 ;;
19413 mvs*)
19414 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019415 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019416 lt_prog_compiler_pic_CXX='-W c,exportall'
19417 ;;
19418 *)
19419 ;;
19420 esac
19421 ;;
19422 netbsd*)
19423 ;;
19424 osf3* | osf4* | osf5*)
19425 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019426 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019427 lt_prog_compiler_wl_CXX='--backend -Wl,'
19428 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019429 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019430 # Rational C++ 2.4.1
19431 lt_prog_compiler_pic_CXX='-pic'
19432 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019433 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019434 # Digital/Compaq C++
19435 lt_prog_compiler_wl_CXX='-Wl,'
19436 # Make sure the PIC flag is empty. It appears that all Alpha
19437 # Linux and Compaq Tru64 Unix objects are PIC.
19438 lt_prog_compiler_pic_CXX=
19439 lt_prog_compiler_static_CXX='-non_shared'
19440 ;;
19441 *)
19442 ;;
19443 esac
19444 ;;
19445 psos*)
19446 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019447 solaris*)
19448 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019449 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019450 # Sun C++ 4.2, 5.x and Centerline C++
19451 lt_prog_compiler_pic_CXX='-KPIC'
19452 lt_prog_compiler_static_CXX='-Bstatic'
19453 lt_prog_compiler_wl_CXX='-Qoption ld '
19454 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019455 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019456 # Green Hills C++ Compiler
19457 lt_prog_compiler_pic_CXX='-PIC'
19458 ;;
19459 *)
19460 ;;
19461 esac
19462 ;;
19463 sunos4*)
19464 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019465 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019466 # Sun C++ 4.x
19467 lt_prog_compiler_pic_CXX='-pic'
19468 lt_prog_compiler_static_CXX='-Bstatic'
19469 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019470 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019471 # Lucid
19472 lt_prog_compiler_pic_CXX='-pic'
19473 ;;
19474 *)
19475 ;;
19476 esac
19477 ;;
19478 tandem*)
19479 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019480 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019481 # NonStop-UX NCC 3.20
19482 lt_prog_compiler_pic_CXX='-KPIC'
19483 ;;
19484 *)
19485 ;;
19486 esac
19487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19489 case $cc_basename in
19490 CC*)
19491 lt_prog_compiler_wl_CXX='-Wl,'
19492 lt_prog_compiler_pic_CXX='-KPIC'
19493 lt_prog_compiler_static_CXX='-Bstatic'
19494 ;;
19495 esac
John Criswell47fdd832003-07-14 16:52:07 +000019496 ;;
19497 vxworks*)
19498 ;;
19499 *)
19500 lt_prog_compiler_can_build_shared_CXX=no
19501 ;;
19502 esac
19503 fi
19504
Reid Spencera773bd52006-08-04 18:18:08 +000019505{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19506echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019507
19508#
19509# Check to make sure the PIC flag actually works.
19510#
19511if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019512
Reid Spencera773bd52006-08-04 18:18:08 +000019513{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19514echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019515if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19517else
19518 lt_prog_compiler_pic_works_CXX=no
19519 ac_outfile=conftest.$ac_objext
19520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19521 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19522 # Insert the option either (1) after the last *FLAGS variable, or
19523 # (2) before a word containing "conftest.", or (3) at the end.
19524 # Note that $ac_compile itself does not contain backslashes and begins
19525 # with a dollar sign (not a hyphen), so the echo should work correctly.
19526 # The option is referenced via a variable to avoid confusing sed.
19527 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19530 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000019531 (eval echo "\"\$as_me:19531: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019532 (eval "$lt_compile" 2>conftest.err)
19533 ac_status=$?
19534 cat conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000019535 echo "$as_me:19535: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019536 if (exit $ac_status) && test -s "$ac_outfile"; then
19537 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019538 # So say no if there are warnings other than the usual output.
19539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019542 lt_prog_compiler_pic_works_CXX=yes
19543 fi
19544 fi
19545 $rm conftest*
19546
19547fi
Reid Spencera773bd52006-08-04 18:18:08 +000019548{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19549echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019550
19551if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19552 case $lt_prog_compiler_pic_CXX in
19553 "" | " "*) ;;
19554 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19555 esac
19556else
19557 lt_prog_compiler_pic_CXX=
19558 lt_prog_compiler_can_build_shared_CXX=no
19559fi
19560
19561fi
Reid Spencera773bd52006-08-04 18:18:08 +000019562case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019563 # For platforms which do not support PIC, -DPIC is meaningless:
19564 *djgpp*)
19565 lt_prog_compiler_pic_CXX=
19566 ;;
19567 *)
19568 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19569 ;;
19570esac
19571
Reid Spencera773bd52006-08-04 18:18:08 +000019572#
19573# Check to make sure the static flag actually works.
19574#
19575wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19576{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19577echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19578if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580else
19581 lt_prog_compiler_static_works_CXX=no
19582 save_LDFLAGS="$LDFLAGS"
19583 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19584 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19586 # The linker can only warn and ignore the option if not recognized
19587 # So say no if there are warnings
19588 if test -s conftest.err; then
19589 # Append any errors to the config.log.
19590 cat conftest.err 1>&5
19591 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19593 if diff conftest.exp conftest.er2 >/dev/null; then
19594 lt_prog_compiler_static_works_CXX=yes
19595 fi
19596 else
19597 lt_prog_compiler_static_works_CXX=yes
19598 fi
19599 fi
19600 $rm conftest*
19601 LDFLAGS="$save_LDFLAGS"
19602
19603fi
19604{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19605echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19606
19607if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19608 :
19609else
19610 lt_prog_compiler_static_CXX=
19611fi
19612
19613
19614{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19615echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019616if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19618else
19619 lt_cv_prog_compiler_c_o_CXX=no
19620 $rm -r conftest 2>/dev/null
19621 mkdir conftest
19622 cd conftest
19623 mkdir out
19624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19625
John Criswell47fdd832003-07-14 16:52:07 +000019626 lt_compiler_flag="-o out/conftest2.$ac_objext"
19627 # Insert the option either (1) after the last *FLAGS variable, or
19628 # (2) before a word containing "conftest.", or (3) at the end.
19629 # Note that $ac_compile itself does not contain backslashes and begins
19630 # with a dollar sign (not a hyphen), so the echo should work correctly.
19631 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19634 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000019635 (eval echo "\"\$as_me:19635: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019636 (eval "$lt_compile" 2>out/conftest.err)
19637 ac_status=$?
19638 cat out/conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000019639 echo "$as_me:19639: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19641 then
19642 # The compiler can only warn and ignore the option if not recognized
19643 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019647 lt_cv_prog_compiler_c_o_CXX=yes
19648 fi
19649 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019650 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019651 $rm conftest*
19652 # SGI C++ compiler will create directory out/ii_files/ for
19653 # template instantiation
19654 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19655 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019656 cd ..
19657 rmdir conftest
19658 $rm conftest*
19659
19660fi
Reid Spencera773bd52006-08-04 18:18:08 +000019661{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19662echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019663
19664
19665hard_links="nottested"
19666if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19667 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019668 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19669echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019670 hard_links=yes
19671 $rm conftest*
19672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19673 touch conftest.a
19674 ln conftest.a conftest.b 2>&5 || hard_links=no
19675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019676 { echo "$as_me:$LINENO: result: $hard_links" >&5
19677echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019678 if test "$hard_links" = no; then
19679 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19680echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19681 need_locks=warn
19682 fi
19683else
19684 need_locks=no
19685fi
19686
Reid Spencera773bd52006-08-04 18:18:08 +000019687{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19688echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019689
19690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19691 case $host_os in
19692 aix4* | aix5*)
19693 # If we're using GNU nm, then we don't want the "-C" option.
19694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19695 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19696 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'
19697 else
19698 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'
19699 fi
19700 ;;
19701 pw32*)
19702 export_symbols_cmds_CXX="$ltdll_cmds"
19703 ;;
19704 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019705 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 +000019706 ;;
19707 *)
19708 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19709 ;;
19710 esac
19711
Reid Spencera773bd52006-08-04 18:18:08 +000019712{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19713echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019714test "$ld_shlibs_CXX" = no && can_build_shared=no
19715
John Criswell47fdd832003-07-14 16:52:07 +000019716#
19717# Do we need to explicitly link libc?
19718#
19719case "x$archive_cmds_need_lc_CXX" in
19720x|xyes)
19721 # Assume -lc should be added
19722 archive_cmds_need_lc_CXX=yes
19723
19724 if test "$enable_shared" = yes && test "$GCC" = yes; then
19725 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019726 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019727 # FIXME: we may have to deal with multi-command sequences.
19728 ;;
19729 '$CC '*)
19730 # Test whether the compiler implicitly links with -lc since on some
19731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19732 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019733 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19734echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019735 $rm conftest*
19736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19737
19738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19739 (eval $ac_compile) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } 2>conftest.err; then
19743 soname=conftest
19744 lib=conftest
19745 libobjs=conftest.$ac_objext
19746 deplibs=
19747 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019748 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019749 compiler_flags=-v
19750 linker_flags=-v
19751 verstring=
19752 output_objdir=.
19753 libname=conftest
19754 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19755 allow_undefined_flag_CXX=
19756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19757 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }
19761 then
19762 archive_cmds_need_lc_CXX=no
19763 else
19764 archive_cmds_need_lc_CXX=yes
19765 fi
19766 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19767 else
19768 cat conftest.err 1>&5
19769 fi
19770 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019771 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19772echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019773 ;;
19774 esac
19775 fi
19776 ;;
19777esac
19778
Reid Spencera773bd52006-08-04 18:18:08 +000019779{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19780echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019781library_names_spec=
19782libname_spec='lib$name'
19783soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019784shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019785postinstall_cmds=
19786postuninstall_cmds=
19787finish_cmds=
19788finish_eval=
19789shlibpath_var=
19790shlibpath_overrides_runpath=unknown
19791version_type=none
19792dynamic_linker="$host_os ld.so"
19793sys_lib_dlsearch_path_spec="/lib /usr/lib"
19794if test "$GCC" = yes; then
19795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19796 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19797 # if the path contains ";" then we assume it to be the separator
19798 # otherwise default to the standard path separator (i.e. ":") - it is
19799 # assumed that no part of a normal pathname contains ";" but that should
19800 # okay in the real world where ";" in dirpaths is itself problematic.
19801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19802 else
19803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19804 fi
19805else
19806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19807fi
19808need_lib_prefix=unknown
19809hardcode_into_libs=no
19810
19811# when you set need_version to no, make sure it does not cause -set_version
19812# flags to be left without arguments
19813need_version=unknown
19814
19815case $host_os in
19816aix3*)
19817 version_type=linux
19818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19819 shlibpath_var=LIBPATH
19820
19821 # AIX 3 has no versioning support, so we append a major version to the name.
19822 soname_spec='${libname}${release}${shared_ext}$major'
19823 ;;
19824
19825aix4* | aix5*)
19826 version_type=linux
19827 need_lib_prefix=no
19828 need_version=no
19829 hardcode_into_libs=yes
19830 if test "$host_cpu" = ia64; then
19831 # AIX 5 supports IA64
19832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19833 shlibpath_var=LD_LIBRARY_PATH
19834 else
19835 # With GCC up to 2.95.x, collect2 would create an import file
19836 # for dependence libraries. The import file would start with
19837 # the line `#! .'. This would cause the generated library to
19838 # depend on `.', always an invalid library. This was fixed in
19839 # development snapshots of GCC prior to 3.0.
19840 case $host_os in
19841 aix4 | aix4.[01] | aix4.[01].*)
19842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19843 echo ' yes '
19844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19845 :
19846 else
19847 can_build_shared=no
19848 fi
19849 ;;
19850 esac
19851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19852 # soname into executable. Probably we can add versioning support to
19853 # collect2, so additional links can be useful in future.
19854 if test "$aix_use_runtimelinking" = yes; then
19855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19856 # instead of lib<name>.a to let people know that these are not
19857 # typical AIX shared libraries.
19858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19859 else
19860 # We preserve .a as extension for shared libraries through AIX4.2
19861 # and later when we are not doing run time linking.
19862 library_names_spec='${libname}${release}.a $libname.a'
19863 soname_spec='${libname}${release}${shared_ext}$major'
19864 fi
19865 shlibpath_var=LIBPATH
19866 fi
19867 ;;
19868
19869amigaos*)
19870 library_names_spec='$libname.ixlibrary $libname.a'
19871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019872 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 +000019873 ;;
19874
19875beos*)
19876 library_names_spec='${libname}${shared_ext}'
19877 dynamic_linker="$host_os ld.so"
19878 shlibpath_var=LIBRARY_PATH
19879 ;;
19880
Reid Spencer2706f8c2004-09-19 23:53:36 +000019881bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019882 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19890 # the default ld.so.conf also contains /usr/contrib/lib and
19891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19892 # libtool to hard-code these into programs
19893 ;;
19894
19895cygwin* | mingw* | pw32*)
19896 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019897 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019898 need_version=no
19899 need_lib_prefix=no
19900
19901 case $GCC,$host_os in
19902 yes,cygwin* | yes,mingw* | yes,pw32*)
19903 library_names_spec='$libname.dll.a'
19904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019905 postinstall_cmds='base_file=`basename \${file}`~
19906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19907 dldir=$destdir/`dirname \$dlpath`~
19908 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019909 $install_prog $dir/$dlname \$dldir/$dlname~
19910 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19912 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019913 $rm \$dlpath'
19914 shlibpath_overrides_runpath=yes
19915
19916 case $host_os in
19917 cygwin*)
19918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19919 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 +000019920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019921 ;;
19922 mingw*)
19923 # MinGW DLLs use traditional 'lib' prefix
19924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19927 # It is most probably a Windows format PATH printed by
19928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19929 # path with ; separators, and with drive letters. We can handle the
19930 # drive letters (cygwin fileutils understands them), so leave them,
19931 # especially as we might pass files found there to a mingw objdump,
19932 # which wouldn't understand a cygwinified path. Ahh.
19933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19934 else
19935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19936 fi
19937 ;;
19938 pw32*)
19939 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019940 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 +000019941 ;;
19942 esac
19943 ;;
19944
19945 *)
19946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19947 ;;
19948 esac
19949 dynamic_linker='Win32 ld.exe'
19950 # FIXME: first we should search . and the directory the executable is in
19951 shlibpath_var=PATH
19952 ;;
19953
19954darwin* | rhapsody*)
19955 dynamic_linker="$host_os dyld"
19956 version_type=darwin
19957 need_lib_prefix=no
19958 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019960 soname_spec='${libname}${release}${major}$shared_ext'
19961 shlibpath_overrides_runpath=yes
19962 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000019963 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000019964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019965 if test "$GCC" = yes; then
19966 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"`
19967 else
19968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019969 fi
19970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19971 ;;
19972
19973dgux*)
19974 version_type=linux
19975 need_lib_prefix=no
19976 need_version=no
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19978 soname_spec='${libname}${release}${shared_ext}$major'
19979 shlibpath_var=LD_LIBRARY_PATH
19980 ;;
19981
19982freebsd1*)
19983 dynamic_linker=no
19984 ;;
19985
Reid Spencer2706f8c2004-09-19 23:53:36 +000019986kfreebsd*-gnu)
19987 version_type=linux
19988 need_lib_prefix=no
19989 need_version=no
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 shlibpath_var=LD_LIBRARY_PATH
19993 shlibpath_overrides_runpath=no
19994 hardcode_into_libs=yes
19995 dynamic_linker='GNU ld.so'
19996 ;;
19997
Reid Spencera773bd52006-08-04 18:18:08 +000019998freebsd* | dragonfly*)
19999 # DragonFly does not have aout. When/if they implement a new
20000 # versioning mechanism, adjust this.
20001 if test -x /usr/bin/objformat; then
20002 objformat=`/usr/bin/objformat`
20003 else
20004 case $host_os in
20005 freebsd[123]*) objformat=aout ;;
20006 *) objformat=elf ;;
20007 esac
20008 fi
John Criswell47fdd832003-07-14 16:52:07 +000020009 version_type=freebsd-$objformat
20010 case $version_type in
20011 freebsd-elf*)
20012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20013 need_version=no
20014 need_lib_prefix=no
20015 ;;
20016 freebsd-*)
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20018 need_version=yes
20019 ;;
20020 esac
20021 shlibpath_var=LD_LIBRARY_PATH
20022 case $host_os in
20023 freebsd2*)
20024 shlibpath_overrides_runpath=yes
20025 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020026 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020027 shlibpath_overrides_runpath=yes
20028 hardcode_into_libs=yes
20029 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020032 shlibpath_overrides_runpath=no
20033 hardcode_into_libs=yes
20034 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020035 freebsd*) # from 4.6 on
20036 shlibpath_overrides_runpath=yes
20037 hardcode_into_libs=yes
20038 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020039 esac
20040 ;;
20041
20042gnu*)
20043 version_type=linux
20044 need_lib_prefix=no
20045 need_version=no
20046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 shlibpath_var=LD_LIBRARY_PATH
20049 hardcode_into_libs=yes
20050 ;;
20051
20052hpux9* | hpux10* | hpux11*)
20053 # Give a soname corresponding to the major version so that dld.sl refuses to
20054 # link against other versions.
20055 version_type=sunos
20056 need_lib_prefix=no
20057 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020058 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020059 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020060 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020061 hardcode_into_libs=yes
20062 dynamic_linker="$host_os dld.so"
20063 shlibpath_var=LD_LIBRARY_PATH
20064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20066 soname_spec='${libname}${release}${shared_ext}$major'
20067 if test "X$HPUX_IA64_MODE" = X32; then
20068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20069 else
20070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20071 fi
20072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20073 ;;
20074 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020075 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020076 hardcode_into_libs=yes
20077 dynamic_linker="$host_os dld.sl"
20078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20084 ;;
20085 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020086 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020087 dynamic_linker="$host_os dld.sl"
20088 shlibpath_var=SHLIB_PATH
20089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20091 soname_spec='${libname}${release}${shared_ext}$major'
20092 ;;
20093 esac
20094 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20095 postinstall_cmds='chmod 555 $lib'
20096 ;;
20097
Reid Spencera773bd52006-08-04 18:18:08 +000020098interix3*)
20099 version_type=linux
20100 need_lib_prefix=no
20101 need_version=no
20102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20103 soname_spec='${libname}${release}${shared_ext}$major'
20104 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20105 shlibpath_var=LD_LIBRARY_PATH
20106 shlibpath_overrides_runpath=no
20107 hardcode_into_libs=yes
20108 ;;
20109
John Criswell47fdd832003-07-14 16:52:07 +000020110irix5* | irix6* | nonstopux*)
20111 case $host_os in
20112 nonstopux*) version_type=nonstopux ;;
20113 *)
20114 if test "$lt_cv_prog_gnu_ld" = yes; then
20115 version_type=linux
20116 else
20117 version_type=irix
20118 fi ;;
20119 esac
20120 need_lib_prefix=no
20121 need_version=no
20122 soname_spec='${libname}${release}${shared_ext}$major'
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20124 case $host_os in
20125 irix5* | nonstopux*)
20126 libsuff= shlibsuff=
20127 ;;
20128 *)
20129 case $LD in # libtool.m4 will add one of these switches to LD
20130 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20131 libsuff= shlibsuff= libmagic=32-bit;;
20132 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20133 libsuff=32 shlibsuff=N32 libmagic=N32;;
20134 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20135 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20136 *) libsuff= shlibsuff= libmagic=never-match;;
20137 esac
20138 ;;
20139 esac
20140 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20141 shlibpath_overrides_runpath=no
20142 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20143 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20144 hardcode_into_libs=yes
20145 ;;
20146
20147# No shared lib support for Linux oldld, aout, or coff.
20148linux*oldld* | linux*aout* | linux*coff*)
20149 dynamic_linker=no
20150 ;;
20151
20152# This must be Linux ELF.
20153linux*)
20154 version_type=linux
20155 need_lib_prefix=no
20156 need_version=no
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 shlibpath_overrides_runpath=no
20162 # This implies no fast_install, which is unacceptable.
20163 # Some rework will be needed to allow for fast_install
20164 # before this can be enabled.
20165 hardcode_into_libs=yes
20166
Reid Spencer2706f8c2004-09-19 23:53:36 +000020167 # Append ld.so.conf contents to the search path
20168 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020169 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 +000020170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20171 fi
20172
John Criswell47fdd832003-07-14 16:52:07 +000020173 # We used to test for /lib/ld.so.1 and disable shared libraries on
20174 # powerpc, because MkLinux only supported shared libraries with the
20175 # GNU dynamic linker. Since this was broken with cross compilers,
20176 # most powerpc-linux boxes support dynamic linking these days and
20177 # people can always --disable-shared, the test was removed, and we
20178 # assume the GNU/Linux dynamic linker is in use.
20179 dynamic_linker='GNU/Linux ld.so'
20180 ;;
20181
Reid Spencer2706f8c2004-09-19 23:53:36 +000020182knetbsd*-gnu)
20183 version_type=linux
20184 need_lib_prefix=no
20185 need_version=no
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=no
20190 hardcode_into_libs=yes
20191 dynamic_linker='GNU ld.so'
20192 ;;
20193
John Criswell47fdd832003-07-14 16:52:07 +000020194netbsd*)
20195 version_type=sunos
20196 need_lib_prefix=no
20197 need_version=no
20198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20201 dynamic_linker='NetBSD (a.out) ld.so'
20202 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020204 soname_spec='${libname}${release}${shared_ext}$major'
20205 dynamic_linker='NetBSD ld.elf_so'
20206 fi
20207 shlibpath_var=LD_LIBRARY_PATH
20208 shlibpath_overrides_runpath=yes
20209 hardcode_into_libs=yes
20210 ;;
20211
20212newsos6)
20213 version_type=linux
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215 shlibpath_var=LD_LIBRARY_PATH
20216 shlibpath_overrides_runpath=yes
20217 ;;
20218
Reid Spencer2706f8c2004-09-19 23:53:36 +000020219nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020220 version_type=linux
20221 need_lib_prefix=no
20222 need_version=no
20223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20224 soname_spec='${libname}${release}${shared_ext}$major'
20225 shlibpath_var=LD_LIBRARY_PATH
20226 shlibpath_overrides_runpath=yes
20227 ;;
20228
20229openbsd*)
20230 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020231 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020232 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20234 case $host_os in
20235 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20236 *) need_version=no ;;
20237 esac
John Criswell47fdd832003-07-14 16:52:07 +000020238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20240 shlibpath_var=LD_LIBRARY_PATH
20241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20242 case $host_os in
20243 openbsd2.[89] | openbsd2.[89].*)
20244 shlibpath_overrides_runpath=no
20245 ;;
20246 *)
20247 shlibpath_overrides_runpath=yes
20248 ;;
20249 esac
20250 else
20251 shlibpath_overrides_runpath=yes
20252 fi
20253 ;;
20254
20255os2*)
20256 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020257 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020258 need_lib_prefix=no
20259 library_names_spec='$libname${shared_ext} $libname.a'
20260 dynamic_linker='OS/2 ld.exe'
20261 shlibpath_var=LIBPATH
20262 ;;
20263
20264osf3* | osf4* | osf5*)
20265 version_type=osf
20266 need_lib_prefix=no
20267 need_version=no
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20273 ;;
20274
John Criswell47fdd832003-07-14 16:52:07 +000020275solaris*)
20276 version_type=linux
20277 need_lib_prefix=no
20278 need_version=no
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 shlibpath_var=LD_LIBRARY_PATH
20282 shlibpath_overrides_runpath=yes
20283 hardcode_into_libs=yes
20284 # ldd complains unless libraries are executable
20285 postinstall_cmds='chmod +x $lib'
20286 ;;
20287
20288sunos4*)
20289 version_type=sunos
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 shlibpath_overrides_runpath=yes
20294 if test "$with_gnu_ld" = yes; then
20295 need_lib_prefix=no
20296 fi
20297 need_version=yes
20298 ;;
20299
Reid Spencera773bd52006-08-04 18:18:08 +000020300sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020301 version_type=linux
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20303 soname_spec='${libname}${release}${shared_ext}$major'
20304 shlibpath_var=LD_LIBRARY_PATH
20305 case $host_vendor in
20306 sni)
20307 shlibpath_overrides_runpath=no
20308 need_lib_prefix=no
20309 export_dynamic_flag_spec='${wl}-Blargedynsym'
20310 runpath_var=LD_RUN_PATH
20311 ;;
20312 siemens)
20313 need_lib_prefix=no
20314 ;;
20315 motorola)
20316 need_lib_prefix=no
20317 need_version=no
20318 shlibpath_overrides_runpath=no
20319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20320 ;;
20321 esac
20322 ;;
20323
20324sysv4*MP*)
20325 if test -d /usr/nec ;then
20326 version_type=linux
20327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20328 soname_spec='$libname${shared_ext}.$major'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 fi
20331 ;;
20332
Reid Spencera773bd52006-08-04 18:18:08 +000020333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20334 version_type=freebsd-elf
20335 need_lib_prefix=no
20336 need_version=no
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 hardcode_into_libs=yes
20341 if test "$with_gnu_ld" = yes; then
20342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20343 shlibpath_overrides_runpath=no
20344 else
20345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20346 shlibpath_overrides_runpath=yes
20347 case $host_os in
20348 sco3.2v5*)
20349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20350 ;;
20351 esac
20352 fi
20353 sys_lib_dlsearch_path_spec='/usr/lib'
20354 ;;
20355
John Criswell47fdd832003-07-14 16:52:07 +000020356uts4*)
20357 version_type=linux
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 ;;
20362
20363*)
20364 dynamic_linker=no
20365 ;;
20366esac
Reid Spencera773bd52006-08-04 18:18:08 +000020367{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20368echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020369test "$dynamic_linker" = no && can_build_shared=no
20370
Reid Spencera773bd52006-08-04 18:18:08 +000020371variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20372if test "$GCC" = yes; then
20373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20374fi
20375
20376{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20377echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020378hardcode_action_CXX=
20379if test -n "$hardcode_libdir_flag_spec_CXX" || \
20380 test -n "$runpath_var_CXX" || \
20381 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20382
20383 # We can hardcode non-existant directories.
20384 if test "$hardcode_direct_CXX" != no &&
20385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20386 # have to relink, otherwise we might link with an installed library
20387 # when we should be linking with a yet-to-be-installed one
20388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20389 test "$hardcode_minus_L_CXX" != no; then
20390 # Linking always hardcodes the temporary library directory.
20391 hardcode_action_CXX=relink
20392 else
20393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20394 hardcode_action_CXX=immediate
20395 fi
20396else
20397 # We cannot hardcode anything, or else we can only hardcode existing
20398 # directories.
20399 hardcode_action_CXX=unsupported
20400fi
Reid Spencera773bd52006-08-04 18:18:08 +000020401{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20402echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020403
20404if test "$hardcode_action_CXX" = relink; then
20405 # Fast installation is not supported
20406 enable_fast_install=no
20407elif test "$shlibpath_overrides_runpath" = yes ||
20408 test "$enable_shared" = no; then
20409 # Fast installation is not necessary
20410 enable_fast_install=needless
20411fi
20412
John Criswell47fdd832003-07-14 16:52:07 +000020413
20414# The else clause should only fire when bootstrapping the
20415# libtool distribution, otherwise you forgot to ship ltmain.sh
20416# with your package, and you will get complaints that there are
20417# no rules to generate ltmain.sh.
20418if test -f "$ltmain"; then
20419 # See if we are running on zsh, and set the options which allow our commands through
20420 # without removal of \ escapes.
20421 if test -n "${ZSH_VERSION+set}" ; then
20422 setopt NO_GLOB_SUBST
20423 fi
20424 # Now quote all the things that may contain metacharacters while being
20425 # careful not to overquote the AC_SUBSTed values. We take copies of the
20426 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020427 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 +000020428 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20431 deplibs_check_method reload_flag reload_cmds need_locks \
20432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20433 lt_cv_sys_global_symbol_to_c_name_address \
20434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20435 old_postinstall_cmds old_postuninstall_cmds \
20436 compiler_CXX \
20437 CC_CXX \
20438 LD_CXX \
20439 lt_prog_compiler_wl_CXX \
20440 lt_prog_compiler_pic_CXX \
20441 lt_prog_compiler_static_CXX \
20442 lt_prog_compiler_no_builtin_flag_CXX \
20443 export_dynamic_flag_spec_CXX \
20444 thread_safe_flag_spec_CXX \
20445 whole_archive_flag_spec_CXX \
20446 enable_shared_with_static_runtimes_CXX \
20447 old_archive_cmds_CXX \
20448 old_archive_from_new_cmds_CXX \
20449 predep_objects_CXX \
20450 postdep_objects_CXX \
20451 predeps_CXX \
20452 postdeps_CXX \
20453 compiler_lib_search_path_CXX \
20454 archive_cmds_CXX \
20455 archive_expsym_cmds_CXX \
20456 postinstall_cmds_CXX \
20457 postuninstall_cmds_CXX \
20458 old_archive_from_expsyms_cmds_CXX \
20459 allow_undefined_flag_CXX \
20460 no_undefined_flag_CXX \
20461 export_symbols_cmds_CXX \
20462 hardcode_libdir_flag_spec_CXX \
20463 hardcode_libdir_flag_spec_ld_CXX \
20464 hardcode_libdir_separator_CXX \
20465 hardcode_automatic_CXX \
20466 module_cmds_CXX \
20467 module_expsym_cmds_CXX \
20468 lt_cv_prog_compiler_c_o_CXX \
20469 exclude_expsyms_CXX \
20470 include_expsyms_CXX; do
20471
20472 case $var in
20473 old_archive_cmds_CXX | \
20474 old_archive_from_new_cmds_CXX | \
20475 archive_cmds_CXX | \
20476 archive_expsym_cmds_CXX | \
20477 module_cmds_CXX | \
20478 module_expsym_cmds_CXX | \
20479 old_archive_from_expsyms_cmds_CXX | \
20480 export_symbols_cmds_CXX | \
20481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20482 postinstall_cmds | postuninstall_cmds | \
20483 old_postinstall_cmds | old_postuninstall_cmds | \
20484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20485 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020486 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 +000020487 ;;
20488 *)
20489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20490 ;;
20491 esac
20492 done
20493
20494 case $lt_echo in
20495 *'\$0 --fallback-echo"')
20496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20497 ;;
20498 esac
20499
20500cfgfile="$ofile"
20501
20502 cat <<__EOF__ >> "$cfgfile"
20503# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20504
20505# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20506
20507# Shell to use when invoking shell scripts.
20508SHELL=$lt_SHELL
20509
20510# Whether or not to build shared libraries.
20511build_libtool_libs=$enable_shared
20512
20513# Whether or not to build static libraries.
20514build_old_libs=$enable_static
20515
20516# Whether or not to add -lc for building shared libraries.
20517build_libtool_need_lc=$archive_cmds_need_lc_CXX
20518
20519# Whether or not to disallow shared libs when runtime libs are static
20520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20521
20522# Whether or not to optimize for fast installation.
20523fast_install=$enable_fast_install
20524
20525# The host system.
20526host_alias=$host_alias
20527host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020528host_os=$host_os
20529
20530# The build system.
20531build_alias=$build_alias
20532build=$build
20533build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020534
20535# An echo program that does not interpret backslashes.
20536echo=$lt_echo
20537
20538# The archiver.
20539AR=$lt_AR
20540AR_FLAGS=$lt_AR_FLAGS
20541
20542# A C compiler.
20543LTCC=$lt_LTCC
20544
Reid Spencera773bd52006-08-04 18:18:08 +000020545# LTCC compiler flags.
20546LTCFLAGS=$lt_LTCFLAGS
20547
John Criswell47fdd832003-07-14 16:52:07 +000020548# A language-specific compiler.
20549CC=$lt_compiler_CXX
20550
20551# Is the compiler the GNU C compiler?
20552with_gcc=$GCC_CXX
20553
20554# An ERE matcher.
20555EGREP=$lt_EGREP
20556
20557# The linker used to build libraries.
20558LD=$lt_LD_CXX
20559
20560# Whether we need hard or soft links.
20561LN_S=$lt_LN_S
20562
20563# A BSD-compatible nm program.
20564NM=$lt_NM
20565
20566# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020567STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020568
20569# Used to examine libraries when file_magic_cmd begins "file"
20570MAGIC_CMD=$MAGIC_CMD
20571
20572# Used on cygwin: DLL creation program.
20573DLLTOOL="$DLLTOOL"
20574
20575# Used on cygwin: object dumper.
20576OBJDUMP="$OBJDUMP"
20577
20578# Used on cygwin: assembler.
20579AS="$AS"
20580
20581# The name of the directory that contains temporary libtool files.
20582objdir=$objdir
20583
20584# How to create reloadable object files.
20585reload_flag=$lt_reload_flag
20586reload_cmds=$lt_reload_cmds
20587
20588# How to pass a linker flag through the compiler.
20589wl=$lt_lt_prog_compiler_wl_CXX
20590
20591# Object file suffix (normally "o").
20592objext="$ac_objext"
20593
20594# Old archive suffix (normally "a").
20595libext="$libext"
20596
20597# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020598shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020599
20600# Executable file suffix (normally "").
20601exeext="$exeext"
20602
20603# Additional compiler flags for building library objects.
20604pic_flag=$lt_lt_prog_compiler_pic_CXX
20605pic_mode=$pic_mode
20606
20607# What is the maximum length of a command?
20608max_cmd_len=$lt_cv_sys_max_cmd_len
20609
20610# Does compiler simultaneously support -c and -o options?
20611compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20612
Reid Spencera773bd52006-08-04 18:18:08 +000020613# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020614need_locks=$lt_need_locks
20615
20616# Do we need the lib prefix for modules?
20617need_lib_prefix=$need_lib_prefix
20618
20619# Do we need a version for libraries?
20620need_version=$need_version
20621
20622# Whether dlopen is supported.
20623dlopen_support=$enable_dlopen
20624
20625# Whether dlopen of programs is supported.
20626dlopen_self=$enable_dlopen_self
20627
20628# Whether dlopen of statically linked programs is supported.
20629dlopen_self_static=$enable_dlopen_self_static
20630
20631# Compiler flag to prevent dynamic linking.
20632link_static_flag=$lt_lt_prog_compiler_static_CXX
20633
20634# Compiler flag to turn off builtin functions.
20635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20636
20637# Compiler flag to allow reflexive dlopens.
20638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20639
20640# Compiler flag to generate shared objects directly from archives.
20641whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20642
20643# Compiler flag to generate thread-safe objects.
20644thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20645
20646# Library versioning type.
20647version_type=$version_type
20648
20649# Format of library name prefix.
20650libname_spec=$lt_libname_spec
20651
20652# List of archive names. First name is the real one, the rest are links.
20653# The last name is the one that the linker finds with -lNAME.
20654library_names_spec=$lt_library_names_spec
20655
20656# The coded name of the library, if different from the real name.
20657soname_spec=$lt_soname_spec
20658
20659# Commands used to build and install an old-style archive.
20660RANLIB=$lt_RANLIB
20661old_archive_cmds=$lt_old_archive_cmds_CXX
20662old_postinstall_cmds=$lt_old_postinstall_cmds
20663old_postuninstall_cmds=$lt_old_postuninstall_cmds
20664
20665# Create an old-style archive from a shared archive.
20666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20667
20668# Create a temporary old-style archive to link instead of a shared archive.
20669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20670
20671# Commands used to build and install a shared archive.
20672archive_cmds=$lt_archive_cmds_CXX
20673archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20674postinstall_cmds=$lt_postinstall_cmds
20675postuninstall_cmds=$lt_postuninstall_cmds
20676
20677# Commands used to build a loadable module (assumed same as above if empty)
20678module_cmds=$lt_module_cmds_CXX
20679module_expsym_cmds=$lt_module_expsym_cmds_CXX
20680
20681# Commands to strip libraries.
20682old_striplib=$lt_old_striplib
20683striplib=$lt_striplib
20684
20685# Dependencies to place before the objects being linked to create a
20686# shared library.
20687predep_objects=$lt_predep_objects_CXX
20688
20689# Dependencies to place after the objects being linked to create a
20690# shared library.
20691postdep_objects=$lt_postdep_objects_CXX
20692
20693# Dependencies to place before the objects being linked to create a
20694# shared library.
20695predeps=$lt_predeps_CXX
20696
20697# Dependencies to place after the objects being linked to create a
20698# shared library.
20699postdeps=$lt_postdeps_CXX
20700
20701# The library search path used internally by the compiler when linking
20702# a shared library.
20703compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20704
20705# Method to check whether dependent libraries are shared objects.
20706deplibs_check_method=$lt_deplibs_check_method
20707
20708# Command to use when deplibs_check_method == file_magic.
20709file_magic_cmd=$lt_file_magic_cmd
20710
20711# Flag that allows shared libraries with undefined symbols to be built.
20712allow_undefined_flag=$lt_allow_undefined_flag_CXX
20713
20714# Flag that forces no undefined symbols.
20715no_undefined_flag=$lt_no_undefined_flag_CXX
20716
20717# Commands used to finish a libtool library installation in a directory.
20718finish_cmds=$lt_finish_cmds
20719
20720# Same as above, but a single script fragment to be evaled but not shown.
20721finish_eval=$lt_finish_eval
20722
20723# Take the output of nm and produce a listing of raw symbols and C names.
20724global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20725
20726# Transform the output of nm in a proper C declaration
20727global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20728
20729# Transform the output of nm in a C name address pair
20730global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20731
20732# This is the shared library runtime path variable.
20733runpath_var=$runpath_var
20734
20735# This is the shared library path variable.
20736shlibpath_var=$shlibpath_var
20737
20738# Is shlibpath searched before the hard-coded library search path?
20739shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20740
20741# How to hardcode a shared library path into an executable.
20742hardcode_action=$hardcode_action_CXX
20743
20744# Whether we should hardcode library paths into libraries.
20745hardcode_into_libs=$hardcode_into_libs
20746
20747# Flag to hardcode \$libdir into a binary during linking.
20748# This must work even if \$libdir does not exist.
20749hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20750
20751# If ld is used when linking, flag to hardcode \$libdir into
20752# a binary during linking. This must work even if \$libdir does
20753# not exist.
20754hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20755
20756# Whether we need a single -rpath flag with a separated argument.
20757hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20758
20759# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20760# resulting binary.
20761hardcode_direct=$hardcode_direct_CXX
20762
20763# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20764# resulting binary.
20765hardcode_minus_L=$hardcode_minus_L_CXX
20766
20767# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20768# the resulting binary.
20769hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20770
20771# Set to yes if building a shared library automatically hardcodes DIR into the library
20772# and all subsequent libraries and executables linked against it.
20773hardcode_automatic=$hardcode_automatic_CXX
20774
20775# Variables whose values should be saved in libtool wrapper scripts and
20776# restored at relink time.
20777variables_saved_for_relink="$variables_saved_for_relink"
20778
20779# Whether libtool must link a program against all its dependency libraries.
20780link_all_deplibs=$link_all_deplibs_CXX
20781
20782# Compile-time system search path for libraries
20783sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20784
20785# Run-time system search path for libraries
20786sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20787
20788# Fix the shell variable \$srcfile for the compiler.
20789fix_srcfile_path="$fix_srcfile_path_CXX"
20790
20791# Set to yes if exported symbols are required.
20792always_export_symbols=$always_export_symbols_CXX
20793
20794# The commands to list exported symbols.
20795export_symbols_cmds=$lt_export_symbols_cmds_CXX
20796
20797# The commands to extract the exported symbol list from a shared archive.
20798extract_expsyms_cmds=$lt_extract_expsyms_cmds
20799
20800# Symbols that should not be listed in the preloaded symbols.
20801exclude_expsyms=$lt_exclude_expsyms_CXX
20802
20803# Symbols that must always be exported.
20804include_expsyms=$lt_include_expsyms_CXX
20805
20806# ### END LIBTOOL TAG CONFIG: $tagname
20807
20808__EOF__
20809
20810
20811else
20812 # If there is no Makefile yet, we rely on a make rule to execute
20813 # `config.status --recheck' to rerun these tests and create the
20814 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020815 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20816 if test -f "$ltmain_in"; then
20817 test -f Makefile && make "$ltmain"
20818 fi
John Criswell47fdd832003-07-14 16:52:07 +000020819fi
20820
20821
20822ac_ext=c
20823ac_cpp='$CPP $CPPFLAGS'
20824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826ac_compiler_gnu=$ac_cv_c_compiler_gnu
20827
20828CC=$lt_save_CC
20829LDCXX=$LD
20830LD=$lt_save_LD
20831GCC=$lt_save_GCC
20832with_gnu_ldcxx=$with_gnu_ld
20833with_gnu_ld=$lt_save_with_gnu_ld
20834lt_cv_path_LDCXX=$lt_cv_path_LD
20835lt_cv_path_LD=$lt_save_path_LD
20836lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20837lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20838
20839 else
20840 tagname=""
20841 fi
20842 ;;
20843
20844 F77)
20845 if test -n "$F77" && test "X$F77" != "Xno"; then
20846
20847ac_ext=f
20848ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20849ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20851
20852
20853archive_cmds_need_lc_F77=no
20854allow_undefined_flag_F77=
20855always_export_symbols_F77=no
20856archive_expsym_cmds_F77=
20857export_dynamic_flag_spec_F77=
20858hardcode_direct_F77=no
20859hardcode_libdir_flag_spec_F77=
20860hardcode_libdir_flag_spec_ld_F77=
20861hardcode_libdir_separator_F77=
20862hardcode_minus_L_F77=no
20863hardcode_automatic_F77=no
20864module_cmds_F77=
20865module_expsym_cmds_F77=
20866link_all_deplibs_F77=unknown
20867old_archive_cmds_F77=$old_archive_cmds
20868no_undefined_flag_F77=
20869whole_archive_flag_spec_F77=
20870enable_shared_with_static_runtimes_F77=no
20871
20872# Source file extension for f77 test sources.
20873ac_ext=f
20874
20875# Object file extension for compiled f77 test sources.
20876objext=o
20877objext_F77=$objext
20878
20879# Code to be used in simple compile tests
20880lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20881
20882# Code to be used in simple link tests
20883lt_simple_link_test_code=" program t\n end\n"
20884
20885# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20886
20887# If no C compiler was specified, use CC.
20888LTCC=${LTCC-"$CC"}
20889
Reid Spencera773bd52006-08-04 18:18:08 +000020890# If no C compiler flags were specified, use CFLAGS.
20891LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20892
John Criswell47fdd832003-07-14 16:52:07 +000020893# Allow CC to be a program name with arguments.
20894compiler=$CC
20895
20896
Reid Spencera773bd52006-08-04 18:18:08 +000020897# save warnings/boilerplate of simple test code
20898ac_outfile=conftest.$ac_objext
20899printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20900eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20901_lt_compiler_boilerplate=`cat conftest.err`
20902$rm conftest*
20903
20904ac_outfile=conftest.$ac_objext
20905printf "$lt_simple_link_test_code" >conftest.$ac_ext
20906eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20907_lt_linker_boilerplate=`cat conftest.err`
20908$rm conftest*
20909
20910
John Criswell47fdd832003-07-14 16:52:07 +000020911# Allow CC to be a program name with arguments.
20912lt_save_CC="$CC"
20913CC=${F77-"f77"}
20914compiler=$CC
20915compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020916for cc_temp in $compiler""; do
20917 case $cc_temp in
20918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20920 \-*) ;;
20921 *) break;;
20922 esac
20923done
20924cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020925
John Criswell47fdd832003-07-14 16:52:07 +000020926
Reid Spencera773bd52006-08-04 18:18:08 +000020927{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20928echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20929{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20930echo "${ECHO_T}$can_build_shared" >&6; }
20931
20932{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20933echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020934test "$can_build_shared" = "no" && enable_shared=no
20935
20936# On AIX, shared libraries and static libraries use the same namespace, and
20937# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020938case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020939aix3*)
20940 test "$enable_shared" = yes && enable_static=no
20941 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020942 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020943 postinstall_cmds='$RANLIB $lib'
20944 fi
20945 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020946aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020947 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20948 test "$enable_shared" = yes && enable_static=no
20949 fi
John Criswell47fdd832003-07-14 16:52:07 +000020950 ;;
20951esac
Reid Spencera773bd52006-08-04 18:18:08 +000020952{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20953echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020954
Reid Spencera773bd52006-08-04 18:18:08 +000020955{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20956echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020957# Make sure either enable_shared or enable_static is yes.
20958test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020959{ echo "$as_me:$LINENO: result: $enable_static" >&5
20960echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020961
20962GCC_F77="$G77"
20963LD_F77="$LD"
20964
20965lt_prog_compiler_wl_F77=
20966lt_prog_compiler_pic_F77=
20967lt_prog_compiler_static_F77=
20968
Reid Spencera773bd52006-08-04 18:18:08 +000020969{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20970echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020971
20972 if test "$GCC" = yes; then
20973 lt_prog_compiler_wl_F77='-Wl,'
20974 lt_prog_compiler_static_F77='-static'
20975
20976 case $host_os in
20977 aix*)
20978 # All AIX code is PIC.
20979 if test "$host_cpu" = ia64; then
20980 # AIX 5 now supports IA64 processor
20981 lt_prog_compiler_static_F77='-Bstatic'
20982 fi
20983 ;;
20984
20985 amigaos*)
20986 # FIXME: we need at least 68020 code to build shared libraries, but
20987 # adding the `-m68020' flag to GCC prevents building anything better,
20988 # like `-m68040'.
20989 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20990 ;;
20991
20992 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20993 # PIC is the default for these OSes.
20994 ;;
20995
20996 mingw* | pw32* | os2*)
20997 # This hack is so that the source file can tell whether it is being
20998 # built for inclusion in a dll (and should export symbols for example).
20999 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21000 ;;
21001
21002 darwin* | rhapsody*)
21003 # PIC is the default on this platform
21004 # Common symbols not allowed in MH_DYLIB files
21005 lt_prog_compiler_pic_F77='-fno-common'
21006 ;;
21007
Reid Spencera773bd52006-08-04 18:18:08 +000021008 interix3*)
21009 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21010 # Instead, we relocate shared libraries at runtime.
21011 ;;
21012
John Criswell47fdd832003-07-14 16:52:07 +000021013 msdosdjgpp*)
21014 # Just because we use GCC doesn't mean we suddenly get shared libraries
21015 # on systems that don't support them.
21016 lt_prog_compiler_can_build_shared_F77=no
21017 enable_shared=no
21018 ;;
21019
21020 sysv4*MP*)
21021 if test -d /usr/nec; then
21022 lt_prog_compiler_pic_F77=-Kconform_pic
21023 fi
21024 ;;
21025
21026 hpux*)
21027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21028 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021029 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021030 hppa*64*|ia64*)
21031 # +Z the default
21032 ;;
21033 *)
21034 lt_prog_compiler_pic_F77='-fPIC'
21035 ;;
21036 esac
21037 ;;
21038
21039 *)
21040 lt_prog_compiler_pic_F77='-fPIC'
21041 ;;
21042 esac
21043 else
21044 # PORTME Check for flag to pass linker flags through the system compiler.
21045 case $host_os in
21046 aix*)
21047 lt_prog_compiler_wl_F77='-Wl,'
21048 if test "$host_cpu" = ia64; then
21049 # AIX 5 now supports IA64 processor
21050 lt_prog_compiler_static_F77='-Bstatic'
21051 else
21052 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21053 fi
21054 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021055 darwin*)
21056 # PIC is the default on this platform
21057 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021058 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021059 xlc*)
21060 lt_prog_compiler_pic_F77='-qnocommon'
21061 lt_prog_compiler_wl_F77='-Wl,'
21062 ;;
21063 esac
21064 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021065
21066 mingw* | pw32* | os2*)
21067 # This hack is so that the source file can tell whether it is being
21068 # built for inclusion in a dll (and should export symbols for example).
21069 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21070 ;;
21071
21072 hpux9* | hpux10* | hpux11*)
21073 lt_prog_compiler_wl_F77='-Wl,'
21074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21075 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021076 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021077 hppa*64*|ia64*)
21078 # +Z the default
21079 ;;
21080 *)
21081 lt_prog_compiler_pic_F77='+Z'
21082 ;;
21083 esac
21084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21085 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21086 ;;
21087
21088 irix5* | irix6* | nonstopux*)
21089 lt_prog_compiler_wl_F77='-Wl,'
21090 # PIC (with -KPIC) is the default.
21091 lt_prog_compiler_static_F77='-non_shared'
21092 ;;
21093
21094 newsos6)
21095 lt_prog_compiler_pic_F77='-KPIC'
21096 lt_prog_compiler_static_F77='-Bstatic'
21097 ;;
21098
21099 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021100 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021101 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021102 lt_prog_compiler_wl_F77='-Wl,'
21103 lt_prog_compiler_pic_F77='-KPIC'
21104 lt_prog_compiler_static_F77='-static'
21105 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021106 pgcc* | pgf77* | pgf90* | pgf95*)
21107 # Portland Group compilers (*not* the Pentium gcc compiler,
21108 # which looks to be a dead project)
21109 lt_prog_compiler_wl_F77='-Wl,'
21110 lt_prog_compiler_pic_F77='-fpic'
21111 lt_prog_compiler_static_F77='-Bstatic'
21112 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021113 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021114 lt_prog_compiler_wl_F77='-Wl,'
21115 # All Alpha code is PIC.
21116 lt_prog_compiler_static_F77='-non_shared'
21117 ;;
21118 esac
21119 ;;
21120
21121 osf3* | osf4* | osf5*)
21122 lt_prog_compiler_wl_F77='-Wl,'
21123 # All OSF/1 code is PIC.
21124 lt_prog_compiler_static_F77='-non_shared'
21125 ;;
21126
John Criswell47fdd832003-07-14 16:52:07 +000021127 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021128 lt_prog_compiler_pic_F77='-KPIC'
21129 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021130 case $cc_basename in
21131 f77* | f90* | f95*)
21132 lt_prog_compiler_wl_F77='-Qoption ld ';;
21133 *)
21134 lt_prog_compiler_wl_F77='-Wl,';;
21135 esac
John Criswell47fdd832003-07-14 16:52:07 +000021136 ;;
21137
21138 sunos4*)
21139 lt_prog_compiler_wl_F77='-Qoption ld '
21140 lt_prog_compiler_pic_F77='-PIC'
21141 lt_prog_compiler_static_F77='-Bstatic'
21142 ;;
21143
Reid Spencera773bd52006-08-04 18:18:08 +000021144 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021145 lt_prog_compiler_wl_F77='-Wl,'
21146 lt_prog_compiler_pic_F77='-KPIC'
21147 lt_prog_compiler_static_F77='-Bstatic'
21148 ;;
21149
21150 sysv4*MP*)
21151 if test -d /usr/nec ;then
21152 lt_prog_compiler_pic_F77='-Kconform_pic'
21153 lt_prog_compiler_static_F77='-Bstatic'
21154 fi
21155 ;;
21156
Reid Spencera773bd52006-08-04 18:18:08 +000021157 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21158 lt_prog_compiler_wl_F77='-Wl,'
21159 lt_prog_compiler_pic_F77='-KPIC'
21160 lt_prog_compiler_static_F77='-Bstatic'
21161 ;;
21162
21163 unicos*)
21164 lt_prog_compiler_wl_F77='-Wl,'
21165 lt_prog_compiler_can_build_shared_F77=no
21166 ;;
21167
John Criswell47fdd832003-07-14 16:52:07 +000021168 uts4*)
21169 lt_prog_compiler_pic_F77='-pic'
21170 lt_prog_compiler_static_F77='-Bstatic'
21171 ;;
21172
21173 *)
21174 lt_prog_compiler_can_build_shared_F77=no
21175 ;;
21176 esac
21177 fi
21178
Reid Spencera773bd52006-08-04 18:18:08 +000021179{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21180echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021181
21182#
21183# Check to make sure the PIC flag actually works.
21184#
21185if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021186
Reid Spencera773bd52006-08-04 18:18:08 +000021187{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21188echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021189if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191else
21192 lt_prog_compiler_pic_works_F77=no
21193 ac_outfile=conftest.$ac_objext
21194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21195 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21196 # Insert the option either (1) after the last *FLAGS variable, or
21197 # (2) before a word containing "conftest.", or (3) at the end.
21198 # Note that $ac_compile itself does not contain backslashes and begins
21199 # with a dollar sign (not a hyphen), so the echo should work correctly.
21200 # The option is referenced via a variable to avoid confusing sed.
21201 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21204 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000021205 (eval echo "\"\$as_me:21205: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021206 (eval "$lt_compile" 2>conftest.err)
21207 ac_status=$?
21208 cat conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000021209 echo "$as_me:21209: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021210 if (exit $ac_status) && test -s "$ac_outfile"; then
21211 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021212 # So say no if there are warnings other than the usual output.
21213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021216 lt_prog_compiler_pic_works_F77=yes
21217 fi
21218 fi
21219 $rm conftest*
21220
21221fi
Reid Spencera773bd52006-08-04 18:18:08 +000021222{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21223echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021224
21225if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21226 case $lt_prog_compiler_pic_F77 in
21227 "" | " "*) ;;
21228 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21229 esac
21230else
21231 lt_prog_compiler_pic_F77=
21232 lt_prog_compiler_can_build_shared_F77=no
21233fi
21234
21235fi
Reid Spencera773bd52006-08-04 18:18:08 +000021236case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021237 # For platforms which do not support PIC, -DPIC is meaningless:
21238 *djgpp*)
21239 lt_prog_compiler_pic_F77=
21240 ;;
21241 *)
21242 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21243 ;;
21244esac
21245
Reid Spencera773bd52006-08-04 18:18:08 +000021246#
21247# Check to make sure the static flag actually works.
21248#
21249wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21250{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21251echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21252if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21254else
21255 lt_prog_compiler_static_works_F77=no
21256 save_LDFLAGS="$LDFLAGS"
21257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21258 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21260 # The linker can only warn and ignore the option if not recognized
21261 # So say no if there are warnings
21262 if test -s conftest.err; then
21263 # Append any errors to the config.log.
21264 cat conftest.err 1>&5
21265 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21267 if diff conftest.exp conftest.er2 >/dev/null; then
21268 lt_prog_compiler_static_works_F77=yes
21269 fi
21270 else
21271 lt_prog_compiler_static_works_F77=yes
21272 fi
21273 fi
21274 $rm conftest*
21275 LDFLAGS="$save_LDFLAGS"
21276
21277fi
21278{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21279echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21280
21281if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21282 :
21283else
21284 lt_prog_compiler_static_F77=
21285fi
21286
21287
21288{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21289echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021290if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21292else
21293 lt_cv_prog_compiler_c_o_F77=no
21294 $rm -r conftest 2>/dev/null
21295 mkdir conftest
21296 cd conftest
21297 mkdir out
21298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21299
John Criswell47fdd832003-07-14 16:52:07 +000021300 lt_compiler_flag="-o out/conftest2.$ac_objext"
21301 # Insert the option either (1) after the last *FLAGS variable, or
21302 # (2) before a word containing "conftest.", or (3) at the end.
21303 # Note that $ac_compile itself does not contain backslashes and begins
21304 # with a dollar sign (not a hyphen), so the echo should work correctly.
21305 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21308 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000021309 (eval echo "\"\$as_me:21309: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021310 (eval "$lt_compile" 2>out/conftest.err)
21311 ac_status=$?
21312 cat out/conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000021313 echo "$as_me:21313: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21315 then
21316 # The compiler can only warn and ignore the option if not recognized
21317 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021318 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021321 lt_cv_prog_compiler_c_o_F77=yes
21322 fi
21323 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021324 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021325 $rm conftest*
21326 # SGI C++ compiler will create directory out/ii_files/ for
21327 # template instantiation
21328 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21329 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021330 cd ..
21331 rmdir conftest
21332 $rm conftest*
21333
21334fi
Reid Spencera773bd52006-08-04 18:18:08 +000021335{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21336echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021337
21338
21339hard_links="nottested"
21340if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21341 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021342 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21343echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021344 hard_links=yes
21345 $rm conftest*
21346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21347 touch conftest.a
21348 ln conftest.a conftest.b 2>&5 || hard_links=no
21349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021350 { echo "$as_me:$LINENO: result: $hard_links" >&5
21351echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021352 if test "$hard_links" = no; then
21353 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21354echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21355 need_locks=warn
21356 fi
21357else
21358 need_locks=no
21359fi
21360
Reid Spencera773bd52006-08-04 18:18:08 +000021361{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21362echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021363
21364 runpath_var=
21365 allow_undefined_flag_F77=
21366 enable_shared_with_static_runtimes_F77=no
21367 archive_cmds_F77=
21368 archive_expsym_cmds_F77=
21369 old_archive_From_new_cmds_F77=
21370 old_archive_from_expsyms_cmds_F77=
21371 export_dynamic_flag_spec_F77=
21372 whole_archive_flag_spec_F77=
21373 thread_safe_flag_spec_F77=
21374 hardcode_libdir_flag_spec_F77=
21375 hardcode_libdir_flag_spec_ld_F77=
21376 hardcode_libdir_separator_F77=
21377 hardcode_direct_F77=no
21378 hardcode_minus_L_F77=no
21379 hardcode_shlibpath_var_F77=unsupported
21380 link_all_deplibs_F77=unknown
21381 hardcode_automatic_F77=no
21382 module_cmds_F77=
21383 module_expsym_cmds_F77=
21384 always_export_symbols_F77=no
21385 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21386 # include_expsyms should be a list of space-separated symbols to be *always*
21387 # included in the symbol list
21388 include_expsyms_F77=
21389 # exclude_expsyms can be an extended regexp of symbols to exclude
21390 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21391 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21392 # as well as any symbol that contains `d'.
21393 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21394 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21395 # platforms (ab)use it in PIC code, but their linkers get confused if
21396 # the symbol is explicitly referenced. Since portable code cannot
21397 # rely on this symbol name, it's probably fine to never include it in
21398 # preloaded symbol tables.
21399 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021400 # Just being paranoid about ensuring that cc_basename is set.
21401 for cc_temp in $compiler""; do
21402 case $cc_temp in
21403 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21404 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21405 \-*) ;;
21406 *) break;;
21407 esac
21408done
21409cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021410
21411 case $host_os in
21412 cygwin* | mingw* | pw32*)
21413 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21414 # When not using gcc, we currently assume that we are using
21415 # Microsoft Visual C++.
21416 if test "$GCC" != yes; then
21417 with_gnu_ld=no
21418 fi
21419 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021420 interix*)
21421 # we just hope/assume this is gcc and not c89 (= MSVC++)
21422 with_gnu_ld=yes
21423 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021424 openbsd*)
21425 with_gnu_ld=no
21426 ;;
21427 esac
21428
21429 ld_shlibs_F77=yes
21430 if test "$with_gnu_ld" = yes; then
21431 # If archive_cmds runs LD, not CC, wlarc should be empty
21432 wlarc='${wl}'
21433
Reid Spencera773bd52006-08-04 18:18:08 +000021434 # Set some defaults for GNU ld with shared library support. These
21435 # are reset later if shared libraries are not supported. Putting them
21436 # here allows them to be overridden if necessary.
21437 runpath_var=LD_RUN_PATH
21438 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21439 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21440 # ancient GNU ld didn't support --whole-archive et. al.
21441 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21442 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21443 else
21444 whole_archive_flag_spec_F77=
21445 fi
21446 supports_anon_versioning=no
21447 case `$LD -v 2>/dev/null` in
21448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21451 *\ 2.11.*) ;; # other 2.11 versions
21452 *) supports_anon_versioning=yes ;;
21453 esac
21454
John Criswell47fdd832003-07-14 16:52:07 +000021455 # See if GNU ld supports shared libraries.
21456 case $host_os in
21457 aix3* | aix4* | aix5*)
21458 # On AIX/PPC, the GNU linker is very broken
21459 if test "$host_cpu" != ia64; then
21460 ld_shlibs_F77=no
21461 cat <<EOF 1>&2
21462
21463*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21464*** to be unable to reliably create shared libraries on AIX.
21465*** Therefore, libtool is disabling shared libraries support. If you
21466*** really care for shared libraries, you may want to modify your PATH
21467*** so that a non-GNU linker is found, and then restart.
21468
21469EOF
21470 fi
21471 ;;
21472
21473 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021474 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 +000021475 hardcode_libdir_flag_spec_F77='-L$libdir'
21476 hardcode_minus_L_F77=yes
21477
21478 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21479 # that the semantics of dynamic libraries on AmigaOS, at least up
21480 # to version 4, is to share data among multiple programs linked
21481 # with the same dynamic library. Since this doesn't match the
21482 # behavior of shared libraries on other platforms, we can't use
21483 # them.
21484 ld_shlibs_F77=no
21485 ;;
21486
21487 beos*)
21488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21489 allow_undefined_flag_F77=unsupported
21490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21491 # support --undefined. This deserves some investigation. FIXME
21492 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21493 else
21494 ld_shlibs_F77=no
21495 fi
21496 ;;
21497
21498 cygwin* | mingw* | pw32*)
21499 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21500 # as there is no search path for DLLs.
21501 hardcode_libdir_flag_spec_F77='-L$libdir'
21502 allow_undefined_flag_F77=unsupported
21503 always_export_symbols_F77=no
21504 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021505 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 +000021506
21507 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021508 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 +000021509 # If the export-symbols file already is a .def file (1st line
21510 # is EXPORTS), use it as is; otherwise, prepend...
21511 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21512 cp $export_symbols $output_objdir/$soname.def;
21513 else
21514 echo EXPORTS > $output_objdir/$soname.def;
21515 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021516 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021517 $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 +000021518 else
Reid Spencera773bd52006-08-04 18:18:08 +000021519 ld_shlibs_F77=no
21520 fi
21521 ;;
21522
21523 interix3*)
21524 hardcode_direct_F77=no
21525 hardcode_shlibpath_var_F77=no
21526 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21527 export_dynamic_flag_spec_F77='${wl}-E'
21528 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21529 # Instead, shared libraries are loaded at an image base (0x10000000 by
21530 # default) and relocated if they conflict, which is a slow very memory
21531 # consuming and fragmenting process. To avoid this, we pick a random,
21532 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21533 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21534 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'
21535 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'
21536 ;;
21537
21538 linux*)
21539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21540 tmp_addflag=
21541 case $cc_basename,$host_cpu in
21542 pgcc*) # Portland Group C compiler
21543 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'
21544 tmp_addflag=' $pic_flag'
21545 ;;
21546 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21547 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'
21548 tmp_addflag=' $pic_flag -Mnomain' ;;
21549 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21550 tmp_addflag=' -i_dynamic' ;;
21551 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21552 tmp_addflag=' -i_dynamic -nofor_main' ;;
21553 ifc* | ifort*) # Intel Fortran compiler
21554 tmp_addflag=' -nofor_main' ;;
21555 esac
21556 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21557
21558 if test $supports_anon_versioning = yes; then
21559 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21561 $echo "local: *; };" >> $output_objdir/$libname.ver~
21562 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21563 fi
21564 else
21565 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021566 fi
21567 ;;
21568
21569 netbsd*)
21570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21571 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21572 wlarc=
21573 else
21574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21575 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21576 fi
21577 ;;
21578
Reid Spencera773bd52006-08-04 18:18:08 +000021579 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021580 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21581 ld_shlibs_F77=no
21582 cat <<EOF 1>&2
21583
21584*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21585*** create shared libraries on Solaris systems. Therefore, libtool
21586*** is disabling shared libraries support. We urge you to upgrade GNU
21587*** binutils to release 2.9.1 or newer. Another option is to modify
21588*** your PATH or compiler configuration so that the native linker is
21589*** used, and then restart.
21590
21591EOF
21592 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21593 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21594 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21595 else
21596 ld_shlibs_F77=no
21597 fi
21598 ;;
21599
Reid Spencera773bd52006-08-04 18:18:08 +000021600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21601 case `$LD -v 2>&1` in
21602 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21603 ld_shlibs_F77=no
21604 cat <<_LT_EOF 1>&2
21605
21606*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21607*** reliably create shared libraries on SCO systems. Therefore, libtool
21608*** is disabling shared libraries support. We urge you to upgrade GNU
21609*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21610*** your PATH or compiler configuration so that the native linker is
21611*** used, and then restart.
21612
21613_LT_EOF
21614 ;;
21615 *)
21616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21617 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21618 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21619 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21620 else
21621 ld_shlibs_F77=no
21622 fi
21623 ;;
21624 esac
21625 ;;
21626
John Criswell47fdd832003-07-14 16:52:07 +000021627 sunos4*)
21628 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21629 wlarc=
21630 hardcode_direct_F77=yes
21631 hardcode_shlibpath_var_F77=no
21632 ;;
21633
21634 *)
21635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21636 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21637 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21638 else
21639 ld_shlibs_F77=no
21640 fi
21641 ;;
21642 esac
21643
Reid Spencera773bd52006-08-04 18:18:08 +000021644 if test "$ld_shlibs_F77" = no; then
21645 runpath_var=
21646 hardcode_libdir_flag_spec_F77=
21647 export_dynamic_flag_spec_F77=
21648 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021649 fi
21650 else
21651 # PORTME fill in a description of your system's linker (not GNU ld)
21652 case $host_os in
21653 aix3*)
21654 allow_undefined_flag_F77=unsupported
21655 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021656 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 +000021657 # Note: this linker hardcodes the directories in LIBPATH if there
21658 # are no directories specified by -L.
21659 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021660 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021661 # Neither direct hardcoding nor static linking is supported with a
21662 # broken collect2.
21663 hardcode_direct_F77=unsupported
21664 fi
21665 ;;
21666
21667 aix4* | aix5*)
21668 if test "$host_cpu" = ia64; then
21669 # On IA64, the linker does run time linking by default, so we don't
21670 # have to do anything special.
21671 aix_use_runtimelinking=no
21672 exp_sym_flag='-Bexport'
21673 no_entry_flag=""
21674 else
21675 # If we're using GNU nm, then we don't want the "-C" option.
21676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21677 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21678 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'
21679 else
21680 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'
21681 fi
21682 aix_use_runtimelinking=no
21683
21684 # Test if we are trying to use run time linking or normal
21685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21686 # need to do runtime linking.
21687 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21688 for ld_flag in $LDFLAGS; do
21689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21690 aix_use_runtimelinking=yes
21691 break
21692 fi
21693 done
Reid Spencera773bd52006-08-04 18:18:08 +000021694 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021695 esac
21696
21697 exp_sym_flag='-bexport'
21698 no_entry_flag='-bnoentry'
21699 fi
21700
21701 # When large executables or shared objects are built, AIX ld can
21702 # have problems creating the table of contents. If linking a library
21703 # or program results in "error TOC overflow" add -mminimal-toc to
21704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21706
21707 archive_cmds_F77=''
21708 hardcode_direct_F77=yes
21709 hardcode_libdir_separator_F77=':'
21710 link_all_deplibs_F77=yes
21711
21712 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021713 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021714 # We only want to do this on AIX 4.2 and lower, the check
21715 # below for broken collect2 doesn't work under 4.3+
21716 collect2name=`${CC} -print-prog-name=collect2`
21717 if test -f "$collect2name" && \
21718 strings "$collect2name" | grep resolve_lib_name >/dev/null
21719 then
21720 # We have reworked collect2
21721 hardcode_direct_F77=yes
21722 else
21723 # We have old collect2
21724 hardcode_direct_F77=unsupported
21725 # It fails to find uninstalled libraries when the uninstalled
21726 # path is not listed in the libpath. Setting hardcode_minus_L
21727 # to unsupported forces relinking
21728 hardcode_minus_L_F77=yes
21729 hardcode_libdir_flag_spec_F77='-L$libdir'
21730 hardcode_libdir_separator_F77=
21731 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021732 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021733 esac
21734 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021735 if test "$aix_use_runtimelinking" = yes; then
21736 shared_flag="$shared_flag "'${wl}-G'
21737 fi
John Criswell47fdd832003-07-14 16:52:07 +000021738 else
21739 # not using gcc
21740 if test "$host_cpu" = ia64; then
21741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21742 # chokes on -Wl,-G. The following line is correct:
21743 shared_flag='-G'
21744 else
Reid Spencera773bd52006-08-04 18:18:08 +000021745 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021746 shared_flag='${wl}-G'
21747 else
21748 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021749 fi
John Criswell47fdd832003-07-14 16:52:07 +000021750 fi
21751 fi
21752
21753 # It seems that -bexpall does not export symbols beginning with
21754 # underscore (_), so it is better to generate a list of symbols to export.
21755 always_export_symbols_F77=yes
21756 if test "$aix_use_runtimelinking" = yes; then
21757 # Warning - without using the other runtime loading flags (-brtl),
21758 # -berok will link without error, but may produce a broken library.
21759 allow_undefined_flag_F77='-berok'
21760 # Determine the default libpath from the value encoded in an empty executable.
21761 cat >conftest.$ac_ext <<_ACEOF
21762 program main
21763
21764 end
21765_ACEOF
21766rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021767if { (ac_try="$ac_link"
21768case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21771esac
21772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021775 grep -v '^ *+' conftest.er1 >conftest.err
21776 rm -f conftest.er1
21777 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021780 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21781 { (case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21784esac
21785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; } &&
21790 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021791 { (case "(($ac_try" in
21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21794esac
21795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021797 ac_status=$?
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; }; then
21800
21801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21802}'`
21803# Check for a 64-bit object if we didn't find anything.
21804if 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; }
21805}'`; fi
21806else
21807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021808sed 's/^/| /' conftest.$ac_ext >&5
21809
Reid Spencera773bd52006-08-04 18:18:08 +000021810
John Criswell47fdd832003-07-14 16:52:07 +000021811fi
Reid Spencera773bd52006-08-04 18:18:08 +000021812
21813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021814 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21816
21817 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021818 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 +000021819 else
21820 if test "$host_cpu" = ia64; then
21821 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21822 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021823 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 +000021824 else
21825 # Determine the default libpath from the value encoded in an empty executable.
21826 cat >conftest.$ac_ext <<_ACEOF
21827 program main
21828
21829 end
21830_ACEOF
21831rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021832if { (ac_try="$ac_link"
21833case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836esac
21837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021840 grep -v '^ *+' conftest.er1 >conftest.err
21841 rm -f conftest.er1
21842 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021845 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21846 { (case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21849esac
21850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; } &&
21855 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021856 { (case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859esac
21860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; }; then
21865
21866aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21867}'`
21868# Check for a 64-bit object if we didn't find anything.
21869if 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; }
21870}'`; fi
21871else
21872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021873sed 's/^/| /' conftest.$ac_ext >&5
21874
Reid Spencera773bd52006-08-04 18:18:08 +000021875
John Criswell47fdd832003-07-14 16:52:07 +000021876fi
Reid Spencera773bd52006-08-04 18:18:08 +000021877
21878rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021879 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021880if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21881
21882 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21883 # Warning - without using the other run time loading flags,
21884 # -berok will link without error, but may produce a broken library.
21885 no_undefined_flag_F77=' ${wl}-bernotok'
21886 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021887 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021888 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021889 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021890 # This is similar to how AIX traditionally builds its shared libraries.
21891 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 +000021892 fi
21893 fi
21894 ;;
21895
21896 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021897 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 +000021898 hardcode_libdir_flag_spec_F77='-L$libdir'
21899 hardcode_minus_L_F77=yes
21900 # see comment about different semantics on the GNU ld section
21901 ld_shlibs_F77=no
21902 ;;
21903
Reid Spencer2706f8c2004-09-19 23:53:36 +000021904 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021905 export_dynamic_flag_spec_F77=-rdynamic
21906 ;;
21907
21908 cygwin* | mingw* | pw32*)
21909 # When not using gcc, we currently assume that we are using
21910 # Microsoft Visual C++.
21911 # hardcode_libdir_flag_spec is actually meaningless, as there is
21912 # no search path for DLLs.
21913 hardcode_libdir_flag_spec_F77=' '
21914 allow_undefined_flag_F77=unsupported
21915 # Tell ltmain to make .lib files, not .a files.
21916 libext=lib
21917 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021918 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021919 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021920 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 +000021921 # The linker will automatically build a .lib file if we build a DLL.
21922 old_archive_From_new_cmds_F77='true'
21923 # FIXME: Should let the user specify the lib program.
21924 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021925 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021926 enable_shared_with_static_runtimes_F77=yes
21927 ;;
21928
21929 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021930 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021931 rhapsody* | darwin1.[012])
21932 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21933 ;;
21934 *) # Darwin 1.3 on
21935 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21936 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21937 else
21938 case ${MACOSX_DEPLOYMENT_TARGET} in
21939 10.[012])
21940 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21941 ;;
21942 10.*)
21943 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21944 ;;
21945 esac
21946 fi
21947 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021948 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021949 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021950 hardcode_direct_F77=no
21951 hardcode_automatic_F77=yes
21952 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021953 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021954 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021955 if test "$GCC" = yes ; then
21956 output_verbose_link_cmd='echo'
21957 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21958 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021959 # 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 +000021960 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}'
21961 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 +000021962 else
Reid Spencera773bd52006-08-04 18:18:08 +000021963 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021964 xlc*)
21965 output_verbose_link_cmd='echo'
21966 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21967 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021968 # 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 +000021969 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}'
21970 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 +000021971 ;;
21972 *)
21973 ld_shlibs_F77=no
21974 ;;
21975 esac
John Criswell47fdd832003-07-14 16:52:07 +000021976 fi
21977 ;;
21978
21979 dgux*)
21980 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21981 hardcode_libdir_flag_spec_F77='-L$libdir'
21982 hardcode_shlibpath_var_F77=no
21983 ;;
21984
21985 freebsd1*)
21986 ld_shlibs_F77=no
21987 ;;
21988
21989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21990 # support. Future versions do this automatically, but an explicit c++rt0.o
21991 # does not break anything, and helps significantly (at the cost of a little
21992 # extra space).
21993 freebsd2.2*)
21994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21995 hardcode_libdir_flag_spec_F77='-R$libdir'
21996 hardcode_direct_F77=yes
21997 hardcode_shlibpath_var_F77=no
21998 ;;
21999
22000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22001 freebsd2*)
22002 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22003 hardcode_direct_F77=yes
22004 hardcode_minus_L_F77=yes
22005 hardcode_shlibpath_var_F77=no
22006 ;;
22007
22008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022009 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022010 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22011 hardcode_libdir_flag_spec_F77='-R$libdir'
22012 hardcode_direct_F77=yes
22013 hardcode_shlibpath_var_F77=no
22014 ;;
22015
22016 hpux9*)
22017 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022018 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 +000022019 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022020 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 +000022021 fi
22022 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22023 hardcode_libdir_separator_F77=:
22024 hardcode_direct_F77=yes
22025
22026 # hardcode_minus_L: Not really in the search PATH,
22027 # but as the default location of the library.
22028 hardcode_minus_L_F77=yes
22029 export_dynamic_flag_spec_F77='${wl}-E'
22030 ;;
22031
Reid Spencera773bd52006-08-04 18:18:08 +000022032 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022033 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022034 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22035 else
22036 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22037 fi
22038 if test "$with_gnu_ld" = no; then
22039 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22040 hardcode_libdir_separator_F77=:
22041
22042 hardcode_direct_F77=yes
22043 export_dynamic_flag_spec_F77='${wl}-E'
22044
22045 # hardcode_minus_L: Not really in the search PATH,
22046 # but as the default location of the library.
22047 hardcode_minus_L_F77=yes
22048 fi
22049 ;;
22050
22051 hpux11*)
22052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22053 case $host_cpu in
22054 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022055 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22056 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022057 ia64*)
22058 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022060 *)
22061 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22062 ;;
22063 esac
22064 else
Reid Spencera773bd52006-08-04 18:18:08 +000022065 case $host_cpu in
22066 hppa*64*)
22067 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22068 ;;
22069 ia64*)
22070 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022071 ;;
22072 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022073 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 +000022074 ;;
22075 esac
22076 fi
22077 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022078 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22079 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022080
Reid Spencera773bd52006-08-04 18:18:08 +000022081 case $host_cpu in
22082 hppa*64*|ia64*)
22083 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22084 hardcode_direct_F77=no
22085 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022086 ;;
22087 *)
John Criswell47fdd832003-07-14 16:52:07 +000022088 hardcode_direct_F77=yes
22089 export_dynamic_flag_spec_F77='${wl}-E'
22090
22091 # hardcode_minus_L: Not really in the search PATH,
22092 # but as the default location of the library.
22093 hardcode_minus_L_F77=yes
22094 ;;
22095 esac
22096 fi
22097 ;;
22098
22099 irix5* | irix6* | nonstopux*)
22100 if test "$GCC" = yes; then
22101 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'
22102 else
22103 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'
22104 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22105 fi
22106 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22107 hardcode_libdir_separator_F77=:
22108 link_all_deplibs_F77=yes
22109 ;;
22110
22111 netbsd*)
22112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22113 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22114 else
22115 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22116 fi
22117 hardcode_libdir_flag_spec_F77='-R$libdir'
22118 hardcode_direct_F77=yes
22119 hardcode_shlibpath_var_F77=no
22120 ;;
22121
22122 newsos6)
22123 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22124 hardcode_direct_F77=yes
22125 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22126 hardcode_libdir_separator_F77=:
22127 hardcode_shlibpath_var_F77=no
22128 ;;
22129
22130 openbsd*)
22131 hardcode_direct_F77=yes
22132 hardcode_shlibpath_var_F77=no
22133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22134 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022135 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 +000022136 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22137 export_dynamic_flag_spec_F77='${wl}-E'
22138 else
22139 case $host_os in
22140 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22141 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22142 hardcode_libdir_flag_spec_F77='-R$libdir'
22143 ;;
22144 *)
22145 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22147 ;;
22148 esac
22149 fi
22150 ;;
22151
22152 os2*)
22153 hardcode_libdir_flag_spec_F77='-L$libdir'
22154 hardcode_minus_L_F77=yes
22155 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022156 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 +000022157 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22158 ;;
22159
22160 osf3*)
22161 if test "$GCC" = yes; then
22162 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22163 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'
22164 else
22165 allow_undefined_flag_F77=' -expect_unresolved \*'
22166 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'
22167 fi
22168 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22169 hardcode_libdir_separator_F77=:
22170 ;;
22171
22172 osf4* | osf5*) # as osf3* with the addition of -msym flag
22173 if test "$GCC" = yes; then
22174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22175 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'
22176 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22177 else
22178 allow_undefined_flag_F77=' -expect_unresolved \*'
22179 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 +000022180 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 +000022181 $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 +000022182
John Criswell47fdd832003-07-14 16:52:07 +000022183 # Both c and cxx compiler support -rpath directly
22184 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22185 fi
22186 hardcode_libdir_separator_F77=:
22187 ;;
22188
John Criswell47fdd832003-07-14 16:52:07 +000022189 solaris*)
22190 no_undefined_flag_F77=' -z text'
22191 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022192 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022193 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022194 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22195 $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 +000022196 else
Reid Spencera773bd52006-08-04 18:18:08 +000022197 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022198 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022199 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22200 $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 +000022201 fi
22202 hardcode_libdir_flag_spec_F77='-R$libdir'
22203 hardcode_shlibpath_var_F77=no
22204 case $host_os in
22205 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022206 *)
22207 # The compiler driver will combine linker options so we
22208 # cannot just pass the convience library names through
22209 # without $wl, iff we do not link with $LD.
22210 # Luckily, gcc supports the same syntax we need for Sun Studio.
22211 # Supported since Solaris 2.6 (maybe 2.5.1?)
22212 case $wlarc in
22213 '')
22214 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22215 *)
22216 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' ;;
22217 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022218 esac
22219 link_all_deplibs_F77=yes
22220 ;;
22221
22222 sunos4*)
22223 if test "x$host_vendor" = xsequent; then
22224 # Use $CC to link under sequent, because it throws in some extra .o
22225 # files that make .init and .fini sections work.
22226 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22227 else
22228 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22229 fi
22230 hardcode_libdir_flag_spec_F77='-L$libdir'
22231 hardcode_direct_F77=yes
22232 hardcode_minus_L_F77=yes
22233 hardcode_shlibpath_var_F77=no
22234 ;;
22235
22236 sysv4)
22237 case $host_vendor in
22238 sni)
22239 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240 hardcode_direct_F77=yes # is this really true???
22241 ;;
22242 siemens)
22243 ## LD is ld it makes a PLAMLIB
22244 ## CC just makes a GrossModule.
22245 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22246 reload_cmds_F77='$CC -r -o $output$reload_objs'
22247 hardcode_direct_F77=no
22248 ;;
22249 motorola)
22250 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22251 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22252 ;;
22253 esac
22254 runpath_var='LD_RUN_PATH'
22255 hardcode_shlibpath_var_F77=no
22256 ;;
22257
22258 sysv4.3*)
22259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22260 hardcode_shlibpath_var_F77=no
22261 export_dynamic_flag_spec_F77='-Bexport'
22262 ;;
22263
22264 sysv4*MP*)
22265 if test -d /usr/nec; then
22266 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22267 hardcode_shlibpath_var_F77=no
22268 runpath_var=LD_RUN_PATH
22269 hardcode_runpath_var=yes
22270 ld_shlibs_F77=yes
22271 fi
22272 ;;
22273
Reid Spencera773bd52006-08-04 18:18:08 +000022274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22275 no_undefined_flag_F77='${wl}-z,text'
22276 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022277 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022278 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022279
John Criswell47fdd832003-07-14 16:52:07 +000022280 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022281 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22282 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 +000022283 else
Reid Spencera773bd52006-08-04 18:18:08 +000022284 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22285 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 +000022286 fi
John Criswell47fdd832003-07-14 16:52:07 +000022287 ;;
22288
Reid Spencera773bd52006-08-04 18:18:08 +000022289 sysv5* | sco3.2v5* | sco5v6*)
22290 # Note: We can NOT use -z defs as we might desire, because we do not
22291 # link with -lc, and that would cause any symbols used from libc to
22292 # always be unresolved, which means just about no library would
22293 # ever link correctly. If we're not using GNU ld we use -z text
22294 # though, which does catch some bad symbols but isn't as heavy-handed
22295 # as -z defs.
22296 no_undefined_flag_F77='${wl}-z,text'
22297 allow_undefined_flag_F77='${wl}-z,nodefs'
22298 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022299 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022300 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22301 hardcode_libdir_separator_F77=':'
22302 link_all_deplibs_F77=yes
22303 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022304 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022305
22306 if test "$GCC" = yes; then
22307 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22308 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22309 else
22310 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22311 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22312 fi
John Criswell47fdd832003-07-14 16:52:07 +000022313 ;;
22314
22315 uts4*)
22316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317 hardcode_libdir_flag_spec_F77='-L$libdir'
22318 hardcode_shlibpath_var_F77=no
22319 ;;
22320
22321 *)
22322 ld_shlibs_F77=no
22323 ;;
22324 esac
22325 fi
22326
Reid Spencera773bd52006-08-04 18:18:08 +000022327{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22328echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022329test "$ld_shlibs_F77" = no && can_build_shared=no
22330
John Criswell47fdd832003-07-14 16:52:07 +000022331#
22332# Do we need to explicitly link libc?
22333#
22334case "x$archive_cmds_need_lc_F77" in
22335x|xyes)
22336 # Assume -lc should be added
22337 archive_cmds_need_lc_F77=yes
22338
22339 if test "$enable_shared" = yes && test "$GCC" = yes; then
22340 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022341 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022342 # FIXME: we may have to deal with multi-command sequences.
22343 ;;
22344 '$CC '*)
22345 # Test whether the compiler implicitly links with -lc since on some
22346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22347 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022348 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22349echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022350 $rm conftest*
22351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22352
22353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22354 (eval $ac_compile) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } 2>conftest.err; then
22358 soname=conftest
22359 lib=conftest
22360 libobjs=conftest.$ac_objext
22361 deplibs=
22362 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022363 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022364 compiler_flags=-v
22365 linker_flags=-v
22366 verstring=
22367 output_objdir=.
22368 libname=conftest
22369 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22370 allow_undefined_flag_F77=
22371 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22372 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22373 ac_status=$?
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }
22376 then
22377 archive_cmds_need_lc_F77=no
22378 else
22379 archive_cmds_need_lc_F77=yes
22380 fi
22381 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22382 else
22383 cat conftest.err 1>&5
22384 fi
22385 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022386 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22387echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022388 ;;
22389 esac
22390 fi
22391 ;;
22392esac
22393
Reid Spencera773bd52006-08-04 18:18:08 +000022394{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22395echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022396library_names_spec=
22397libname_spec='lib$name'
22398soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022399shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022400postinstall_cmds=
22401postuninstall_cmds=
22402finish_cmds=
22403finish_eval=
22404shlibpath_var=
22405shlibpath_overrides_runpath=unknown
22406version_type=none
22407dynamic_linker="$host_os ld.so"
22408sys_lib_dlsearch_path_spec="/lib /usr/lib"
22409if test "$GCC" = yes; then
22410 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22411 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22412 # if the path contains ";" then we assume it to be the separator
22413 # otherwise default to the standard path separator (i.e. ":") - it is
22414 # assumed that no part of a normal pathname contains ";" but that should
22415 # okay in the real world where ";" in dirpaths is itself problematic.
22416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22417 else
22418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22419 fi
22420else
22421 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22422fi
22423need_lib_prefix=unknown
22424hardcode_into_libs=no
22425
22426# when you set need_version to no, make sure it does not cause -set_version
22427# flags to be left without arguments
22428need_version=unknown
22429
22430case $host_os in
22431aix3*)
22432 version_type=linux
22433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22434 shlibpath_var=LIBPATH
22435
22436 # AIX 3 has no versioning support, so we append a major version to the name.
22437 soname_spec='${libname}${release}${shared_ext}$major'
22438 ;;
22439
22440aix4* | aix5*)
22441 version_type=linux
22442 need_lib_prefix=no
22443 need_version=no
22444 hardcode_into_libs=yes
22445 if test "$host_cpu" = ia64; then
22446 # AIX 5 supports IA64
22447 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22448 shlibpath_var=LD_LIBRARY_PATH
22449 else
22450 # With GCC up to 2.95.x, collect2 would create an import file
22451 # for dependence libraries. The import file would start with
22452 # the line `#! .'. This would cause the generated library to
22453 # depend on `.', always an invalid library. This was fixed in
22454 # development snapshots of GCC prior to 3.0.
22455 case $host_os in
22456 aix4 | aix4.[01] | aix4.[01].*)
22457 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22458 echo ' yes '
22459 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22460 :
22461 else
22462 can_build_shared=no
22463 fi
22464 ;;
22465 esac
22466 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22467 # soname into executable. Probably we can add versioning support to
22468 # collect2, so additional links can be useful in future.
22469 if test "$aix_use_runtimelinking" = yes; then
22470 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22471 # instead of lib<name>.a to let people know that these are not
22472 # typical AIX shared libraries.
22473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22474 else
22475 # We preserve .a as extension for shared libraries through AIX4.2
22476 # and later when we are not doing run time linking.
22477 library_names_spec='${libname}${release}.a $libname.a'
22478 soname_spec='${libname}${release}${shared_ext}$major'
22479 fi
22480 shlibpath_var=LIBPATH
22481 fi
22482 ;;
22483
22484amigaos*)
22485 library_names_spec='$libname.ixlibrary $libname.a'
22486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022487 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 +000022488 ;;
22489
22490beos*)
22491 library_names_spec='${libname}${shared_ext}'
22492 dynamic_linker="$host_os ld.so"
22493 shlibpath_var=LIBRARY_PATH
22494 ;;
22495
Reid Spencer2706f8c2004-09-19 23:53:36 +000022496bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022497 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22502 shlibpath_var=LD_LIBRARY_PATH
22503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22505 # the default ld.so.conf also contains /usr/contrib/lib and
22506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22507 # libtool to hard-code these into programs
22508 ;;
22509
22510cygwin* | mingw* | pw32*)
22511 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022512 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022513 need_version=no
22514 need_lib_prefix=no
22515
22516 case $GCC,$host_os in
22517 yes,cygwin* | yes,mingw* | yes,pw32*)
22518 library_names_spec='$libname.dll.a'
22519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022520 postinstall_cmds='base_file=`basename \${file}`~
22521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22522 dldir=$destdir/`dirname \$dlpath`~
22523 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022524 $install_prog $dir/$dlname \$dldir/$dlname~
22525 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22527 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022528 $rm \$dlpath'
22529 shlibpath_overrides_runpath=yes
22530
22531 case $host_os in
22532 cygwin*)
22533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22534 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 +000022535 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022536 ;;
22537 mingw*)
22538 # MinGW DLLs use traditional 'lib' prefix
22539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22541 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22542 # It is most probably a Windows format PATH printed by
22543 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22544 # path with ; separators, and with drive letters. We can handle the
22545 # drive letters (cygwin fileutils understands them), so leave them,
22546 # especially as we might pass files found there to a mingw objdump,
22547 # which wouldn't understand a cygwinified path. Ahh.
22548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22549 else
22550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22551 fi
22552 ;;
22553 pw32*)
22554 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022555 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 +000022556 ;;
22557 esac
22558 ;;
22559
22560 *)
22561 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22562 ;;
22563 esac
22564 dynamic_linker='Win32 ld.exe'
22565 # FIXME: first we should search . and the directory the executable is in
22566 shlibpath_var=PATH
22567 ;;
22568
22569darwin* | rhapsody*)
22570 dynamic_linker="$host_os dyld"
22571 version_type=darwin
22572 need_lib_prefix=no
22573 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022575 soname_spec='${libname}${release}${major}$shared_ext'
22576 shlibpath_overrides_runpath=yes
22577 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022578 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022580 if test "$GCC" = yes; then
22581 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"`
22582 else
22583 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022584 fi
22585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22586 ;;
22587
22588dgux*)
22589 version_type=linux
22590 need_lib_prefix=no
22591 need_version=no
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22593 soname_spec='${libname}${release}${shared_ext}$major'
22594 shlibpath_var=LD_LIBRARY_PATH
22595 ;;
22596
22597freebsd1*)
22598 dynamic_linker=no
22599 ;;
22600
Reid Spencer2706f8c2004-09-19 23:53:36 +000022601kfreebsd*-gnu)
22602 version_type=linux
22603 need_lib_prefix=no
22604 need_version=no
22605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22606 soname_spec='${libname}${release}${shared_ext}$major'
22607 shlibpath_var=LD_LIBRARY_PATH
22608 shlibpath_overrides_runpath=no
22609 hardcode_into_libs=yes
22610 dynamic_linker='GNU ld.so'
22611 ;;
22612
Reid Spencera773bd52006-08-04 18:18:08 +000022613freebsd* | dragonfly*)
22614 # DragonFly does not have aout. When/if they implement a new
22615 # versioning mechanism, adjust this.
22616 if test -x /usr/bin/objformat; then
22617 objformat=`/usr/bin/objformat`
22618 else
22619 case $host_os in
22620 freebsd[123]*) objformat=aout ;;
22621 *) objformat=elf ;;
22622 esac
22623 fi
John Criswell47fdd832003-07-14 16:52:07 +000022624 version_type=freebsd-$objformat
22625 case $version_type in
22626 freebsd-elf*)
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22628 need_version=no
22629 need_lib_prefix=no
22630 ;;
22631 freebsd-*)
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22633 need_version=yes
22634 ;;
22635 esac
22636 shlibpath_var=LD_LIBRARY_PATH
22637 case $host_os in
22638 freebsd2*)
22639 shlibpath_overrides_runpath=yes
22640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022641 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022642 shlibpath_overrides_runpath=yes
22643 hardcode_into_libs=yes
22644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022645 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22646 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022647 shlibpath_overrides_runpath=no
22648 hardcode_into_libs=yes
22649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022650 freebsd*) # from 4.6 on
22651 shlibpath_overrides_runpath=yes
22652 hardcode_into_libs=yes
22653 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022654 esac
22655 ;;
22656
22657gnu*)
22658 version_type=linux
22659 need_lib_prefix=no
22660 need_version=no
22661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22662 soname_spec='${libname}${release}${shared_ext}$major'
22663 shlibpath_var=LD_LIBRARY_PATH
22664 hardcode_into_libs=yes
22665 ;;
22666
22667hpux9* | hpux10* | hpux11*)
22668 # Give a soname corresponding to the major version so that dld.sl refuses to
22669 # link against other versions.
22670 version_type=sunos
22671 need_lib_prefix=no
22672 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022673 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022674 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022675 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022676 hardcode_into_libs=yes
22677 dynamic_linker="$host_os dld.so"
22678 shlibpath_var=LD_LIBRARY_PATH
22679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681 soname_spec='${libname}${release}${shared_ext}$major'
22682 if test "X$HPUX_IA64_MODE" = X32; then
22683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22684 else
22685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22686 fi
22687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22688 ;;
22689 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022690 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022691 hardcode_into_libs=yes
22692 dynamic_linker="$host_os dld.sl"
22693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22699 ;;
22700 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022701 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022702 dynamic_linker="$host_os dld.sl"
22703 shlibpath_var=SHLIB_PATH
22704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 ;;
22708 esac
22709 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22710 postinstall_cmds='chmod 555 $lib'
22711 ;;
22712
Reid Spencera773bd52006-08-04 18:18:08 +000022713interix3*)
22714 version_type=linux
22715 need_lib_prefix=no
22716 need_version=no
22717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22718 soname_spec='${libname}${release}${shared_ext}$major'
22719 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=no
22722 hardcode_into_libs=yes
22723 ;;
22724
John Criswell47fdd832003-07-14 16:52:07 +000022725irix5* | irix6* | nonstopux*)
22726 case $host_os in
22727 nonstopux*) version_type=nonstopux ;;
22728 *)
22729 if test "$lt_cv_prog_gnu_ld" = yes; then
22730 version_type=linux
22731 else
22732 version_type=irix
22733 fi ;;
22734 esac
22735 need_lib_prefix=no
22736 need_version=no
22737 soname_spec='${libname}${release}${shared_ext}$major'
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22739 case $host_os in
22740 irix5* | nonstopux*)
22741 libsuff= shlibsuff=
22742 ;;
22743 *)
22744 case $LD in # libtool.m4 will add one of these switches to LD
22745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22746 libsuff= shlibsuff= libmagic=32-bit;;
22747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22748 libsuff=32 shlibsuff=N32 libmagic=N32;;
22749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22750 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22751 *) libsuff= shlibsuff= libmagic=never-match;;
22752 esac
22753 ;;
22754 esac
22755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22756 shlibpath_overrides_runpath=no
22757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22759 hardcode_into_libs=yes
22760 ;;
22761
22762# No shared lib support for Linux oldld, aout, or coff.
22763linux*oldld* | linux*aout* | linux*coff*)
22764 dynamic_linker=no
22765 ;;
22766
22767# This must be Linux ELF.
22768linux*)
22769 version_type=linux
22770 need_lib_prefix=no
22771 need_version=no
22772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec='${libname}${release}${shared_ext}$major'
22774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22775 shlibpath_var=LD_LIBRARY_PATH
22776 shlibpath_overrides_runpath=no
22777 # This implies no fast_install, which is unacceptable.
22778 # Some rework will be needed to allow for fast_install
22779 # before this can be enabled.
22780 hardcode_into_libs=yes
22781
Reid Spencer2706f8c2004-09-19 23:53:36 +000022782 # Append ld.so.conf contents to the search path
22783 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022784 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 +000022785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22786 fi
22787
John Criswell47fdd832003-07-14 16:52:07 +000022788 # We used to test for /lib/ld.so.1 and disable shared libraries on
22789 # powerpc, because MkLinux only supported shared libraries with the
22790 # GNU dynamic linker. Since this was broken with cross compilers,
22791 # most powerpc-linux boxes support dynamic linking these days and
22792 # people can always --disable-shared, the test was removed, and we
22793 # assume the GNU/Linux dynamic linker is in use.
22794 dynamic_linker='GNU/Linux ld.so'
22795 ;;
22796
Reid Spencer2706f8c2004-09-19 23:53:36 +000022797knetbsd*-gnu)
22798 version_type=linux
22799 need_lib_prefix=no
22800 need_version=no
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=no
22805 hardcode_into_libs=yes
22806 dynamic_linker='GNU ld.so'
22807 ;;
22808
John Criswell47fdd832003-07-14 16:52:07 +000022809netbsd*)
22810 version_type=sunos
22811 need_lib_prefix=no
22812 need_version=no
22813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22816 dynamic_linker='NetBSD (a.out) ld.so'
22817 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022819 soname_spec='${libname}${release}${shared_ext}$major'
22820 dynamic_linker='NetBSD ld.elf_so'
22821 fi
22822 shlibpath_var=LD_LIBRARY_PATH
22823 shlibpath_overrides_runpath=yes
22824 hardcode_into_libs=yes
22825 ;;
22826
22827newsos6)
22828 version_type=linux
22829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22830 shlibpath_var=LD_LIBRARY_PATH
22831 shlibpath_overrides_runpath=yes
22832 ;;
22833
Reid Spencer2706f8c2004-09-19 23:53:36 +000022834nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022835 version_type=linux
22836 need_lib_prefix=no
22837 need_version=no
22838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22839 soname_spec='${libname}${release}${shared_ext}$major'
22840 shlibpath_var=LD_LIBRARY_PATH
22841 shlibpath_overrides_runpath=yes
22842 ;;
22843
22844openbsd*)
22845 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022846 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022847 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22849 case $host_os in
22850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22851 *) need_version=no ;;
22852 esac
John Criswell47fdd832003-07-14 16:52:07 +000022853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22855 shlibpath_var=LD_LIBRARY_PATH
22856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22857 case $host_os in
22858 openbsd2.[89] | openbsd2.[89].*)
22859 shlibpath_overrides_runpath=no
22860 ;;
22861 *)
22862 shlibpath_overrides_runpath=yes
22863 ;;
22864 esac
22865 else
22866 shlibpath_overrides_runpath=yes
22867 fi
22868 ;;
22869
22870os2*)
22871 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022872 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022873 need_lib_prefix=no
22874 library_names_spec='$libname${shared_ext} $libname.a'
22875 dynamic_linker='OS/2 ld.exe'
22876 shlibpath_var=LIBPATH
22877 ;;
22878
22879osf3* | osf4* | osf5*)
22880 version_type=osf
22881 need_lib_prefix=no
22882 need_version=no
22883 soname_spec='${libname}${release}${shared_ext}$major'
22884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22885 shlibpath_var=LD_LIBRARY_PATH
22886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22888 ;;
22889
John Criswell47fdd832003-07-14 16:52:07 +000022890solaris*)
22891 version_type=linux
22892 need_lib_prefix=no
22893 need_version=no
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 shlibpath_var=LD_LIBRARY_PATH
22897 shlibpath_overrides_runpath=yes
22898 hardcode_into_libs=yes
22899 # ldd complains unless libraries are executable
22900 postinstall_cmds='chmod +x $lib'
22901 ;;
22902
22903sunos4*)
22904 version_type=sunos
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 shlibpath_overrides_runpath=yes
22909 if test "$with_gnu_ld" = yes; then
22910 need_lib_prefix=no
22911 fi
22912 need_version=yes
22913 ;;
22914
Reid Spencera773bd52006-08-04 18:18:08 +000022915sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022916 version_type=linux
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 case $host_vendor in
22921 sni)
22922 shlibpath_overrides_runpath=no
22923 need_lib_prefix=no
22924 export_dynamic_flag_spec='${wl}-Blargedynsym'
22925 runpath_var=LD_RUN_PATH
22926 ;;
22927 siemens)
22928 need_lib_prefix=no
22929 ;;
22930 motorola)
22931 need_lib_prefix=no
22932 need_version=no
22933 shlibpath_overrides_runpath=no
22934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22935 ;;
22936 esac
22937 ;;
22938
22939sysv4*MP*)
22940 if test -d /usr/nec ;then
22941 version_type=linux
22942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22943 soname_spec='$libname${shared_ext}.$major'
22944 shlibpath_var=LD_LIBRARY_PATH
22945 fi
22946 ;;
22947
Reid Spencera773bd52006-08-04 18:18:08 +000022948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22949 version_type=freebsd-elf
22950 need_lib_prefix=no
22951 need_version=no
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 shlibpath_var=LD_LIBRARY_PATH
22955 hardcode_into_libs=yes
22956 if test "$with_gnu_ld" = yes; then
22957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22958 shlibpath_overrides_runpath=no
22959 else
22960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22961 shlibpath_overrides_runpath=yes
22962 case $host_os in
22963 sco3.2v5*)
22964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22965 ;;
22966 esac
22967 fi
22968 sys_lib_dlsearch_path_spec='/usr/lib'
22969 ;;
22970
John Criswell47fdd832003-07-14 16:52:07 +000022971uts4*)
22972 version_type=linux
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 shlibpath_var=LD_LIBRARY_PATH
22976 ;;
22977
22978*)
22979 dynamic_linker=no
22980 ;;
22981esac
Reid Spencera773bd52006-08-04 18:18:08 +000022982{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22983echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022984test "$dynamic_linker" = no && can_build_shared=no
22985
Reid Spencera773bd52006-08-04 18:18:08 +000022986variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22987if test "$GCC" = yes; then
22988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22989fi
22990
22991{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22992echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993hardcode_action_F77=
22994if test -n "$hardcode_libdir_flag_spec_F77" || \
22995 test -n "$runpath_var_F77" || \
22996 test "X$hardcode_automatic_F77" = "Xyes" ; then
22997
22998 # We can hardcode non-existant directories.
22999 if test "$hardcode_direct_F77" != no &&
23000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23001 # have to relink, otherwise we might link with an installed library
23002 # when we should be linking with a yet-to-be-installed one
23003 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23004 test "$hardcode_minus_L_F77" != no; then
23005 # Linking always hardcodes the temporary library directory.
23006 hardcode_action_F77=relink
23007 else
23008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23009 hardcode_action_F77=immediate
23010 fi
23011else
23012 # We cannot hardcode anything, or else we can only hardcode existing
23013 # directories.
23014 hardcode_action_F77=unsupported
23015fi
Reid Spencera773bd52006-08-04 18:18:08 +000023016{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23017echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023018
23019if test "$hardcode_action_F77" = relink; then
23020 # Fast installation is not supported
23021 enable_fast_install=no
23022elif test "$shlibpath_overrides_runpath" = yes ||
23023 test "$enable_shared" = no; then
23024 # Fast installation is not necessary
23025 enable_fast_install=needless
23026fi
23027
John Criswell47fdd832003-07-14 16:52:07 +000023028
23029# The else clause should only fire when bootstrapping the
23030# libtool distribution, otherwise you forgot to ship ltmain.sh
23031# with your package, and you will get complaints that there are
23032# no rules to generate ltmain.sh.
23033if test -f "$ltmain"; then
23034 # See if we are running on zsh, and set the options which allow our commands through
23035 # without removal of \ escapes.
23036 if test -n "${ZSH_VERSION+set}" ; then
23037 setopt NO_GLOB_SUBST
23038 fi
23039 # Now quote all the things that may contain metacharacters while being
23040 # careful not to overquote the AC_SUBSTed values. We take copies of the
23041 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023042 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 +000023043 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023044 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23045 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23046 deplibs_check_method reload_flag reload_cmds need_locks \
23047 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23048 lt_cv_sys_global_symbol_to_c_name_address \
23049 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23050 old_postinstall_cmds old_postuninstall_cmds \
23051 compiler_F77 \
23052 CC_F77 \
23053 LD_F77 \
23054 lt_prog_compiler_wl_F77 \
23055 lt_prog_compiler_pic_F77 \
23056 lt_prog_compiler_static_F77 \
23057 lt_prog_compiler_no_builtin_flag_F77 \
23058 export_dynamic_flag_spec_F77 \
23059 thread_safe_flag_spec_F77 \
23060 whole_archive_flag_spec_F77 \
23061 enable_shared_with_static_runtimes_F77 \
23062 old_archive_cmds_F77 \
23063 old_archive_from_new_cmds_F77 \
23064 predep_objects_F77 \
23065 postdep_objects_F77 \
23066 predeps_F77 \
23067 postdeps_F77 \
23068 compiler_lib_search_path_F77 \
23069 archive_cmds_F77 \
23070 archive_expsym_cmds_F77 \
23071 postinstall_cmds_F77 \
23072 postuninstall_cmds_F77 \
23073 old_archive_from_expsyms_cmds_F77 \
23074 allow_undefined_flag_F77 \
23075 no_undefined_flag_F77 \
23076 export_symbols_cmds_F77 \
23077 hardcode_libdir_flag_spec_F77 \
23078 hardcode_libdir_flag_spec_ld_F77 \
23079 hardcode_libdir_separator_F77 \
23080 hardcode_automatic_F77 \
23081 module_cmds_F77 \
23082 module_expsym_cmds_F77 \
23083 lt_cv_prog_compiler_c_o_F77 \
23084 exclude_expsyms_F77 \
23085 include_expsyms_F77; do
23086
23087 case $var in
23088 old_archive_cmds_F77 | \
23089 old_archive_from_new_cmds_F77 | \
23090 archive_cmds_F77 | \
23091 archive_expsym_cmds_F77 | \
23092 module_cmds_F77 | \
23093 module_expsym_cmds_F77 | \
23094 old_archive_from_expsyms_cmds_F77 | \
23095 export_symbols_cmds_F77 | \
23096 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23097 postinstall_cmds | postuninstall_cmds | \
23098 old_postinstall_cmds | old_postuninstall_cmds | \
23099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23100 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023101 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 +000023102 ;;
23103 *)
23104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23105 ;;
23106 esac
23107 done
23108
23109 case $lt_echo in
23110 *'\$0 --fallback-echo"')
23111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23112 ;;
23113 esac
23114
23115cfgfile="$ofile"
23116
23117 cat <<__EOF__ >> "$cfgfile"
23118# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23119
23120# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23121
23122# Shell to use when invoking shell scripts.
23123SHELL=$lt_SHELL
23124
23125# Whether or not to build shared libraries.
23126build_libtool_libs=$enable_shared
23127
23128# Whether or not to build static libraries.
23129build_old_libs=$enable_static
23130
23131# Whether or not to add -lc for building shared libraries.
23132build_libtool_need_lc=$archive_cmds_need_lc_F77
23133
23134# Whether or not to disallow shared libs when runtime libs are static
23135allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23136
23137# Whether or not to optimize for fast installation.
23138fast_install=$enable_fast_install
23139
23140# The host system.
23141host_alias=$host_alias
23142host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023143host_os=$host_os
23144
23145# The build system.
23146build_alias=$build_alias
23147build=$build
23148build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023149
23150# An echo program that does not interpret backslashes.
23151echo=$lt_echo
23152
23153# The archiver.
23154AR=$lt_AR
23155AR_FLAGS=$lt_AR_FLAGS
23156
23157# A C compiler.
23158LTCC=$lt_LTCC
23159
Reid Spencera773bd52006-08-04 18:18:08 +000023160# LTCC compiler flags.
23161LTCFLAGS=$lt_LTCFLAGS
23162
John Criswell47fdd832003-07-14 16:52:07 +000023163# A language-specific compiler.
23164CC=$lt_compiler_F77
23165
23166# Is the compiler the GNU C compiler?
23167with_gcc=$GCC_F77
23168
23169# An ERE matcher.
23170EGREP=$lt_EGREP
23171
23172# The linker used to build libraries.
23173LD=$lt_LD_F77
23174
23175# Whether we need hard or soft links.
23176LN_S=$lt_LN_S
23177
23178# A BSD-compatible nm program.
23179NM=$lt_NM
23180
23181# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023182STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023183
23184# Used to examine libraries when file_magic_cmd begins "file"
23185MAGIC_CMD=$MAGIC_CMD
23186
23187# Used on cygwin: DLL creation program.
23188DLLTOOL="$DLLTOOL"
23189
23190# Used on cygwin: object dumper.
23191OBJDUMP="$OBJDUMP"
23192
23193# Used on cygwin: assembler.
23194AS="$AS"
23195
23196# The name of the directory that contains temporary libtool files.
23197objdir=$objdir
23198
23199# How to create reloadable object files.
23200reload_flag=$lt_reload_flag
23201reload_cmds=$lt_reload_cmds
23202
23203# How to pass a linker flag through the compiler.
23204wl=$lt_lt_prog_compiler_wl_F77
23205
23206# Object file suffix (normally "o").
23207objext="$ac_objext"
23208
23209# Old archive suffix (normally "a").
23210libext="$libext"
23211
23212# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023213shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023214
23215# Executable file suffix (normally "").
23216exeext="$exeext"
23217
23218# Additional compiler flags for building library objects.
23219pic_flag=$lt_lt_prog_compiler_pic_F77
23220pic_mode=$pic_mode
23221
23222# What is the maximum length of a command?
23223max_cmd_len=$lt_cv_sys_max_cmd_len
23224
23225# Does compiler simultaneously support -c and -o options?
23226compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23227
Reid Spencera773bd52006-08-04 18:18:08 +000023228# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023229need_locks=$lt_need_locks
23230
23231# Do we need the lib prefix for modules?
23232need_lib_prefix=$need_lib_prefix
23233
23234# Do we need a version for libraries?
23235need_version=$need_version
23236
23237# Whether dlopen is supported.
23238dlopen_support=$enable_dlopen
23239
23240# Whether dlopen of programs is supported.
23241dlopen_self=$enable_dlopen_self
23242
23243# Whether dlopen of statically linked programs is supported.
23244dlopen_self_static=$enable_dlopen_self_static
23245
23246# Compiler flag to prevent dynamic linking.
23247link_static_flag=$lt_lt_prog_compiler_static_F77
23248
23249# Compiler flag to turn off builtin functions.
23250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23251
23252# Compiler flag to allow reflexive dlopens.
23253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23254
23255# Compiler flag to generate shared objects directly from archives.
23256whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23257
23258# Compiler flag to generate thread-safe objects.
23259thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23260
23261# Library versioning type.
23262version_type=$version_type
23263
23264# Format of library name prefix.
23265libname_spec=$lt_libname_spec
23266
23267# List of archive names. First name is the real one, the rest are links.
23268# The last name is the one that the linker finds with -lNAME.
23269library_names_spec=$lt_library_names_spec
23270
23271# The coded name of the library, if different from the real name.
23272soname_spec=$lt_soname_spec
23273
23274# Commands used to build and install an old-style archive.
23275RANLIB=$lt_RANLIB
23276old_archive_cmds=$lt_old_archive_cmds_F77
23277old_postinstall_cmds=$lt_old_postinstall_cmds
23278old_postuninstall_cmds=$lt_old_postuninstall_cmds
23279
23280# Create an old-style archive from a shared archive.
23281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23282
23283# Create a temporary old-style archive to link instead of a shared archive.
23284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23285
23286# Commands used to build and install a shared archive.
23287archive_cmds=$lt_archive_cmds_F77
23288archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23289postinstall_cmds=$lt_postinstall_cmds
23290postuninstall_cmds=$lt_postuninstall_cmds
23291
23292# Commands used to build a loadable module (assumed same as above if empty)
23293module_cmds=$lt_module_cmds_F77
23294module_expsym_cmds=$lt_module_expsym_cmds_F77
23295
23296# Commands to strip libraries.
23297old_striplib=$lt_old_striplib
23298striplib=$lt_striplib
23299
23300# Dependencies to place before the objects being linked to create a
23301# shared library.
23302predep_objects=$lt_predep_objects_F77
23303
23304# Dependencies to place after the objects being linked to create a
23305# shared library.
23306postdep_objects=$lt_postdep_objects_F77
23307
23308# Dependencies to place before the objects being linked to create a
23309# shared library.
23310predeps=$lt_predeps_F77
23311
23312# Dependencies to place after the objects being linked to create a
23313# shared library.
23314postdeps=$lt_postdeps_F77
23315
23316# The library search path used internally by the compiler when linking
23317# a shared library.
23318compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23319
23320# Method to check whether dependent libraries are shared objects.
23321deplibs_check_method=$lt_deplibs_check_method
23322
23323# Command to use when deplibs_check_method == file_magic.
23324file_magic_cmd=$lt_file_magic_cmd
23325
23326# Flag that allows shared libraries with undefined symbols to be built.
23327allow_undefined_flag=$lt_allow_undefined_flag_F77
23328
23329# Flag that forces no undefined symbols.
23330no_undefined_flag=$lt_no_undefined_flag_F77
23331
23332# Commands used to finish a libtool library installation in a directory.
23333finish_cmds=$lt_finish_cmds
23334
23335# Same as above, but a single script fragment to be evaled but not shown.
23336finish_eval=$lt_finish_eval
23337
23338# Take the output of nm and produce a listing of raw symbols and C names.
23339global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23340
23341# Transform the output of nm in a proper C declaration
23342global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23343
23344# Transform the output of nm in a C name address pair
23345global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23346
23347# This is the shared library runtime path variable.
23348runpath_var=$runpath_var
23349
23350# This is the shared library path variable.
23351shlibpath_var=$shlibpath_var
23352
23353# Is shlibpath searched before the hard-coded library search path?
23354shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23355
23356# How to hardcode a shared library path into an executable.
23357hardcode_action=$hardcode_action_F77
23358
23359# Whether we should hardcode library paths into libraries.
23360hardcode_into_libs=$hardcode_into_libs
23361
23362# Flag to hardcode \$libdir into a binary during linking.
23363# This must work even if \$libdir does not exist.
23364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23365
23366# If ld is used when linking, flag to hardcode \$libdir into
23367# a binary during linking. This must work even if \$libdir does
23368# not exist.
23369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23370
23371# Whether we need a single -rpath flag with a separated argument.
23372hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23373
23374# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23375# resulting binary.
23376hardcode_direct=$hardcode_direct_F77
23377
23378# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23379# resulting binary.
23380hardcode_minus_L=$hardcode_minus_L_F77
23381
23382# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23383# the resulting binary.
23384hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23385
23386# Set to yes if building a shared library automatically hardcodes DIR into the library
23387# and all subsequent libraries and executables linked against it.
23388hardcode_automatic=$hardcode_automatic_F77
23389
23390# Variables whose values should be saved in libtool wrapper scripts and
23391# restored at relink time.
23392variables_saved_for_relink="$variables_saved_for_relink"
23393
23394# Whether libtool must link a program against all its dependency libraries.
23395link_all_deplibs=$link_all_deplibs_F77
23396
23397# Compile-time system search path for libraries
23398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23399
23400# Run-time system search path for libraries
23401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23402
23403# Fix the shell variable \$srcfile for the compiler.
23404fix_srcfile_path="$fix_srcfile_path_F77"
23405
23406# Set to yes if exported symbols are required.
23407always_export_symbols=$always_export_symbols_F77
23408
23409# The commands to list exported symbols.
23410export_symbols_cmds=$lt_export_symbols_cmds_F77
23411
23412# The commands to extract the exported symbol list from a shared archive.
23413extract_expsyms_cmds=$lt_extract_expsyms_cmds
23414
23415# Symbols that should not be listed in the preloaded symbols.
23416exclude_expsyms=$lt_exclude_expsyms_F77
23417
23418# Symbols that must always be exported.
23419include_expsyms=$lt_include_expsyms_F77
23420
23421# ### END LIBTOOL TAG CONFIG: $tagname
23422
23423__EOF__
23424
23425
23426else
23427 # If there is no Makefile yet, we rely on a make rule to execute
23428 # `config.status --recheck' to rerun these tests and create the
23429 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23431 if test -f "$ltmain_in"; then
23432 test -f Makefile && make "$ltmain"
23433 fi
John Criswell47fdd832003-07-14 16:52:07 +000023434fi
23435
23436
23437ac_ext=c
23438ac_cpp='$CPP $CPPFLAGS'
23439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23441ac_compiler_gnu=$ac_cv_c_compiler_gnu
23442
23443CC="$lt_save_CC"
23444
23445 else
23446 tagname=""
23447 fi
23448 ;;
23449
23450 GCJ)
23451 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023452 ac_ext=c
23453ac_cpp='$CPP $CPPFLAGS'
23454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23456ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023457
23458
23459# Source file extension for Java test sources.
23460ac_ext=java
23461
23462# Object file extension for compiled Java test sources.
23463objext=o
23464objext_GCJ=$objext
23465
23466# Code to be used in simple compile tests
23467lt_simple_compile_test_code="class foo {}\n"
23468
23469# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023470lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023471
23472# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23473
23474# If no C compiler was specified, use CC.
23475LTCC=${LTCC-"$CC"}
23476
Reid Spencera773bd52006-08-04 18:18:08 +000023477# If no C compiler flags were specified, use CFLAGS.
23478LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23479
John Criswell47fdd832003-07-14 16:52:07 +000023480# Allow CC to be a program name with arguments.
23481compiler=$CC
23482
23483
Reid Spencera773bd52006-08-04 18:18:08 +000023484# save warnings/boilerplate of simple test code
23485ac_outfile=conftest.$ac_objext
23486printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23487eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23488_lt_compiler_boilerplate=`cat conftest.err`
23489$rm conftest*
23490
23491ac_outfile=conftest.$ac_objext
23492printf "$lt_simple_link_test_code" >conftest.$ac_ext
23493eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23494_lt_linker_boilerplate=`cat conftest.err`
23495$rm conftest*
23496
23497
John Criswell47fdd832003-07-14 16:52:07 +000023498# Allow CC to be a program name with arguments.
23499lt_save_CC="$CC"
23500CC=${GCJ-"gcj"}
23501compiler=$CC
23502compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023503for cc_temp in $compiler""; do
23504 case $cc_temp in
23505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23507 \-*) ;;
23508 *) break;;
23509 esac
23510done
23511cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23512
John Criswell47fdd832003-07-14 16:52:07 +000023513
23514# GCJ did not exist at the time GCC didn't implicitly link libc in.
23515archive_cmds_need_lc_GCJ=no
23516
Reid Spencera773bd52006-08-04 18:18:08 +000023517old_archive_cmds_GCJ=$old_archive_cmds
23518
John Criswell47fdd832003-07-14 16:52:07 +000023519
23520lt_prog_compiler_no_builtin_flag_GCJ=
23521
23522if test "$GCC" = yes; then
23523 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23524
Reid Spencer2706f8c2004-09-19 23:53:36 +000023525
Reid Spencera773bd52006-08-04 18:18:08 +000023526{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23527echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023528if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23530else
23531 lt_cv_prog_compiler_rtti_exceptions=no
23532 ac_outfile=conftest.$ac_objext
23533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23534 lt_compiler_flag="-fno-rtti -fno-exceptions"
23535 # Insert the option either (1) after the last *FLAGS variable, or
23536 # (2) before a word containing "conftest.", or (3) at the end.
23537 # Note that $ac_compile itself does not contain backslashes and begins
23538 # with a dollar sign (not a hyphen), so the echo should work correctly.
23539 # The option is referenced via a variable to avoid confusing sed.
23540 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23543 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000023544 (eval echo "\"\$as_me:23544: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023545 (eval "$lt_compile" 2>conftest.err)
23546 ac_status=$?
23547 cat conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000023548 echo "$as_me:23548: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023549 if (exit $ac_status) && test -s "$ac_outfile"; then
23550 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023551 # So say no if there are warnings other than the usual output.
23552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023555 lt_cv_prog_compiler_rtti_exceptions=yes
23556 fi
23557 fi
23558 $rm conftest*
23559
23560fi
Reid Spencera773bd52006-08-04 18:18:08 +000023561{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23562echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023563
23564if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23565 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23566else
23567 :
23568fi
23569
23570fi
23571
23572lt_prog_compiler_wl_GCJ=
23573lt_prog_compiler_pic_GCJ=
23574lt_prog_compiler_static_GCJ=
23575
Reid Spencera773bd52006-08-04 18:18:08 +000023576{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23577echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023578
23579 if test "$GCC" = yes; then
23580 lt_prog_compiler_wl_GCJ='-Wl,'
23581 lt_prog_compiler_static_GCJ='-static'
23582
23583 case $host_os in
23584 aix*)
23585 # All AIX code is PIC.
23586 if test "$host_cpu" = ia64; then
23587 # AIX 5 now supports IA64 processor
23588 lt_prog_compiler_static_GCJ='-Bstatic'
23589 fi
23590 ;;
23591
23592 amigaos*)
23593 # FIXME: we need at least 68020 code to build shared libraries, but
23594 # adding the `-m68020' flag to GCC prevents building anything better,
23595 # like `-m68040'.
23596 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23597 ;;
23598
23599 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23600 # PIC is the default for these OSes.
23601 ;;
23602
23603 mingw* | pw32* | os2*)
23604 # This hack is so that the source file can tell whether it is being
23605 # built for inclusion in a dll (and should export symbols for example).
23606 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23607 ;;
23608
23609 darwin* | rhapsody*)
23610 # PIC is the default on this platform
23611 # Common symbols not allowed in MH_DYLIB files
23612 lt_prog_compiler_pic_GCJ='-fno-common'
23613 ;;
23614
Reid Spencera773bd52006-08-04 18:18:08 +000023615 interix3*)
23616 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23617 # Instead, we relocate shared libraries at runtime.
23618 ;;
23619
John Criswell47fdd832003-07-14 16:52:07 +000023620 msdosdjgpp*)
23621 # Just because we use GCC doesn't mean we suddenly get shared libraries
23622 # on systems that don't support them.
23623 lt_prog_compiler_can_build_shared_GCJ=no
23624 enable_shared=no
23625 ;;
23626
23627 sysv4*MP*)
23628 if test -d /usr/nec; then
23629 lt_prog_compiler_pic_GCJ=-Kconform_pic
23630 fi
23631 ;;
23632
23633 hpux*)
23634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23635 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023636 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023637 hppa*64*|ia64*)
23638 # +Z the default
23639 ;;
23640 *)
23641 lt_prog_compiler_pic_GCJ='-fPIC'
23642 ;;
23643 esac
23644 ;;
23645
23646 *)
23647 lt_prog_compiler_pic_GCJ='-fPIC'
23648 ;;
23649 esac
23650 else
23651 # PORTME Check for flag to pass linker flags through the system compiler.
23652 case $host_os in
23653 aix*)
23654 lt_prog_compiler_wl_GCJ='-Wl,'
23655 if test "$host_cpu" = ia64; then
23656 # AIX 5 now supports IA64 processor
23657 lt_prog_compiler_static_GCJ='-Bstatic'
23658 else
23659 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23660 fi
23661 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023662 darwin*)
23663 # PIC is the default on this platform
23664 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023665 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023666 xlc*)
23667 lt_prog_compiler_pic_GCJ='-qnocommon'
23668 lt_prog_compiler_wl_GCJ='-Wl,'
23669 ;;
23670 esac
23671 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023672
23673 mingw* | pw32* | os2*)
23674 # This hack is so that the source file can tell whether it is being
23675 # built for inclusion in a dll (and should export symbols for example).
23676 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23677 ;;
23678
23679 hpux9* | hpux10* | hpux11*)
23680 lt_prog_compiler_wl_GCJ='-Wl,'
23681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23682 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023683 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023684 hppa*64*|ia64*)
23685 # +Z the default
23686 ;;
23687 *)
23688 lt_prog_compiler_pic_GCJ='+Z'
23689 ;;
23690 esac
23691 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23692 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23693 ;;
23694
23695 irix5* | irix6* | nonstopux*)
23696 lt_prog_compiler_wl_GCJ='-Wl,'
23697 # PIC (with -KPIC) is the default.
23698 lt_prog_compiler_static_GCJ='-non_shared'
23699 ;;
23700
23701 newsos6)
23702 lt_prog_compiler_pic_GCJ='-KPIC'
23703 lt_prog_compiler_static_GCJ='-Bstatic'
23704 ;;
23705
23706 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023707 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023708 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023709 lt_prog_compiler_wl_GCJ='-Wl,'
23710 lt_prog_compiler_pic_GCJ='-KPIC'
23711 lt_prog_compiler_static_GCJ='-static'
23712 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023713 pgcc* | pgf77* | pgf90* | pgf95*)
23714 # Portland Group compilers (*not* the Pentium gcc compiler,
23715 # which looks to be a dead project)
23716 lt_prog_compiler_wl_GCJ='-Wl,'
23717 lt_prog_compiler_pic_GCJ='-fpic'
23718 lt_prog_compiler_static_GCJ='-Bstatic'
23719 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023720 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023721 lt_prog_compiler_wl_GCJ='-Wl,'
23722 # All Alpha code is PIC.
23723 lt_prog_compiler_static_GCJ='-non_shared'
23724 ;;
23725 esac
23726 ;;
23727
23728 osf3* | osf4* | osf5*)
23729 lt_prog_compiler_wl_GCJ='-Wl,'
23730 # All OSF/1 code is PIC.
23731 lt_prog_compiler_static_GCJ='-non_shared'
23732 ;;
23733
John Criswell47fdd832003-07-14 16:52:07 +000023734 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023735 lt_prog_compiler_pic_GCJ='-KPIC'
23736 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023737 case $cc_basename in
23738 f77* | f90* | f95*)
23739 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23740 *)
23741 lt_prog_compiler_wl_GCJ='-Wl,';;
23742 esac
John Criswell47fdd832003-07-14 16:52:07 +000023743 ;;
23744
23745 sunos4*)
23746 lt_prog_compiler_wl_GCJ='-Qoption ld '
23747 lt_prog_compiler_pic_GCJ='-PIC'
23748 lt_prog_compiler_static_GCJ='-Bstatic'
23749 ;;
23750
Reid Spencera773bd52006-08-04 18:18:08 +000023751 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023752 lt_prog_compiler_wl_GCJ='-Wl,'
23753 lt_prog_compiler_pic_GCJ='-KPIC'
23754 lt_prog_compiler_static_GCJ='-Bstatic'
23755 ;;
23756
23757 sysv4*MP*)
23758 if test -d /usr/nec ;then
23759 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23760 lt_prog_compiler_static_GCJ='-Bstatic'
23761 fi
23762 ;;
23763
Reid Spencera773bd52006-08-04 18:18:08 +000023764 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23765 lt_prog_compiler_wl_GCJ='-Wl,'
23766 lt_prog_compiler_pic_GCJ='-KPIC'
23767 lt_prog_compiler_static_GCJ='-Bstatic'
23768 ;;
23769
23770 unicos*)
23771 lt_prog_compiler_wl_GCJ='-Wl,'
23772 lt_prog_compiler_can_build_shared_GCJ=no
23773 ;;
23774
John Criswell47fdd832003-07-14 16:52:07 +000023775 uts4*)
23776 lt_prog_compiler_pic_GCJ='-pic'
23777 lt_prog_compiler_static_GCJ='-Bstatic'
23778 ;;
23779
23780 *)
23781 lt_prog_compiler_can_build_shared_GCJ=no
23782 ;;
23783 esac
23784 fi
23785
Reid Spencera773bd52006-08-04 18:18:08 +000023786{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23787echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023788
23789#
23790# Check to make sure the PIC flag actually works.
23791#
23792if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023793
Reid Spencera773bd52006-08-04 18:18:08 +000023794{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23795echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023796if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23798else
23799 lt_prog_compiler_pic_works_GCJ=no
23800 ac_outfile=conftest.$ac_objext
23801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23802 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23803 # Insert the option either (1) after the last *FLAGS variable, or
23804 # (2) before a word containing "conftest.", or (3) at the end.
23805 # Note that $ac_compile itself does not contain backslashes and begins
23806 # with a dollar sign (not a hyphen), so the echo should work correctly.
23807 # The option is referenced via a variable to avoid confusing sed.
23808 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23811 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000023812 (eval echo "\"\$as_me:23812: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023813 (eval "$lt_compile" 2>conftest.err)
23814 ac_status=$?
23815 cat conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000023816 echo "$as_me:23816: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023817 if (exit $ac_status) && test -s "$ac_outfile"; then
23818 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023819 # So say no if there are warnings other than the usual output.
23820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023823 lt_prog_compiler_pic_works_GCJ=yes
23824 fi
23825 fi
23826 $rm conftest*
23827
23828fi
Reid Spencera773bd52006-08-04 18:18:08 +000023829{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23830echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023831
23832if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23833 case $lt_prog_compiler_pic_GCJ in
23834 "" | " "*) ;;
23835 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23836 esac
23837else
23838 lt_prog_compiler_pic_GCJ=
23839 lt_prog_compiler_can_build_shared_GCJ=no
23840fi
23841
23842fi
Reid Spencera773bd52006-08-04 18:18:08 +000023843case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023844 # For platforms which do not support PIC, -DPIC is meaningless:
23845 *djgpp*)
23846 lt_prog_compiler_pic_GCJ=
23847 ;;
23848 *)
23849 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23850 ;;
23851esac
23852
Reid Spencera773bd52006-08-04 18:18:08 +000023853#
23854# Check to make sure the static flag actually works.
23855#
23856wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23857{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23858echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23859if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23861else
23862 lt_prog_compiler_static_works_GCJ=no
23863 save_LDFLAGS="$LDFLAGS"
23864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23865 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23867 # The linker can only warn and ignore the option if not recognized
23868 # So say no if there are warnings
23869 if test -s conftest.err; then
23870 # Append any errors to the config.log.
23871 cat conftest.err 1>&5
23872 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23874 if diff conftest.exp conftest.er2 >/dev/null; then
23875 lt_prog_compiler_static_works_GCJ=yes
23876 fi
23877 else
23878 lt_prog_compiler_static_works_GCJ=yes
23879 fi
23880 fi
23881 $rm conftest*
23882 LDFLAGS="$save_LDFLAGS"
23883
23884fi
23885{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23886echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23887
23888if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23889 :
23890else
23891 lt_prog_compiler_static_GCJ=
23892fi
23893
23894
23895{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23896echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023897if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23899else
23900 lt_cv_prog_compiler_c_o_GCJ=no
23901 $rm -r conftest 2>/dev/null
23902 mkdir conftest
23903 cd conftest
23904 mkdir out
23905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23906
John Criswell47fdd832003-07-14 16:52:07 +000023907 lt_compiler_flag="-o out/conftest2.$ac_objext"
23908 # Insert the option either (1) after the last *FLAGS variable, or
23909 # (2) before a word containing "conftest.", or (3) at the end.
23910 # Note that $ac_compile itself does not contain backslashes and begins
23911 # with a dollar sign (not a hyphen), so the echo should work correctly.
23912 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23915 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerdde567f2007-08-29 16:38:16 +000023916 (eval echo "\"\$as_me:23916: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023917 (eval "$lt_compile" 2>out/conftest.err)
23918 ac_status=$?
23919 cat out/conftest.err >&5
Tanya Lattnerdde567f2007-08-29 16:38:16 +000023920 echo "$as_me:23920: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23922 then
23923 # The compiler can only warn and ignore the option if not recognized
23924 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023928 lt_cv_prog_compiler_c_o_GCJ=yes
23929 fi
23930 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023931 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023932 $rm conftest*
23933 # SGI C++ compiler will create directory out/ii_files/ for
23934 # template instantiation
23935 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23936 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023937 cd ..
23938 rmdir conftest
23939 $rm conftest*
23940
23941fi
Reid Spencera773bd52006-08-04 18:18:08 +000023942{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23943echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023944
23945
23946hard_links="nottested"
23947if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23948 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023949 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23950echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023951 hard_links=yes
23952 $rm conftest*
23953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23954 touch conftest.a
23955 ln conftest.a conftest.b 2>&5 || hard_links=no
23956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023957 { echo "$as_me:$LINENO: result: $hard_links" >&5
23958echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023959 if test "$hard_links" = no; then
23960 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23961echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23962 need_locks=warn
23963 fi
23964else
23965 need_locks=no
23966fi
23967
Reid Spencera773bd52006-08-04 18:18:08 +000023968{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23969echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023970
23971 runpath_var=
23972 allow_undefined_flag_GCJ=
23973 enable_shared_with_static_runtimes_GCJ=no
23974 archive_cmds_GCJ=
23975 archive_expsym_cmds_GCJ=
23976 old_archive_From_new_cmds_GCJ=
23977 old_archive_from_expsyms_cmds_GCJ=
23978 export_dynamic_flag_spec_GCJ=
23979 whole_archive_flag_spec_GCJ=
23980 thread_safe_flag_spec_GCJ=
23981 hardcode_libdir_flag_spec_GCJ=
23982 hardcode_libdir_flag_spec_ld_GCJ=
23983 hardcode_libdir_separator_GCJ=
23984 hardcode_direct_GCJ=no
23985 hardcode_minus_L_GCJ=no
23986 hardcode_shlibpath_var_GCJ=unsupported
23987 link_all_deplibs_GCJ=unknown
23988 hardcode_automatic_GCJ=no
23989 module_cmds_GCJ=
23990 module_expsym_cmds_GCJ=
23991 always_export_symbols_GCJ=no
23992 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23993 # include_expsyms should be a list of space-separated symbols to be *always*
23994 # included in the symbol list
23995 include_expsyms_GCJ=
23996 # exclude_expsyms can be an extended regexp of symbols to exclude
23997 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23998 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23999 # as well as any symbol that contains `d'.
24000 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24001 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24002 # platforms (ab)use it in PIC code, but their linkers get confused if
24003 # the symbol is explicitly referenced. Since portable code cannot
24004 # rely on this symbol name, it's probably fine to never include it in
24005 # preloaded symbol tables.
24006 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024007 # Just being paranoid about ensuring that cc_basename is set.
24008 for cc_temp in $compiler""; do
24009 case $cc_temp in
24010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24012 \-*) ;;
24013 *) break;;
24014 esac
24015done
24016cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024017
24018 case $host_os in
24019 cygwin* | mingw* | pw32*)
24020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24021 # When not using gcc, we currently assume that we are using
24022 # Microsoft Visual C++.
24023 if test "$GCC" != yes; then
24024 with_gnu_ld=no
24025 fi
24026 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024027 interix*)
24028 # we just hope/assume this is gcc and not c89 (= MSVC++)
24029 with_gnu_ld=yes
24030 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024031 openbsd*)
24032 with_gnu_ld=no
24033 ;;
24034 esac
24035
24036 ld_shlibs_GCJ=yes
24037 if test "$with_gnu_ld" = yes; then
24038 # If archive_cmds runs LD, not CC, wlarc should be empty
24039 wlarc='${wl}'
24040
Reid Spencera773bd52006-08-04 18:18:08 +000024041 # Set some defaults for GNU ld with shared library support. These
24042 # are reset later if shared libraries are not supported. Putting them
24043 # here allows them to be overridden if necessary.
24044 runpath_var=LD_RUN_PATH
24045 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24046 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24047 # ancient GNU ld didn't support --whole-archive et. al.
24048 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24049 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24050 else
24051 whole_archive_flag_spec_GCJ=
24052 fi
24053 supports_anon_versioning=no
24054 case `$LD -v 2>/dev/null` in
24055 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24058 *\ 2.11.*) ;; # other 2.11 versions
24059 *) supports_anon_versioning=yes ;;
24060 esac
24061
John Criswell47fdd832003-07-14 16:52:07 +000024062 # See if GNU ld supports shared libraries.
24063 case $host_os in
24064 aix3* | aix4* | aix5*)
24065 # On AIX/PPC, the GNU linker is very broken
24066 if test "$host_cpu" != ia64; then
24067 ld_shlibs_GCJ=no
24068 cat <<EOF 1>&2
24069
24070*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24071*** to be unable to reliably create shared libraries on AIX.
24072*** Therefore, libtool is disabling shared libraries support. If you
24073*** really care for shared libraries, you may want to modify your PATH
24074*** so that a non-GNU linker is found, and then restart.
24075
24076EOF
24077 fi
24078 ;;
24079
24080 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024081 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 +000024082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24083 hardcode_minus_L_GCJ=yes
24084
24085 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24086 # that the semantics of dynamic libraries on AmigaOS, at least up
24087 # to version 4, is to share data among multiple programs linked
24088 # with the same dynamic library. Since this doesn't match the
24089 # behavior of shared libraries on other platforms, we can't use
24090 # them.
24091 ld_shlibs_GCJ=no
24092 ;;
24093
24094 beos*)
24095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24096 allow_undefined_flag_GCJ=unsupported
24097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24098 # support --undefined. This deserves some investigation. FIXME
24099 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24100 else
24101 ld_shlibs_GCJ=no
24102 fi
24103 ;;
24104
24105 cygwin* | mingw* | pw32*)
24106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24107 # as there is no search path for DLLs.
24108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24109 allow_undefined_flag_GCJ=unsupported
24110 always_export_symbols_GCJ=no
24111 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024112 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 +000024113
24114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024115 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 +000024116 # If the export-symbols file already is a .def file (1st line
24117 # is EXPORTS), use it as is; otherwise, prepend...
24118 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24119 cp $export_symbols $output_objdir/$soname.def;
24120 else
24121 echo EXPORTS > $output_objdir/$soname.def;
24122 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024123 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024124 $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 +000024125 else
Reid Spencera773bd52006-08-04 18:18:08 +000024126 ld_shlibs_GCJ=no
24127 fi
24128 ;;
24129
24130 interix3*)
24131 hardcode_direct_GCJ=no
24132 hardcode_shlibpath_var_GCJ=no
24133 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24134 export_dynamic_flag_spec_GCJ='${wl}-E'
24135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24136 # Instead, shared libraries are loaded at an image base (0x10000000 by
24137 # default) and relocated if they conflict, which is a slow very memory
24138 # consuming and fragmenting process. To avoid this, we pick a random,
24139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24141 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'
24142 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'
24143 ;;
24144
24145 linux*)
24146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24147 tmp_addflag=
24148 case $cc_basename,$host_cpu in
24149 pgcc*) # Portland Group C compiler
24150 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'
24151 tmp_addflag=' $pic_flag'
24152 ;;
24153 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24154 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'
24155 tmp_addflag=' $pic_flag -Mnomain' ;;
24156 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24157 tmp_addflag=' -i_dynamic' ;;
24158 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24159 tmp_addflag=' -i_dynamic -nofor_main' ;;
24160 ifc* | ifort*) # Intel Fortran compiler
24161 tmp_addflag=' -nofor_main' ;;
24162 esac
24163 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24164
24165 if test $supports_anon_versioning = yes; then
24166 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24168 $echo "local: *; };" >> $output_objdir/$libname.ver~
24169 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24170 fi
24171 else
24172 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024173 fi
24174 ;;
24175
24176 netbsd*)
24177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24178 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24179 wlarc=
24180 else
24181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24182 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24183 fi
24184 ;;
24185
Reid Spencera773bd52006-08-04 18:18:08 +000024186 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024187 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24188 ld_shlibs_GCJ=no
24189 cat <<EOF 1>&2
24190
24191*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24192*** create shared libraries on Solaris systems. Therefore, libtool
24193*** is disabling shared libraries support. We urge you to upgrade GNU
24194*** binutils to release 2.9.1 or newer. Another option is to modify
24195*** your PATH or compiler configuration so that the native linker is
24196*** used, and then restart.
24197
24198EOF
24199 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24200 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24201 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24202 else
24203 ld_shlibs_GCJ=no
24204 fi
24205 ;;
24206
Reid Spencera773bd52006-08-04 18:18:08 +000024207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24208 case `$LD -v 2>&1` in
24209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24210 ld_shlibs_GCJ=no
24211 cat <<_LT_EOF 1>&2
24212
24213*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24214*** reliably create shared libraries on SCO systems. Therefore, libtool
24215*** is disabling shared libraries support. We urge you to upgrade GNU
24216*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24217*** your PATH or compiler configuration so that the native linker is
24218*** used, and then restart.
24219
24220_LT_EOF
24221 ;;
24222 *)
24223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24224 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24225 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24226 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24227 else
24228 ld_shlibs_GCJ=no
24229 fi
24230 ;;
24231 esac
24232 ;;
24233
John Criswell47fdd832003-07-14 16:52:07 +000024234 sunos4*)
24235 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24236 wlarc=
24237 hardcode_direct_GCJ=yes
24238 hardcode_shlibpath_var_GCJ=no
24239 ;;
24240
24241 *)
24242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24243 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24244 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24245 else
24246 ld_shlibs_GCJ=no
24247 fi
24248 ;;
24249 esac
24250
Reid Spencera773bd52006-08-04 18:18:08 +000024251 if test "$ld_shlibs_GCJ" = no; then
24252 runpath_var=
24253 hardcode_libdir_flag_spec_GCJ=
24254 export_dynamic_flag_spec_GCJ=
24255 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024256 fi
24257 else
24258 # PORTME fill in a description of your system's linker (not GNU ld)
24259 case $host_os in
24260 aix3*)
24261 allow_undefined_flag_GCJ=unsupported
24262 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024263 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 +000024264 # Note: this linker hardcodes the directories in LIBPATH if there
24265 # are no directories specified by -L.
24266 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024267 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024268 # Neither direct hardcoding nor static linking is supported with a
24269 # broken collect2.
24270 hardcode_direct_GCJ=unsupported
24271 fi
24272 ;;
24273
24274 aix4* | aix5*)
24275 if test "$host_cpu" = ia64; then
24276 # On IA64, the linker does run time linking by default, so we don't
24277 # have to do anything special.
24278 aix_use_runtimelinking=no
24279 exp_sym_flag='-Bexport'
24280 no_entry_flag=""
24281 else
24282 # If we're using GNU nm, then we don't want the "-C" option.
24283 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24284 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24285 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'
24286 else
24287 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'
24288 fi
24289 aix_use_runtimelinking=no
24290
24291 # Test if we are trying to use run time linking or normal
24292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24293 # need to do runtime linking.
24294 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24295 for ld_flag in $LDFLAGS; do
24296 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24297 aix_use_runtimelinking=yes
24298 break
24299 fi
24300 done
Reid Spencera773bd52006-08-04 18:18:08 +000024301 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024302 esac
24303
24304 exp_sym_flag='-bexport'
24305 no_entry_flag='-bnoentry'
24306 fi
24307
24308 # When large executables or shared objects are built, AIX ld can
24309 # have problems creating the table of contents. If linking a library
24310 # or program results in "error TOC overflow" add -mminimal-toc to
24311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24313
24314 archive_cmds_GCJ=''
24315 hardcode_direct_GCJ=yes
24316 hardcode_libdir_separator_GCJ=':'
24317 link_all_deplibs_GCJ=yes
24318
24319 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024320 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024321 # We only want to do this on AIX 4.2 and lower, the check
24322 # below for broken collect2 doesn't work under 4.3+
24323 collect2name=`${CC} -print-prog-name=collect2`
24324 if test -f "$collect2name" && \
24325 strings "$collect2name" | grep resolve_lib_name >/dev/null
24326 then
24327 # We have reworked collect2
24328 hardcode_direct_GCJ=yes
24329 else
24330 # We have old collect2
24331 hardcode_direct_GCJ=unsupported
24332 # It fails to find uninstalled libraries when the uninstalled
24333 # path is not listed in the libpath. Setting hardcode_minus_L
24334 # to unsupported forces relinking
24335 hardcode_minus_L_GCJ=yes
24336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24337 hardcode_libdir_separator_GCJ=
24338 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024339 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024340 esac
24341 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024342 if test "$aix_use_runtimelinking" = yes; then
24343 shared_flag="$shared_flag "'${wl}-G'
24344 fi
John Criswell47fdd832003-07-14 16:52:07 +000024345 else
24346 # not using gcc
24347 if test "$host_cpu" = ia64; then
24348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24349 # chokes on -Wl,-G. The following line is correct:
24350 shared_flag='-G'
24351 else
Reid Spencera773bd52006-08-04 18:18:08 +000024352 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024353 shared_flag='${wl}-G'
24354 else
24355 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024356 fi
John Criswell47fdd832003-07-14 16:52:07 +000024357 fi
24358 fi
24359
24360 # It seems that -bexpall does not export symbols beginning with
24361 # underscore (_), so it is better to generate a list of symbols to export.
24362 always_export_symbols_GCJ=yes
24363 if test "$aix_use_runtimelinking" = yes; then
24364 # Warning - without using the other runtime loading flags (-brtl),
24365 # -berok will link without error, but may produce a broken library.
24366 allow_undefined_flag_GCJ='-berok'
24367 # Determine the default libpath from the value encoded in an empty executable.
24368 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024369/* confdefs.h. */
24370_ACEOF
24371cat confdefs.h >>conftest.$ac_ext
24372cat >>conftest.$ac_ext <<_ACEOF
24373/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024374
John Criswell47fdd832003-07-14 16:52:07 +000024375int
24376main ()
24377{
24378
24379 ;
24380 return 0;
24381}
24382_ACEOF
24383rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024384if { (ac_try="$ac_link"
24385case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24388esac
24389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024392 grep -v '^ *+' conftest.er1 >conftest.err
24393 rm -f conftest.er1
24394 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24398 { (case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24401esac
24402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } &&
24407 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024408 { (case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24411esac
24412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024414 ac_status=$?
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24417
24418aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24419}'`
24420# Check for a 64-bit object if we didn't find anything.
24421if 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; }
24422}'`; fi
24423else
24424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024425sed 's/^/| /' conftest.$ac_ext >&5
24426
Reid Spencera773bd52006-08-04 18:18:08 +000024427
John Criswell47fdd832003-07-14 16:52:07 +000024428fi
Reid Spencera773bd52006-08-04 18:18:08 +000024429
24430rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024431 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024432if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24433
24434 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024435 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 +000024436 else
24437 if test "$host_cpu" = ia64; then
24438 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24439 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024440 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 +000024441 else
24442 # Determine the default libpath from the value encoded in an empty executable.
24443 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024444/* confdefs.h. */
24445_ACEOF
24446cat confdefs.h >>conftest.$ac_ext
24447cat >>conftest.$ac_ext <<_ACEOF
24448/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024449
John Criswell47fdd832003-07-14 16:52:07 +000024450int
24451main ()
24452{
24453
24454 ;
24455 return 0;
24456}
24457_ACEOF
24458rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024459if { (ac_try="$ac_link"
24460case "(($ac_try" in
24461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24462 *) ac_try_echo=$ac_try;;
24463esac
24464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24465 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024467 grep -v '^ *+' conftest.er1 >conftest.err
24468 rm -f conftest.er1
24469 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24473 { (case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24476esac
24477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024479 ac_status=$?
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; } &&
24482 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024483 { (case "(($ac_try" in
24484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485 *) ac_try_echo=$ac_try;;
24486esac
24487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024489 ac_status=$?
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; }; then
24492
24493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24494}'`
24495# Check for a 64-bit object if we didn't find anything.
24496if 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; }
24497}'`; fi
24498else
24499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024500sed 's/^/| /' conftest.$ac_ext >&5
24501
Reid Spencera773bd52006-08-04 18:18:08 +000024502
John Criswell47fdd832003-07-14 16:52:07 +000024503fi
Reid Spencera773bd52006-08-04 18:18:08 +000024504
24505rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024506 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024507if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24508
24509 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24510 # Warning - without using the other run time loading flags,
24511 # -berok will link without error, but may produce a broken library.
24512 no_undefined_flag_GCJ=' ${wl}-bernotok'
24513 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024514 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024515 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024516 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024517 # This is similar to how AIX traditionally builds its shared libraries.
24518 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 +000024519 fi
24520 fi
24521 ;;
24522
24523 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024524 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 +000024525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24526 hardcode_minus_L_GCJ=yes
24527 # see comment about different semantics on the GNU ld section
24528 ld_shlibs_GCJ=no
24529 ;;
24530
Reid Spencer2706f8c2004-09-19 23:53:36 +000024531 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024532 export_dynamic_flag_spec_GCJ=-rdynamic
24533 ;;
24534
24535 cygwin* | mingw* | pw32*)
24536 # When not using gcc, we currently assume that we are using
24537 # Microsoft Visual C++.
24538 # hardcode_libdir_flag_spec is actually meaningless, as there is
24539 # no search path for DLLs.
24540 hardcode_libdir_flag_spec_GCJ=' '
24541 allow_undefined_flag_GCJ=unsupported
24542 # Tell ltmain to make .lib files, not .a files.
24543 libext=lib
24544 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024545 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024546 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024547 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 +000024548 # The linker will automatically build a .lib file if we build a DLL.
24549 old_archive_From_new_cmds_GCJ='true'
24550 # FIXME: Should let the user specify the lib program.
24551 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024552 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024553 enable_shared_with_static_runtimes_GCJ=yes
24554 ;;
24555
24556 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024557 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024558 rhapsody* | darwin1.[012])
24559 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24560 ;;
24561 *) # Darwin 1.3 on
24562 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24563 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24564 else
24565 case ${MACOSX_DEPLOYMENT_TARGET} in
24566 10.[012])
24567 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24568 ;;
24569 10.*)
24570 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24571 ;;
24572 esac
24573 fi
24574 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024575 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024576 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024577 hardcode_direct_GCJ=no
24578 hardcode_automatic_GCJ=yes
24579 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024580 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024581 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024582 if test "$GCC" = yes ; then
24583 output_verbose_link_cmd='echo'
24584 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24585 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024586 # 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 +000024587 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}'
24588 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 +000024589 else
Reid Spencera773bd52006-08-04 18:18:08 +000024590 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024591 xlc*)
24592 output_verbose_link_cmd='echo'
24593 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24594 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024595 # 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 +000024596 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}'
24597 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 +000024598 ;;
24599 *)
24600 ld_shlibs_GCJ=no
24601 ;;
24602 esac
John Criswell47fdd832003-07-14 16:52:07 +000024603 fi
24604 ;;
24605
24606 dgux*)
24607 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24609 hardcode_shlibpath_var_GCJ=no
24610 ;;
24611
24612 freebsd1*)
24613 ld_shlibs_GCJ=no
24614 ;;
24615
24616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24617 # support. Future versions do this automatically, but an explicit c++rt0.o
24618 # does not break anything, and helps significantly (at the cost of a little
24619 # extra space).
24620 freebsd2.2*)
24621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24622 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24623 hardcode_direct_GCJ=yes
24624 hardcode_shlibpath_var_GCJ=no
24625 ;;
24626
24627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24628 freebsd2*)
24629 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24630 hardcode_direct_GCJ=yes
24631 hardcode_minus_L_GCJ=yes
24632 hardcode_shlibpath_var_GCJ=no
24633 ;;
24634
24635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024636 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024637 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24639 hardcode_direct_GCJ=yes
24640 hardcode_shlibpath_var_GCJ=no
24641 ;;
24642
24643 hpux9*)
24644 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024645 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 +000024646 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024647 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 +000024648 fi
24649 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24650 hardcode_libdir_separator_GCJ=:
24651 hardcode_direct_GCJ=yes
24652
24653 # hardcode_minus_L: Not really in the search PATH,
24654 # but as the default location of the library.
24655 hardcode_minus_L_GCJ=yes
24656 export_dynamic_flag_spec_GCJ='${wl}-E'
24657 ;;
24658
Reid Spencera773bd52006-08-04 18:18:08 +000024659 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024661 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24662 else
24663 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24664 fi
24665 if test "$with_gnu_ld" = no; then
24666 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24667 hardcode_libdir_separator_GCJ=:
24668
24669 hardcode_direct_GCJ=yes
24670 export_dynamic_flag_spec_GCJ='${wl}-E'
24671
24672 # hardcode_minus_L: Not really in the search PATH,
24673 # but as the default location of the library.
24674 hardcode_minus_L_GCJ=yes
24675 fi
24676 ;;
24677
24678 hpux11*)
24679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24680 case $host_cpu in
24681 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024682 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024684 ia64*)
24685 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24686 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024687 *)
24688 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24689 ;;
24690 esac
24691 else
Reid Spencera773bd52006-08-04 18:18:08 +000024692 case $host_cpu in
24693 hppa*64*)
24694 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24695 ;;
24696 ia64*)
24697 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024698 ;;
24699 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024700 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 +000024701 ;;
24702 esac
24703 fi
24704 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024705 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24706 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024707
Reid Spencera773bd52006-08-04 18:18:08 +000024708 case $host_cpu in
24709 hppa*64*|ia64*)
24710 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24711 hardcode_direct_GCJ=no
24712 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024713 ;;
24714 *)
John Criswell47fdd832003-07-14 16:52:07 +000024715 hardcode_direct_GCJ=yes
24716 export_dynamic_flag_spec_GCJ='${wl}-E'
24717
24718 # hardcode_minus_L: Not really in the search PATH,
24719 # but as the default location of the library.
24720 hardcode_minus_L_GCJ=yes
24721 ;;
24722 esac
24723 fi
24724 ;;
24725
24726 irix5* | irix6* | nonstopux*)
24727 if test "$GCC" = yes; then
24728 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'
24729 else
24730 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'
24731 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24732 fi
24733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24734 hardcode_libdir_separator_GCJ=:
24735 link_all_deplibs_GCJ=yes
24736 ;;
24737
24738 netbsd*)
24739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24740 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24741 else
24742 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24743 fi
24744 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24745 hardcode_direct_GCJ=yes
24746 hardcode_shlibpath_var_GCJ=no
24747 ;;
24748
24749 newsos6)
24750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24751 hardcode_direct_GCJ=yes
24752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24753 hardcode_libdir_separator_GCJ=:
24754 hardcode_shlibpath_var_GCJ=no
24755 ;;
24756
24757 openbsd*)
24758 hardcode_direct_GCJ=yes
24759 hardcode_shlibpath_var_GCJ=no
24760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24761 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024762 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 +000024763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24764 export_dynamic_flag_spec_GCJ='${wl}-E'
24765 else
24766 case $host_os in
24767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24768 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24769 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24770 ;;
24771 *)
24772 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24773 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24774 ;;
24775 esac
24776 fi
24777 ;;
24778
24779 os2*)
24780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24781 hardcode_minus_L_GCJ=yes
24782 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024783 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 +000024784 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24785 ;;
24786
24787 osf3*)
24788 if test "$GCC" = yes; then
24789 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24790 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'
24791 else
24792 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24793 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'
24794 fi
24795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24796 hardcode_libdir_separator_GCJ=:
24797 ;;
24798
24799 osf4* | osf5*) # as osf3* with the addition of -msym flag
24800 if test "$GCC" = yes; then
24801 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24802 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'
24803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24804 else
24805 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24806 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 +000024807 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 +000024808 $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 +000024809
John Criswell47fdd832003-07-14 16:52:07 +000024810 # Both c and cxx compiler support -rpath directly
24811 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24812 fi
24813 hardcode_libdir_separator_GCJ=:
24814 ;;
24815
John Criswell47fdd832003-07-14 16:52:07 +000024816 solaris*)
24817 no_undefined_flag_GCJ=' -z text'
24818 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024819 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024820 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024821 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24822 $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 +000024823 else
Reid Spencera773bd52006-08-04 18:18:08 +000024824 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024825 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024826 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24827 $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 +000024828 fi
24829 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24830 hardcode_shlibpath_var_GCJ=no
24831 case $host_os in
24832 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024833 *)
24834 # The compiler driver will combine linker options so we
24835 # cannot just pass the convience library names through
24836 # without $wl, iff we do not link with $LD.
24837 # Luckily, gcc supports the same syntax we need for Sun Studio.
24838 # Supported since Solaris 2.6 (maybe 2.5.1?)
24839 case $wlarc in
24840 '')
24841 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24842 *)
24843 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' ;;
24844 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024845 esac
24846 link_all_deplibs_GCJ=yes
24847 ;;
24848
24849 sunos4*)
24850 if test "x$host_vendor" = xsequent; then
24851 # Use $CC to link under sequent, because it throws in some extra .o
24852 # files that make .init and .fini sections work.
24853 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24854 else
24855 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24856 fi
24857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24858 hardcode_direct_GCJ=yes
24859 hardcode_minus_L_GCJ=yes
24860 hardcode_shlibpath_var_GCJ=no
24861 ;;
24862
24863 sysv4)
24864 case $host_vendor in
24865 sni)
24866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867 hardcode_direct_GCJ=yes # is this really true???
24868 ;;
24869 siemens)
24870 ## LD is ld it makes a PLAMLIB
24871 ## CC just makes a GrossModule.
24872 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24873 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24874 hardcode_direct_GCJ=no
24875 ;;
24876 motorola)
24877 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24878 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24879 ;;
24880 esac
24881 runpath_var='LD_RUN_PATH'
24882 hardcode_shlibpath_var_GCJ=no
24883 ;;
24884
24885 sysv4.3*)
24886 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24887 hardcode_shlibpath_var_GCJ=no
24888 export_dynamic_flag_spec_GCJ='-Bexport'
24889 ;;
24890
24891 sysv4*MP*)
24892 if test -d /usr/nec; then
24893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24894 hardcode_shlibpath_var_GCJ=no
24895 runpath_var=LD_RUN_PATH
24896 hardcode_runpath_var=yes
24897 ld_shlibs_GCJ=yes
24898 fi
24899 ;;
24900
Reid Spencera773bd52006-08-04 18:18:08 +000024901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24902 no_undefined_flag_GCJ='${wl}-z,text'
24903 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024904 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024905 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024906
John Criswell47fdd832003-07-14 16:52:07 +000024907 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024908 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24909 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 +000024910 else
Reid Spencera773bd52006-08-04 18:18:08 +000024911 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24912 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 +000024913 fi
John Criswell47fdd832003-07-14 16:52:07 +000024914 ;;
24915
Reid Spencera773bd52006-08-04 18:18:08 +000024916 sysv5* | sco3.2v5* | sco5v6*)
24917 # Note: We can NOT use -z defs as we might desire, because we do not
24918 # link with -lc, and that would cause any symbols used from libc to
24919 # always be unresolved, which means just about no library would
24920 # ever link correctly. If we're not using GNU ld we use -z text
24921 # though, which does catch some bad symbols but isn't as heavy-handed
24922 # as -z defs.
24923 no_undefined_flag_GCJ='${wl}-z,text'
24924 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24925 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024926 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024927 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24928 hardcode_libdir_separator_GCJ=':'
24929 link_all_deplibs_GCJ=yes
24930 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024931 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024932
24933 if test "$GCC" = yes; then
24934 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24935 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24936 else
24937 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24938 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24939 fi
John Criswell47fdd832003-07-14 16:52:07 +000024940 ;;
24941
24942 uts4*)
24943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24945 hardcode_shlibpath_var_GCJ=no
24946 ;;
24947
24948 *)
24949 ld_shlibs_GCJ=no
24950 ;;
24951 esac
24952 fi
24953
Reid Spencera773bd52006-08-04 18:18:08 +000024954{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24955echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024956test "$ld_shlibs_GCJ" = no && can_build_shared=no
24957
John Criswell47fdd832003-07-14 16:52:07 +000024958#
24959# Do we need to explicitly link libc?
24960#
24961case "x$archive_cmds_need_lc_GCJ" in
24962x|xyes)
24963 # Assume -lc should be added
24964 archive_cmds_need_lc_GCJ=yes
24965
24966 if test "$enable_shared" = yes && test "$GCC" = yes; then
24967 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024968 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024969 # FIXME: we may have to deal with multi-command sequences.
24970 ;;
24971 '$CC '*)
24972 # Test whether the compiler implicitly links with -lc since on some
24973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24974 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024975 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24976echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024977 $rm conftest*
24978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24979
24980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24981 (eval $ac_compile) 2>&5
24982 ac_status=$?
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } 2>conftest.err; then
24985 soname=conftest
24986 lib=conftest
24987 libobjs=conftest.$ac_objext
24988 deplibs=
24989 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024990 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024991 compiler_flags=-v
24992 linker_flags=-v
24993 verstring=
24994 output_objdir=.
24995 libname=conftest
24996 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24997 allow_undefined_flag_GCJ=
24998 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24999 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25000 ac_status=$?
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }
25003 then
25004 archive_cmds_need_lc_GCJ=no
25005 else
25006 archive_cmds_need_lc_GCJ=yes
25007 fi
25008 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25009 else
25010 cat conftest.err 1>&5
25011 fi
25012 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025013 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25014echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025015 ;;
25016 esac
25017 fi
25018 ;;
25019esac
25020
Reid Spencera773bd52006-08-04 18:18:08 +000025021{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25022echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025023library_names_spec=
25024libname_spec='lib$name'
25025soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025026shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025027postinstall_cmds=
25028postuninstall_cmds=
25029finish_cmds=
25030finish_eval=
25031shlibpath_var=
25032shlibpath_overrides_runpath=unknown
25033version_type=none
25034dynamic_linker="$host_os ld.so"
25035sys_lib_dlsearch_path_spec="/lib /usr/lib"
25036if test "$GCC" = yes; then
25037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25038 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25039 # if the path contains ";" then we assume it to be the separator
25040 # otherwise default to the standard path separator (i.e. ":") - it is
25041 # assumed that no part of a normal pathname contains ";" but that should
25042 # okay in the real world where ";" in dirpaths is itself problematic.
25043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25044 else
25045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25046 fi
25047else
25048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25049fi
25050need_lib_prefix=unknown
25051hardcode_into_libs=no
25052
25053# when you set need_version to no, make sure it does not cause -set_version
25054# flags to be left without arguments
25055need_version=unknown
25056
25057case $host_os in
25058aix3*)
25059 version_type=linux
25060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25061 shlibpath_var=LIBPATH
25062
25063 # AIX 3 has no versioning support, so we append a major version to the name.
25064 soname_spec='${libname}${release}${shared_ext}$major'
25065 ;;
25066
25067aix4* | aix5*)
25068 version_type=linux
25069 need_lib_prefix=no
25070 need_version=no
25071 hardcode_into_libs=yes
25072 if test "$host_cpu" = ia64; then
25073 # AIX 5 supports IA64
25074 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25075 shlibpath_var=LD_LIBRARY_PATH
25076 else
25077 # With GCC up to 2.95.x, collect2 would create an import file
25078 # for dependence libraries. The import file would start with
25079 # the line `#! .'. This would cause the generated library to
25080 # depend on `.', always an invalid library. This was fixed in
25081 # development snapshots of GCC prior to 3.0.
25082 case $host_os in
25083 aix4 | aix4.[01] | aix4.[01].*)
25084 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25085 echo ' yes '
25086 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25087 :
25088 else
25089 can_build_shared=no
25090 fi
25091 ;;
25092 esac
25093 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25094 # soname into executable. Probably we can add versioning support to
25095 # collect2, so additional links can be useful in future.
25096 if test "$aix_use_runtimelinking" = yes; then
25097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25098 # instead of lib<name>.a to let people know that these are not
25099 # typical AIX shared libraries.
25100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25101 else
25102 # We preserve .a as extension for shared libraries through AIX4.2
25103 # and later when we are not doing run time linking.
25104 library_names_spec='${libname}${release}.a $libname.a'
25105 soname_spec='${libname}${release}${shared_ext}$major'
25106 fi
25107 shlibpath_var=LIBPATH
25108 fi
25109 ;;
25110
25111amigaos*)
25112 library_names_spec='$libname.ixlibrary $libname.a'
25113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025114 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 +000025115 ;;
25116
25117beos*)
25118 library_names_spec='${libname}${shared_ext}'
25119 dynamic_linker="$host_os ld.so"
25120 shlibpath_var=LIBRARY_PATH
25121 ;;
25122
Reid Spencer2706f8c2004-09-19 23:53:36 +000025123bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025124 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25129 shlibpath_var=LD_LIBRARY_PATH
25130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25132 # the default ld.so.conf also contains /usr/contrib/lib and
25133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25134 # libtool to hard-code these into programs
25135 ;;
25136
25137cygwin* | mingw* | pw32*)
25138 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025139 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025140 need_version=no
25141 need_lib_prefix=no
25142
25143 case $GCC,$host_os in
25144 yes,cygwin* | yes,mingw* | yes,pw32*)
25145 library_names_spec='$libname.dll.a'
25146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025147 postinstall_cmds='base_file=`basename \${file}`~
25148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25149 dldir=$destdir/`dirname \$dlpath`~
25150 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025151 $install_prog $dir/$dlname \$dldir/$dlname~
25152 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25154 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025155 $rm \$dlpath'
25156 shlibpath_overrides_runpath=yes
25157
25158 case $host_os in
25159 cygwin*)
25160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25161 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 +000025162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025163 ;;
25164 mingw*)
25165 # MinGW DLLs use traditional 'lib' prefix
25166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25167 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25168 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25169 # It is most probably a Windows format PATH printed by
25170 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25171 # path with ; separators, and with drive letters. We can handle the
25172 # drive letters (cygwin fileutils understands them), so leave them,
25173 # especially as we might pass files found there to a mingw objdump,
25174 # which wouldn't understand a cygwinified path. Ahh.
25175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25176 else
25177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25178 fi
25179 ;;
25180 pw32*)
25181 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025182 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 +000025183 ;;
25184 esac
25185 ;;
25186
25187 *)
25188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25189 ;;
25190 esac
25191 dynamic_linker='Win32 ld.exe'
25192 # FIXME: first we should search . and the directory the executable is in
25193 shlibpath_var=PATH
25194 ;;
25195
25196darwin* | rhapsody*)
25197 dynamic_linker="$host_os dyld"
25198 version_type=darwin
25199 need_lib_prefix=no
25200 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025201 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025202 soname_spec='${libname}${release}${major}$shared_ext'
25203 shlibpath_overrides_runpath=yes
25204 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025205 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025206 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025207 if test "$GCC" = yes; then
25208 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"`
25209 else
25210 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025211 fi
25212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25213 ;;
25214
25215dgux*)
25216 version_type=linux
25217 need_lib_prefix=no
25218 need_version=no
25219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25220 soname_spec='${libname}${release}${shared_ext}$major'
25221 shlibpath_var=LD_LIBRARY_PATH
25222 ;;
25223
25224freebsd1*)
25225 dynamic_linker=no
25226 ;;
25227
Reid Spencer2706f8c2004-09-19 23:53:36 +000025228kfreebsd*-gnu)
25229 version_type=linux
25230 need_lib_prefix=no
25231 need_version=no
25232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25233 soname_spec='${libname}${release}${shared_ext}$major'
25234 shlibpath_var=LD_LIBRARY_PATH
25235 shlibpath_overrides_runpath=no
25236 hardcode_into_libs=yes
25237 dynamic_linker='GNU ld.so'
25238 ;;
25239
Reid Spencera773bd52006-08-04 18:18:08 +000025240freebsd* | dragonfly*)
25241 # DragonFly does not have aout. When/if they implement a new
25242 # versioning mechanism, adjust this.
25243 if test -x /usr/bin/objformat; then
25244 objformat=`/usr/bin/objformat`
25245 else
25246 case $host_os in
25247 freebsd[123]*) objformat=aout ;;
25248 *) objformat=elf ;;
25249 esac
25250 fi
John Criswell47fdd832003-07-14 16:52:07 +000025251 version_type=freebsd-$objformat
25252 case $version_type in
25253 freebsd-elf*)
25254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25255 need_version=no
25256 need_lib_prefix=no
25257 ;;
25258 freebsd-*)
25259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25260 need_version=yes
25261 ;;
25262 esac
25263 shlibpath_var=LD_LIBRARY_PATH
25264 case $host_os in
25265 freebsd2*)
25266 shlibpath_overrides_runpath=yes
25267 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025268 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025269 shlibpath_overrides_runpath=yes
25270 hardcode_into_libs=yes
25271 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025274 shlibpath_overrides_runpath=no
25275 hardcode_into_libs=yes
25276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025277 freebsd*) # from 4.6 on
25278 shlibpath_overrides_runpath=yes
25279 hardcode_into_libs=yes
25280 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025281 esac
25282 ;;
25283
25284gnu*)
25285 version_type=linux
25286 need_lib_prefix=no
25287 need_version=no
25288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25289 soname_spec='${libname}${release}${shared_ext}$major'
25290 shlibpath_var=LD_LIBRARY_PATH
25291 hardcode_into_libs=yes
25292 ;;
25293
25294hpux9* | hpux10* | hpux11*)
25295 # Give a soname corresponding to the major version so that dld.sl refuses to
25296 # link against other versions.
25297 version_type=sunos
25298 need_lib_prefix=no
25299 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025300 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025301 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025302 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025303 hardcode_into_libs=yes
25304 dynamic_linker="$host_os dld.so"
25305 shlibpath_var=LD_LIBRARY_PATH
25306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25308 soname_spec='${libname}${release}${shared_ext}$major'
25309 if test "X$HPUX_IA64_MODE" = X32; then
25310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25311 else
25312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25313 fi
25314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25315 ;;
25316 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025317 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025318 hardcode_into_libs=yes
25319 dynamic_linker="$host_os dld.sl"
25320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25326 ;;
25327 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025328 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025329 dynamic_linker="$host_os dld.sl"
25330 shlibpath_var=SHLIB_PATH
25331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25333 soname_spec='${libname}${release}${shared_ext}$major'
25334 ;;
25335 esac
25336 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25337 postinstall_cmds='chmod 555 $lib'
25338 ;;
25339
Reid Spencera773bd52006-08-04 18:18:08 +000025340interix3*)
25341 version_type=linux
25342 need_lib_prefix=no
25343 need_version=no
25344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25345 soname_spec='${libname}${release}${shared_ext}$major'
25346 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25347 shlibpath_var=LD_LIBRARY_PATH
25348 shlibpath_overrides_runpath=no
25349 hardcode_into_libs=yes
25350 ;;
25351
John Criswell47fdd832003-07-14 16:52:07 +000025352irix5* | irix6* | nonstopux*)
25353 case $host_os in
25354 nonstopux*) version_type=nonstopux ;;
25355 *)
25356 if test "$lt_cv_prog_gnu_ld" = yes; then
25357 version_type=linux
25358 else
25359 version_type=irix
25360 fi ;;
25361 esac
25362 need_lib_prefix=no
25363 need_version=no
25364 soname_spec='${libname}${release}${shared_ext}$major'
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25366 case $host_os in
25367 irix5* | nonstopux*)
25368 libsuff= shlibsuff=
25369 ;;
25370 *)
25371 case $LD in # libtool.m4 will add one of these switches to LD
25372 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25373 libsuff= shlibsuff= libmagic=32-bit;;
25374 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25375 libsuff=32 shlibsuff=N32 libmagic=N32;;
25376 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25377 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25378 *) libsuff= shlibsuff= libmagic=never-match;;
25379 esac
25380 ;;
25381 esac
25382 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25383 shlibpath_overrides_runpath=no
25384 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25385 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25386 hardcode_into_libs=yes
25387 ;;
25388
25389# No shared lib support for Linux oldld, aout, or coff.
25390linux*oldld* | linux*aout* | linux*coff*)
25391 dynamic_linker=no
25392 ;;
25393
25394# This must be Linux ELF.
25395linux*)
25396 version_type=linux
25397 need_lib_prefix=no
25398 need_version=no
25399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400 soname_spec='${libname}${release}${shared_ext}$major'
25401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25402 shlibpath_var=LD_LIBRARY_PATH
25403 shlibpath_overrides_runpath=no
25404 # This implies no fast_install, which is unacceptable.
25405 # Some rework will be needed to allow for fast_install
25406 # before this can be enabled.
25407 hardcode_into_libs=yes
25408
Reid Spencer2706f8c2004-09-19 23:53:36 +000025409 # Append ld.so.conf contents to the search path
25410 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025411 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 +000025412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25413 fi
25414
John Criswell47fdd832003-07-14 16:52:07 +000025415 # We used to test for /lib/ld.so.1 and disable shared libraries on
25416 # powerpc, because MkLinux only supported shared libraries with the
25417 # GNU dynamic linker. Since this was broken with cross compilers,
25418 # most powerpc-linux boxes support dynamic linking these days and
25419 # people can always --disable-shared, the test was removed, and we
25420 # assume the GNU/Linux dynamic linker is in use.
25421 dynamic_linker='GNU/Linux ld.so'
25422 ;;
25423
Reid Spencer2706f8c2004-09-19 23:53:36 +000025424knetbsd*-gnu)
25425 version_type=linux
25426 need_lib_prefix=no
25427 need_version=no
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429 soname_spec='${libname}${release}${shared_ext}$major'
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=no
25432 hardcode_into_libs=yes
25433 dynamic_linker='GNU ld.so'
25434 ;;
25435
John Criswell47fdd832003-07-14 16:52:07 +000025436netbsd*)
25437 version_type=sunos
25438 need_lib_prefix=no
25439 need_version=no
25440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25443 dynamic_linker='NetBSD (a.out) ld.so'
25444 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025446 soname_spec='${libname}${release}${shared_ext}$major'
25447 dynamic_linker='NetBSD ld.elf_so'
25448 fi
25449 shlibpath_var=LD_LIBRARY_PATH
25450 shlibpath_overrides_runpath=yes
25451 hardcode_into_libs=yes
25452 ;;
25453
25454newsos6)
25455 version_type=linux
25456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25457 shlibpath_var=LD_LIBRARY_PATH
25458 shlibpath_overrides_runpath=yes
25459 ;;
25460
Reid Spencer2706f8c2004-09-19 23:53:36 +000025461nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025462 version_type=linux
25463 need_lib_prefix=no
25464 need_version=no
25465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25466 soname_spec='${libname}${release}${shared_ext}$major'
25467 shlibpath_var=LD_LIBRARY_PATH
25468 shlibpath_overrides_runpath=yes
25469 ;;
25470
25471openbsd*)
25472 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025473 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025474 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25476 case $host_os in
25477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25478 *) need_version=no ;;
25479 esac
John Criswell47fdd832003-07-14 16:52:07 +000025480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25482 shlibpath_var=LD_LIBRARY_PATH
25483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25484 case $host_os in
25485 openbsd2.[89] | openbsd2.[89].*)
25486 shlibpath_overrides_runpath=no
25487 ;;
25488 *)
25489 shlibpath_overrides_runpath=yes
25490 ;;
25491 esac
25492 else
25493 shlibpath_overrides_runpath=yes
25494 fi
25495 ;;
25496
25497os2*)
25498 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025499 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025500 need_lib_prefix=no
25501 library_names_spec='$libname${shared_ext} $libname.a'
25502 dynamic_linker='OS/2 ld.exe'
25503 shlibpath_var=LIBPATH
25504 ;;
25505
25506osf3* | osf4* | osf5*)
25507 version_type=osf
25508 need_lib_prefix=no
25509 need_version=no
25510 soname_spec='${libname}${release}${shared_ext}$major'
25511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25512 shlibpath_var=LD_LIBRARY_PATH
25513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25515 ;;
25516
John Criswell47fdd832003-07-14 16:52:07 +000025517solaris*)
25518 version_type=linux
25519 need_lib_prefix=no
25520 need_version=no
25521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25522 soname_spec='${libname}${release}${shared_ext}$major'
25523 shlibpath_var=LD_LIBRARY_PATH
25524 shlibpath_overrides_runpath=yes
25525 hardcode_into_libs=yes
25526 # ldd complains unless libraries are executable
25527 postinstall_cmds='chmod +x $lib'
25528 ;;
25529
25530sunos4*)
25531 version_type=sunos
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25534 shlibpath_var=LD_LIBRARY_PATH
25535 shlibpath_overrides_runpath=yes
25536 if test "$with_gnu_ld" = yes; then
25537 need_lib_prefix=no
25538 fi
25539 need_version=yes
25540 ;;
25541
Reid Spencera773bd52006-08-04 18:18:08 +000025542sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025543 version_type=linux
25544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25545 soname_spec='${libname}${release}${shared_ext}$major'
25546 shlibpath_var=LD_LIBRARY_PATH
25547 case $host_vendor in
25548 sni)
25549 shlibpath_overrides_runpath=no
25550 need_lib_prefix=no
25551 export_dynamic_flag_spec='${wl}-Blargedynsym'
25552 runpath_var=LD_RUN_PATH
25553 ;;
25554 siemens)
25555 need_lib_prefix=no
25556 ;;
25557 motorola)
25558 need_lib_prefix=no
25559 need_version=no
25560 shlibpath_overrides_runpath=no
25561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25562 ;;
25563 esac
25564 ;;
25565
25566sysv4*MP*)
25567 if test -d /usr/nec ;then
25568 version_type=linux
25569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25570 soname_spec='$libname${shared_ext}.$major'
25571 shlibpath_var=LD_LIBRARY_PATH
25572 fi
25573 ;;
25574
Reid Spencera773bd52006-08-04 18:18:08 +000025575sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25576 version_type=freebsd-elf
25577 need_lib_prefix=no
25578 need_version=no
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 shlibpath_var=LD_LIBRARY_PATH
25582 hardcode_into_libs=yes
25583 if test "$with_gnu_ld" = yes; then
25584 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25585 shlibpath_overrides_runpath=no
25586 else
25587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25588 shlibpath_overrides_runpath=yes
25589 case $host_os in
25590 sco3.2v5*)
25591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25592 ;;
25593 esac
25594 fi
25595 sys_lib_dlsearch_path_spec='/usr/lib'
25596 ;;
25597
John Criswell47fdd832003-07-14 16:52:07 +000025598uts4*)
25599 version_type=linux
25600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25601 soname_spec='${libname}${release}${shared_ext}$major'
25602 shlibpath_var=LD_LIBRARY_PATH
25603 ;;
25604
25605*)
25606 dynamic_linker=no
25607 ;;
25608esac
Reid Spencera773bd52006-08-04 18:18:08 +000025609{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25610echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025611test "$dynamic_linker" = no && can_build_shared=no
25612
Reid Spencera773bd52006-08-04 18:18:08 +000025613variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25614if test "$GCC" = yes; then
25615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25616fi
25617
25618{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25619echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025620hardcode_action_GCJ=
25621if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25622 test -n "$runpath_var_GCJ" || \
25623 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25624
25625 # We can hardcode non-existant directories.
25626 if test "$hardcode_direct_GCJ" != no &&
25627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25628 # have to relink, otherwise we might link with an installed library
25629 # when we should be linking with a yet-to-be-installed one
25630 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25631 test "$hardcode_minus_L_GCJ" != no; then
25632 # Linking always hardcodes the temporary library directory.
25633 hardcode_action_GCJ=relink
25634 else
25635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25636 hardcode_action_GCJ=immediate
25637 fi
25638else
25639 # We cannot hardcode anything, or else we can only hardcode existing
25640 # directories.
25641 hardcode_action_GCJ=unsupported
25642fi
Reid Spencera773bd52006-08-04 18:18:08 +000025643{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25644echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025645
25646if test "$hardcode_action_GCJ" = relink; then
25647 # Fast installation is not supported
25648 enable_fast_install=no
25649elif test "$shlibpath_overrides_runpath" = yes ||
25650 test "$enable_shared" = no; then
25651 # Fast installation is not necessary
25652 enable_fast_install=needless
25653fi
25654
John Criswell47fdd832003-07-14 16:52:07 +000025655
25656# The else clause should only fire when bootstrapping the
25657# libtool distribution, otherwise you forgot to ship ltmain.sh
25658# with your package, and you will get complaints that there are
25659# no rules to generate ltmain.sh.
25660if test -f "$ltmain"; then
25661 # See if we are running on zsh, and set the options which allow our commands through
25662 # without removal of \ escapes.
25663 if test -n "${ZSH_VERSION+set}" ; then
25664 setopt NO_GLOB_SUBST
25665 fi
25666 # Now quote all the things that may contain metacharacters while being
25667 # careful not to overquote the AC_SUBSTed values. We take copies of the
25668 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025669 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 +000025670 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025671 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25672 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25673 deplibs_check_method reload_flag reload_cmds need_locks \
25674 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25675 lt_cv_sys_global_symbol_to_c_name_address \
25676 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25677 old_postinstall_cmds old_postuninstall_cmds \
25678 compiler_GCJ \
25679 CC_GCJ \
25680 LD_GCJ \
25681 lt_prog_compiler_wl_GCJ \
25682 lt_prog_compiler_pic_GCJ \
25683 lt_prog_compiler_static_GCJ \
25684 lt_prog_compiler_no_builtin_flag_GCJ \
25685 export_dynamic_flag_spec_GCJ \
25686 thread_safe_flag_spec_GCJ \
25687 whole_archive_flag_spec_GCJ \
25688 enable_shared_with_static_runtimes_GCJ \
25689 old_archive_cmds_GCJ \
25690 old_archive_from_new_cmds_GCJ \
25691 predep_objects_GCJ \
25692 postdep_objects_GCJ \
25693 predeps_GCJ \
25694 postdeps_GCJ \
25695 compiler_lib_search_path_GCJ \
25696 archive_cmds_GCJ \
25697 archive_expsym_cmds_GCJ \
25698 postinstall_cmds_GCJ \
25699 postuninstall_cmds_GCJ \
25700 old_archive_from_expsyms_cmds_GCJ \
25701 allow_undefined_flag_GCJ \
25702 no_undefined_flag_GCJ \
25703 export_symbols_cmds_GCJ \
25704 hardcode_libdir_flag_spec_GCJ \
25705 hardcode_libdir_flag_spec_ld_GCJ \
25706 hardcode_libdir_separator_GCJ \
25707 hardcode_automatic_GCJ \
25708 module_cmds_GCJ \
25709 module_expsym_cmds_GCJ \
25710 lt_cv_prog_compiler_c_o_GCJ \
25711 exclude_expsyms_GCJ \
25712 include_expsyms_GCJ; do
25713
25714 case $var in
25715 old_archive_cmds_GCJ | \
25716 old_archive_from_new_cmds_GCJ | \
25717 archive_cmds_GCJ | \
25718 archive_expsym_cmds_GCJ | \
25719 module_cmds_GCJ | \
25720 module_expsym_cmds_GCJ | \
25721 old_archive_from_expsyms_cmds_GCJ | \
25722 export_symbols_cmds_GCJ | \
25723 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25724 postinstall_cmds | postuninstall_cmds | \
25725 old_postinstall_cmds | old_postuninstall_cmds | \
25726 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25727 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025728 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 +000025729 ;;
25730 *)
25731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25732 ;;
25733 esac
25734 done
25735
25736 case $lt_echo in
25737 *'\$0 --fallback-echo"')
25738 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25739 ;;
25740 esac
25741
25742cfgfile="$ofile"
25743
25744 cat <<__EOF__ >> "$cfgfile"
25745# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25746
25747# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25748
25749# Shell to use when invoking shell scripts.
25750SHELL=$lt_SHELL
25751
25752# Whether or not to build shared libraries.
25753build_libtool_libs=$enable_shared
25754
25755# Whether or not to build static libraries.
25756build_old_libs=$enable_static
25757
25758# Whether or not to add -lc for building shared libraries.
25759build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25760
25761# Whether or not to disallow shared libs when runtime libs are static
25762allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25763
25764# Whether or not to optimize for fast installation.
25765fast_install=$enable_fast_install
25766
25767# The host system.
25768host_alias=$host_alias
25769host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025770host_os=$host_os
25771
25772# The build system.
25773build_alias=$build_alias
25774build=$build
25775build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025776
25777# An echo program that does not interpret backslashes.
25778echo=$lt_echo
25779
25780# The archiver.
25781AR=$lt_AR
25782AR_FLAGS=$lt_AR_FLAGS
25783
25784# A C compiler.
25785LTCC=$lt_LTCC
25786
Reid Spencera773bd52006-08-04 18:18:08 +000025787# LTCC compiler flags.
25788LTCFLAGS=$lt_LTCFLAGS
25789
John Criswell47fdd832003-07-14 16:52:07 +000025790# A language-specific compiler.
25791CC=$lt_compiler_GCJ
25792
25793# Is the compiler the GNU C compiler?
25794with_gcc=$GCC_GCJ
25795
25796# An ERE matcher.
25797EGREP=$lt_EGREP
25798
25799# The linker used to build libraries.
25800LD=$lt_LD_GCJ
25801
25802# Whether we need hard or soft links.
25803LN_S=$lt_LN_S
25804
25805# A BSD-compatible nm program.
25806NM=$lt_NM
25807
25808# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025809STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025810
25811# Used to examine libraries when file_magic_cmd begins "file"
25812MAGIC_CMD=$MAGIC_CMD
25813
25814# Used on cygwin: DLL creation program.
25815DLLTOOL="$DLLTOOL"
25816
25817# Used on cygwin: object dumper.
25818OBJDUMP="$OBJDUMP"
25819
25820# Used on cygwin: assembler.
25821AS="$AS"
25822
25823# The name of the directory that contains temporary libtool files.
25824objdir=$objdir
25825
25826# How to create reloadable object files.
25827reload_flag=$lt_reload_flag
25828reload_cmds=$lt_reload_cmds
25829
25830# How to pass a linker flag through the compiler.
25831wl=$lt_lt_prog_compiler_wl_GCJ
25832
25833# Object file suffix (normally "o").
25834objext="$ac_objext"
25835
25836# Old archive suffix (normally "a").
25837libext="$libext"
25838
25839# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025840shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025841
25842# Executable file suffix (normally "").
25843exeext="$exeext"
25844
25845# Additional compiler flags for building library objects.
25846pic_flag=$lt_lt_prog_compiler_pic_GCJ
25847pic_mode=$pic_mode
25848
25849# What is the maximum length of a command?
25850max_cmd_len=$lt_cv_sys_max_cmd_len
25851
25852# Does compiler simultaneously support -c and -o options?
25853compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25854
Reid Spencera773bd52006-08-04 18:18:08 +000025855# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025856need_locks=$lt_need_locks
25857
25858# Do we need the lib prefix for modules?
25859need_lib_prefix=$need_lib_prefix
25860
25861# Do we need a version for libraries?
25862need_version=$need_version
25863
25864# Whether dlopen is supported.
25865dlopen_support=$enable_dlopen
25866
25867# Whether dlopen of programs is supported.
25868dlopen_self=$enable_dlopen_self
25869
25870# Whether dlopen of statically linked programs is supported.
25871dlopen_self_static=$enable_dlopen_self_static
25872
25873# Compiler flag to prevent dynamic linking.
25874link_static_flag=$lt_lt_prog_compiler_static_GCJ
25875
25876# Compiler flag to turn off builtin functions.
25877no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25878
25879# Compiler flag to allow reflexive dlopens.
25880export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25881
25882# Compiler flag to generate shared objects directly from archives.
25883whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25884
25885# Compiler flag to generate thread-safe objects.
25886thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25887
25888# Library versioning type.
25889version_type=$version_type
25890
25891# Format of library name prefix.
25892libname_spec=$lt_libname_spec
25893
25894# List of archive names. First name is the real one, the rest are links.
25895# The last name is the one that the linker finds with -lNAME.
25896library_names_spec=$lt_library_names_spec
25897
25898# The coded name of the library, if different from the real name.
25899soname_spec=$lt_soname_spec
25900
25901# Commands used to build and install an old-style archive.
25902RANLIB=$lt_RANLIB
25903old_archive_cmds=$lt_old_archive_cmds_GCJ
25904old_postinstall_cmds=$lt_old_postinstall_cmds
25905old_postuninstall_cmds=$lt_old_postuninstall_cmds
25906
25907# Create an old-style archive from a shared archive.
25908old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25909
25910# Create a temporary old-style archive to link instead of a shared archive.
25911old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25912
25913# Commands used to build and install a shared archive.
25914archive_cmds=$lt_archive_cmds_GCJ
25915archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25916postinstall_cmds=$lt_postinstall_cmds
25917postuninstall_cmds=$lt_postuninstall_cmds
25918
25919# Commands used to build a loadable module (assumed same as above if empty)
25920module_cmds=$lt_module_cmds_GCJ
25921module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25922
25923# Commands to strip libraries.
25924old_striplib=$lt_old_striplib
25925striplib=$lt_striplib
25926
25927# Dependencies to place before the objects being linked to create a
25928# shared library.
25929predep_objects=$lt_predep_objects_GCJ
25930
25931# Dependencies to place after the objects being linked to create a
25932# shared library.
25933postdep_objects=$lt_postdep_objects_GCJ
25934
25935# Dependencies to place before the objects being linked to create a
25936# shared library.
25937predeps=$lt_predeps_GCJ
25938
25939# Dependencies to place after the objects being linked to create a
25940# shared library.
25941postdeps=$lt_postdeps_GCJ
25942
25943# The library search path used internally by the compiler when linking
25944# a shared library.
25945compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25946
25947# Method to check whether dependent libraries are shared objects.
25948deplibs_check_method=$lt_deplibs_check_method
25949
25950# Command to use when deplibs_check_method == file_magic.
25951file_magic_cmd=$lt_file_magic_cmd
25952
25953# Flag that allows shared libraries with undefined symbols to be built.
25954allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25955
25956# Flag that forces no undefined symbols.
25957no_undefined_flag=$lt_no_undefined_flag_GCJ
25958
25959# Commands used to finish a libtool library installation in a directory.
25960finish_cmds=$lt_finish_cmds
25961
25962# Same as above, but a single script fragment to be evaled but not shown.
25963finish_eval=$lt_finish_eval
25964
25965# Take the output of nm and produce a listing of raw symbols and C names.
25966global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25967
25968# Transform the output of nm in a proper C declaration
25969global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25970
25971# Transform the output of nm in a C name address pair
25972global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25973
25974# This is the shared library runtime path variable.
25975runpath_var=$runpath_var
25976
25977# This is the shared library path variable.
25978shlibpath_var=$shlibpath_var
25979
25980# Is shlibpath searched before the hard-coded library search path?
25981shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25982
25983# How to hardcode a shared library path into an executable.
25984hardcode_action=$hardcode_action_GCJ
25985
25986# Whether we should hardcode library paths into libraries.
25987hardcode_into_libs=$hardcode_into_libs
25988
25989# Flag to hardcode \$libdir into a binary during linking.
25990# This must work even if \$libdir does not exist.
25991hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25992
25993# If ld is used when linking, flag to hardcode \$libdir into
25994# a binary during linking. This must work even if \$libdir does
25995# not exist.
25996hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25997
25998# Whether we need a single -rpath flag with a separated argument.
25999hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26000
26001# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26002# resulting binary.
26003hardcode_direct=$hardcode_direct_GCJ
26004
26005# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26006# resulting binary.
26007hardcode_minus_L=$hardcode_minus_L_GCJ
26008
26009# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26010# the resulting binary.
26011hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26012
26013# Set to yes if building a shared library automatically hardcodes DIR into the library
26014# and all subsequent libraries and executables linked against it.
26015hardcode_automatic=$hardcode_automatic_GCJ
26016
26017# Variables whose values should be saved in libtool wrapper scripts and
26018# restored at relink time.
26019variables_saved_for_relink="$variables_saved_for_relink"
26020
26021# Whether libtool must link a program against all its dependency libraries.
26022link_all_deplibs=$link_all_deplibs_GCJ
26023
26024# Compile-time system search path for libraries
26025sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26026
26027# Run-time system search path for libraries
26028sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26029
26030# Fix the shell variable \$srcfile for the compiler.
26031fix_srcfile_path="$fix_srcfile_path_GCJ"
26032
26033# Set to yes if exported symbols are required.
26034always_export_symbols=$always_export_symbols_GCJ
26035
26036# The commands to list exported symbols.
26037export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26038
26039# The commands to extract the exported symbol list from a shared archive.
26040extract_expsyms_cmds=$lt_extract_expsyms_cmds
26041
26042# Symbols that should not be listed in the preloaded symbols.
26043exclude_expsyms=$lt_exclude_expsyms_GCJ
26044
26045# Symbols that must always be exported.
26046include_expsyms=$lt_include_expsyms_GCJ
26047
26048# ### END LIBTOOL TAG CONFIG: $tagname
26049
26050__EOF__
26051
26052
26053else
26054 # If there is no Makefile yet, we rely on a make rule to execute
26055 # `config.status --recheck' to rerun these tests and create the
26056 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26058 if test -f "$ltmain_in"; then
26059 test -f Makefile && make "$ltmain"
26060 fi
John Criswell47fdd832003-07-14 16:52:07 +000026061fi
26062
26063
26064ac_ext=c
26065ac_cpp='$CPP $CPPFLAGS'
26066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26068ac_compiler_gnu=$ac_cv_c_compiler_gnu
26069
26070CC="$lt_save_CC"
26071
26072 else
26073 tagname=""
26074 fi
26075 ;;
26076
26077 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026078 ac_ext=c
26079ac_cpp='$CPP $CPPFLAGS'
26080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26082ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026083
26084
26085# Source file extension for RC test sources.
26086ac_ext=rc
26087
26088# Object file extension for compiled RC test sources.
26089objext=o
26090objext_RC=$objext
26091
26092# Code to be used in simple compile tests
26093lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26094
26095# Code to be used in simple link tests
26096lt_simple_link_test_code="$lt_simple_compile_test_code"
26097
26098# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26099
26100# If no C compiler was specified, use CC.
26101LTCC=${LTCC-"$CC"}
26102
Reid Spencera773bd52006-08-04 18:18:08 +000026103# If no C compiler flags were specified, use CFLAGS.
26104LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26105
John Criswell47fdd832003-07-14 16:52:07 +000026106# Allow CC to be a program name with arguments.
26107compiler=$CC
26108
26109
Reid Spencera773bd52006-08-04 18:18:08 +000026110# save warnings/boilerplate of simple test code
26111ac_outfile=conftest.$ac_objext
26112printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26113eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26114_lt_compiler_boilerplate=`cat conftest.err`
26115$rm conftest*
26116
26117ac_outfile=conftest.$ac_objext
26118printf "$lt_simple_link_test_code" >conftest.$ac_ext
26119eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26120_lt_linker_boilerplate=`cat conftest.err`
26121$rm conftest*
26122
26123
John Criswell47fdd832003-07-14 16:52:07 +000026124# Allow CC to be a program name with arguments.
26125lt_save_CC="$CC"
26126CC=${RC-"windres"}
26127compiler=$CC
26128compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026129for cc_temp in $compiler""; do
26130 case $cc_temp in
26131 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26132 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26133 \-*) ;;
26134 *) break;;
26135 esac
26136done
26137cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26138
John Criswell47fdd832003-07-14 16:52:07 +000026139lt_cv_prog_compiler_c_o_RC=yes
26140
26141# The else clause should only fire when bootstrapping the
26142# libtool distribution, otherwise you forgot to ship ltmain.sh
26143# with your package, and you will get complaints that there are
26144# no rules to generate ltmain.sh.
26145if test -f "$ltmain"; then
26146 # See if we are running on zsh, and set the options which allow our commands through
26147 # without removal of \ escapes.
26148 if test -n "${ZSH_VERSION+set}" ; then
26149 setopt NO_GLOB_SUBST
26150 fi
26151 # Now quote all the things that may contain metacharacters while being
26152 # careful not to overquote the AC_SUBSTed values. We take copies of the
26153 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026154 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 +000026155 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26158 deplibs_check_method reload_flag reload_cmds need_locks \
26159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26160 lt_cv_sys_global_symbol_to_c_name_address \
26161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26162 old_postinstall_cmds old_postuninstall_cmds \
26163 compiler_RC \
26164 CC_RC \
26165 LD_RC \
26166 lt_prog_compiler_wl_RC \
26167 lt_prog_compiler_pic_RC \
26168 lt_prog_compiler_static_RC \
26169 lt_prog_compiler_no_builtin_flag_RC \
26170 export_dynamic_flag_spec_RC \
26171 thread_safe_flag_spec_RC \
26172 whole_archive_flag_spec_RC \
26173 enable_shared_with_static_runtimes_RC \
26174 old_archive_cmds_RC \
26175 old_archive_from_new_cmds_RC \
26176 predep_objects_RC \
26177 postdep_objects_RC \
26178 predeps_RC \
26179 postdeps_RC \
26180 compiler_lib_search_path_RC \
26181 archive_cmds_RC \
26182 archive_expsym_cmds_RC \
26183 postinstall_cmds_RC \
26184 postuninstall_cmds_RC \
26185 old_archive_from_expsyms_cmds_RC \
26186 allow_undefined_flag_RC \
26187 no_undefined_flag_RC \
26188 export_symbols_cmds_RC \
26189 hardcode_libdir_flag_spec_RC \
26190 hardcode_libdir_flag_spec_ld_RC \
26191 hardcode_libdir_separator_RC \
26192 hardcode_automatic_RC \
26193 module_cmds_RC \
26194 module_expsym_cmds_RC \
26195 lt_cv_prog_compiler_c_o_RC \
26196 exclude_expsyms_RC \
26197 include_expsyms_RC; do
26198
26199 case $var in
26200 old_archive_cmds_RC | \
26201 old_archive_from_new_cmds_RC | \
26202 archive_cmds_RC | \
26203 archive_expsym_cmds_RC | \
26204 module_cmds_RC | \
26205 module_expsym_cmds_RC | \
26206 old_archive_from_expsyms_cmds_RC | \
26207 export_symbols_cmds_RC | \
26208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26209 postinstall_cmds | postuninstall_cmds | \
26210 old_postinstall_cmds | old_postuninstall_cmds | \
26211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26212 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026213 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 +000026214 ;;
26215 *)
26216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26217 ;;
26218 esac
26219 done
26220
26221 case $lt_echo in
26222 *'\$0 --fallback-echo"')
26223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26224 ;;
26225 esac
26226
26227cfgfile="$ofile"
26228
26229 cat <<__EOF__ >> "$cfgfile"
26230# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26231
26232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26233
26234# Shell to use when invoking shell scripts.
26235SHELL=$lt_SHELL
26236
26237# Whether or not to build shared libraries.
26238build_libtool_libs=$enable_shared
26239
26240# Whether or not to build static libraries.
26241build_old_libs=$enable_static
26242
26243# Whether or not to add -lc for building shared libraries.
26244build_libtool_need_lc=$archive_cmds_need_lc_RC
26245
26246# Whether or not to disallow shared libs when runtime libs are static
26247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26248
26249# Whether or not to optimize for fast installation.
26250fast_install=$enable_fast_install
26251
26252# The host system.
26253host_alias=$host_alias
26254host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026255host_os=$host_os
26256
26257# The build system.
26258build_alias=$build_alias
26259build=$build
26260build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026261
26262# An echo program that does not interpret backslashes.
26263echo=$lt_echo
26264
26265# The archiver.
26266AR=$lt_AR
26267AR_FLAGS=$lt_AR_FLAGS
26268
26269# A C compiler.
26270LTCC=$lt_LTCC
26271
Reid Spencera773bd52006-08-04 18:18:08 +000026272# LTCC compiler flags.
26273LTCFLAGS=$lt_LTCFLAGS
26274
John Criswell47fdd832003-07-14 16:52:07 +000026275# A language-specific compiler.
26276CC=$lt_compiler_RC
26277
26278# Is the compiler the GNU C compiler?
26279with_gcc=$GCC_RC
26280
26281# An ERE matcher.
26282EGREP=$lt_EGREP
26283
26284# The linker used to build libraries.
26285LD=$lt_LD_RC
26286
26287# Whether we need hard or soft links.
26288LN_S=$lt_LN_S
26289
26290# A BSD-compatible nm program.
26291NM=$lt_NM
26292
26293# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026294STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026295
26296# Used to examine libraries when file_magic_cmd begins "file"
26297MAGIC_CMD=$MAGIC_CMD
26298
26299# Used on cygwin: DLL creation program.
26300DLLTOOL="$DLLTOOL"
26301
26302# Used on cygwin: object dumper.
26303OBJDUMP="$OBJDUMP"
26304
26305# Used on cygwin: assembler.
26306AS="$AS"
26307
26308# The name of the directory that contains temporary libtool files.
26309objdir=$objdir
26310
26311# How to create reloadable object files.
26312reload_flag=$lt_reload_flag
26313reload_cmds=$lt_reload_cmds
26314
26315# How to pass a linker flag through the compiler.
26316wl=$lt_lt_prog_compiler_wl_RC
26317
26318# Object file suffix (normally "o").
26319objext="$ac_objext"
26320
26321# Old archive suffix (normally "a").
26322libext="$libext"
26323
26324# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026325shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026326
26327# Executable file suffix (normally "").
26328exeext="$exeext"
26329
26330# Additional compiler flags for building library objects.
26331pic_flag=$lt_lt_prog_compiler_pic_RC
26332pic_mode=$pic_mode
26333
26334# What is the maximum length of a command?
26335max_cmd_len=$lt_cv_sys_max_cmd_len
26336
26337# Does compiler simultaneously support -c and -o options?
26338compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26339
Reid Spencera773bd52006-08-04 18:18:08 +000026340# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026341need_locks=$lt_need_locks
26342
26343# Do we need the lib prefix for modules?
26344need_lib_prefix=$need_lib_prefix
26345
26346# Do we need a version for libraries?
26347need_version=$need_version
26348
26349# Whether dlopen is supported.
26350dlopen_support=$enable_dlopen
26351
26352# Whether dlopen of programs is supported.
26353dlopen_self=$enable_dlopen_self
26354
26355# Whether dlopen of statically linked programs is supported.
26356dlopen_self_static=$enable_dlopen_self_static
26357
26358# Compiler flag to prevent dynamic linking.
26359link_static_flag=$lt_lt_prog_compiler_static_RC
26360
26361# Compiler flag to turn off builtin functions.
26362no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26363
26364# Compiler flag to allow reflexive dlopens.
26365export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26366
26367# Compiler flag to generate shared objects directly from archives.
26368whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26369
26370# Compiler flag to generate thread-safe objects.
26371thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26372
26373# Library versioning type.
26374version_type=$version_type
26375
26376# Format of library name prefix.
26377libname_spec=$lt_libname_spec
26378
26379# List of archive names. First name is the real one, the rest are links.
26380# The last name is the one that the linker finds with -lNAME.
26381library_names_spec=$lt_library_names_spec
26382
26383# The coded name of the library, if different from the real name.
26384soname_spec=$lt_soname_spec
26385
26386# Commands used to build and install an old-style archive.
26387RANLIB=$lt_RANLIB
26388old_archive_cmds=$lt_old_archive_cmds_RC
26389old_postinstall_cmds=$lt_old_postinstall_cmds
26390old_postuninstall_cmds=$lt_old_postuninstall_cmds
26391
26392# Create an old-style archive from a shared archive.
26393old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26394
26395# Create a temporary old-style archive to link instead of a shared archive.
26396old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26397
26398# Commands used to build and install a shared archive.
26399archive_cmds=$lt_archive_cmds_RC
26400archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26401postinstall_cmds=$lt_postinstall_cmds
26402postuninstall_cmds=$lt_postuninstall_cmds
26403
26404# Commands used to build a loadable module (assumed same as above if empty)
26405module_cmds=$lt_module_cmds_RC
26406module_expsym_cmds=$lt_module_expsym_cmds_RC
26407
26408# Commands to strip libraries.
26409old_striplib=$lt_old_striplib
26410striplib=$lt_striplib
26411
26412# Dependencies to place before the objects being linked to create a
26413# shared library.
26414predep_objects=$lt_predep_objects_RC
26415
26416# Dependencies to place after the objects being linked to create a
26417# shared library.
26418postdep_objects=$lt_postdep_objects_RC
26419
26420# Dependencies to place before the objects being linked to create a
26421# shared library.
26422predeps=$lt_predeps_RC
26423
26424# Dependencies to place after the objects being linked to create a
26425# shared library.
26426postdeps=$lt_postdeps_RC
26427
26428# The library search path used internally by the compiler when linking
26429# a shared library.
26430compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26431
26432# Method to check whether dependent libraries are shared objects.
26433deplibs_check_method=$lt_deplibs_check_method
26434
26435# Command to use when deplibs_check_method == file_magic.
26436file_magic_cmd=$lt_file_magic_cmd
26437
26438# Flag that allows shared libraries with undefined symbols to be built.
26439allow_undefined_flag=$lt_allow_undefined_flag_RC
26440
26441# Flag that forces no undefined symbols.
26442no_undefined_flag=$lt_no_undefined_flag_RC
26443
26444# Commands used to finish a libtool library installation in a directory.
26445finish_cmds=$lt_finish_cmds
26446
26447# Same as above, but a single script fragment to be evaled but not shown.
26448finish_eval=$lt_finish_eval
26449
26450# Take the output of nm and produce a listing of raw symbols and C names.
26451global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26452
26453# Transform the output of nm in a proper C declaration
26454global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26455
26456# Transform the output of nm in a C name address pair
26457global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26458
26459# This is the shared library runtime path variable.
26460runpath_var=$runpath_var
26461
26462# This is the shared library path variable.
26463shlibpath_var=$shlibpath_var
26464
26465# Is shlibpath searched before the hard-coded library search path?
26466shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26467
26468# How to hardcode a shared library path into an executable.
26469hardcode_action=$hardcode_action_RC
26470
26471# Whether we should hardcode library paths into libraries.
26472hardcode_into_libs=$hardcode_into_libs
26473
26474# Flag to hardcode \$libdir into a binary during linking.
26475# This must work even if \$libdir does not exist.
26476hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26477
26478# If ld is used when linking, flag to hardcode \$libdir into
26479# a binary during linking. This must work even if \$libdir does
26480# not exist.
26481hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26482
26483# Whether we need a single -rpath flag with a separated argument.
26484hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26485
26486# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26487# resulting binary.
26488hardcode_direct=$hardcode_direct_RC
26489
26490# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26491# resulting binary.
26492hardcode_minus_L=$hardcode_minus_L_RC
26493
26494# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26495# the resulting binary.
26496hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26497
26498# Set to yes if building a shared library automatically hardcodes DIR into the library
26499# and all subsequent libraries and executables linked against it.
26500hardcode_automatic=$hardcode_automatic_RC
26501
26502# Variables whose values should be saved in libtool wrapper scripts and
26503# restored at relink time.
26504variables_saved_for_relink="$variables_saved_for_relink"
26505
26506# Whether libtool must link a program against all its dependency libraries.
26507link_all_deplibs=$link_all_deplibs_RC
26508
26509# Compile-time system search path for libraries
26510sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26511
26512# Run-time system search path for libraries
26513sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26514
26515# Fix the shell variable \$srcfile for the compiler.
26516fix_srcfile_path="$fix_srcfile_path_RC"
26517
26518# Set to yes if exported symbols are required.
26519always_export_symbols=$always_export_symbols_RC
26520
26521# The commands to list exported symbols.
26522export_symbols_cmds=$lt_export_symbols_cmds_RC
26523
26524# The commands to extract the exported symbol list from a shared archive.
26525extract_expsyms_cmds=$lt_extract_expsyms_cmds
26526
26527# Symbols that should not be listed in the preloaded symbols.
26528exclude_expsyms=$lt_exclude_expsyms_RC
26529
26530# Symbols that must always be exported.
26531include_expsyms=$lt_include_expsyms_RC
26532
26533# ### END LIBTOOL TAG CONFIG: $tagname
26534
26535__EOF__
26536
26537
26538else
26539 # If there is no Makefile yet, we rely on a make rule to execute
26540 # `config.status --recheck' to rerun these tests and create the
26541 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26543 if test -f "$ltmain_in"; then
26544 test -f Makefile && make "$ltmain"
26545 fi
John Criswell47fdd832003-07-14 16:52:07 +000026546fi
26547
26548
26549ac_ext=c
26550ac_cpp='$CPP $CPPFLAGS'
26551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26553ac_compiler_gnu=$ac_cv_c_compiler_gnu
26554
26555CC="$lt_save_CC"
26556
26557 ;;
26558
26559 *)
26560 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26561echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26562 { (exit 1); exit 1; }; }
26563 ;;
26564 esac
26565
26566 # Append the new tag name to the list of available tags.
26567 if test -n "$tagname" ; then
26568 available_tags="$available_tags $tagname"
26569 fi
26570 fi
26571 done
26572 IFS="$lt_save_ifs"
26573
26574 # Now substitute the updated list of available tags.
26575 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26576 mv "${ofile}T" "$ofile"
26577 chmod +x "$ofile"
26578 else
26579 rm -f "${ofile}T"
26580 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26581echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26582 { (exit 1); exit 1; }; }
26583 fi
26584fi
John Criswell7a73b802003-06-30 21:59:07 +000026585
26586
26587
26588# This can be used to rebuild libtool when needed
26589LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26590
26591# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026592LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026593
26594# Prevent multiple expansion
26595
26596
26597
John Criswell47fdd832003-07-14 16:52:07 +000026598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026615
Reid Spencer582a23c2004-12-29 07:07:57 +000026616if test "$lt_cv_dlopen_self" = "yes" ; then
26617
26618cat >>confdefs.h <<\_ACEOF
26619#define CAN_DLOPEN_SELF 1
26620_ACEOF
26621
26622fi
26623
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026624etags_version=`$ETAGS --version 2>&1`
26625case "$etags_version" in
26626 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26627 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26628 *) ETAGSFLAGS="" ;;
26629esac
26630ETAGSFLAGS=$ETAGSFLAGS
26631
26632
Reid Spencer7931a782004-12-27 06:15:02 +000026633if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026634 LLVMGCC="llvm-gcc${EXEEXT}"
26635 LLVMGXX="llvm-g++${EXEEXT}"
26636 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26637set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026640if test "${ac_cv_path_LLVMGCC+set}" = set; then
26641 echo $ECHO_N "(cached) $ECHO_C" >&6
26642else
26643 case $LLVMGCC in
26644 [\\/]* | ?:[\\/]*)
26645 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26646 ;;
26647 *)
26648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26649for as_dir in $PATH
26650do
26651 IFS=$as_save_IFS
26652 test -z "$as_dir" && as_dir=.
26653 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026654 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 +000026655 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26657 break 2
26658 fi
26659done
26660done
Reid Spencera773bd52006-08-04 18:18:08 +000026661IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026662
Reid Spencer59473af2004-12-25 07:31:29 +000026663 ;;
26664esac
26665fi
26666LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026667if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026668 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26669echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026670else
Reid Spencera773bd52006-08-04 18:18:08 +000026671 { echo "$as_me:$LINENO: result: no" >&5
26672echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026673fi
26674
Reid Spencera773bd52006-08-04 18:18:08 +000026675
Reid Spencerc84492c2005-06-02 22:34:49 +000026676 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26677set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026680if test "${ac_cv_path_LLVMGXX+set}" = set; then
26681 echo $ECHO_N "(cached) $ECHO_C" >&6
26682else
26683 case $LLVMGXX in
26684 [\\/]* | ?:[\\/]*)
26685 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26686 ;;
26687 *)
26688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26689for as_dir in $PATH
26690do
26691 IFS=$as_save_IFS
26692 test -z "$as_dir" && as_dir=.
26693 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026694 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 +000026695 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26697 break 2
26698 fi
26699done
26700done
Reid Spencera773bd52006-08-04 18:18:08 +000026701IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026702
Reid Spencer59473af2004-12-25 07:31:29 +000026703 ;;
26704esac
26705fi
26706LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026707if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026708 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26709echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026710else
Reid Spencera773bd52006-08-04 18:18:08 +000026711 { echo "$as_me:$LINENO: result: no" >&5
26712echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026713fi
26714
Reid Spencera773bd52006-08-04 18:18:08 +000026715
Reid Spencer59473af2004-12-25 07:31:29 +000026716else
Reid Spencerc84492c2005-06-02 22:34:49 +000026717 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26718 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026719 LLVMGCC=$LLVMGCC
26720
26721 LLVMGXX=$LLVMGXX
26722
26723fi
26724
Reid Spencera773bd52006-08-04 18:18:08 +000026725{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26726echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026727
Reid Spencer86901802004-12-08 23:07:27 +000026728ICC=no
26729IXX=no
26730case $CC in
26731 icc*|icpc*)
26732 ICC=yes
26733 IXX=yes
26734 ;;
26735 *)
26736 ;;
26737esac
26738
Duraid Madina937c60a2006-02-15 07:57:42 +000026739if test "$GCC" != "yes" && test "$ICC" != "yes"
26740then
26741 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26742echo "$as_me: error: gcc|icc required but not found" >&2;}
26743 { (exit 1); exit 1; }; }
26744fi
26745
26746if test "$GXX" != "yes" && test "$IXX" != "yes"
26747then
26748 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26749echo "$as_me: error: g++|icc required but not found" >&2;}
26750 { (exit 1); exit 1; }; }
26751fi
26752
Reid Spencer86901802004-12-08 23:07:27 +000026753if test "$GCC" = "yes"
26754then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026755 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026756 if test "$gccmajor" -lt "3"
26757 then
26758 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026759echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26760 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026761 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026762fi
26763
26764if test -z "$llvm_cv_gnu_make_command"
26765then
26766 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26767echo "$as_me: error: GNU Make required but not found" >&2;}
26768 { (exit 1); exit 1; }; }
26769fi
26770
Reid Spencera773bd52006-08-04 18:18:08 +000026771{ echo "$as_me:$LINENO: result: ok" >&5
26772echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026773
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026774
John Criswell7a73b802003-06-30 21:59:07 +000026775
Reid Spencera773bd52006-08-04 18:18:08 +000026776{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26777echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026778if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26780else
26781 ac_check_lib_save_LIBS=$LIBS
26782LIBS="-lelf $LIBS"
26783cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026784/* confdefs.h. */
26785_ACEOF
26786cat confdefs.h >>conftest.$ac_ext
26787cat >>conftest.$ac_ext <<_ACEOF
26788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026789
Reid Spencera773bd52006-08-04 18:18:08 +000026790/* Override any GCC internal prototype to avoid an error.
26791 Use char because int might match the return type of a GCC
26792 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026793#ifdef __cplusplus
26794extern "C"
26795#endif
John Criswell7a73b802003-06-30 21:59:07 +000026796char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026797int
26798main ()
26799{
Reid Spencera773bd52006-08-04 18:18:08 +000026800return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026801 ;
26802 return 0;
26803}
26804_ACEOF
26805rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026806if { (ac_try="$ac_link"
26807case "(($ac_try" in
26808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809 *) ac_try_echo=$ac_try;;
26810esac
26811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026813 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026814 grep -v '^ *+' conftest.er1 >conftest.err
26815 rm -f conftest.er1
26816 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26820 { (case "(($ac_try" in
26821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26822 *) ac_try_echo=$ac_try;;
26823esac
26824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26825 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026826 ac_status=$?
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); }; } &&
26829 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026830 { (case "(($ac_try" in
26831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832 *) ac_try_echo=$ac_try;;
26833esac
26834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26835 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; }; then
26839 ac_cv_lib_elf_elf_begin=yes
26840else
26841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026842sed 's/^/| /' conftest.$ac_ext >&5
26843
Reid Spencera773bd52006-08-04 18:18:08 +000026844 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026845fi
Reid Spencera773bd52006-08-04 18:18:08 +000026846
26847rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026848 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026849LIBS=$ac_check_lib_save_LIBS
26850fi
Reid Spencera773bd52006-08-04 18:18:08 +000026851{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26852echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026853if test $ac_cv_lib_elf_elf_begin = yes; then
26854 cat >>confdefs.h <<_ACEOF
26855#define HAVE_LIBELF 1
26856_ACEOF
26857
26858 LIBS="-lelf $LIBS"
26859
26860fi
26861
26862
Reid Spencera773bd52006-08-04 18:18:08 +000026863{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26864echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026865if test "${ac_cv_lib_m_sin+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867else
26868 ac_check_lib_save_LIBS=$LIBS
26869LIBS="-lm $LIBS"
26870cat >conftest.$ac_ext <<_ACEOF
26871/* confdefs.h. */
26872_ACEOF
26873cat confdefs.h >>conftest.$ac_ext
26874cat >>conftest.$ac_ext <<_ACEOF
26875/* end confdefs.h. */
26876
Reid Spencera773bd52006-08-04 18:18:08 +000026877/* Override any GCC internal prototype to avoid an error.
26878 Use char because int might match the return type of a GCC
26879 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026880#ifdef __cplusplus
26881extern "C"
26882#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026883char sin ();
26884int
26885main ()
26886{
Reid Spencera773bd52006-08-04 18:18:08 +000026887return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026888 ;
26889 return 0;
26890}
26891_ACEOF
26892rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026893if { (ac_try="$ac_link"
26894case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26897esac
26898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026900 ac_status=$?
26901 grep -v '^ *+' conftest.er1 >conftest.err
26902 rm -f conftest.er1
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26907 { (case "(($ac_try" in
26908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909 *) ac_try_echo=$ac_try;;
26910esac
26911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26912 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026913 ac_status=$?
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; } &&
26916 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026917 { (case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26920esac
26921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026923 ac_status=$?
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 ac_cv_lib_m_sin=yes
26927else
26928 echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
Reid Spencera773bd52006-08-04 18:18:08 +000026931 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026932fi
Reid Spencera773bd52006-08-04 18:18:08 +000026933
26934rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026935 conftest$ac_exeext conftest.$ac_ext
26936LIBS=$ac_check_lib_save_LIBS
26937fi
Reid Spencera773bd52006-08-04 18:18:08 +000026938{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26939echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026940if test $ac_cv_lib_m_sin = yes; then
26941 cat >>confdefs.h <<_ACEOF
26942#define HAVE_LIBM 1
26943_ACEOF
26944
26945 LIBS="-lm $LIBS"
26946
26947fi
26948
Jeff Cohen28783c32007-01-12 18:22:38 +000026949if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026950
Reid Spencera773bd52006-08-04 18:18:08 +000026951{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26952echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026953if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026954 echo $ECHO_N "(cached) $ECHO_C" >&6
26955else
26956 ac_check_lib_save_LIBS=$LIBS
26957LIBS="-limagehlp $LIBS"
26958cat >conftest.$ac_ext <<_ACEOF
26959/* confdefs.h. */
26960_ACEOF
26961cat confdefs.h >>conftest.$ac_ext
26962cat >>conftest.$ac_ext <<_ACEOF
26963/* end confdefs.h. */
26964
Reid Spencer48fdf912006-06-01 19:03:21 +000026965
Reid Spencer484fc8e2006-06-01 16:55:59 +000026966int
26967main ()
26968{
Reid Spencera773bd52006-08-04 18:18:08 +000026969return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026970 ;
26971 return 0;
26972}
26973_ACEOF
26974rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026975if { (ac_try="$ac_link"
26976case "(($ac_try" in
26977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978 *) ac_try_echo=$ac_try;;
26979esac
26980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026982 ac_status=$?
26983 grep -v '^ *+' conftest.er1 >conftest.err
26984 rm -f conftest.er1
26985 cat conftest.err >&5
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26989 { (case "(($ac_try" in
26990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991 *) ac_try_echo=$ac_try;;
26992esac
26993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026995 ac_status=$?
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; } &&
26998 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026999 { (case "(($ac_try" in
27000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001 *) ac_try_echo=$ac_try;;
27002esac
27003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027005 ac_status=$?
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027008 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027009else
27010 echo "$as_me: failed program was:" >&5
27011sed 's/^/| /' conftest.$ac_ext >&5
27012
Reid Spencera773bd52006-08-04 18:18:08 +000027013 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027014fi
Reid Spencera773bd52006-08-04 18:18:08 +000027015
27016rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027017 conftest$ac_exeext conftest.$ac_ext
27018LIBS=$ac_check_lib_save_LIBS
27019fi
Reid Spencera773bd52006-08-04 18:18:08 +000027020{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27021echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027022if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027023 cat >>confdefs.h <<_ACEOF
27024#define HAVE_LIBIMAGEHLP 1
27025_ACEOF
27026
27027 LIBS="-limagehlp $LIBS"
27028
27029fi
27030
27031
Reid Spencera773bd52006-08-04 18:18:08 +000027032{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27033echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027034if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027035 echo $ECHO_N "(cached) $ECHO_C" >&6
27036else
27037 ac_check_lib_save_LIBS=$LIBS
27038LIBS="-lpsapi $LIBS"
27039cat >conftest.$ac_ext <<_ACEOF
27040/* confdefs.h. */
27041_ACEOF
27042cat confdefs.h >>conftest.$ac_ext
27043cat >>conftest.$ac_ext <<_ACEOF
27044/* end confdefs.h. */
27045
Reid Spencer48fdf912006-06-01 19:03:21 +000027046
Reid Spencer484fc8e2006-06-01 16:55:59 +000027047int
27048main ()
27049{
Reid Spencera773bd52006-08-04 18:18:08 +000027050return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027051 ;
27052 return 0;
27053}
27054_ACEOF
27055rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027056if { (ac_try="$ac_link"
27057case "(($ac_try" in
27058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27060esac
27061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027063 ac_status=$?
27064 grep -v '^ *+' conftest.er1 >conftest.err
27065 rm -f conftest.er1
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27070 { (case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27073esac
27074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027076 ac_status=$?
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; } &&
27079 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027080 { (case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27083esac
27084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027089 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027090else
27091 echo "$as_me: failed program was:" >&5
27092sed 's/^/| /' conftest.$ac_ext >&5
27093
Reid Spencera773bd52006-08-04 18:18:08 +000027094 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027095fi
Reid Spencera773bd52006-08-04 18:18:08 +000027096
27097rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027098 conftest$ac_exeext conftest.$ac_ext
27099LIBS=$ac_check_lib_save_LIBS
27100fi
Reid Spencera773bd52006-08-04 18:18:08 +000027101{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27102echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027103if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027104 cat >>confdefs.h <<_ACEOF
27105#define HAVE_LIBPSAPI 1
27106_ACEOF
27107
27108 LIBS="-lpsapi $LIBS"
27109
27110fi
27111
27112fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027113
Reid Spencera773bd52006-08-04 18:18:08 +000027114{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27115echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027116if test "${ac_cv_search_lt_dlopen+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27118else
27119 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027120cat >conftest.$ac_ext <<_ACEOF
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
27126
Reid Spencera773bd52006-08-04 18:18:08 +000027127/* Override any GCC internal prototype to avoid an error.
27128 Use char because int might match the return type of a GCC
27129 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027130#ifdef __cplusplus
27131extern "C"
27132#endif
Reid Spencer17795972004-11-18 09:47:37 +000027133char lt_dlopen ();
27134int
27135main ()
27136{
Reid Spencera773bd52006-08-04 18:18:08 +000027137return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027138 ;
27139 return 0;
27140}
27141_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027142for ac_lib in '' ltdl; do
27143 if test -z "$ac_lib"; then
27144 ac_res="none required"
27145 else
27146 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027148 fi
27149 rm -f conftest.$ac_objext conftest$ac_exeext
27150if { (ac_try="$ac_link"
27151case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27154esac
27155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027157 ac_status=$?
27158 grep -v '^ *+' conftest.er1 >conftest.err
27159 rm -f conftest.er1
27160 cat conftest.err >&5
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27164 { (case "(($ac_try" in
27165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27166 *) ac_try_echo=$ac_try;;
27167esac
27168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27169 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027170 ac_status=$?
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); }; } &&
27173 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027174 { (case "(($ac_try" in
27175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176 *) ac_try_echo=$ac_try;;
27177esac
27178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027180 ac_status=$?
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027183 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027184else
27185 echo "$as_me: failed program was:" >&5
27186sed 's/^/| /' conftest.$ac_ext >&5
27187
Reid Spencera773bd52006-08-04 18:18:08 +000027188
Reid Spencer17795972004-11-18 09:47:37 +000027189fi
Reid Spencera773bd52006-08-04 18:18:08 +000027190
27191rm -f core conftest.err conftest.$ac_objext \
27192 conftest$ac_exeext
27193 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27194 break
Reid Spencer17795972004-11-18 09:47:37 +000027195fi
Reid Spencera773bd52006-08-04 18:18:08 +000027196done
27197if test "${ac_cv_search_lt_dlopen+set}" = set; then
27198 :
27199else
27200 ac_cv_search_lt_dlopen=no
27201fi
27202rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027203LIBS=$ac_func_search_save_LIBS
27204fi
Reid Spencera773bd52006-08-04 18:18:08 +000027205{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27206echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27207ac_res=$ac_cv_search_lt_dlopen
27208if test "$ac_res" != no; then
27209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027210
27211cat >>confdefs.h <<\_ACEOF
27212#define HAVE_LT_DLOPEN 1
27213_ACEOF
27214
27215else
27216 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27217 not be available" >&5
27218echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27219 not be available" >&2;}
27220fi
27221
27222
Reid Spencera773bd52006-08-04 18:18:08 +000027223{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27224echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027225if test "${ac_cv_search_dlopen+set}" = set; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27227else
27228 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027229cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027230/* confdefs.h. */
27231_ACEOF
27232cat confdefs.h >>conftest.$ac_ext
27233cat >>conftest.$ac_ext <<_ACEOF
27234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027235
Reid Spencera773bd52006-08-04 18:18:08 +000027236/* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027239#ifdef __cplusplus
27240extern "C"
27241#endif
John Criswell7a73b802003-06-30 21:59:07 +000027242char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027243int
27244main ()
27245{
Reid Spencera773bd52006-08-04 18:18:08 +000027246return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027247 ;
27248 return 0;
27249}
27250_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027251for ac_lib in '' dl; do
27252 if test -z "$ac_lib"; then
27253 ac_res="none required"
27254 else
27255 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027257 fi
27258 rm -f conftest.$ac_objext conftest$ac_exeext
27259if { (ac_try="$ac_link"
27260case "(($ac_try" in
27261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262 *) ac_try_echo=$ac_try;;
27263esac
27264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027266 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027267 grep -v '^ *+' conftest.er1 >conftest.err
27268 rm -f conftest.er1
27269 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27273 { (case "(($ac_try" in
27274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275 *) ac_try_echo=$ac_try;;
27276esac
27277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027279 ac_status=$?
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; } &&
27282 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027283 { (case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27286esac
27287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027289 ac_status=$?
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027292 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027293else
27294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027295sed 's/^/| /' conftest.$ac_ext >&5
27296
Reid Spencera773bd52006-08-04 18:18:08 +000027297
John Criswell7a73b802003-06-30 21:59:07 +000027298fi
Reid Spencera773bd52006-08-04 18:18:08 +000027299
27300rm -f core conftest.err conftest.$ac_objext \
27301 conftest$ac_exeext
27302 if test "${ac_cv_search_dlopen+set}" = set; then
27303 break
John Criswell7a73b802003-06-30 21:59:07 +000027304fi
Reid Spencera773bd52006-08-04 18:18:08 +000027305done
27306if test "${ac_cv_search_dlopen+set}" = set; then
27307 :
27308else
27309 ac_cv_search_dlopen=no
27310fi
27311rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027312LIBS=$ac_func_search_save_LIBS
27313fi
Reid Spencera773bd52006-08-04 18:18:08 +000027314{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27315echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27316ac_res=$ac_cv_search_dlopen
27317if test "$ac_res" != no; then
27318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027319
27320cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027321#define HAVE_DLOPEN 1
27322_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027323
27324else
Brian Gaekec45be042003-10-07 06:01:34 +000027325 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27326echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027327fi
27328
27329
Reid Spencera773bd52006-08-04 18:18:08 +000027330{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27331echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027332if test "${ac_cv_search_mallinfo+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27334else
27335 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027336cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027337/* confdefs.h. */
27338_ACEOF
27339cat confdefs.h >>conftest.$ac_ext
27340cat >>conftest.$ac_ext <<_ACEOF
27341/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027342
Reid Spencera773bd52006-08-04 18:18:08 +000027343/* Override any GCC internal prototype to avoid an error.
27344 Use char because int might match the return type of a GCC
27345 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027346#ifdef __cplusplus
27347extern "C"
27348#endif
John Criswell7a73b802003-06-30 21:59:07 +000027349char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027350int
27351main ()
27352{
Reid Spencera773bd52006-08-04 18:18:08 +000027353return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027354 ;
27355 return 0;
27356}
27357_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027358for ac_lib in '' malloc; do
27359 if test -z "$ac_lib"; then
27360 ac_res="none required"
27361 else
27362 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027364 fi
27365 rm -f conftest.$ac_objext conftest$ac_exeext
27366if { (ac_try="$ac_link"
27367case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27370esac
27371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027374 grep -v '^ *+' conftest.er1 >conftest.err
27375 rm -f conftest.er1
27376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27380 { (case "(($ac_try" in
27381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382 *) ac_try_echo=$ac_try;;
27383esac
27384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027386 ac_status=$?
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); }; } &&
27389 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027390 { (case "(($ac_try" in
27391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392 *) ac_try_echo=$ac_try;;
27393esac
27394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027396 ac_status=$?
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027399 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027400else
27401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027402sed 's/^/| /' conftest.$ac_ext >&5
27403
Reid Spencera773bd52006-08-04 18:18:08 +000027404
John Criswell7a73b802003-06-30 21:59:07 +000027405fi
Reid Spencera773bd52006-08-04 18:18:08 +000027406
27407rm -f core conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext
27409 if test "${ac_cv_search_mallinfo+set}" = set; then
27410 break
John Criswell7a73b802003-06-30 21:59:07 +000027411fi
Reid Spencera773bd52006-08-04 18:18:08 +000027412done
27413if test "${ac_cv_search_mallinfo+set}" = set; then
27414 :
27415else
27416 ac_cv_search_mallinfo=no
27417fi
27418rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027419LIBS=$ac_func_search_save_LIBS
27420fi
Reid Spencera773bd52006-08-04 18:18:08 +000027421{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27422echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27423ac_res=$ac_cv_search_mallinfo
27424if test "$ac_res" != no; then
27425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027426
27427cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027428#define HAVE_MALLINFO 1
27429_ACEOF
27430
27431fi
27432
27433
Reid Spencer0a262ba2005-08-24 10:07:20 +000027434if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027435
Reid Spencera773bd52006-08-04 18:18:08 +000027436{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27437echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027438if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27439 echo $ECHO_N "(cached) $ECHO_C" >&6
27440else
27441 ac_check_lib_save_LIBS=$LIBS
27442LIBS="-lpthread $LIBS"
27443cat >conftest.$ac_ext <<_ACEOF
27444/* confdefs.h. */
27445_ACEOF
27446cat confdefs.h >>conftest.$ac_ext
27447cat >>conftest.$ac_ext <<_ACEOF
27448/* end confdefs.h. */
27449
Reid Spencera773bd52006-08-04 18:18:08 +000027450/* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027453#ifdef __cplusplus
27454extern "C"
27455#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027456char pthread_mutex_init ();
27457int
27458main ()
27459{
Reid Spencera773bd52006-08-04 18:18:08 +000027460return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027461 ;
27462 return 0;
27463}
27464_ACEOF
27465rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027466if { (ac_try="$ac_link"
27467case "(($ac_try" in
27468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469 *) ac_try_echo=$ac_try;;
27470esac
27471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027473 ac_status=$?
27474 grep -v '^ *+' conftest.er1 >conftest.err
27475 rm -f conftest.er1
27476 cat conftest.err >&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27480 { (case "(($ac_try" in
27481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27483esac
27484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027486 ac_status=$?
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; } &&
27489 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027490 { (case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27493esac
27494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027496 ac_status=$?
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; }; then
27499 ac_cv_lib_pthread_pthread_mutex_init=yes
27500else
27501 echo "$as_me: failed program was:" >&5
27502sed 's/^/| /' conftest.$ac_ext >&5
27503
Reid Spencera773bd52006-08-04 18:18:08 +000027504 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027505fi
Reid Spencera773bd52006-08-04 18:18:08 +000027506
27507rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027508 conftest$ac_exeext conftest.$ac_ext
27509LIBS=$ac_check_lib_save_LIBS
27510fi
Reid Spencera773bd52006-08-04 18:18:08 +000027511{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27512echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027513if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27514 cat >>confdefs.h <<_ACEOF
27515#define HAVE_LIBPTHREAD 1
27516_ACEOF
27517
27518 LIBS="-lpthread $LIBS"
27519
27520fi
27521
Reid Spencera773bd52006-08-04 18:18:08 +000027522 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27523echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027524if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27525 echo $ECHO_N "(cached) $ECHO_C" >&6
27526else
27527 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027528cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027529/* confdefs.h. */
27530_ACEOF
27531cat confdefs.h >>conftest.$ac_ext
27532cat >>conftest.$ac_ext <<_ACEOF
27533/* end confdefs.h. */
27534
Reid Spencera773bd52006-08-04 18:18:08 +000027535/* Override any GCC internal prototype to avoid an error.
27536 Use char because int might match the return type of a GCC
27537 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027538#ifdef __cplusplus
27539extern "C"
27540#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027541char pthread_mutex_lock ();
27542int
27543main ()
27544{
Reid Spencera773bd52006-08-04 18:18:08 +000027545return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027546 ;
27547 return 0;
27548}
27549_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027550for ac_lib in '' pthread; do
27551 if test -z "$ac_lib"; then
27552 ac_res="none required"
27553 else
27554 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027556 fi
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558if { (ac_try="$ac_link"
27559case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27562esac
27563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027565 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027566 grep -v '^ *+' conftest.er1 >conftest.err
27567 rm -f conftest.er1
27568 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572 { (case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27575esac
27576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027578 ac_status=$?
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; } &&
27581 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027582 { (case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27585esac
27586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027588 ac_status=$?
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027591 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027592else
27593 echo "$as_me: failed program was:" >&5
27594sed 's/^/| /' conftest.$ac_ext >&5
27595
Reid Spencera773bd52006-08-04 18:18:08 +000027596
Brian Gaeke5f268f72003-12-05 19:29:01 +000027597fi
Reid Spencera773bd52006-08-04 18:18:08 +000027598
27599rm -f core conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext
27601 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27602 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027603fi
Reid Spencera773bd52006-08-04 18:18:08 +000027604done
27605if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27606 :
27607else
27608 ac_cv_search_pthread_mutex_lock=no
27609fi
27610rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027611LIBS=$ac_func_search_save_LIBS
27612fi
Reid Spencera773bd52006-08-04 18:18:08 +000027613{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27614echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27615ac_res=$ac_cv_search_pthread_mutex_lock
27616if test "$ac_res" != no; then
27617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027618
John Criswell40468462004-09-24 21:19:06 +000027619cat >>confdefs.h <<\_ACEOF
27620#define HAVE_PTHREAD_MUTEX_LOCK 1
27621_ACEOF
27622
27623fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027624
Reid Spencer0a262ba2005-08-24 10:07:20 +000027625fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027626
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027627
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027628# Check whether --with-udis86 was given.
27629if test "${with_udis86+set}" = set; then
27630 withval=$with_udis86;
27631 USE_UDIS86=1
27632
27633 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027634 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027635 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27636 esac
27637
27638{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27639echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27640if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642else
27643 ac_check_lib_save_LIBS=$LIBS
27644LIBS="-ludis86 $LIBS"
27645cat >conftest.$ac_ext <<_ACEOF
27646/* confdefs.h. */
27647_ACEOF
27648cat confdefs.h >>conftest.$ac_ext
27649cat >>conftest.$ac_ext <<_ACEOF
27650/* end confdefs.h. */
27651
27652/* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27655#ifdef __cplusplus
27656extern "C"
27657#endif
27658char ud_init ();
27659int
27660main ()
27661{
27662return ud_init ();
27663 ;
27664 return 0;
27665}
27666_ACEOF
27667rm -f conftest.$ac_objext conftest$ac_exeext
27668if { (ac_try="$ac_link"
27669case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27672esac
27673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_link") 2>conftest.er1
27675 ac_status=$?
27676 grep -v '^ *+' conftest.er1 >conftest.err
27677 rm -f conftest.er1
27678 cat conftest.err >&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); } &&
27681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27685esac
27686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_try") 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; } &&
27691 { ac_try='test -s conftest$ac_exeext'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695esac
27696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 ac_cv_lib_udis86_ud_init=yes
27702else
27703 echo "$as_me: failed program was:" >&5
27704sed 's/^/| /' conftest.$ac_ext >&5
27705
27706 ac_cv_lib_udis86_ud_init=no
27707fi
27708
27709rm -f core conftest.err conftest.$ac_objext \
27710 conftest$ac_exeext conftest.$ac_ext
27711LIBS=$ac_check_lib_save_LIBS
27712fi
27713{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27714echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27715if test $ac_cv_lib_udis86_ud_init = yes; then
27716 cat >>confdefs.h <<_ACEOF
27717#define HAVE_LIBUDIS86 1
27718_ACEOF
27719
27720 LIBS="-ludis86 $LIBS"
27721
27722else
27723
27724 echo "Error! You need to have libudis86 around."
27725 exit -1
27726
27727fi
27728
27729
27730else
27731 USE_UDIS86=0
27732
27733fi
27734
27735
27736cat >>confdefs.h <<_ACEOF
27737#define USE_UDIS86 $USE_UDIS86
27738_ACEOF
27739
27740
27741
Reid Spencer59473af2004-12-25 07:31:29 +000027742
27743
27744
27745
27746
27747ac_header_dirent=no
27748for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27749 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027750{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27751echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027753 echo $ECHO_N "(cached) $ECHO_C" >&6
27754else
27755 cat >conftest.$ac_ext <<_ACEOF
27756/* confdefs.h. */
27757_ACEOF
27758cat confdefs.h >>conftest.$ac_ext
27759cat >>conftest.$ac_ext <<_ACEOF
27760/* end confdefs.h. */
27761#include <sys/types.h>
27762#include <$ac_hdr>
27763
27764int
27765main ()
27766{
27767if ((DIR *) 0)
27768return 0;
27769 ;
27770 return 0;
27771}
27772_ACEOF
27773rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027774if { (ac_try="$ac_compile"
27775case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27778esac
27779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027781 ac_status=$?
27782 grep -v '^ *+' conftest.er1 >conftest.err
27783 rm -f conftest.er1
27784 cat conftest.err >&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27788 { (case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27791esac
27792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } &&
27797 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027798 { (case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27801esac
27802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027804 ac_status=$?
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; }; then
27807 eval "$as_ac_Header=yes"
27808else
27809 echo "$as_me: failed program was:" >&5
27810sed 's/^/| /' conftest.$ac_ext >&5
27811
Reid Spencera773bd52006-08-04 18:18:08 +000027812 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027813fi
Reid Spencera773bd52006-08-04 18:18:08 +000027814
27815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027816fi
Reid Spencera773bd52006-08-04 18:18:08 +000027817ac_res=`eval echo '${'$as_ac_Header'}'`
27818 { echo "$as_me:$LINENO: result: $ac_res" >&5
27819echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027820if test `eval echo '${'$as_ac_Header'}'` = yes; then
27821 cat >>confdefs.h <<_ACEOF
27822#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27823_ACEOF
27824
27825ac_header_dirent=$ac_hdr; break
27826fi
27827
27828done
27829# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27830if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027831 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27832echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027833if test "${ac_cv_search_opendir+set}" = set; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27835else
27836 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027837cat >conftest.$ac_ext <<_ACEOF
27838/* confdefs.h. */
27839_ACEOF
27840cat confdefs.h >>conftest.$ac_ext
27841cat >>conftest.$ac_ext <<_ACEOF
27842/* end confdefs.h. */
27843
Reid Spencera773bd52006-08-04 18:18:08 +000027844/* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027847#ifdef __cplusplus
27848extern "C"
27849#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027850char opendir ();
27851int
27852main ()
27853{
Reid Spencera773bd52006-08-04 18:18:08 +000027854return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027855 ;
27856 return 0;
27857}
27858_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027859for ac_lib in '' dir; do
27860 if test -z "$ac_lib"; then
27861 ac_res="none required"
27862 else
27863 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027865 fi
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867if { (ac_try="$ac_link"
27868case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27871esac
27872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027874 ac_status=$?
27875 grep -v '^ *+' conftest.er1 >conftest.err
27876 rm -f conftest.er1
27877 cat conftest.err >&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27881 { (case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27884esac
27885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; } &&
27890 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027891 { (case "(($ac_try" in
27892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27894esac
27895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027897 ac_status=$?
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027900 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027901else
27902 echo "$as_me: failed program was:" >&5
27903sed 's/^/| /' conftest.$ac_ext >&5
27904
Reid Spencera773bd52006-08-04 18:18:08 +000027905
Reid Spencer59473af2004-12-25 07:31:29 +000027906fi
Reid Spencera773bd52006-08-04 18:18:08 +000027907
27908rm -f core conftest.err conftest.$ac_objext \
27909 conftest$ac_exeext
27910 if test "${ac_cv_search_opendir+set}" = set; then
27911 break
Reid Spencer59473af2004-12-25 07:31:29 +000027912fi
Reid Spencera773bd52006-08-04 18:18:08 +000027913done
27914if test "${ac_cv_search_opendir+set}" = set; then
27915 :
27916else
27917 ac_cv_search_opendir=no
27918fi
27919rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027920LIBS=$ac_func_search_save_LIBS
27921fi
Reid Spencera773bd52006-08-04 18:18:08 +000027922{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27923echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27924ac_res=$ac_cv_search_opendir
27925if test "$ac_res" != no; then
27926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027927
27928fi
27929
27930else
Reid Spencera773bd52006-08-04 18:18:08 +000027931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27932echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027933if test "${ac_cv_search_opendir+set}" = set; then
27934 echo $ECHO_N "(cached) $ECHO_C" >&6
27935else
27936 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027937cat >conftest.$ac_ext <<_ACEOF
27938/* confdefs.h. */
27939_ACEOF
27940cat confdefs.h >>conftest.$ac_ext
27941cat >>conftest.$ac_ext <<_ACEOF
27942/* end confdefs.h. */
27943
Reid Spencera773bd52006-08-04 18:18:08 +000027944/* Override any GCC internal prototype to avoid an error.
27945 Use char because int might match the return type of a GCC
27946 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027947#ifdef __cplusplus
27948extern "C"
27949#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027950char opendir ();
27951int
27952main ()
27953{
Reid Spencera773bd52006-08-04 18:18:08 +000027954return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027955 ;
27956 return 0;
27957}
27958_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027959for ac_lib in '' x; do
27960 if test -z "$ac_lib"; then
27961 ac_res="none required"
27962 else
27963 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027965 fi
27966 rm -f conftest.$ac_objext conftest$ac_exeext
27967if { (ac_try="$ac_link"
27968case "(($ac_try" in
27969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970 *) ac_try_echo=$ac_try;;
27971esac
27972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027974 ac_status=$?
27975 grep -v '^ *+' conftest.er1 >conftest.err
27976 rm -f conftest.er1
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981 { (case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27984esac
27985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027987 ac_status=$?
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994esac
27995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028000 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028001else
28002 echo "$as_me: failed program was:" >&5
28003sed 's/^/| /' conftest.$ac_ext >&5
28004
Reid Spencera773bd52006-08-04 18:18:08 +000028005
Reid Spencer59473af2004-12-25 07:31:29 +000028006fi
Reid Spencera773bd52006-08-04 18:18:08 +000028007
28008rm -f core conftest.err conftest.$ac_objext \
28009 conftest$ac_exeext
28010 if test "${ac_cv_search_opendir+set}" = set; then
28011 break
Reid Spencer59473af2004-12-25 07:31:29 +000028012fi
Reid Spencera773bd52006-08-04 18:18:08 +000028013done
28014if test "${ac_cv_search_opendir+set}" = set; then
28015 :
28016else
28017 ac_cv_search_opendir=no
28018fi
28019rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028020LIBS=$ac_func_search_save_LIBS
28021fi
Reid Spencera773bd52006-08-04 18:18:08 +000028022{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28023echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28024ac_res=$ac_cv_search_opendir
28025if test "$ac_res" != no; then
28026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028027
28028fi
28029
28030fi
28031
Reid Spencera773bd52006-08-04 18:18:08 +000028032{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28033echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028034if test "${ac_cv_header_mmap_anon+set}" = set; then
28035 echo $ECHO_N "(cached) $ECHO_C" >&6
28036else
28037 ac_ext=c
28038ac_cpp='$CPP $CPPFLAGS'
28039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28041ac_compiler_gnu=$ac_cv_c_compiler_gnu
28042
28043 cat >conftest.$ac_ext <<_ACEOF
28044/* confdefs.h. */
28045_ACEOF
28046cat confdefs.h >>conftest.$ac_ext
28047cat >>conftest.$ac_ext <<_ACEOF
28048/* end confdefs.h. */
28049#include <sys/mman.h>
28050#include <unistd.h>
28051#include <fcntl.h>
28052int
28053main ()
28054{
28055mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28056 ;
28057 return 0;
28058}
28059_ACEOF
28060rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028061if { (ac_try="$ac_compile"
28062case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28065esac
28066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028068 ac_status=$?
28069 grep -v '^ *+' conftest.er1 >conftest.err
28070 rm -f conftest.er1
28071 cat conftest.err >&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28075 { (case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; } &&
28084 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028085 { (case "(($ac_try" in
28086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087 *) ac_try_echo=$ac_try;;
28088esac
28089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028091 ac_status=$?
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 ac_cv_header_mmap_anon=yes
28095else
28096 echo "$as_me: failed program was:" >&5
28097sed 's/^/| /' conftest.$ac_ext >&5
28098
Reid Spencera773bd52006-08-04 18:18:08 +000028099 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028100fi
Reid Spencera773bd52006-08-04 18:18:08 +000028101
28102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028103 ac_ext=c
28104ac_cpp='$CPP $CPPFLAGS'
28105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28107ac_compiler_gnu=$ac_cv_c_compiler_gnu
28108
28109
28110fi
Reid Spencera773bd52006-08-04 18:18:08 +000028111{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28112echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028113if test "$ac_cv_header_mmap_anon" = yes; then
28114
28115cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028116#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028117_ACEOF
28118
28119fi
28120
Reid Spencera773bd52006-08-04 18:18:08 +000028121{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28122echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028123if test "${ac_cv_header_stat_broken+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28125else
28126 cat >conftest.$ac_ext <<_ACEOF
28127/* confdefs.h. */
28128_ACEOF
28129cat confdefs.h >>conftest.$ac_ext
28130cat >>conftest.$ac_ext <<_ACEOF
28131/* end confdefs.h. */
28132#include <sys/types.h>
28133#include <sys/stat.h>
28134
Reid Spencera773bd52006-08-04 18:18:08 +000028135#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028136# if S_ISBLK (S_IFDIR)
28137You lose.
28138# endif
28139#endif
28140
Reid Spencera773bd52006-08-04 18:18:08 +000028141#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028142# if S_ISBLK (S_IFCHR)
28143You lose.
28144# endif
28145#endif
28146
Reid Spencera773bd52006-08-04 18:18:08 +000028147#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028148# if S_ISLNK (S_IFREG)
28149You lose.
28150# endif
28151#endif
28152
Reid Spencera773bd52006-08-04 18:18:08 +000028153#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028154# if S_ISSOCK (S_IFREG)
28155You lose.
28156# endif
28157#endif
28158
28159_ACEOF
28160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28161 $EGREP "You lose" >/dev/null 2>&1; then
28162 ac_cv_header_stat_broken=yes
28163else
28164 ac_cv_header_stat_broken=no
28165fi
28166rm -f conftest*
28167
28168fi
Reid Spencera773bd52006-08-04 18:18:08 +000028169{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28170echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028171if test $ac_cv_header_stat_broken = yes; then
28172
28173cat >>confdefs.h <<\_ACEOF
28174#define STAT_MACROS_BROKEN 1
28175_ACEOF
28176
28177fi
28178
Reid Spencera773bd52006-08-04 18:18:08 +000028179{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28180echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028181if test "${ac_cv_header_stdc+set}" = set; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28183else
28184 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028185/* confdefs.h. */
28186_ACEOF
28187cat confdefs.h >>conftest.$ac_ext
28188cat >>conftest.$ac_ext <<_ACEOF
28189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028190#include <stdlib.h>
28191#include <stdarg.h>
28192#include <string.h>
28193#include <float.h>
28194
John Criswell0c38eaf2003-09-10 15:17:25 +000028195int
28196main ()
28197{
28198
28199 ;
28200 return 0;
28201}
John Criswell7a73b802003-06-30 21:59:07 +000028202_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028203rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028204if { (ac_try="$ac_compile"
28205case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28208esac
28209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028211 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028212 grep -v '^ *+' conftest.er1 >conftest.err
28213 rm -f conftest.er1
28214 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028216 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28218 { (case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28221esac
28222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028224 ac_status=$?
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; } &&
28227 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028228 { (case "(($ac_try" in
28229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230 *) ac_try_echo=$ac_try;;
28231esac
28232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028234 ac_status=$?
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028237 ac_cv_header_stdc=yes
28238else
28239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028240sed 's/^/| /' conftest.$ac_ext >&5
28241
Reid Spencera773bd52006-08-04 18:18:08 +000028242 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028243fi
Reid Spencera773bd52006-08-04 18:18:08 +000028244
28245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028246
28247if test $ac_cv_header_stdc = yes; then
28248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028250/* confdefs.h. */
28251_ACEOF
28252cat confdefs.h >>conftest.$ac_ext
28253cat >>conftest.$ac_ext <<_ACEOF
28254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028255#include <string.h>
28256
28257_ACEOF
28258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028259 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028260 :
28261else
28262 ac_cv_header_stdc=no
28263fi
28264rm -f conftest*
28265
28266fi
28267
28268if test $ac_cv_header_stdc = yes; then
28269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28270 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028271/* confdefs.h. */
28272_ACEOF
28273cat confdefs.h >>conftest.$ac_ext
28274cat >>conftest.$ac_ext <<_ACEOF
28275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028276#include <stdlib.h>
28277
28278_ACEOF
28279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028280 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028281 :
28282else
28283 ac_cv_header_stdc=no
28284fi
28285rm -f conftest*
28286
28287fi
28288
28289if test $ac_cv_header_stdc = yes; then
28290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28291 if test "$cross_compiling" = yes; then
28292 :
28293else
28294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028295/* confdefs.h. */
28296_ACEOF
28297cat confdefs.h >>conftest.$ac_ext
28298cat >>conftest.$ac_ext <<_ACEOF
28299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028300#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028301#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028302#if ((' ' & 0x0FF) == 0x020)
28303# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28304# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28305#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028306# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028307 (('a' <= (c) && (c) <= 'i') \
28308 || ('j' <= (c) && (c) <= 'r') \
28309 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028310# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28311#endif
28312
28313#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28314int
28315main ()
28316{
28317 int i;
28318 for (i = 0; i < 256; i++)
28319 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028320 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028321 return 2;
28322 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028323}
28324_ACEOF
28325rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028326if { (ac_try="$ac_link"
28327case "(($ac_try" in
28328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329 *) ac_try_echo=$ac_try;;
28330esac
28331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28332 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028333 ac_status=$?
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028336 { (case "(($ac_try" in
28337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338 *) ac_try_echo=$ac_try;;
28339esac
28340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028342 ac_status=$?
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); }; }; then
28345 :
28346else
28347 echo "$as_me: program exited with status $ac_status" >&5
28348echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028349sed 's/^/| /' conftest.$ac_ext >&5
28350
John Criswell7a73b802003-06-30 21:59:07 +000028351( exit $ac_status )
28352ac_cv_header_stdc=no
28353fi
Reid Spencera773bd52006-08-04 18:18:08 +000028354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28355fi
28356
28357
John Criswell7a73b802003-06-30 21:59:07 +000028358fi
28359fi
Reid Spencera773bd52006-08-04 18:18:08 +000028360{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28361echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028362if test $ac_cv_header_stdc = yes; then
28363
28364cat >>confdefs.h <<\_ACEOF
28365#define STDC_HEADERS 1
28366_ACEOF
28367
28368fi
28369
Reid Spencera773bd52006-08-04 18:18:08 +000028370{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28371echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028372if test "${ac_cv_header_sys_wait_h+set}" = set; then
28373 echo $ECHO_N "(cached) $ECHO_C" >&6
28374else
28375 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028376/* confdefs.h. */
28377_ACEOF
28378cat confdefs.h >>conftest.$ac_ext
28379cat >>conftest.$ac_ext <<_ACEOF
28380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028381#include <sys/types.h>
28382#include <sys/wait.h>
28383#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028384# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028385#endif
28386#ifndef WIFEXITED
28387# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28388#endif
28389
John Criswell7a73b802003-06-30 21:59:07 +000028390int
28391main ()
28392{
28393 int s;
28394 wait (&s);
28395 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28396 ;
28397 return 0;
28398}
28399_ACEOF
28400rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028401if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028408 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028409 grep -v '^ *+' conftest.er1 >conftest.err
28410 rm -f conftest.er1
28411 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28415 { (case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28418esac
28419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028421 ac_status=$?
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; } &&
28424 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028425 { (case "(($ac_try" in
28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427 *) ac_try_echo=$ac_try;;
28428esac
28429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_cv_header_sys_wait_h=yes
28435else
28436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028437sed 's/^/| /' conftest.$ac_ext >&5
28438
Reid Spencera773bd52006-08-04 18:18:08 +000028439 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028440fi
Reid Spencera773bd52006-08-04 18:18:08 +000028441
28442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028443fi
Reid Spencera773bd52006-08-04 18:18:08 +000028444{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28445echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028446if test $ac_cv_header_sys_wait_h = yes; then
28447
28448cat >>confdefs.h <<\_ACEOF
28449#define HAVE_SYS_WAIT_H 1
28450_ACEOF
28451
28452fi
28453
Reid Spencera773bd52006-08-04 18:18:08 +000028454{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28455echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028456if test "${ac_cv_header_time+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28458else
28459 cat >conftest.$ac_ext <<_ACEOF
28460/* confdefs.h. */
28461_ACEOF
28462cat confdefs.h >>conftest.$ac_ext
28463cat >>conftest.$ac_ext <<_ACEOF
28464/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028465#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028466#include <sys/time.h>
28467#include <time.h>
28468
28469int
28470main ()
28471{
28472if ((struct tm *) 0)
28473return 0;
28474 ;
28475 return 0;
28476}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028477_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028478rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028479if { (ac_try="$ac_compile"
28480case "(($ac_try" in
28481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 *) ac_try_echo=$ac_try;;
28483esac
28484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028486 ac_status=$?
28487 grep -v '^ *+' conftest.er1 >conftest.err
28488 rm -f conftest.er1
28489 cat conftest.err >&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028491 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28493 { (case "(($ac_try" in
28494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495 *) ac_try_echo=$ac_try;;
28496esac
28497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028499 ac_status=$?
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); }; } &&
28502 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028503 { (case "(($ac_try" in
28504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505 *) ac_try_echo=$ac_try;;
28506esac
28507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028509 ac_status=$?
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; }; then
28512 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028513else
28514 echo "$as_me: failed program was:" >&5
28515sed 's/^/| /' conftest.$ac_ext >&5
28516
Reid Spencera773bd52006-08-04 18:18:08 +000028517 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028518fi
Reid Spencera773bd52006-08-04 18:18:08 +000028519
28520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028521fi
Reid Spencera773bd52006-08-04 18:18:08 +000028522{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28523echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028524if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028525
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028526cat >>confdefs.h <<\_ACEOF
28527#define TIME_WITH_SYS_TIME 1
28528_ACEOF
28529
28530fi
28531
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028532
Reid Spencer59473af2004-12-25 07:31:29 +000028533
28534
28535
28536
28537
28538
28539for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28540do
28541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028546 echo $ECHO_N "(cached) $ECHO_C" >&6
28547fi
Reid Spencera773bd52006-08-04 18:18:08 +000028548ac_res=`eval echo '${'$as_ac_Header'}'`
28549 { echo "$as_me:$LINENO: result: $ac_res" >&5
28550echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028551else
28552 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028553{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028555cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028556/* confdefs.h. */
28557_ACEOF
28558cat confdefs.h >>conftest.$ac_ext
28559cat >>conftest.$ac_ext <<_ACEOF
28560/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028561$ac_includes_default
28562#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028563_ACEOF
28564rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028565if { (ac_try="$ac_compile"
28566case "(($ac_try" in
28567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568 *) ac_try_echo=$ac_try;;
28569esac
28570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28571 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028572 ac_status=$?
28573 grep -v '^ *+' conftest.er1 >conftest.err
28574 rm -f conftest.er1
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28579 { (case "(($ac_try" in
28580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 *) ac_try_echo=$ac_try;;
28582esac
28583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028585 ac_status=$?
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); }; } &&
28588 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028589 { (case "(($ac_try" in
28590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591 *) ac_try_echo=$ac_try;;
28592esac
28593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028595 ac_status=$?
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028598 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028599else
28600 echo "$as_me: failed program was:" >&5
28601sed 's/^/| /' conftest.$ac_ext >&5
28602
Reid Spencera773bd52006-08-04 18:18:08 +000028603 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028604fi
Reid Spencera773bd52006-08-04 18:18:08 +000028605
28606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28607{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28608echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028609
Reid Spencer59473af2004-12-25 07:31:29 +000028610# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028611{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028613cat >conftest.$ac_ext <<_ACEOF
28614/* confdefs.h. */
28615_ACEOF
28616cat confdefs.h >>conftest.$ac_ext
28617cat >>conftest.$ac_ext <<_ACEOF
28618/* end confdefs.h. */
28619#include <$ac_header>
28620_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028621if { (ac_try="$ac_cpp conftest.$ac_ext"
28622case "(($ac_try" in
28623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624 *) ac_try_echo=$ac_try;;
28625esac
28626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028628 ac_status=$?
28629 grep -v '^ *+' conftest.er1 >conftest.err
28630 rm -f conftest.er1
28631 cat conftest.err >&5
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); } >/dev/null; then
28634 if test -s conftest.err; then
28635 ac_cpp_err=$ac_c_preproc_warn_flag
28636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28637 else
28638 ac_cpp_err=
28639 fi
28640else
28641 ac_cpp_err=yes
28642fi
28643if test -z "$ac_cpp_err"; then
28644 ac_header_preproc=yes
28645else
28646 echo "$as_me: failed program was:" >&5
28647sed 's/^/| /' conftest.$ac_ext >&5
28648
28649 ac_header_preproc=no
28650fi
Reid Spencera773bd52006-08-04 18:18:08 +000028651
Reid Spencer59473af2004-12-25 07:31:29 +000028652rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028653{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28654echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028655
28656# So? What about this header?
28657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28658 yes:no: )
28659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28660echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28662echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28663 ac_header_preproc=yes
28664 ;;
28665 no:yes:* )
28666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28669echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28671echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28673echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028678 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028679## ----------------------------------- ##
28680## Report this to llvmbugs@cs.uiuc.edu ##
28681## ----------------------------------- ##
28682_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028683 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028684 ;;
28685esac
Reid Spencera773bd52006-08-04 18:18:08 +000028686{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028689 echo $ECHO_N "(cached) $ECHO_C" >&6
28690else
28691 eval "$as_ac_Header=\$ac_header_preproc"
28692fi
Reid Spencera773bd52006-08-04 18:18:08 +000028693ac_res=`eval echo '${'$as_ac_Header'}'`
28694 { echo "$as_me:$LINENO: result: $ac_res" >&5
28695echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028696
28697fi
Reid Spencer59473af2004-12-25 07:31:29 +000028698if test `eval echo '${'$as_ac_Header'}'` = yes; then
28699 cat >>confdefs.h <<_ACEOF
28700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028701_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028702
28703fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028704
Reid Spencer59473af2004-12-25 07:31:29 +000028705done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028706
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028707
28708
Reid Spencer59473af2004-12-25 07:31:29 +000028709
28710
28711
28712
Reid Spencercdb08a32006-06-05 16:11:07 +000028713for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028714do
28715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028720 echo $ECHO_N "(cached) $ECHO_C" >&6
28721fi
Reid Spencera773bd52006-08-04 18:18:08 +000028722ac_res=`eval echo '${'$as_ac_Header'}'`
28723 { echo "$as_me:$LINENO: result: $ac_res" >&5
28724echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028725else
28726 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028727{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028729cat >conftest.$ac_ext <<_ACEOF
28730/* confdefs.h. */
28731_ACEOF
28732cat confdefs.h >>conftest.$ac_ext
28733cat >>conftest.$ac_ext <<_ACEOF
28734/* end confdefs.h. */
28735$ac_includes_default
28736#include <$ac_header>
28737_ACEOF
28738rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028739if { (ac_try="$ac_compile"
28740case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28743esac
28744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028746 ac_status=$?
28747 grep -v '^ *+' conftest.er1 >conftest.err
28748 rm -f conftest.er1
28749 cat conftest.err >&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28753 { (case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756esac
28757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028759 ac_status=$?
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; } &&
28762 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028763 { (case "(($ac_try" in
28764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765 *) ac_try_echo=$ac_try;;
28766esac
28767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028769 ac_status=$?
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); }; }; then
28772 ac_header_compiler=yes
28773else
28774 echo "$as_me: failed program was:" >&5
28775sed 's/^/| /' conftest.$ac_ext >&5
28776
Reid Spencera773bd52006-08-04 18:18:08 +000028777 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028778fi
Reid Spencera773bd52006-08-04 18:18:08 +000028779
28780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28781{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28782echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028783
28784# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028785{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028787cat >conftest.$ac_ext <<_ACEOF
28788/* confdefs.h. */
28789_ACEOF
28790cat confdefs.h >>conftest.$ac_ext
28791cat >>conftest.$ac_ext <<_ACEOF
28792/* end confdefs.h. */
28793#include <$ac_header>
28794_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028795if { (ac_try="$ac_cpp conftest.$ac_ext"
28796case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28799esac
28800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028802 ac_status=$?
28803 grep -v '^ *+' conftest.er1 >conftest.err
28804 rm -f conftest.er1
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } >/dev/null; then
28808 if test -s conftest.err; then
28809 ac_cpp_err=$ac_c_preproc_warn_flag
28810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28811 else
28812 ac_cpp_err=
28813 fi
28814else
28815 ac_cpp_err=yes
28816fi
28817if test -z "$ac_cpp_err"; then
28818 ac_header_preproc=yes
28819else
28820 echo "$as_me: failed program was:" >&5
28821sed 's/^/| /' conftest.$ac_ext >&5
28822
28823 ac_header_preproc=no
28824fi
Reid Spencera773bd52006-08-04 18:18:08 +000028825
Reid Spencer59473af2004-12-25 07:31:29 +000028826rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028827{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28828echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028829
28830# So? What about this header?
28831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28832 yes:no: )
28833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28837 ac_header_preproc=yes
28838 ;;
28839 no:yes:* )
28840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028852 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028853## ----------------------------------- ##
28854## Report this to llvmbugs@cs.uiuc.edu ##
28855## ----------------------------------- ##
28856_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028857 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028858 ;;
28859esac
Reid Spencera773bd52006-08-04 18:18:08 +000028860{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028863 echo $ECHO_N "(cached) $ECHO_C" >&6
28864else
28865 eval "$as_ac_Header=\$ac_header_preproc"
28866fi
Reid Spencera773bd52006-08-04 18:18:08 +000028867ac_res=`eval echo '${'$as_ac_Header'}'`
28868 { echo "$as_me:$LINENO: result: $ac_res" >&5
28869echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028870
28871fi
28872if test `eval echo '${'$as_ac_Header'}'` = yes; then
28873 cat >>confdefs.h <<_ACEOF
28874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28875_ACEOF
28876
28877fi
28878
28879done
28880
28881
Reid Spencerbe3e4192007-08-17 05:45:26 +000028882for ac_header in windows.h
28883do
28884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28889 echo $ECHO_N "(cached) $ECHO_C" >&6
28890fi
28891ac_res=`eval echo '${'$as_ac_Header'}'`
28892 { echo "$as_me:$LINENO: result: $ac_res" >&5
28893echo "${ECHO_T}$ac_res" >&6; }
28894else
28895 # Is the header compilable?
28896{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28898cat >conftest.$ac_ext <<_ACEOF
28899/* confdefs.h. */
28900_ACEOF
28901cat confdefs.h >>conftest.$ac_ext
28902cat >>conftest.$ac_ext <<_ACEOF
28903/* end confdefs.h. */
28904$ac_includes_default
28905#include <$ac_header>
28906_ACEOF
28907rm -f conftest.$ac_objext
28908if { (ac_try="$ac_compile"
28909case "(($ac_try" in
28910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911 *) ac_try_echo=$ac_try;;
28912esac
28913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914 (eval "$ac_compile") 2>conftest.er1
28915 ac_status=$?
28916 grep -v '^ *+' conftest.er1 >conftest.err
28917 rm -f conftest.er1
28918 cat conftest.err >&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); } &&
28921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28922 { (case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28925esac
28926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_try") 2>&5
28928 ac_status=$?
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; } &&
28931 { ac_try='test -s conftest.$ac_objext'
28932 { (case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28935esac
28936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_try") 2>&5
28938 ac_status=$?
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); }; }; then
28941 ac_header_compiler=yes
28942else
28943 echo "$as_me: failed program was:" >&5
28944sed 's/^/| /' conftest.$ac_ext >&5
28945
28946 ac_header_compiler=no
28947fi
28948
28949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28950{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28951echo "${ECHO_T}$ac_header_compiler" >&6; }
28952
28953# Is the header present?
28954{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28956cat >conftest.$ac_ext <<_ACEOF
28957/* confdefs.h. */
28958_ACEOF
28959cat confdefs.h >>conftest.$ac_ext
28960cat >>conftest.$ac_ext <<_ACEOF
28961/* end confdefs.h. */
28962#include <$ac_header>
28963_ACEOF
28964if { (ac_try="$ac_cpp conftest.$ac_ext"
28965case "(($ac_try" in
28966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28967 *) ac_try_echo=$ac_try;;
28968esac
28969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28971 ac_status=$?
28972 grep -v '^ *+' conftest.er1 >conftest.err
28973 rm -f conftest.er1
28974 cat conftest.err >&5
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); } >/dev/null; then
28977 if test -s conftest.err; then
28978 ac_cpp_err=$ac_c_preproc_warn_flag
28979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28980 else
28981 ac_cpp_err=
28982 fi
28983else
28984 ac_cpp_err=yes
28985fi
28986if test -z "$ac_cpp_err"; then
28987 ac_header_preproc=yes
28988else
28989 echo "$as_me: failed program was:" >&5
28990sed 's/^/| /' conftest.$ac_ext >&5
28991
28992 ac_header_preproc=no
28993fi
28994
28995rm -f conftest.err conftest.$ac_ext
28996{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28997echo "${ECHO_T}$ac_header_preproc" >&6; }
28998
28999# So? What about this header?
29000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29001 yes:no: )
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29006 ac_header_preproc=yes
29007 ;;
29008 no:yes:* )
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29021 ( cat <<\_ASBOX
29022## ----------------------------------- ##
29023## Report this to llvmbugs@cs.uiuc.edu ##
29024## ----------------------------------- ##
29025_ASBOX
29026 ) | sed "s/^/$as_me: WARNING: /" >&2
29027 ;;
29028esac
29029{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29033else
29034 eval "$as_ac_Header=\$ac_header_preproc"
29035fi
29036ac_res=`eval echo '${'$as_ac_Header'}'`
29037 { echo "$as_me:$LINENO: result: $ac_res" >&5
29038echo "${ECHO_T}$ac_res" >&6; }
29039
29040fi
29041if test `eval echo '${'$as_ac_Header'}'` = yes; then
29042 cat >>confdefs.h <<_ACEOF
29043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29044_ACEOF
29045
29046fi
29047
29048done
Reid Spencer59473af2004-12-25 07:31:29 +000029049
29050
29051
29052
Reid Spencerbe3e4192007-08-17 05:45:26 +000029053
29054for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029055do
29056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062fi
Reid Spencera773bd52006-08-04 18:18:08 +000029063ac_res=`eval echo '${'$as_ac_Header'}'`
29064 { echo "$as_me:$LINENO: result: $ac_res" >&5
29065echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029066else
29067 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029068{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029070cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029071/* confdefs.h. */
29072_ACEOF
29073cat confdefs.h >>conftest.$ac_ext
29074cat >>conftest.$ac_ext <<_ACEOF
29075/* end confdefs.h. */
29076$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029077#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029078_ACEOF
29079rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029080if { (ac_try="$ac_compile"
29081case "(($ac_try" in
29082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29083 *) ac_try_echo=$ac_try;;
29084esac
29085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29086 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029088 grep -v '^ *+' conftest.er1 >conftest.err
29089 rm -f conftest.er1
29090 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29094 { (case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29097esac
29098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; } &&
29103 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029104 { (case "(($ac_try" in
29105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29106 *) ac_try_echo=$ac_try;;
29107esac
29108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29109 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029110 ac_status=$?
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
29113 ac_header_compiler=yes
29114else
29115 echo "$as_me: failed program was:" >&5
29116sed 's/^/| /' conftest.$ac_ext >&5
29117
Reid Spencera773bd52006-08-04 18:18:08 +000029118 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029119fi
Reid Spencera773bd52006-08-04 18:18:08 +000029120
29121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29123echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029124
29125# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029128cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029129/* confdefs.h. */
29130_ACEOF
29131cat confdefs.h >>conftest.$ac_ext
29132cat >>conftest.$ac_ext <<_ACEOF
29133/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029134#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029135_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029136if { (ac_try="$ac_cpp conftest.$ac_ext"
29137case "(($ac_try" in
29138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139 *) ac_try_echo=$ac_try;;
29140esac
29141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029143 ac_status=$?
29144 grep -v '^ *+' conftest.er1 >conftest.err
29145 rm -f conftest.er1
29146 cat conftest.err >&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); } >/dev/null; then
29149 if test -s conftest.err; then
29150 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029152 else
29153 ac_cpp_err=
29154 fi
29155else
29156 ac_cpp_err=yes
29157fi
29158if test -z "$ac_cpp_err"; then
29159 ac_header_preproc=yes
29160else
29161 echo "$as_me: failed program was:" >&5
29162sed 's/^/| /' conftest.$ac_ext >&5
29163
29164 ac_header_preproc=no
29165fi
Reid Spencera773bd52006-08-04 18:18:08 +000029166
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029167rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029168{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29169echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029170
29171# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29173 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029178 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029179 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029180 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029193 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029194## ----------------------------------- ##
29195## Report this to llvmbugs@cs.uiuc.edu ##
29196## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029197_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029198 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029199 ;;
29200esac
Reid Spencera773bd52006-08-04 18:18:08 +000029201{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029204 echo $ECHO_N "(cached) $ECHO_C" >&6
29205else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029206 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029207fi
Reid Spencera773bd52006-08-04 18:18:08 +000029208ac_res=`eval echo '${'$as_ac_Header'}'`
29209 { echo "$as_me:$LINENO: result: $ac_res" >&5
29210echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029211
29212fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029213if test `eval echo '${'$as_ac_Header'}'` = yes; then
29214 cat >>confdefs.h <<_ACEOF
29215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029216_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029217
29218fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029219
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029220done
29221
John Criswell7ed43ad2004-07-19 16:12:29 +000029222
Reid Spencercdb08a32006-06-05 16:11:07 +000029223
Reid Spencera6d990a2006-09-14 06:17:21 +000029224
29225for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029226do
29227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029232 echo $ECHO_N "(cached) $ECHO_C" >&6
29233fi
Reid Spencera773bd52006-08-04 18:18:08 +000029234ac_res=`eval echo '${'$as_ac_Header'}'`
29235 { echo "$as_me:$LINENO: result: $ac_res" >&5
29236echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029237else
29238 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029239{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029241cat >conftest.$ac_ext <<_ACEOF
29242/* confdefs.h. */
29243_ACEOF
29244cat confdefs.h >>conftest.$ac_ext
29245cat >>conftest.$ac_ext <<_ACEOF
29246/* end confdefs.h. */
29247$ac_includes_default
29248#include <$ac_header>
29249_ACEOF
29250rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029251if { (ac_try="$ac_compile"
29252case "(($ac_try" in
29253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29254 *) ac_try_echo=$ac_try;;
29255esac
29256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29257 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029258 ac_status=$?
29259 grep -v '^ *+' conftest.er1 >conftest.err
29260 rm -f conftest.er1
29261 cat conftest.err >&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29265 { (case "(($ac_try" in
29266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267 *) ac_try_echo=$ac_try;;
29268esac
29269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029271 ac_status=$?
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; } &&
29274 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029275 { (case "(($ac_try" in
29276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277 *) ac_try_echo=$ac_try;;
29278esac
29279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29280 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029281 ac_status=$?
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; }; then
29284 ac_header_compiler=yes
29285else
29286 echo "$as_me: failed program was:" >&5
29287sed 's/^/| /' conftest.$ac_ext >&5
29288
Reid Spencera773bd52006-08-04 18:18:08 +000029289 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029290fi
Reid Spencera773bd52006-08-04 18:18:08 +000029291
29292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29293{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29294echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029295
29296# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029297{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029299cat >conftest.$ac_ext <<_ACEOF
29300/* confdefs.h. */
29301_ACEOF
29302cat confdefs.h >>conftest.$ac_ext
29303cat >>conftest.$ac_ext <<_ACEOF
29304/* end confdefs.h. */
29305#include <$ac_header>
29306_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029307if { (ac_try="$ac_cpp conftest.$ac_ext"
29308case "(($ac_try" in
29309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310 *) ac_try_echo=$ac_try;;
29311esac
29312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029314 ac_status=$?
29315 grep -v '^ *+' conftest.er1 >conftest.err
29316 rm -f conftest.er1
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } >/dev/null; then
29320 if test -s conftest.err; then
29321 ac_cpp_err=$ac_c_preproc_warn_flag
29322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29323 else
29324 ac_cpp_err=
29325 fi
29326else
29327 ac_cpp_err=yes
29328fi
29329if test -z "$ac_cpp_err"; then
29330 ac_header_preproc=yes
29331else
29332 echo "$as_me: failed program was:" >&5
29333sed 's/^/| /' conftest.$ac_ext >&5
29334
29335 ac_header_preproc=no
29336fi
Reid Spencera773bd52006-08-04 18:18:08 +000029337
Chris Lattner0b142592005-11-14 06:57:34 +000029338rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029339{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29340echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029341
29342# So? What about this header?
29343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29344 yes:no: )
29345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29349 ac_header_preproc=yes
29350 ;;
29351 no:yes:* )
29352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029364 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029365## ----------------------------------- ##
29366## Report this to llvmbugs@cs.uiuc.edu ##
29367## ----------------------------------- ##
29368_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029369 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029370 ;;
29371esac
Reid Spencera773bd52006-08-04 18:18:08 +000029372{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029375 echo $ECHO_N "(cached) $ECHO_C" >&6
29376else
29377 eval "$as_ac_Header=\$ac_header_preproc"
29378fi
Reid Spencera773bd52006-08-04 18:18:08 +000029379ac_res=`eval echo '${'$as_ac_Header'}'`
29380 { echo "$as_me:$LINENO: result: $ac_res" >&5
29381echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029382
29383fi
29384if test `eval echo '${'$as_ac_Header'}'` = yes; then
29385 cat >>confdefs.h <<_ACEOF
29386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29387_ACEOF
29388
29389fi
29390
29391done
29392
Reid Spencer0a262ba2005-08-24 10:07:20 +000029393if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029394
29395for ac_header in pthread.h
29396do
29397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029402 echo $ECHO_N "(cached) $ECHO_C" >&6
29403fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029404ac_res=`eval echo '${'$as_ac_Header'}'`
29405 { echo "$as_me:$LINENO: result: $ac_res" >&5
29406echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029407else
29408 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029409{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029411cat >conftest.$ac_ext <<_ACEOF
29412/* confdefs.h. */
29413_ACEOF
29414cat confdefs.h >>conftest.$ac_ext
29415cat >>conftest.$ac_ext <<_ACEOF
29416/* end confdefs.h. */
29417$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029418#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029419_ACEOF
29420rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029421if { (ac_try="$ac_compile"
29422case "(($ac_try" in
29423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424 *) ac_try_echo=$ac_try;;
29425esac
29426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029428 ac_status=$?
29429 grep -v '^ *+' conftest.er1 >conftest.err
29430 rm -f conftest.er1
29431 cat conftest.err >&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29435 { (case "(($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_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029441 ac_status=$?
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); }; } &&
29444 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029445 { (case "(($ac_try" in
29446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29447 *) ac_try_echo=$ac_try;;
29448esac
29449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29450 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029451 ac_status=$?
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; }; then
29454 ac_header_compiler=yes
29455else
29456 echo "$as_me: failed program was:" >&5
29457sed 's/^/| /' conftest.$ac_ext >&5
29458
Reid Spencera773bd52006-08-04 18:18:08 +000029459 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029460fi
Reid Spencera773bd52006-08-04 18:18:08 +000029461
29462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29463{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29464echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029465
29466# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029467{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029469cat >conftest.$ac_ext <<_ACEOF
29470/* confdefs.h. */
29471_ACEOF
29472cat confdefs.h >>conftest.$ac_ext
29473cat >>conftest.$ac_ext <<_ACEOF
29474/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029475#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029477if { (ac_try="$ac_cpp conftest.$ac_ext"
29478case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29481esac
29482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029484 ac_status=$?
29485 grep -v '^ *+' conftest.er1 >conftest.err
29486 rm -f conftest.er1
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } >/dev/null; then
29490 if test -s conftest.err; then
29491 ac_cpp_err=$ac_c_preproc_warn_flag
29492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29493 else
29494 ac_cpp_err=
29495 fi
29496else
29497 ac_cpp_err=yes
29498fi
29499if test -z "$ac_cpp_err"; then
29500 ac_header_preproc=yes
29501else
29502 echo "$as_me: failed program was:" >&5
29503sed 's/^/| /' conftest.$ac_ext >&5
29504
29505 ac_header_preproc=no
29506fi
Reid Spencera773bd52006-08-04 18:18:08 +000029507
Reid Spencer0a262ba2005-08-24 10:07:20 +000029508rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029509{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29510echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029511
29512# So? What about this header?
29513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29514 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029519 ac_header_preproc=yes
29520 ;;
29521 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29525echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29529echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029534 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029535## ----------------------------------- ##
29536## Report this to llvmbugs@cs.uiuc.edu ##
29537## ----------------------------------- ##
29538_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029539 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029540 ;;
29541esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029542{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029545 echo $ECHO_N "(cached) $ECHO_C" >&6
29546else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029547 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029548fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029549ac_res=`eval echo '${'$as_ac_Header'}'`
29550 { echo "$as_me:$LINENO: result: $ac_res" >&5
29551echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029552
29553fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029554if test `eval echo '${'$as_ac_Header'}'` = yes; then
29555 cat >>confdefs.h <<_ACEOF
29556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29557_ACEOF
29558 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029559
29560else
29561 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029562
29563fi
29564
Reid Spencerbe3e4192007-08-17 05:45:26 +000029565done
Reid Spencer1000b732006-12-01 00:37:14 +000029566
29567else
29568 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029569
29570fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029571
29572
Reid Spencerb2ed05262006-11-03 18:04:08 +000029573
29574 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29575echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29576if test "${ac_cv_huge_val_sanity+set}" = set; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29578else
29579
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029580 ac_ext=cpp
29581ac_cpp='$CXXCPP $CPPFLAGS'
29582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029585
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029586 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029587 if test "$cross_compiling" = yes; then
29588 ac_cv_huge_val_sanity=yes
29589else
29590 cat >conftest.$ac_ext <<_ACEOF
29591/* confdefs.h. */
29592_ACEOF
29593cat confdefs.h >>conftest.$ac_ext
29594cat >>conftest.$ac_ext <<_ACEOF
29595/* end confdefs.h. */
29596#include <math.h>
29597int
29598main ()
29599{
29600double x = HUGE_VAL; return x != x;
29601 ;
29602 return 0;
29603}
29604_ACEOF
29605rm -f conftest$ac_exeext
29606if { (ac_try="$ac_link"
29607case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29610esac
29611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_link") 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29616 { (case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29619esac
29620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_try") 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ac_cv_huge_val_sanity=yes
29626else
29627 echo "$as_me: program exited with status $ac_status" >&5
29628echo "$as_me: failed program was:" >&5
29629sed 's/^/| /' conftest.$ac_ext >&5
29630
29631( exit $ac_status )
29632ac_cv_huge_val_sanity=no
29633fi
29634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29635fi
29636
29637
29638 ac_ext=c
29639ac_cpp='$CPP $CPPFLAGS'
29640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29642ac_compiler_gnu=$ac_cv_c_compiler_gnu
29643
29644
29645fi
29646{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29647echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29648 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29649
29650
Reid Spencera773bd52006-08-04 18:18:08 +000029651{ echo "$as_me:$LINENO: checking for pid_t" >&5
29652echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029653if test "${ac_cv_type_pid_t+set}" = set; then
29654 echo $ECHO_N "(cached) $ECHO_C" >&6
29655else
29656 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029657/* confdefs.h. */
29658_ACEOF
29659cat confdefs.h >>conftest.$ac_ext
29660cat >>conftest.$ac_ext <<_ACEOF
29661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029662$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029663typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029664int
29665main ()
29666{
Reid Spencera773bd52006-08-04 18:18:08 +000029667if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029668 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029669if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029670 return 0;
29671 ;
29672 return 0;
29673}
29674_ACEOF
29675rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029676if { (ac_try="$ac_compile"
29677case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29680esac
29681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029684 grep -v '^ *+' conftest.er1 >conftest.err
29685 rm -f conftest.er1
29686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29690 { (case "(($ac_try" in
29691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692 *) ac_try_echo=$ac_try;;
29693esac
29694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029696 ac_status=$?
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; } &&
29699 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029700 { (case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29703esac
29704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029706 ac_status=$?
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; }; then
29709 ac_cv_type_pid_t=yes
29710else
29711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029712sed 's/^/| /' conftest.$ac_ext >&5
29713
Reid Spencera773bd52006-08-04 18:18:08 +000029714 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029715fi
Reid Spencera773bd52006-08-04 18:18:08 +000029716
29717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029718fi
Reid Spencera773bd52006-08-04 18:18:08 +000029719{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29720echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029721if test $ac_cv_type_pid_t = yes; then
29722 :
29723else
29724
29725cat >>confdefs.h <<_ACEOF
29726#define pid_t int
29727_ACEOF
29728
29729fi
29730
Reid Spencera773bd52006-08-04 18:18:08 +000029731{ echo "$as_me:$LINENO: checking for size_t" >&5
29732echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029733if test "${ac_cv_type_size_t+set}" = set; then
29734 echo $ECHO_N "(cached) $ECHO_C" >&6
29735else
29736 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029737/* confdefs.h. */
29738_ACEOF
29739cat confdefs.h >>conftest.$ac_ext
29740cat >>conftest.$ac_ext <<_ACEOF
29741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029742$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029743typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029744int
29745main ()
29746{
Reid Spencera773bd52006-08-04 18:18:08 +000029747if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029748 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029749if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029750 return 0;
29751 ;
29752 return 0;
29753}
29754_ACEOF
29755rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029756if { (ac_try="$ac_compile"
29757case "(($ac_try" in
29758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759 *) ac_try_echo=$ac_try;;
29760esac
29761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029764 grep -v '^ *+' conftest.er1 >conftest.err
29765 rm -f conftest.er1
29766 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29770 { (case "(($ac_try" in
29771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772 *) ac_try_echo=$ac_try;;
29773esac
29774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029776 ac_status=$?
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; } &&
29779 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029780 { (case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29783esac
29784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029786 ac_status=$?
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; }; then
29789 ac_cv_type_size_t=yes
29790else
29791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029792sed 's/^/| /' conftest.$ac_ext >&5
29793
Reid Spencera773bd52006-08-04 18:18:08 +000029794 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029795fi
Reid Spencera773bd52006-08-04 18:18:08 +000029796
29797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029798fi
Reid Spencera773bd52006-08-04 18:18:08 +000029799{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29800echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029801if test $ac_cv_type_size_t = yes; then
29802 :
29803else
29804
29805cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029806#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029807_ACEOF
29808
29809fi
29810
Reid Spencera773bd52006-08-04 18:18:08 +000029811{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29812echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029813if test "${ac_cv_type_signal+set}" = set; then
29814 echo $ECHO_N "(cached) $ECHO_C" >&6
29815else
29816 cat >conftest.$ac_ext <<_ACEOF
29817/* confdefs.h. */
29818_ACEOF
29819cat confdefs.h >>conftest.$ac_ext
29820cat >>conftest.$ac_ext <<_ACEOF
29821/* end confdefs.h. */
29822#include <sys/types.h>
29823#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029824
29825int
29826main ()
29827{
Reid Spencera773bd52006-08-04 18:18:08 +000029828return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029829 ;
29830 return 0;
29831}
29832_ACEOF
29833rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029834if { (ac_try="$ac_compile"
29835case "(($ac_try" in
29836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837 *) ac_try_echo=$ac_try;;
29838esac
29839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029841 ac_status=$?
29842 grep -v '^ *+' conftest.er1 >conftest.err
29843 rm -f conftest.er1
29844 cat conftest.err >&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29848 { (case "(($ac_try" in
29849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29850 *) ac_try_echo=$ac_try;;
29851esac
29852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29853 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029858 { (case "(($ac_try" in
29859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860 *) ac_try_echo=$ac_try;;
29861esac
29862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029864 ac_status=$?
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029867 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029868else
29869 echo "$as_me: failed program was:" >&5
29870sed 's/^/| /' conftest.$ac_ext >&5
29871
Reid Spencera773bd52006-08-04 18:18:08 +000029872 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029873fi
Reid Spencera773bd52006-08-04 18:18:08 +000029874
29875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029876fi
Reid Spencera773bd52006-08-04 18:18:08 +000029877{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29878echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029879
29880cat >>confdefs.h <<_ACEOF
29881#define RETSIGTYPE $ac_cv_type_signal
29882_ACEOF
29883
29884
Reid Spencera773bd52006-08-04 18:18:08 +000029885{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29886echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029887if test "${ac_cv_struct_tm+set}" = set; then
29888 echo $ECHO_N "(cached) $ECHO_C" >&6
29889else
29890 cat >conftest.$ac_ext <<_ACEOF
29891/* confdefs.h. */
29892_ACEOF
29893cat confdefs.h >>conftest.$ac_ext
29894cat >>conftest.$ac_ext <<_ACEOF
29895/* end confdefs.h. */
29896#include <sys/types.h>
29897#include <time.h>
29898
29899int
29900main ()
29901{
29902struct tm *tp; tp->tm_sec;
29903 ;
29904 return 0;
29905}
29906_ACEOF
29907rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029908if { (ac_try="$ac_compile"
29909case "(($ac_try" in
29910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911 *) ac_try_echo=$ac_try;;
29912esac
29913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029915 ac_status=$?
29916 grep -v '^ *+' conftest.er1 >conftest.err
29917 rm -f conftest.er1
29918 cat conftest.err >&5
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29922 { (case "(($ac_try" in
29923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924 *) ac_try_echo=$ac_try;;
29925esac
29926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029928 ac_status=$?
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); }; } &&
29931 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029932 { (case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029938 ac_status=$?
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; }; then
29941 ac_cv_struct_tm=time.h
29942else
29943 echo "$as_me: failed program was:" >&5
29944sed 's/^/| /' conftest.$ac_ext >&5
29945
Reid Spencera773bd52006-08-04 18:18:08 +000029946 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029947fi
Reid Spencera773bd52006-08-04 18:18:08 +000029948
29949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029950fi
Reid Spencera773bd52006-08-04 18:18:08 +000029951{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29952echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029953if test $ac_cv_struct_tm = sys/time.h; then
29954
29955cat >>confdefs.h <<\_ACEOF
29956#define TM_IN_SYS_TIME 1
29957_ACEOF
29958
29959fi
29960
Reid Spencera773bd52006-08-04 18:18:08 +000029961{ echo "$as_me:$LINENO: checking for int64_t" >&5
29962echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029963if test "${ac_cv_type_int64_t+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29965else
29966 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029967/* confdefs.h. */
29968_ACEOF
29969cat confdefs.h >>conftest.$ac_ext
29970cat >>conftest.$ac_ext <<_ACEOF
29971/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029972$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029973typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029974int
29975main ()
29976{
Reid Spencera773bd52006-08-04 18:18:08 +000029977if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029978 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029979if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029980 return 0;
29981 ;
29982 return 0;
29983}
29984_ACEOF
29985rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029986if { (ac_try="$ac_compile"
29987case "(($ac_try" in
29988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989 *) ac_try_echo=$ac_try;;
29990esac
29991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029993 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029994 grep -v '^ *+' conftest.er1 >conftest.err
29995 rm -f conftest.er1
29996 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30000 { (case "(($ac_try" in
30001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30002 *) ac_try_echo=$ac_try;;
30003esac
30004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30005 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030006 ac_status=$?
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; } &&
30009 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013esac
30014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
30019 ac_cv_type_int64_t=yes
30020else
30021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030022sed 's/^/| /' conftest.$ac_ext >&5
30023
Reid Spencera773bd52006-08-04 18:18:08 +000030024 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030025fi
Reid Spencera773bd52006-08-04 18:18:08 +000030026
30027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030028fi
Reid Spencera773bd52006-08-04 18:18:08 +000030029{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30030echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030031if test $ac_cv_type_int64_t = yes; then
30032
30033cat >>confdefs.h <<_ACEOF
30034#define HAVE_INT64_T 1
30035_ACEOF
30036
30037
30038else
30039 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30040echo "$as_me: error: Type int64_t required but not found" >&2;}
30041 { (exit 1); exit 1; }; }
30042fi
30043
Reid Spencera773bd52006-08-04 18:18:08 +000030044{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30045echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030046if test "${ac_cv_type_uint64_t+set}" = set; then
30047 echo $ECHO_N "(cached) $ECHO_C" >&6
30048else
30049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030050/* confdefs.h. */
30051_ACEOF
30052cat confdefs.h >>conftest.$ac_ext
30053cat >>conftest.$ac_ext <<_ACEOF
30054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030055$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030056typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030057int
30058main ()
30059{
Reid Spencera773bd52006-08-04 18:18:08 +000030060if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030061 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030062if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030063 return 0;
30064 ;
30065 return 0;
30066}
30067_ACEOF
30068rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030069if { (ac_try="$ac_compile"
30070case "(($ac_try" in
30071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072 *) ac_try_echo=$ac_try;;
30073esac
30074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030076 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030077 grep -v '^ *+' conftest.er1 >conftest.err
30078 rm -f conftest.er1
30079 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30083 { (case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30086esac
30087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030089 ac_status=$?
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; } &&
30092 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030093 { (case "(($ac_try" in
30094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095 *) ac_try_echo=$ac_try;;
30096esac
30097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30098 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030099 ac_status=$?
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); }; }; then
30102 ac_cv_type_uint64_t=yes
30103else
30104 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030105sed 's/^/| /' conftest.$ac_ext >&5
30106
Reid Spencera773bd52006-08-04 18:18:08 +000030107 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030108fi
Reid Spencera773bd52006-08-04 18:18:08 +000030109
30110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030111fi
Reid Spencera773bd52006-08-04 18:18:08 +000030112{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30113echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030114if test $ac_cv_type_uint64_t = yes; then
30115
30116cat >>confdefs.h <<_ACEOF
30117#define HAVE_UINT64_T 1
30118_ACEOF
30119
30120
30121else
Reid Spencera773bd52006-08-04 18:18:08 +000030122 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30123echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030124if test "${ac_cv_type_u_int64_t+set}" = set; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30126else
30127 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030128/* confdefs.h. */
30129_ACEOF
30130cat confdefs.h >>conftest.$ac_ext
30131cat >>conftest.$ac_ext <<_ACEOF
30132/* end confdefs.h. */
30133$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030134typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030135int
30136main ()
30137{
Reid Spencera773bd52006-08-04 18:18:08 +000030138if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030139 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030140if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030141 return 0;
30142 ;
30143 return 0;
30144}
30145_ACEOF
30146rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030147if { (ac_try="$ac_compile"
30148case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30151esac
30152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030154 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030155 grep -v '^ *+' conftest.er1 >conftest.err
30156 rm -f conftest.er1
30157 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30161 { (case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30164esac
30165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030167 ac_status=$?
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); }; } &&
30170 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030171 { (case "(($ac_try" in
30172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30173 *) ac_try_echo=$ac_try;;
30174esac
30175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000030177 ac_status=$?
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; }; then
30180 ac_cv_type_u_int64_t=yes
30181else
30182 echo "$as_me: failed program was:" >&5
30183sed 's/^/| /' conftest.$ac_ext >&5
30184
Reid Spencera773bd52006-08-04 18:18:08 +000030185 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030186fi
Reid Spencera773bd52006-08-04 18:18:08 +000030187
30188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030189fi
Reid Spencera773bd52006-08-04 18:18:08 +000030190{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30191echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030192if test $ac_cv_type_u_int64_t = yes; then
30193
30194cat >>confdefs.h <<_ACEOF
30195#define HAVE_U_INT64_T 1
30196_ACEOF
30197
30198
Misha Brukmanceca9042004-09-02 23:02:30 +000030199else
30200 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30201echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30202 { (exit 1); exit 1; }; }
30203fi
30204
John Criswell679ff312004-09-02 18:44:44 +000030205fi
30206
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030207
30208
30209
30210
30211
30212
30213
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030214
30215
Reid Spencerdf3be822006-01-23 08:15:53 +000030216for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030217do
30218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030219{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30221if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030222 echo $ECHO_N "(cached) $ECHO_C" >&6
30223else
30224 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030225/* confdefs.h. */
30226_ACEOF
30227cat confdefs.h >>conftest.$ac_ext
30228cat >>conftest.$ac_ext <<_ACEOF
30229/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030230/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30232#define $ac_func innocuous_$ac_func
30233
30234/* System header to define __stub macros and hopefully few prototypes,
30235 which can conflict with char $ac_func (); below.
30236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30237 <limits.h> exists even on freestanding compilers. */
30238
30239#ifdef __STDC__
30240# include <limits.h>
30241#else
30242# include <assert.h>
30243#endif
30244
30245#undef $ac_func
30246
Reid Spencera773bd52006-08-04 18:18:08 +000030247/* Override any GCC internal prototype to avoid an error.
30248 Use char because int might match the return type of a GCC
30249 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030250#ifdef __cplusplus
30251extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030252#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030253char $ac_func ();
30254/* The GNU C library defines this for functions which it implements
30255 to always fail with ENOSYS. Some functions are actually named
30256 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030257#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030258choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030259#endif
John Criswell7a73b802003-06-30 21:59:07 +000030260
John Criswell7a73b802003-06-30 21:59:07 +000030261int
30262main ()
30263{
Reid Spencera773bd52006-08-04 18:18:08 +000030264return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030265 ;
30266 return 0;
30267}
30268_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030269rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030270if { (ac_try="$ac_link"
30271case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30274esac
30275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030277 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030278 grep -v '^ *+' conftest.er1 >conftest.err
30279 rm -f conftest.er1
30280 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30284 { (case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30287esac
30288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030290 ac_status=$?
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030293 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030294 { (case "(($ac_try" in
30295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30296 *) ac_try_echo=$ac_try;;
30297esac
30298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30299 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030300 ac_status=$?
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030303 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030304else
30305 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030306sed 's/^/| /' conftest.$ac_ext >&5
30307
Reid Spencera773bd52006-08-04 18:18:08 +000030308 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030309fi
Reid Spencera773bd52006-08-04 18:18:08 +000030310
30311rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030312 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030313fi
Reid Spencera773bd52006-08-04 18:18:08 +000030314ac_res=`eval echo '${'$as_ac_var'}'`
30315 { echo "$as_me:$LINENO: result: $ac_res" >&5
30316echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030317if test `eval echo '${'$as_ac_var'}'` = yes; then
30318 cat >>confdefs.h <<_ACEOF
30319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030320_ACEOF
30321
30322fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030323done
John Criswell7a73b802003-06-30 21:59:07 +000030324
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030325
30326
30327
Reid Spencer6af3d262004-12-15 04:01:48 +000030328
Reid Spencer96cf5872007-07-13 10:05:30 +000030329for ac_func in powf fmodf strtof round
30330do
30331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30332{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30334if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30335 echo $ECHO_N "(cached) $ECHO_C" >&6
30336else
30337 cat >conftest.$ac_ext <<_ACEOF
30338/* confdefs.h. */
30339_ACEOF
30340cat confdefs.h >>conftest.$ac_ext
30341cat >>conftest.$ac_ext <<_ACEOF
30342/* end confdefs.h. */
30343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30345#define $ac_func innocuous_$ac_func
30346
30347/* System header to define __stub macros and hopefully few prototypes,
30348 which can conflict with char $ac_func (); below.
30349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30350 <limits.h> exists even on freestanding compilers. */
30351
30352#ifdef __STDC__
30353# include <limits.h>
30354#else
30355# include <assert.h>
30356#endif
30357
30358#undef $ac_func
30359
30360/* Override any GCC internal prototype to avoid an error.
30361 Use char because int might match the return type of a GCC
30362 builtin and then its argument prototype would still apply. */
30363#ifdef __cplusplus
30364extern "C"
30365#endif
30366char $ac_func ();
30367/* The GNU C library defines this for functions which it implements
30368 to always fail with ENOSYS. Some functions are actually named
30369 something starting with __ and the normal name is an alias. */
30370#if defined __stub_$ac_func || defined __stub___$ac_func
30371choke me
30372#endif
30373
30374int
30375main ()
30376{
30377return $ac_func ();
30378 ;
30379 return 0;
30380}
30381_ACEOF
30382rm -f conftest.$ac_objext conftest$ac_exeext
30383if { (ac_try="$ac_link"
30384case "(($ac_try" in
30385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386 *) ac_try_echo=$ac_try;;
30387esac
30388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389 (eval "$ac_link") 2>conftest.er1
30390 ac_status=$?
30391 grep -v '^ *+' conftest.er1 >conftest.err
30392 rm -f conftest.er1
30393 cat conftest.err >&5
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); } &&
30396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30397 { (case "(($ac_try" in
30398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399 *) ac_try_echo=$ac_try;;
30400esac
30401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30402 (eval "$ac_try") 2>&5
30403 ac_status=$?
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); }; } &&
30406 { ac_try='test -s conftest$ac_exeext'
30407 { (case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30410esac
30411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_try") 2>&5
30413 ac_status=$?
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); }; }; then
30416 eval "$as_ac_var=yes"
30417else
30418 echo "$as_me: failed program was:" >&5
30419sed 's/^/| /' conftest.$ac_ext >&5
30420
30421 eval "$as_ac_var=no"
30422fi
30423
30424rm -f core conftest.err conftest.$ac_objext \
30425 conftest$ac_exeext conftest.$ac_ext
30426fi
30427ac_res=`eval echo '${'$as_ac_var'}'`
30428 { echo "$as_me:$LINENO: result: $ac_res" >&5
30429echo "${ECHO_T}$ac_res" >&6; }
30430if test `eval echo '${'$as_ac_var'}'` = yes; then
30431 cat >>confdefs.h <<_ACEOF
30432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30433_ACEOF
30434
30435fi
30436done
30437
30438
30439
30440
30441
Reid Spencer6af3d262004-12-15 04:01:48 +000030442
Reid Spencerb90645c2007-02-16 19:17:20 +000030443for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30444do
30445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30446{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30449 echo $ECHO_N "(cached) $ECHO_C" >&6
30450else
30451 cat >conftest.$ac_ext <<_ACEOF
30452/* confdefs.h. */
30453_ACEOF
30454cat confdefs.h >>conftest.$ac_ext
30455cat >>conftest.$ac_ext <<_ACEOF
30456/* end confdefs.h. */
30457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30459#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030460
Reid Spencerb90645c2007-02-16 19:17:20 +000030461/* System header to define __stub macros and hopefully few prototypes,
30462 which can conflict with char $ac_func (); below.
30463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30464 <limits.h> exists even on freestanding compilers. */
30465
30466#ifdef __STDC__
30467# include <limits.h>
30468#else
30469# include <assert.h>
30470#endif
30471
30472#undef $ac_func
30473
30474/* Override any GCC internal prototype to avoid an error.
30475 Use char because int might match the return type of a GCC
30476 builtin and then its argument prototype would still apply. */
30477#ifdef __cplusplus
30478extern "C"
30479#endif
30480char $ac_func ();
30481/* The GNU C library defines this for functions which it implements
30482 to always fail with ENOSYS. Some functions are actually named
30483 something starting with __ and the normal name is an alias. */
30484#if defined __stub_$ac_func || defined __stub___$ac_func
30485choke me
30486#endif
30487
30488int
30489main ()
30490{
30491return $ac_func ();
30492 ;
30493 return 0;
30494}
30495_ACEOF
30496rm -f conftest.$ac_objext conftest$ac_exeext
30497if { (ac_try="$ac_link"
30498case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30501esac
30502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_link") 2>conftest.er1
30504 ac_status=$?
30505 grep -v '^ *+' conftest.er1 >conftest.err
30506 rm -f conftest.er1
30507 cat conftest.err >&5
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); } &&
30510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30511 { (case "(($ac_try" in
30512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513 *) ac_try_echo=$ac_try;;
30514esac
30515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516 (eval "$ac_try") 2>&5
30517 ac_status=$?
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); }; } &&
30520 { ac_try='test -s conftest$ac_exeext'
30521 { (case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30524esac
30525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_try") 2>&5
30527 ac_status=$?
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; }; then
30530 eval "$as_ac_var=yes"
30531else
30532 echo "$as_me: failed program was:" >&5
30533sed 's/^/| /' conftest.$ac_ext >&5
30534
30535 eval "$as_ac_var=no"
30536fi
30537
30538rm -f core conftest.err conftest.$ac_objext \
30539 conftest$ac_exeext conftest.$ac_ext
30540fi
30541ac_res=`eval echo '${'$as_ac_var'}'`
30542 { echo "$as_me:$LINENO: result: $ac_res" >&5
30543echo "${ECHO_T}$ac_res" >&6; }
30544if test `eval echo '${'$as_ac_var'}'` = yes; then
30545 cat >>confdefs.h <<_ACEOF
30546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30547_ACEOF
30548
30549fi
30550done
30551
30552
30553
30554
30555for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030556do
30557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030558{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030561 echo $ECHO_N "(cached) $ECHO_C" >&6
30562else
30563 cat >conftest.$ac_ext <<_ACEOF
30564/* confdefs.h. */
30565_ACEOF
30566cat confdefs.h >>conftest.$ac_ext
30567cat >>conftest.$ac_ext <<_ACEOF
30568/* end confdefs.h. */
30569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30571#define $ac_func innocuous_$ac_func
30572
30573/* System header to define __stub macros and hopefully few prototypes,
30574 which can conflict with char $ac_func (); below.
30575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30576 <limits.h> exists even on freestanding compilers. */
30577
30578#ifdef __STDC__
30579# include <limits.h>
30580#else
30581# include <assert.h>
30582#endif
30583
30584#undef $ac_func
30585
Reid Spencera773bd52006-08-04 18:18:08 +000030586/* Override any GCC internal prototype to avoid an error.
30587 Use char because int might match the return type of a GCC
30588 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030589#ifdef __cplusplus
30590extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030591#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030592char $ac_func ();
30593/* The GNU C library defines this for functions which it implements
30594 to always fail with ENOSYS. Some functions are actually named
30595 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030596#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030597choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030598#endif
30599
30600int
30601main ()
30602{
Reid Spencera773bd52006-08-04 18:18:08 +000030603return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030604 ;
30605 return 0;
30606}
30607_ACEOF
30608rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030609if { (ac_try="$ac_link"
30610case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30613esac
30614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030616 ac_status=$?
30617 grep -v '^ *+' conftest.er1 >conftest.err
30618 rm -f conftest.er1
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30623 { (case "(($ac_try" in
30624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30626esac
30627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; } &&
30632 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030633 { (case "(($ac_try" in
30634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635 *) ac_try_echo=$ac_try;;
30636esac
30637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030639 ac_status=$?
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
30642 eval "$as_ac_var=yes"
30643else
30644 echo "$as_me: failed program was:" >&5
30645sed 's/^/| /' conftest.$ac_ext >&5
30646
Reid Spencera773bd52006-08-04 18:18:08 +000030647 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030648fi
Reid Spencera773bd52006-08-04 18:18:08 +000030649
30650rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030651 conftest$ac_exeext conftest.$ac_ext
30652fi
Reid Spencera773bd52006-08-04 18:18:08 +000030653ac_res=`eval echo '${'$as_ac_var'}'`
30654 { echo "$as_me:$LINENO: result: $ac_res" >&5
30655echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030656if test `eval echo '${'$as_ac_var'}'` = yes; then
30657 cat >>confdefs.h <<_ACEOF
30658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30659_ACEOF
30660
30661fi
30662done
30663
30664
30665
30666
30667
30668
30669
30670
30671for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030672do
30673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030677 echo $ECHO_N "(cached) $ECHO_C" >&6
30678else
30679 cat >conftest.$ac_ext <<_ACEOF
30680/* confdefs.h. */
30681_ACEOF
30682cat confdefs.h >>conftest.$ac_ext
30683cat >>conftest.$ac_ext <<_ACEOF
30684/* end confdefs.h. */
30685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30687#define $ac_func innocuous_$ac_func
30688
30689/* System header to define __stub macros and hopefully few prototypes,
30690 which can conflict with char $ac_func (); below.
30691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30692 <limits.h> exists even on freestanding compilers. */
30693
30694#ifdef __STDC__
30695# include <limits.h>
30696#else
30697# include <assert.h>
30698#endif
30699
30700#undef $ac_func
30701
Reid Spencera773bd52006-08-04 18:18:08 +000030702/* Override any GCC internal prototype to avoid an error.
30703 Use char because int might match the return type of a GCC
30704 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030705#ifdef __cplusplus
30706extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030707#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030708char $ac_func ();
30709/* The GNU C library defines this for functions which it implements
30710 to always fail with ENOSYS. Some functions are actually named
30711 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030712#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030713choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030714#endif
30715
30716int
30717main ()
30718{
Reid Spencera773bd52006-08-04 18:18:08 +000030719return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030720 ;
30721 return 0;
30722}
30723_ACEOF
30724rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030725if { (ac_try="$ac_link"
30726case "(($ac_try" in
30727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30728 *) ac_try_echo=$ac_try;;
30729esac
30730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30731 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030732 ac_status=$?
30733 grep -v '^ *+' conftest.er1 >conftest.err
30734 rm -f conftest.er1
30735 cat conftest.err >&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30739 { (case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30742esac
30743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030745 ac_status=$?
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; } &&
30748 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030749 { (case "(($ac_try" in
30750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751 *) ac_try_echo=$ac_try;;
30752esac
30753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030755 ac_status=$?
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; }; then
30758 eval "$as_ac_var=yes"
30759else
30760 echo "$as_me: failed program was:" >&5
30761sed 's/^/| /' conftest.$ac_ext >&5
30762
Reid Spencera773bd52006-08-04 18:18:08 +000030763 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030764fi
Reid Spencera773bd52006-08-04 18:18:08 +000030765
30766rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030767 conftest$ac_exeext conftest.$ac_ext
30768fi
Reid Spencera773bd52006-08-04 18:18:08 +000030769ac_res=`eval echo '${'$as_ac_var'}'`
30770 { echo "$as_me:$LINENO: result: $ac_res" >&5
30771echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030772if test `eval echo '${'$as_ac_var'}'` = yes; then
30773 cat >>confdefs.h <<_ACEOF
30774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30775_ACEOF
30776
30777fi
30778done
30779
30780
Reid Spencerba46ca32004-12-31 05:49:15 +000030781
30782
Chris Lattner0b142592005-11-14 06:57:34 +000030783
Chris Lattner511f11d2005-11-14 07:25:50 +000030784for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030785do
30786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030787{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030790 echo $ECHO_N "(cached) $ECHO_C" >&6
30791else
30792 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030793/* confdefs.h. */
30794_ACEOF
30795cat confdefs.h >>conftest.$ac_ext
30796cat >>conftest.$ac_ext <<_ACEOF
30797/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30800#define $ac_func innocuous_$ac_func
30801
30802/* System header to define __stub macros and hopefully few prototypes,
30803 which can conflict with char $ac_func (); below.
30804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30805 <limits.h> exists even on freestanding compilers. */
30806
30807#ifdef __STDC__
30808# include <limits.h>
30809#else
30810# include <assert.h>
30811#endif
30812
30813#undef $ac_func
30814
Reid Spencera773bd52006-08-04 18:18:08 +000030815/* Override any GCC internal prototype to avoid an error.
30816 Use char because int might match the return type of a GCC
30817 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030818#ifdef __cplusplus
30819extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030820#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030821char $ac_func ();
30822/* The GNU C library defines this for functions which it implements
30823 to always fail with ENOSYS. Some functions are actually named
30824 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030825#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030826choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030827#endif
John Criswell7a73b802003-06-30 21:59:07 +000030828
John Criswell7a73b802003-06-30 21:59:07 +000030829int
30830main ()
30831{
Reid Spencera773bd52006-08-04 18:18:08 +000030832return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030833 ;
30834 return 0;
30835}
30836_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030837rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030838if { (ac_try="$ac_link"
30839case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30842esac
30843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030846 grep -v '^ *+' conftest.er1 >conftest.err
30847 rm -f conftest.er1
30848 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30852 { (case "(($ac_try" in
30853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854 *) ac_try_echo=$ac_try;;
30855esac
30856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030858 ac_status=$?
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030861 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030862 { (case "(($ac_try" in
30863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864 *) ac_try_echo=$ac_try;;
30865esac
30866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030868 ac_status=$?
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030871 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030872else
30873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030874sed 's/^/| /' conftest.$ac_ext >&5
30875
Reid Spencera773bd52006-08-04 18:18:08 +000030876 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030877fi
Reid Spencera773bd52006-08-04 18:18:08 +000030878
30879rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030880 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030881fi
Reid Spencera773bd52006-08-04 18:18:08 +000030882ac_res=`eval echo '${'$as_ac_var'}'`
30883 { echo "$as_me:$LINENO: result: $ac_res" >&5
30884echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030885if test `eval echo '${'$as_ac_var'}'` = yes; then
30886 cat >>confdefs.h <<_ACEOF
30887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030888_ACEOF
30889
30890fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030891done
John Criswell7a73b802003-06-30 21:59:07 +000030892
Reid Spencercdb08a32006-06-05 16:11:07 +000030893
30894
30895
30896
Reid Spencerafa22e22006-12-10 23:29:19 +000030897for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030898do
30899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030900{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30902if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030903 echo $ECHO_N "(cached) $ECHO_C" >&6
30904else
30905 cat >conftest.$ac_ext <<_ACEOF
30906/* confdefs.h. */
30907_ACEOF
30908cat confdefs.h >>conftest.$ac_ext
30909cat >>conftest.$ac_ext <<_ACEOF
30910/* end confdefs.h. */
30911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30913#define $ac_func innocuous_$ac_func
30914
30915/* System header to define __stub macros and hopefully few prototypes,
30916 which can conflict with char $ac_func (); below.
30917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30918 <limits.h> exists even on freestanding compilers. */
30919
30920#ifdef __STDC__
30921# include <limits.h>
30922#else
30923# include <assert.h>
30924#endif
30925
30926#undef $ac_func
30927
Reid Spencera773bd52006-08-04 18:18:08 +000030928/* Override any GCC internal prototype to avoid an error.
30929 Use char because int might match the return type of a GCC
30930 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030931#ifdef __cplusplus
30932extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030933#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030934char $ac_func ();
30935/* The GNU C library defines this for functions which it implements
30936 to always fail with ENOSYS. Some functions are actually named
30937 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030938#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030939choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030940#endif
30941
30942int
30943main ()
30944{
Reid Spencera773bd52006-08-04 18:18:08 +000030945return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030946 ;
30947 return 0;
30948}
30949_ACEOF
30950rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030951if { (ac_try="$ac_link"
30952case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30955esac
30956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030958 ac_status=$?
30959 grep -v '^ *+' conftest.er1 >conftest.err
30960 rm -f conftest.er1
30961 cat conftest.err >&5
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30965 { (case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30968esac
30969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; } &&
30974 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030975 { (case "(($ac_try" in
30976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977 *) ac_try_echo=$ac_try;;
30978esac
30979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30980 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030981 ac_status=$?
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); }; }; then
30984 eval "$as_ac_var=yes"
30985else
30986 echo "$as_me: failed program was:" >&5
30987sed 's/^/| /' conftest.$ac_ext >&5
30988
Reid Spencera773bd52006-08-04 18:18:08 +000030989 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030990fi
Reid Spencera773bd52006-08-04 18:18:08 +000030991
30992rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030993 conftest$ac_exeext conftest.$ac_ext
30994fi
Reid Spencera773bd52006-08-04 18:18:08 +000030995ac_res=`eval echo '${'$as_ac_var'}'`
30996 { echo "$as_me:$LINENO: result: $ac_res" >&5
30997echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030998if test `eval echo '${'$as_ac_var'}'` = yes; then
30999 cat >>confdefs.h <<_ACEOF
31000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31001_ACEOF
31002
31003fi
31004done
31005
Reid Spencera773bd52006-08-04 18:18:08 +000031006{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31007echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031008if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031011 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031012ac_cpp='$CPP $CPPFLAGS'
31013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31015ac_compiler_gnu=$ac_cv_c_compiler_gnu
31016
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031017 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031018 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031019else
31020 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031021
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031022 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031023_ACEOF
31024cat confdefs.h >>conftest.$ac_ext
31025cat >>conftest.$ac_ext <<_ACEOF
31026/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031027
John Criswella0137d32003-10-13 16:22:01 +000031028#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031029#include <stdlib.h>
31030
John Criswella0137d32003-10-13 16:22:01 +000031031int
31032main ()
31033{
31034
Reid Spencer2706f8c2004-09-19 23:53:36 +000031035volatile double A, B;
31036char Buffer[100];
31037A = 1;
31038A /= 10.0;
31039sprintf(Buffer, "%a", A);
31040B = atof(Buffer);
31041if (A != B)
31042 return (1);
31043if (A != 0x1.999999999999ap-4)
31044 return (1);
31045return (0);
John Criswella0137d32003-10-13 16:22:01 +000031046 ;
31047 return 0;
31048}
31049_ACEOF
31050rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031051if { (ac_try="$ac_link"
31052case "(($ac_try" in
31053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054 *) ac_try_echo=$ac_try;;
31055esac
31056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031058 ac_status=$?
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031061 { (case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31064esac
31065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031070 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031071else
31072 echo "$as_me: program exited with status $ac_status" >&5
31073echo "$as_me: failed program was:" >&5
31074sed 's/^/| /' conftest.$ac_ext >&5
31075
31076( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031077llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031078fi
Reid Spencera773bd52006-08-04 18:18:08 +000031079rm -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 +000031080fi
Reid Spencera773bd52006-08-04 18:18:08 +000031081
31082
Reid Spencer2706f8c2004-09-19 23:53:36 +000031083 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031084ac_cpp='$CPP $CPPFLAGS'
31085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31087ac_compiler_gnu=$ac_cv_c_compiler_gnu
31088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031089fi
Reid Spencera773bd52006-08-04 18:18:08 +000031090{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31091echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031092 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031093
31094cat >>confdefs.h <<\_ACEOF
31095#define HAVE_PRINTF_A 1
31096_ACEOF
31097
Reid Spencer2706f8c2004-09-19 23:53:36 +000031098 fi
John Criswella0137d32003-10-13 16:22:01 +000031099
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031100# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31101# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031102{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31103echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031104if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031105 echo $ECHO_N "(cached) $ECHO_C" >&6
31106else
John Criswell0021c312004-02-13 21:57:29 +000031107 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031108/* confdefs.h. */
31109_ACEOF
31110cat confdefs.h >>conftest.$ac_ext
31111cat >>conftest.$ac_ext <<_ACEOF
31112/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031113#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031114int
31115main ()
31116{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031117char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031118 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031119 ;
31120 return 0;
31121}
31122_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031123rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031124if { (ac_try="$ac_link"
31125case "(($ac_try" in
31126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127 *) ac_try_echo=$ac_try;;
31128esac
31129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31130 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031131 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031132 grep -v '^ *+' conftest.er1 >conftest.err
31133 rm -f conftest.er1
31134 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31138 { (case "(($ac_try" in
31139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140 *) ac_try_echo=$ac_try;;
31141esac
31142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031144 ac_status=$?
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031147 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031148 { (case "(($ac_try" in
31149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31150 *) ac_try_echo=$ac_try;;
31151esac
31152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31153 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031154 ac_status=$?
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031157 ac_cv_working_alloca_h=yes
31158else
31159 echo "$as_me: failed program was:" >&5
31160sed 's/^/| /' conftest.$ac_ext >&5
31161
Reid Spencera773bd52006-08-04 18:18:08 +000031162 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031163fi
Reid Spencera773bd52006-08-04 18:18:08 +000031164
31165rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031166 conftest$ac_exeext conftest.$ac_ext
31167fi
Reid Spencera773bd52006-08-04 18:18:08 +000031168{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31169echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031170if test $ac_cv_working_alloca_h = yes; then
31171
31172cat >>confdefs.h <<\_ACEOF
31173#define HAVE_ALLOCA_H 1
31174_ACEOF
31175
31176fi
31177
Reid Spencera773bd52006-08-04 18:18:08 +000031178{ echo "$as_me:$LINENO: checking for alloca" >&5
31179echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031180if test "${ac_cv_func_alloca_works+set}" = set; then
31181 echo $ECHO_N "(cached) $ECHO_C" >&6
31182else
31183 cat >conftest.$ac_ext <<_ACEOF
31184/* confdefs.h. */
31185_ACEOF
31186cat confdefs.h >>conftest.$ac_ext
31187cat >>conftest.$ac_ext <<_ACEOF
31188/* end confdefs.h. */
31189#ifdef __GNUC__
31190# define alloca __builtin_alloca
31191#else
31192# ifdef _MSC_VER
31193# include <malloc.h>
31194# define alloca _alloca
31195# else
31196# if HAVE_ALLOCA_H
31197# include <alloca.h>
31198# else
31199# ifdef _AIX
31200 #pragma alloca
31201# else
31202# ifndef alloca /* predefined by HP cc +Olibcalls */
31203char *alloca ();
31204# endif
31205# endif
31206# endif
31207# endif
31208#endif
31209
31210int
31211main ()
31212{
31213char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031214 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215 ;
31216 return 0;
31217}
31218_ACEOF
31219rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031220if { (ac_try="$ac_link"
31221case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31224esac
31225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031227 ac_status=$?
31228 grep -v '^ *+' conftest.er1 >conftest.err
31229 rm -f conftest.er1
31230 cat conftest.err >&5
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31234 { (case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31237esac
31238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031240 ac_status=$?
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; } &&
31243 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031244 { (case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31247esac
31248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031250 ac_status=$?
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; }; then
31253 ac_cv_func_alloca_works=yes
31254else
31255 echo "$as_me: failed program was:" >&5
31256sed 's/^/| /' conftest.$ac_ext >&5
31257
Reid Spencera773bd52006-08-04 18:18:08 +000031258 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031259fi
Reid Spencera773bd52006-08-04 18:18:08 +000031260
31261rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031262 conftest$ac_exeext conftest.$ac_ext
31263fi
Reid Spencera773bd52006-08-04 18:18:08 +000031264{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31265echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031266
31267if test $ac_cv_func_alloca_works = yes; then
31268
31269cat >>confdefs.h <<\_ACEOF
31270#define HAVE_ALLOCA 1
31271_ACEOF
31272
31273else
31274 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31275# that cause trouble. Some versions do not even contain alloca or
31276# contain a buggy version. If you still want to use their alloca,
31277# use ar to extract alloca.o from them instead of compiling alloca.c.
31278
Reid Spencera773bd52006-08-04 18:18:08 +000031279ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031280
31281cat >>confdefs.h <<\_ACEOF
31282#define C_ALLOCA 1
31283_ACEOF
31284
31285
Reid Spencera773bd52006-08-04 18:18:08 +000031286{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31287echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031288if test "${ac_cv_os_cray+set}" = set; then
31289 echo $ECHO_N "(cached) $ECHO_C" >&6
31290else
31291 cat >conftest.$ac_ext <<_ACEOF
31292/* confdefs.h. */
31293_ACEOF
31294cat confdefs.h >>conftest.$ac_ext
31295cat >>conftest.$ac_ext <<_ACEOF
31296/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031297#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031298webecray
31299#else
31300wenotbecray
31301#endif
31302
31303_ACEOF
31304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31305 $EGREP "webecray" >/dev/null 2>&1; then
31306 ac_cv_os_cray=yes
31307else
31308 ac_cv_os_cray=no
31309fi
31310rm -f conftest*
31311
31312fi
Reid Spencera773bd52006-08-04 18:18:08 +000031313{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31314echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031315if test $ac_cv_os_cray = yes; then
31316 for ac_func in _getb67 GETB67 getb67; do
31317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031318{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31320if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031321 echo $ECHO_N "(cached) $ECHO_C" >&6
31322else
31323 cat >conftest.$ac_ext <<_ACEOF
31324/* confdefs.h. */
31325_ACEOF
31326cat confdefs.h >>conftest.$ac_ext
31327cat >>conftest.$ac_ext <<_ACEOF
31328/* end confdefs.h. */
31329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31331#define $ac_func innocuous_$ac_func
31332
31333/* System header to define __stub macros and hopefully few prototypes,
31334 which can conflict with char $ac_func (); below.
31335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31336 <limits.h> exists even on freestanding compilers. */
31337
31338#ifdef __STDC__
31339# include <limits.h>
31340#else
31341# include <assert.h>
31342#endif
31343
31344#undef $ac_func
31345
Reid Spencera773bd52006-08-04 18:18:08 +000031346/* Override any GCC internal prototype to avoid an error.
31347 Use char because int might match the return type of a GCC
31348 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031349#ifdef __cplusplus
31350extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031351#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031352char $ac_func ();
31353/* The GNU C library defines this for functions which it implements
31354 to always fail with ENOSYS. Some functions are actually named
31355 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031356#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031357choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031358#endif
31359
31360int
31361main ()
31362{
Reid Spencera773bd52006-08-04 18:18:08 +000031363return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031364 ;
31365 return 0;
31366}
31367_ACEOF
31368rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031369if { (ac_try="$ac_link"
31370case "(($ac_try" in
31371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31372 *) ac_try_echo=$ac_try;;
31373esac
31374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31375 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031376 ac_status=$?
31377 grep -v '^ *+' conftest.er1 >conftest.err
31378 rm -f conftest.er1
31379 cat conftest.err >&5
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31383 { (case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31386esac
31387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031389 ac_status=$?
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; } &&
31392 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031393 { (case "(($ac_try" in
31394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31395 *) ac_try_echo=$ac_try;;
31396esac
31397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31398 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402 eval "$as_ac_var=yes"
31403else
31404 echo "$as_me: failed program was:" >&5
31405sed 's/^/| /' conftest.$ac_ext >&5
31406
Reid Spencera773bd52006-08-04 18:18:08 +000031407 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031408fi
Reid Spencera773bd52006-08-04 18:18:08 +000031409
31410rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031411 conftest$ac_exeext conftest.$ac_ext
31412fi
Reid Spencera773bd52006-08-04 18:18:08 +000031413ac_res=`eval echo '${'$as_ac_var'}'`
31414 { echo "$as_me:$LINENO: result: $ac_res" >&5
31415echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031416if test `eval echo '${'$as_ac_var'}'` = yes; then
31417
31418cat >>confdefs.h <<_ACEOF
31419#define CRAY_STACKSEG_END $ac_func
31420_ACEOF
31421
31422 break
31423fi
31424
31425 done
31426fi
31427
Reid Spencera773bd52006-08-04 18:18:08 +000031428{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31429echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031430if test "${ac_cv_c_stack_direction+set}" = set; then
31431 echo $ECHO_N "(cached) $ECHO_C" >&6
31432else
31433 if test "$cross_compiling" = yes; then
31434 ac_cv_c_stack_direction=0
31435else
31436 cat >conftest.$ac_ext <<_ACEOF
31437/* confdefs.h. */
31438_ACEOF
31439cat confdefs.h >>conftest.$ac_ext
31440cat >>conftest.$ac_ext <<_ACEOF
31441/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031442$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031443int
31444find_stack_direction ()
31445{
31446 static char *addr = 0;
31447 auto char dummy;
31448 if (addr == 0)
31449 {
31450 addr = &dummy;
31451 return find_stack_direction ();
31452 }
John Criswell0021c312004-02-13 21:57:29 +000031453 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031454 return (&dummy > addr) ? 1 : -1;
31455}
John Criswell0021c312004-02-13 21:57:29 +000031456
John Criswell0021c312004-02-13 21:57:29 +000031457int
31458main ()
31459{
Reid Spencera773bd52006-08-04 18:18:08 +000031460 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031461}
31462_ACEOF
31463rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031464if { (ac_try="$ac_link"
31465case "(($ac_try" in
31466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31467 *) ac_try_echo=$ac_try;;
31468esac
31469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31470 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031471 ac_status=$?
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031474 { (case "(($ac_try" in
31475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31476 *) ac_try_echo=$ac_try;;
31477esac
31478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31479 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031483 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031484else
31485 echo "$as_me: program exited with status $ac_status" >&5
31486echo "$as_me: failed program was:" >&5
31487sed 's/^/| /' conftest.$ac_ext >&5
31488
31489( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031490ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031491fi
Reid Spencera773bd52006-08-04 18:18:08 +000031492rm -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 +000031493fi
Reid Spencera773bd52006-08-04 18:18:08 +000031494
31495
John Criswell0021c312004-02-13 21:57:29 +000031496fi
Reid Spencera773bd52006-08-04 18:18:08 +000031497{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31498echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031499
31500cat >>confdefs.h <<_ACEOF
31501#define STACK_DIRECTION $ac_cv_c_stack_direction
31502_ACEOF
31503
31504
John Criswell0021c312004-02-13 21:57:29 +000031505fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031506
31507
Reid Spencera773bd52006-08-04 18:18:08 +000031508{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31509echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031510if test "${ac_cv_func_rand48+set}" = set; then
31511 echo $ECHO_N "(cached) $ECHO_C" >&6
31512else
Reid Spencera773bd52006-08-04 18:18:08 +000031513 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031514ac_cpp='$CXXCPP $CPPFLAGS'
31515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31518
31519 cat >conftest.$ac_ext <<_ACEOF
31520/* confdefs.h. */
31521_ACEOF
31522cat confdefs.h >>conftest.$ac_ext
31523cat >>conftest.$ac_ext <<_ACEOF
31524/* end confdefs.h. */
31525#include <stdlib.h>
31526int
31527main ()
31528{
31529srand48(0);lrand48();drand48();
31530 ;
31531 return 0;
31532}
31533_ACEOF
31534rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031535if { (ac_try="$ac_compile"
31536case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031542 ac_status=$?
31543 grep -v '^ *+' conftest.er1 >conftest.err
31544 rm -f conftest.er1
31545 cat conftest.err >&5
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31549 { (case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31552esac
31553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031555 ac_status=$?
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; } &&
31558 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031559 { (case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31562esac
31563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
31568 ac_cv_func_rand48=yes
31569else
31570 echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
Reid Spencera773bd52006-08-04 18:18:08 +000031573 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031574fi
Reid Spencera773bd52006-08-04 18:18:08 +000031575
31576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031577 ac_ext=c
31578ac_cpp='$CPP $CPPFLAGS'
31579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31581ac_compiler_gnu=$ac_cv_c_compiler_gnu
31582
31583fi
Reid Spencera773bd52006-08-04 18:18:08 +000031584{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31585echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031586
31587if test "$ac_cv_func_rand48" = "yes" ; then
31588
31589cat >>confdefs.h <<\_ACEOF
31590#define HAVE_RAND48 1
31591_ACEOF
31592
31593fi
John Criswell0021c312004-02-13 21:57:29 +000031594
31595
Reid Spencera773bd52006-08-04 18:18:08 +000031596{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31597echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031598if test "${ac_cv_cxx_namespaces+set}" = set; then
31599 echo $ECHO_N "(cached) $ECHO_C" >&6
31600else
Reid Spencera773bd52006-08-04 18:18:08 +000031601 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031602ac_cpp='$CXXCPP $CPPFLAGS'
31603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31606
31607 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031608/* confdefs.h. */
31609_ACEOF
31610cat confdefs.h >>conftest.$ac_ext
31611cat >>conftest.$ac_ext <<_ACEOF
31612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031613namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031614int
31615main ()
31616{
31617using namespace Outer::Inner; return i;
31618 ;
31619 return 0;
31620}
31621_ACEOF
31622rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031623if { (ac_try="$ac_compile"
31624case "(($ac_try" in
31625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626 *) ac_try_echo=$ac_try;;
31627esac
31628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031630 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031631 grep -v '^ *+' conftest.er1 >conftest.err
31632 rm -f conftest.er1
31633 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31637 { (case "(($ac_try" in
31638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639 *) ac_try_echo=$ac_try;;
31640esac
31641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031643 ac_status=$?
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); }; } &&
31646 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031647 { (case "(($ac_try" in
31648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649 *) ac_try_echo=$ac_try;;
31650esac
31651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031653 ac_status=$?
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); }; }; then
31656 ac_cv_cxx_namespaces=yes
31657else
31658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031659sed 's/^/| /' conftest.$ac_ext >&5
31660
Reid Spencera773bd52006-08-04 18:18:08 +000031661 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031662fi
Reid Spencera773bd52006-08-04 18:18:08 +000031663
31664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031665 ac_ext=c
31666ac_cpp='$CPP $CPPFLAGS'
31667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31669ac_compiler_gnu=$ac_cv_c_compiler_gnu
31670
31671
31672fi
Reid Spencera773bd52006-08-04 18:18:08 +000031673{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31674echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031675if test "$ac_cv_cxx_namespaces" = yes; then
31676
31677cat >>confdefs.h <<\_ACEOF
31678#define HAVE_NAMESPACES
31679_ACEOF
31680
31681fi
31682
Reid Spencera773bd52006-08-04 18:18:08 +000031683{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31684echo $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 +000031685if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031686 echo $ECHO_N "(cached) $ECHO_C" >&6
31687else
31688
Reid Spencera773bd52006-08-04 18:18:08 +000031689 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031690ac_cpp='$CXXCPP $CPPFLAGS'
31691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31694
31695 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031696/* confdefs.h. */
31697_ACEOF
31698cat confdefs.h >>conftest.$ac_ext
31699cat >>conftest.$ac_ext <<_ACEOF
31700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031701#include <ext/hash_map>
31702#ifdef HAVE_NAMESPACES
31703using namespace std;
31704#endif
John Criswell7a73b802003-06-30 21:59:07 +000031705int
31706main ()
31707{
Brian Gaeke90583492003-11-10 03:06:28 +000031708hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031709 ;
31710 return 0;
31711}
31712_ACEOF
31713rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031714if { (ac_try="$ac_compile"
31715case "(($ac_try" in
31716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717 *) ac_try_echo=$ac_try;;
31718esac
31719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031721 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031722 grep -v '^ *+' conftest.er1 >conftest.err
31723 rm -f conftest.er1
31724 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31728 { (case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31731esac
31732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031734 ac_status=$?
31735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736 (exit $ac_status); }; } &&
31737 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031738 { (case "(($ac_try" in
31739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740 *) ac_try_echo=$ac_try;;
31741esac
31742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031744 ac_status=$?
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031747 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031748else
31749 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031750sed 's/^/| /' conftest.$ac_ext >&5
31751
Reid Spencera773bd52006-08-04 18:18:08 +000031752 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031753fi
Reid Spencera773bd52006-08-04 18:18:08 +000031754
31755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031756 ac_ext=c
31757ac_cpp='$CPP $CPPFLAGS'
31758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31760ac_compiler_gnu=$ac_cv_c_compiler_gnu
31761
John Criswell7a73b802003-06-30 21:59:07 +000031762fi
Reid Spencera773bd52006-08-04 18:18:08 +000031763{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31764echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031765 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31766 then
John Criswell9f011862004-09-24 18:28:00 +000031767
31768cat >>confdefs.h <<\_ACEOF
31769#define HAVE_STD_EXT_HASH_MAP 1
31770_ACEOF
31771
31772 else
31773
31774cat >>confdefs.h <<\_ACEOF
31775#define HAVE_STD_EXT_HASH_MAP 0
31776_ACEOF
31777
Brian Gaeke90583492003-11-10 03:06:28 +000031778 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031779
Reid Spencera773bd52006-08-04 18:18:08 +000031780 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31781echo $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 +000031782if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31784else
31785
Reid Spencera773bd52006-08-04 18:18:08 +000031786 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031787ac_cpp='$CXXCPP $CPPFLAGS'
31788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31791
31792 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031793/* confdefs.h. */
31794_ACEOF
31795cat confdefs.h >>conftest.$ac_ext
31796cat >>conftest.$ac_ext <<_ACEOF
31797/* end confdefs.h. */
31798#include <ext/hash_map>
31799#ifdef HAVE_NAMESPACES
31800using namespace __gnu_cxx;
31801#endif
31802int
31803main ()
31804{
31805hash_map<int,int> t;
31806 ;
31807 return 0;
31808}
31809_ACEOF
31810rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031811if { (ac_try="$ac_compile"
31812case "(($ac_try" in
31813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814 *) ac_try_echo=$ac_try;;
31815esac
31816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031818 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031819 grep -v '^ *+' conftest.er1 >conftest.err
31820 rm -f conftest.er1
31821 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; } &&
31834 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031835 { (case "(($ac_try" in
31836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837 *) ac_try_echo=$ac_try;;
31838esac
31839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031841 ac_status=$?
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; }; then
31844 ac_cv_cxx_have_gnu_ext_hash_map=yes
31845else
31846 echo "$as_me: failed program was:" >&5
31847sed 's/^/| /' conftest.$ac_ext >&5
31848
Reid Spencera773bd52006-08-04 18:18:08 +000031849 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031850fi
Reid Spencera773bd52006-08-04 18:18:08 +000031851
31852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031853 ac_ext=c
31854ac_cpp='$CPP $CPPFLAGS'
31855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31857ac_compiler_gnu=$ac_cv_c_compiler_gnu
31858
31859fi
Reid Spencera773bd52006-08-04 18:18:08 +000031860{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31861echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031862 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31863 then
John Criswell9f011862004-09-24 18:28:00 +000031864
31865cat >>confdefs.h <<\_ACEOF
31866#define HAVE_GNU_EXT_HASH_MAP 1
31867_ACEOF
31868
31869 else
31870
31871cat >>confdefs.h <<\_ACEOF
31872#define HAVE_GNU_EXT_HASH_MAP 0
31873_ACEOF
31874
Brian Gaeke90583492003-11-10 03:06:28 +000031875 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031876
Reid Spencera773bd52006-08-04 18:18:08 +000031877 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31878echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031879if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31880 echo $ECHO_N "(cached) $ECHO_C" >&6
31881else
John Criswell7a73b802003-06-30 21:59:07 +000031882
Reid Spencera773bd52006-08-04 18:18:08 +000031883 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031884ac_cpp='$CXXCPP $CPPFLAGS'
31885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31888
31889 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031890/* confdefs.h. */
31891_ACEOF
31892cat confdefs.h >>conftest.$ac_ext
31893cat >>conftest.$ac_ext <<_ACEOF
31894/* end confdefs.h. */
31895#include <hash_map>
31896int
31897main ()
31898{
31899hash_map<int,int> t;
31900 ;
31901 return 0;
31902}
31903_ACEOF
31904rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031905if { (ac_try="$ac_compile"
31906case "(($ac_try" in
31907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908 *) ac_try_echo=$ac_try;;
31909esac
31910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031912 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031913 grep -v '^ *+' conftest.er1 >conftest.err
31914 rm -f conftest.er1
31915 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31919 { (case "(($ac_try" in
31920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921 *) ac_try_echo=$ac_try;;
31922esac
31923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031925 ac_status=$?
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); }; } &&
31928 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031929 { (case "(($ac_try" in
31930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31931 *) ac_try_echo=$ac_try;;
31932esac
31933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31934 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031935 ac_status=$?
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); }; }; then
31938 ac_cv_cxx_have_global_hash_map=yes
31939else
31940 echo "$as_me: failed program was:" >&5
31941sed 's/^/| /' conftest.$ac_ext >&5
31942
Reid Spencera773bd52006-08-04 18:18:08 +000031943 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031944fi
Reid Spencera773bd52006-08-04 18:18:08 +000031945
31946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031947 ac_ext=c
31948ac_cpp='$CPP $CPPFLAGS'
31949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31951ac_compiler_gnu=$ac_cv_c_compiler_gnu
31952
31953fi
Reid Spencera773bd52006-08-04 18:18:08 +000031954{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31955echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031956 if test "$ac_cv_cxx_have_global_hash_map" = yes
31957 then
John Criswell9f011862004-09-24 18:28:00 +000031958
31959cat >>confdefs.h <<\_ACEOF
31960#define HAVE_GLOBAL_HASH_MAP 1
31961_ACEOF
31962
31963 else
31964
31965cat >>confdefs.h <<\_ACEOF
31966#define HAVE_GLOBAL_HASH_MAP 0
31967_ACEOF
31968
Brian Gaeke90583492003-11-10 03:06:28 +000031969 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031970
Reid Spencera773bd52006-08-04 18:18:08 +000031971{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31972echo $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 +000031973if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031974 echo $ECHO_N "(cached) $ECHO_C" >&6
31975else
31976
Reid Spencera773bd52006-08-04 18:18:08 +000031977 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031978ac_cpp='$CXXCPP $CPPFLAGS'
31979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31982
31983 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031984/* confdefs.h. */
31985_ACEOF
31986cat confdefs.h >>conftest.$ac_ext
31987cat >>conftest.$ac_ext <<_ACEOF
31988/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031989#include <ext/hash_set>
31990#ifdef HAVE_NAMESPACES
31991using namespace std;
31992#endif
John Criswell7a73b802003-06-30 21:59:07 +000031993int
31994main ()
31995{
Brian Gaeke90583492003-11-10 03:06:28 +000031996hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031997 ;
31998 return 0;
31999}
32000_ACEOF
32001rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032002if { (ac_try="$ac_compile"
32003case "(($ac_try" in
32004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005 *) ac_try_echo=$ac_try;;
32006esac
32007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032010 grep -v '^ *+' conftest.er1 >conftest.err
32011 rm -f conftest.er1
32012 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32016 { (case "(($ac_try" in
32017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018 *) ac_try_echo=$ac_try;;
32019esac
32020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32021 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032022 ac_status=$?
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; } &&
32025 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032026 { (case "(($ac_try" in
32027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32028 *) ac_try_echo=$ac_try;;
32029esac
32030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32031 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032032 ac_status=$?
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032035 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032036else
32037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032038sed 's/^/| /' conftest.$ac_ext >&5
32039
Reid Spencera773bd52006-08-04 18:18:08 +000032040 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032041fi
Reid Spencera773bd52006-08-04 18:18:08 +000032042
32043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032044 ac_ext=c
32045ac_cpp='$CPP $CPPFLAGS'
32046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32048ac_compiler_gnu=$ac_cv_c_compiler_gnu
32049
32050fi
Reid Spencera773bd52006-08-04 18:18:08 +000032051{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32052echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032053 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32054 then
John Criswell9f011862004-09-24 18:28:00 +000032055
32056cat >>confdefs.h <<\_ACEOF
32057#define HAVE_STD_EXT_HASH_SET 1
32058_ACEOF
32059
32060 else
32061
32062cat >>confdefs.h <<\_ACEOF
32063#define HAVE_STD_EXT_HASH_SET 0
32064_ACEOF
32065
Brian Gaeke90583492003-11-10 03:06:28 +000032066 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032067
Reid Spencera773bd52006-08-04 18:18:08 +000032068 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32069echo $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 +000032070if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32071 echo $ECHO_N "(cached) $ECHO_C" >&6
32072else
32073
Reid Spencera773bd52006-08-04 18:18:08 +000032074 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032075ac_cpp='$CXXCPP $CPPFLAGS'
32076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32079
John Criswell7a73b802003-06-30 21:59:07 +000032080 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032081/* confdefs.h. */
32082_ACEOF
32083cat confdefs.h >>conftest.$ac_ext
32084cat >>conftest.$ac_ext <<_ACEOF
32085/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032086#include <ext/hash_set>
32087#ifdef HAVE_NAMESPACES
32088using namespace __gnu_cxx;
32089#endif
John Criswell7a73b802003-06-30 21:59:07 +000032090int
32091main ()
32092{
Brian Gaeke90583492003-11-10 03:06:28 +000032093hash_set<int> t;
32094 ;
32095 return 0;
32096}
32097_ACEOF
32098rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032099if { (ac_try="$ac_compile"
32100case "(($ac_try" in
32101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102 *) ac_try_echo=$ac_try;;
32103esac
32104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032106 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032107 grep -v '^ *+' conftest.er1 >conftest.err
32108 rm -f conftest.er1
32109 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32113 { (case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32116esac
32117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032119 ac_status=$?
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; } &&
32122 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032123 { (case "(($ac_try" in
32124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125 *) ac_try_echo=$ac_try;;
32126esac
32127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_cxx_have_gnu_ext_hash_set=yes
32133else
32134 echo "$as_me: failed program was:" >&5
32135sed 's/^/| /' conftest.$ac_ext >&5
32136
Reid Spencera773bd52006-08-04 18:18:08 +000032137 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032138fi
Reid Spencera773bd52006-08-04 18:18:08 +000032139
32140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032141 ac_ext=c
32142ac_cpp='$CPP $CPPFLAGS'
32143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32145ac_compiler_gnu=$ac_cv_c_compiler_gnu
32146
32147fi
Reid Spencera773bd52006-08-04 18:18:08 +000032148{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32149echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032150 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32151 then
John Criswell9f011862004-09-24 18:28:00 +000032152
32153cat >>confdefs.h <<\_ACEOF
32154#define HAVE_GNU_EXT_HASH_SET 1
32155_ACEOF
32156
32157 else
32158
32159cat >>confdefs.h <<\_ACEOF
32160#define HAVE_GNU_EXT_HASH_SET 0
32161_ACEOF
32162
Brian Gaeke90583492003-11-10 03:06:28 +000032163 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032164
Reid Spencera773bd52006-08-04 18:18:08 +000032165 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32166echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032167if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32169else
32170
Reid Spencera773bd52006-08-04 18:18:08 +000032171 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032172ac_cpp='$CXXCPP $CPPFLAGS'
32173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32176
32177 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032178/* confdefs.h. */
32179_ACEOF
32180cat confdefs.h >>conftest.$ac_ext
32181cat >>conftest.$ac_ext <<_ACEOF
32182/* end confdefs.h. */
32183#include <hash_set>
32184int
32185main ()
32186{
John Criswell7a73b802003-06-30 21:59:07 +000032187hash_set<int> t; return 0;
32188 ;
32189 return 0;
32190}
32191_ACEOF
32192rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032193if { (ac_try="$ac_compile"
32194case "(($ac_try" in
32195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196 *) ac_try_echo=$ac_try;;
32197esac
32198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032200 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032201 grep -v '^ *+' conftest.er1 >conftest.err
32202 rm -f conftest.er1
32203 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32207 { (case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32210esac
32211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032213 ac_status=$?
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; } &&
32216 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032217 { (case "(($ac_try" in
32218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219 *) ac_try_echo=$ac_try;;
32220esac
32221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032223 ac_status=$?
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032226 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032227else
32228 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032229sed 's/^/| /' conftest.$ac_ext >&5
32230
Reid Spencera773bd52006-08-04 18:18:08 +000032231 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032232fi
Reid Spencera773bd52006-08-04 18:18:08 +000032233
32234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032235 ac_ext=c
32236ac_cpp='$CPP $CPPFLAGS'
32237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239ac_compiler_gnu=$ac_cv_c_compiler_gnu
32240
John Criswell7a73b802003-06-30 21:59:07 +000032241fi
Reid Spencera773bd52006-08-04 18:18:08 +000032242{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32243echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032244 if test "$ac_cv_cxx_have_global_hash_set" = yes
32245 then
John Criswell9f011862004-09-24 18:28:00 +000032246
32247cat >>confdefs.h <<\_ACEOF
32248#define HAVE_GLOBAL_HASH_SET 1
32249_ACEOF
32250
32251 else
32252
32253cat >>confdefs.h <<\_ACEOF
32254#define HAVE_GLOBAL_HASH_SET 0
32255_ACEOF
32256
Brian Gaeke90583492003-11-10 03:06:28 +000032257 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032258
Reid Spencera773bd52006-08-04 18:18:08 +000032259{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32260echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032261if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32262 echo $ECHO_N "(cached) $ECHO_C" >&6
32263else
32264
Reid Spencera773bd52006-08-04 18:18:08 +000032265 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032266ac_cpp='$CXXCPP $CPPFLAGS'
32267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32270
32271 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032272/* confdefs.h. */
32273_ACEOF
32274cat confdefs.h >>conftest.$ac_ext
32275cat >>conftest.$ac_ext <<_ACEOF
32276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032277#include <iterator>
32278#ifdef HAVE_NAMESPACES
32279using namespace std;
32280#endif
John Criswell7a73b802003-06-30 21:59:07 +000032281int
32282main ()
32283{
32284iterator<int,int,int> t; return 0;
32285 ;
32286 return 0;
32287}
32288_ACEOF
32289rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032290if { (ac_try="$ac_compile"
32291case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32294esac
32295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032297 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032298 grep -v '^ *+' conftest.er1 >conftest.err
32299 rm -f conftest.er1
32300 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32307esac
32308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } &&
32313 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032314 { (case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32317esac
32318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323 ac_cv_cxx_have_std_iterator=yes
32324else
32325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032326sed 's/^/| /' conftest.$ac_ext >&5
32327
Reid Spencera773bd52006-08-04 18:18:08 +000032328 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032329fi
Reid Spencera773bd52006-08-04 18:18:08 +000032330
32331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032332 ac_ext=c
32333ac_cpp='$CPP $CPPFLAGS'
32334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32336ac_compiler_gnu=$ac_cv_c_compiler_gnu
32337
32338
32339fi
Reid Spencera773bd52006-08-04 18:18:08 +000032340{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32341echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032342if test "$ac_cv_cxx_have_std_iterator" = yes
32343then
John Criswell40468462004-09-24 21:19:06 +000032344
32345cat >>confdefs.h <<\_ACEOF
32346#define HAVE_STD_ITERATOR 1
32347_ACEOF
32348
32349else
32350
32351cat >>confdefs.h <<\_ACEOF
32352#define HAVE_STD_ITERATOR 0
32353_ACEOF
32354
John Criswell7a73b802003-06-30 21:59:07 +000032355fi
32356
Reid Spencera773bd52006-08-04 18:18:08 +000032357{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32358echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032359if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32361else
32362
Reid Spencera773bd52006-08-04 18:18:08 +000032363 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032364ac_cpp='$CXXCPP $CPPFLAGS'
32365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32368
32369 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032370/* confdefs.h. */
32371_ACEOF
32372cat confdefs.h >>conftest.$ac_ext
32373cat >>conftest.$ac_ext <<_ACEOF
32374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032375#include <iterator>
32376#ifdef HAVE_NAMESPACES
32377using namespace std;
32378#endif
John Criswell7a73b802003-06-30 21:59:07 +000032379int
32380main ()
32381{
John Criswellc78022e2003-07-29 19:11:58 +000032382bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032383 ;
32384 return 0;
32385}
32386_ACEOF
32387rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032388if { (ac_try="$ac_compile"
32389case "(($ac_try" in
32390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391 *) ac_try_echo=$ac_try;;
32392esac
32393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32394 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032396 grep -v '^ *+' conftest.er1 >conftest.err
32397 rm -f conftest.er1
32398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32402 { (case "(($ac_try" in
32403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404 *) ac_try_echo=$ac_try;;
32405esac
32406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32407 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032408 ac_status=$?
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); }; } &&
32411 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032412 { (case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32415esac
32416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032418 ac_status=$?
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; }; then
32421 ac_cv_cxx_have_bi_iterator=yes
32422else
32423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032424sed 's/^/| /' conftest.$ac_ext >&5
32425
Reid Spencera773bd52006-08-04 18:18:08 +000032426 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032427fi
Reid Spencera773bd52006-08-04 18:18:08 +000032428
32429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032430 ac_ext=c
32431ac_cpp='$CPP $CPPFLAGS'
32432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32434ac_compiler_gnu=$ac_cv_c_compiler_gnu
32435
32436
32437fi
Reid Spencera773bd52006-08-04 18:18:08 +000032438{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32439echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032440if test "$ac_cv_cxx_have_bi_iterator" = yes
32441then
John Criswell40468462004-09-24 21:19:06 +000032442
32443cat >>confdefs.h <<\_ACEOF
32444#define HAVE_BI_ITERATOR 1
32445_ACEOF
32446
32447else
32448
32449cat >>confdefs.h <<\_ACEOF
32450#define HAVE_BI_ITERATOR 0
32451_ACEOF
32452
John Criswell7a73b802003-06-30 21:59:07 +000032453fi
32454
Reid Spencera773bd52006-08-04 18:18:08 +000032455{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32456echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032457if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32458 echo $ECHO_N "(cached) $ECHO_C" >&6
32459else
32460
Reid Spencera773bd52006-08-04 18:18:08 +000032461 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032462ac_cpp='$CXXCPP $CPPFLAGS'
32463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32466
32467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032468/* confdefs.h. */
32469_ACEOF
32470cat confdefs.h >>conftest.$ac_ext
32471cat >>conftest.$ac_ext <<_ACEOF
32472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032473#include <iterator>
32474#ifdef HAVE_NAMESPACES
32475using namespace std;
32476#endif
John Criswell7a73b802003-06-30 21:59:07 +000032477int
32478main ()
32479{
John Criswellc78022e2003-07-29 19:11:58 +000032480forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032481 ;
32482 return 0;
32483}
32484_ACEOF
32485rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032486if { (ac_try="$ac_compile"
32487case "(($ac_try" in
32488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489 *) ac_try_echo=$ac_try;;
32490esac
32491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032494 grep -v '^ *+' conftest.er1 >conftest.err
32495 rm -f conftest.er1
32496 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32500 { (case "(($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_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; } &&
32509 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032510 { (case "(($ac_try" in
32511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512 *) ac_try_echo=$ac_try;;
32513esac
32514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32515 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032516 ac_status=$?
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; }; then
32519 ac_cv_cxx_have_fwd_iterator=yes
32520else
32521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032522sed 's/^/| /' conftest.$ac_ext >&5
32523
Reid Spencera773bd52006-08-04 18:18:08 +000032524 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032525fi
Reid Spencera773bd52006-08-04 18:18:08 +000032526
32527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032528 ac_ext=c
32529ac_cpp='$CPP $CPPFLAGS'
32530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32532ac_compiler_gnu=$ac_cv_c_compiler_gnu
32533
32534
32535fi
Reid Spencera773bd52006-08-04 18:18:08 +000032536{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32537echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032538if test "$ac_cv_cxx_have_fwd_iterator" = yes
32539then
John Criswell40468462004-09-24 21:19:06 +000032540
32541cat >>confdefs.h <<\_ACEOF
32542#define HAVE_FWD_ITERATOR 1
32543_ACEOF
32544
32545else
32546
32547cat >>confdefs.h <<\_ACEOF
32548#define HAVE_FWD_ITERATOR 0
32549_ACEOF
32550
John Criswell7a73b802003-06-30 21:59:07 +000032551fi
32552
32553
Reid Spencera773bd52006-08-04 18:18:08 +000032554{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32555echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032556if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32558else
Reid Spencera773bd52006-08-04 18:18:08 +000032559 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032560ac_cpp='$CXXCPP $CPPFLAGS'
32561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32564
Reid Spencerabec8f92004-10-27 23:03:44 +000032565 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032566/* confdefs.h. */
32567_ACEOF
32568cat confdefs.h >>conftest.$ac_ext
32569cat >>conftest.$ac_ext <<_ACEOF
32570/* end confdefs.h. */
32571#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032572int
32573main ()
32574{
32575float f; isnan(f);
32576 ;
32577 return 0;
32578}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032579_ACEOF
32580rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032581if { (ac_try="$ac_compile"
32582case "(($ac_try" in
32583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584 *) ac_try_echo=$ac_try;;
32585esac
32586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032589 grep -v '^ *+' conftest.er1 >conftest.err
32590 rm -f conftest.er1
32591 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32595 { (case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32598esac
32599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608esac
32609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
32614 ac_cv_func_isnan_in_math_h=yes
32615else
32616 echo "$as_me: failed program was:" >&5
32617sed 's/^/| /' conftest.$ac_ext >&5
32618
Reid Spencera773bd52006-08-04 18:18:08 +000032619 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032620fi
Reid Spencera773bd52006-08-04 18:18:08 +000032621
32622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032623 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032624ac_cpp='$CPP $CPPFLAGS'
32625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_c_compiler_gnu
32628
32629fi
Reid Spencera773bd52006-08-04 18:18:08 +000032630{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32631echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032632
32633
32634if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032635
32636cat >>confdefs.h <<\_ACEOF
32637#define HAVE_ISNAN_IN_MATH_H 1
32638_ACEOF
32639
Reid Spencerabec8f92004-10-27 23:03:44 +000032640fi
32641
Reid Spencera773bd52006-08-04 18:18:08 +000032642{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32643echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032644if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32646else
Reid Spencera773bd52006-08-04 18:18:08 +000032647 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032648ac_cpp='$CXXCPP $CPPFLAGS'
32649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32652
Reid Spencerabec8f92004-10-27 23:03:44 +000032653 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032654/* confdefs.h. */
32655_ACEOF
32656cat confdefs.h >>conftest.$ac_ext
32657cat >>conftest.$ac_ext <<_ACEOF
32658/* end confdefs.h. */
32659#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032660int
32661main ()
32662{
32663float f; isnan(f);
32664 ;
32665 return 0;
32666}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032667_ACEOF
32668rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032669if { (ac_try="$ac_compile"
32670case "(($ac_try" in
32671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672 *) ac_try_echo=$ac_try;;
32673esac
32674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032676 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032677 grep -v '^ *+' conftest.er1 >conftest.err
32678 rm -f conftest.er1
32679 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32683 { (case "(($ac_try" in
32684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685 *) ac_try_echo=$ac_try;;
32686esac
32687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032689 ac_status=$?
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; } &&
32692 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032693 { (case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32696esac
32697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032699 ac_status=$?
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; }; then
32702 ac_cv_func_isnan_in_cmath=yes
32703else
32704 echo "$as_me: failed program was:" >&5
32705sed 's/^/| /' conftest.$ac_ext >&5
32706
Reid Spencera773bd52006-08-04 18:18:08 +000032707 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032708fi
Reid Spencera773bd52006-08-04 18:18:08 +000032709
32710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032711 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032712ac_cpp='$CPP $CPPFLAGS'
32713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32715ac_compiler_gnu=$ac_cv_c_compiler_gnu
32716
32717fi
Reid Spencera773bd52006-08-04 18:18:08 +000032718{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32719echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032720
32721if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032722
32723cat >>confdefs.h <<\_ACEOF
32724#define HAVE_ISNAN_IN_CMATH 1
32725_ACEOF
32726
Reid Spencerabec8f92004-10-27 23:03:44 +000032727fi
32728
Reid Spencera773bd52006-08-04 18:18:08 +000032729{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32730echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032731if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32732 echo $ECHO_N "(cached) $ECHO_C" >&6
32733else
Reid Spencera773bd52006-08-04 18:18:08 +000032734 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032735ac_cpp='$CXXCPP $CPPFLAGS'
32736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32739
Reid Spencerabec8f92004-10-27 23:03:44 +000032740 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032741/* confdefs.h. */
32742_ACEOF
32743cat confdefs.h >>conftest.$ac_ext
32744cat >>conftest.$ac_ext <<_ACEOF
32745/* end confdefs.h. */
32746#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032747int
32748main ()
32749{
32750float f; std::isnan(f);
32751 ;
32752 return 0;
32753}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032754_ACEOF
32755rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032756if { (ac_try="$ac_compile"
32757case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32760esac
32761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032764 grep -v '^ *+' conftest.er1 >conftest.err
32765 rm -f conftest.er1
32766 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32770 { (case "(($ac_try" in
32771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772 *) ac_try_echo=$ac_try;;
32773esac
32774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032776 ac_status=$?
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); }; } &&
32779 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032780 { (case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783esac
32784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; }; then
32789 ac_cv_func_std_isnan_in_cmath=yes
32790else
32791 echo "$as_me: failed program was:" >&5
32792sed 's/^/| /' conftest.$ac_ext >&5
32793
Reid Spencera773bd52006-08-04 18:18:08 +000032794 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032795fi
Reid Spencera773bd52006-08-04 18:18:08 +000032796
32797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032798 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032799ac_cpp='$CPP $CPPFLAGS'
32800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32802ac_compiler_gnu=$ac_cv_c_compiler_gnu
32803
32804fi
Reid Spencera773bd52006-08-04 18:18:08 +000032805{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32806echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032807
32808if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032809
32810cat >>confdefs.h <<\_ACEOF
32811#define HAVE_STD_ISNAN_IN_CMATH 1
32812_ACEOF
32813
Reid Spencerabec8f92004-10-27 23:03:44 +000032814fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032815
32816
Reid Spencera773bd52006-08-04 18:18:08 +000032817{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32818echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032819if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32820 echo $ECHO_N "(cached) $ECHO_C" >&6
32821else
Reid Spencera773bd52006-08-04 18:18:08 +000032822 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032823ac_cpp='$CXXCPP $CPPFLAGS'
32824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32827
Reid Spencerabec8f92004-10-27 23:03:44 +000032828 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032829/* confdefs.h. */
32830_ACEOF
32831cat confdefs.h >>conftest.$ac_ext
32832cat >>conftest.$ac_ext <<_ACEOF
32833/* end confdefs.h. */
32834#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032835int
32836main ()
32837{
32838float f; isinf(f);
32839 ;
32840 return 0;
32841}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032842_ACEOF
32843rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032844if { (ac_try="$ac_compile"
32845case "(($ac_try" in
32846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32847 *) ac_try_echo=$ac_try;;
32848esac
32849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32850 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032852 grep -v '^ *+' conftest.er1 >conftest.err
32853 rm -f conftest.er1
32854 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32858 { (case "(($ac_try" in
32859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32860 *) ac_try_echo=$ac_try;;
32861esac
32862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32863 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032864 ac_status=$?
32865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); }; } &&
32867 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032868 { (case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32871esac
32872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032874 ac_status=$?
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); }; }; then
32877 ac_cv_func_isinf_in_math_h=yes
32878else
32879 echo "$as_me: failed program was:" >&5
32880sed 's/^/| /' conftest.$ac_ext >&5
32881
Reid Spencera773bd52006-08-04 18:18:08 +000032882 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032883fi
Reid Spencera773bd52006-08-04 18:18:08 +000032884
32885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032886 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032887ac_cpp='$CPP $CPPFLAGS'
32888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32890ac_compiler_gnu=$ac_cv_c_compiler_gnu
32891
32892fi
Reid Spencera773bd52006-08-04 18:18:08 +000032893{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32894echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032895
32896if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032897
32898cat >>confdefs.h <<\_ACEOF
32899#define HAVE_ISINF_IN_MATH_H 1
32900_ACEOF
32901
Reid Spencerabec8f92004-10-27 23:03:44 +000032902fi
32903
Reid Spencera773bd52006-08-04 18:18:08 +000032904{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32905echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032906if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32907 echo $ECHO_N "(cached) $ECHO_C" >&6
32908else
Reid Spencera773bd52006-08-04 18:18:08 +000032909 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032910ac_cpp='$CXXCPP $CPPFLAGS'
32911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32914
Reid Spencerabec8f92004-10-27 23:03:44 +000032915 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032916/* confdefs.h. */
32917_ACEOF
32918cat confdefs.h >>conftest.$ac_ext
32919cat >>conftest.$ac_ext <<_ACEOF
32920/* end confdefs.h. */
32921#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032922int
32923main ()
32924{
32925float f; isinf(f);
32926 ;
32927 return 0;
32928}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032929_ACEOF
32930rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032931if { (ac_try="$ac_compile"
32932case "(($ac_try" in
32933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934 *) ac_try_echo=$ac_try;;
32935esac
32936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032939 grep -v '^ *+' conftest.er1 >conftest.err
32940 rm -f conftest.er1
32941 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32945 { (case "(($ac_try" in
32946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32947 *) ac_try_echo=$ac_try;;
32948esac
32949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32950 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032951 ac_status=$?
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; } &&
32954 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032955 { (case "(($ac_try" in
32956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957 *) ac_try_echo=$ac_try;;
32958esac
32959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032961 ac_status=$?
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; }; then
32964 ac_cv_func_isinf_in_cmath=yes
32965else
32966 echo "$as_me: failed program was:" >&5
32967sed 's/^/| /' conftest.$ac_ext >&5
32968
Reid Spencera773bd52006-08-04 18:18:08 +000032969 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032970fi
Reid Spencera773bd52006-08-04 18:18:08 +000032971
32972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032973 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032974ac_cpp='$CPP $CPPFLAGS'
32975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32977ac_compiler_gnu=$ac_cv_c_compiler_gnu
32978
32979fi
Reid Spencera773bd52006-08-04 18:18:08 +000032980{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32981echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032982
32983if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032984
32985cat >>confdefs.h <<\_ACEOF
32986#define HAVE_ISINF_IN_CMATH 1
32987_ACEOF
32988
Reid Spencerabec8f92004-10-27 23:03:44 +000032989fi
32990
Reid Spencera773bd52006-08-04 18:18:08 +000032991{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32992echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032993if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32994 echo $ECHO_N "(cached) $ECHO_C" >&6
32995else
Reid Spencera773bd52006-08-04 18:18:08 +000032996 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032997ac_cpp='$CXXCPP $CPPFLAGS'
32998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33001
Reid Spencerabec8f92004-10-27 23:03:44 +000033002 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033003/* confdefs.h. */
33004_ACEOF
33005cat confdefs.h >>conftest.$ac_ext
33006cat >>conftest.$ac_ext <<_ACEOF
33007/* end confdefs.h. */
33008#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033009int
33010main ()
33011{
33012float f; std::isinf(f)}
33013 ;
33014 return 0;
33015}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033016_ACEOF
33017rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033018if { (ac_try="$ac_compile"
33019case "(($ac_try" in
33020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33021 *) ac_try_echo=$ac_try;;
33022esac
33023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33024 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033026 grep -v '^ *+' conftest.er1 >conftest.err
33027 rm -f conftest.er1
33028 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33032 { (case "(($ac_try" in
33033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33034 *) ac_try_echo=$ac_try;;
33035esac
33036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033038 ac_status=$?
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); }; } &&
33041 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033042 { (case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33045esac
33046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033048 ac_status=$?
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; }; then
33051 ac_cv_func_std_isinf_in_cmath=yes
33052else
33053 echo "$as_me: failed program was:" >&5
33054sed 's/^/| /' conftest.$ac_ext >&5
33055
Reid Spencera773bd52006-08-04 18:18:08 +000033056 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033057fi
Reid Spencera773bd52006-08-04 18:18:08 +000033058
33059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033060 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033061ac_cpp='$CPP $CPPFLAGS'
33062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33064ac_compiler_gnu=$ac_cv_c_compiler_gnu
33065
33066fi
Reid Spencera773bd52006-08-04 18:18:08 +000033067{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33068echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033069
33070if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033071
33072cat >>confdefs.h <<\_ACEOF
33073#define HAVE_STD_ISINF_IN_CMATH 1
33074_ACEOF
33075
Reid Spencerabec8f92004-10-27 23:03:44 +000033076fi
33077
Reid Spencera773bd52006-08-04 18:18:08 +000033078{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33079echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033080if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33081 echo $ECHO_N "(cached) $ECHO_C" >&6
33082else
Reid Spencera773bd52006-08-04 18:18:08 +000033083 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033084ac_cpp='$CXXCPP $CPPFLAGS'
33085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33088
Reid Spencerabec8f92004-10-27 23:03:44 +000033089 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033090/* confdefs.h. */
33091_ACEOF
33092cat confdefs.h >>conftest.$ac_ext
33093cat >>conftest.$ac_ext <<_ACEOF
33094/* end confdefs.h. */
33095#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033096int
33097main ()
33098{
33099float f; finite(f);
33100 ;
33101 return 0;
33102}
Brian Gaeked59a6472004-07-21 03:33:58 +000033103_ACEOF
33104rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033105if { (ac_try="$ac_compile"
33106case "(($ac_try" in
33107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33108 *) ac_try_echo=$ac_try;;
33109esac
33110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033113 grep -v '^ *+' conftest.er1 >conftest.err
33114 rm -f conftest.er1
33115 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33119 { (case "(($ac_try" in
33120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121 *) ac_try_echo=$ac_try;;
33122esac
33123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033125 ac_status=$?
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); }; } &&
33128 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033129 { (case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33132esac
33133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033135 ac_status=$?
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; }; then
33138 ac_cv_func_finite_in_ieeefp_h=yes
33139else
33140 echo "$as_me: failed program was:" >&5
33141sed 's/^/| /' conftest.$ac_ext >&5
33142
Reid Spencera773bd52006-08-04 18:18:08 +000033143 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033144fi
Reid Spencera773bd52006-08-04 18:18:08 +000033145
33146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033147 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033148ac_cpp='$CPP $CPPFLAGS'
33149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33151ac_compiler_gnu=$ac_cv_c_compiler_gnu
33152
33153fi
Reid Spencera773bd52006-08-04 18:18:08 +000033154{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33155echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033156
Brian Gaeke6802b552004-10-28 05:06:45 +000033157if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033158
33159cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033160#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033161_ACEOF
33162
Reid Spencerabec8f92004-10-27 23:03:44 +000033163fi
33164
33165
33166
Reid Spencer30fe5262007-01-20 07:48:49 +000033167if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033168
33169
33170for ac_header in stdlib.h unistd.h
33171do
33172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033177 echo $ECHO_N "(cached) $ECHO_C" >&6
33178fi
Reid Spencera773bd52006-08-04 18:18:08 +000033179ac_res=`eval echo '${'$as_ac_Header'}'`
33180 { echo "$as_me:$LINENO: result: $ac_res" >&5
33181echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033182else
33183 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033186cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033187/* confdefs.h. */
33188_ACEOF
33189cat confdefs.h >>conftest.$ac_ext
33190cat >>conftest.$ac_ext <<_ACEOF
33191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033192$ac_includes_default
33193#include <$ac_header>
33194_ACEOF
33195rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033196if { (ac_try="$ac_compile"
33197case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33200esac
33201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033204 grep -v '^ *+' conftest.er1 >conftest.err
33205 rm -f conftest.er1
33206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33210 { (case "(($ac_try" in
33211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212 *) ac_try_echo=$ac_try;;
33213esac
33214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033216 ac_status=$?
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); }; } &&
33219 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033220 { (case "(($ac_try" in
33221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222 *) ac_try_echo=$ac_try;;
33223esac
33224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033226 ac_status=$?
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; }; then
33229 ac_header_compiler=yes
33230else
33231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033232sed 's/^/| /' conftest.$ac_ext >&5
33233
Reid Spencera773bd52006-08-04 18:18:08 +000033234 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033235fi
Reid Spencera773bd52006-08-04 18:18:08 +000033236
33237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33239echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033240
33241# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033244cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033245/* confdefs.h. */
33246_ACEOF
33247cat confdefs.h >>conftest.$ac_ext
33248cat >>conftest.$ac_ext <<_ACEOF
33249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033250#include <$ac_header>
33251_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033252if { (ac_try="$ac_cpp conftest.$ac_ext"
33253case "(($ac_try" in
33254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33255 *) ac_try_echo=$ac_try;;
33256esac
33257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033259 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033260 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033261 rm -f conftest.er1
33262 cat conftest.err >&5
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); } >/dev/null; then
33265 if test -s conftest.err; then
33266 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000033267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000033268 else
33269 ac_cpp_err=
33270 fi
33271else
33272 ac_cpp_err=yes
33273fi
33274if test -z "$ac_cpp_err"; then
33275 ac_header_preproc=yes
33276else
33277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033278sed 's/^/| /' conftest.$ac_ext >&5
33279
John Criswell7a73b802003-06-30 21:59:07 +000033280 ac_header_preproc=no
33281fi
Reid Spencera773bd52006-08-04 18:18:08 +000033282
John Criswell7a73b802003-06-30 21:59:07 +000033283rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33285echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033286
33287# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33289 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33294 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033295 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033296 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033309 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033310## ----------------------------------- ##
33311## Report this to llvmbugs@cs.uiuc.edu ##
33312## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033313_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033314 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033315 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033316esac
Reid Spencera773bd52006-08-04 18:18:08 +000033317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033320 echo $ECHO_N "(cached) $ECHO_C" >&6
33321else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033322 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033323fi
Reid Spencera773bd52006-08-04 18:18:08 +000033324ac_res=`eval echo '${'$as_ac_Header'}'`
33325 { echo "$as_me:$LINENO: result: $ac_res" >&5
33326echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033327
33328fi
33329if test `eval echo '${'$as_ac_Header'}'` = yes; then
33330 cat >>confdefs.h <<_ACEOF
33331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33332_ACEOF
33333
33334fi
33335
33336done
33337
33338
33339for ac_func in getpagesize
33340do
33341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033342{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033345 echo $ECHO_N "(cached) $ECHO_C" >&6
33346else
33347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033348/* confdefs.h. */
33349_ACEOF
33350cat confdefs.h >>conftest.$ac_ext
33351cat >>conftest.$ac_ext <<_ACEOF
33352/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33355#define $ac_func innocuous_$ac_func
33356
John Criswell7a73b802003-06-30 21:59:07 +000033357/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033358 which can conflict with char $ac_func (); below.
33359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33360 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033361
John Criswell0c38eaf2003-09-10 15:17:25 +000033362#ifdef __STDC__
33363# include <limits.h>
33364#else
33365# include <assert.h>
33366#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033367
33368#undef $ac_func
33369
Reid Spencera773bd52006-08-04 18:18:08 +000033370/* Override any GCC internal prototype to avoid an error.
33371 Use char because int might match the return type of a GCC
33372 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033373#ifdef __cplusplus
33374extern "C"
33375#endif
John Criswell7a73b802003-06-30 21:59:07 +000033376char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033377/* The GNU C library defines this for functions which it implements
33378 to always fail with ENOSYS. Some functions are actually named
33379 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033380#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033381choke me
John Criswell7a73b802003-06-30 21:59:07 +000033382#endif
33383
John Criswell0c38eaf2003-09-10 15:17:25 +000033384int
33385main ()
33386{
Reid Spencera773bd52006-08-04 18:18:08 +000033387return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033388 ;
33389 return 0;
33390}
33391_ACEOF
33392rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033393if { (ac_try="$ac_link"
33394case "(($ac_try" in
33395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396 *) ac_try_echo=$ac_try;;
33397esac
33398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033400 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033401 grep -v '^ *+' conftest.er1 >conftest.err
33402 rm -f conftest.er1
33403 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33407 { (case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33410esac
33411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033413 ac_status=$?
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; } &&
33416 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033417 { (case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33420esac
33421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033423 ac_status=$?
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; }; then
33426 eval "$as_ac_var=yes"
33427else
33428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033429sed 's/^/| /' conftest.$ac_ext >&5
33430
Reid Spencera773bd52006-08-04 18:18:08 +000033431 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033432fi
Reid Spencera773bd52006-08-04 18:18:08 +000033433
33434rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033435 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033436fi
Reid Spencera773bd52006-08-04 18:18:08 +000033437ac_res=`eval echo '${'$as_ac_var'}'`
33438 { echo "$as_me:$LINENO: result: $ac_res" >&5
33439echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033440if test `eval echo '${'$as_ac_var'}'` = yes; then
33441 cat >>confdefs.h <<_ACEOF
33442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33443_ACEOF
33444
33445fi
33446done
33447
Reid Spencera773bd52006-08-04 18:18:08 +000033448{ echo "$as_me:$LINENO: checking for working mmap" >&5
33449echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033450if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33451 echo $ECHO_N "(cached) $ECHO_C" >&6
33452else
33453 if test "$cross_compiling" = yes; then
33454 ac_cv_func_mmap_fixed_mapped=no
33455else
33456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033457/* confdefs.h. */
33458_ACEOF
33459cat confdefs.h >>conftest.$ac_ext
33460cat >>conftest.$ac_ext <<_ACEOF
33461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033462$ac_includes_default
33463/* malloc might have been renamed as rpl_malloc. */
33464#undef malloc
33465
33466/* Thanks to Mike Haertel and Jim Avera for this test.
33467 Here is a matrix of mmap possibilities:
33468 mmap private not fixed
33469 mmap private fixed at somewhere currently unmapped
33470 mmap private fixed at somewhere already mapped
33471 mmap shared not fixed
33472 mmap shared fixed at somewhere currently unmapped
33473 mmap shared fixed at somewhere already mapped
33474 For private mappings, we should verify that changes cannot be read()
33475 back from the file, nor mmap's back from the file at a different
33476 address. (There have been systems where private was not correctly
33477 implemented like the infamous i386 svr4.0, and systems where the
33478 VM page cache was not coherent with the file system buffer cache
33479 like early versions of FreeBSD and possibly contemporary NetBSD.)
33480 For shared mappings, we should conversely verify that changes get
33481 propagated back to all the places they're supposed to be.
33482
33483 Grep wants private fixed already mapped.
33484 The main things grep needs to know about mmap are:
33485 * does it exist and is it safe to write into the mmap'd area
33486 * how to use it (BSD variants) */
33487
33488#include <fcntl.h>
33489#include <sys/mman.h>
33490
33491#if !STDC_HEADERS && !HAVE_STDLIB_H
33492char *malloc ();
33493#endif
33494
33495/* This mess was copied from the GNU getpagesize.h. */
33496#if !HAVE_GETPAGESIZE
33497/* Assume that all systems that can run configure have sys/param.h. */
33498# if !HAVE_SYS_PARAM_H
33499# define HAVE_SYS_PARAM_H 1
33500# endif
33501
33502# ifdef _SC_PAGESIZE
33503# define getpagesize() sysconf(_SC_PAGESIZE)
33504# else /* no _SC_PAGESIZE */
33505# if HAVE_SYS_PARAM_H
33506# include <sys/param.h>
33507# ifdef EXEC_PAGESIZE
33508# define getpagesize() EXEC_PAGESIZE
33509# else /* no EXEC_PAGESIZE */
33510# ifdef NBPG
33511# define getpagesize() NBPG * CLSIZE
33512# ifndef CLSIZE
33513# define CLSIZE 1
33514# endif /* no CLSIZE */
33515# else /* no NBPG */
33516# ifdef NBPC
33517# define getpagesize() NBPC
33518# else /* no NBPC */
33519# ifdef PAGESIZE
33520# define getpagesize() PAGESIZE
33521# endif /* PAGESIZE */
33522# endif /* no NBPC */
33523# endif /* no NBPG */
33524# endif /* no EXEC_PAGESIZE */
33525# else /* no HAVE_SYS_PARAM_H */
33526# define getpagesize() 8192 /* punt totally */
33527# endif /* no HAVE_SYS_PARAM_H */
33528# endif /* no _SC_PAGESIZE */
33529
33530#endif /* no HAVE_GETPAGESIZE */
33531
33532int
33533main ()
33534{
33535 char *data, *data2, *data3;
33536 int i, pagesize;
33537 int fd;
33538
33539 pagesize = getpagesize ();
33540
33541 /* First, make a file with some known garbage in it. */
33542 data = (char *) malloc (pagesize);
33543 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033544 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033545 for (i = 0; i < pagesize; ++i)
33546 *(data + i) = rand ();
33547 umask (0);
33548 fd = creat ("conftest.mmap", 0600);
33549 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033550 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033551 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033552 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033553 close (fd);
33554
33555 /* Next, try to mmap the file at a fixed address which already has
33556 something else allocated at it. If we can, also make sure that
33557 we see the same garbage. */
33558 fd = open ("conftest.mmap", O_RDWR);
33559 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033560 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033561 data2 = (char *) malloc (2 * pagesize);
33562 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033563 return 1;
33564 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033565 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033566 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033567 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033568 for (i = 0; i < pagesize; ++i)
33569 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033570 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033571
33572 /* Finally, make sure that changes to the mapped area do not
33573 percolate back to the file as seen by read(). (This is a bug on
33574 some variants of i386 svr4.0.) */
33575 for (i = 0; i < pagesize; ++i)
33576 *(data2 + i) = *(data2 + i) + 1;
33577 data3 = (char *) malloc (pagesize);
33578 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033579 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033580 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033581 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033582 for (i = 0; i < pagesize; ++i)
33583 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033584 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033585 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033586 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033587}
33588_ACEOF
33589rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033590if { (ac_try="$ac_link"
33591case "(($ac_try" in
33592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593 *) ac_try_echo=$ac_try;;
33594esac
33595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033597 ac_status=$?
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033600 { (case "(($ac_try" in
33601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602 *) ac_try_echo=$ac_try;;
33603esac
33604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033606 ac_status=$?
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); }; }; then
33609 ac_cv_func_mmap_fixed_mapped=yes
33610else
33611 echo "$as_me: program exited with status $ac_status" >&5
33612echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033613sed 's/^/| /' conftest.$ac_ext >&5
33614
John Criswell7a73b802003-06-30 21:59:07 +000033615( exit $ac_status )
33616ac_cv_func_mmap_fixed_mapped=no
33617fi
Reid Spencera773bd52006-08-04 18:18:08 +000033618rm -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 +000033619fi
Reid Spencera773bd52006-08-04 18:18:08 +000033620
33621
John Criswell7a73b802003-06-30 21:59:07 +000033622fi
Reid Spencera773bd52006-08-04 18:18:08 +000033623{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33624echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033625if test $ac_cv_func_mmap_fixed_mapped = yes; then
33626
33627cat >>confdefs.h <<\_ACEOF
33628#define HAVE_MMAP 1
33629_ACEOF
33630
33631fi
33632rm -f conftest.mmap
33633
Reid Spencer30fe5262007-01-20 07:48:49 +000033634 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033635echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033636if test "${ac_cv_func_mmap_file+set}" = set; then
33637 echo $ECHO_N "(cached) $ECHO_C" >&6
33638else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033639 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033640ac_cpp='$CPP $CPPFLAGS'
33641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33643ac_compiler_gnu=$ac_cv_c_compiler_gnu
33644
33645 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033646 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033647else
33648 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033649
Reid Spencer777ce172004-09-20 04:09:56 +000033650 /* confdefs.h. */
33651_ACEOF
33652cat confdefs.h >>conftest.$ac_ext
33653cat >>conftest.$ac_ext <<_ACEOF
33654/* end confdefs.h. */
33655
John Criswell7a73b802003-06-30 21:59:07 +000033656#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033657#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033658#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033659
33660int
33661main ()
33662{
John Criswell7a73b802003-06-30 21:59:07 +000033663
33664 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033665 fd = creat ("foo",0777);
33666 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33667 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033668 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033669 ;
33670 return 0;
33671}
John Criswell7a73b802003-06-30 21:59:07 +000033672_ACEOF
33673rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033674if { (ac_try="$ac_link"
33675case "(($ac_try" in
33676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677 *) ac_try_echo=$ac_try;;
33678esac
33679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033681 ac_status=$?
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033684 { (case "(($ac_try" in
33685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686 *) ac_try_echo=$ac_try;;
33687esac
33688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033690 ac_status=$?
33691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 (exit $ac_status); }; }; then
33693 ac_cv_func_mmap_file=yes
33694else
33695 echo "$as_me: program exited with status $ac_status" >&5
33696echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033697sed 's/^/| /' conftest.$ac_ext >&5
33698
John Criswell7a73b802003-06-30 21:59:07 +000033699( exit $ac_status )
33700ac_cv_func_mmap_file=no
33701fi
Reid Spencera773bd52006-08-04 18:18:08 +000033702rm -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 +000033703fi
Reid Spencera773bd52006-08-04 18:18:08 +000033704
33705
John Criswell7a73b802003-06-30 21:59:07 +000033706 ac_ext=c
33707ac_cpp='$CPP $CPPFLAGS'
33708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33710ac_compiler_gnu=$ac_cv_c_compiler_gnu
33711
33712
33713fi
Reid Spencera773bd52006-08-04 18:18:08 +000033714{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33715echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033716if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033717
33718cat >>confdefs.h <<\_ACEOF
33719#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033720_ACEOF
33721
33722 MMAP_FILE=yes
33723
33724fi
33725
Reid Spencer30fe5262007-01-20 07:48:49 +000033726 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033727echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033728if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33729 echo $ECHO_N "(cached) $ECHO_C" >&6
33730else
Reid Spencer582a23c2004-12-29 07:07:57 +000033731 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033732 ac_cv_need_dev_zero_for_mmap=yes
33733 else
33734 ac_cv_need_dev_zero_for_mmap=no
33735 fi
33736
33737fi
Reid Spencera773bd52006-08-04 18:18:08 +000033738{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33739echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033740if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33741
33742cat >>confdefs.h <<\_ACEOF
33743#define NEED_DEV_ZERO_FOR_MMAP 1
33744_ACEOF
33745
33746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033747
Reid Spencer30fe5262007-01-20 07:48:49 +000033748 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33749 then
33750 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033751echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033752 fi
33753 if test "$ac_cv_func_mmap_file" = "no"
33754 then
33755 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033756echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033757 fi
John Criswellb13092b2003-07-22 21:00:24 +000033758fi
John Criswell7a73b802003-06-30 21:59:07 +000033759
33760
Reid Spencer9372f152007-07-30 20:13:24 +000033761
33762for ac_func in __dso_handle
33763do
33764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33765{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33768 echo $ECHO_N "(cached) $ECHO_C" >&6
33769else
33770 cat >conftest.$ac_ext <<_ACEOF
33771/* confdefs.h. */
33772_ACEOF
33773cat confdefs.h >>conftest.$ac_ext
33774cat >>conftest.$ac_ext <<_ACEOF
33775/* end confdefs.h. */
33776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33778#define $ac_func innocuous_$ac_func
33779
33780/* System header to define __stub macros and hopefully few prototypes,
33781 which can conflict with char $ac_func (); below.
33782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33783 <limits.h> exists even on freestanding compilers. */
33784
33785#ifdef __STDC__
33786# include <limits.h>
33787#else
33788# include <assert.h>
33789#endif
33790
33791#undef $ac_func
33792
33793/* Override any GCC internal prototype to avoid an error.
33794 Use char because int might match the return type of a GCC
33795 builtin and then its argument prototype would still apply. */
33796#ifdef __cplusplus
33797extern "C"
33798#endif
33799char $ac_func ();
33800/* The GNU C library defines this for functions which it implements
33801 to always fail with ENOSYS. Some functions are actually named
33802 something starting with __ and the normal name is an alias. */
33803#if defined __stub_$ac_func || defined __stub___$ac_func
33804choke me
33805#endif
33806
33807int
33808main ()
33809{
33810return $ac_func ();
33811 ;
33812 return 0;
33813}
33814_ACEOF
33815rm -f conftest.$ac_objext conftest$ac_exeext
33816if { (ac_try="$ac_link"
33817case "(($ac_try" in
33818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819 *) ac_try_echo=$ac_try;;
33820esac
33821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822 (eval "$ac_link") 2>conftest.er1
33823 ac_status=$?
33824 grep -v '^ *+' conftest.er1 >conftest.err
33825 rm -f conftest.er1
33826 cat conftest.err >&5
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); } &&
33829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33830 { (case "(($ac_try" in
33831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33832 *) ac_try_echo=$ac_try;;
33833esac
33834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33835 (eval "$ac_try") 2>&5
33836 ac_status=$?
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; } &&
33839 { ac_try='test -s conftest$ac_exeext'
33840 { (case "(($ac_try" in
33841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842 *) ac_try_echo=$ac_try;;
33843esac
33844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845 (eval "$ac_try") 2>&5
33846 ac_status=$?
33847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848 (exit $ac_status); }; }; then
33849 eval "$as_ac_var=yes"
33850else
33851 echo "$as_me: failed program was:" >&5
33852sed 's/^/| /' conftest.$ac_ext >&5
33853
33854 eval "$as_ac_var=no"
33855fi
33856
33857rm -f core conftest.err conftest.$ac_objext \
33858 conftest$ac_exeext conftest.$ac_ext
33859fi
33860ac_res=`eval echo '${'$as_ac_var'}'`
33861 { echo "$as_me:$LINENO: result: $ac_res" >&5
33862echo "${ECHO_T}$ac_res" >&6; }
33863if test `eval echo '${'$as_ac_var'}'` = yes; then
33864 cat >>confdefs.h <<_ACEOF
33865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33866_ACEOF
33867
33868fi
33869done
33870
33871
Reid Spencera773bd52006-08-04 18:18:08 +000033872{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33873echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033874if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33876else
33877 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033878if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033879 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033880 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33881 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033882 if test $? -eq 0 ; then
33883 llvm_cv_llvmgcc_sanity="yes"
33884 fi
33885 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033886fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033887fi
Reid Spencera773bd52006-08-04 18:18:08 +000033888{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33889echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033890
33891if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033892 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33893echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033894 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033895 LLVMCC1=$llvmcc1path
33896
Reid Spencer502935f2004-12-22 05:56:56 +000033897 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033898 LLVMCC1PLUS=$llvmcc1pluspath
33899
Reid Spencer502935f2004-12-22 05:56:56 +000033900 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33901 LLVMGCCDIR=$llvmgccdir
33902
Reid Spencer282d8c12006-12-21 22:55:41 +000033903 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33904 LLVMGCCLIBEXEC=$llvmgcclibexec
33905
Reid Spencerb5d75b82006-05-09 00:31:01 +000033906 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033907 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33908 LLVMGCC_VERSION=$llvmgccversion
33909
33910 LLVMGCC_MAJVERS=$llvmgccmajvers
33911
Reid Spencer0d238182007-04-21 21:28:52 +000033912 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33913 LLVMGCC_LANGS=$llvmgcclangs
33914
33915 { echo "$as_me:$LINENO: result: ok" >&5
33916echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033917fi
33918
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033919SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033920
33921
Reid Spencere9de0912004-08-20 09:03:57 +000033922# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033923# information into substitutions that will end up in Makefile.config.in
33924# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033925if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033926 prefix="/usr/local"
33927fi
Reid Spencere9de0912004-08-20 09:03:57 +000033928eval LLVM_PREFIX="${prefix}";
33929eval LLVM_BINDIR="${prefix}/bin";
33930eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033931eval LLVM_DATADIR="${prefix}/share/llvm";
33932eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33933eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033934eval LLVM_INCLUDEDIR="${prefix}/include";
33935eval LLVM_INFODIR="${prefix}/info";
33936eval LLVM_MANDIR="${prefix}/man";
33937LLVM_CONFIGTIME=`date`
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033949# Place the various directores into the config.h file as #defines so that we
33950# can know about the installation paths within LLVM.
33951
Reid Spencere9de0912004-08-20 09:03:57 +000033952cat >>confdefs.h <<_ACEOF
33953#define LLVM_PREFIX "$LLVM_PREFIX"
33954_ACEOF
33955
33956
33957cat >>confdefs.h <<_ACEOF
33958#define LLVM_BINDIR "$LLVM_BINDIR"
33959_ACEOF
33960
33961
33962cat >>confdefs.h <<_ACEOF
33963#define LLVM_LIBDIR "$LLVM_LIBDIR"
33964_ACEOF
33965
33966
33967cat >>confdefs.h <<_ACEOF
33968#define LLVM_DATADIR "$LLVM_DATADIR"
33969_ACEOF
33970
33971
33972cat >>confdefs.h <<_ACEOF
33973#define LLVM_DATADIR "$LLVM_DOCSDIR"
33974_ACEOF
33975
33976
33977cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033978#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033979_ACEOF
33980
33981
33982cat >>confdefs.h <<_ACEOF
33983#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33984_ACEOF
33985
33986
33987cat >>confdefs.h <<_ACEOF
33988#define LLVM_INFODIR "$LLVM_INFODIR"
33989_ACEOF
33990
33991
33992cat >>confdefs.h <<_ACEOF
33993#define LLVM_MANDIR "$LLVM_MANDIR"
33994_ACEOF
33995
33996
33997cat >>confdefs.h <<_ACEOF
33998#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33999_ACEOF
34000
34001
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034002
Reid Spencera773bd52006-08-04 18:18:08 +000034003ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034004
Reid Spencera773bd52006-08-04 18:18:08 +000034005ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034006
Reid Spencera773bd52006-08-04 18:18:08 +000034007ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034008
Reid Spencera773bd52006-08-04 18:18:08 +000034009ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034010
Reid Spencera773bd52006-08-04 18:18:08 +000034011ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034012
34013
Reid Spencera773bd52006-08-04 18:18:08 +000034014ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034015
34016
Reid Spencerea949cf2006-08-16 00:45:38 +000034017ac_config_files="$ac_config_files llvm.spec"
34018
34019
Reid Spencera773bd52006-08-04 18:18:08 +000034020ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034021
34022
Reid Spencera773bd52006-08-04 18:18:08 +000034023ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034024
34025
Reid Spencera773bd52006-08-04 18:18:08 +000034026ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034027
Reid Spencera773bd52006-08-04 18:18:08 +000034028ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034029
34030
Reid Spencera773bd52006-08-04 18:18:08 +000034031ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034032
34033
Reid Spencera773bd52006-08-04 18:18:08 +000034034ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034035
34036
Reid Spencera773bd52006-08-04 18:18:08 +000034037ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034038
34039
Reid Spencer8b2e1412006-11-17 03:32:33 +000034040ac_config_commands="$ac_config_commands runtime/Makefile"
34041
34042
Reid Spencera773bd52006-08-04 18:18:08 +000034043ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034044
34045
Reid Spencera773bd52006-08-04 18:18:08 +000034046ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034047
34048
Reid Spencera773bd52006-08-04 18:18:08 +000034049ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034050
34051
Reid Spencera773bd52006-08-04 18:18:08 +000034052ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034053
34054
Reid Spencera773bd52006-08-04 18:18:08 +000034055ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034056
34057
34058
John Criswell7a73b802003-06-30 21:59:07 +000034059cat >confcache <<\_ACEOF
34060# This file is a shell script that caches the results of configure
34061# tests run on this system so they can be shared between configure
34062# scripts and configure runs, see configure's option --config-cache.
34063# It is not useful on other systems. If it contains results you don't
34064# want to keep, you may remove or edit it.
34065#
34066# config.status only pays attention to the cache file if you give it
34067# the --recheck option to rerun configure.
34068#
John Criswell0c38eaf2003-09-10 15:17:25 +000034069# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034070# loading this file, other *unset* `ac_cv_foo' will be assigned the
34071# following values.
34072
34073_ACEOF
34074
34075# The following way of writing the cache mishandles newlines in values,
34076# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034077# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034078# Ultrix sh set writes to stderr and can't be redirected directly,
34079# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034080(
34081 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34082 eval ac_val=\$$ac_var
34083 case $ac_val in #(
34084 *${as_nl}*)
34085 case $ac_var in #(
34086 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34087echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34088 esac
34089 case $ac_var in #(
34090 _ | IFS | as_nl) ;; #(
34091 *) $as_unset $ac_var ;;
34092 esac ;;
34093 esac
34094 done
34095
John Criswell7a73b802003-06-30 21:59:07 +000034096 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34098 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034099 # `set' does not quote correctly, so add quotes (double-quote
34100 # substitution turns \\\\ into \\, and sed turns \\ into \).
34101 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034102 "s/'/'\\\\''/g;
34103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034104 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034105 *)
34106 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034108 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034109 esac |
34110 sort
34111) |
John Criswell7a73b802003-06-30 21:59:07 +000034112 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034113 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034114 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034115 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34117 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34119 :end' >>confcache
34120if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34121 if test -w "$cache_file"; then
34122 test "x$cache_file" != "x/dev/null" &&
34123 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34124echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034125 cat confcache >$cache_file
34126 else
Reid Spencera773bd52006-08-04 18:18:08 +000034127 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34128echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034129 fi
34130fi
34131rm -f confcache
34132
34133test "x$prefix" = xNONE && prefix=$ac_default_prefix
34134# Let make expand exec_prefix.
34135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34136
John Criswell7a73b802003-06-30 21:59:07 +000034137DEFS=-DHAVE_CONFIG_H
34138
John Criswell0c38eaf2003-09-10 15:17:25 +000034139ac_libobjs=
34140ac_ltlibobjs=
34141for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34142 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34144 ac_i=`echo "$ac_i" | sed "$ac_script"`
34145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34146 # will be set to the directory where LIBOBJS objects are built.
34147 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34148 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034149done
34150LIBOBJS=$ac_libobjs
34151
34152LTLIBOBJS=$ac_ltlibobjs
34153
34154
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034155if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34156 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34157Usually this means the macro was only invoked conditionally." >&5
34158echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34159Usually this means the macro was only invoked conditionally." >&2;}
34160 { (exit 1); exit 1; }; }
34161fi
34162if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34163 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34164Usually this means the macro was only invoked conditionally." >&5
34165echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34166Usually this means the macro was only invoked conditionally." >&2;}
34167 { (exit 1); exit 1; }; }
34168fi
John Criswell7a73b802003-06-30 21:59:07 +000034169
34170: ${CONFIG_STATUS=./config.status}
34171ac_clean_files_save=$ac_clean_files
34172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34173{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34174echo "$as_me: creating $CONFIG_STATUS" >&6;}
34175cat >$CONFIG_STATUS <<_ACEOF
34176#! $SHELL
34177# Generated by $as_me.
34178# Run this file to recreate the current configuration.
34179# Compiler output produced by configure, useful for debugging
34180# configure, is in config.log if it exists.
34181
34182debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034183ac_cs_recheck=false
34184ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034185SHELL=\${CONFIG_SHELL-$SHELL}
34186_ACEOF
34187
34188cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034189## --------------------- ##
34190## M4sh Initialization. ##
34191## --------------------- ##
34192
34193# Be Bourne compatible
34194if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34195 emulate sh
34196 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34198 # is contrary to our usage. Disable this feature.
34199 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034200 setopt NO_GLOB_SUBST
34201else
34202 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034203fi
Reid Spencera773bd52006-08-04 18:18:08 +000034204BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000034205DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034206
John Criswell7a73b802003-06-30 21:59:07 +000034207
Reid Spencera773bd52006-08-04 18:18:08 +000034208# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034209# Avoid depending upon Character Ranges.
34210as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34211as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34212as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34213as_cr_digits='0123456789'
34214as_cr_alnum=$as_cr_Letters$as_cr_digits
34215
34216# The user is always right.
34217if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034218 echo "#! /bin/sh" >conf$$.sh
34219 echo "exit 0" >>conf$$.sh
34220 chmod +x conf$$.sh
34221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034222 PATH_SEPARATOR=';'
34223 else
34224 PATH_SEPARATOR=:
34225 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034226 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034227fi
34228
Reid Spencera773bd52006-08-04 18:18:08 +000034229# Support unset when possible.
34230if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34231 as_unset=unset
34232else
34233 as_unset=false
34234fi
John Criswell7a73b802003-06-30 21:59:07 +000034235
Reid Spencera773bd52006-08-04 18:18:08 +000034236
34237# IFS
34238# We need space, tab and new line, in precisely that order. Quoting is
34239# there to prevent editors from complaining about space-tab.
34240# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34241# splitting by setting IFS to empty value.)
34242as_nl='
34243'
34244IFS=" "" $as_nl"
34245
34246# Find who we are. Look in the path if we contain no directory separator.
34247case $0 in
34248 *[\\/]* ) as_myself=$0 ;;
34249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034250for as_dir in $PATH
34251do
34252 IFS=$as_save_IFS
34253 test -z "$as_dir" && as_dir=.
34254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34255done
Reid Spencera773bd52006-08-04 18:18:08 +000034256IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034257
Reid Spencera773bd52006-08-04 18:18:08 +000034258 ;;
34259esac
34260# We did not find ourselves, most probably we were run as `sh COMMAND'
34261# in which case we are not to be found in the path.
34262if test "x$as_myself" = x; then
34263 as_myself=$0
34264fi
34265if test ! -f "$as_myself"; then
34266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34267 { (exit 1); exit 1; }
34268fi
34269
34270# Work around bugs in pre-3.0 UWIN ksh.
34271for as_var in ENV MAIL MAILPATH
34272do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34273done
34274PS1='$ '
34275PS2='> '
34276PS4='+ '
34277
34278# NLS nuisances.
34279for as_var in \
34280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34282 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034283do
Reid Spencera773bd52006-08-04 18:18:08 +000034284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34285 eval $as_var=C; export $as_var
34286 else
34287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34288 fi
34289done
34290
34291# Required to use basename.
34292if expr a : '\(a\)' >/dev/null 2>&1 &&
34293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34294 as_expr=expr
34295else
34296 as_expr=false
34297fi
34298
34299if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34300 as_basename=basename
34301else
34302 as_basename=false
34303fi
34304
34305
34306# Name of the executable.
34307as_me=`$as_basename -- "$0" ||
34308$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34309 X"$0" : 'X\(//\)$' \| \
34310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34311echo X/"$0" |
34312 sed '/^.*\/\([^/][^/]*\)\/*$/{
34313 s//\1/
34314 q
34315 }
34316 /^X\/\(\/\/\)$/{
34317 s//\1/
34318 q
34319 }
34320 /^X\/\(\/\).*/{
34321 s//\1/
34322 q
34323 }
34324 s/.*/./; q'`
34325
34326# CDPATH.
34327$as_unset CDPATH
34328
34329
34330
John Criswell7a73b802003-06-30 21:59:07 +000034331 as_lineno_1=$LINENO
34332 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034333 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034335
34336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34337 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034338 # line-number line after each line using $LINENO; the second 'sed'
34339 # does the real work. The second script uses 'N' to pair each
34340 # line-number line with the line containing $LINENO, and appends
34341 # trailing '-' during substitution so that $LINENO is not a special
34342 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034344 # scripts with optimization help from Paolo Bonzini. Blame Lee
34345 # E. McMahon (1931-1989) for sed's syntax. :-)
34346 sed -n '
34347 p
34348 /[$]LINENO/=
34349 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034350 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034351 s/[$]LINENO.*/&-/
34352 t lineno
34353 b
34354 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034355 N
Reid Spencera773bd52006-08-04 18:18:08 +000034356 :loop
34357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034358 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034359 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034360 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034361 chmod +x "$as_me.lineno" ||
34362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034363 { (exit 1); exit 1; }; }
34364
34365 # Don't try to exec as it changes $[0], causing all sort of problems
34366 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034367 # original and so on. Autoconf is especially sensitive to this).
34368 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034369 # Exit status is that of the last command.
34370 exit
34371}
34372
34373
Reid Spencera773bd52006-08-04 18:18:08 +000034374if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34375 as_dirname=dirname
34376else
34377 as_dirname=false
34378fi
34379
34380ECHO_C= ECHO_N= ECHO_T=
34381case `echo -n x` in
34382-n*)
34383 case `echo 'x\c'` in
34384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34385 *) ECHO_C='\c';;
34386 esac;;
34387*)
34388 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034389esac
34390
Reid Spencera773bd52006-08-04 18:18:08 +000034391if expr a : '\(a\)' >/dev/null 2>&1 &&
34392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034393 as_expr=expr
34394else
34395 as_expr=false
34396fi
34397
34398rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034399if test -d conf$$.dir; then
34400 rm -f conf$$.dir/conf$$.file
34401else
34402 rm -f conf$$.dir
34403 mkdir conf$$.dir
34404fi
John Criswell7a73b802003-06-30 21:59:07 +000034405echo >conf$$.file
34406if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034407 as_ln_s='ln -s'
34408 # ... but there are two gotchas:
34409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34411 # In both cases, we have to default to `cp -p'.
34412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034413 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034414elif ln conf$$.file conf$$ 2>/dev/null; then
34415 as_ln_s=ln
34416else
34417 as_ln_s='cp -p'
34418fi
Reid Spencera773bd52006-08-04 18:18:08 +000034419rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34420rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034421
John Criswell0c38eaf2003-09-10 15:17:25 +000034422if mkdir -p . 2>/dev/null; then
34423 as_mkdir_p=:
34424else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034425 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034426 as_mkdir_p=false
34427fi
34428
Reid Spencera773bd52006-08-04 18:18:08 +000034429# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34430# systems may use methods other than mode bits to determine executability.
34431cat >conf$$.file <<_ASEOF
34432#! /bin/sh
34433exit 0
34434_ASEOF
34435chmod +x conf$$.file
34436if test -x conf$$.file >/dev/null 2>&1; then
34437 as_executable_p="test -x"
34438else
34439 as_executable_p=:
34440fi
34441rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034442
34443# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034444as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034445
34446# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034447as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034448
34449
John Criswell7a73b802003-06-30 21:59:07 +000034450exec 6>&1
34451
Reid Spencera773bd52006-08-04 18:18:08 +000034452# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034453# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034454# values after options handling.
34455ac_log="
Reid Spencer53b24862007-07-09 08:10:07 +000034456This file was extended by llvm $as_me 2.1svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034457generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034458
34459 CONFIG_FILES = $CONFIG_FILES
34460 CONFIG_HEADERS = $CONFIG_HEADERS
34461 CONFIG_LINKS = $CONFIG_LINKS
34462 CONFIG_COMMANDS = $CONFIG_COMMANDS
34463 $ $0 $@
34464
Reid Spencera773bd52006-08-04 18:18:08 +000034465on `(hostname || uname -n) 2>/dev/null | sed 1q`
34466"
34467
John Criswell7a73b802003-06-30 21:59:07 +000034468_ACEOF
34469
Reid Spencera773bd52006-08-04 18:18:08 +000034470cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034471# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034472config_files="$ac_config_files"
34473config_headers="$ac_config_headers"
34474config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034475
Reid Spencera773bd52006-08-04 18:18:08 +000034476_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034477
34478cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034479ac_cs_usage="\
34480\`$as_me' instantiates files from templates according to the
34481current configuration.
34482
34483Usage: $0 [OPTIONS] [FILE]...
34484
34485 -h, --help print this help, then exit
34486 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034487 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034488 -d, --debug don't remove temporary files
34489 --recheck update $as_me by reconfiguring in the same conditions
34490 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034491 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034492 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034493 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034494
34495Configuration files:
34496$config_files
34497
34498Configuration headers:
34499$config_headers
34500
John Criswellc764fbc2003-09-06 15:17:13 +000034501Configuration commands:
34502$config_commands
34503
John Criswell7a73b802003-06-30 21:59:07 +000034504Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034505
Reid Spencera773bd52006-08-04 18:18:08 +000034506_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034507cat >>$CONFIG_STATUS <<_ACEOF
34508ac_cs_version="\\
Reid Spencer53b24862007-07-09 08:10:07 +000034509llvm config.status 2.1svn
Reid Spencera773bd52006-08-04 18:18:08 +000034510configured by $0, generated by GNU Autoconf 2.60,
34511 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034512
Reid Spencera773bd52006-08-04 18:18:08 +000034513Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034514This config.status script is free software; the Free Software Foundation
34515gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034516
34517ac_pwd='$ac_pwd'
34518srcdir='$srcdir'
34519INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034520_ACEOF
34521
34522cat >>$CONFIG_STATUS <<\_ACEOF
34523# If no file are specified by the user, then we need to provide default
34524# value. By we need to know if files were specified by the user.
34525ac_need_defaults=:
34526while test $# != 0
34527do
34528 case $1 in
34529 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034530 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034532 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034534 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034535 ac_option=$1
34536 ac_optarg=$2
34537 ac_shift=shift
34538 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034539 esac
34540
John Criswell0c38eaf2003-09-10 15:17:25 +000034541 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034542 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34544 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34546 echo "$ac_cs_version"; exit ;;
34547 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034548 debug=: ;;
34549 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034550 $ac_shift
34551 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034552 ac_need_defaults=false;;
34553 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034554 $ac_shift
34555 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034556 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034557 --he | --h)
34558 # Conflict between --help and --header
34559 { echo "$as_me: error: ambiguous option: $1
34560Try \`$0 --help' for more information." >&2
34561 { (exit 1); exit 1; }; };;
34562 --help | --hel | -h )
34563 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34566 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034567
34568 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034569 -*) { echo "$as_me: error: unrecognized option: $1
34570Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034571 { (exit 1); exit 1; }; } ;;
34572
Reid Spencera773bd52006-08-04 18:18:08 +000034573 *) ac_config_targets="$ac_config_targets $1"
34574 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034575
34576 esac
34577 shift
34578done
34579
John Criswell0c38eaf2003-09-10 15:17:25 +000034580ac_configure_extra_args=
34581
34582if $ac_cs_silent; then
34583 exec 6>/dev/null
34584 ac_configure_extra_args="$ac_configure_extra_args --silent"
34585fi
34586
34587_ACEOF
34588cat >>$CONFIG_STATUS <<_ACEOF
34589if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034590 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34591 CONFIG_SHELL=$SHELL
34592 export CONFIG_SHELL
34593 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034594fi
34595
John Criswell7a73b802003-06-30 21:59:07 +000034596_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034597cat >>$CONFIG_STATUS <<\_ACEOF
34598exec 5>>config.log
34599{
34600 echo
34601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34602## Running $as_me. ##
34603_ASBOX
34604 echo "$ac_log"
34605} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034606
Reid Spencera773bd52006-08-04 18:18:08 +000034607_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034608cat >>$CONFIG_STATUS <<_ACEOF
34609#
Reid Spencera773bd52006-08-04 18:18:08 +000034610# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034611#
Reid Spencerc0682832005-02-24 19:05:19 +000034612llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034613
34614_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034615
John Criswell7a73b802003-06-30 21:59:07 +000034616cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034617
34618# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034619for ac_config_target in $ac_config_targets
34620do
Reid Spencera773bd52006-08-04 18:18:08 +000034621 case $ac_config_target in
34622 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34623 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34624 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34625 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34626 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34627 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034628 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034629 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34630 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34631 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34632 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34633 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34634 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34635 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034636 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034637 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34638 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34639 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34640 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34641 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34642
John Criswell7a73b802003-06-30 21:59:07 +000034643 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34644echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34645 { (exit 1); exit 1; }; };;
34646 esac
34647done
34648
Reid Spencera773bd52006-08-04 18:18:08 +000034649
John Criswell7a73b802003-06-30 21:59:07 +000034650# If the user did not use the arguments to specify the items to instantiate,
34651# then the envvar interface is used. Set only those that are not.
34652# We use the long form for the default assignment because of an extremely
34653# bizarre bug on SunOS 4.1.3.
34654if $ac_need_defaults; then
34655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034658fi
34659
John Criswell0c38eaf2003-09-10 15:17:25 +000034660# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034661# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034662# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034663# Hook for its removal unless debugging.
34664# Note that there is a small window in which the directory will not be cleaned:
34665# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034666$debug ||
34667{
Reid Spencera773bd52006-08-04 18:18:08 +000034668 tmp=
34669 trap 'exit_status=$?
34670 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34671' 0
John Criswell7a73b802003-06-30 21:59:07 +000034672 trap '{ (exit 1); exit 1; }' 1 2 13 15
34673}
John Criswell7a73b802003-06-30 21:59:07 +000034674# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034675
John Criswell7a73b802003-06-30 21:59:07 +000034676{
Reid Spencera773bd52006-08-04 18:18:08 +000034677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034678 test -n "$tmp" && test -d "$tmp"
34679} ||
34680{
Reid Spencera773bd52006-08-04 18:18:08 +000034681 tmp=./conf$$-$RANDOM
34682 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034683} ||
34684{
John Criswell0c38eaf2003-09-10 15:17:25 +000034685 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034686 { (exit 1); exit 1; }
34687}
34688
John Criswell7a73b802003-06-30 21:59:07 +000034689#
Reid Spencera773bd52006-08-04 18:18:08 +000034690# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034691#
34692
34693# No need to generate the scripts if there are no CONFIG_FILES.
34694# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034695if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034696
34697_ACEOF
34698
Reid Spencera773bd52006-08-04 18:18:08 +000034699
34700
34701ac_delim='%!_!# '
34702for ac_last_try in false false false false false :; do
34703 cat >conf$$subs.sed <<_ACEOF
34704SHELL!$SHELL$ac_delim
34705PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34706PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34707PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34708PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34709PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34710PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34711exec_prefix!$exec_prefix$ac_delim
34712prefix!$prefix$ac_delim
34713program_transform_name!$program_transform_name$ac_delim
34714bindir!$bindir$ac_delim
34715sbindir!$sbindir$ac_delim
34716libexecdir!$libexecdir$ac_delim
34717datarootdir!$datarootdir$ac_delim
34718datadir!$datadir$ac_delim
34719sysconfdir!$sysconfdir$ac_delim
34720sharedstatedir!$sharedstatedir$ac_delim
34721localstatedir!$localstatedir$ac_delim
34722includedir!$includedir$ac_delim
34723oldincludedir!$oldincludedir$ac_delim
34724docdir!$docdir$ac_delim
34725infodir!$infodir$ac_delim
34726htmldir!$htmldir$ac_delim
34727dvidir!$dvidir$ac_delim
34728pdfdir!$pdfdir$ac_delim
34729psdir!$psdir$ac_delim
34730libdir!$libdir$ac_delim
34731localedir!$localedir$ac_delim
34732mandir!$mandir$ac_delim
34733DEFS!$DEFS$ac_delim
34734ECHO_C!$ECHO_C$ac_delim
34735ECHO_N!$ECHO_N$ac_delim
34736ECHO_T!$ECHO_T$ac_delim
34737LIBS!$LIBS$ac_delim
34738build_alias!$build_alias$ac_delim
34739host_alias!$host_alias$ac_delim
34740target_alias!$target_alias$ac_delim
34741LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34742subdirs!$subdirs$ac_delim
34743build!$build$ac_delim
34744build_cpu!$build_cpu$ac_delim
34745build_vendor!$build_vendor$ac_delim
34746build_os!$build_os$ac_delim
34747host!$host$ac_delim
34748host_cpu!$host_cpu$ac_delim
34749host_vendor!$host_vendor$ac_delim
34750host_os!$host_os$ac_delim
34751target!$target$ac_delim
34752target_cpu!$target_cpu$ac_delim
34753target_vendor!$target_vendor$ac_delim
34754target_os!$target_os$ac_delim
34755OS!$OS$ac_delim
34756LINKALL!$LINKALL$ac_delim
34757NOLINKALL!$NOLINKALL$ac_delim
34758LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34759LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34760ARCH!$ARCH$ac_delim
34761ENDIAN!$ENDIAN$ac_delim
34762CC!$CC$ac_delim
34763CFLAGS!$CFLAGS$ac_delim
34764LDFLAGS!$LDFLAGS$ac_delim
34765CPPFLAGS!$CPPFLAGS$ac_delim
34766ac_ct_CC!$ac_ct_CC$ac_delim
34767EXEEXT!$EXEEXT$ac_delim
34768OBJEXT!$OBJEXT$ac_delim
34769CPP!$CPP$ac_delim
34770GREP!$GREP$ac_delim
34771EGREP!$EGREP$ac_delim
34772LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34773BUILD_CC!$BUILD_CC$ac_delim
34774BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34775CVSBUILD!$CVSBUILD$ac_delim
34776ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34777DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034778ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34779EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034780DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034781JIT!$JIT$ac_delim
34782TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34783ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34784ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034785ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034786TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034787ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034788EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34789CXX!$CXX$ac_delim
34790CXXFLAGS!$CXXFLAGS$ac_delim
34791ac_ct_CXX!$ac_ct_CXX$ac_delim
34792LEX!$LEX$ac_delim
34793LEXLIB!$LEXLIB$ac_delim
34794LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34795FLEX!$FLEX$ac_delim
34796YACC!$YACC$ac_delim
34797YFLAGS!$YFLAGS$ac_delim
34798BISON!$BISON$ac_delim
34799NM!$NM$ac_delim
34800ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034801_ACEOF
34802
34803 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34804 break
34805 elif $ac_last_try; then
34806 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34807echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34808 { (exit 1); exit 1; }; }
34809 else
34810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034811 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034812done
34813
34814ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34815if test -n "$ac_eof"; then
34816 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34817 ac_eof=`expr $ac_eof + 1`
34818fi
34819
34820cat >>$CONFIG_STATUS <<_ACEOF
34821cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34822/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34823_ACEOF
34824sed '
34825s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34826s/^/s,@/; s/!/@,|#_!!_#|/
34827:n
34828t n
34829s/'"$ac_delim"'$/,g/; t
34830s/$/\\/; p
34831N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34832' >>$CONFIG_STATUS <conf$$subs.sed
34833rm -f conf$$subs.sed
34834cat >>$CONFIG_STATUS <<_ACEOF
34835CEOF$ac_eof
34836_ACEOF
34837
34838
34839ac_delim='%!_!# '
34840for ac_last_try in false false false false false :; do
34841 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000034842LN_S!$LN_S$ac_delim
34843CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034844CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034845DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034846FIND!$FIND$ac_delim
34847MKDIR!$MKDIR$ac_delim
34848MV!$MV$ac_delim
34849RANLIB!$RANLIB$ac_delim
34850RM!$RM$ac_delim
34851SED!$SED$ac_delim
34852TAR!$TAR$ac_delim
34853BINPWD!$BINPWD$ac_delim
34854GRAPHVIZ!$GRAPHVIZ$ac_delim
34855DOT!$DOT$ac_delim
34856GV!$GV$ac_delim
34857DOTTY!$DOTTY$ac_delim
34858PERL!$PERL$ac_delim
34859HAVE_PERL!$HAVE_PERL$ac_delim
34860INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34861INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34862INSTALL_DATA!$INSTALL_DATA$ac_delim
34863BZIP2!$BZIP2$ac_delim
34864DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034865GROFF!$GROFF$ac_delim
34866GZIP!$GZIP$ac_delim
34867POD2HTML!$POD2HTML$ac_delim
34868POD2MAN!$POD2MAN$ac_delim
34869RUNTEST!$RUNTEST$ac_delim
34870TCLSH!$TCLSH$ac_delim
34871ZIP!$ZIP$ac_delim
34872INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34873INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34874CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34875CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34876LIBADD_DL!$LIBADD_DL$ac_delim
34877ECHO!$ECHO$ac_delim
34878AR!$AR$ac_delim
34879STRIP!$STRIP$ac_delim
34880CXXCPP!$CXXCPP$ac_delim
34881F77!$F77$ac_delim
34882FFLAGS!$FFLAGS$ac_delim
34883ac_ct_F77!$ac_ct_F77$ac_delim
34884LIBTOOL!$LIBTOOL$ac_delim
34885ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34886LLVMGCC!$LLVMGCC$ac_delim
34887LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034888USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034889HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034890HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034891ALLOCA!$ALLOCA$ac_delim
34892MMAP_FILE!$MMAP_FILE$ac_delim
34893LLVMCC1!$LLVMCC1$ac_delim
34894LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34895LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034896LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034897LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34898LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034899LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034900SHLIBEXT!$SHLIBEXT$ac_delim
34901LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34902LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34903LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34904LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34905LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34906LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34907LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34908LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34909LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34910LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34911LIBOBJS!$LIBOBJS$ac_delim
34912LTLIBOBJS!$LTLIBOBJS$ac_delim
34913_ACEOF
34914
David Greenea696d242007-06-28 19:36:08 +000034915 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
Reid Spencera773bd52006-08-04 18:18:08 +000034916 break
34917 elif $ac_last_try; then
34918 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34919echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34920 { (exit 1); exit 1; }; }
34921 else
34922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34923 fi
34924done
34925
34926ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34927if test -n "$ac_eof"; then
34928 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34929 ac_eof=`expr $ac_eof + 1`
34930fi
34931
34932cat >>$CONFIG_STATUS <<_ACEOF
34933cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34934/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34935_ACEOF
34936sed '
34937s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34938s/^/s,@/; s/!/@,|#_!!_#|/
34939:n
34940t n
34941s/'"$ac_delim"'$/,g/; t
34942s/$/\\/; p
34943N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34944' >>$CONFIG_STATUS <conf$$subs.sed
34945rm -f conf$$subs.sed
34946cat >>$CONFIG_STATUS <<_ACEOF
34947:end
34948s/|#_!!_#|//g
34949CEOF$ac_eof
34950_ACEOF
34951
34952
34953# VPATH may cause trouble with some makes, so we remove $(srcdir),
34954# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34955# trailing colons and then remove the whole line if VPATH becomes empty
34956# (actually we leave an empty line to preserve line numbers).
34957if test "x$srcdir" = x.; then
34958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34959s/:*\$(srcdir):*/:/
34960s/:*\${srcdir}:*/:/
34961s/:*@srcdir@:*/:/
34962s/^\([^=]*=[ ]*\):*/\1/
34963s/:*$//
34964s/^[^=]*=[ ]*$//
34965}'
34966fi
34967
34968cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034969fi # test -n "$CONFIG_FILES"
34970
Reid Spencera773bd52006-08-04 18:18:08 +000034971
34972for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34973do
34974 case $ac_tag in
34975 :[FHLC]) ac_mode=$ac_tag; continue;;
34976 esac
34977 case $ac_mode$ac_tag in
34978 :[FHL]*:*);;
34979 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34980echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34981 { (exit 1); exit 1; }; };;
34982 :[FH]-) ac_tag=-:-;;
34983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34984 esac
34985 ac_save_IFS=$IFS
34986 IFS=:
34987 set x $ac_tag
34988 IFS=$ac_save_IFS
34989 shift
34990 ac_file=$1
34991 shift
34992
34993 case $ac_mode in
34994 :L) ac_source=$1;;
34995 :[FH])
34996 ac_file_inputs=
34997 for ac_f
34998 do
34999 case $ac_f in
35000 -) ac_f="$tmp/stdin";;
35001 *) # Look for the file first in the build tree, then in the source tree
35002 # (if the path is not absolute). The absolute path cannot be DOS-style,
35003 # because $ac_f cannot contain `:'.
35004 test -f "$ac_f" ||
35005 case $ac_f in
35006 [\\/$]*) false;;
35007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35008 esac ||
35009 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35010echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35011 { (exit 1); exit 1; }; };;
35012 esac
35013 ac_file_inputs="$ac_file_inputs $ac_f"
35014 done
35015
35016 # Let's still pretend it is `configure' which instantiates (i.e., don't
35017 # use $as_me), people would be surprised to read:
35018 # /* config.h. Generated by config.status. */
35019 configure_input="Generated from "`IFS=:
35020 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35021 if test x"$ac_file" != x-; then
35022 configure_input="$ac_file. $configure_input"
35023 { echo "$as_me:$LINENO: creating $ac_file" >&5
35024echo "$as_me: creating $ac_file" >&6;}
35025 fi
35026
35027 case $ac_tag in
35028 *:-:* | *:-) cat >"$tmp/stdin";;
35029 esac
35030 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035031 esac
35032
Reid Spencera773bd52006-08-04 18:18:08 +000035033 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035035 X"$ac_file" : 'X\(//\)[^/]' \| \
35036 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035038echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35040 s//\1/
35041 q
35042 }
35043 /^X\(\/\/\)[^/].*/{
35044 s//\1/
35045 q
35046 }
35047 /^X\(\/\/\)$/{
35048 s//\1/
35049 q
35050 }
35051 /^X\(\/\).*/{
35052 s//\1/
35053 q
35054 }
35055 s/.*/./; q'`
35056 { as_dir="$ac_dir"
35057 case $as_dir in #(
35058 -*) as_dir=./$as_dir;;
35059 esac
35060 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035061 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035062 while :; do
35063 case $as_dir in #(
35064 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35065 *) as_qdir=$as_dir;;
35066 esac
35067 as_dirs="'$as_qdir' $as_dirs"
35068 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035069$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035070 X"$as_dir" : 'X\(//\)[^/]' \| \
35071 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035073echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35075 s//\1/
35076 q
35077 }
35078 /^X\(\/\/\)[^/].*/{
35079 s//\1/
35080 q
35081 }
35082 /^X\(\/\/\)$/{
35083 s//\1/
35084 q
35085 }
35086 /^X\(\/\).*/{
35087 s//\1/
35088 q
35089 }
35090 s/.*/./; q'`
35091 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035092 done
Reid Spencera773bd52006-08-04 18:18:08 +000035093 test -z "$as_dirs" || eval "mkdir $as_dirs"
35094 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35095echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035096 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035097 ac_builddir=.
35098
Reid Spencera773bd52006-08-04 18:18:08 +000035099case "$ac_dir" in
35100.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35101*)
John Criswell7a73b802003-06-30 21:59:07 +000035102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035103 # A ".." for each directory in $ac_dir_suffix.
35104 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35105 case $ac_top_builddir_sub in
35106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35108 esac ;;
35109esac
35110ac_abs_top_builddir=$ac_pwd
35111ac_abs_builddir=$ac_pwd$ac_dir_suffix
35112# for backward compatibility:
35113ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035114
35115case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035116 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035117 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035118 ac_top_srcdir=$ac_top_builddir_sub
35119 ac_abs_top_srcdir=$ac_pwd ;;
35120 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035121 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035122 ac_top_srcdir=$srcdir
35123 ac_abs_top_srcdir=$srcdir ;;
35124 *) # Relative name.
35125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35126 ac_top_srcdir=$ac_top_build_prefix$srcdir
35127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035128esac
Reid Spencera773bd52006-08-04 18:18:08 +000035129ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035130
John Criswell7a73b802003-06-30 21:59:07 +000035131
Reid Spencera773bd52006-08-04 18:18:08 +000035132 case $ac_mode in
35133 :F)
35134 #
35135 # CONFIG_FILE
35136 #
John Criswell7a73b802003-06-30 21:59:07 +000035137
35138 case $INSTALL in
35139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035140 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035141 esac
John Criswell7a73b802003-06-30 21:59:07 +000035142_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035143
35144cat >>$CONFIG_STATUS <<\_ACEOF
35145# If the template does not know about datarootdir, expand it.
35146# FIXME: This hack should be removed a few years after 2.60.
35147ac_datarootdir_hack=; ac_datarootdir_seen=
35148
35149case `sed -n '/datarootdir/ {
35150 p
35151 q
35152}
35153/@datadir@/p
35154/@docdir@/p
35155/@infodir@/p
35156/@localedir@/p
35157/@mandir@/p
35158' $ac_file_inputs` in
35159*datarootdir*) ac_datarootdir_seen=yes;;
35160*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35161 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35162echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35163_ACEOF
35164cat >>$CONFIG_STATUS <<_ACEOF
35165 ac_datarootdir_hack='
35166 s&@datadir@&$datadir&g
35167 s&@docdir@&$docdir&g
35168 s&@infodir@&$infodir&g
35169 s&@localedir@&$localedir&g
35170 s&@mandir@&$mandir&g
35171 s&\\\${datarootdir}&$datarootdir&g' ;;
35172esac
35173_ACEOF
35174
35175# Neutralize VPATH when `$srcdir' = `.'.
35176# Shell code in configure.ac might set extrasub.
35177# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035178cat >>$CONFIG_STATUS <<_ACEOF
35179 sed "$ac_vpsub
35180$extrasub
35181_ACEOF
35182cat >>$CONFIG_STATUS <<\_ACEOF
35183:t
35184/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035185s&@configure_input@&$configure_input&;t t
35186s&@top_builddir@&$ac_top_builddir_sub&;t t
35187s&@srcdir@&$ac_srcdir&;t t
35188s&@abs_srcdir@&$ac_abs_srcdir&;t t
35189s&@top_srcdir@&$ac_top_srcdir&;t t
35190s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35191s&@builddir@&$ac_builddir&;t t
35192s&@abs_builddir@&$ac_abs_builddir&;t t
35193s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35194s&@INSTALL@&$ac_INSTALL&;t t
35195$ac_datarootdir_hack
35196" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035197
Reid Spencera773bd52006-08-04 18:18:08 +000035198test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35199 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35201 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35202which seems to be undefined. Please make sure it is defined." >&5
35203echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35204which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035205
Reid Spencera773bd52006-08-04 18:18:08 +000035206 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035207 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035208 -) cat "$tmp/out"; rm -f "$tmp/out";;
35209 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035210 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035211 ;;
35212 :H)
35213 #
35214 # CONFIG_HEADER
35215 #
John Criswell7a73b802003-06-30 21:59:07 +000035216_ACEOF
35217
Reid Spencera773bd52006-08-04 18:18:08 +000035218# Transform confdefs.h into a sed script `conftest.defines', that
35219# substitutes the proper values into config.h.in to produce config.h.
35220rm -f conftest.defines conftest.tail
35221# First, append a space to every undef/define line, to ease matching.
35222echo 's/$/ /' >conftest.defines
35223# Then, protect against being on the right side of a sed subst, or in
35224# an unquoted here document, in config.status. If some macros were
35225# called several times there might be several #defines for the same
35226# symbol, which is useless. But do not sort them, since the last
35227# AC_DEFINE must be honored.
35228ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35229# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35230# NAME is the cpp macro being defined, VALUE is the value it is being given.
35231# PARAMS is the parameter list in the macro definition--in most cases, it's
35232# just an empty string.
35233ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35234ac_dB='\\)[ (].*,\\1define\\2'
35235ac_dC=' '
35236ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035237
Reid Spencera773bd52006-08-04 18:18:08 +000035238uniq confdefs.h |
35239 sed -n '
35240 t rset
35241 :rset
35242 s/^[ ]*#[ ]*define[ ][ ]*//
35243 t ok
35244 d
35245 :ok
35246 s/[\\&,]/\\&/g
35247 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35248 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35249 ' >>conftest.defines
35250
35251# Remove the space that was appended to ease matching.
35252# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035253# example, in the case of _POSIX_SOURCE, which is predefined and required
35254# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035255# (The regexp can be short, since the line contains either #define or #undef.)
35256echo 's/ $//
35257s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035258
Reid Spencera773bd52006-08-04 18:18:08 +000035259# Break up conftest.defines:
35260ac_max_sed_lines=50
35261
35262# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35263# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35264# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35265# et cetera.
35266ac_in='$ac_file_inputs'
35267ac_out='"$tmp/out1"'
35268ac_nxt='"$tmp/out2"'
35269
35270while :
John Criswell7a73b802003-06-30 21:59:07 +000035271do
Reid Spencera773bd52006-08-04 18:18:08 +000035272 # Write a here document:
35273 cat >>$CONFIG_STATUS <<_ACEOF
35274 # First, check the format of the line:
35275 cat >"\$tmp/defines.sed" <<\\CEOF
35276/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35277/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35278b
35279:def
35280_ACEOF
35281 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035282 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035283 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35284 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35285 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35286 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035287 rm -f conftest.defines
35288 mv conftest.tail conftest.defines
35289done
Reid Spencera773bd52006-08-04 18:18:08 +000035290rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035291
Reid Spencera773bd52006-08-04 18:18:08 +000035292echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035293cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035294 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035295 echo "/* $configure_input */" >"$tmp/config.h"
35296 cat "$ac_result" >>"$tmp/config.h"
35297 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35299echo "$as_me: $ac_file is unchanged" >&6;}
35300 else
John Criswell7a73b802003-06-30 21:59:07 +000035301 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035302 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035303 fi
35304 else
Reid Spencera773bd52006-08-04 18:18:08 +000035305 echo "/* $configure_input */"
35306 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035307 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035308 rm -f "$tmp/out12"
35309 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035310
Reid Spencera773bd52006-08-04 18:18:08 +000035311 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35312echo "$as_me: executing $ac_file commands" >&6;}
35313 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035314 esac
John Criswell7a73b802003-06-30 21:59:07 +000035315
Reid Spencera773bd52006-08-04 18:18:08 +000035316
35317 case $ac_file$ac_mode in
35318 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35319 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35320 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35321 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35322 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35323 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35324 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35325 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035326 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35327 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035328 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35329 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35330 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35331 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35332 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35333 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35334 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35335 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35336 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35337 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35338
35339 esac
35340done # for ac_tag
35341
John Criswell7a73b802003-06-30 21:59:07 +000035342
35343{ (exit 0); exit 0; }
35344_ACEOF
35345chmod +x $CONFIG_STATUS
35346ac_clean_files=$ac_clean_files_save
35347
35348
35349# configure is writing to config.log, and then calls config.status.
35350# config.status does its own redirection, appending to config.log.
35351# Unfortunately, on DOS this fails, as config.log is still kept open
35352# by configure, so config.status won't be able to write to it; its
35353# output is simply discarded. So we exec the FD to /dev/null,
35354# effectively closing config.log, so it can be properly (re)opened and
35355# appended to by config.status. When coming back to configure, we
35356# need to make the FD available again.
35357if test "$no_create" != yes; then
35358 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035359 ac_config_status_args=
35360 test "$silent" = yes &&
35361 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035362 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035363 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035364 exec 5>>config.log
35365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35366 # would make configure fail if this is the last instruction.
35367 $ac_cs_success || { (exit 1); exit 1; }
35368fi
35369
John Criswell12399a12003-09-30 15:55:44 +000035370#
35371# CONFIG_SUBDIRS section.
35372#
35373if test "$no_recursion" != yes; then
35374
35375 # Remove --cache-file and --srcdir arguments so they do not pile up.
35376 ac_sub_configure_args=
35377 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035378 eval "set x $ac_configure_args"
35379 shift
35380 for ac_arg
35381 do
John Criswell12399a12003-09-30 15:55:44 +000035382 if test -n "$ac_prev"; then
35383 ac_prev=
35384 continue
35385 fi
35386 case $ac_arg in
35387 -cache-file | --cache-file | --cache-fil | --cache-fi \
35388 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35389 ac_prev=cache_file ;;
35390 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35391 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35392 | --c=*)
35393 ;;
35394 --config-cache | -C)
35395 ;;
35396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35397 ac_prev=srcdir ;;
35398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35399 ;;
35400 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35401 ac_prev=prefix ;;
35402 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35403 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035404 *)
35405 case $ac_arg in
35406 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35407 esac
35408 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035409 esac
35410 done
35411
35412 # Always prepend --prefix to ensure using the same prefix
35413 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035414 ac_arg="--prefix=$prefix"
35415 case $ac_arg in
35416 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35417 esac
35418 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035419
35420 ac_popdir=`pwd`
35421 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35422
35423 # Do not complain, so a configure script can configure whichever
35424 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035425 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035426
Reid Spencera773bd52006-08-04 18:18:08 +000035427 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35428 echo "$as_me:$LINENO: $ac_msg" >&5
35429 echo "$ac_msg" >&6
35430 { as_dir="$ac_dir"
35431 case $as_dir in #(
35432 -*) as_dir=./$as_dir;;
35433 esac
35434 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035435 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035436 while :; do
35437 case $as_dir in #(
35438 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35439 *) as_qdir=$as_dir;;
35440 esac
35441 as_dirs="'$as_qdir' $as_dirs"
35442 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035444 X"$as_dir" : 'X\(//\)[^/]' \| \
35445 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035446 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035447echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35449 s//\1/
35450 q
35451 }
35452 /^X\(\/\/\)[^/].*/{
35453 s//\1/
35454 q
35455 }
35456 /^X\(\/\/\)$/{
35457 s//\1/
35458 q
35459 }
35460 /^X\(\/\).*/{
35461 s//\1/
35462 q
35463 }
35464 s/.*/./; q'`
35465 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035466 done
Reid Spencera773bd52006-08-04 18:18:08 +000035467 test -z "$as_dirs" || eval "mkdir $as_dirs"
35468 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35469echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035470 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035471 ac_builddir=.
35472
Reid Spencera773bd52006-08-04 18:18:08 +000035473case "$ac_dir" in
35474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35475*)
John Criswell12399a12003-09-30 15:55:44 +000035476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035477 # A ".." for each directory in $ac_dir_suffix.
35478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35479 case $ac_top_builddir_sub in
35480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35482 esac ;;
35483esac
35484ac_abs_top_builddir=$ac_pwd
35485ac_abs_builddir=$ac_pwd$ac_dir_suffix
35486# for backward compatibility:
35487ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035488
35489case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035490 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035491 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035492 ac_top_srcdir=$ac_top_builddir_sub
35493 ac_abs_top_srcdir=$ac_pwd ;;
35494 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035495 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035496 ac_top_srcdir=$srcdir
35497 ac_abs_top_srcdir=$srcdir ;;
35498 *) # Relative name.
35499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35500 ac_top_srcdir=$ac_top_build_prefix$srcdir
35501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035502esac
Reid Spencera773bd52006-08-04 18:18:08 +000035503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035504
35505
Reid Spencera773bd52006-08-04 18:18:08 +000035506 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035507
35508 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035509 if test -f "$ac_srcdir/configure.gnu"; then
35510 ac_sub_configure=$ac_srcdir/configure.gnu
35511 elif test -f "$ac_srcdir/configure"; then
35512 ac_sub_configure=$ac_srcdir/configure
35513 elif test -f "$ac_srcdir/configure.in"; then
35514 # This should be Cygnus configure.
35515 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035516 else
35517 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35518echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35519 ac_sub_configure=
35520 fi
35521
35522 # The recursion is here.
35523 if test -n "$ac_sub_configure"; then
35524 # Make the cache file name correct relative to the subdirectory.
35525 case $cache_file in
35526 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035527 *) # Relative name.
35528 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035529 esac
35530
Reid Spencera773bd52006-08-04 18:18:08 +000035531 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35532echo "$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 +000035533 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035534 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35535 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035536 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035537echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35538 { (exit 1); exit 1; }; }
35539 fi
35540
Reid Spencera773bd52006-08-04 18:18:08 +000035541 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035542 done
35543fi
35544
Brian Gaekef3b24102003-11-16 18:38:14 +000035545